]> code.delx.au - gnu-emacs/blob - configure
Combine the two stamp-oldxmenu cases.
[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 INSTALL_PROGRAM
698 INSTALL_SCRIPT
699 INSTALL_DATA
700 RANLIB
701 INSTALL_INFO
702 GZIP_PROG
703 MAKEINFO
704 LD_SWITCH_SYSTEM
705 C_SWITCH_MACHINE
706 C_SWITCH_SYSTEM
707 LIBS_SYSTEM
708 CRT_DIR
709 LIB_MATH
710 START_FILES
711 LIBSOUND
712 PKG_CONFIG
713 ALSA_CFLAGS
714 ALSA_LIBS
715 CFLAGS_SOUND
716 SET_MAKE
717 XMKMF
718 LD_SWITCH_X_SITE_AUX
719 LD_SWITCH_X_SITE_AUX_RPATH
720 NS_IMPL_GNUSTEP_INC
721 NS_IMPL_GNUSTEP_TEMACS_LDFLAGS
722 TEMACS_LDFLAGS2
723 NS_OBJ
724 NS_SUPPORT
725 LIB_STANDARD
726 HAVE_XSERVER
727 RSVG_CFLAGS
728 RSVG_LIBS
729 GTK_CFLAGS
730 GTK_LIBS
731 GTK_OBJ
732 DBUS_CFLAGS
733 DBUS_LIBS
734 DBUS_OBJ
735 GCONF_CFLAGS
736 GCONF_LIBS
737 LIBSELINUX_LIBS
738 LIBXTR6
739 LIBXMU
740 FONTCONFIG_CFLAGS
741 FONTCONFIG_LIBS
742 XFT_CFLAGS
743 XFT_LIBS
744 LIBOTF_CFLAGS
745 LIBOTF_LIBS
746 M17N_FLT_CFLAGS
747 M17N_FLT_LIBS
748 FREETYPE_CFLAGS
749 FREETYPE_LIBS
750 LIBXPM
751 LIBJPEG
752 LIBPNG
753 LIBTIFF
754 LIBGIF
755 LIBGPM
756 LIBXSM
757 ALLOCA
758 liblockfile
759 LIBS_MAIL
760 BLESSMAIL_TARGET
761 LIBOBJS
762 NEED_SETGID
763 KMEM_GROUP
764 GETLOADAVG_LIBS
765 GETOPT_H
766 GETOPTOBJS
767 LIBS_TERMCAP
768 TERMCAP_OBJ
769 LIBHESIOD
770 LIBRESOLV
771 COM_ERRLIB
772 CRYPTOLIB
773 KRB5LIB
774 DESLIB
775 KRB4LIB
776 version
777 configuration
778 canonical
779 srcdir
780 lispdir
781 locallisppath
782 lisppath
783 x_default_search_path
784 etcdir
785 archlibdir
786 bitmapdir
787 gamedir
788 gameuser
789 unexec
790 LD_SWITCH_X_SITE
791 C_SWITCH_X_SITE
792 C_SWITCH_X_SYSTEM
793 X_TOOLKIT_TYPE
794 machfile
795 opsysfile
796 ns_appdir
797 ns_appbindir
798 ns_appresdir
799 ns_appsrc
800 GNU_OBJC_CFLAGS
801 OTHER_FILES
802 FONT_OBJ
803 XMENU_OBJ
804 XOBJ
805 WIDGET_OBJ
806 TOOLKIT_LIBW
807 LIBXT_OTHER
808 OLDXMENU_TARGET
809 OLDXMENU
810 LIBXMENU
811 LIBX_OTHER
812 OLDXMENU_DEPS
813 CYGWIN_OBJ
814 PRE_ALLOC_OBJ
815 POST_ALLOC_OBJ
816 LD_SWITCH_SYSTEM_TEMACS
817 LD_SWITCH_SYSTEM_EXTRA
818 LIB_GCC
819 MOUSE_SUPPORT
820 TOOLTIP_SUPPORT
821 WINDOW_SUPPORT
822 LTLIBOBJS'
823 ac_subst_files=''
824 ac_user_opts='
825 enable_option_checking
826 with_pop
827 with_kerberos
828 with_kerberos5
829 with_hesiod
830 with_mmdf
831 with_mail_unlink
832 with_mailhost
833 with_sound
834 with_sync_input
835 with_x_toolkit
836 with_xpm
837 with_jpeg
838 with_tiff
839 with_gif
840 with_png
841 with_rsvg
842 with_xft
843 with_libotf
844 with_m17n_flt
845 with_toolkit_scroll_bars
846 with_xaw3d
847 with_xim
848 with_ns
849 with_gpm
850 with_dbus
851 with_gconf
852 with_selinux
853 with_makeinfo
854 with_gtk
855 with_gcc
856 with_pkg_config_prog
857 with_crt_dir
858 with_gnustep_conf
859 enable_ns_self_contained
860 enable_asserts
861 enable_maintainer_mode
862 enable_locallisppath
863 enable_checking
864 enable_profiling
865 enable_autodepend
866 enable_largefile
867 with_x
868 '
869 ac_precious_vars='build_alias
870 host_alias
871 target_alias
872 CC
873 CFLAGS
874 LDFLAGS
875 LIBS
876 CPPFLAGS
877 CPP
878 XMKMF'
879
880
881 # Initialize some variables set by options.
882 ac_init_help=
883 ac_init_version=false
884 ac_unrecognized_opts=
885 ac_unrecognized_sep=
886 # The variables have the same names as the options, with
887 # dashes changed to underlines.
888 cache_file=/dev/null
889 exec_prefix=NONE
890 no_create=
891 no_recursion=
892 prefix=NONE
893 program_prefix=NONE
894 program_suffix=NONE
895 program_transform_name=s,x,x,
896 silent=
897 site=
898 srcdir=
899 verbose=
900 x_includes=NONE
901 x_libraries=NONE
902
903 # Installation directory options.
904 # These are left unexpanded so users can "make install exec_prefix=/foo"
905 # and all the variables that are supposed to be based on exec_prefix
906 # by default will actually change.
907 # Use braces instead of parens because sh, perl, etc. also accept them.
908 # (The list follows the same order as the GNU Coding Standards.)
909 bindir='${exec_prefix}/bin'
910 sbindir='${exec_prefix}/sbin'
911 libexecdir='${exec_prefix}/libexec'
912 datarootdir='${prefix}/share'
913 datadir='${datarootdir}'
914 sysconfdir='${prefix}/etc'
915 sharedstatedir='${prefix}/com'
916 localstatedir='${prefix}/var'
917 includedir='${prefix}/include'
918 oldincludedir='/usr/include'
919 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
920 infodir='${datarootdir}/info'
921 htmldir='${docdir}'
922 dvidir='${docdir}'
923 pdfdir='${docdir}'
924 psdir='${docdir}'
925 libdir='${exec_prefix}/lib'
926 localedir='${datarootdir}/locale'
927 mandir='${datarootdir}/man'
928
929 ac_prev=
930 ac_dashdash=
931 for ac_option
932 do
933 # If the previous option needs an argument, assign it.
934 if test -n "$ac_prev"; then
935 eval $ac_prev=\$ac_option
936 ac_prev=
937 continue
938 fi
939
940 case $ac_option in
941 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
942 *) ac_optarg=yes ;;
943 esac
944
945 # Accept the important Cygnus configure options, so we can diagnose typos.
946
947 case $ac_dashdash$ac_option in
948 --)
949 ac_dashdash=yes ;;
950
951 -bindir | --bindir | --bindi | --bind | --bin | --bi)
952 ac_prev=bindir ;;
953 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
954 bindir=$ac_optarg ;;
955
956 -build | --build | --buil | --bui | --bu)
957 ac_prev=build_alias ;;
958 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
959 build_alias=$ac_optarg ;;
960
961 -cache-file | --cache-file | --cache-fil | --cache-fi \
962 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
963 ac_prev=cache_file ;;
964 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
965 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
966 cache_file=$ac_optarg ;;
967
968 --config-cache | -C)
969 cache_file=config.cache ;;
970
971 -datadir | --datadir | --datadi | --datad)
972 ac_prev=datadir ;;
973 -datadir=* | --datadir=* | --datadi=* | --datad=*)
974 datadir=$ac_optarg ;;
975
976 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
977 | --dataroo | --dataro | --datar)
978 ac_prev=datarootdir ;;
979 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
980 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
981 datarootdir=$ac_optarg ;;
982
983 -disable-* | --disable-*)
984 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
985 # Reject names that are not valid shell variable names.
986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
987 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
988 { (exit 1); exit 1; }; }
989 ac_useropt_orig=$ac_useropt
990 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
991 case $ac_user_opts in
992 *"
993 "enable_$ac_useropt"
994 "*) ;;
995 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
996 ac_unrecognized_sep=', ';;
997 esac
998 eval enable_$ac_useropt=no ;;
999
1000 -docdir | --docdir | --docdi | --doc | --do)
1001 ac_prev=docdir ;;
1002 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1003 docdir=$ac_optarg ;;
1004
1005 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1006 ac_prev=dvidir ;;
1007 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1008 dvidir=$ac_optarg ;;
1009
1010 -enable-* | --enable-*)
1011 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1012 # Reject names that are not valid shell variable names.
1013 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1014 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1015 { (exit 1); exit 1; }; }
1016 ac_useropt_orig=$ac_useropt
1017 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1018 case $ac_user_opts in
1019 *"
1020 "enable_$ac_useropt"
1021 "*) ;;
1022 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1023 ac_unrecognized_sep=', ';;
1024 esac
1025 eval enable_$ac_useropt=\$ac_optarg ;;
1026
1027 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1028 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1029 | --exec | --exe | --ex)
1030 ac_prev=exec_prefix ;;
1031 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1032 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1033 | --exec=* | --exe=* | --ex=*)
1034 exec_prefix=$ac_optarg ;;
1035
1036 -gas | --gas | --ga | --g)
1037 # Obsolete; use --with-gas.
1038 with_gas=yes ;;
1039
1040 -help | --help | --hel | --he | -h)
1041 ac_init_help=long ;;
1042 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1043 ac_init_help=recursive ;;
1044 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1045 ac_init_help=short ;;
1046
1047 -host | --host | --hos | --ho)
1048 ac_prev=host_alias ;;
1049 -host=* | --host=* | --hos=* | --ho=*)
1050 host_alias=$ac_optarg ;;
1051
1052 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1053 ac_prev=htmldir ;;
1054 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1055 | --ht=*)
1056 htmldir=$ac_optarg ;;
1057
1058 -includedir | --includedir | --includedi | --included | --include \
1059 | --includ | --inclu | --incl | --inc)
1060 ac_prev=includedir ;;
1061 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1062 | --includ=* | --inclu=* | --incl=* | --inc=*)
1063 includedir=$ac_optarg ;;
1064
1065 -infodir | --infodir | --infodi | --infod | --info | --inf)
1066 ac_prev=infodir ;;
1067 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1068 infodir=$ac_optarg ;;
1069
1070 -libdir | --libdir | --libdi | --libd)
1071 ac_prev=libdir ;;
1072 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1073 libdir=$ac_optarg ;;
1074
1075 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1076 | --libexe | --libex | --libe)
1077 ac_prev=libexecdir ;;
1078 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1079 | --libexe=* | --libex=* | --libe=*)
1080 libexecdir=$ac_optarg ;;
1081
1082 -localedir | --localedir | --localedi | --localed | --locale)
1083 ac_prev=localedir ;;
1084 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1085 localedir=$ac_optarg ;;
1086
1087 -localstatedir | --localstatedir | --localstatedi | --localstated \
1088 | --localstate | --localstat | --localsta | --localst | --locals)
1089 ac_prev=localstatedir ;;
1090 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1091 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1092 localstatedir=$ac_optarg ;;
1093
1094 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1095 ac_prev=mandir ;;
1096 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1097 mandir=$ac_optarg ;;
1098
1099 -nfp | --nfp | --nf)
1100 # Obsolete; use --without-fp.
1101 with_fp=no ;;
1102
1103 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1104 | --no-cr | --no-c | -n)
1105 no_create=yes ;;
1106
1107 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1108 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1109 no_recursion=yes ;;
1110
1111 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1112 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1113 | --oldin | --oldi | --old | --ol | --o)
1114 ac_prev=oldincludedir ;;
1115 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1116 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1117 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1118 oldincludedir=$ac_optarg ;;
1119
1120 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1121 ac_prev=prefix ;;
1122 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1123 prefix=$ac_optarg ;;
1124
1125 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1126 | --program-pre | --program-pr | --program-p)
1127 ac_prev=program_prefix ;;
1128 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1129 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1130 program_prefix=$ac_optarg ;;
1131
1132 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1133 | --program-suf | --program-su | --program-s)
1134 ac_prev=program_suffix ;;
1135 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1136 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1137 program_suffix=$ac_optarg ;;
1138
1139 -program-transform-name | --program-transform-name \
1140 | --program-transform-nam | --program-transform-na \
1141 | --program-transform-n | --program-transform- \
1142 | --program-transform | --program-transfor \
1143 | --program-transfo | --program-transf \
1144 | --program-trans | --program-tran \
1145 | --progr-tra | --program-tr | --program-t)
1146 ac_prev=program_transform_name ;;
1147 -program-transform-name=* | --program-transform-name=* \
1148 | --program-transform-nam=* | --program-transform-na=* \
1149 | --program-transform-n=* | --program-transform-=* \
1150 | --program-transform=* | --program-transfor=* \
1151 | --program-transfo=* | --program-transf=* \
1152 | --program-trans=* | --program-tran=* \
1153 | --progr-tra=* | --program-tr=* | --program-t=*)
1154 program_transform_name=$ac_optarg ;;
1155
1156 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1157 ac_prev=pdfdir ;;
1158 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1159 pdfdir=$ac_optarg ;;
1160
1161 -psdir | --psdir | --psdi | --psd | --ps)
1162 ac_prev=psdir ;;
1163 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1164 psdir=$ac_optarg ;;
1165
1166 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1167 | -silent | --silent | --silen | --sile | --sil)
1168 silent=yes ;;
1169
1170 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1171 ac_prev=sbindir ;;
1172 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1173 | --sbi=* | --sb=*)
1174 sbindir=$ac_optarg ;;
1175
1176 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1177 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1178 | --sharedst | --shareds | --shared | --share | --shar \
1179 | --sha | --sh)
1180 ac_prev=sharedstatedir ;;
1181 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1182 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1183 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1184 | --sha=* | --sh=*)
1185 sharedstatedir=$ac_optarg ;;
1186
1187 -site | --site | --sit)
1188 ac_prev=site ;;
1189 -site=* | --site=* | --sit=*)
1190 site=$ac_optarg ;;
1191
1192 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1193 ac_prev=srcdir ;;
1194 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1195 srcdir=$ac_optarg ;;
1196
1197 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1198 | --syscon | --sysco | --sysc | --sys | --sy)
1199 ac_prev=sysconfdir ;;
1200 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1201 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1202 sysconfdir=$ac_optarg ;;
1203
1204 -target | --target | --targe | --targ | --tar | --ta | --t)
1205 ac_prev=target_alias ;;
1206 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1207 target_alias=$ac_optarg ;;
1208
1209 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1210 verbose=yes ;;
1211
1212 -version | --version | --versio | --versi | --vers | -V)
1213 ac_init_version=: ;;
1214
1215 -with-* | --with-*)
1216 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1219 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1220 { (exit 1); exit 1; }; }
1221 ac_useropt_orig=$ac_useropt
1222 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223 case $ac_user_opts in
1224 *"
1225 "with_$ac_useropt"
1226 "*) ;;
1227 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1228 ac_unrecognized_sep=', ';;
1229 esac
1230 eval with_$ac_useropt=\$ac_optarg ;;
1231
1232 -without-* | --without-*)
1233 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1234 # Reject names that are not valid shell variable names.
1235 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1236 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1237 { (exit 1); exit 1; }; }
1238 ac_useropt_orig=$ac_useropt
1239 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1240 case $ac_user_opts in
1241 *"
1242 "with_$ac_useropt"
1243 "*) ;;
1244 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1245 ac_unrecognized_sep=', ';;
1246 esac
1247 eval with_$ac_useropt=no ;;
1248
1249 --x)
1250 # Obsolete; use --with-x.
1251 with_x=yes ;;
1252
1253 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1254 | --x-incl | --x-inc | --x-in | --x-i)
1255 ac_prev=x_includes ;;
1256 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1257 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1258 x_includes=$ac_optarg ;;
1259
1260 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1261 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1262 ac_prev=x_libraries ;;
1263 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1264 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1265 x_libraries=$ac_optarg ;;
1266
1267 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1268 Try \`$0 --help' for more information." >&2
1269 { (exit 1); exit 1; }; }
1270 ;;
1271
1272 *=*)
1273 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1274 # Reject names that are not valid shell variable names.
1275 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1276 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1277 { (exit 1); exit 1; }; }
1278 eval $ac_envvar=\$ac_optarg
1279 export $ac_envvar ;;
1280
1281 *)
1282 # FIXME: should be removed in autoconf 3.0.
1283 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1284 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1285 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1286 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1287 ;;
1288
1289 esac
1290 done
1291
1292 if test -n "$ac_prev"; then
1293 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1294 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1295 { (exit 1); exit 1; }; }
1296 fi
1297
1298 if test -n "$ac_unrecognized_opts"; then
1299 case $enable_option_checking in
1300 no) ;;
1301 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1302 { (exit 1); exit 1; }; } ;;
1303 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1304 esac
1305 fi
1306
1307 # Check all directory arguments for consistency.
1308 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1309 datadir sysconfdir sharedstatedir localstatedir includedir \
1310 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1311 libdir localedir mandir
1312 do
1313 eval ac_val=\$$ac_var
1314 # Remove trailing slashes.
1315 case $ac_val in
1316 */ )
1317 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1318 eval $ac_var=\$ac_val;;
1319 esac
1320 # Be sure to have absolute directory names.
1321 case $ac_val in
1322 [\\/$]* | ?:[\\/]* ) continue;;
1323 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1324 esac
1325 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1326 { (exit 1); exit 1; }; }
1327 done
1328
1329 # There might be people who depend on the old broken behavior: `$host'
1330 # used to hold the argument of --host etc.
1331 # FIXME: To remove some day.
1332 build=$build_alias
1333 host=$host_alias
1334 target=$target_alias
1335
1336 # FIXME: To remove some day.
1337 if test "x$host_alias" != x; then
1338 if test "x$build_alias" = x; then
1339 cross_compiling=maybe
1340 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1341 If a cross compiler is detected then cross compile mode will be used." >&2
1342 elif test "x$build_alias" != "x$host_alias"; then
1343 cross_compiling=yes
1344 fi
1345 fi
1346
1347 ac_tool_prefix=
1348 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1349
1350 test "$silent" = yes && exec 6>/dev/null
1351
1352
1353 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1354 ac_ls_di=`ls -di .` &&
1355 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1356 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1357 { (exit 1); exit 1; }; }
1358 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1359 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1360 { (exit 1); exit 1; }; }
1361
1362
1363 # Find the source files, if location was not specified.
1364 if test -z "$srcdir"; then
1365 ac_srcdir_defaulted=yes
1366 # Try the directory containing this script, then the parent directory.
1367 ac_confdir=`$as_dirname -- "$as_myself" ||
1368 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1369 X"$as_myself" : 'X\(//\)[^/]' \| \
1370 X"$as_myself" : 'X\(//\)$' \| \
1371 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1372 $as_echo X"$as_myself" |
1373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1374 s//\1/
1375 q
1376 }
1377 /^X\(\/\/\)[^/].*/{
1378 s//\1/
1379 q
1380 }
1381 /^X\(\/\/\)$/{
1382 s//\1/
1383 q
1384 }
1385 /^X\(\/\).*/{
1386 s//\1/
1387 q
1388 }
1389 s/.*/./; q'`
1390 srcdir=$ac_confdir
1391 if test ! -r "$srcdir/$ac_unique_file"; then
1392 srcdir=..
1393 fi
1394 else
1395 ac_srcdir_defaulted=no
1396 fi
1397 if test ! -r "$srcdir/$ac_unique_file"; then
1398 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1399 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1400 { (exit 1); exit 1; }; }
1401 fi
1402 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1403 ac_abs_confdir=`(
1404 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1405 { (exit 1); exit 1; }; }
1406 pwd)`
1407 # When building in place, set srcdir=.
1408 if test "$ac_abs_confdir" = "$ac_pwd"; then
1409 srcdir=.
1410 fi
1411 # Remove unnecessary trailing slashes from srcdir.
1412 # Double slashes in file names in object file debugging info
1413 # mess up M-x gdb in Emacs.
1414 case $srcdir in
1415 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1416 esac
1417 for ac_var in $ac_precious_vars; do
1418 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1419 eval ac_env_${ac_var}_value=\$${ac_var}
1420 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1421 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1422 done
1423
1424 #
1425 # Report the --help message.
1426 #
1427 if test "$ac_init_help" = "long"; then
1428 # Omit some internal or obsolete options to make the list less imposing.
1429 # This message is too long to be a string in the A/UX 3.1 sh.
1430 cat <<_ACEOF
1431 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1432
1433 Usage: $0 [OPTION]... [VAR=VALUE]...
1434
1435 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1436 VAR=VALUE. See below for descriptions of some of the useful variables.
1437
1438 Defaults for the options are specified in brackets.
1439
1440 Configuration:
1441 -h, --help display this help and exit
1442 --help=short display options specific to this package
1443 --help=recursive display the short help of all the included packages
1444 -V, --version display version information and exit
1445 -q, --quiet, --silent do not print \`checking...' messages
1446 --cache-file=FILE cache test results in FILE [disabled]
1447 -C, --config-cache alias for \`--cache-file=config.cache'
1448 -n, --no-create do not create output files
1449 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1450
1451 Installation directories:
1452 --prefix=PREFIX install architecture-independent files in PREFIX
1453 [$ac_default_prefix]
1454 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1455 [PREFIX]
1456
1457 By default, \`make install' will install all the files in
1458 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1459 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1460 for instance \`--prefix=\$HOME'.
1461
1462 For better control, use the options below.
1463
1464 Fine tuning of the installation directories:
1465 --bindir=DIR user executables [EPREFIX/bin]
1466 --sbindir=DIR system admin executables [EPREFIX/sbin]
1467 --libexecdir=DIR program executables [EPREFIX/libexec]
1468 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1469 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1470 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1471 --libdir=DIR object code libraries [EPREFIX/lib]
1472 --includedir=DIR C header files [PREFIX/include]
1473 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1474 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1475 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1476 --infodir=DIR info documentation [DATAROOTDIR/info]
1477 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1478 --mandir=DIR man documentation [DATAROOTDIR/man]
1479 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1480 --htmldir=DIR html documentation [DOCDIR]
1481 --dvidir=DIR dvi documentation [DOCDIR]
1482 --pdfdir=DIR pdf documentation [DOCDIR]
1483 --psdir=DIR ps documentation [DOCDIR]
1484 _ACEOF
1485
1486 cat <<\_ACEOF
1487
1488 Program names:
1489 --program-prefix=PREFIX prepend PREFIX to installed program names
1490 --program-suffix=SUFFIX append SUFFIX to installed program names
1491 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1492
1493 X features:
1494 --x-includes=DIR X include files are in DIR
1495 --x-libraries=DIR X library files are in DIR
1496
1497 System types:
1498 --build=BUILD configure for building on BUILD [guessed]
1499 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1500 _ACEOF
1501 fi
1502
1503 if test -n "$ac_init_help"; then
1504 case $ac_init_help in
1505 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1506 esac
1507 cat <<\_ACEOF
1508
1509 Optional Features:
1510 --disable-option-checking ignore unrecognized --enable/--with options
1511 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1512 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1513 --disable-ns-self-contained
1514 disable self contained build under NeXTstep
1515 --enable-asserts compile code with asserts enabled
1516 --enable-maintainer-mode
1517 enable make rules and dependencies not useful (and
1518 sometimes confusing) to the casual installer
1519 --enable-locallisppath=PATH
1520 directories Emacs should search for lisp files
1521 specific to this site
1522 --enable-checking[=LIST]
1523 enable expensive run-time checks. With LIST, enable
1524 only specific categories of checks. Categories are:
1525 all,yes,no. Flags are: stringbytes, stringoverrun,
1526 stringfreelist, xmallocoverrun, conslist
1527 --enable-profiling build emacs with profiling support. This might not
1528 work on all platforms
1529 --enable-autodepend automatically generate dependencies to .h-files.
1530 Requires GNU Make and Gcc. Enabled if GNU Make and
1531 Gcc is found
1532 --disable-largefile omit support for large files
1533
1534 Optional Packages:
1535 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1536 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1537 --without-pop don't support POP mail retrieval with movemail
1538 --with-kerberos support Kerberos-authenticated POP
1539 --with-kerberos5 support Kerberos version 5 authenticated POP
1540 --with-hesiod support Hesiod to get the POP server host
1541 --with-mmdf support MMDF mailboxes
1542 --with-mail-unlink unlink, rather than empty, mail spool after reading
1543 --with-mailhost=HOSTNAME
1544 string giving default POP mail host
1545 --without-sound don't compile with sound support
1546 --without-sync-input process async input synchronously
1547 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, lucid or
1548 athena, motif, no)
1549 --without-xpm don't compile with XPM image support
1550 --without-jpeg don't compile with JPEG image support
1551 --without-tiff don't compile with TIFF image support
1552 --without-gif don't compile with GIF image support
1553 --without-png don't compile with PNG image support
1554 --without-rsvg don't compile with SVG image support
1555 --without-xft don't use XFT for anti aliased fonts
1556 --without-libotf don't use libotf for OpenType font support
1557 --without-m17n-flt don't use m17n-flt for text shaping
1558 --without-toolkit-scroll-bars
1559 don't use Motif or Xaw3d scroll bars
1560 --without-xaw3d don't use Xaw3d
1561 --without-xim don't use X11 XIM
1562 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1563 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1564 console
1565 --without-dbus don't compile with D-Bus support
1566 --without-gconf don't compile with GConf support
1567 --without-selinux don't compile with SELinux support
1568 --without-makeinfo don't require makeinfo for building manuals
1569
1570 --with-pkg-config-prog=PATH
1571 path to pkg-config for finding GTK and librsvg
1572 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1573 /usr/lib, or /usr/lib64 on some platforms.
1574 --with-gnustep-conf=PATH
1575 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1576 or /etc/GNUstep/GNUstep.conf
1577 --with-x use the X Window System
1578
1579 Some influential environment variables:
1580 CC C compiler command
1581 CFLAGS C compiler flags
1582 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1583 nonstandard directory <lib dir>
1584 LIBS libraries to pass to the linker, e.g. -l<library>
1585 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1586 you have headers in a nonstandard directory <include dir>
1587 CPP C preprocessor
1588 XMKMF Path to xmkmf, Makefile generator for X Window System
1589
1590 Use these variables to override the choices made by `configure' or to help
1591 it to find libraries and programs with nonstandard names/locations.
1592
1593 _ACEOF
1594 ac_status=$?
1595 fi
1596
1597 if test "$ac_init_help" = "recursive"; then
1598 # If there are subdirs, report their specific --help.
1599 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1600 test -d "$ac_dir" ||
1601 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1602 continue
1603 ac_builddir=.
1604
1605 case "$ac_dir" in
1606 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1607 *)
1608 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1609 # A ".." for each directory in $ac_dir_suffix.
1610 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1611 case $ac_top_builddir_sub in
1612 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1614 esac ;;
1615 esac
1616 ac_abs_top_builddir=$ac_pwd
1617 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1618 # for backward compatibility:
1619 ac_top_builddir=$ac_top_build_prefix
1620
1621 case $srcdir in
1622 .) # We are building in place.
1623 ac_srcdir=.
1624 ac_top_srcdir=$ac_top_builddir_sub
1625 ac_abs_top_srcdir=$ac_pwd ;;
1626 [\\/]* | ?:[\\/]* ) # Absolute name.
1627 ac_srcdir=$srcdir$ac_dir_suffix;
1628 ac_top_srcdir=$srcdir
1629 ac_abs_top_srcdir=$srcdir ;;
1630 *) # Relative name.
1631 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1632 ac_top_srcdir=$ac_top_build_prefix$srcdir
1633 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1634 esac
1635 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1636
1637 cd "$ac_dir" || { ac_status=$?; continue; }
1638 # Check for guested configure.
1639 if test -f "$ac_srcdir/configure.gnu"; then
1640 echo &&
1641 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1642 elif test -f "$ac_srcdir/configure"; then
1643 echo &&
1644 $SHELL "$ac_srcdir/configure" --help=recursive
1645 else
1646 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1647 fi || ac_status=$?
1648 cd "$ac_pwd" || { ac_status=$?; break; }
1649 done
1650 fi
1651
1652 test -n "$ac_init_help" && exit $ac_status
1653 if $ac_init_version; then
1654 cat <<\_ACEOF
1655 emacs configure 24.0.50
1656 generated by GNU Autoconf 2.62
1657
1658 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1659 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1660 This configure script is free software; the Free Software Foundation
1661 gives unlimited permission to copy, distribute and modify it.
1662 _ACEOF
1663 exit
1664 fi
1665 cat >config.log <<_ACEOF
1666 This file contains any messages produced by compilers while
1667 running configure, to aid debugging if configure makes a mistake.
1668
1669 It was created by emacs $as_me 24.0.50, which was
1670 generated by GNU Autoconf 2.62. Invocation command line was
1671
1672 $ $0 $@
1673
1674 _ACEOF
1675 exec 5>>config.log
1676 {
1677 cat <<_ASUNAME
1678 ## --------- ##
1679 ## Platform. ##
1680 ## --------- ##
1681
1682 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1683 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1684 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1685 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1686 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1687
1688 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1689 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1690
1691 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1692 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1693 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1694 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1695 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1696 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1697 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1698
1699 _ASUNAME
1700
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 for as_dir in $PATH
1703 do
1704 IFS=$as_save_IFS
1705 test -z "$as_dir" && as_dir=.
1706 $as_echo "PATH: $as_dir"
1707 done
1708 IFS=$as_save_IFS
1709
1710 } >&5
1711
1712 cat >&5 <<_ACEOF
1713
1714
1715 ## ----------- ##
1716 ## Core tests. ##
1717 ## ----------- ##
1718
1719 _ACEOF
1720
1721
1722 # Keep a trace of the command line.
1723 # Strip out --no-create and --no-recursion so they do not pile up.
1724 # Strip out --silent because we don't want to record it for future runs.
1725 # Also quote any args containing shell meta-characters.
1726 # Make two passes to allow for proper duplicate-argument suppression.
1727 ac_configure_args=
1728 ac_configure_args0=
1729 ac_configure_args1=
1730 ac_must_keep_next=false
1731 for ac_pass in 1 2
1732 do
1733 for ac_arg
1734 do
1735 case $ac_arg in
1736 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1737 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1738 | -silent | --silent | --silen | --sile | --sil)
1739 continue ;;
1740 *\'*)
1741 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1742 esac
1743 case $ac_pass in
1744 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1745 2)
1746 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1747 if test $ac_must_keep_next = true; then
1748 ac_must_keep_next=false # Got value, back to normal.
1749 else
1750 case $ac_arg in
1751 *=* | --config-cache | -C | -disable-* | --disable-* \
1752 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1753 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1754 | -with-* | --with-* | -without-* | --without-* | --x)
1755 case "$ac_configure_args0 " in
1756 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1757 esac
1758 ;;
1759 -* ) ac_must_keep_next=true ;;
1760 esac
1761 fi
1762 ac_configure_args="$ac_configure_args '$ac_arg'"
1763 ;;
1764 esac
1765 done
1766 done
1767 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1768 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1769
1770 # When interrupted or exit'd, cleanup temporary files, and complete
1771 # config.log. We remove comments because anyway the quotes in there
1772 # would cause problems or look ugly.
1773 # WARNING: Use '\'' to represent an apostrophe within the trap.
1774 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1775 trap 'exit_status=$?
1776 # Save into config.log some information that might help in debugging.
1777 {
1778 echo
1779
1780 cat <<\_ASBOX
1781 ## ---------------- ##
1782 ## Cache variables. ##
1783 ## ---------------- ##
1784 _ASBOX
1785 echo
1786 # The following way of writing the cache mishandles newlines in values,
1787 (
1788 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1789 eval ac_val=\$$ac_var
1790 case $ac_val in #(
1791 *${as_nl}*)
1792 case $ac_var in #(
1793 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1794 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1795 esac
1796 case $ac_var in #(
1797 _ | IFS | as_nl) ;; #(
1798 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1799 *) $as_unset $ac_var ;;
1800 esac ;;
1801 esac
1802 done
1803 (set) 2>&1 |
1804 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1805 *${as_nl}ac_space=\ *)
1806 sed -n \
1807 "s/'\''/'\''\\\\'\'''\''/g;
1808 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1809 ;; #(
1810 *)
1811 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1812 ;;
1813 esac |
1814 sort
1815 )
1816 echo
1817
1818 cat <<\_ASBOX
1819 ## ----------------- ##
1820 ## Output variables. ##
1821 ## ----------------- ##
1822 _ASBOX
1823 echo
1824 for ac_var in $ac_subst_vars
1825 do
1826 eval ac_val=\$$ac_var
1827 case $ac_val in
1828 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1829 esac
1830 $as_echo "$ac_var='\''$ac_val'\''"
1831 done | sort
1832 echo
1833
1834 if test -n "$ac_subst_files"; then
1835 cat <<\_ASBOX
1836 ## ------------------- ##
1837 ## File substitutions. ##
1838 ## ------------------- ##
1839 _ASBOX
1840 echo
1841 for ac_var in $ac_subst_files
1842 do
1843 eval ac_val=\$$ac_var
1844 case $ac_val in
1845 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1846 esac
1847 $as_echo "$ac_var='\''$ac_val'\''"
1848 done | sort
1849 echo
1850 fi
1851
1852 if test -s confdefs.h; then
1853 cat <<\_ASBOX
1854 ## ----------- ##
1855 ## confdefs.h. ##
1856 ## ----------- ##
1857 _ASBOX
1858 echo
1859 cat confdefs.h
1860 echo
1861 fi
1862 test "$ac_signal" != 0 &&
1863 $as_echo "$as_me: caught signal $ac_signal"
1864 $as_echo "$as_me: exit $exit_status"
1865 } >&5
1866 rm -f core *.core core.conftest.* &&
1867 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1868 exit $exit_status
1869 ' 0
1870 for ac_signal in 1 2 13 15; do
1871 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1872 done
1873 ac_signal=0
1874
1875 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1876 rm -f -r conftest* confdefs.h
1877
1878 # Predefined preprocessor variables.
1879
1880 cat >>confdefs.h <<_ACEOF
1881 #define PACKAGE_NAME "$PACKAGE_NAME"
1882 _ACEOF
1883
1884
1885 cat >>confdefs.h <<_ACEOF
1886 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1887 _ACEOF
1888
1889
1890 cat >>confdefs.h <<_ACEOF
1891 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1892 _ACEOF
1893
1894
1895 cat >>confdefs.h <<_ACEOF
1896 #define PACKAGE_STRING "$PACKAGE_STRING"
1897 _ACEOF
1898
1899
1900 cat >>confdefs.h <<_ACEOF
1901 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1902 _ACEOF
1903
1904
1905 # Let the site file select an alternate cache file if it wants to.
1906 # Prefer an explicitly selected file to automatically selected ones.
1907 ac_site_file1=NONE
1908 ac_site_file2=NONE
1909 if test -n "$CONFIG_SITE"; then
1910 ac_site_file1=$CONFIG_SITE
1911 elif test "x$prefix" != xNONE; then
1912 ac_site_file1=$prefix/share/config.site
1913 ac_site_file2=$prefix/etc/config.site
1914 else
1915 ac_site_file1=$ac_default_prefix/share/config.site
1916 ac_site_file2=$ac_default_prefix/etc/config.site
1917 fi
1918 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1919 do
1920 test "x$ac_site_file" = xNONE && continue
1921 if test -r "$ac_site_file"; then
1922 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1923 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1924 sed 's/^/| /' "$ac_site_file" >&5
1925 . "$ac_site_file"
1926 fi
1927 done
1928
1929 if test -r "$cache_file"; then
1930 # Some versions of bash will fail to source /dev/null (special
1931 # files actually), so we avoid doing that.
1932 if test -f "$cache_file"; then
1933 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1934 $as_echo "$as_me: loading cache $cache_file" >&6;}
1935 case $cache_file in
1936 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1937 *) . "./$cache_file";;
1938 esac
1939 fi
1940 else
1941 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1942 $as_echo "$as_me: creating cache $cache_file" >&6;}
1943 >$cache_file
1944 fi
1945
1946 ac_header_list="$ac_header_list sys/time.h"
1947 ac_header_list="$ac_header_list unistd.h"
1948 ac_func_list="$ac_func_list alarm"
1949 # Check that the precious variables saved in the cache have kept the same
1950 # value.
1951 ac_cache_corrupted=false
1952 for ac_var in $ac_precious_vars; do
1953 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1954 eval ac_new_set=\$ac_env_${ac_var}_set
1955 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1956 eval ac_new_val=\$ac_env_${ac_var}_value
1957 case $ac_old_set,$ac_new_set in
1958 set,)
1959 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1960 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1961 ac_cache_corrupted=: ;;
1962 ,set)
1963 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1964 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1965 ac_cache_corrupted=: ;;
1966 ,);;
1967 *)
1968 if test "x$ac_old_val" != "x$ac_new_val"; then
1969 # differences in whitespace do not lead to failure.
1970 ac_old_val_w=`echo x $ac_old_val`
1971 ac_new_val_w=`echo x $ac_new_val`
1972 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1973 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1974 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1975 ac_cache_corrupted=:
1976 else
1977 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1978 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1979 eval $ac_var=\$ac_old_val
1980 fi
1981 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1982 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1983 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1984 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1985 fi;;
1986 esac
1987 # Pass precious variables to config.status.
1988 if test "$ac_new_set" = set; then
1989 case $ac_new_val in
1990 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1991 *) ac_arg=$ac_var=$ac_new_val ;;
1992 esac
1993 case " $ac_configure_args " in
1994 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1995 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1996 esac
1997 fi
1998 done
1999 if $ac_cache_corrupted; then
2000 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2001 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2002 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2003 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2004 { (exit 1); exit 1; }; }
2005 fi
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031 ac_ext=c
2032 ac_cpp='$CPP $CPPFLAGS'
2033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2036
2037
2038 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2039
2040
2041
2042 test "$program_prefix" != NONE &&
2043 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2044 # Use a double $ so make ignores it.
2045 test "$program_suffix" != NONE &&
2046 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2047 # Double any \ or $.
2048 # By default was `s,x,x', remove it if useless.
2049 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2050 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2051
2052
2053 lispdir='${datadir}/emacs/${version}/lisp'
2054 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2055 '${datadir}/emacs/site-lisp'
2056 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2057 etcdir='${datadir}/emacs/${version}/etc'
2058 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2059 docdir='${datadir}/emacs/${version}/etc'
2060 gamedir='${localstatedir}/games/emacs'
2061
2062 gameuser=games
2063
2064
2065
2066
2067 # Check whether --with-pop was given.
2068 if test "${with_pop+set}" = set; then
2069 withval=$with_pop;
2070 else
2071 with_pop=yes
2072 fi
2073
2074 if test "$with_pop" = yes; then
2075 cat >>confdefs.h <<\_ACEOF
2076 #define MAIL_USE_POP 1
2077 _ACEOF
2078
2079 fi
2080
2081
2082
2083 # Check whether --with-kerberos was given.
2084 if test "${with_kerberos+set}" = set; then
2085 withval=$with_kerberos;
2086 else
2087 with_kerberos=no
2088 fi
2089
2090 if test "$with_kerberos" != no; then
2091 cat >>confdefs.h <<\_ACEOF
2092 #define KERBEROS 1
2093 _ACEOF
2094
2095 fi
2096
2097
2098
2099 # Check whether --with-kerberos5 was given.
2100 if test "${with_kerberos5+set}" = set; then
2101 withval=$with_kerberos5;
2102 else
2103 with_kerberos5=no
2104 fi
2105
2106 if test "${with_kerberos5}" != no; then
2107 if test "${with_kerberos}" = no; then
2108 with_kerberos=yes
2109 cat >>confdefs.h <<\_ACEOF
2110 #define KERBEROS 1
2111 _ACEOF
2112
2113 fi
2114
2115 cat >>confdefs.h <<\_ACEOF
2116 #define KERBEROS5 1
2117 _ACEOF
2118
2119 fi
2120
2121
2122 # Check whether --with-hesiod was given.
2123 if test "${with_hesiod+set}" = set; then
2124 withval=$with_hesiod;
2125 else
2126 with_hesiod=no
2127 fi
2128
2129 if test "$with_hesiod" != no; then
2130
2131 cat >>confdefs.h <<\_ACEOF
2132 #define HESIOD 1
2133 _ACEOF
2134
2135 fi
2136
2137
2138 # Check whether --with-mmdf was given.
2139 if test "${with_mmdf+set}" = set; then
2140 withval=$with_mmdf;
2141 else
2142 with_mmdf=no
2143 fi
2144
2145 if test "$with_mmdf" != no; then
2146
2147 cat >>confdefs.h <<\_ACEOF
2148 #define MAIL_USE_MMDF 1
2149 _ACEOF
2150
2151 fi
2152
2153
2154 # Check whether --with-mail-unlink was given.
2155 if test "${with_mail_unlink+set}" = set; then
2156 withval=$with_mail_unlink;
2157 else
2158 with_mail_unlink=no
2159 fi
2160
2161 if test "$with_mail_unlink" != no; then
2162
2163 cat >>confdefs.h <<\_ACEOF
2164 #define MAIL_UNLINK_SPOOL 1
2165 _ACEOF
2166
2167 fi
2168
2169
2170 # Check whether --with-mailhost was given.
2171 if test "${with_mailhost+set}" = set; then
2172 withval=$with_mailhost;
2173 cat >>confdefs.h <<_ACEOF
2174 #define MAILHOST "$withval"
2175 _ACEOF
2176
2177 fi
2178
2179
2180
2181 # Check whether --with-sound was given.
2182 if test "${with_sound+set}" = set; then
2183 withval=$with_sound;
2184 else
2185 with_sound=yes
2186 fi
2187
2188
2189
2190 # Check whether --with-sync-input was given.
2191 if test "${with_sync_input+set}" = set; then
2192 withval=$with_sync_input;
2193 else
2194 with_sync_input=yes
2195 fi
2196
2197 if test "$with_sync_input" = yes; then
2198
2199 cat >>confdefs.h <<\_ACEOF
2200 #define SYNC_INPUT 1
2201 _ACEOF
2202
2203 fi
2204
2205
2206 # Check whether --with-x-toolkit was given.
2207 if test "${with_x_toolkit+set}" = set; then
2208 withval=$with_x_toolkit; case "${withval}" in
2209 y | ye | yes ) val=gtk ;;
2210 n | no ) val=no ;;
2211 l | lu | luc | luci | lucid ) val=lucid ;;
2212 a | at | ath | athe | athen | athena ) val=athena ;;
2213 m | mo | mot | moti | motif ) val=motif ;;
2214 g | gt | gtk ) val=gtk ;;
2215 * )
2216 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2217 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2218 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2219 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2220 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2221 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2222 { (exit 1); exit 1; }; }
2223 ;;
2224 esac
2225 with_x_toolkit=$val
2226
2227 fi
2228
2229
2230
2231 # Check whether --with-xpm was given.
2232 if test "${with_xpm+set}" = set; then
2233 withval=$with_xpm;
2234 else
2235 with_xpm=yes
2236 fi
2237
2238
2239 # Check whether --with-jpeg was given.
2240 if test "${with_jpeg+set}" = set; then
2241 withval=$with_jpeg;
2242 else
2243 with_jpeg=yes
2244 fi
2245
2246
2247 # Check whether --with-tiff was given.
2248 if test "${with_tiff+set}" = set; then
2249 withval=$with_tiff;
2250 else
2251 with_tiff=yes
2252 fi
2253
2254
2255 # Check whether --with-gif was given.
2256 if test "${with_gif+set}" = set; then
2257 withval=$with_gif;
2258 else
2259 with_gif=yes
2260 fi
2261
2262
2263 # Check whether --with-png was given.
2264 if test "${with_png+set}" = set; then
2265 withval=$with_png;
2266 else
2267 with_png=yes
2268 fi
2269
2270
2271 # Check whether --with-rsvg was given.
2272 if test "${with_rsvg+set}" = set; then
2273 withval=$with_rsvg;
2274 else
2275 with_rsvg=yes
2276 fi
2277
2278
2279
2280 # Check whether --with-xft was given.
2281 if test "${with_xft+set}" = set; then
2282 withval=$with_xft;
2283 else
2284 with_xft=yes
2285 fi
2286
2287
2288 # Check whether --with-libotf was given.
2289 if test "${with_libotf+set}" = set; then
2290 withval=$with_libotf;
2291 else
2292 with_libotf=yes
2293 fi
2294
2295
2296 # Check whether --with-m17n-flt was given.
2297 if test "${with_m17n_flt+set}" = set; then
2298 withval=$with_m17n_flt;
2299 else
2300 with_m17n_flt=yes
2301 fi
2302
2303
2304
2305 # Check whether --with-toolkit-scroll-bars was given.
2306 if test "${with_toolkit_scroll_bars+set}" = set; then
2307 withval=$with_toolkit_scroll_bars;
2308 else
2309 with_toolkit_scroll_bars=yes
2310 fi
2311
2312
2313 # Check whether --with-xaw3d was given.
2314 if test "${with_xaw3d+set}" = set; then
2315 withval=$with_xaw3d;
2316 else
2317 with_xaw3d=yes
2318 fi
2319
2320
2321 # Check whether --with-xim was given.
2322 if test "${with_xim+set}" = set; then
2323 withval=$with_xim;
2324 else
2325 with_xim=yes
2326 fi
2327
2328
2329 # Check whether --with-ns was given.
2330 if test "${with_ns+set}" = set; then
2331 withval=$with_ns;
2332 else
2333 with_ns=no
2334 fi
2335
2336
2337
2338 # Check whether --with-gpm was given.
2339 if test "${with_gpm+set}" = set; then
2340 withval=$with_gpm;
2341 else
2342 with_gpm=yes
2343 fi
2344
2345
2346 # Check whether --with-dbus was given.
2347 if test "${with_dbus+set}" = set; then
2348 withval=$with_dbus;
2349 else
2350 with_dbus=yes
2351 fi
2352
2353
2354 # Check whether --with-gconf was given.
2355 if test "${with_gconf+set}" = set; then
2356 withval=$with_gconf;
2357 else
2358 with_gconf=yes
2359 fi
2360
2361
2362 # Check whether --with-selinux was given.
2363 if test "${with_selinux+set}" = set; then
2364 withval=$with_selinux;
2365 else
2366 with_selinux=yes
2367 fi
2368
2369
2370 ## For the times when you want to build Emacs but don't have
2371 ## a suitable makeinfo, and can live without the manuals.
2372
2373 # Check whether --with-makeinfo was given.
2374 if test "${with_makeinfo+set}" = set; then
2375 withval=$with_makeinfo;
2376 else
2377 with_makeinfo=yes
2378 fi
2379
2380
2381
2382 # Check whether --with-gtk was given.
2383 if test "${with_gtk+set}" = set; then
2384 withval=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2385 specify a toolkit." >&5
2386 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2387 specify a toolkit." >&2;}
2388 { (exit 1); exit 1; }; }
2389 fi
2390
2391
2392
2393 # Check whether --with-gcc was given.
2394 if test "${with_gcc+set}" = set; then
2395 withval=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2396 variable to specify a compiler." >&5
2397 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2398 variable to specify a compiler." >&2;}
2399 { (exit 1); exit 1; }; }
2400 fi
2401
2402
2403
2404 # Check whether --with-pkg-config-prog was given.
2405 if test "${with_pkg_config_prog+set}" = set; then
2406 withval=$with_pkg_config_prog;
2407 fi
2408
2409 if test "X${with_pkg_config_prog}" != X; then
2410 if test "${with_pkg_config_prog}" != yes; then
2411 PKG_CONFIG="${with_pkg_config_prog}"
2412 fi
2413 fi
2414
2415 CRT_DIR=
2416
2417 # Check whether --with-crt-dir was given.
2418 if test "${with_crt_dir+set}" = set; then
2419 withval=$with_crt_dir;
2420 fi
2421
2422 CRT_DIR="${with_crt_dir}"
2423
2424
2425 # Check whether --with-gnustep-conf was given.
2426 if test "${with_gnustep_conf+set}" = set; then
2427 withval=$with_gnustep_conf;
2428 fi
2429
2430 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2431 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2432 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2433 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2434
2435 # Check whether --enable-ns-self-contained was given.
2436 if test "${enable_ns_self_contained+set}" = set; then
2437 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2438 else
2439 EN_NS_SELF_CONTAINED=yes
2440 fi
2441
2442
2443 # Check whether --enable-asserts was given.
2444 if test "${enable_asserts+set}" = set; then
2445 enableval=$enable_asserts; USE_XASSERTS=$enableval
2446 else
2447 USE_XASSERTS=no
2448 fi
2449
2450
2451 # Check whether --enable-maintainer-mode was given.
2452 if test "${enable_maintainer_mode+set}" = set; then
2453 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2454 else
2455 USE_MAINTAINER_MODE=no
2456 fi
2457
2458 if test $USE_MAINTAINER_MODE = yes; then
2459 MAINT=
2460 else
2461 MAINT=#
2462 fi
2463
2464
2465 # Check whether --enable-locallisppath was given.
2466 if test "${enable_locallisppath+set}" = set; then
2467 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2468 locallisppath=
2469 elif test "${enableval}" != "yes"; then
2470 locallisppath=${enableval}
2471 fi
2472 fi
2473
2474
2475 # Check whether --enable-checking was given.
2476 if test "${enable_checking+set}" = set; then
2477 enableval=$enable_checking; ac_checking_flags="${enableval}"
2478 fi
2479
2480 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2481 for check in $ac_checking_flags
2482 do
2483 case $check in
2484 # these set all the flags to specific states
2485 yes) ac_enable_checking=1 ;;
2486 no) ac_enable_checking= ;
2487 ac_gc_check_stringbytes= ;
2488 ac_gc_check_string_overrun= ;
2489 ac_gc_check_string_free_list= ;
2490 ac_xmalloc_overrun= ;
2491 ac_gc_check_cons_list= ;;
2492 all) ac_enable_checking=1 ;
2493 ac_gc_check_stringbytes=1 ;
2494 ac_gc_check_string_overrun=1 ;
2495 ac_gc_check_string_free_list=1 ;
2496 ac_xmalloc_overrun=1 ;
2497 ac_gc_check_cons_list=1 ;;
2498 # these enable particular checks
2499 stringbytes) ac_gc_check_stringbytes=1 ;;
2500 stringoverrun) ac_gc_check_string_overrun=1 ;;
2501 stringfreelist) ac_gc_check_string_free_list=1 ;;
2502 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2503 conslist) ac_gc_check_cons_list=1 ;;
2504 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2505 $as_echo "$as_me: error: unknown check category $check" >&2;}
2506 { (exit 1); exit 1; }; } ;;
2507 esac
2508 done
2509 IFS="$ac_save_IFS"
2510
2511 if test x$ac_enable_checking != x ; then
2512
2513 cat >>confdefs.h <<\_ACEOF
2514 #define ENABLE_CHECKING 1
2515 _ACEOF
2516
2517 fi
2518 if test x$ac_gc_check_stringbytes != x ; then
2519
2520 cat >>confdefs.h <<\_ACEOF
2521 #define GC_CHECK_STRING_BYTES 1
2522 _ACEOF
2523
2524 fi
2525 if test x$ac_gc_check_stringoverrun != x ; then
2526
2527 cat >>confdefs.h <<\_ACEOF
2528 #define GC_CHECK_STRING_OVERRUN 1
2529 _ACEOF
2530
2531 fi
2532 if test x$ac_gc_check_string_free_list != x ; then
2533
2534 cat >>confdefs.h <<\_ACEOF
2535 #define GC_CHECK_STRING_FREE_LIST 1
2536 _ACEOF
2537
2538 fi
2539 if test x$ac_xmalloc_overrun != x ; then
2540
2541 cat >>confdefs.h <<\_ACEOF
2542 #define XMALLOC_OVERRUN_CHECK 1
2543 _ACEOF
2544
2545 fi
2546 if test x$ac_gc_check_cons_list != x ; then
2547
2548 cat >>confdefs.h <<\_ACEOF
2549 #define GC_CHECK_CONS_LIST 1
2550 _ACEOF
2551
2552 fi
2553
2554 # Check whether --enable-profiling was given.
2555 if test "${enable_profiling+set}" = set; then
2556 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2557 fi
2558
2559 if test x$ac_enable_profiling != x ; then
2560 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2561 PROFILING_LDFLAGS="-pg"
2562 else
2563 PROFILING_CFLAGS=
2564 PROFILING_LDFLAGS=
2565 fi
2566
2567 # Check whether --enable-autodepend was given.
2568 if test "${enable_autodepend+set}" = set; then
2569 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2570 else
2571 ac_enable_autodepend=yes
2572 fi
2573
2574
2575 #### Make srcdir absolute, if it isn't already. It's important to
2576 #### avoid running the path through pwd unnecessarily, since pwd can
2577 #### give you automounter prefixes, which can go away. We do all this
2578 #### so Emacs can find its files when run uninstalled.
2579 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2580 unset CDPATH
2581 case "${srcdir}" in
2582 /* ) ;;
2583 . )
2584 ## We may be able to use the $PWD environment variable to make this
2585 ## absolute. But sometimes PWD is inaccurate.
2586 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2587 ## but that tested only for a well-formed and valid PWD,
2588 ## it did not object when PWD was well-formed and valid but just wrong.
2589 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2590 then
2591 srcdir="$PWD"
2592 else
2593 srcdir="`(cd ${srcdir}; pwd)`"
2594 fi
2595 ;;
2596 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2597 esac
2598
2599 #### Check if the source directory already has a configured system in it.
2600 if test `pwd` != `(cd ${srcdir} && pwd)` \
2601 && test -f "${srcdir}/src/config.h" ; then
2602 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2603 as a build directory right now; it has been configured in its own
2604 right. To configure in another directory as well, you MUST
2605 use GNU make. If you do not have GNU make, then you must
2606 now do \`make distclean' in ${srcdir},
2607 and then run $0 again." >&5
2608 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2609 as a build directory right now; it has been configured in its own
2610 right. To configure in another directory as well, you MUST
2611 use GNU make. If you do not have GNU make, then you must
2612 now do \`make distclean' in ${srcdir},
2613 and then run $0 again." >&2;}
2614 fi
2615
2616 #### Given the configuration name, set machfile and opsysfile to the
2617 #### names of the m/*.h and s/*.h files we should use.
2618
2619 ### Canonicalize the configuration name.
2620
2621 ac_aux_dir=
2622 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2623 if test -f "$ac_dir/install-sh"; then
2624 ac_aux_dir=$ac_dir
2625 ac_install_sh="$ac_aux_dir/install-sh -c"
2626 break
2627 elif test -f "$ac_dir/install.sh"; then
2628 ac_aux_dir=$ac_dir
2629 ac_install_sh="$ac_aux_dir/install.sh -c"
2630 break
2631 elif test -f "$ac_dir/shtool"; then
2632 ac_aux_dir=$ac_dir
2633 ac_install_sh="$ac_aux_dir/shtool install -c"
2634 break
2635 fi
2636 done
2637 if test -z "$ac_aux_dir"; then
2638 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2639 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2640 { (exit 1); exit 1; }; }
2641 fi
2642
2643 # These three variables are undocumented and unsupported,
2644 # and are intended to be withdrawn in a future Autoconf release.
2645 # They can cause serious problems if a builder's source tree is in a directory
2646 # whose full name contains unusual characters.
2647 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2648 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2649 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2650
2651
2652 # Make sure we can run config.sub.
2653 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2654 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2655 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2656 { (exit 1); exit 1; }; }
2657
2658 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2659 $as_echo_n "checking build system type... " >&6; }
2660 if test "${ac_cv_build+set}" = set; then
2661 $as_echo_n "(cached) " >&6
2662 else
2663 ac_build_alias=$build_alias
2664 test "x$ac_build_alias" = x &&
2665 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2666 test "x$ac_build_alias" = x &&
2667 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2668 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2669 { (exit 1); exit 1; }; }
2670 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2671 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2672 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2673 { (exit 1); exit 1; }; }
2674
2675 fi
2676 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2677 $as_echo "$ac_cv_build" >&6; }
2678 case $ac_cv_build in
2679 *-*-*) ;;
2680 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2681 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2682 { (exit 1); exit 1; }; };;
2683 esac
2684 build=$ac_cv_build
2685 ac_save_IFS=$IFS; IFS='-'
2686 set x $ac_cv_build
2687 shift
2688 build_cpu=$1
2689 build_vendor=$2
2690 shift; shift
2691 # Remember, the first character of IFS is used to create $*,
2692 # except with old shells:
2693 build_os=$*
2694 IFS=$ac_save_IFS
2695 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2696
2697
2698 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2699 $as_echo_n "checking host system type... " >&6; }
2700 if test "${ac_cv_host+set}" = set; then
2701 $as_echo_n "(cached) " >&6
2702 else
2703 if test "x$host_alias" = x; then
2704 ac_cv_host=$ac_cv_build
2705 else
2706 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2707 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2708 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2709 { (exit 1); exit 1; }; }
2710 fi
2711
2712 fi
2713 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2714 $as_echo "$ac_cv_host" >&6; }
2715 case $ac_cv_host in
2716 *-*-*) ;;
2717 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2718 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2719 { (exit 1); exit 1; }; };;
2720 esac
2721 host=$ac_cv_host
2722 ac_save_IFS=$IFS; IFS='-'
2723 set x $ac_cv_host
2724 shift
2725 host_cpu=$1
2726 host_vendor=$2
2727 shift; shift
2728 # Remember, the first character of IFS is used to create $*,
2729 # except with old shells:
2730 host_os=$*
2731 IFS=$ac_save_IFS
2732 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2733
2734
2735 canonical=$host
2736 configuration=${host_alias-${build_alias-$host}}
2737
2738
2739
2740 ### If you add support for a new configuration, add code to this
2741 ### switch statement to recognize your configuration name and select
2742 ### the appropriate operating system and machine description files.
2743
2744 ### You would hope that you could choose an m/*.h file pretty much
2745 ### based on the machine portion of the configuration name, and an s-
2746 ### file based on the operating system portion. However, it turns out
2747 ### that each m/*.h file is pretty manufacturer-specific - for
2748 ### example mips.h is MIPS
2749 ### So we basically have to have a special case for each
2750 ### configuration name.
2751 ###
2752 ### As far as handling version numbers on operating systems is
2753 ### concerned, make sure things will fail in a fixable way. If
2754 ### /etc/MACHINES doesn't say anything about version numbers, be
2755 ### prepared to handle anything reasonably. If version numbers
2756 ### matter, be sure /etc/MACHINES says something about it.
2757 ###
2758 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2759 ### "System V Release 4"; he writes, "The old convention encouraged
2760 ### confusion between `system' and `release' levels'."
2761
2762 machine='' opsys='' unported=no
2763 case "${canonical}" in
2764
2765 ## FreeBSD ports
2766 *-*-freebsd* )
2767 opsys=freebsd
2768 case "${canonical}" in
2769 alpha*-*-freebsd*) machine=alpha ;;
2770 arm*-*-freebsd*) machine=arm ;;
2771 ia64-*-freebsd*) machine=ia64 ;;
2772 sparc-*-freebsd*) machine=sparc ;;
2773 sparc64-*-freebsd*) machine=sparc ;;
2774 powerpc-*-freebsd*) machine=macppc ;;
2775 i[3456]86-*-freebsd*) machine=intel386 ;;
2776 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2777 esac
2778 ;;
2779
2780 ## FreeBSD kernel + glibc based userland
2781 *-*-kfreebsd*gnu* )
2782 opsys=gnu-kfreebsd
2783 case "${canonical}" in
2784 alpha*-*-kfreebsd*) machine=alpha ;;
2785 ia64-*-kfreebsd*) machine=ia64 ;;
2786 sparc-*-kfreebsd*) machine=sparc ;;
2787 sparc64-*-kfreebsd*) machine=sparc ;;
2788 powerpc-*-kfreebsd*) machine=macppc ;;
2789 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2790 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2791 esac
2792 ;;
2793
2794 ## NetBSD ports
2795 *-*-netbsd* )
2796 opsys=netbsd
2797 case "${canonical}" in
2798 alpha*-*-netbsd*) machine=alpha ;;
2799 i[3456]86-*-netbsd*) machine=intel386 ;;
2800 mips-*-netbsd*) machine=mips ;;
2801 mipsel-*-netbsd*) machine=mips ;;
2802 mipseb-*-netbsd*) machine=mips ;;
2803 powerpc-*-netbsd*) machine=macppc ;;
2804 sparc*-*-netbsd*) machine=sparc ;;
2805 vax-*-netbsd*) machine=vax ;;
2806 arm-*-netbsd*) machine=arm ;;
2807 x86_64-*-netbsd*) machine=amdx86-64 ;;
2808 hppa-*-netbsd*) machine=hp800 ;;
2809 m68k-*-netbsd*) machine=m68k ;;
2810 esac
2811 ;;
2812
2813 ## OpenBSD ports
2814 *-*-openbsd* )
2815 opsys=openbsd
2816 case "${canonical}" in
2817 alpha*-*-openbsd*) machine=alpha ;;
2818 arm-*-openbsd*) machine=arm ;;
2819 i386-*-openbsd*) machine=intel386 ;;
2820 powerpc-*-openbsd*) machine=macppc ;;
2821 sparc*-*-openbsd*) machine=sparc ;;
2822 vax-*-openbsd*) machine=vax ;;
2823 x86_64-*-openbsd*) machine=amdx86-64 ;;
2824 hppa-*-openbsd*) machine=hp800 ;;
2825 esac
2826 ;;
2827
2828 alpha*-*-linux-gnu* )
2829 machine=alpha opsys=gnu-linux
2830 ;;
2831
2832 arm*-*-linux-gnu* )
2833 machine=arm opsys=gnu-linux
2834 ;;
2835
2836 ## Apple Darwin / Mac OS X
2837 *-apple-darwin* )
2838 case "${canonical}" in
2839 i[3456]86-* ) machine=intel386 ;;
2840 powerpc-* ) machine=macppc ;;
2841 x86_64-* ) machine=amdx86-64 ;;
2842 * ) unported=yes ;;
2843 esac
2844 opsys=darwin
2845 # Define CPP as follows to make autoconf work correctly.
2846 CPP="${CC-cc} -E -no-cpp-precomp"
2847 # Use fink packages if available.
2848 if test -d /sw/include && test -d /sw/lib; then
2849 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2850 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2851 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2852 fi
2853 ;;
2854
2855 ## HP 9000 series 700 and 800, running HP/UX
2856 hppa*-hp-hpux10.2* )
2857 machine=hp800 opsys=hpux10-20
2858 ;;
2859 hppa*-hp-hpux1[1-9]* )
2860 machine=hp800 opsys=hpux11
2861 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2862 ;;
2863
2864 hppa*-*-linux-gnu* )
2865 machine=hp800 opsys=gnu-linux
2866 ;;
2867
2868 ## IBM machines
2869 s390-*-linux-gnu* )
2870 machine=ibms390 opsys=gnu-linux
2871 ;;
2872 s390x-*-linux-gnu* )
2873 machine=ibms390x opsys=gnu-linux
2874 ;;
2875 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2876 machine=ibmrs6000 opsys=aix4-2
2877 ;;
2878 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2879 machine=ibmrs6000 opsys=aix4-2
2880 ;;
2881 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2882 machine=ibmrs6000 opsys=aix4-2
2883 ;;
2884 rs6000-ibm-aix6* | powerpc-ibm-aix6* )
2885 machine=ibmrs6000 opsys=aix4-2
2886 ;;
2887
2888 ## Macintosh PowerPC
2889 powerpc*-*-linux-gnu* )
2890 machine=macppc opsys=gnu-linux
2891 ;;
2892
2893 ## Silicon Graphics machines
2894 ## Iris 4D
2895 mips-sgi-irix6.5 )
2896 machine=iris4d opsys=irix6-5
2897 # Without defining _LANGUAGE_C, things get masked out in the headers
2898 # so that, for instance, grepping for `free' in stdlib.h fails and
2899 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2900 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2901 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2902 ;;
2903
2904 ## Suns
2905 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2906 machine=sparc opsys=gnu-linux
2907 ;;
2908
2909 *-sun-solaris* \
2910 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
2911 | x86_64-*-solaris2* | x86_64-*-sunos5*)
2912 case "${canonical}" in
2913 i[3456]86-*-* ) machine=intel386 ;;
2914 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2915 sparc* ) machine=sparc ;;
2916 * ) unported=yes ;;
2917 esac
2918 case "${canonical}" in
2919 *-sunos5.6* | *-solaris2.6* )
2920 opsys=sol2-6
2921 NON_GNU_CPP=/usr/ccs/lib/cpp
2922 RANLIB="ar -ts"
2923 ;;
2924 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
2925 opsys=sol2-6
2926 emacs_check_sunpro_c=yes
2927 NON_GNU_CPP=/usr/ccs/lib/cpp
2928 ;;
2929 *-sunos5* | *-solaris* )
2930 opsys=sol2-10
2931 emacs_check_sunpro_c=yes
2932 NON_GNU_CPP=/usr/ccs/lib/cpp
2933 ;;
2934 esac
2935 ## Watch out for a compiler that we know will not work.
2936 case "${canonical}" in
2937 *-solaris* | *-sunos5* )
2938 if [ "x$CC" = x/usr/ucb/cc ]; then
2939 ## /usr/ucb/cc doesn't work;
2940 ## we should find some other compiler that does work.
2941 unset CC
2942 fi
2943 ;;
2944 *) ;;
2945 esac
2946 ;;
2947
2948 ## IA-64
2949 ia64*-*-linux* )
2950 machine=ia64 opsys=gnu-linux
2951 ;;
2952
2953 ## Intel 386 machines where we don't care about the manufacturer
2954 i[3456]86-*-* )
2955 machine=intel386
2956 case "${canonical}" in
2957 *-cygwin ) opsys=cygwin ;;
2958 *-darwin* ) opsys=darwin
2959 CPP="${CC-cc} -E -no-cpp-precomp"
2960 ;;
2961 *-linux-gnu* ) opsys=gnu-linux ;;
2962 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2963 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2964 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2965 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2966 esac
2967 ;;
2968
2969 ## m68k Linux-based GNU system
2970 m68k-*-linux-gnu* )
2971 machine=m68k opsys=gnu-linux
2972 ;;
2973
2974 ## Mips Linux-based GNU system
2975 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
2976 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
2977 machine=mips opsys=gnu-linux
2978 ;;
2979
2980 ## AMD x86-64 Linux-based GNU system
2981 x86_64-*-linux-gnu* )
2982 machine=amdx86-64 opsys=gnu-linux
2983 ;;
2984
2985 ## Tensilica Xtensa Linux-based GNU system
2986 xtensa*-*-linux-gnu* )
2987 machine=xtensa opsys=gnu-linux
2988 ;;
2989
2990 ## SuperH Linux-based GNU system
2991 sh[34]*-*-linux-gnu* )
2992 machine=sh3 opsys=gnu-linux
2993 ;;
2994
2995 * )
2996 unported=yes
2997 ;;
2998 esac
2999
3000 ### If the code above didn't choose an operating system, just choose
3001 ### an operating system based on the configuration name. You really
3002 ### only want to use this when you have no idea what the right
3003 ### operating system is; if you know what operating systems a machine
3004 ### runs, it's cleaner to make it explicit in the case statement
3005 ### above.
3006 if test x"${opsys}" = x; then
3007 case "${canonical}" in
3008 *-gnu* ) opsys=gnu ;;
3009 * )
3010 unported=yes
3011 ;;
3012 esac
3013 fi
3014
3015
3016
3017 if test $unported = yes; then
3018 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3019 Check \`etc/MACHINES' for recognized configuration names." >&5
3020 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3021 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3022 { (exit 1); exit 1; }; }
3023 fi
3024
3025 machfile="m/${machine}.h"
3026 opsysfile="s/${opsys}.h"
3027
3028
3029 #### Choose a compiler.
3030 test -n "$CC" && cc_specified=yes
3031
3032 # Save the value of CFLAGS that the user specified.
3033 SPECIFIED_CFLAGS="$CFLAGS"
3034
3035 ac_ext=c
3036 ac_cpp='$CPP $CPPFLAGS'
3037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3040 if test -n "$ac_tool_prefix"; then
3041 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3042 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3043 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3044 $as_echo_n "checking for $ac_word... " >&6; }
3045 if test "${ac_cv_prog_CC+set}" = set; then
3046 $as_echo_n "(cached) " >&6
3047 else
3048 if test -n "$CC"; then
3049 ac_cv_prog_CC="$CC" # Let the user override the test.
3050 else
3051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052 for as_dir in $PATH
3053 do
3054 IFS=$as_save_IFS
3055 test -z "$as_dir" && as_dir=.
3056 for ac_exec_ext in '' $ac_executable_extensions; do
3057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3058 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3059 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3060 break 2
3061 fi
3062 done
3063 done
3064 IFS=$as_save_IFS
3065
3066 fi
3067 fi
3068 CC=$ac_cv_prog_CC
3069 if test -n "$CC"; then
3070 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3071 $as_echo "$CC" >&6; }
3072 else
3073 { $as_echo "$as_me:$LINENO: result: no" >&5
3074 $as_echo "no" >&6; }
3075 fi
3076
3077
3078 fi
3079 if test -z "$ac_cv_prog_CC"; then
3080 ac_ct_CC=$CC
3081 # Extract the first word of "gcc", so it can be a program name with args.
3082 set dummy gcc; ac_word=$2
3083 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3084 $as_echo_n "checking for $ac_word... " >&6; }
3085 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3086 $as_echo_n "(cached) " >&6
3087 else
3088 if test -n "$ac_ct_CC"; then
3089 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3090 else
3091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 for as_dir in $PATH
3093 do
3094 IFS=$as_save_IFS
3095 test -z "$as_dir" && as_dir=.
3096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3098 ac_cv_prog_ac_ct_CC="gcc"
3099 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 break 2
3101 fi
3102 done
3103 done
3104 IFS=$as_save_IFS
3105
3106 fi
3107 fi
3108 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3109 if test -n "$ac_ct_CC"; then
3110 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3111 $as_echo "$ac_ct_CC" >&6; }
3112 else
3113 { $as_echo "$as_me:$LINENO: result: no" >&5
3114 $as_echo "no" >&6; }
3115 fi
3116
3117 if test "x$ac_ct_CC" = x; then
3118 CC=""
3119 else
3120 case $cross_compiling:$ac_tool_warned in
3121 yes:)
3122 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3123 whose name does not start with the host triplet. If you think this
3124 configuration is useful to you, please write to autoconf@gnu.org." >&5
3125 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3126 whose name does not start with the host triplet. If you think this
3127 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3128 ac_tool_warned=yes ;;
3129 esac
3130 CC=$ac_ct_CC
3131 fi
3132 else
3133 CC="$ac_cv_prog_CC"
3134 fi
3135
3136 if test -z "$CC"; then
3137 if test -n "$ac_tool_prefix"; then
3138 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3139 set dummy ${ac_tool_prefix}cc; ac_word=$2
3140 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3141 $as_echo_n "checking for $ac_word... " >&6; }
3142 if test "${ac_cv_prog_CC+set}" = set; then
3143 $as_echo_n "(cached) " >&6
3144 else
3145 if test -n "$CC"; then
3146 ac_cv_prog_CC="$CC" # Let the user override the test.
3147 else
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 for as_dir in $PATH
3150 do
3151 IFS=$as_save_IFS
3152 test -z "$as_dir" && as_dir=.
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3155 ac_cv_prog_CC="${ac_tool_prefix}cc"
3156 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 break 2
3158 fi
3159 done
3160 done
3161 IFS=$as_save_IFS
3162
3163 fi
3164 fi
3165 CC=$ac_cv_prog_CC
3166 if test -n "$CC"; then
3167 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3168 $as_echo "$CC" >&6; }
3169 else
3170 { $as_echo "$as_me:$LINENO: result: no" >&5
3171 $as_echo "no" >&6; }
3172 fi
3173
3174
3175 fi
3176 fi
3177 if test -z "$CC"; then
3178 # Extract the first word of "cc", so it can be a program name with args.
3179 set dummy cc; ac_word=$2
3180 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3181 $as_echo_n "checking for $ac_word... " >&6; }
3182 if test "${ac_cv_prog_CC+set}" = set; then
3183 $as_echo_n "(cached) " >&6
3184 else
3185 if test -n "$CC"; then
3186 ac_cv_prog_CC="$CC" # Let the user override the test.
3187 else
3188 ac_prog_rejected=no
3189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190 for as_dir in $PATH
3191 do
3192 IFS=$as_save_IFS
3193 test -z "$as_dir" && as_dir=.
3194 for ac_exec_ext in '' $ac_executable_extensions; do
3195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3196 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3197 ac_prog_rejected=yes
3198 continue
3199 fi
3200 ac_cv_prog_CC="cc"
3201 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3202 break 2
3203 fi
3204 done
3205 done
3206 IFS=$as_save_IFS
3207
3208 if test $ac_prog_rejected = yes; then
3209 # We found a bogon in the path, so make sure we never use it.
3210 set dummy $ac_cv_prog_CC
3211 shift
3212 if test $# != 0; then
3213 # We chose a different compiler from the bogus one.
3214 # However, it has the same basename, so the bogon will be chosen
3215 # first if we set CC to just the basename; use the full file name.
3216 shift
3217 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3218 fi
3219 fi
3220 fi
3221 fi
3222 CC=$ac_cv_prog_CC
3223 if test -n "$CC"; then
3224 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3225 $as_echo "$CC" >&6; }
3226 else
3227 { $as_echo "$as_me:$LINENO: result: no" >&5
3228 $as_echo "no" >&6; }
3229 fi
3230
3231
3232 fi
3233 if test -z "$CC"; then
3234 if test -n "$ac_tool_prefix"; then
3235 for ac_prog in cl.exe
3236 do
3237 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3238 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3239 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3240 $as_echo_n "checking for $ac_word... " >&6; }
3241 if test "${ac_cv_prog_CC+set}" = set; then
3242 $as_echo_n "(cached) " >&6
3243 else
3244 if test -n "$CC"; then
3245 ac_cv_prog_CC="$CC" # Let the user override the test.
3246 else
3247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 for as_dir in $PATH
3249 do
3250 IFS=$as_save_IFS
3251 test -z "$as_dir" && as_dir=.
3252 for ac_exec_ext in '' $ac_executable_extensions; do
3253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3254 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3255 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3256 break 2
3257 fi
3258 done
3259 done
3260 IFS=$as_save_IFS
3261
3262 fi
3263 fi
3264 CC=$ac_cv_prog_CC
3265 if test -n "$CC"; then
3266 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3267 $as_echo "$CC" >&6; }
3268 else
3269 { $as_echo "$as_me:$LINENO: result: no" >&5
3270 $as_echo "no" >&6; }
3271 fi
3272
3273
3274 test -n "$CC" && break
3275 done
3276 fi
3277 if test -z "$CC"; then
3278 ac_ct_CC=$CC
3279 for ac_prog in cl.exe
3280 do
3281 # Extract the first word of "$ac_prog", so it can be a program name with args.
3282 set dummy $ac_prog; ac_word=$2
3283 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3284 $as_echo_n "checking for $ac_word... " >&6; }
3285 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3286 $as_echo_n "(cached) " >&6
3287 else
3288 if test -n "$ac_ct_CC"; then
3289 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3290 else
3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 for as_dir in $PATH
3293 do
3294 IFS=$as_save_IFS
3295 test -z "$as_dir" && as_dir=.
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3298 ac_cv_prog_ac_ct_CC="$ac_prog"
3299 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3300 break 2
3301 fi
3302 done
3303 done
3304 IFS=$as_save_IFS
3305
3306 fi
3307 fi
3308 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3309 if test -n "$ac_ct_CC"; then
3310 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3311 $as_echo "$ac_ct_CC" >&6; }
3312 else
3313 { $as_echo "$as_me:$LINENO: result: no" >&5
3314 $as_echo "no" >&6; }
3315 fi
3316
3317
3318 test -n "$ac_ct_CC" && break
3319 done
3320
3321 if test "x$ac_ct_CC" = x; then
3322 CC=""
3323 else
3324 case $cross_compiling:$ac_tool_warned in
3325 yes:)
3326 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3327 whose name does not start with the host triplet. If you think this
3328 configuration is useful to you, please write to autoconf@gnu.org." >&5
3329 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3330 whose name does not start with the host triplet. If you think this
3331 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3332 ac_tool_warned=yes ;;
3333 esac
3334 CC=$ac_ct_CC
3335 fi
3336 fi
3337
3338 fi
3339
3340
3341 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3342 See \`config.log' for more details." >&5
3343 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3344 See \`config.log' for more details." >&2;}
3345 { (exit 1); exit 1; }; }
3346
3347 # Provide some information about the compiler.
3348 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3349 set X $ac_compile
3350 ac_compiler=$2
3351 { (ac_try="$ac_compiler --version >&5"
3352 case "(($ac_try" in
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3355 esac
3356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3357 $as_echo "$ac_try_echo") >&5
3358 (eval "$ac_compiler --version >&5") 2>&5
3359 ac_status=$?
3360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }
3362 { (ac_try="$ac_compiler -v >&5"
3363 case "(($ac_try" in
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3366 esac
3367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3368 $as_echo "$ac_try_echo") >&5
3369 (eval "$ac_compiler -v >&5") 2>&5
3370 ac_status=$?
3371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); }
3373 { (ac_try="$ac_compiler -V >&5"
3374 case "(($ac_try" in
3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3377 esac
3378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3379 $as_echo "$ac_try_echo") >&5
3380 (eval "$ac_compiler -V >&5") 2>&5
3381 ac_status=$?
3382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); }
3384
3385 cat >conftest.$ac_ext <<_ACEOF
3386 /* confdefs.h. */
3387 _ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h. */
3391
3392 int
3393 main ()
3394 {
3395
3396 ;
3397 return 0;
3398 }
3399 _ACEOF
3400 ac_clean_files_save=$ac_clean_files
3401 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3402 # Try to create an executable without -o first, disregard a.out.
3403 # It will help us diagnose broken compilers, and finding out an intuition
3404 # of exeext.
3405 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3406 $as_echo_n "checking for C compiler default output file name... " >&6; }
3407 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3408
3409 # The possible output files:
3410 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3411
3412 ac_rmfiles=
3413 for ac_file in $ac_files
3414 do
3415 case $ac_file in
3416 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3417 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3418 esac
3419 done
3420 rm -f $ac_rmfiles
3421
3422 if { (ac_try="$ac_link_default"
3423 case "(($ac_try" in
3424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425 *) ac_try_echo=$ac_try;;
3426 esac
3427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3428 $as_echo "$ac_try_echo") >&5
3429 (eval "$ac_link_default") 2>&5
3430 ac_status=$?
3431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); }; then
3433 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3434 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3435 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3436 # so that the user can short-circuit this test for compilers unknown to
3437 # Autoconf.
3438 for ac_file in $ac_files ''
3439 do
3440 test -f "$ac_file" || continue
3441 case $ac_file in
3442 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3443 ;;
3444 [ab].out )
3445 # We found the default executable, but exeext='' is most
3446 # certainly right.
3447 break;;
3448 *.* )
3449 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3450 then :; else
3451 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3452 fi
3453 # We set ac_cv_exeext here because the later test for it is not
3454 # safe: cross compilers may not add the suffix if given an `-o'
3455 # argument, so we may need to know it at that point already.
3456 # Even if this section looks crufty: it has the advantage of
3457 # actually working.
3458 break;;
3459 * )
3460 break;;
3461 esac
3462 done
3463 test "$ac_cv_exeext" = no && ac_cv_exeext=
3464
3465 else
3466 ac_file=''
3467 fi
3468
3469 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3470 $as_echo "$ac_file" >&6; }
3471 if test -z "$ac_file"; then
3472 $as_echo "$as_me: failed program was:" >&5
3473 sed 's/^/| /' conftest.$ac_ext >&5
3474
3475 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3476 See \`config.log' for more details." >&5
3477 $as_echo "$as_me: error: C compiler cannot create executables
3478 See \`config.log' for more details." >&2;}
3479 { (exit 77); exit 77; }; }
3480 fi
3481
3482 ac_exeext=$ac_cv_exeext
3483
3484 # Check that the compiler produces executables we can run. If not, either
3485 # the compiler is broken, or we cross compile.
3486 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3487 $as_echo_n "checking whether the C compiler works... " >&6; }
3488 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3489 # If not cross compiling, check that we can run a simple program.
3490 if test "$cross_compiling" != yes; then
3491 if { ac_try='./$ac_file'
3492 { (case "(($ac_try" in
3493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494 *) ac_try_echo=$ac_try;;
3495 esac
3496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3497 $as_echo "$ac_try_echo") >&5
3498 (eval "$ac_try") 2>&5
3499 ac_status=$?
3500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); }; }; then
3502 cross_compiling=no
3503 else
3504 if test "$cross_compiling" = maybe; then
3505 cross_compiling=yes
3506 else
3507 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3508 If you meant to cross compile, use \`--host'.
3509 See \`config.log' for more details." >&5
3510 $as_echo "$as_me: error: cannot run C compiled programs.
3511 If you meant to cross compile, use \`--host'.
3512 See \`config.log' for more details." >&2;}
3513 { (exit 1); exit 1; }; }
3514 fi
3515 fi
3516 fi
3517 { $as_echo "$as_me:$LINENO: result: yes" >&5
3518 $as_echo "yes" >&6; }
3519
3520 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3521 ac_clean_files=$ac_clean_files_save
3522 # Check that the compiler produces executables we can run. If not, either
3523 # the compiler is broken, or we cross compile.
3524 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3525 $as_echo_n "checking whether we are cross compiling... " >&6; }
3526 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3527 $as_echo "$cross_compiling" >&6; }
3528
3529 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3530 $as_echo_n "checking for suffix of executables... " >&6; }
3531 if { (ac_try="$ac_link"
3532 case "(($ac_try" in
3533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534 *) ac_try_echo=$ac_try;;
3535 esac
3536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3537 $as_echo "$ac_try_echo") >&5
3538 (eval "$ac_link") 2>&5
3539 ac_status=$?
3540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); }; then
3542 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3543 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3544 # work properly (i.e., refer to `conftest.exe'), while it won't with
3545 # `rm'.
3546 for ac_file in conftest.exe conftest conftest.*; do
3547 test -f "$ac_file" || continue
3548 case $ac_file in
3549 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3550 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3551 break;;
3552 * ) break;;
3553 esac
3554 done
3555 else
3556 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3557 See \`config.log' for more details." >&5
3558 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3559 See \`config.log' for more details." >&2;}
3560 { (exit 1); exit 1; }; }
3561 fi
3562
3563 rm -f conftest$ac_cv_exeext
3564 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3565 $as_echo "$ac_cv_exeext" >&6; }
3566
3567 rm -f conftest.$ac_ext
3568 EXEEXT=$ac_cv_exeext
3569 ac_exeext=$EXEEXT
3570 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3571 $as_echo_n "checking for suffix of object files... " >&6; }
3572 if test "${ac_cv_objext+set}" = set; then
3573 $as_echo_n "(cached) " >&6
3574 else
3575 cat >conftest.$ac_ext <<_ACEOF
3576 /* confdefs.h. */
3577 _ACEOF
3578 cat confdefs.h >>conftest.$ac_ext
3579 cat >>conftest.$ac_ext <<_ACEOF
3580 /* end confdefs.h. */
3581
3582 int
3583 main ()
3584 {
3585
3586 ;
3587 return 0;
3588 }
3589 _ACEOF
3590 rm -f conftest.o conftest.obj
3591 if { (ac_try="$ac_compile"
3592 case "(($ac_try" in
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3595 esac
3596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3597 $as_echo "$ac_try_echo") >&5
3598 (eval "$ac_compile") 2>&5
3599 ac_status=$?
3600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); }; then
3602 for ac_file in conftest.o conftest.obj conftest.*; do
3603 test -f "$ac_file" || continue;
3604 case $ac_file in
3605 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3606 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3607 break;;
3608 esac
3609 done
3610 else
3611 $as_echo "$as_me: failed program was:" >&5
3612 sed 's/^/| /' conftest.$ac_ext >&5
3613
3614 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3615 See \`config.log' for more details." >&5
3616 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3617 See \`config.log' for more details." >&2;}
3618 { (exit 1); exit 1; }; }
3619 fi
3620
3621 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3622 fi
3623 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3624 $as_echo "$ac_cv_objext" >&6; }
3625 OBJEXT=$ac_cv_objext
3626 ac_objext=$OBJEXT
3627 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3628 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3629 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3630 $as_echo_n "(cached) " >&6
3631 else
3632 cat >conftest.$ac_ext <<_ACEOF
3633 /* confdefs.h. */
3634 _ACEOF
3635 cat confdefs.h >>conftest.$ac_ext
3636 cat >>conftest.$ac_ext <<_ACEOF
3637 /* end confdefs.h. */
3638
3639 int
3640 main ()
3641 {
3642 #ifndef __GNUC__
3643 choke me
3644 #endif
3645
3646 ;
3647 return 0;
3648 }
3649 _ACEOF
3650 rm -f conftest.$ac_objext
3651 if { (ac_try="$ac_compile"
3652 case "(($ac_try" in
3653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654 *) ac_try_echo=$ac_try;;
3655 esac
3656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3657 $as_echo "$ac_try_echo") >&5
3658 (eval "$ac_compile") 2>conftest.er1
3659 ac_status=$?
3660 grep -v '^ *+' conftest.er1 >conftest.err
3661 rm -f conftest.er1
3662 cat conftest.err >&5
3663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); } && {
3665 test -z "$ac_c_werror_flag" ||
3666 test ! -s conftest.err
3667 } && test -s conftest.$ac_objext; then
3668 ac_compiler_gnu=yes
3669 else
3670 $as_echo "$as_me: failed program was:" >&5
3671 sed 's/^/| /' conftest.$ac_ext >&5
3672
3673 ac_compiler_gnu=no
3674 fi
3675
3676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3677 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3678
3679 fi
3680 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3681 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3682 if test $ac_compiler_gnu = yes; then
3683 GCC=yes
3684 else
3685 GCC=
3686 fi
3687 ac_test_CFLAGS=${CFLAGS+set}
3688 ac_save_CFLAGS=$CFLAGS
3689 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3690 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3691 if test "${ac_cv_prog_cc_g+set}" = set; then
3692 $as_echo_n "(cached) " >&6
3693 else
3694 ac_save_c_werror_flag=$ac_c_werror_flag
3695 ac_c_werror_flag=yes
3696 ac_cv_prog_cc_g=no
3697 CFLAGS="-g"
3698 cat >conftest.$ac_ext <<_ACEOF
3699 /* confdefs.h. */
3700 _ACEOF
3701 cat confdefs.h >>conftest.$ac_ext
3702 cat >>conftest.$ac_ext <<_ACEOF
3703 /* end confdefs.h. */
3704
3705 int
3706 main ()
3707 {
3708
3709 ;
3710 return 0;
3711 }
3712 _ACEOF
3713 rm -f conftest.$ac_objext
3714 if { (ac_try="$ac_compile"
3715 case "(($ac_try" in
3716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717 *) ac_try_echo=$ac_try;;
3718 esac
3719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3720 $as_echo "$ac_try_echo") >&5
3721 (eval "$ac_compile") 2>conftest.er1
3722 ac_status=$?
3723 grep -v '^ *+' conftest.er1 >conftest.err
3724 rm -f conftest.er1
3725 cat conftest.err >&5
3726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); } && {
3728 test -z "$ac_c_werror_flag" ||
3729 test ! -s conftest.err
3730 } && test -s conftest.$ac_objext; then
3731 ac_cv_prog_cc_g=yes
3732 else
3733 $as_echo "$as_me: failed program was:" >&5
3734 sed 's/^/| /' conftest.$ac_ext >&5
3735
3736 CFLAGS=""
3737 cat >conftest.$ac_ext <<_ACEOF
3738 /* confdefs.h. */
3739 _ACEOF
3740 cat confdefs.h >>conftest.$ac_ext
3741 cat >>conftest.$ac_ext <<_ACEOF
3742 /* end confdefs.h. */
3743
3744 int
3745 main ()
3746 {
3747
3748 ;
3749 return 0;
3750 }
3751 _ACEOF
3752 rm -f conftest.$ac_objext
3753 if { (ac_try="$ac_compile"
3754 case "(($ac_try" in
3755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756 *) ac_try_echo=$ac_try;;
3757 esac
3758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3759 $as_echo "$ac_try_echo") >&5
3760 (eval "$ac_compile") 2>conftest.er1
3761 ac_status=$?
3762 grep -v '^ *+' conftest.er1 >conftest.err
3763 rm -f conftest.er1
3764 cat conftest.err >&5
3765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); } && {
3767 test -z "$ac_c_werror_flag" ||
3768 test ! -s conftest.err
3769 } && test -s conftest.$ac_objext; then
3770 :
3771 else
3772 $as_echo "$as_me: failed program was:" >&5
3773 sed 's/^/| /' conftest.$ac_ext >&5
3774
3775 ac_c_werror_flag=$ac_save_c_werror_flag
3776 CFLAGS="-g"
3777 cat >conftest.$ac_ext <<_ACEOF
3778 /* confdefs.h. */
3779 _ACEOF
3780 cat confdefs.h >>conftest.$ac_ext
3781 cat >>conftest.$ac_ext <<_ACEOF
3782 /* end confdefs.h. */
3783
3784 int
3785 main ()
3786 {
3787
3788 ;
3789 return 0;
3790 }
3791 _ACEOF
3792 rm -f conftest.$ac_objext
3793 if { (ac_try="$ac_compile"
3794 case "(($ac_try" in
3795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796 *) ac_try_echo=$ac_try;;
3797 esac
3798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3799 $as_echo "$ac_try_echo") >&5
3800 (eval "$ac_compile") 2>conftest.er1
3801 ac_status=$?
3802 grep -v '^ *+' conftest.er1 >conftest.err
3803 rm -f conftest.er1
3804 cat conftest.err >&5
3805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); } && {
3807 test -z "$ac_c_werror_flag" ||
3808 test ! -s conftest.err
3809 } && test -s conftest.$ac_objext; then
3810 ac_cv_prog_cc_g=yes
3811 else
3812 $as_echo "$as_me: failed program was:" >&5
3813 sed 's/^/| /' conftest.$ac_ext >&5
3814
3815
3816 fi
3817
3818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3819 fi
3820
3821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3822 fi
3823
3824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3825 ac_c_werror_flag=$ac_save_c_werror_flag
3826 fi
3827 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3828 $as_echo "$ac_cv_prog_cc_g" >&6; }
3829 if test "$ac_test_CFLAGS" = set; then
3830 CFLAGS=$ac_save_CFLAGS
3831 elif test $ac_cv_prog_cc_g = yes; then
3832 if test "$GCC" = yes; then
3833 CFLAGS="-g -O2"
3834 else
3835 CFLAGS="-g"
3836 fi
3837 else
3838 if test "$GCC" = yes; then
3839 CFLAGS="-O2"
3840 else
3841 CFLAGS=
3842 fi
3843 fi
3844 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3845 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3846 if test "${ac_cv_prog_cc_c89+set}" = set; then
3847 $as_echo_n "(cached) " >&6
3848 else
3849 ac_cv_prog_cc_c89=no
3850 ac_save_CC=$CC
3851 cat >conftest.$ac_ext <<_ACEOF
3852 /* confdefs.h. */
3853 _ACEOF
3854 cat confdefs.h >>conftest.$ac_ext
3855 cat >>conftest.$ac_ext <<_ACEOF
3856 /* end confdefs.h. */
3857 #include <stdarg.h>
3858 #include <stdio.h>
3859 #include <sys/types.h>
3860 #include <sys/stat.h>
3861 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3862 struct buf { int x; };
3863 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3864 static char *e (p, i)
3865 char **p;
3866 int i;
3867 {
3868 return p[i];
3869 }
3870 static char *f (char * (*g) (char **, int), char **p, ...)
3871 {
3872 char *s;
3873 va_list v;
3874 va_start (v,p);
3875 s = g (p, va_arg (v,int));
3876 va_end (v);
3877 return s;
3878 }
3879
3880 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3881 function prototypes and stuff, but not '\xHH' hex character constants.
3882 These don't provoke an error unfortunately, instead are silently treated
3883 as 'x'. The following induces an error, until -std is added to get
3884 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3885 array size at least. It's necessary to write '\x00'==0 to get something
3886 that's true only with -std. */
3887 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3888
3889 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3890 inside strings and character constants. */
3891 #define FOO(x) 'x'
3892 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3893
3894 int test (int i, double x);
3895 struct s1 {int (*f) (int a);};
3896 struct s2 {int (*f) (double a);};
3897 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3898 int argc;
3899 char **argv;
3900 int
3901 main ()
3902 {
3903 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3904 ;
3905 return 0;
3906 }
3907 _ACEOF
3908 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3909 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3910 do
3911 CC="$ac_save_CC $ac_arg"
3912 rm -f conftest.$ac_objext
3913 if { (ac_try="$ac_compile"
3914 case "(($ac_try" in
3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3917 esac
3918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3919 $as_echo "$ac_try_echo") >&5
3920 (eval "$ac_compile") 2>conftest.er1
3921 ac_status=$?
3922 grep -v '^ *+' conftest.er1 >conftest.err
3923 rm -f conftest.er1
3924 cat conftest.err >&5
3925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); } && {
3927 test -z "$ac_c_werror_flag" ||
3928 test ! -s conftest.err
3929 } && test -s conftest.$ac_objext; then
3930 ac_cv_prog_cc_c89=$ac_arg
3931 else
3932 $as_echo "$as_me: failed program was:" >&5
3933 sed 's/^/| /' conftest.$ac_ext >&5
3934
3935
3936 fi
3937
3938 rm -f core conftest.err conftest.$ac_objext
3939 test "x$ac_cv_prog_cc_c89" != "xno" && break
3940 done
3941 rm -f conftest.$ac_ext
3942 CC=$ac_save_CC
3943
3944 fi
3945 # AC_CACHE_VAL
3946 case "x$ac_cv_prog_cc_c89" in
3947 x)
3948 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3949 $as_echo "none needed" >&6; } ;;
3950 xno)
3951 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3952 $as_echo "unsupported" >&6; } ;;
3953 *)
3954 CC="$CC $ac_cv_prog_cc_c89"
3955 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3956 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3957 esac
3958
3959
3960 ac_ext=c
3961 ac_cpp='$CPP $CPPFLAGS'
3962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3965
3966
3967 # On Suns, sometimes $CPP names a directory.
3968 if test -n "$CPP" && test -d "$CPP"; then
3969 CPP=
3970 fi
3971
3972 ## If not using gcc, and on Solaris, and no CPP specified, see if
3973 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3974 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3975 test x"$CPP" = x; then
3976 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3977 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
3978
3979 if test "${emacs_cv_sunpro_c+set}" = set; then
3980 $as_echo_n "(cached) " >&6
3981 else
3982 cat >conftest.$ac_ext <<_ACEOF
3983 /* confdefs.h. */
3984 _ACEOF
3985 cat confdefs.h >>conftest.$ac_ext
3986 cat >>conftest.$ac_ext <<_ACEOF
3987 /* end confdefs.h. */
3988
3989 int
3990 main ()
3991 {
3992 #ifndef __SUNPRO_C
3993 fail;
3994 #endif
3995
3996 ;
3997 return 0;
3998 }
3999 _ACEOF
4000 rm -f conftest.$ac_objext conftest$ac_exeext
4001 if { (ac_try="$ac_link"
4002 case "(($ac_try" in
4003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4004 *) ac_try_echo=$ac_try;;
4005 esac
4006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4007 $as_echo "$ac_try_echo") >&5
4008 (eval "$ac_link") 2>conftest.er1
4009 ac_status=$?
4010 grep -v '^ *+' conftest.er1 >conftest.err
4011 rm -f conftest.er1
4012 cat conftest.err >&5
4013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); } && {
4015 test -z "$ac_c_werror_flag" ||
4016 test ! -s conftest.err
4017 } && test -s conftest$ac_exeext && {
4018 test "$cross_compiling" = yes ||
4019 $as_test_x conftest$ac_exeext
4020 }; then
4021 emacs_cv_sunpro_c=yes
4022 else
4023 $as_echo "$as_me: failed program was:" >&5
4024 sed 's/^/| /' conftest.$ac_ext >&5
4025
4026 emacs_cv_sunpro_c=no
4027 fi
4028
4029 rm -rf conftest.dSYM
4030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4031 conftest$ac_exeext conftest.$ac_ext
4032 fi
4033
4034 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4035 $as_echo "$emacs_cv_sunpro_c" >&6; }
4036
4037 if test x"$emacs_cv_sunpro_c" = xyes; then
4038 NON_GNU_CPP="$CC -E -Xs"
4039 fi
4040 fi
4041
4042 #### Some systems specify a CPP to use unless we are using GCC.
4043 #### Now that we know whether we are using GCC, we can decide whether
4044 #### to use that one.
4045 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4046 then
4047 CPP="$NON_GNU_CPP"
4048 fi
4049
4050 #### Some systems specify a CC to use unless we are using GCC.
4051 #### Now that we know whether we are using GCC, we can decide whether
4052 #### to use that one.
4053 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4054 test x$cc_specified != xyes
4055 then
4056 CC="$NON_GNU_CC"
4057 fi
4058
4059 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4060 then
4061 CC="$CC $GCC_TEST_OPTIONS"
4062 fi
4063
4064 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4065 then
4066 CC="$CC $NON_GCC_TEST_OPTIONS"
4067 fi
4068
4069 ac_ext=c
4070 ac_cpp='$CPP $CPPFLAGS'
4071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4074 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4075 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4076 # On Suns, sometimes $CPP names a directory.
4077 if test -n "$CPP" && test -d "$CPP"; then
4078 CPP=
4079 fi
4080 if test -z "$CPP"; then
4081 if test "${ac_cv_prog_CPP+set}" = set; then
4082 $as_echo_n "(cached) " >&6
4083 else
4084 # Double quotes because CPP needs to be expanded
4085 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4086 do
4087 ac_preproc_ok=false
4088 for ac_c_preproc_warn_flag in '' yes
4089 do
4090 # Use a header file that comes with gcc, so configuring glibc
4091 # with a fresh cross-compiler works.
4092 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4093 # <limits.h> exists even on freestanding compilers.
4094 # On the NeXT, cc -E runs the code through the compiler's parser,
4095 # not just through cpp. "Syntax error" is here to catch this case.
4096 cat >conftest.$ac_ext <<_ACEOF
4097 /* confdefs.h. */
4098 _ACEOF
4099 cat confdefs.h >>conftest.$ac_ext
4100 cat >>conftest.$ac_ext <<_ACEOF
4101 /* end confdefs.h. */
4102 #ifdef __STDC__
4103 # include <limits.h>
4104 #else
4105 # include <assert.h>
4106 #endif
4107 Syntax error
4108 _ACEOF
4109 if { (ac_try="$ac_cpp conftest.$ac_ext"
4110 case "(($ac_try" in
4111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112 *) ac_try_echo=$ac_try;;
4113 esac
4114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4115 $as_echo "$ac_try_echo") >&5
4116 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4117 ac_status=$?
4118 grep -v '^ *+' conftest.er1 >conftest.err
4119 rm -f conftest.er1
4120 cat conftest.err >&5
4121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); } >/dev/null && {
4123 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4124 test ! -s conftest.err
4125 }; then
4126 :
4127 else
4128 $as_echo "$as_me: failed program was:" >&5
4129 sed 's/^/| /' conftest.$ac_ext >&5
4130
4131 # Broken: fails on valid input.
4132 continue
4133 fi
4134
4135 rm -f conftest.err conftest.$ac_ext
4136
4137 # OK, works on sane cases. Now check whether nonexistent headers
4138 # can be detected and how.
4139 cat >conftest.$ac_ext <<_ACEOF
4140 /* confdefs.h. */
4141 _ACEOF
4142 cat confdefs.h >>conftest.$ac_ext
4143 cat >>conftest.$ac_ext <<_ACEOF
4144 /* end confdefs.h. */
4145 #include <ac_nonexistent.h>
4146 _ACEOF
4147 if { (ac_try="$ac_cpp conftest.$ac_ext"
4148 case "(($ac_try" in
4149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4150 *) ac_try_echo=$ac_try;;
4151 esac
4152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4153 $as_echo "$ac_try_echo") >&5
4154 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4155 ac_status=$?
4156 grep -v '^ *+' conftest.er1 >conftest.err
4157 rm -f conftest.er1
4158 cat conftest.err >&5
4159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); } >/dev/null && {
4161 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4162 test ! -s conftest.err
4163 }; then
4164 # Broken: success on invalid input.
4165 continue
4166 else
4167 $as_echo "$as_me: failed program was:" >&5
4168 sed 's/^/| /' conftest.$ac_ext >&5
4169
4170 # Passes both tests.
4171 ac_preproc_ok=:
4172 break
4173 fi
4174
4175 rm -f conftest.err conftest.$ac_ext
4176
4177 done
4178 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4179 rm -f conftest.err conftest.$ac_ext
4180 if $ac_preproc_ok; then
4181 break
4182 fi
4183
4184 done
4185 ac_cv_prog_CPP=$CPP
4186
4187 fi
4188 CPP=$ac_cv_prog_CPP
4189 else
4190 ac_cv_prog_CPP=$CPP
4191 fi
4192 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4193 $as_echo "$CPP" >&6; }
4194 ac_preproc_ok=false
4195 for ac_c_preproc_warn_flag in '' yes
4196 do
4197 # Use a header file that comes with gcc, so configuring glibc
4198 # with a fresh cross-compiler works.
4199 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4200 # <limits.h> exists even on freestanding compilers.
4201 # On the NeXT, cc -E runs the code through the compiler's parser,
4202 # not just through cpp. "Syntax error" is here to catch this case.
4203 cat >conftest.$ac_ext <<_ACEOF
4204 /* confdefs.h. */
4205 _ACEOF
4206 cat confdefs.h >>conftest.$ac_ext
4207 cat >>conftest.$ac_ext <<_ACEOF
4208 /* end confdefs.h. */
4209 #ifdef __STDC__
4210 # include <limits.h>
4211 #else
4212 # include <assert.h>
4213 #endif
4214 Syntax error
4215 _ACEOF
4216 if { (ac_try="$ac_cpp conftest.$ac_ext"
4217 case "(($ac_try" in
4218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219 *) ac_try_echo=$ac_try;;
4220 esac
4221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4222 $as_echo "$ac_try_echo") >&5
4223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4224 ac_status=$?
4225 grep -v '^ *+' conftest.er1 >conftest.err
4226 rm -f conftest.er1
4227 cat conftest.err >&5
4228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); } >/dev/null && {
4230 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4231 test ! -s conftest.err
4232 }; then
4233 :
4234 else
4235 $as_echo "$as_me: failed program was:" >&5
4236 sed 's/^/| /' conftest.$ac_ext >&5
4237
4238 # Broken: fails on valid input.
4239 continue
4240 fi
4241
4242 rm -f conftest.err conftest.$ac_ext
4243
4244 # OK, works on sane cases. Now check whether nonexistent headers
4245 # can be detected and how.
4246 cat >conftest.$ac_ext <<_ACEOF
4247 /* confdefs.h. */
4248 _ACEOF
4249 cat confdefs.h >>conftest.$ac_ext
4250 cat >>conftest.$ac_ext <<_ACEOF
4251 /* end confdefs.h. */
4252 #include <ac_nonexistent.h>
4253 _ACEOF
4254 if { (ac_try="$ac_cpp conftest.$ac_ext"
4255 case "(($ac_try" in
4256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4257 *) ac_try_echo=$ac_try;;
4258 esac
4259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4260 $as_echo "$ac_try_echo") >&5
4261 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4262 ac_status=$?
4263 grep -v '^ *+' conftest.er1 >conftest.err
4264 rm -f conftest.er1
4265 cat conftest.err >&5
4266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } >/dev/null && {
4268 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4269 test ! -s conftest.err
4270 }; then
4271 # Broken: success on invalid input.
4272 continue
4273 else
4274 $as_echo "$as_me: failed program was:" >&5
4275 sed 's/^/| /' conftest.$ac_ext >&5
4276
4277 # Passes both tests.
4278 ac_preproc_ok=:
4279 break
4280 fi
4281
4282 rm -f conftest.err conftest.$ac_ext
4283
4284 done
4285 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4286 rm -f conftest.err conftest.$ac_ext
4287 if $ac_preproc_ok; then
4288 :
4289 else
4290 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4291 See \`config.log' for more details." >&5
4292 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4293 See \`config.log' for more details." >&2;}
4294 { (exit 1); exit 1; }; }
4295 fi
4296
4297 ac_ext=c
4298 ac_cpp='$CPP $CPPFLAGS'
4299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4302
4303
4304 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4305 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4306 if test "${ac_cv_path_GREP+set}" = set; then
4307 $as_echo_n "(cached) " >&6
4308 else
4309 if test -z "$GREP"; then
4310 ac_path_GREP_found=false
4311 # Loop through the user's path and test for each of PROGNAME-LIST
4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4314 do
4315 IFS=$as_save_IFS
4316 test -z "$as_dir" && as_dir=.
4317 for ac_prog in grep ggrep; do
4318 for ac_exec_ext in '' $ac_executable_extensions; do
4319 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4320 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4321 # Check for GNU ac_path_GREP and select it if it is found.
4322 # Check for GNU $ac_path_GREP
4323 case `"$ac_path_GREP" --version 2>&1` in
4324 *GNU*)
4325 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4326 *)
4327 ac_count=0
4328 $as_echo_n 0123456789 >"conftest.in"
4329 while :
4330 do
4331 cat "conftest.in" "conftest.in" >"conftest.tmp"
4332 mv "conftest.tmp" "conftest.in"
4333 cp "conftest.in" "conftest.nl"
4334 $as_echo 'GREP' >> "conftest.nl"
4335 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4336 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4337 ac_count=`expr $ac_count + 1`
4338 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4339 # Best one so far, save it but keep looking for a better one
4340 ac_cv_path_GREP="$ac_path_GREP"
4341 ac_path_GREP_max=$ac_count
4342 fi
4343 # 10*(2^10) chars as input seems more than enough
4344 test $ac_count -gt 10 && break
4345 done
4346 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4347 esac
4348
4349 $ac_path_GREP_found && break 3
4350 done
4351 done
4352 done
4353 IFS=$as_save_IFS
4354 if test -z "$ac_cv_path_GREP"; then
4355 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4356 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4357 { (exit 1); exit 1; }; }
4358 fi
4359 else
4360 ac_cv_path_GREP=$GREP
4361 fi
4362
4363 fi
4364 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4365 $as_echo "$ac_cv_path_GREP" >&6; }
4366 GREP="$ac_cv_path_GREP"
4367
4368
4369 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4370 $as_echo_n "checking for egrep... " >&6; }
4371 if test "${ac_cv_path_EGREP+set}" = set; then
4372 $as_echo_n "(cached) " >&6
4373 else
4374 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4375 then ac_cv_path_EGREP="$GREP -E"
4376 else
4377 if test -z "$EGREP"; then
4378 ac_path_EGREP_found=false
4379 # Loop through the user's path and test for each of PROGNAME-LIST
4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4382 do
4383 IFS=$as_save_IFS
4384 test -z "$as_dir" && as_dir=.
4385 for ac_prog in egrep; do
4386 for ac_exec_ext in '' $ac_executable_extensions; do
4387 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4388 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4389 # Check for GNU ac_path_EGREP and select it if it is found.
4390 # Check for GNU $ac_path_EGREP
4391 case `"$ac_path_EGREP" --version 2>&1` in
4392 *GNU*)
4393 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4394 *)
4395 ac_count=0
4396 $as_echo_n 0123456789 >"conftest.in"
4397 while :
4398 do
4399 cat "conftest.in" "conftest.in" >"conftest.tmp"
4400 mv "conftest.tmp" "conftest.in"
4401 cp "conftest.in" "conftest.nl"
4402 $as_echo 'EGREP' >> "conftest.nl"
4403 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4404 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4405 ac_count=`expr $ac_count + 1`
4406 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4407 # Best one so far, save it but keep looking for a better one
4408 ac_cv_path_EGREP="$ac_path_EGREP"
4409 ac_path_EGREP_max=$ac_count
4410 fi
4411 # 10*(2^10) chars as input seems more than enough
4412 test $ac_count -gt 10 && break
4413 done
4414 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4415 esac
4416
4417 $ac_path_EGREP_found && break 3
4418 done
4419 done
4420 done
4421 IFS=$as_save_IFS
4422 if test -z "$ac_cv_path_EGREP"; then
4423 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4424 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4425 { (exit 1); exit 1; }; }
4426 fi
4427 else
4428 ac_cv_path_EGREP=$EGREP
4429 fi
4430
4431 fi
4432 fi
4433 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4434 $as_echo "$ac_cv_path_EGREP" >&6; }
4435 EGREP="$ac_cv_path_EGREP"
4436
4437
4438 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4439 $as_echo_n "checking for ANSI C header files... " >&6; }
4440 if test "${ac_cv_header_stdc+set}" = set; then
4441 $as_echo_n "(cached) " >&6
4442 else
4443 cat >conftest.$ac_ext <<_ACEOF
4444 /* confdefs.h. */
4445 _ACEOF
4446 cat confdefs.h >>conftest.$ac_ext
4447 cat >>conftest.$ac_ext <<_ACEOF
4448 /* end confdefs.h. */
4449 #include <stdlib.h>
4450 #include <stdarg.h>
4451 #include <string.h>
4452 #include <float.h>
4453
4454 int
4455 main ()
4456 {
4457
4458 ;
4459 return 0;
4460 }
4461 _ACEOF
4462 rm -f conftest.$ac_objext
4463 if { (ac_try="$ac_compile"
4464 case "(($ac_try" in
4465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4466 *) ac_try_echo=$ac_try;;
4467 esac
4468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4469 $as_echo "$ac_try_echo") >&5
4470 (eval "$ac_compile") 2>conftest.er1
4471 ac_status=$?
4472 grep -v '^ *+' conftest.er1 >conftest.err
4473 rm -f conftest.er1
4474 cat conftest.err >&5
4475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); } && {
4477 test -z "$ac_c_werror_flag" ||
4478 test ! -s conftest.err
4479 } && test -s conftest.$ac_objext; then
4480 ac_cv_header_stdc=yes
4481 else
4482 $as_echo "$as_me: failed program was:" >&5
4483 sed 's/^/| /' conftest.$ac_ext >&5
4484
4485 ac_cv_header_stdc=no
4486 fi
4487
4488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4489
4490 if test $ac_cv_header_stdc = yes; then
4491 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4492 cat >conftest.$ac_ext <<_ACEOF
4493 /* confdefs.h. */
4494 _ACEOF
4495 cat confdefs.h >>conftest.$ac_ext
4496 cat >>conftest.$ac_ext <<_ACEOF
4497 /* end confdefs.h. */
4498 #include <string.h>
4499
4500 _ACEOF
4501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4502 $EGREP "memchr" >/dev/null 2>&1; then
4503 :
4504 else
4505 ac_cv_header_stdc=no
4506 fi
4507 rm -f conftest*
4508
4509 fi
4510
4511 if test $ac_cv_header_stdc = yes; then
4512 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4513 cat >conftest.$ac_ext <<_ACEOF
4514 /* confdefs.h. */
4515 _ACEOF
4516 cat confdefs.h >>conftest.$ac_ext
4517 cat >>conftest.$ac_ext <<_ACEOF
4518 /* end confdefs.h. */
4519 #include <stdlib.h>
4520
4521 _ACEOF
4522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4523 $EGREP "free" >/dev/null 2>&1; then
4524 :
4525 else
4526 ac_cv_header_stdc=no
4527 fi
4528 rm -f conftest*
4529
4530 fi
4531
4532 if test $ac_cv_header_stdc = yes; then
4533 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4534 if test "$cross_compiling" = yes; then
4535 :
4536 else
4537 cat >conftest.$ac_ext <<_ACEOF
4538 /* confdefs.h. */
4539 _ACEOF
4540 cat confdefs.h >>conftest.$ac_ext
4541 cat >>conftest.$ac_ext <<_ACEOF
4542 /* end confdefs.h. */
4543 #include <ctype.h>
4544 #include <stdlib.h>
4545 #if ((' ' & 0x0FF) == 0x020)
4546 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4547 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4548 #else
4549 # define ISLOWER(c) \
4550 (('a' <= (c) && (c) <= 'i') \
4551 || ('j' <= (c) && (c) <= 'r') \
4552 || ('s' <= (c) && (c) <= 'z'))
4553 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4554 #endif
4555
4556 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4557 int
4558 main ()
4559 {
4560 int i;
4561 for (i = 0; i < 256; i++)
4562 if (XOR (islower (i), ISLOWER (i))
4563 || toupper (i) != TOUPPER (i))
4564 return 2;
4565 return 0;
4566 }
4567 _ACEOF
4568 rm -f conftest$ac_exeext
4569 if { (ac_try="$ac_link"
4570 case "(($ac_try" in
4571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4572 *) ac_try_echo=$ac_try;;
4573 esac
4574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4575 $as_echo "$ac_try_echo") >&5
4576 (eval "$ac_link") 2>&5
4577 ac_status=$?
4578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4580 { (case "(($ac_try" in
4581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4582 *) ac_try_echo=$ac_try;;
4583 esac
4584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4585 $as_echo "$ac_try_echo") >&5
4586 (eval "$ac_try") 2>&5
4587 ac_status=$?
4588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); }; }; then
4590 :
4591 else
4592 $as_echo "$as_me: program exited with status $ac_status" >&5
4593 $as_echo "$as_me: failed program was:" >&5
4594 sed 's/^/| /' conftest.$ac_ext >&5
4595
4596 ( exit $ac_status )
4597 ac_cv_header_stdc=no
4598 fi
4599 rm -rf conftest.dSYM
4600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4601 fi
4602
4603
4604 fi
4605 fi
4606 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4607 $as_echo "$ac_cv_header_stdc" >&6; }
4608 if test $ac_cv_header_stdc = yes; then
4609
4610 cat >>confdefs.h <<\_ACEOF
4611 #define STDC_HEADERS 1
4612 _ACEOF
4613
4614 fi
4615
4616 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4627 inttypes.h stdint.h unistd.h
4628 do
4629 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4630 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4631 $as_echo_n "checking for $ac_header... " >&6; }
4632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4633 $as_echo_n "(cached) " >&6
4634 else
4635 cat >conftest.$ac_ext <<_ACEOF
4636 /* confdefs.h. */
4637 _ACEOF
4638 cat confdefs.h >>conftest.$ac_ext
4639 cat >>conftest.$ac_ext <<_ACEOF
4640 /* end confdefs.h. */
4641 $ac_includes_default
4642
4643 #include <$ac_header>
4644 _ACEOF
4645 rm -f conftest.$ac_objext
4646 if { (ac_try="$ac_compile"
4647 case "(($ac_try" in
4648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4649 *) ac_try_echo=$ac_try;;
4650 esac
4651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4652 $as_echo "$ac_try_echo") >&5
4653 (eval "$ac_compile") 2>conftest.er1
4654 ac_status=$?
4655 grep -v '^ *+' conftest.er1 >conftest.err
4656 rm -f conftest.er1
4657 cat conftest.err >&5
4658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); } && {
4660 test -z "$ac_c_werror_flag" ||
4661 test ! -s conftest.err
4662 } && test -s conftest.$ac_objext; then
4663 eval "$as_ac_Header=yes"
4664 else
4665 $as_echo "$as_me: failed program was:" >&5
4666 sed 's/^/| /' conftest.$ac_ext >&5
4667
4668 eval "$as_ac_Header=no"
4669 fi
4670
4671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4672 fi
4673 ac_res=`eval 'as_val=${'$as_ac_Header'}
4674 $as_echo "$as_val"'`
4675 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4676 $as_echo "$ac_res" >&6; }
4677 if test `eval 'as_val=${'$as_ac_Header'}
4678 $as_echo "$as_val"'` = yes; then
4679 cat >>confdefs.h <<_ACEOF
4680 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4681 _ACEOF
4682
4683 fi
4684
4685 done
4686
4687
4688
4689 if test "${ac_cv_header_minix_config_h+set}" = set; then
4690 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4691 $as_echo_n "checking for minix/config.h... " >&6; }
4692 if test "${ac_cv_header_minix_config_h+set}" = set; then
4693 $as_echo_n "(cached) " >&6
4694 fi
4695 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4696 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4697 else
4698 # Is the header compilable?
4699 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4700 $as_echo_n "checking minix/config.h usability... " >&6; }
4701 cat >conftest.$ac_ext <<_ACEOF
4702 /* confdefs.h. */
4703 _ACEOF
4704 cat confdefs.h >>conftest.$ac_ext
4705 cat >>conftest.$ac_ext <<_ACEOF
4706 /* end confdefs.h. */
4707 $ac_includes_default
4708 #include <minix/config.h>
4709 _ACEOF
4710 rm -f conftest.$ac_objext
4711 if { (ac_try="$ac_compile"
4712 case "(($ac_try" in
4713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4714 *) ac_try_echo=$ac_try;;
4715 esac
4716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4717 $as_echo "$ac_try_echo") >&5
4718 (eval "$ac_compile") 2>conftest.er1
4719 ac_status=$?
4720 grep -v '^ *+' conftest.er1 >conftest.err
4721 rm -f conftest.er1
4722 cat conftest.err >&5
4723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); } && {
4725 test -z "$ac_c_werror_flag" ||
4726 test ! -s conftest.err
4727 } && test -s conftest.$ac_objext; then
4728 ac_header_compiler=yes
4729 else
4730 $as_echo "$as_me: failed program was:" >&5
4731 sed 's/^/| /' conftest.$ac_ext >&5
4732
4733 ac_header_compiler=no
4734 fi
4735
4736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4737 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4738 $as_echo "$ac_header_compiler" >&6; }
4739
4740 # Is the header present?
4741 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4742 $as_echo_n "checking minix/config.h presence... " >&6; }
4743 cat >conftest.$ac_ext <<_ACEOF
4744 /* confdefs.h. */
4745 _ACEOF
4746 cat confdefs.h >>conftest.$ac_ext
4747 cat >>conftest.$ac_ext <<_ACEOF
4748 /* end confdefs.h. */
4749 #include <minix/config.h>
4750 _ACEOF
4751 if { (ac_try="$ac_cpp conftest.$ac_ext"
4752 case "(($ac_try" in
4753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4754 *) ac_try_echo=$ac_try;;
4755 esac
4756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4757 $as_echo "$ac_try_echo") >&5
4758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4759 ac_status=$?
4760 grep -v '^ *+' conftest.er1 >conftest.err
4761 rm -f conftest.er1
4762 cat conftest.err >&5
4763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); } >/dev/null && {
4765 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4766 test ! -s conftest.err
4767 }; then
4768 ac_header_preproc=yes
4769 else
4770 $as_echo "$as_me: failed program was:" >&5
4771 sed 's/^/| /' conftest.$ac_ext >&5
4772
4773 ac_header_preproc=no
4774 fi
4775
4776 rm -f conftest.err conftest.$ac_ext
4777 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4778 $as_echo "$ac_header_preproc" >&6; }
4779
4780 # So? What about this header?
4781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4782 yes:no: )
4783 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4784 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4785 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4786 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4787 ac_header_preproc=yes
4788 ;;
4789 no:yes:* )
4790 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4791 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4792 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4793 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4794 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4795 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4796 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4797 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4798 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4799 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4800 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4801 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4802
4803 ;;
4804 esac
4805 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4806 $as_echo_n "checking for minix/config.h... " >&6; }
4807 if test "${ac_cv_header_minix_config_h+set}" = set; then
4808 $as_echo_n "(cached) " >&6
4809 else
4810 ac_cv_header_minix_config_h=$ac_header_preproc
4811 fi
4812 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4813 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4814
4815 fi
4816 if test $ac_cv_header_minix_config_h = yes; then
4817 MINIX=yes
4818 else
4819 MINIX=
4820 fi
4821
4822
4823 if test "$MINIX" = yes; then
4824
4825 cat >>confdefs.h <<\_ACEOF
4826 #define _POSIX_SOURCE 1
4827 _ACEOF
4828
4829
4830 cat >>confdefs.h <<\_ACEOF
4831 #define _POSIX_1_SOURCE 2
4832 _ACEOF
4833
4834
4835 cat >>confdefs.h <<\_ACEOF
4836 #define _MINIX 1
4837 _ACEOF
4838
4839 fi
4840
4841
4842
4843 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4844 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4845 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4846 $as_echo_n "(cached) " >&6
4847 else
4848 cat >conftest.$ac_ext <<_ACEOF
4849 /* confdefs.h. */
4850 _ACEOF
4851 cat confdefs.h >>conftest.$ac_ext
4852 cat >>conftest.$ac_ext <<_ACEOF
4853 /* end confdefs.h. */
4854
4855 # define __EXTENSIONS__ 1
4856 $ac_includes_default
4857 int
4858 main ()
4859 {
4860
4861 ;
4862 return 0;
4863 }
4864 _ACEOF
4865 rm -f conftest.$ac_objext
4866 if { (ac_try="$ac_compile"
4867 case "(($ac_try" in
4868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4869 *) ac_try_echo=$ac_try;;
4870 esac
4871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4872 $as_echo "$ac_try_echo") >&5
4873 (eval "$ac_compile") 2>conftest.er1
4874 ac_status=$?
4875 grep -v '^ *+' conftest.er1 >conftest.err
4876 rm -f conftest.er1
4877 cat conftest.err >&5
4878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); } && {
4880 test -z "$ac_c_werror_flag" ||
4881 test ! -s conftest.err
4882 } && test -s conftest.$ac_objext; then
4883 ac_cv_safe_to_define___extensions__=yes
4884 else
4885 $as_echo "$as_me: failed program was:" >&5
4886 sed 's/^/| /' conftest.$ac_ext >&5
4887
4888 ac_cv_safe_to_define___extensions__=no
4889 fi
4890
4891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4892 fi
4893 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4894 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4895 test $ac_cv_safe_to_define___extensions__ = yes &&
4896 cat >>confdefs.h <<\_ACEOF
4897 #define __EXTENSIONS__ 1
4898 _ACEOF
4899
4900 cat >>confdefs.h <<\_ACEOF
4901 #define _ALL_SOURCE 1
4902 _ACEOF
4903
4904 cat >>confdefs.h <<\_ACEOF
4905 #define _GNU_SOURCE 1
4906 _ACEOF
4907
4908 cat >>confdefs.h <<\_ACEOF
4909 #define _POSIX_PTHREAD_SEMANTICS 1
4910 _ACEOF
4911
4912 cat >>confdefs.h <<\_ACEOF
4913 #define _TANDEM_SOURCE 1
4914 _ACEOF
4915
4916
4917
4918 ### Use -Wno-pointer-sign if the compiler supports it
4919 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4920 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4921 SAVE_CFLAGS="$CFLAGS"
4922 CFLAGS="$CFLAGS -Wno-pointer-sign"
4923 cat >conftest.$ac_ext <<_ACEOF
4924 /* confdefs.h. */
4925 _ACEOF
4926 cat confdefs.h >>conftest.$ac_ext
4927 cat >>conftest.$ac_ext <<_ACEOF
4928 /* end confdefs.h. */
4929
4930 int
4931 main ()
4932 {
4933
4934 ;
4935 return 0;
4936 }
4937 _ACEOF
4938 rm -f conftest.$ac_objext
4939 if { (ac_try="$ac_compile"
4940 case "(($ac_try" in
4941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4942 *) ac_try_echo=$ac_try;;
4943 esac
4944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4945 $as_echo "$ac_try_echo") >&5
4946 (eval "$ac_compile") 2>conftest.er1
4947 ac_status=$?
4948 grep -v '^ *+' conftest.er1 >conftest.err
4949 rm -f conftest.er1
4950 cat conftest.err >&5
4951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); } && {
4953 test -z "$ac_c_werror_flag" ||
4954 test ! -s conftest.err
4955 } && test -s conftest.$ac_objext; then
4956 has_option=yes
4957 else
4958 $as_echo "$as_me: failed program was:" >&5
4959 sed 's/^/| /' conftest.$ac_ext >&5
4960
4961 has_option=no
4962 fi
4963
4964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4965 if test $has_option = yes; then
4966 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4967 fi
4968 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4969 $as_echo "$has_option" >&6; }
4970 CFLAGS="$SAVE_CFLAGS"
4971 unset has_option
4972 unset SAVE_CFLAGS
4973
4974 ### Use -Wdeclaration-after-statement if the compiler supports it
4975 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4976 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4977 SAVE_CFLAGS="$CFLAGS"
4978 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4979 cat >conftest.$ac_ext <<_ACEOF
4980 /* confdefs.h. */
4981 _ACEOF
4982 cat confdefs.h >>conftest.$ac_ext
4983 cat >>conftest.$ac_ext <<_ACEOF
4984 /* end confdefs.h. */
4985
4986 int
4987 main ()
4988 {
4989
4990 ;
4991 return 0;
4992 }
4993 _ACEOF
4994 rm -f conftest.$ac_objext
4995 if { (ac_try="$ac_compile"
4996 case "(($ac_try" in
4997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4998 *) ac_try_echo=$ac_try;;
4999 esac
5000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5001 $as_echo "$ac_try_echo") >&5
5002 (eval "$ac_compile") 2>conftest.er1
5003 ac_status=$?
5004 grep -v '^ *+' conftest.er1 >conftest.err
5005 rm -f conftest.er1
5006 cat conftest.err >&5
5007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); } && {
5009 test -z "$ac_c_werror_flag" ||
5010 test ! -s conftest.err
5011 } && test -s conftest.$ac_objext; then
5012 has_option=yes
5013 else
5014 $as_echo "$as_me: failed program was:" >&5
5015 sed 's/^/| /' conftest.$ac_ext >&5
5016
5017 has_option=no
5018 fi
5019
5020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5021 if test $has_option = yes; then
5022 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5023 fi
5024 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
5025 $as_echo "$has_option" >&6; }
5026 CFLAGS="$SAVE_CFLAGS"
5027 unset has_option
5028 unset SAVE_CFLAGS
5029
5030 #### Some other nice autoconf tests.
5031
5032 ac_ext=c
5033 ac_cpp='$CPP $CPPFLAGS'
5034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5037 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5038 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5039 # On Suns, sometimes $CPP names a directory.
5040 if test -n "$CPP" && test -d "$CPP"; then
5041 CPP=
5042 fi
5043 if test -z "$CPP"; then
5044 if test "${ac_cv_prog_CPP+set}" = set; then
5045 $as_echo_n "(cached) " >&6
5046 else
5047 # Double quotes because CPP needs to be expanded
5048 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5049 do
5050 ac_preproc_ok=false
5051 for ac_c_preproc_warn_flag in '' yes
5052 do
5053 # Use a header file that comes with gcc, so configuring glibc
5054 # with a fresh cross-compiler works.
5055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5056 # <limits.h> exists even on freestanding compilers.
5057 # On the NeXT, cc -E runs the code through the compiler's parser,
5058 # not just through cpp. "Syntax error" is here to catch this case.
5059 cat >conftest.$ac_ext <<_ACEOF
5060 /* confdefs.h. */
5061 _ACEOF
5062 cat confdefs.h >>conftest.$ac_ext
5063 cat >>conftest.$ac_ext <<_ACEOF
5064 /* end confdefs.h. */
5065 #ifdef __STDC__
5066 # include <limits.h>
5067 #else
5068 # include <assert.h>
5069 #endif
5070 Syntax error
5071 _ACEOF
5072 if { (ac_try="$ac_cpp conftest.$ac_ext"
5073 case "(($ac_try" in
5074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5075 *) ac_try_echo=$ac_try;;
5076 esac
5077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5078 $as_echo "$ac_try_echo") >&5
5079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5080 ac_status=$?
5081 grep -v '^ *+' conftest.er1 >conftest.err
5082 rm -f conftest.er1
5083 cat conftest.err >&5
5084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); } >/dev/null && {
5086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5087 test ! -s conftest.err
5088 }; then
5089 :
5090 else
5091 $as_echo "$as_me: failed program was:" >&5
5092 sed 's/^/| /' conftest.$ac_ext >&5
5093
5094 # Broken: fails on valid input.
5095 continue
5096 fi
5097
5098 rm -f conftest.err conftest.$ac_ext
5099
5100 # OK, works on sane cases. Now check whether nonexistent headers
5101 # can be detected and how.
5102 cat >conftest.$ac_ext <<_ACEOF
5103 /* confdefs.h. */
5104 _ACEOF
5105 cat confdefs.h >>conftest.$ac_ext
5106 cat >>conftest.$ac_ext <<_ACEOF
5107 /* end confdefs.h. */
5108 #include <ac_nonexistent.h>
5109 _ACEOF
5110 if { (ac_try="$ac_cpp conftest.$ac_ext"
5111 case "(($ac_try" in
5112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5113 *) ac_try_echo=$ac_try;;
5114 esac
5115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5116 $as_echo "$ac_try_echo") >&5
5117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5118 ac_status=$?
5119 grep -v '^ *+' conftest.er1 >conftest.err
5120 rm -f conftest.er1
5121 cat conftest.err >&5
5122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); } >/dev/null && {
5124 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5125 test ! -s conftest.err
5126 }; then
5127 # Broken: success on invalid input.
5128 continue
5129 else
5130 $as_echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5132
5133 # Passes both tests.
5134 ac_preproc_ok=:
5135 break
5136 fi
5137
5138 rm -f conftest.err conftest.$ac_ext
5139
5140 done
5141 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5142 rm -f conftest.err conftest.$ac_ext
5143 if $ac_preproc_ok; then
5144 break
5145 fi
5146
5147 done
5148 ac_cv_prog_CPP=$CPP
5149
5150 fi
5151 CPP=$ac_cv_prog_CPP
5152 else
5153 ac_cv_prog_CPP=$CPP
5154 fi
5155 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5156 $as_echo "$CPP" >&6; }
5157 ac_preproc_ok=false
5158 for ac_c_preproc_warn_flag in '' yes
5159 do
5160 # Use a header file that comes with gcc, so configuring glibc
5161 # with a fresh cross-compiler works.
5162 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5163 # <limits.h> exists even on freestanding compilers.
5164 # On the NeXT, cc -E runs the code through the compiler's parser,
5165 # not just through cpp. "Syntax error" is here to catch this case.
5166 cat >conftest.$ac_ext <<_ACEOF
5167 /* confdefs.h. */
5168 _ACEOF
5169 cat confdefs.h >>conftest.$ac_ext
5170 cat >>conftest.$ac_ext <<_ACEOF
5171 /* end confdefs.h. */
5172 #ifdef __STDC__
5173 # include <limits.h>
5174 #else
5175 # include <assert.h>
5176 #endif
5177 Syntax error
5178 _ACEOF
5179 if { (ac_try="$ac_cpp conftest.$ac_ext"
5180 case "(($ac_try" in
5181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5182 *) ac_try_echo=$ac_try;;
5183 esac
5184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5185 $as_echo "$ac_try_echo") >&5
5186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5187 ac_status=$?
5188 grep -v '^ *+' conftest.er1 >conftest.err
5189 rm -f conftest.er1
5190 cat conftest.err >&5
5191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } >/dev/null && {
5193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5194 test ! -s conftest.err
5195 }; then
5196 :
5197 else
5198 $as_echo "$as_me: failed program was:" >&5
5199 sed 's/^/| /' conftest.$ac_ext >&5
5200
5201 # Broken: fails on valid input.
5202 continue
5203 fi
5204
5205 rm -f conftest.err conftest.$ac_ext
5206
5207 # OK, works on sane cases. Now check whether nonexistent headers
5208 # can be detected and how.
5209 cat >conftest.$ac_ext <<_ACEOF
5210 /* confdefs.h. */
5211 _ACEOF
5212 cat confdefs.h >>conftest.$ac_ext
5213 cat >>conftest.$ac_ext <<_ACEOF
5214 /* end confdefs.h. */
5215 #include <ac_nonexistent.h>
5216 _ACEOF
5217 if { (ac_try="$ac_cpp conftest.$ac_ext"
5218 case "(($ac_try" in
5219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5220 *) ac_try_echo=$ac_try;;
5221 esac
5222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5223 $as_echo "$ac_try_echo") >&5
5224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5225 ac_status=$?
5226 grep -v '^ *+' conftest.er1 >conftest.err
5227 rm -f conftest.er1
5228 cat conftest.err >&5
5229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); } >/dev/null && {
5231 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5232 test ! -s conftest.err
5233 }; then
5234 # Broken: success on invalid input.
5235 continue
5236 else
5237 $as_echo "$as_me: failed program was:" >&5
5238 sed 's/^/| /' conftest.$ac_ext >&5
5239
5240 # Passes both tests.
5241 ac_preproc_ok=:
5242 break
5243 fi
5244
5245 rm -f conftest.err conftest.$ac_ext
5246
5247 done
5248 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5249 rm -f conftest.err conftest.$ac_ext
5250 if $ac_preproc_ok; then
5251 :
5252 else
5253 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5254 See \`config.log' for more details." >&5
5255 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5256 See \`config.log' for more details." >&2;}
5257 { (exit 1); exit 1; }; }
5258 fi
5259
5260 ac_ext=c
5261 ac_cpp='$CPP $CPPFLAGS'
5262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5265
5266 # Find a good install program. We prefer a C program (faster),
5267 # so one script is as good as another. But avoid the broken or
5268 # incompatible versions:
5269 # SysV /etc/install, /usr/sbin/install
5270 # SunOS /usr/etc/install
5271 # IRIX /sbin/install
5272 # AIX /bin/install
5273 # AmigaOS /C/install, which installs bootblocks on floppy discs
5274 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5275 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5276 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5277 # OS/2's system install, which has a completely different semantic
5278 # ./install, which can be erroneously created by make from ./install.sh.
5279 # Reject install programs that cannot install multiple files.
5280 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5281 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5282 if test -z "$INSTALL"; then
5283 if test "${ac_cv_path_install+set}" = set; then
5284 $as_echo_n "(cached) " >&6
5285 else
5286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287 for as_dir in $PATH
5288 do
5289 IFS=$as_save_IFS
5290 test -z "$as_dir" && as_dir=.
5291 # Account for people who put trailing slashes in PATH elements.
5292 case $as_dir/ in
5293 ./ | .// | /cC/* | \
5294 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5295 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5296 /usr/ucb/* ) ;;
5297 *)
5298 # OSF1 and SCO ODT 3.0 have their own names for install.
5299 # Don't use installbsd from OSF since it installs stuff as root
5300 # by default.
5301 for ac_prog in ginstall scoinst install; do
5302 for ac_exec_ext in '' $ac_executable_extensions; do
5303 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5304 if test $ac_prog = install &&
5305 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5306 # AIX install. It has an incompatible calling convention.
5307 :
5308 elif test $ac_prog = install &&
5309 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5310 # program-specific install script used by HP pwplus--don't use.
5311 :
5312 else
5313 rm -rf conftest.one conftest.two conftest.dir
5314 echo one > conftest.one
5315 echo two > conftest.two
5316 mkdir conftest.dir
5317 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5318 test -s conftest.one && test -s conftest.two &&
5319 test -s conftest.dir/conftest.one &&
5320 test -s conftest.dir/conftest.two
5321 then
5322 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5323 break 3
5324 fi
5325 fi
5326 fi
5327 done
5328 done
5329 ;;
5330 esac
5331
5332 done
5333 IFS=$as_save_IFS
5334
5335 rm -rf conftest.one conftest.two conftest.dir
5336
5337 fi
5338 if test "${ac_cv_path_install+set}" = set; then
5339 INSTALL=$ac_cv_path_install
5340 else
5341 # As a last resort, use the slow shell script. Don't cache a
5342 # value for INSTALL within a source directory, because that will
5343 # break other packages using the cache if that directory is
5344 # removed, or if the value is a relative name.
5345 INSTALL=$ac_install_sh
5346 fi
5347 fi
5348 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5349 $as_echo "$INSTALL" >&6; }
5350
5351 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5352 # It thinks the first close brace ends the variable substitution.
5353 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5354
5355 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5356
5357 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5358
5359 if test "x$RANLIB" = x; then
5360 if test -n "$ac_tool_prefix"; then
5361 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5362 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5363 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5364 $as_echo_n "checking for $ac_word... " >&6; }
5365 if test "${ac_cv_prog_RANLIB+set}" = set; then
5366 $as_echo_n "(cached) " >&6
5367 else
5368 if test -n "$RANLIB"; then
5369 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5370 else
5371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372 for as_dir in $PATH
5373 do
5374 IFS=$as_save_IFS
5375 test -z "$as_dir" && as_dir=.
5376 for ac_exec_ext in '' $ac_executable_extensions; do
5377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5378 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5379 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5380 break 2
5381 fi
5382 done
5383 done
5384 IFS=$as_save_IFS
5385
5386 fi
5387 fi
5388 RANLIB=$ac_cv_prog_RANLIB
5389 if test -n "$RANLIB"; then
5390 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5391 $as_echo "$RANLIB" >&6; }
5392 else
5393 { $as_echo "$as_me:$LINENO: result: no" >&5
5394 $as_echo "no" >&6; }
5395 fi
5396
5397
5398 fi
5399 if test -z "$ac_cv_prog_RANLIB"; then
5400 ac_ct_RANLIB=$RANLIB
5401 # Extract the first word of "ranlib", so it can be a program name with args.
5402 set dummy ranlib; ac_word=$2
5403 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5404 $as_echo_n "checking for $ac_word... " >&6; }
5405 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5406 $as_echo_n "(cached) " >&6
5407 else
5408 if test -n "$ac_ct_RANLIB"; then
5409 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5410 else
5411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412 for as_dir in $PATH
5413 do
5414 IFS=$as_save_IFS
5415 test -z "$as_dir" && as_dir=.
5416 for ac_exec_ext in '' $ac_executable_extensions; do
5417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5418 ac_cv_prog_ac_ct_RANLIB="ranlib"
5419 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5420 break 2
5421 fi
5422 done
5423 done
5424 IFS=$as_save_IFS
5425
5426 fi
5427 fi
5428 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5429 if test -n "$ac_ct_RANLIB"; then
5430 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5431 $as_echo "$ac_ct_RANLIB" >&6; }
5432 else
5433 { $as_echo "$as_me:$LINENO: result: no" >&5
5434 $as_echo "no" >&6; }
5435 fi
5436
5437 if test "x$ac_ct_RANLIB" = x; then
5438 RANLIB=":"
5439 else
5440 case $cross_compiling:$ac_tool_warned in
5441 yes:)
5442 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5443 whose name does not start with the host triplet. If you think this
5444 configuration is useful to you, please write to autoconf@gnu.org." >&5
5445 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5446 whose name does not start with the host triplet. If you think this
5447 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5448 ac_tool_warned=yes ;;
5449 esac
5450 RANLIB=$ac_ct_RANLIB
5451 fi
5452 else
5453 RANLIB="$ac_cv_prog_RANLIB"
5454 fi
5455
5456 fi
5457
5458 ## Although we're running on an amd64 kernel, we're actually compiling for
5459 ## the x86 architecture. The user should probably have provided an
5460 ## explicit --build to `configure', but if everything else than the kernel
5461 ## is running in i386 mode, we can help them out.
5462 if test "$machine" = "amdx86-64"; then
5463 { $as_echo "$as_me:$LINENO: checking whether i386 is declared" >&5
5464 $as_echo_n "checking whether i386 is declared... " >&6; }
5465 if test "${ac_cv_have_decl_i386+set}" = set; then
5466 $as_echo_n "(cached) " >&6
5467 else
5468 cat >conftest.$ac_ext <<_ACEOF
5469 /* confdefs.h. */
5470 _ACEOF
5471 cat confdefs.h >>conftest.$ac_ext
5472 cat >>conftest.$ac_ext <<_ACEOF
5473 /* end confdefs.h. */
5474 $ac_includes_default
5475 int
5476 main ()
5477 {
5478 #ifndef i386
5479 (void) i386;
5480 #endif
5481
5482 ;
5483 return 0;
5484 }
5485 _ACEOF
5486 rm -f conftest.$ac_objext
5487 if { (ac_try="$ac_compile"
5488 case "(($ac_try" in
5489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5490 *) ac_try_echo=$ac_try;;
5491 esac
5492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5493 $as_echo "$ac_try_echo") >&5
5494 (eval "$ac_compile") 2>conftest.er1
5495 ac_status=$?
5496 grep -v '^ *+' conftest.er1 >conftest.err
5497 rm -f conftest.er1
5498 cat conftest.err >&5
5499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); } && {
5501 test -z "$ac_c_werror_flag" ||
5502 test ! -s conftest.err
5503 } && test -s conftest.$ac_objext; then
5504 ac_cv_have_decl_i386=yes
5505 else
5506 $as_echo "$as_me: failed program was:" >&5
5507 sed 's/^/| /' conftest.$ac_ext >&5
5508
5509 ac_cv_have_decl_i386=no
5510 fi
5511
5512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5513 fi
5514 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_i386" >&5
5515 $as_echo "$ac_cv_have_decl_i386" >&6; }
5516
5517 if test "$ac_cv_have_decl_i386" = "yes"; then
5518 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5519 machine=intel386
5520 machfile="m/${machine}.h"
5521 fi
5522 fi
5523
5524 # Extract the first word of "install-info", so it can be a program name with args.
5525 set dummy install-info; ac_word=$2
5526 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5527 $as_echo_n "checking for $ac_word... " >&6; }
5528 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5529 $as_echo_n "(cached) " >&6
5530 else
5531 case $INSTALL_INFO in
5532 [\\/]* | ?:[\\/]*)
5533 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5534 ;;
5535 *)
5536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5537 for as_dir in $PATH
5538 do
5539 IFS=$as_save_IFS
5540 test -z "$as_dir" && as_dir=.
5541 for ac_exec_ext in '' $ac_executable_extensions; do
5542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5543 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5544 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5545 break 2
5546 fi
5547 done
5548 done
5549 IFS=$as_save_IFS
5550
5551 ;;
5552 esac
5553 fi
5554 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5555 if test -n "$INSTALL_INFO"; then
5556 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5557 $as_echo "$INSTALL_INFO" >&6; }
5558 else
5559 { $as_echo "$as_me:$LINENO: result: no" >&5
5560 $as_echo "no" >&6; }
5561 fi
5562
5563
5564 # Extract the first word of "install-info", so it can be a program name with args.
5565 set dummy install-info; ac_word=$2
5566 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5567 $as_echo_n "checking for $ac_word... " >&6; }
5568 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5569 $as_echo_n "(cached) " >&6
5570 else
5571 case $INSTALL_INFO in
5572 [\\/]* | ?:[\\/]*)
5573 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5574 ;;
5575 *)
5576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577 for as_dir in /usr/sbin
5578 do
5579 IFS=$as_save_IFS
5580 test -z "$as_dir" && as_dir=.
5581 for ac_exec_ext in '' $ac_executable_extensions; do
5582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5583 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5584 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5585 break 2
5586 fi
5587 done
5588 done
5589 IFS=$as_save_IFS
5590
5591 ;;
5592 esac
5593 fi
5594 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5595 if test -n "$INSTALL_INFO"; then
5596 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5597 $as_echo "$INSTALL_INFO" >&6; }
5598 else
5599 { $as_echo "$as_me:$LINENO: result: no" >&5
5600 $as_echo "no" >&6; }
5601 fi
5602
5603
5604 # Extract the first word of "install-info", so it can be a program name with args.
5605 set dummy install-info; ac_word=$2
5606 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5607 $as_echo_n "checking for $ac_word... " >&6; }
5608 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5609 $as_echo_n "(cached) " >&6
5610 else
5611 case $INSTALL_INFO in
5612 [\\/]* | ?:[\\/]*)
5613 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5614 ;;
5615 *)
5616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617 for as_dir in /sbin
5618 do
5619 IFS=$as_save_IFS
5620 test -z "$as_dir" && as_dir=.
5621 for ac_exec_ext in '' $ac_executable_extensions; do
5622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5623 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5624 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5625 break 2
5626 fi
5627 done
5628 done
5629 IFS=$as_save_IFS
5630
5631 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5632 ;;
5633 esac
5634 fi
5635 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5636 if test -n "$INSTALL_INFO"; then
5637 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5638 $as_echo "$INSTALL_INFO" >&6; }
5639 else
5640 { $as_echo "$as_me:$LINENO: result: no" >&5
5641 $as_echo "no" >&6; }
5642 fi
5643
5644
5645 # Extract the first word of "gzip", so it can be a program name with args.
5646 set dummy gzip; ac_word=$2
5647 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5648 $as_echo_n "checking for $ac_word... " >&6; }
5649 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5650 $as_echo_n "(cached) " >&6
5651 else
5652 case $GZIP_PROG in
5653 [\\/]* | ?:[\\/]*)
5654 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5655 ;;
5656 *)
5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 for as_dir in $PATH
5659 do
5660 IFS=$as_save_IFS
5661 test -z "$as_dir" && as_dir=.
5662 for ac_exec_ext in '' $ac_executable_extensions; do
5663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5664 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5665 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5666 break 2
5667 fi
5668 done
5669 done
5670 IFS=$as_save_IFS
5671
5672 ;;
5673 esac
5674 fi
5675 GZIP_PROG=$ac_cv_path_GZIP_PROG
5676 if test -n "$GZIP_PROG"; then
5677 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5678 $as_echo "$GZIP_PROG" >&6; }
5679 else
5680 { $as_echo "$as_me:$LINENO: result: no" >&5
5681 $as_echo "no" >&6; }
5682 fi
5683
5684
5685
5686
5687 ## Need makeinfo >= 4.6 (?) to build the manuals.
5688 # Extract the first word of "makeinfo", so it can be a program name with args.
5689 set dummy makeinfo; ac_word=$2
5690 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5691 $as_echo_n "checking for $ac_word... " >&6; }
5692 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5693 $as_echo_n "(cached) " >&6
5694 else
5695 case $MAKEINFO in
5696 [\\/]* | ?:[\\/]*)
5697 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5698 ;;
5699 *)
5700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701 for as_dir in $PATH
5702 do
5703 IFS=$as_save_IFS
5704 test -z "$as_dir" && as_dir=.
5705 for ac_exec_ext in '' $ac_executable_extensions; do
5706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5707 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5708 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5709 break 2
5710 fi
5711 done
5712 done
5713 IFS=$as_save_IFS
5714
5715 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5716 ;;
5717 esac
5718 fi
5719 MAKEINFO=$ac_cv_path_MAKEINFO
5720 if test -n "$MAKEINFO"; then
5721 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5722 $as_echo "$MAKEINFO" >&6; }
5723 else
5724 { $as_echo "$as_me:$LINENO: result: no" >&5
5725 $as_echo "no" >&6; }
5726 fi
5727
5728
5729 if test "$MAKEINFO" != "no" && \
5730 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
5731 MAKEINFO=no
5732 fi
5733
5734 ## Makeinfo is unusual. For a released Emacs, the manuals are
5735 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5736 ## therefore in the category of "special tools" not normally required, which
5737 ## configure does not have to check for (eg autoconf itself).
5738 ## In a Bazaar checkout on the other hand, the manuals are not included.
5739 ## So makeinfo is a requirement to build from Bazaar, and configure
5740 ## should test for it as it does for any other build requirement.
5741 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5742 ## with pre-built manuals, from a Bazaar checkout.
5743 if test "$MAKEINFO" = "no"; then
5744 if test "x${with_makeinfo}" = "xno"; then
5745 MAKEINFO=off
5746 elif test ! -e $srcdir/info/emacs; then
5747 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5748 source tree does not seem to have pre-built manuals in the \`info' directory.
5749 Either install a suitable version of makeinfo, or re-run configure
5750 with the \`--without-makeinfo' option to build without the manuals. " >&5
5751 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5752 source tree does not seem to have pre-built manuals in the \`info' directory.
5753 Either install a suitable version of makeinfo, or re-run configure
5754 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5755 { (exit 1); exit 1; }; }
5756 fi
5757 fi
5758
5759
5760 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5761 then
5762 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5763 fi
5764
5765 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5766 then
5767 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5768 fi
5769
5770
5771 late_LDFLAGS=$LDFLAGS
5772 if test "$GCC" = yes; then
5773 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5774 else
5775 LDFLAGS="$LDFLAGS -znocombreloc"
5776 fi
5777
5778 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5779 $as_echo_n "checking for -znocombreloc... " >&6; }
5780 cat >conftest.$ac_ext <<_ACEOF
5781 main(){return 0;}
5782 _ACEOF
5783 rm -f conftest.$ac_objext conftest$ac_exeext
5784 if { (ac_try="$ac_link"
5785 case "(($ac_try" in
5786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5787 *) ac_try_echo=$ac_try;;
5788 esac
5789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5790 $as_echo "$ac_try_echo") >&5
5791 (eval "$ac_link") 2>conftest.er1
5792 ac_status=$?
5793 grep -v '^ *+' conftest.er1 >conftest.err
5794 rm -f conftest.er1
5795 cat conftest.err >&5
5796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); } && {
5798 test -z "$ac_c_werror_flag" ||
5799 test ! -s conftest.err
5800 } && test -s conftest$ac_exeext && {
5801 test "$cross_compiling" = yes ||
5802 $as_test_x conftest$ac_exeext
5803 }; then
5804 { $as_echo "$as_me:$LINENO: result: yes" >&5
5805 $as_echo "yes" >&6; }
5806 else
5807 $as_echo "$as_me: failed program was:" >&5
5808 sed 's/^/| /' conftest.$ac_ext >&5
5809
5810 LDFLAGS=$late_LDFLAGS
5811 { $as_echo "$as_me:$LINENO: result: no" >&5
5812 $as_echo "no" >&6; }
5813 fi
5814
5815 rm -rf conftest.dSYM
5816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5817 conftest$ac_exeext conftest.$ac_ext
5818
5819 #### Extract some information from the operating system and machine files.
5820
5821 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5822 - which libraries the lib-src programs will want, and
5823 - whether the GNU malloc routines are usable..." >&5
5824 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5825 - which libraries the lib-src programs will want, and
5826 - whether the GNU malloc routines are usable..." >&6;}
5827
5828 ### First figure out CFLAGS (which we use for running the compiler here)
5829 ### and REAL_CFLAGS (which we use for real compilation).
5830 ### The two are the same except on a few systems, where they are made
5831 ### different to work around various lossages. For example,
5832 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5833 ### as implying static linking.
5834
5835 ### If the CFLAGS env var is specified, we use that value
5836 ### instead of the default.
5837
5838 ### It's not important that this name contain the PID; you can't run
5839 ### two configures in the same directory and have anything work
5840 ### anyway.
5841 tempcname="conftest.c"
5842
5843 echo '
5844 #include "'${srcdir}'/src/'${opsysfile}'"
5845 #include "'${srcdir}'/src/'${machfile}'"
5846
5847 configure___ LIBX=-lX11
5848
5849 configure___ unexec=UNEXEC
5850
5851 #ifdef SYSTEM_MALLOC
5852 configure___ system_malloc=yes
5853 #else
5854 configure___ system_malloc=no
5855 #endif
5856
5857 #ifdef USE_MMAP_FOR_BUFFERS
5858 configure___ use_mmap_for_buffers=yes
5859 #else
5860 configure___ use_mmap_for_buffers=no
5861 #endif
5862
5863 #ifndef C_OPTIMIZE_SWITCH
5864 #ifdef __GNUC__
5865 #define C_OPTIMIZE_SWITCH -O2
5866 #else
5867 #define C_OPTIMIZE_SWITCH -O
5868 #endif
5869 #endif
5870
5871 #ifndef C_WARNINGS_SWITCH
5872 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5873 #endif
5874
5875 #ifdef THIS_IS_CONFIGURE
5876
5877 /* Get the CFLAGS for tests in configure. */
5878 #ifdef __GNUC__
5879 configure___ CFLAGS=-g C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5880 #else
5881 configure___ CFLAGS='${SPECIFIED_CFLAGS}'
5882 #endif
5883
5884 #else /* not THIS_IS_CONFIGURE */
5885
5886 /* Get the CFLAGS for real compilation. */
5887 #ifdef __GNUC__
5888 configure___ REAL_CFLAGS=-g C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5889 #else
5890 configure___ REAL_CFLAGS='${SPECIFIED_CFLAGS}'
5891 #endif
5892
5893 #endif /* not THIS_IS_CONFIGURE */
5894 ' > ${tempcname}
5895
5896 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5897
5898 # The value of CPP is a quoted variable reference, so we need to do this
5899 # to get its actual value...
5900 CPP=`eval "echo $CPP"`
5901 eval `${CPP} -Isrc ${tempcname} \
5902 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5903 if test "x$SPECIFIED_CFLAGS" = x; then
5904 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5905 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5906 else
5907 REAL_CFLAGS="$CFLAGS"
5908 fi
5909 rm ${tempcname}
5910
5911
5912 LD_SWITCH_SYSTEM=
5913 case "$opsys" in
5914 freebsd)
5915 ## Let `ld' find image libs and similar things in /usr/local/lib.
5916 ## The system compiler, GCC, has apparently been modified to not
5917 ## look there, contrary to what a stock GCC would do.
5918 LD_SWITCH_SYSTEM=-L/usr/local/lib
5919 ;;
5920
5921 gnu-linux)
5922 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5923 test "$machine" = "mips" && LD_SWITCH_SYSTEM="-G 0"
5924 ;;
5925
5926 netbsd)
5927 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5928 ;;
5929
5930 openbsd)
5931 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5932 ## otherwise Emacs dumps core on elf systems.
5933 LD_SWITCH_SYSTEM="-Z"
5934 ;;
5935 esac
5936
5937
5938 ac_link="$ac_link $LD_SWITCH_SYSTEM"
5939
5940 ## This is fun. Some settings of LD_SWITCH_SYSTEM reference
5941 ## LD_SWITCH_X_SITE_AUX, which has not been defined yet. When using
5942 ## cpp, it was expanded to null. Thus LD_SWITCH_SYSTEM had different
5943 ## values in configure and the Makefiles. How helpful.
5944 ## FIXME why not use LD_SWITCH_SYSTEM_TEMACS (or somesuch) instead?
5945 case "$opsys" in
5946 gnu-linux)
5947 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
5948 LD_SWITCH_SYSTEM="$LD_SWITCH_SYSTEM \$(LD_SWITCH_X_SITE_AUX)" ;;
5949
5950 netbsd|openbsd)
5951 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5952 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5953 esac
5954
5955
5956 C_SWITCH_MACHINE=
5957 if test "$machine" = "alpha"; then
5958 { $as_echo "$as_me:$LINENO: checking whether __ELF__ is declared" >&5
5959 $as_echo_n "checking whether __ELF__ is declared... " >&6; }
5960 if test "${ac_cv_have_decl___ELF__+set}" = set; then
5961 $as_echo_n "(cached) " >&6
5962 else
5963 cat >conftest.$ac_ext <<_ACEOF
5964 /* confdefs.h. */
5965 _ACEOF
5966 cat confdefs.h >>conftest.$ac_ext
5967 cat >>conftest.$ac_ext <<_ACEOF
5968 /* end confdefs.h. */
5969 $ac_includes_default
5970 int
5971 main ()
5972 {
5973 #ifndef __ELF__
5974 (void) __ELF__;
5975 #endif
5976
5977 ;
5978 return 0;
5979 }
5980 _ACEOF
5981 rm -f conftest.$ac_objext
5982 if { (ac_try="$ac_compile"
5983 case "(($ac_try" in
5984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5985 *) ac_try_echo=$ac_try;;
5986 esac
5987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5988 $as_echo "$ac_try_echo") >&5
5989 (eval "$ac_compile") 2>conftest.er1
5990 ac_status=$?
5991 grep -v '^ *+' conftest.er1 >conftest.err
5992 rm -f conftest.er1
5993 cat conftest.err >&5
5994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); } && {
5996 test -z "$ac_c_werror_flag" ||
5997 test ! -s conftest.err
5998 } && test -s conftest.$ac_objext; then
5999 ac_cv_have_decl___ELF__=yes
6000 else
6001 $as_echo "$as_me: failed program was:" >&5
6002 sed 's/^/| /' conftest.$ac_ext >&5
6003
6004 ac_cv_have_decl___ELF__=no
6005 fi
6006
6007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6008 fi
6009 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___ELF__" >&5
6010 $as_echo "$ac_cv_have_decl___ELF__" >&6; }
6011
6012 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6013 ## With ELF, make sure that all common symbols get allocated to in the
6014 ## data section. Otherwise, the dump of temacs may miss variables in
6015 ## the shared library that have been initialized. For example, with
6016 ## GNU libc, __malloc_initialized would normally be resolved to the
6017 ## shared library's .bss section, which is fatal.
6018 if test "x$GCC" = "xyes"; then
6019 C_SWITCH_MACHINE="-fno-common"
6020 else
6021 { { $as_echo "$as_me:$LINENO: error: What gives? Fix me if DEC Unix supports ELF now." >&5
6022 $as_echo "$as_me: error: What gives? Fix me if DEC Unix supports ELF now." >&2;}
6023 { (exit 1); exit 1; }; }
6024 fi
6025 fi
6026 fi
6027
6028
6029
6030 C_SWITCH_SYSTEM=
6031 ## Some programs in src produce warnings saying certain subprograms
6032 ## are too complex and need a MAXMEM value greater than 2000 for
6033 ## additional optimization. --nils@exp-math.uni-essen.de
6034 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6035 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6036 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6037 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6038
6039
6040
6041 LIBS_SYSTEM=
6042 case "$opsys" in
6043 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6044 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6045
6046 freebsd) LIBS_SYSTEM="-lutil" ;;
6047
6048 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6049
6050 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
6051
6052 ## Motif needs -lgen.
6053 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6054 esac
6055
6056
6057
6058 ### Make sure subsequent tests use flags consistent with the build flags.
6059
6060 if test x"${OVERRIDE_CPPFLAGS}" != x; then
6061 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
6062 else
6063 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6064 fi
6065
6066
6067
6068 # Check whether --enable-largefile was given.
6069 if test "${enable_largefile+set}" = set; then
6070 enableval=$enable_largefile;
6071 fi
6072
6073 if test "$enable_largefile" != no; then
6074
6075 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
6076 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6077 if test "${ac_cv_sys_largefile_CC+set}" = set; then
6078 $as_echo_n "(cached) " >&6
6079 else
6080 ac_cv_sys_largefile_CC=no
6081 if test "$GCC" != yes; then
6082 ac_save_CC=$CC
6083 while :; do
6084 # IRIX 6.2 and later do not support large files by default,
6085 # so use the C compiler's -n32 option if that helps.
6086 cat >conftest.$ac_ext <<_ACEOF
6087 /* confdefs.h. */
6088 _ACEOF
6089 cat confdefs.h >>conftest.$ac_ext
6090 cat >>conftest.$ac_ext <<_ACEOF
6091 /* end confdefs.h. */
6092 #include <sys/types.h>
6093 /* Check that off_t can represent 2**63 - 1 correctly.
6094 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6095 since some C++ compilers masquerading as C compilers
6096 incorrectly reject 9223372036854775807. */
6097 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6098 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6099 && LARGE_OFF_T % 2147483647 == 1)
6100 ? 1 : -1];
6101 int
6102 main ()
6103 {
6104
6105 ;
6106 return 0;
6107 }
6108 _ACEOF
6109 rm -f conftest.$ac_objext
6110 if { (ac_try="$ac_compile"
6111 case "(($ac_try" in
6112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6113 *) ac_try_echo=$ac_try;;
6114 esac
6115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6116 $as_echo "$ac_try_echo") >&5
6117 (eval "$ac_compile") 2>conftest.er1
6118 ac_status=$?
6119 grep -v '^ *+' conftest.er1 >conftest.err
6120 rm -f conftest.er1
6121 cat conftest.err >&5
6122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); } && {
6124 test -z "$ac_c_werror_flag" ||
6125 test ! -s conftest.err
6126 } && test -s conftest.$ac_objext; then
6127 break
6128 else
6129 $as_echo "$as_me: failed program was:" >&5
6130 sed 's/^/| /' conftest.$ac_ext >&5
6131
6132
6133 fi
6134
6135 rm -f core conftest.err conftest.$ac_objext
6136 CC="$CC -n32"
6137 rm -f conftest.$ac_objext
6138 if { (ac_try="$ac_compile"
6139 case "(($ac_try" in
6140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6141 *) ac_try_echo=$ac_try;;
6142 esac
6143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6144 $as_echo "$ac_try_echo") >&5
6145 (eval "$ac_compile") 2>conftest.er1
6146 ac_status=$?
6147 grep -v '^ *+' conftest.er1 >conftest.err
6148 rm -f conftest.er1
6149 cat conftest.err >&5
6150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); } && {
6152 test -z "$ac_c_werror_flag" ||
6153 test ! -s conftest.err
6154 } && test -s conftest.$ac_objext; then
6155 ac_cv_sys_largefile_CC=' -n32'; break
6156 else
6157 $as_echo "$as_me: failed program was:" >&5
6158 sed 's/^/| /' conftest.$ac_ext >&5
6159
6160
6161 fi
6162
6163 rm -f core conftest.err conftest.$ac_objext
6164 break
6165 done
6166 CC=$ac_save_CC
6167 rm -f conftest.$ac_ext
6168 fi
6169 fi
6170 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6171 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6172 if test "$ac_cv_sys_largefile_CC" != no; then
6173 CC=$CC$ac_cv_sys_largefile_CC
6174 fi
6175
6176 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6177 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6178 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6179 $as_echo_n "(cached) " >&6
6180 else
6181 while :; do
6182 cat >conftest.$ac_ext <<_ACEOF
6183 /* confdefs.h. */
6184 _ACEOF
6185 cat confdefs.h >>conftest.$ac_ext
6186 cat >>conftest.$ac_ext <<_ACEOF
6187 /* end confdefs.h. */
6188 #include <sys/types.h>
6189 /* Check that off_t can represent 2**63 - 1 correctly.
6190 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6191 since some C++ compilers masquerading as C compilers
6192 incorrectly reject 9223372036854775807. */
6193 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6194 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6195 && LARGE_OFF_T % 2147483647 == 1)
6196 ? 1 : -1];
6197 int
6198 main ()
6199 {
6200
6201 ;
6202 return 0;
6203 }
6204 _ACEOF
6205 rm -f conftest.$ac_objext
6206 if { (ac_try="$ac_compile"
6207 case "(($ac_try" in
6208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6209 *) ac_try_echo=$ac_try;;
6210 esac
6211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6212 $as_echo "$ac_try_echo") >&5
6213 (eval "$ac_compile") 2>conftest.er1
6214 ac_status=$?
6215 grep -v '^ *+' conftest.er1 >conftest.err
6216 rm -f conftest.er1
6217 cat conftest.err >&5
6218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); } && {
6220 test -z "$ac_c_werror_flag" ||
6221 test ! -s conftest.err
6222 } && test -s conftest.$ac_objext; then
6223 ac_cv_sys_file_offset_bits=no; break
6224 else
6225 $as_echo "$as_me: failed program was:" >&5
6226 sed 's/^/| /' conftest.$ac_ext >&5
6227
6228
6229 fi
6230
6231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6232 cat >conftest.$ac_ext <<_ACEOF
6233 /* confdefs.h. */
6234 _ACEOF
6235 cat confdefs.h >>conftest.$ac_ext
6236 cat >>conftest.$ac_ext <<_ACEOF
6237 /* end confdefs.h. */
6238 #define _FILE_OFFSET_BITS 64
6239 #include <sys/types.h>
6240 /* Check that off_t can represent 2**63 - 1 correctly.
6241 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6242 since some C++ compilers masquerading as C compilers
6243 incorrectly reject 9223372036854775807. */
6244 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6245 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6246 && LARGE_OFF_T % 2147483647 == 1)
6247 ? 1 : -1];
6248 int
6249 main ()
6250 {
6251
6252 ;
6253 return 0;
6254 }
6255 _ACEOF
6256 rm -f conftest.$ac_objext
6257 if { (ac_try="$ac_compile"
6258 case "(($ac_try" in
6259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6260 *) ac_try_echo=$ac_try;;
6261 esac
6262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6263 $as_echo "$ac_try_echo") >&5
6264 (eval "$ac_compile") 2>conftest.er1
6265 ac_status=$?
6266 grep -v '^ *+' conftest.er1 >conftest.err
6267 rm -f conftest.er1
6268 cat conftest.err >&5
6269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); } && {
6271 test -z "$ac_c_werror_flag" ||
6272 test ! -s conftest.err
6273 } && test -s conftest.$ac_objext; then
6274 ac_cv_sys_file_offset_bits=64; break
6275 else
6276 $as_echo "$as_me: failed program was:" >&5
6277 sed 's/^/| /' conftest.$ac_ext >&5
6278
6279
6280 fi
6281
6282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6283 ac_cv_sys_file_offset_bits=unknown
6284 break
6285 done
6286 fi
6287 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6288 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6289 case $ac_cv_sys_file_offset_bits in #(
6290 no | unknown) ;;
6291 *)
6292 cat >>confdefs.h <<_ACEOF
6293 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6294 _ACEOF
6295 ;;
6296 esac
6297 rm -rf conftest*
6298 if test $ac_cv_sys_file_offset_bits = unknown; then
6299 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6300 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6301 if test "${ac_cv_sys_large_files+set}" = set; then
6302 $as_echo_n "(cached) " >&6
6303 else
6304 while :; do
6305 cat >conftest.$ac_ext <<_ACEOF
6306 /* confdefs.h. */
6307 _ACEOF
6308 cat confdefs.h >>conftest.$ac_ext
6309 cat >>conftest.$ac_ext <<_ACEOF
6310 /* end confdefs.h. */
6311 #include <sys/types.h>
6312 /* Check that off_t can represent 2**63 - 1 correctly.
6313 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6314 since some C++ compilers masquerading as C compilers
6315 incorrectly reject 9223372036854775807. */
6316 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6317 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6318 && LARGE_OFF_T % 2147483647 == 1)
6319 ? 1 : -1];
6320 int
6321 main ()
6322 {
6323
6324 ;
6325 return 0;
6326 }
6327 _ACEOF
6328 rm -f conftest.$ac_objext
6329 if { (ac_try="$ac_compile"
6330 case "(($ac_try" in
6331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6332 *) ac_try_echo=$ac_try;;
6333 esac
6334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6335 $as_echo "$ac_try_echo") >&5
6336 (eval "$ac_compile") 2>conftest.er1
6337 ac_status=$?
6338 grep -v '^ *+' conftest.er1 >conftest.err
6339 rm -f conftest.er1
6340 cat conftest.err >&5
6341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); } && {
6343 test -z "$ac_c_werror_flag" ||
6344 test ! -s conftest.err
6345 } && test -s conftest.$ac_objext; then
6346 ac_cv_sys_large_files=no; break
6347 else
6348 $as_echo "$as_me: failed program was:" >&5
6349 sed 's/^/| /' conftest.$ac_ext >&5
6350
6351
6352 fi
6353
6354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6355 cat >conftest.$ac_ext <<_ACEOF
6356 /* confdefs.h. */
6357 _ACEOF
6358 cat confdefs.h >>conftest.$ac_ext
6359 cat >>conftest.$ac_ext <<_ACEOF
6360 /* end confdefs.h. */
6361 #define _LARGE_FILES 1
6362 #include <sys/types.h>
6363 /* Check that off_t can represent 2**63 - 1 correctly.
6364 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6365 since some C++ compilers masquerading as C compilers
6366 incorrectly reject 9223372036854775807. */
6367 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6368 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6369 && LARGE_OFF_T % 2147483647 == 1)
6370 ? 1 : -1];
6371 int
6372 main ()
6373 {
6374
6375 ;
6376 return 0;
6377 }
6378 _ACEOF
6379 rm -f conftest.$ac_objext
6380 if { (ac_try="$ac_compile"
6381 case "(($ac_try" in
6382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6383 *) ac_try_echo=$ac_try;;
6384 esac
6385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6386 $as_echo "$ac_try_echo") >&5
6387 (eval "$ac_compile") 2>conftest.er1
6388 ac_status=$?
6389 grep -v '^ *+' conftest.er1 >conftest.err
6390 rm -f conftest.er1
6391 cat conftest.err >&5
6392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); } && {
6394 test -z "$ac_c_werror_flag" ||
6395 test ! -s conftest.err
6396 } && test -s conftest.$ac_objext; then
6397 ac_cv_sys_large_files=1; break
6398 else
6399 $as_echo "$as_me: failed program was:" >&5
6400 sed 's/^/| /' conftest.$ac_ext >&5
6401
6402
6403 fi
6404
6405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6406 ac_cv_sys_large_files=unknown
6407 break
6408 done
6409 fi
6410 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6411 $as_echo "$ac_cv_sys_large_files" >&6; }
6412 case $ac_cv_sys_large_files in #(
6413 no | unknown) ;;
6414 *)
6415 cat >>confdefs.h <<_ACEOF
6416 #define _LARGE_FILES $ac_cv_sys_large_files
6417 _ACEOF
6418 ;;
6419 esac
6420 rm -rf conftest*
6421 fi
6422 fi
6423
6424
6425
6426 ## If user specified a crt-dir, use that unconditionally.
6427 if test "X$CRT_DIR" = "X"; then
6428
6429 case "$canonical" in
6430 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
6431 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6432 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6433 ## For anything else (eg /usr/lib32), it is up the user to specify
6434 ## the location (bug#5655).
6435 ## Test for crtn.o, not just the directory, because sometimes the
6436 ## directory exists but does not have the relevant files (bug#1287).
6437 ## FIXME better to test for binary compatibility somehow.
6438 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
6439 ;;
6440
6441 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
6442 esac
6443
6444 case "$opsys" in
6445 hpux10-20) CRT_DIR=/lib ;;
6446 esac
6447
6448 ## Default is /usr/lib.
6449 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
6450
6451 else
6452
6453 ## Some platforms don't use any of these files, so it is not
6454 ## appropriate to put this test outside the if block.
6455 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
6456 { { $as_echo "$as_me:$LINENO: error: crt*.o not found in specified location." >&5
6457 $as_echo "$as_me: error: crt*.o not found in specified location." >&2;}
6458 { (exit 1); exit 1; }; }
6459
6460 fi
6461
6462
6463
6464 LIB_MATH=-lm
6465 LIB_STANDARD=
6466 START_FILES=
6467
6468 case $opsys in
6469 cygwin )
6470 LIB_MATH=
6471 START_FILES='ecrt0.o'
6472 ;;
6473 darwin )
6474 ## Adding -lm confuses the dynamic linker, so omit it.
6475 LIB_MATH=
6476 START_FILES='pre-crt0.o'
6477 ;;
6478 freebsd )
6479 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6480 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6481 ;;
6482 gnu-linux | gnu-kfreebsd )
6483 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
6484 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
6485 ;;
6486 hpux10-20 | hpux11 )
6487 LIB_STANDARD=-lc
6488 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
6489 ;;
6490 netbsd | openbsd )
6491 if test -f $CRT_DIR/crti.o; then
6492 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6493 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6494 else
6495 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
6496 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
6497 fi
6498 ;;
6499 esac
6500
6501
6502
6503
6504
6505
6506
6507 if test "${with_sound}" != "no"; then
6508 # Sound support for GNU/Linux and the free BSDs.
6509
6510
6511
6512 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6513 do
6514 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6516 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6517 $as_echo_n "checking for $ac_header... " >&6; }
6518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6519 $as_echo_n "(cached) " >&6
6520 fi
6521 ac_res=`eval 'as_val=${'$as_ac_Header'}
6522 $as_echo "$as_val"'`
6523 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6524 $as_echo "$ac_res" >&6; }
6525 else
6526 # Is the header compilable?
6527 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6528 $as_echo_n "checking $ac_header usability... " >&6; }
6529 cat >conftest.$ac_ext <<_ACEOF
6530 /* confdefs.h. */
6531 _ACEOF
6532 cat confdefs.h >>conftest.$ac_ext
6533 cat >>conftest.$ac_ext <<_ACEOF
6534 /* end confdefs.h. */
6535 $ac_includes_default
6536 #include <$ac_header>
6537 _ACEOF
6538 rm -f conftest.$ac_objext
6539 if { (ac_try="$ac_compile"
6540 case "(($ac_try" in
6541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6542 *) ac_try_echo=$ac_try;;
6543 esac
6544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6545 $as_echo "$ac_try_echo") >&5
6546 (eval "$ac_compile") 2>conftest.er1
6547 ac_status=$?
6548 grep -v '^ *+' conftest.er1 >conftest.err
6549 rm -f conftest.er1
6550 cat conftest.err >&5
6551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); } && {
6553 test -z "$ac_c_werror_flag" ||
6554 test ! -s conftest.err
6555 } && test -s conftest.$ac_objext; then
6556 ac_header_compiler=yes
6557 else
6558 $as_echo "$as_me: failed program was:" >&5
6559 sed 's/^/| /' conftest.$ac_ext >&5
6560
6561 ac_header_compiler=no
6562 fi
6563
6564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6565 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6566 $as_echo "$ac_header_compiler" >&6; }
6567
6568 # Is the header present?
6569 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6570 $as_echo_n "checking $ac_header presence... " >&6; }
6571 cat >conftest.$ac_ext <<_ACEOF
6572 /* confdefs.h. */
6573 _ACEOF
6574 cat confdefs.h >>conftest.$ac_ext
6575 cat >>conftest.$ac_ext <<_ACEOF
6576 /* end confdefs.h. */
6577 #include <$ac_header>
6578 _ACEOF
6579 if { (ac_try="$ac_cpp conftest.$ac_ext"
6580 case "(($ac_try" in
6581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6582 *) ac_try_echo=$ac_try;;
6583 esac
6584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6585 $as_echo "$ac_try_echo") >&5
6586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6587 ac_status=$?
6588 grep -v '^ *+' conftest.er1 >conftest.err
6589 rm -f conftest.er1
6590 cat conftest.err >&5
6591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592 (exit $ac_status); } >/dev/null && {
6593 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6594 test ! -s conftest.err
6595 }; then
6596 ac_header_preproc=yes
6597 else
6598 $as_echo "$as_me: failed program was:" >&5
6599 sed 's/^/| /' conftest.$ac_ext >&5
6600
6601 ac_header_preproc=no
6602 fi
6603
6604 rm -f conftest.err conftest.$ac_ext
6605 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6606 $as_echo "$ac_header_preproc" >&6; }
6607
6608 # So? What about this header?
6609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6610 yes:no: )
6611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6612 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6614 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6615 ac_header_preproc=yes
6616 ;;
6617 no:yes:* )
6618 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6619 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6620 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6621 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6622 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6623 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6624 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6625 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6626 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6627 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6628 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6629 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6630
6631 ;;
6632 esac
6633 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6634 $as_echo_n "checking for $ac_header... " >&6; }
6635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6636 $as_echo_n "(cached) " >&6
6637 else
6638 eval "$as_ac_Header=\$ac_header_preproc"
6639 fi
6640 ac_res=`eval 'as_val=${'$as_ac_Header'}
6641 $as_echo "$as_val"'`
6642 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6643 $as_echo "$ac_res" >&6; }
6644
6645 fi
6646 if test `eval 'as_val=${'$as_ac_Header'}
6647 $as_echo "$as_val"'` = yes; then
6648 cat >>confdefs.h <<_ACEOF
6649 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6650 _ACEOF
6651
6652 fi
6653
6654 done
6655
6656 # Emulation library used on NetBSD.
6657 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6658 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6659 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6660 $as_echo_n "(cached) " >&6
6661 else
6662 ac_check_lib_save_LIBS=$LIBS
6663 LIBS="-lossaudio $LIBS"
6664 cat >conftest.$ac_ext <<_ACEOF
6665 /* confdefs.h. */
6666 _ACEOF
6667 cat confdefs.h >>conftest.$ac_ext
6668 cat >>conftest.$ac_ext <<_ACEOF
6669 /* end confdefs.h. */
6670
6671 /* Override any GCC internal prototype to avoid an error.
6672 Use char because int might match the return type of a GCC
6673 builtin and then its argument prototype would still apply. */
6674 #ifdef __cplusplus
6675 extern "C"
6676 #endif
6677 char _oss_ioctl ();
6678 int
6679 main ()
6680 {
6681 return _oss_ioctl ();
6682 ;
6683 return 0;
6684 }
6685 _ACEOF
6686 rm -f conftest.$ac_objext conftest$ac_exeext
6687 if { (ac_try="$ac_link"
6688 case "(($ac_try" in
6689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6690 *) ac_try_echo=$ac_try;;
6691 esac
6692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6693 $as_echo "$ac_try_echo") >&5
6694 (eval "$ac_link") 2>conftest.er1
6695 ac_status=$?
6696 grep -v '^ *+' conftest.er1 >conftest.err
6697 rm -f conftest.er1
6698 cat conftest.err >&5
6699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); } && {
6701 test -z "$ac_c_werror_flag" ||
6702 test ! -s conftest.err
6703 } && test -s conftest$ac_exeext && {
6704 test "$cross_compiling" = yes ||
6705 $as_test_x conftest$ac_exeext
6706 }; then
6707 ac_cv_lib_ossaudio__oss_ioctl=yes
6708 else
6709 $as_echo "$as_me: failed program was:" >&5
6710 sed 's/^/| /' conftest.$ac_ext >&5
6711
6712 ac_cv_lib_ossaudio__oss_ioctl=no
6713 fi
6714
6715 rm -rf conftest.dSYM
6716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6717 conftest$ac_exeext conftest.$ac_ext
6718 LIBS=$ac_check_lib_save_LIBS
6719 fi
6720 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6721 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6722 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6723 LIBSOUND=-lossaudio
6724 else
6725 LIBSOUND=
6726 fi
6727
6728
6729
6730 ALSA_REQUIRED=1.0.0
6731 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6732
6733 succeeded=no
6734
6735 # Extract the first word of "pkg-config", so it can be a program name with args.
6736 set dummy pkg-config; ac_word=$2
6737 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6738 $as_echo_n "checking for $ac_word... " >&6; }
6739 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6740 $as_echo_n "(cached) " >&6
6741 else
6742 case $PKG_CONFIG in
6743 [\\/]* | ?:[\\/]*)
6744 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6745 ;;
6746 *)
6747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748 for as_dir in $PATH
6749 do
6750 IFS=$as_save_IFS
6751 test -z "$as_dir" && as_dir=.
6752 for ac_exec_ext in '' $ac_executable_extensions; do
6753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6754 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6755 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6756 break 2
6757 fi
6758 done
6759 done
6760 IFS=$as_save_IFS
6761
6762 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6763 ;;
6764 esac
6765 fi
6766 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6767 if test -n "$PKG_CONFIG"; then
6768 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6769 $as_echo "$PKG_CONFIG" >&6; }
6770 else
6771 { $as_echo "$as_me:$LINENO: result: no" >&5
6772 $as_echo "no" >&6; }
6773 fi
6774
6775
6776
6777 if test "$PKG_CONFIG" = "no" ; then
6778 HAVE_ALSA=no
6779 else
6780 PKG_CONFIG_MIN_VERSION=0.9.0
6781 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6782 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6783 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6784
6785 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6786 { $as_echo "$as_me:$LINENO: result: yes" >&5
6787 $as_echo "yes" >&6; }
6788 succeeded=yes
6789
6790 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6791 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6792 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6793 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6794 $as_echo "$ALSA_CFLAGS" >&6; }
6795
6796 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6797 $as_echo_n "checking ALSA_LIBS... " >&6; }
6798 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6799 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6800 $as_echo "$ALSA_LIBS" >&6; }
6801 else
6802 { $as_echo "$as_me:$LINENO: result: no" >&5
6803 $as_echo "no" >&6; }
6804 ALSA_CFLAGS=""
6805 ALSA_LIBS=""
6806 ## If we have a custom action on failure, don't print errors, but
6807 ## do set a variable so people can do so.
6808 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6809
6810 fi
6811
6812
6813
6814 else
6815 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6816 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6817 fi
6818 fi
6819
6820 if test $succeeded = yes; then
6821 HAVE_ALSA=yes
6822 else
6823 HAVE_ALSA=no
6824 fi
6825
6826 if test $HAVE_ALSA = yes; then
6827 SAVE_CFLAGS="$CFLAGS"
6828 SAVE_LDFLAGS="$LDFLAGS"
6829 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6830 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6831 cat >conftest.$ac_ext <<_ACEOF
6832 /* confdefs.h. */
6833 _ACEOF
6834 cat confdefs.h >>conftest.$ac_ext
6835 cat >>conftest.$ac_ext <<_ACEOF
6836 /* end confdefs.h. */
6837 #include <asoundlib.h>
6838 int
6839 main ()
6840 {
6841 snd_lib_error_set_handler (0);
6842 ;
6843 return 0;
6844 }
6845 _ACEOF
6846 rm -f conftest.$ac_objext
6847 if { (ac_try="$ac_compile"
6848 case "(($ac_try" in
6849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6850 *) ac_try_echo=$ac_try;;
6851 esac
6852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6853 $as_echo "$ac_try_echo") >&5
6854 (eval "$ac_compile") 2>conftest.er1
6855 ac_status=$?
6856 grep -v '^ *+' conftest.er1 >conftest.err
6857 rm -f conftest.er1
6858 cat conftest.err >&5
6859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860 (exit $ac_status); } && {
6861 test -z "$ac_c_werror_flag" ||
6862 test ! -s conftest.err
6863 } && test -s conftest.$ac_objext; then
6864 emacs_alsa_normal=yes
6865 else
6866 $as_echo "$as_me: failed program was:" >&5
6867 sed 's/^/| /' conftest.$ac_ext >&5
6868
6869 emacs_alsa_normal=no
6870 fi
6871
6872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6873 if test "$emacs_alsa_normal" != yes; then
6874 cat >conftest.$ac_ext <<_ACEOF
6875 /* confdefs.h. */
6876 _ACEOF
6877 cat confdefs.h >>conftest.$ac_ext
6878 cat >>conftest.$ac_ext <<_ACEOF
6879 /* end confdefs.h. */
6880 #include <alsa/asoundlib.h>
6881 int
6882 main ()
6883 {
6884 snd_lib_error_set_handler (0);
6885 ;
6886 return 0;
6887 }
6888 _ACEOF
6889 rm -f conftest.$ac_objext
6890 if { (ac_try="$ac_compile"
6891 case "(($ac_try" in
6892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6893 *) ac_try_echo=$ac_try;;
6894 esac
6895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6896 $as_echo "$ac_try_echo") >&5
6897 (eval "$ac_compile") 2>conftest.er1
6898 ac_status=$?
6899 grep -v '^ *+' conftest.er1 >conftest.err
6900 rm -f conftest.er1
6901 cat conftest.err >&5
6902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); } && {
6904 test -z "$ac_c_werror_flag" ||
6905 test ! -s conftest.err
6906 } && test -s conftest.$ac_objext; then
6907 emacs_alsa_subdir=yes
6908 else
6909 $as_echo "$as_me: failed program was:" >&5
6910 sed 's/^/| /' conftest.$ac_ext >&5
6911
6912 emacs_alsa_subdir=no
6913 fi
6914
6915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6916 if test "$emacs_alsa_subdir" != yes; then
6917 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6918 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6919 { (exit 1); exit 1; }; }
6920 fi
6921 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6922 fi
6923
6924 CFLAGS="$SAVE_CFLAGS"
6925 LDFLAGS="$SAVE_LDFLAGS"
6926 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6927 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6928
6929 cat >>confdefs.h <<\_ACEOF
6930 #define HAVE_ALSA 1
6931 _ACEOF
6932
6933 fi
6934
6935 fi
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6963 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6964 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6965 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6966 sys/utsname.h pwd.h utmp.h
6967 do
6968 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6970 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6971 $as_echo_n "checking for $ac_header... " >&6; }
6972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6973 $as_echo_n "(cached) " >&6
6974 fi
6975 ac_res=`eval 'as_val=${'$as_ac_Header'}
6976 $as_echo "$as_val"'`
6977 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6978 $as_echo "$ac_res" >&6; }
6979 else
6980 # Is the header compilable?
6981 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6982 $as_echo_n "checking $ac_header usability... " >&6; }
6983 cat >conftest.$ac_ext <<_ACEOF
6984 /* confdefs.h. */
6985 _ACEOF
6986 cat confdefs.h >>conftest.$ac_ext
6987 cat >>conftest.$ac_ext <<_ACEOF
6988 /* end confdefs.h. */
6989 $ac_includes_default
6990 #include <$ac_header>
6991 _ACEOF
6992 rm -f conftest.$ac_objext
6993 if { (ac_try="$ac_compile"
6994 case "(($ac_try" in
6995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6996 *) ac_try_echo=$ac_try;;
6997 esac
6998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6999 $as_echo "$ac_try_echo") >&5
7000 (eval "$ac_compile") 2>conftest.er1
7001 ac_status=$?
7002 grep -v '^ *+' conftest.er1 >conftest.err
7003 rm -f conftest.er1
7004 cat conftest.err >&5
7005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); } && {
7007 test -z "$ac_c_werror_flag" ||
7008 test ! -s conftest.err
7009 } && test -s conftest.$ac_objext; then
7010 ac_header_compiler=yes
7011 else
7012 $as_echo "$as_me: failed program was:" >&5
7013 sed 's/^/| /' conftest.$ac_ext >&5
7014
7015 ac_header_compiler=no
7016 fi
7017
7018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7019 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7020 $as_echo "$ac_header_compiler" >&6; }
7021
7022 # Is the header present?
7023 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7024 $as_echo_n "checking $ac_header presence... " >&6; }
7025 cat >conftest.$ac_ext <<_ACEOF
7026 /* confdefs.h. */
7027 _ACEOF
7028 cat confdefs.h >>conftest.$ac_ext
7029 cat >>conftest.$ac_ext <<_ACEOF
7030 /* end confdefs.h. */
7031 #include <$ac_header>
7032 _ACEOF
7033 if { (ac_try="$ac_cpp conftest.$ac_ext"
7034 case "(($ac_try" in
7035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7036 *) ac_try_echo=$ac_try;;
7037 esac
7038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7039 $as_echo "$ac_try_echo") >&5
7040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7041 ac_status=$?
7042 grep -v '^ *+' conftest.er1 >conftest.err
7043 rm -f conftest.er1
7044 cat conftest.err >&5
7045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); } >/dev/null && {
7047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7048 test ! -s conftest.err
7049 }; then
7050 ac_header_preproc=yes
7051 else
7052 $as_echo "$as_me: failed program was:" >&5
7053 sed 's/^/| /' conftest.$ac_ext >&5
7054
7055 ac_header_preproc=no
7056 fi
7057
7058 rm -f conftest.err conftest.$ac_ext
7059 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7060 $as_echo "$ac_header_preproc" >&6; }
7061
7062 # So? What about this header?
7063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7064 yes:no: )
7065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7066 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7068 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7069 ac_header_preproc=yes
7070 ;;
7071 no:yes:* )
7072 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7073 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7074 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7075 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7076 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7077 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7078 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7079 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7080 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7081 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7083 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7084
7085 ;;
7086 esac
7087 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7088 $as_echo_n "checking for $ac_header... " >&6; }
7089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7090 $as_echo_n "(cached) " >&6
7091 else
7092 eval "$as_ac_Header=\$ac_header_preproc"
7093 fi
7094 ac_res=`eval 'as_val=${'$as_ac_Header'}
7095 $as_echo "$as_val"'`
7096 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7097 $as_echo "$ac_res" >&6; }
7098
7099 fi
7100 if test `eval 'as_val=${'$as_ac_Header'}
7101 $as_echo "$as_val"'` = yes; then
7102 cat >>confdefs.h <<_ACEOF
7103 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7104 _ACEOF
7105
7106 fi
7107
7108 done
7109
7110
7111 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
7112 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7113 cat >conftest.$ac_ext <<_ACEOF
7114 /* confdefs.h. */
7115 _ACEOF
7116 cat confdefs.h >>conftest.$ac_ext
7117 cat >>conftest.$ac_ext <<_ACEOF
7118 /* end confdefs.h. */
7119 #include <sys/personality.h>
7120 int
7121 main ()
7122 {
7123 personality (PER_LINUX32)
7124 ;
7125 return 0;
7126 }
7127 _ACEOF
7128 rm -f conftest.$ac_objext
7129 if { (ac_try="$ac_compile"
7130 case "(($ac_try" in
7131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7132 *) ac_try_echo=$ac_try;;
7133 esac
7134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7135 $as_echo "$ac_try_echo") >&5
7136 (eval "$ac_compile") 2>conftest.er1
7137 ac_status=$?
7138 grep -v '^ *+' conftest.er1 >conftest.err
7139 rm -f conftest.er1
7140 cat conftest.err >&5
7141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); } && {
7143 test -z "$ac_c_werror_flag" ||
7144 test ! -s conftest.err
7145 } && test -s conftest.$ac_objext; then
7146 emacs_cv_personality_linux32=yes
7147 else
7148 $as_echo "$as_me: failed program was:" >&5
7149 sed 's/^/| /' conftest.$ac_ext >&5
7150
7151 emacs_cv_personality_linux32=no
7152 fi
7153
7154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7155 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
7156 $as_echo "$emacs_cv_personality_linux32" >&6; }
7157
7158 if test $emacs_cv_personality_linux32 = yes; then
7159
7160 cat >>confdefs.h <<\_ACEOF
7161 #define HAVE_PERSONALITY_LINUX32 1
7162 _ACEOF
7163
7164 fi
7165
7166
7167 for ac_header in term.h
7168 do
7169 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7170 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7171 $as_echo_n "checking for $ac_header... " >&6; }
7172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7173 $as_echo_n "(cached) " >&6
7174 else
7175 cat >conftest.$ac_ext <<_ACEOF
7176 /* confdefs.h. */
7177 _ACEOF
7178 cat confdefs.h >>conftest.$ac_ext
7179 cat >>conftest.$ac_ext <<_ACEOF
7180 /* end confdefs.h. */
7181 #include <$ac_header>
7182 _ACEOF
7183 if { (ac_try="$ac_cpp conftest.$ac_ext"
7184 case "(($ac_try" in
7185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7186 *) ac_try_echo=$ac_try;;
7187 esac
7188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7189 $as_echo "$ac_try_echo") >&5
7190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7191 ac_status=$?
7192 grep -v '^ *+' conftest.er1 >conftest.err
7193 rm -f conftest.er1
7194 cat conftest.err >&5
7195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); } >/dev/null && {
7197 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7198 test ! -s conftest.err
7199 }; then
7200 eval "$as_ac_Header=yes"
7201 else
7202 $as_echo "$as_me: failed program was:" >&5
7203 sed 's/^/| /' conftest.$ac_ext >&5
7204
7205 eval "$as_ac_Header=no"
7206 fi
7207
7208 rm -f conftest.err conftest.$ac_ext
7209 fi
7210 ac_res=`eval 'as_val=${'$as_ac_Header'}
7211 $as_echo "$as_val"'`
7212 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7213 $as_echo "$ac_res" >&6; }
7214 if test `eval 'as_val=${'$as_ac_Header'}
7215 $as_echo "$as_val"'` = yes; then
7216 cat >>confdefs.h <<_ACEOF
7217 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7218 _ACEOF
7219
7220 fi
7221
7222 done
7223
7224 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7225 $as_echo_n "checking for ANSI C header files... " >&6; }
7226 if test "${ac_cv_header_stdc+set}" = set; then
7227 $as_echo_n "(cached) " >&6
7228 else
7229 cat >conftest.$ac_ext <<_ACEOF
7230 /* confdefs.h. */
7231 _ACEOF
7232 cat confdefs.h >>conftest.$ac_ext
7233 cat >>conftest.$ac_ext <<_ACEOF
7234 /* end confdefs.h. */
7235 #include <stdlib.h>
7236 #include <stdarg.h>
7237 #include <string.h>
7238 #include <float.h>
7239
7240 int
7241 main ()
7242 {
7243
7244 ;
7245 return 0;
7246 }
7247 _ACEOF
7248 rm -f conftest.$ac_objext
7249 if { (ac_try="$ac_compile"
7250 case "(($ac_try" in
7251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7252 *) ac_try_echo=$ac_try;;
7253 esac
7254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7255 $as_echo "$ac_try_echo") >&5
7256 (eval "$ac_compile") 2>conftest.er1
7257 ac_status=$?
7258 grep -v '^ *+' conftest.er1 >conftest.err
7259 rm -f conftest.er1
7260 cat conftest.err >&5
7261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262 (exit $ac_status); } && {
7263 test -z "$ac_c_werror_flag" ||
7264 test ! -s conftest.err
7265 } && test -s conftest.$ac_objext; then
7266 ac_cv_header_stdc=yes
7267 else
7268 $as_echo "$as_me: failed program was:" >&5
7269 sed 's/^/| /' conftest.$ac_ext >&5
7270
7271 ac_cv_header_stdc=no
7272 fi
7273
7274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7275
7276 if test $ac_cv_header_stdc = yes; then
7277 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7278 cat >conftest.$ac_ext <<_ACEOF
7279 /* confdefs.h. */
7280 _ACEOF
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h. */
7284 #include <string.h>
7285
7286 _ACEOF
7287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7288 $EGREP "memchr" >/dev/null 2>&1; then
7289 :
7290 else
7291 ac_cv_header_stdc=no
7292 fi
7293 rm -f conftest*
7294
7295 fi
7296
7297 if test $ac_cv_header_stdc = yes; then
7298 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7299 cat >conftest.$ac_ext <<_ACEOF
7300 /* confdefs.h. */
7301 _ACEOF
7302 cat confdefs.h >>conftest.$ac_ext
7303 cat >>conftest.$ac_ext <<_ACEOF
7304 /* end confdefs.h. */
7305 #include <stdlib.h>
7306
7307 _ACEOF
7308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7309 $EGREP "free" >/dev/null 2>&1; then
7310 :
7311 else
7312 ac_cv_header_stdc=no
7313 fi
7314 rm -f conftest*
7315
7316 fi
7317
7318 if test $ac_cv_header_stdc = yes; then
7319 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7320 if test "$cross_compiling" = yes; then
7321 :
7322 else
7323 cat >conftest.$ac_ext <<_ACEOF
7324 /* confdefs.h. */
7325 _ACEOF
7326 cat confdefs.h >>conftest.$ac_ext
7327 cat >>conftest.$ac_ext <<_ACEOF
7328 /* end confdefs.h. */
7329 #include <ctype.h>
7330 #include <stdlib.h>
7331 #if ((' ' & 0x0FF) == 0x020)
7332 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7333 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7334 #else
7335 # define ISLOWER(c) \
7336 (('a' <= (c) && (c) <= 'i') \
7337 || ('j' <= (c) && (c) <= 'r') \
7338 || ('s' <= (c) && (c) <= 'z'))
7339 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7340 #endif
7341
7342 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7343 int
7344 main ()
7345 {
7346 int i;
7347 for (i = 0; i < 256; i++)
7348 if (XOR (islower (i), ISLOWER (i))
7349 || toupper (i) != TOUPPER (i))
7350 return 2;
7351 return 0;
7352 }
7353 _ACEOF
7354 rm -f conftest$ac_exeext
7355 if { (ac_try="$ac_link"
7356 case "(($ac_try" in
7357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7358 *) ac_try_echo=$ac_try;;
7359 esac
7360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7361 $as_echo "$ac_try_echo") >&5
7362 (eval "$ac_link") 2>&5
7363 ac_status=$?
7364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7366 { (case "(($ac_try" in
7367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7368 *) ac_try_echo=$ac_try;;
7369 esac
7370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7371 $as_echo "$ac_try_echo") >&5
7372 (eval "$ac_try") 2>&5
7373 ac_status=$?
7374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375 (exit $ac_status); }; }; then
7376 :
7377 else
7378 $as_echo "$as_me: program exited with status $ac_status" >&5
7379 $as_echo "$as_me: failed program was:" >&5
7380 sed 's/^/| /' conftest.$ac_ext >&5
7381
7382 ( exit $ac_status )
7383 ac_cv_header_stdc=no
7384 fi
7385 rm -rf conftest.dSYM
7386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7387 fi
7388
7389
7390 fi
7391 fi
7392 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7393 $as_echo "$ac_cv_header_stdc" >&6; }
7394 if test $ac_cv_header_stdc = yes; then
7395
7396 cat >>confdefs.h <<\_ACEOF
7397 #define STDC_HEADERS 1
7398 _ACEOF
7399
7400 fi
7401
7402 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7403 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7404 if test "${ac_cv_header_time+set}" = set; then
7405 $as_echo_n "(cached) " >&6
7406 else
7407 cat >conftest.$ac_ext <<_ACEOF
7408 /* confdefs.h. */
7409 _ACEOF
7410 cat confdefs.h >>conftest.$ac_ext
7411 cat >>conftest.$ac_ext <<_ACEOF
7412 /* end confdefs.h. */
7413 #include <sys/types.h>
7414 #include <sys/time.h>
7415 #include <time.h>
7416
7417 int
7418 main ()
7419 {
7420 if ((struct tm *) 0)
7421 return 0;
7422 ;
7423 return 0;
7424 }
7425 _ACEOF
7426 rm -f conftest.$ac_objext
7427 if { (ac_try="$ac_compile"
7428 case "(($ac_try" in
7429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7430 *) ac_try_echo=$ac_try;;
7431 esac
7432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7433 $as_echo "$ac_try_echo") >&5
7434 (eval "$ac_compile") 2>conftest.er1
7435 ac_status=$?
7436 grep -v '^ *+' conftest.er1 >conftest.err
7437 rm -f conftest.er1
7438 cat conftest.err >&5
7439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); } && {
7441 test -z "$ac_c_werror_flag" ||
7442 test ! -s conftest.err
7443 } && test -s conftest.$ac_objext; then
7444 ac_cv_header_time=yes
7445 else
7446 $as_echo "$as_me: failed program was:" >&5
7447 sed 's/^/| /' conftest.$ac_ext >&5
7448
7449 ac_cv_header_time=no
7450 fi
7451
7452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7453 fi
7454 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7455 $as_echo "$ac_cv_header_time" >&6; }
7456 if test $ac_cv_header_time = yes; then
7457
7458 cat >>confdefs.h <<\_ACEOF
7459 #define TIME_WITH_SYS_TIME 1
7460 _ACEOF
7461
7462 fi
7463
7464 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7465 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7466 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7467 $as_echo_n "(cached) " >&6
7468 else
7469 cat >conftest.$ac_ext <<_ACEOF
7470 /* confdefs.h. */
7471 _ACEOF
7472 cat confdefs.h >>conftest.$ac_ext
7473 cat >>conftest.$ac_ext <<_ACEOF
7474 /* end confdefs.h. */
7475 $ac_includes_default
7476 int
7477 main ()
7478 {
7479 #ifndef sys_siglist
7480 (void) sys_siglist;
7481 #endif
7482
7483 ;
7484 return 0;
7485 }
7486 _ACEOF
7487 rm -f conftest.$ac_objext
7488 if { (ac_try="$ac_compile"
7489 case "(($ac_try" in
7490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7491 *) ac_try_echo=$ac_try;;
7492 esac
7493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7494 $as_echo "$ac_try_echo") >&5
7495 (eval "$ac_compile") 2>conftest.er1
7496 ac_status=$?
7497 grep -v '^ *+' conftest.er1 >conftest.err
7498 rm -f conftest.er1
7499 cat conftest.err >&5
7500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); } && {
7502 test -z "$ac_c_werror_flag" ||
7503 test ! -s conftest.err
7504 } && test -s conftest.$ac_objext; then
7505 ac_cv_have_decl_sys_siglist=yes
7506 else
7507 $as_echo "$as_me: failed program was:" >&5
7508 sed 's/^/| /' conftest.$ac_ext >&5
7509
7510 ac_cv_have_decl_sys_siglist=no
7511 fi
7512
7513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7514 fi
7515 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7516 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7517 if test $ac_cv_have_decl_sys_siglist = yes; then
7518
7519 cat >>confdefs.h <<_ACEOF
7520 #define HAVE_DECL_SYS_SIGLIST 1
7521 _ACEOF
7522
7523
7524 else
7525 cat >>confdefs.h <<_ACEOF
7526 #define HAVE_DECL_SYS_SIGLIST 0
7527 _ACEOF
7528
7529
7530 fi
7531
7532
7533 if test $ac_cv_have_decl_sys_siglist != yes; then
7534 # For Tru64, at least:
7535 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7536 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7537 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7538 $as_echo_n "(cached) " >&6
7539 else
7540 cat >conftest.$ac_ext <<_ACEOF
7541 /* confdefs.h. */
7542 _ACEOF
7543 cat confdefs.h >>conftest.$ac_ext
7544 cat >>conftest.$ac_ext <<_ACEOF
7545 /* end confdefs.h. */
7546 $ac_includes_default
7547 int
7548 main ()
7549 {
7550 #ifndef __sys_siglist
7551 (void) __sys_siglist;
7552 #endif
7553
7554 ;
7555 return 0;
7556 }
7557 _ACEOF
7558 rm -f conftest.$ac_objext
7559 if { (ac_try="$ac_compile"
7560 case "(($ac_try" in
7561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7562 *) ac_try_echo=$ac_try;;
7563 esac
7564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7565 $as_echo "$ac_try_echo") >&5
7566 (eval "$ac_compile") 2>conftest.er1
7567 ac_status=$?
7568 grep -v '^ *+' conftest.er1 >conftest.err
7569 rm -f conftest.er1
7570 cat conftest.err >&5
7571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572 (exit $ac_status); } && {
7573 test -z "$ac_c_werror_flag" ||
7574 test ! -s conftest.err
7575 } && test -s conftest.$ac_objext; then
7576 ac_cv_have_decl___sys_siglist=yes
7577 else
7578 $as_echo "$as_me: failed program was:" >&5
7579 sed 's/^/| /' conftest.$ac_ext >&5
7580
7581 ac_cv_have_decl___sys_siglist=no
7582 fi
7583
7584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7585 fi
7586 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7587 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7588 if test $ac_cv_have_decl___sys_siglist = yes; then
7589
7590 cat >>confdefs.h <<_ACEOF
7591 #define HAVE_DECL___SYS_SIGLIST 1
7592 _ACEOF
7593
7594
7595 else
7596 cat >>confdefs.h <<_ACEOF
7597 #define HAVE_DECL___SYS_SIGLIST 0
7598 _ACEOF
7599
7600
7601 fi
7602
7603
7604 if test $ac_cv_have_decl___sys_siglist = yes; then
7605
7606 cat >>confdefs.h <<\_ACEOF
7607 #define sys_siglist __sys_siglist
7608 _ACEOF
7609
7610 fi
7611 fi
7612 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7613 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7614 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7615 $as_echo_n "(cached) " >&6
7616 else
7617 cat >conftest.$ac_ext <<_ACEOF
7618 /* confdefs.h. */
7619 _ACEOF
7620 cat confdefs.h >>conftest.$ac_ext
7621 cat >>conftest.$ac_ext <<_ACEOF
7622 /* end confdefs.h. */
7623 #include <sys/types.h>
7624 #include <sys/wait.h>
7625 #ifndef WEXITSTATUS
7626 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7627 #endif
7628 #ifndef WIFEXITED
7629 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7630 #endif
7631
7632 int
7633 main ()
7634 {
7635 int s;
7636 wait (&s);
7637 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7638 ;
7639 return 0;
7640 }
7641 _ACEOF
7642 rm -f conftest.$ac_objext
7643 if { (ac_try="$ac_compile"
7644 case "(($ac_try" in
7645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7646 *) ac_try_echo=$ac_try;;
7647 esac
7648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7649 $as_echo "$ac_try_echo") >&5
7650 (eval "$ac_compile") 2>conftest.er1
7651 ac_status=$?
7652 grep -v '^ *+' conftest.er1 >conftest.err
7653 rm -f conftest.er1
7654 cat conftest.err >&5
7655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); } && {
7657 test -z "$ac_c_werror_flag" ||
7658 test ! -s conftest.err
7659 } && test -s conftest.$ac_objext; then
7660 ac_cv_header_sys_wait_h=yes
7661 else
7662 $as_echo "$as_me: failed program was:" >&5
7663 sed 's/^/| /' conftest.$ac_ext >&5
7664
7665 ac_cv_header_sys_wait_h=no
7666 fi
7667
7668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7669 fi
7670 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7671 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7672 if test $ac_cv_header_sys_wait_h = yes; then
7673
7674 cat >>confdefs.h <<\_ACEOF
7675 #define HAVE_SYS_WAIT_H 1
7676 _ACEOF
7677
7678 fi
7679
7680
7681 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7682 $as_echo_n "checking for struct utimbuf... " >&6; }
7683 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7684 $as_echo_n "(cached) " >&6
7685 else
7686 cat >conftest.$ac_ext <<_ACEOF
7687 /* confdefs.h. */
7688 _ACEOF
7689 cat confdefs.h >>conftest.$ac_ext
7690 cat >>conftest.$ac_ext <<_ACEOF
7691 /* end confdefs.h. */
7692 #ifdef TIME_WITH_SYS_TIME
7693 #include <sys/time.h>
7694 #include <time.h>
7695 #else
7696 #ifdef HAVE_SYS_TIME_H
7697 #include <sys/time.h>
7698 #else
7699 #include <time.h>
7700 #endif
7701 #endif
7702 #ifdef HAVE_UTIME_H
7703 #include <utime.h>
7704 #endif
7705 int
7706 main ()
7707 {
7708 static struct utimbuf x; x.actime = x.modtime;
7709 ;
7710 return 0;
7711 }
7712 _ACEOF
7713 rm -f conftest.$ac_objext
7714 if { (ac_try="$ac_compile"
7715 case "(($ac_try" in
7716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7717 *) ac_try_echo=$ac_try;;
7718 esac
7719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7720 $as_echo "$ac_try_echo") >&5
7721 (eval "$ac_compile") 2>conftest.er1
7722 ac_status=$?
7723 grep -v '^ *+' conftest.er1 >conftest.err
7724 rm -f conftest.er1
7725 cat conftest.err >&5
7726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); } && {
7728 test -z "$ac_c_werror_flag" ||
7729 test ! -s conftest.err
7730 } && test -s conftest.$ac_objext; then
7731 emacs_cv_struct_utimbuf=yes
7732 else
7733 $as_echo "$as_me: failed program was:" >&5
7734 sed 's/^/| /' conftest.$ac_ext >&5
7735
7736 emacs_cv_struct_utimbuf=no
7737 fi
7738
7739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7740 fi
7741 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7742 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7743 if test $emacs_cv_struct_utimbuf = yes; then
7744
7745 cat >>confdefs.h <<\_ACEOF
7746 #define HAVE_STRUCT_UTIMBUF 1
7747 _ACEOF
7748
7749 fi
7750
7751 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7752 $as_echo_n "checking return type of signal handlers... " >&6; }
7753 if test "${ac_cv_type_signal+set}" = set; then
7754 $as_echo_n "(cached) " >&6
7755 else
7756 cat >conftest.$ac_ext <<_ACEOF
7757 /* confdefs.h. */
7758 _ACEOF
7759 cat confdefs.h >>conftest.$ac_ext
7760 cat >>conftest.$ac_ext <<_ACEOF
7761 /* end confdefs.h. */
7762 #include <sys/types.h>
7763 #include <signal.h>
7764
7765 int
7766 main ()
7767 {
7768 return *(signal (0, 0)) (0) == 1;
7769 ;
7770 return 0;
7771 }
7772 _ACEOF
7773 rm -f conftest.$ac_objext
7774 if { (ac_try="$ac_compile"
7775 case "(($ac_try" in
7776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7777 *) ac_try_echo=$ac_try;;
7778 esac
7779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7780 $as_echo "$ac_try_echo") >&5
7781 (eval "$ac_compile") 2>conftest.er1
7782 ac_status=$?
7783 grep -v '^ *+' conftest.er1 >conftest.err
7784 rm -f conftest.er1
7785 cat conftest.err >&5
7786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); } && {
7788 test -z "$ac_c_werror_flag" ||
7789 test ! -s conftest.err
7790 } && test -s conftest.$ac_objext; then
7791 ac_cv_type_signal=int
7792 else
7793 $as_echo "$as_me: failed program was:" >&5
7794 sed 's/^/| /' conftest.$ac_ext >&5
7795
7796 ac_cv_type_signal=void
7797 fi
7798
7799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7800 fi
7801 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7802 $as_echo "$ac_cv_type_signal" >&6; }
7803
7804 cat >>confdefs.h <<_ACEOF
7805 #define RETSIGTYPE $ac_cv_type_signal
7806 _ACEOF
7807
7808
7809
7810 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7811 $as_echo_n "checking for speed_t... " >&6; }
7812 if test "${emacs_cv_speed_t+set}" = set; then
7813 $as_echo_n "(cached) " >&6
7814 else
7815 cat >conftest.$ac_ext <<_ACEOF
7816 /* confdefs.h. */
7817 _ACEOF
7818 cat confdefs.h >>conftest.$ac_ext
7819 cat >>conftest.$ac_ext <<_ACEOF
7820 /* end confdefs.h. */
7821 #include <termios.h>
7822 int
7823 main ()
7824 {
7825 speed_t x = 1;
7826 ;
7827 return 0;
7828 }
7829 _ACEOF
7830 rm -f conftest.$ac_objext
7831 if { (ac_try="$ac_compile"
7832 case "(($ac_try" in
7833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7834 *) ac_try_echo=$ac_try;;
7835 esac
7836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7837 $as_echo "$ac_try_echo") >&5
7838 (eval "$ac_compile") 2>conftest.er1
7839 ac_status=$?
7840 grep -v '^ *+' conftest.er1 >conftest.err
7841 rm -f conftest.er1
7842 cat conftest.err >&5
7843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); } && {
7845 test -z "$ac_c_werror_flag" ||
7846 test ! -s conftest.err
7847 } && test -s conftest.$ac_objext; then
7848 emacs_cv_speed_t=yes
7849 else
7850 $as_echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.$ac_ext >&5
7852
7853 emacs_cv_speed_t=no
7854 fi
7855
7856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7857 fi
7858 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7859 $as_echo "$emacs_cv_speed_t" >&6; }
7860 if test $emacs_cv_speed_t = yes; then
7861
7862 cat >>confdefs.h <<\_ACEOF
7863 #define HAVE_SPEED_T 1
7864 _ACEOF
7865
7866 fi
7867
7868 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7869 $as_echo_n "checking for struct timeval... " >&6; }
7870 if test "${emacs_cv_struct_timeval+set}" = set; then
7871 $as_echo_n "(cached) " >&6
7872 else
7873 cat >conftest.$ac_ext <<_ACEOF
7874 /* confdefs.h. */
7875 _ACEOF
7876 cat confdefs.h >>conftest.$ac_ext
7877 cat >>conftest.$ac_ext <<_ACEOF
7878 /* end confdefs.h. */
7879 #ifdef TIME_WITH_SYS_TIME
7880 #include <sys/time.h>
7881 #include <time.h>
7882 #else
7883 #ifdef HAVE_SYS_TIME_H
7884 #include <sys/time.h>
7885 #else
7886 #include <time.h>
7887 #endif
7888 #endif
7889 int
7890 main ()
7891 {
7892 static struct timeval x; x.tv_sec = x.tv_usec;
7893 ;
7894 return 0;
7895 }
7896 _ACEOF
7897 rm -f conftest.$ac_objext
7898 if { (ac_try="$ac_compile"
7899 case "(($ac_try" in
7900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7901 *) ac_try_echo=$ac_try;;
7902 esac
7903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7904 $as_echo "$ac_try_echo") >&5
7905 (eval "$ac_compile") 2>conftest.er1
7906 ac_status=$?
7907 grep -v '^ *+' conftest.er1 >conftest.err
7908 rm -f conftest.er1
7909 cat conftest.err >&5
7910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); } && {
7912 test -z "$ac_c_werror_flag" ||
7913 test ! -s conftest.err
7914 } && test -s conftest.$ac_objext; then
7915 emacs_cv_struct_timeval=yes
7916 else
7917 $as_echo "$as_me: failed program was:" >&5
7918 sed 's/^/| /' conftest.$ac_ext >&5
7919
7920 emacs_cv_struct_timeval=no
7921 fi
7922
7923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7924 fi
7925 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7926 $as_echo "$emacs_cv_struct_timeval" >&6; }
7927 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7928 if test $emacs_cv_struct_timeval = yes; then
7929
7930 cat >>confdefs.h <<\_ACEOF
7931 #define HAVE_TIMEVAL 1
7932 _ACEOF
7933
7934 fi
7935
7936 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7937 $as_echo_n "checking for struct exception... " >&6; }
7938 if test "${emacs_cv_struct_exception+set}" = set; then
7939 $as_echo_n "(cached) " >&6
7940 else
7941 cat >conftest.$ac_ext <<_ACEOF
7942 /* confdefs.h. */
7943 _ACEOF
7944 cat confdefs.h >>conftest.$ac_ext
7945 cat >>conftest.$ac_ext <<_ACEOF
7946 /* end confdefs.h. */
7947 #include <math.h>
7948 int
7949 main ()
7950 {
7951 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7952 ;
7953 return 0;
7954 }
7955 _ACEOF
7956 rm -f conftest.$ac_objext
7957 if { (ac_try="$ac_compile"
7958 case "(($ac_try" in
7959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7960 *) ac_try_echo=$ac_try;;
7961 esac
7962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7963 $as_echo "$ac_try_echo") >&5
7964 (eval "$ac_compile") 2>conftest.er1
7965 ac_status=$?
7966 grep -v '^ *+' conftest.er1 >conftest.err
7967 rm -f conftest.er1
7968 cat conftest.err >&5
7969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); } && {
7971 test -z "$ac_c_werror_flag" ||
7972 test ! -s conftest.err
7973 } && test -s conftest.$ac_objext; then
7974 emacs_cv_struct_exception=yes
7975 else
7976 $as_echo "$as_me: failed program was:" >&5
7977 sed 's/^/| /' conftest.$ac_ext >&5
7978
7979 emacs_cv_struct_exception=no
7980 fi
7981
7982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7983 fi
7984 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7985 $as_echo "$emacs_cv_struct_exception" >&6; }
7986 HAVE_EXCEPTION=$emacs_cv_struct_exception
7987 if test $emacs_cv_struct_exception != yes; then
7988
7989 cat >>confdefs.h <<\_ACEOF
7990 #define NO_MATHERR 1
7991 _ACEOF
7992
7993 fi
7994
7995
7996 for ac_header in sys/socket.h
7997 do
7998 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8000 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8001 $as_echo_n "checking for $ac_header... " >&6; }
8002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8003 $as_echo_n "(cached) " >&6
8004 fi
8005 ac_res=`eval 'as_val=${'$as_ac_Header'}
8006 $as_echo "$as_val"'`
8007 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8008 $as_echo "$ac_res" >&6; }
8009 else
8010 # Is the header compilable?
8011 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8012 $as_echo_n "checking $ac_header usability... " >&6; }
8013 cat >conftest.$ac_ext <<_ACEOF
8014 /* confdefs.h. */
8015 _ACEOF
8016 cat confdefs.h >>conftest.$ac_ext
8017 cat >>conftest.$ac_ext <<_ACEOF
8018 /* end confdefs.h. */
8019 $ac_includes_default
8020 #include <$ac_header>
8021 _ACEOF
8022 rm -f conftest.$ac_objext
8023 if { (ac_try="$ac_compile"
8024 case "(($ac_try" in
8025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8026 *) ac_try_echo=$ac_try;;
8027 esac
8028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8029 $as_echo "$ac_try_echo") >&5
8030 (eval "$ac_compile") 2>conftest.er1
8031 ac_status=$?
8032 grep -v '^ *+' conftest.er1 >conftest.err
8033 rm -f conftest.er1
8034 cat conftest.err >&5
8035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); } && {
8037 test -z "$ac_c_werror_flag" ||
8038 test ! -s conftest.err
8039 } && test -s conftest.$ac_objext; then
8040 ac_header_compiler=yes
8041 else
8042 $as_echo "$as_me: failed program was:" >&5
8043 sed 's/^/| /' conftest.$ac_ext >&5
8044
8045 ac_header_compiler=no
8046 fi
8047
8048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8049 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8050 $as_echo "$ac_header_compiler" >&6; }
8051
8052 # Is the header present?
8053 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8054 $as_echo_n "checking $ac_header presence... " >&6; }
8055 cat >conftest.$ac_ext <<_ACEOF
8056 /* confdefs.h. */
8057 _ACEOF
8058 cat confdefs.h >>conftest.$ac_ext
8059 cat >>conftest.$ac_ext <<_ACEOF
8060 /* end confdefs.h. */
8061 #include <$ac_header>
8062 _ACEOF
8063 if { (ac_try="$ac_cpp conftest.$ac_ext"
8064 case "(($ac_try" in
8065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8066 *) ac_try_echo=$ac_try;;
8067 esac
8068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8069 $as_echo "$ac_try_echo") >&5
8070 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8071 ac_status=$?
8072 grep -v '^ *+' conftest.er1 >conftest.err
8073 rm -f conftest.er1
8074 cat conftest.err >&5
8075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); } >/dev/null && {
8077 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8078 test ! -s conftest.err
8079 }; then
8080 ac_header_preproc=yes
8081 else
8082 $as_echo "$as_me: failed program was:" >&5
8083 sed 's/^/| /' conftest.$ac_ext >&5
8084
8085 ac_header_preproc=no
8086 fi
8087
8088 rm -f conftest.err conftest.$ac_ext
8089 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8090 $as_echo "$ac_header_preproc" >&6; }
8091
8092 # So? What about this header?
8093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8094 yes:no: )
8095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8096 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8098 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8099 ac_header_preproc=yes
8100 ;;
8101 no:yes:* )
8102 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8103 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8104 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8105 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8107 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8109 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8111 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8112 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8113 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8114
8115 ;;
8116 esac
8117 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8118 $as_echo_n "checking for $ac_header... " >&6; }
8119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8120 $as_echo_n "(cached) " >&6
8121 else
8122 eval "$as_ac_Header=\$ac_header_preproc"
8123 fi
8124 ac_res=`eval 'as_val=${'$as_ac_Header'}
8125 $as_echo "$as_val"'`
8126 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8127 $as_echo "$ac_res" >&6; }
8128
8129 fi
8130 if test `eval 'as_val=${'$as_ac_Header'}
8131 $as_echo "$as_val"'` = yes; then
8132 cat >>confdefs.h <<_ACEOF
8133 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8134 _ACEOF
8135
8136 fi
8137
8138 done
8139
8140
8141 for ac_header in net/if.h
8142 do
8143 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8144 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8145 $as_echo_n "checking for $ac_header... " >&6; }
8146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8147 $as_echo_n "(cached) " >&6
8148 else
8149 cat >conftest.$ac_ext <<_ACEOF
8150 /* confdefs.h. */
8151 _ACEOF
8152 cat confdefs.h >>conftest.$ac_ext
8153 cat >>conftest.$ac_ext <<_ACEOF
8154 /* end confdefs.h. */
8155 $ac_includes_default
8156 #if HAVE_SYS_SOCKET_H
8157 #include <sys/socket.h>
8158 #endif
8159
8160 #include <$ac_header>
8161 _ACEOF
8162 rm -f conftest.$ac_objext
8163 if { (ac_try="$ac_compile"
8164 case "(($ac_try" in
8165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8166 *) ac_try_echo=$ac_try;;
8167 esac
8168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8169 $as_echo "$ac_try_echo") >&5
8170 (eval "$ac_compile") 2>conftest.er1
8171 ac_status=$?
8172 grep -v '^ *+' conftest.er1 >conftest.err
8173 rm -f conftest.er1
8174 cat conftest.err >&5
8175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); } && {
8177 test -z "$ac_c_werror_flag" ||
8178 test ! -s conftest.err
8179 } && test -s conftest.$ac_objext; then
8180 eval "$as_ac_Header=yes"
8181 else
8182 $as_echo "$as_me: failed program was:" >&5
8183 sed 's/^/| /' conftest.$ac_ext >&5
8184
8185 eval "$as_ac_Header=no"
8186 fi
8187
8188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8189 fi
8190 ac_res=`eval 'as_val=${'$as_ac_Header'}
8191 $as_echo "$as_val"'`
8192 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8193 $as_echo "$ac_res" >&6; }
8194 if test `eval 'as_val=${'$as_ac_Header'}
8195 $as_echo "$as_val"'` = yes; then
8196 cat >>confdefs.h <<_ACEOF
8197 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8198 _ACEOF
8199
8200 fi
8201
8202 done
8203
8204
8205 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8206 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8207 if test "${ac_cv_struct_tm+set}" = set; then
8208 $as_echo_n "(cached) " >&6
8209 else
8210 cat >conftest.$ac_ext <<_ACEOF
8211 /* confdefs.h. */
8212 _ACEOF
8213 cat confdefs.h >>conftest.$ac_ext
8214 cat >>conftest.$ac_ext <<_ACEOF
8215 /* end confdefs.h. */
8216 #include <sys/types.h>
8217 #include <time.h>
8218
8219 int
8220 main ()
8221 {
8222 struct tm tm;
8223 int *p = &tm.tm_sec;
8224 return !p;
8225 ;
8226 return 0;
8227 }
8228 _ACEOF
8229 rm -f conftest.$ac_objext
8230 if { (ac_try="$ac_compile"
8231 case "(($ac_try" in
8232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8233 *) ac_try_echo=$ac_try;;
8234 esac
8235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8236 $as_echo "$ac_try_echo") >&5
8237 (eval "$ac_compile") 2>conftest.er1
8238 ac_status=$?
8239 grep -v '^ *+' conftest.er1 >conftest.err
8240 rm -f conftest.er1
8241 cat conftest.err >&5
8242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); } && {
8244 test -z "$ac_c_werror_flag" ||
8245 test ! -s conftest.err
8246 } && test -s conftest.$ac_objext; then
8247 ac_cv_struct_tm=time.h
8248 else
8249 $as_echo "$as_me: failed program was:" >&5
8250 sed 's/^/| /' conftest.$ac_ext >&5
8251
8252 ac_cv_struct_tm=sys/time.h
8253 fi
8254
8255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8256 fi
8257 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8258 $as_echo "$ac_cv_struct_tm" >&6; }
8259 if test $ac_cv_struct_tm = sys/time.h; then
8260
8261 cat >>confdefs.h <<\_ACEOF
8262 #define TM_IN_SYS_TIME 1
8263 _ACEOF
8264
8265 fi
8266
8267 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8268 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8269 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8270 $as_echo_n "(cached) " >&6
8271 else
8272 cat >conftest.$ac_ext <<_ACEOF
8273 /* confdefs.h. */
8274 _ACEOF
8275 cat confdefs.h >>conftest.$ac_ext
8276 cat >>conftest.$ac_ext <<_ACEOF
8277 /* end confdefs.h. */
8278 #include <sys/types.h>
8279 #include <$ac_cv_struct_tm>
8280
8281
8282 int
8283 main ()
8284 {
8285 static struct tm ac_aggr;
8286 if (ac_aggr.tm_zone)
8287 return 0;
8288 ;
8289 return 0;
8290 }
8291 _ACEOF
8292 rm -f conftest.$ac_objext
8293 if { (ac_try="$ac_compile"
8294 case "(($ac_try" in
8295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296 *) ac_try_echo=$ac_try;;
8297 esac
8298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8299 $as_echo "$ac_try_echo") >&5
8300 (eval "$ac_compile") 2>conftest.er1
8301 ac_status=$?
8302 grep -v '^ *+' conftest.er1 >conftest.err
8303 rm -f conftest.er1
8304 cat conftest.err >&5
8305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); } && {
8307 test -z "$ac_c_werror_flag" ||
8308 test ! -s conftest.err
8309 } && test -s conftest.$ac_objext; then
8310 ac_cv_member_struct_tm_tm_zone=yes
8311 else
8312 $as_echo "$as_me: failed program was:" >&5
8313 sed 's/^/| /' conftest.$ac_ext >&5
8314
8315 cat >conftest.$ac_ext <<_ACEOF
8316 /* confdefs.h. */
8317 _ACEOF
8318 cat confdefs.h >>conftest.$ac_ext
8319 cat >>conftest.$ac_ext <<_ACEOF
8320 /* end confdefs.h. */
8321 #include <sys/types.h>
8322 #include <$ac_cv_struct_tm>
8323
8324
8325 int
8326 main ()
8327 {
8328 static struct tm ac_aggr;
8329 if (sizeof ac_aggr.tm_zone)
8330 return 0;
8331 ;
8332 return 0;
8333 }
8334 _ACEOF
8335 rm -f conftest.$ac_objext
8336 if { (ac_try="$ac_compile"
8337 case "(($ac_try" in
8338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8339 *) ac_try_echo=$ac_try;;
8340 esac
8341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8342 $as_echo "$ac_try_echo") >&5
8343 (eval "$ac_compile") 2>conftest.er1
8344 ac_status=$?
8345 grep -v '^ *+' conftest.er1 >conftest.err
8346 rm -f conftest.er1
8347 cat conftest.err >&5
8348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); } && {
8350 test -z "$ac_c_werror_flag" ||
8351 test ! -s conftest.err
8352 } && test -s conftest.$ac_objext; then
8353 ac_cv_member_struct_tm_tm_zone=yes
8354 else
8355 $as_echo "$as_me: failed program was:" >&5
8356 sed 's/^/| /' conftest.$ac_ext >&5
8357
8358 ac_cv_member_struct_tm_tm_zone=no
8359 fi
8360
8361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8362 fi
8363
8364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8365 fi
8366 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8367 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8368 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8369
8370 cat >>confdefs.h <<_ACEOF
8371 #define HAVE_STRUCT_TM_TM_ZONE 1
8372 _ACEOF
8373
8374
8375 fi
8376
8377 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8378
8379 cat >>confdefs.h <<\_ACEOF
8380 #define HAVE_TM_ZONE 1
8381 _ACEOF
8382
8383 else
8384 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8385 $as_echo_n "checking whether tzname is declared... " >&6; }
8386 if test "${ac_cv_have_decl_tzname+set}" = set; then
8387 $as_echo_n "(cached) " >&6
8388 else
8389 cat >conftest.$ac_ext <<_ACEOF
8390 /* confdefs.h. */
8391 _ACEOF
8392 cat confdefs.h >>conftest.$ac_ext
8393 cat >>conftest.$ac_ext <<_ACEOF
8394 /* end confdefs.h. */
8395 #include <time.h>
8396
8397 int
8398 main ()
8399 {
8400 #ifndef tzname
8401 (void) tzname;
8402 #endif
8403
8404 ;
8405 return 0;
8406 }
8407 _ACEOF
8408 rm -f conftest.$ac_objext
8409 if { (ac_try="$ac_compile"
8410 case "(($ac_try" in
8411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8412 *) ac_try_echo=$ac_try;;
8413 esac
8414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8415 $as_echo "$ac_try_echo") >&5
8416 (eval "$ac_compile") 2>conftest.er1
8417 ac_status=$?
8418 grep -v '^ *+' conftest.er1 >conftest.err
8419 rm -f conftest.er1
8420 cat conftest.err >&5
8421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); } && {
8423 test -z "$ac_c_werror_flag" ||
8424 test ! -s conftest.err
8425 } && test -s conftest.$ac_objext; then
8426 ac_cv_have_decl_tzname=yes
8427 else
8428 $as_echo "$as_me: failed program was:" >&5
8429 sed 's/^/| /' conftest.$ac_ext >&5
8430
8431 ac_cv_have_decl_tzname=no
8432 fi
8433
8434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8435 fi
8436 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8437 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8438 if test $ac_cv_have_decl_tzname = yes; then
8439
8440 cat >>confdefs.h <<_ACEOF
8441 #define HAVE_DECL_TZNAME 1
8442 _ACEOF
8443
8444
8445 else
8446 cat >>confdefs.h <<_ACEOF
8447 #define HAVE_DECL_TZNAME 0
8448 _ACEOF
8449
8450
8451 fi
8452
8453
8454 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8455 $as_echo_n "checking for tzname... " >&6; }
8456 if test "${ac_cv_var_tzname+set}" = set; then
8457 $as_echo_n "(cached) " >&6
8458 else
8459 cat >conftest.$ac_ext <<_ACEOF
8460 /* confdefs.h. */
8461 _ACEOF
8462 cat confdefs.h >>conftest.$ac_ext
8463 cat >>conftest.$ac_ext <<_ACEOF
8464 /* end confdefs.h. */
8465 #include <time.h>
8466 #if !HAVE_DECL_TZNAME
8467 extern char *tzname[];
8468 #endif
8469
8470 int
8471 main ()
8472 {
8473 return tzname[0][0];
8474 ;
8475 return 0;
8476 }
8477 _ACEOF
8478 rm -f conftest.$ac_objext conftest$ac_exeext
8479 if { (ac_try="$ac_link"
8480 case "(($ac_try" in
8481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8482 *) ac_try_echo=$ac_try;;
8483 esac
8484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8485 $as_echo "$ac_try_echo") >&5
8486 (eval "$ac_link") 2>conftest.er1
8487 ac_status=$?
8488 grep -v '^ *+' conftest.er1 >conftest.err
8489 rm -f conftest.er1
8490 cat conftest.err >&5
8491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); } && {
8493 test -z "$ac_c_werror_flag" ||
8494 test ! -s conftest.err
8495 } && test -s conftest$ac_exeext && {
8496 test "$cross_compiling" = yes ||
8497 $as_test_x conftest$ac_exeext
8498 }; then
8499 ac_cv_var_tzname=yes
8500 else
8501 $as_echo "$as_me: failed program was:" >&5
8502 sed 's/^/| /' conftest.$ac_ext >&5
8503
8504 ac_cv_var_tzname=no
8505 fi
8506
8507 rm -rf conftest.dSYM
8508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8509 conftest$ac_exeext conftest.$ac_ext
8510 fi
8511 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8512 $as_echo "$ac_cv_var_tzname" >&6; }
8513 if test $ac_cv_var_tzname = yes; then
8514
8515 cat >>confdefs.h <<\_ACEOF
8516 #define HAVE_TZNAME 1
8517 _ACEOF
8518
8519 fi
8520 fi
8521
8522 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8523 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8524 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8525 $as_echo_n "(cached) " >&6
8526 else
8527 cat >conftest.$ac_ext <<_ACEOF
8528 /* confdefs.h. */
8529 _ACEOF
8530 cat confdefs.h >>conftest.$ac_ext
8531 cat >>conftest.$ac_ext <<_ACEOF
8532 /* end confdefs.h. */
8533 #include <time.h>
8534
8535 int
8536 main ()
8537 {
8538 static struct tm ac_aggr;
8539 if (ac_aggr.tm_gmtoff)
8540 return 0;
8541 ;
8542 return 0;
8543 }
8544 _ACEOF
8545 rm -f conftest.$ac_objext
8546 if { (ac_try="$ac_compile"
8547 case "(($ac_try" in
8548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8549 *) ac_try_echo=$ac_try;;
8550 esac
8551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8552 $as_echo "$ac_try_echo") >&5
8553 (eval "$ac_compile") 2>conftest.er1
8554 ac_status=$?
8555 grep -v '^ *+' conftest.er1 >conftest.err
8556 rm -f conftest.er1
8557 cat conftest.err >&5
8558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); } && {
8560 test -z "$ac_c_werror_flag" ||
8561 test ! -s conftest.err
8562 } && test -s conftest.$ac_objext; then
8563 ac_cv_member_struct_tm_tm_gmtoff=yes
8564 else
8565 $as_echo "$as_me: failed program was:" >&5
8566 sed 's/^/| /' conftest.$ac_ext >&5
8567
8568 cat >conftest.$ac_ext <<_ACEOF
8569 /* confdefs.h. */
8570 _ACEOF
8571 cat confdefs.h >>conftest.$ac_ext
8572 cat >>conftest.$ac_ext <<_ACEOF
8573 /* end confdefs.h. */
8574 #include <time.h>
8575
8576 int
8577 main ()
8578 {
8579 static struct tm ac_aggr;
8580 if (sizeof ac_aggr.tm_gmtoff)
8581 return 0;
8582 ;
8583 return 0;
8584 }
8585 _ACEOF
8586 rm -f conftest.$ac_objext
8587 if { (ac_try="$ac_compile"
8588 case "(($ac_try" in
8589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8590 *) ac_try_echo=$ac_try;;
8591 esac
8592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8593 $as_echo "$ac_try_echo") >&5
8594 (eval "$ac_compile") 2>conftest.er1
8595 ac_status=$?
8596 grep -v '^ *+' conftest.er1 >conftest.err
8597 rm -f conftest.er1
8598 cat conftest.err >&5
8599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); } && {
8601 test -z "$ac_c_werror_flag" ||
8602 test ! -s conftest.err
8603 } && test -s conftest.$ac_objext; then
8604 ac_cv_member_struct_tm_tm_gmtoff=yes
8605 else
8606 $as_echo "$as_me: failed program was:" >&5
8607 sed 's/^/| /' conftest.$ac_ext >&5
8608
8609 ac_cv_member_struct_tm_tm_gmtoff=no
8610 fi
8611
8612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8613 fi
8614
8615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8616 fi
8617 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8618 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8619 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8620
8621 cat >>confdefs.h <<\_ACEOF
8622 #define HAVE_TM_GMTOFF 1
8623 _ACEOF
8624
8625 fi
8626
8627 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8628 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8629 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8630 $as_echo_n "(cached) " >&6
8631 else
8632 cat >conftest.$ac_ext <<_ACEOF
8633 /* confdefs.h. */
8634 _ACEOF
8635 cat confdefs.h >>conftest.$ac_ext
8636 cat >>conftest.$ac_ext <<_ACEOF
8637 /* end confdefs.h. */
8638 $ac_includes_default
8639 #if HAVE_SYS_SOCKET_H
8640 #include <sys/socket.h>
8641 #endif
8642 #if HAVE_NET_IF_H
8643 #include <net/if.h>
8644 #endif
8645
8646 int
8647 main ()
8648 {
8649 static struct ifreq ac_aggr;
8650 if (ac_aggr.ifr_flags)
8651 return 0;
8652 ;
8653 return 0;
8654 }
8655 _ACEOF
8656 rm -f conftest.$ac_objext
8657 if { (ac_try="$ac_compile"
8658 case "(($ac_try" in
8659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8660 *) ac_try_echo=$ac_try;;
8661 esac
8662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8663 $as_echo "$ac_try_echo") >&5
8664 (eval "$ac_compile") 2>conftest.er1
8665 ac_status=$?
8666 grep -v '^ *+' conftest.er1 >conftest.err
8667 rm -f conftest.er1
8668 cat conftest.err >&5
8669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); } && {
8671 test -z "$ac_c_werror_flag" ||
8672 test ! -s conftest.err
8673 } && test -s conftest.$ac_objext; then
8674 ac_cv_member_struct_ifreq_ifr_flags=yes
8675 else
8676 $as_echo "$as_me: failed program was:" >&5
8677 sed 's/^/| /' conftest.$ac_ext >&5
8678
8679 cat >conftest.$ac_ext <<_ACEOF
8680 /* confdefs.h. */
8681 _ACEOF
8682 cat confdefs.h >>conftest.$ac_ext
8683 cat >>conftest.$ac_ext <<_ACEOF
8684 /* end confdefs.h. */
8685 $ac_includes_default
8686 #if HAVE_SYS_SOCKET_H
8687 #include <sys/socket.h>
8688 #endif
8689 #if HAVE_NET_IF_H
8690 #include <net/if.h>
8691 #endif
8692
8693 int
8694 main ()
8695 {
8696 static struct ifreq ac_aggr;
8697 if (sizeof ac_aggr.ifr_flags)
8698 return 0;
8699 ;
8700 return 0;
8701 }
8702 _ACEOF
8703 rm -f conftest.$ac_objext
8704 if { (ac_try="$ac_compile"
8705 case "(($ac_try" in
8706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8707 *) ac_try_echo=$ac_try;;
8708 esac
8709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8710 $as_echo "$ac_try_echo") >&5
8711 (eval "$ac_compile") 2>conftest.er1
8712 ac_status=$?
8713 grep -v '^ *+' conftest.er1 >conftest.err
8714 rm -f conftest.er1
8715 cat conftest.err >&5
8716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); } && {
8718 test -z "$ac_c_werror_flag" ||
8719 test ! -s conftest.err
8720 } && test -s conftest.$ac_objext; then
8721 ac_cv_member_struct_ifreq_ifr_flags=yes
8722 else
8723 $as_echo "$as_me: failed program was:" >&5
8724 sed 's/^/| /' conftest.$ac_ext >&5
8725
8726 ac_cv_member_struct_ifreq_ifr_flags=no
8727 fi
8728
8729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8730 fi
8731
8732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8733 fi
8734 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8735 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8736 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8737
8738 cat >>confdefs.h <<_ACEOF
8739 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8740 _ACEOF
8741
8742
8743 fi
8744 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8745 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8746 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8747 $as_echo_n "(cached) " >&6
8748 else
8749 cat >conftest.$ac_ext <<_ACEOF
8750 /* confdefs.h. */
8751 _ACEOF
8752 cat confdefs.h >>conftest.$ac_ext
8753 cat >>conftest.$ac_ext <<_ACEOF
8754 /* end confdefs.h. */
8755 $ac_includes_default
8756 #if HAVE_SYS_SOCKET_H
8757 #include <sys/socket.h>
8758 #endif
8759 #if HAVE_NET_IF_H
8760 #include <net/if.h>
8761 #endif
8762
8763 int
8764 main ()
8765 {
8766 static struct ifreq ac_aggr;
8767 if (ac_aggr.ifr_hwaddr)
8768 return 0;
8769 ;
8770 return 0;
8771 }
8772 _ACEOF
8773 rm -f conftest.$ac_objext
8774 if { (ac_try="$ac_compile"
8775 case "(($ac_try" in
8776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8777 *) ac_try_echo=$ac_try;;
8778 esac
8779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8780 $as_echo "$ac_try_echo") >&5
8781 (eval "$ac_compile") 2>conftest.er1
8782 ac_status=$?
8783 grep -v '^ *+' conftest.er1 >conftest.err
8784 rm -f conftest.er1
8785 cat conftest.err >&5
8786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); } && {
8788 test -z "$ac_c_werror_flag" ||
8789 test ! -s conftest.err
8790 } && test -s conftest.$ac_objext; then
8791 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8792 else
8793 $as_echo "$as_me: failed program was:" >&5
8794 sed 's/^/| /' conftest.$ac_ext >&5
8795
8796 cat >conftest.$ac_ext <<_ACEOF
8797 /* confdefs.h. */
8798 _ACEOF
8799 cat confdefs.h >>conftest.$ac_ext
8800 cat >>conftest.$ac_ext <<_ACEOF
8801 /* end confdefs.h. */
8802 $ac_includes_default
8803 #if HAVE_SYS_SOCKET_H
8804 #include <sys/socket.h>
8805 #endif
8806 #if HAVE_NET_IF_H
8807 #include <net/if.h>
8808 #endif
8809
8810 int
8811 main ()
8812 {
8813 static struct ifreq ac_aggr;
8814 if (sizeof ac_aggr.ifr_hwaddr)
8815 return 0;
8816 ;
8817 return 0;
8818 }
8819 _ACEOF
8820 rm -f conftest.$ac_objext
8821 if { (ac_try="$ac_compile"
8822 case "(($ac_try" in
8823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8824 *) ac_try_echo=$ac_try;;
8825 esac
8826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8827 $as_echo "$ac_try_echo") >&5
8828 (eval "$ac_compile") 2>conftest.er1
8829 ac_status=$?
8830 grep -v '^ *+' conftest.er1 >conftest.err
8831 rm -f conftest.er1
8832 cat conftest.err >&5
8833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); } && {
8835 test -z "$ac_c_werror_flag" ||
8836 test ! -s conftest.err
8837 } && test -s conftest.$ac_objext; then
8838 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8839 else
8840 $as_echo "$as_me: failed program was:" >&5
8841 sed 's/^/| /' conftest.$ac_ext >&5
8842
8843 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8844 fi
8845
8846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8847 fi
8848
8849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8850 fi
8851 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8852 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8853 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8854
8855 cat >>confdefs.h <<_ACEOF
8856 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8857 _ACEOF
8858
8859
8860 fi
8861 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8862 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8863 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8864 $as_echo_n "(cached) " >&6
8865 else
8866 cat >conftest.$ac_ext <<_ACEOF
8867 /* confdefs.h. */
8868 _ACEOF
8869 cat confdefs.h >>conftest.$ac_ext
8870 cat >>conftest.$ac_ext <<_ACEOF
8871 /* end confdefs.h. */
8872 $ac_includes_default
8873 #if HAVE_SYS_SOCKET_H
8874 #include <sys/socket.h>
8875 #endif
8876 #if HAVE_NET_IF_H
8877 #include <net/if.h>
8878 #endif
8879
8880 int
8881 main ()
8882 {
8883 static struct ifreq ac_aggr;
8884 if (ac_aggr.ifr_netmask)
8885 return 0;
8886 ;
8887 return 0;
8888 }
8889 _ACEOF
8890 rm -f conftest.$ac_objext
8891 if { (ac_try="$ac_compile"
8892 case "(($ac_try" in
8893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8894 *) ac_try_echo=$ac_try;;
8895 esac
8896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8897 $as_echo "$ac_try_echo") >&5
8898 (eval "$ac_compile") 2>conftest.er1
8899 ac_status=$?
8900 grep -v '^ *+' conftest.er1 >conftest.err
8901 rm -f conftest.er1
8902 cat conftest.err >&5
8903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); } && {
8905 test -z "$ac_c_werror_flag" ||
8906 test ! -s conftest.err
8907 } && test -s conftest.$ac_objext; then
8908 ac_cv_member_struct_ifreq_ifr_netmask=yes
8909 else
8910 $as_echo "$as_me: failed program was:" >&5
8911 sed 's/^/| /' conftest.$ac_ext >&5
8912
8913 cat >conftest.$ac_ext <<_ACEOF
8914 /* confdefs.h. */
8915 _ACEOF
8916 cat confdefs.h >>conftest.$ac_ext
8917 cat >>conftest.$ac_ext <<_ACEOF
8918 /* end confdefs.h. */
8919 $ac_includes_default
8920 #if HAVE_SYS_SOCKET_H
8921 #include <sys/socket.h>
8922 #endif
8923 #if HAVE_NET_IF_H
8924 #include <net/if.h>
8925 #endif
8926
8927 int
8928 main ()
8929 {
8930 static struct ifreq ac_aggr;
8931 if (sizeof ac_aggr.ifr_netmask)
8932 return 0;
8933 ;
8934 return 0;
8935 }
8936 _ACEOF
8937 rm -f conftest.$ac_objext
8938 if { (ac_try="$ac_compile"
8939 case "(($ac_try" in
8940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8941 *) ac_try_echo=$ac_try;;
8942 esac
8943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8944 $as_echo "$ac_try_echo") >&5
8945 (eval "$ac_compile") 2>conftest.er1
8946 ac_status=$?
8947 grep -v '^ *+' conftest.er1 >conftest.err
8948 rm -f conftest.er1
8949 cat conftest.err >&5
8950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); } && {
8952 test -z "$ac_c_werror_flag" ||
8953 test ! -s conftest.err
8954 } && test -s conftest.$ac_objext; then
8955 ac_cv_member_struct_ifreq_ifr_netmask=yes
8956 else
8957 $as_echo "$as_me: failed program was:" >&5
8958 sed 's/^/| /' conftest.$ac_ext >&5
8959
8960 ac_cv_member_struct_ifreq_ifr_netmask=no
8961 fi
8962
8963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8964 fi
8965
8966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8967 fi
8968 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8969 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8970 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8971
8972 cat >>confdefs.h <<_ACEOF
8973 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8974 _ACEOF
8975
8976
8977 fi
8978 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8979 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8980 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8981 $as_echo_n "(cached) " >&6
8982 else
8983 cat >conftest.$ac_ext <<_ACEOF
8984 /* confdefs.h. */
8985 _ACEOF
8986 cat confdefs.h >>conftest.$ac_ext
8987 cat >>conftest.$ac_ext <<_ACEOF
8988 /* end confdefs.h. */
8989 $ac_includes_default
8990 #if HAVE_SYS_SOCKET_H
8991 #include <sys/socket.h>
8992 #endif
8993 #if HAVE_NET_IF_H
8994 #include <net/if.h>
8995 #endif
8996
8997 int
8998 main ()
8999 {
9000 static struct ifreq ac_aggr;
9001 if (ac_aggr.ifr_broadaddr)
9002 return 0;
9003 ;
9004 return 0;
9005 }
9006 _ACEOF
9007 rm -f conftest.$ac_objext
9008 if { (ac_try="$ac_compile"
9009 case "(($ac_try" in
9010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9011 *) ac_try_echo=$ac_try;;
9012 esac
9013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9014 $as_echo "$ac_try_echo") >&5
9015 (eval "$ac_compile") 2>conftest.er1
9016 ac_status=$?
9017 grep -v '^ *+' conftest.er1 >conftest.err
9018 rm -f conftest.er1
9019 cat conftest.err >&5
9020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); } && {
9022 test -z "$ac_c_werror_flag" ||
9023 test ! -s conftest.err
9024 } && test -s conftest.$ac_objext; then
9025 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
9026 else
9027 $as_echo "$as_me: failed program was:" >&5
9028 sed 's/^/| /' conftest.$ac_ext >&5
9029
9030 cat >conftest.$ac_ext <<_ACEOF
9031 /* confdefs.h. */
9032 _ACEOF
9033 cat confdefs.h >>conftest.$ac_ext
9034 cat >>conftest.$ac_ext <<_ACEOF
9035 /* end confdefs.h. */
9036 $ac_includes_default
9037 #if HAVE_SYS_SOCKET_H
9038 #include <sys/socket.h>
9039 #endif
9040 #if HAVE_NET_IF_H
9041 #include <net/if.h>
9042 #endif
9043
9044 int
9045 main ()
9046 {
9047 static struct ifreq ac_aggr;
9048 if (sizeof ac_aggr.ifr_broadaddr)
9049 return 0;
9050 ;
9051 return 0;
9052 }
9053 _ACEOF
9054 rm -f conftest.$ac_objext
9055 if { (ac_try="$ac_compile"
9056 case "(($ac_try" in
9057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9058 *) ac_try_echo=$ac_try;;
9059 esac
9060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9061 $as_echo "$ac_try_echo") >&5
9062 (eval "$ac_compile") 2>conftest.er1
9063 ac_status=$?
9064 grep -v '^ *+' conftest.er1 >conftest.err
9065 rm -f conftest.er1
9066 cat conftest.err >&5
9067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); } && {
9069 test -z "$ac_c_werror_flag" ||
9070 test ! -s conftest.err
9071 } && test -s conftest.$ac_objext; then
9072 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
9073 else
9074 $as_echo "$as_me: failed program was:" >&5
9075 sed 's/^/| /' conftest.$ac_ext >&5
9076
9077 ac_cv_member_struct_ifreq_ifr_broadaddr=no
9078 fi
9079
9080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9081 fi
9082
9083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9084 fi
9085 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
9086 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
9087 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
9088
9089 cat >>confdefs.h <<_ACEOF
9090 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9091 _ACEOF
9092
9093
9094 fi
9095 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
9096 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
9097 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
9098 $as_echo_n "(cached) " >&6
9099 else
9100 cat >conftest.$ac_ext <<_ACEOF
9101 /* confdefs.h. */
9102 _ACEOF
9103 cat confdefs.h >>conftest.$ac_ext
9104 cat >>conftest.$ac_ext <<_ACEOF
9105 /* end confdefs.h. */
9106 $ac_includes_default
9107 #if HAVE_SYS_SOCKET_H
9108 #include <sys/socket.h>
9109 #endif
9110 #if HAVE_NET_IF_H
9111 #include <net/if.h>
9112 #endif
9113
9114 int
9115 main ()
9116 {
9117 static struct ifreq ac_aggr;
9118 if (ac_aggr.ifr_addr)
9119 return 0;
9120 ;
9121 return 0;
9122 }
9123 _ACEOF
9124 rm -f conftest.$ac_objext
9125 if { (ac_try="$ac_compile"
9126 case "(($ac_try" in
9127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9128 *) ac_try_echo=$ac_try;;
9129 esac
9130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9131 $as_echo "$ac_try_echo") >&5
9132 (eval "$ac_compile") 2>conftest.er1
9133 ac_status=$?
9134 grep -v '^ *+' conftest.er1 >conftest.err
9135 rm -f conftest.er1
9136 cat conftest.err >&5
9137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); } && {
9139 test -z "$ac_c_werror_flag" ||
9140 test ! -s conftest.err
9141 } && test -s conftest.$ac_objext; then
9142 ac_cv_member_struct_ifreq_ifr_addr=yes
9143 else
9144 $as_echo "$as_me: failed program was:" >&5
9145 sed 's/^/| /' conftest.$ac_ext >&5
9146
9147 cat >conftest.$ac_ext <<_ACEOF
9148 /* confdefs.h. */
9149 _ACEOF
9150 cat confdefs.h >>conftest.$ac_ext
9151 cat >>conftest.$ac_ext <<_ACEOF
9152 /* end confdefs.h. */
9153 $ac_includes_default
9154 #if HAVE_SYS_SOCKET_H
9155 #include <sys/socket.h>
9156 #endif
9157 #if HAVE_NET_IF_H
9158 #include <net/if.h>
9159 #endif
9160
9161 int
9162 main ()
9163 {
9164 static struct ifreq ac_aggr;
9165 if (sizeof ac_aggr.ifr_addr)
9166 return 0;
9167 ;
9168 return 0;
9169 }
9170 _ACEOF
9171 rm -f conftest.$ac_objext
9172 if { (ac_try="$ac_compile"
9173 case "(($ac_try" in
9174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9175 *) ac_try_echo=$ac_try;;
9176 esac
9177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9178 $as_echo "$ac_try_echo") >&5
9179 (eval "$ac_compile") 2>conftest.er1
9180 ac_status=$?
9181 grep -v '^ *+' conftest.er1 >conftest.err
9182 rm -f conftest.er1
9183 cat conftest.err >&5
9184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); } && {
9186 test -z "$ac_c_werror_flag" ||
9187 test ! -s conftest.err
9188 } && test -s conftest.$ac_objext; then
9189 ac_cv_member_struct_ifreq_ifr_addr=yes
9190 else
9191 $as_echo "$as_me: failed program was:" >&5
9192 sed 's/^/| /' conftest.$ac_ext >&5
9193
9194 ac_cv_member_struct_ifreq_ifr_addr=no
9195 fi
9196
9197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9198 fi
9199
9200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9201 fi
9202 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
9203 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
9204 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
9205
9206 cat >>confdefs.h <<_ACEOF
9207 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9208 _ACEOF
9209
9210
9211 fi
9212
9213
9214
9215 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
9216 $as_echo_n "checking for function prototypes... " >&6; }
9217 if test "$ac_cv_prog_cc_c89" != no; then
9218 { $as_echo "$as_me:$LINENO: result: yes" >&5
9219 $as_echo "yes" >&6; }
9220
9221 cat >>confdefs.h <<\_ACEOF
9222 #define PROTOTYPES 1
9223 _ACEOF
9224
9225
9226 cat >>confdefs.h <<\_ACEOF
9227 #define __PROTOTYPES 1
9228 _ACEOF
9229
9230 else
9231 { $as_echo "$as_me:$LINENO: result: no" >&5
9232 $as_echo "no" >&6; }
9233 fi
9234
9235 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
9236 $as_echo_n "checking for working volatile... " >&6; }
9237 if test "${ac_cv_c_volatile+set}" = set; then
9238 $as_echo_n "(cached) " >&6
9239 else
9240 cat >conftest.$ac_ext <<_ACEOF
9241 /* confdefs.h. */
9242 _ACEOF
9243 cat confdefs.h >>conftest.$ac_ext
9244 cat >>conftest.$ac_ext <<_ACEOF
9245 /* end confdefs.h. */
9246
9247 int
9248 main ()
9249 {
9250
9251 volatile int x;
9252 int * volatile y = (int *) 0;
9253 return !x && !y;
9254 ;
9255 return 0;
9256 }
9257 _ACEOF
9258 rm -f conftest.$ac_objext
9259 if { (ac_try="$ac_compile"
9260 case "(($ac_try" in
9261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9262 *) ac_try_echo=$ac_try;;
9263 esac
9264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9265 $as_echo "$ac_try_echo") >&5
9266 (eval "$ac_compile") 2>conftest.er1
9267 ac_status=$?
9268 grep -v '^ *+' conftest.er1 >conftest.err
9269 rm -f conftest.er1
9270 cat conftest.err >&5
9271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); } && {
9273 test -z "$ac_c_werror_flag" ||
9274 test ! -s conftest.err
9275 } && test -s conftest.$ac_objext; then
9276 ac_cv_c_volatile=yes
9277 else
9278 $as_echo "$as_me: failed program was:" >&5
9279 sed 's/^/| /' conftest.$ac_ext >&5
9280
9281 ac_cv_c_volatile=no
9282 fi
9283
9284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9285 fi
9286 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9287 $as_echo "$ac_cv_c_volatile" >&6; }
9288 if test $ac_cv_c_volatile = no; then
9289
9290 cat >>confdefs.h <<\_ACEOF
9291 #define volatile /**/
9292 _ACEOF
9293
9294 fi
9295
9296 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9297 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9298 if test "${ac_cv_c_const+set}" = set; then
9299 $as_echo_n "(cached) " >&6
9300 else
9301 cat >conftest.$ac_ext <<_ACEOF
9302 /* confdefs.h. */
9303 _ACEOF
9304 cat confdefs.h >>conftest.$ac_ext
9305 cat >>conftest.$ac_ext <<_ACEOF
9306 /* end confdefs.h. */
9307
9308 int
9309 main ()
9310 {
9311 /* FIXME: Include the comments suggested by Paul. */
9312 #ifndef __cplusplus
9313 /* Ultrix mips cc rejects this. */
9314 typedef int charset[2];
9315 const charset cs;
9316 /* SunOS 4.1.1 cc rejects this. */
9317 char const *const *pcpcc;
9318 char **ppc;
9319 /* NEC SVR4.0.2 mips cc rejects this. */
9320 struct point {int x, y;};
9321 static struct point const zero = {0,0};
9322 /* AIX XL C 1.02.0.0 rejects this.
9323 It does not let you subtract one const X* pointer from another in
9324 an arm of an if-expression whose if-part is not a constant
9325 expression */
9326 const char *g = "string";
9327 pcpcc = &g + (g ? g-g : 0);
9328 /* HPUX 7.0 cc rejects these. */
9329 ++pcpcc;
9330 ppc = (char**) pcpcc;
9331 pcpcc = (char const *const *) ppc;
9332 { /* SCO 3.2v4 cc rejects this. */
9333 char *t;
9334 char const *s = 0 ? (char *) 0 : (char const *) 0;
9335
9336 *t++ = 0;
9337 if (s) return 0;
9338 }
9339 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9340 int x[] = {25, 17};
9341 const int *foo = &x[0];
9342 ++foo;
9343 }
9344 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9345 typedef const int *iptr;
9346 iptr p = 0;
9347 ++p;
9348 }
9349 { /* AIX XL C 1.02.0.0 rejects this saying
9350 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9351 struct s { int j; const int *ap[3]; };
9352 struct s *b; b->j = 5;
9353 }
9354 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9355 const int foo = 10;
9356 if (!foo) return 0;
9357 }
9358 return !cs[0] && !zero.x;
9359 #endif
9360
9361 ;
9362 return 0;
9363 }
9364 _ACEOF
9365 rm -f conftest.$ac_objext
9366 if { (ac_try="$ac_compile"
9367 case "(($ac_try" in
9368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9369 *) ac_try_echo=$ac_try;;
9370 esac
9371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9372 $as_echo "$ac_try_echo") >&5
9373 (eval "$ac_compile") 2>conftest.er1
9374 ac_status=$?
9375 grep -v '^ *+' conftest.er1 >conftest.err
9376 rm -f conftest.er1
9377 cat conftest.err >&5
9378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379 (exit $ac_status); } && {
9380 test -z "$ac_c_werror_flag" ||
9381 test ! -s conftest.err
9382 } && test -s conftest.$ac_objext; then
9383 ac_cv_c_const=yes
9384 else
9385 $as_echo "$as_me: failed program was:" >&5
9386 sed 's/^/| /' conftest.$ac_ext >&5
9387
9388 ac_cv_c_const=no
9389 fi
9390
9391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9392 fi
9393 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9394 $as_echo "$ac_cv_c_const" >&6; }
9395 if test $ac_cv_c_const = no; then
9396
9397 cat >>confdefs.h <<\_ACEOF
9398 #define const /**/
9399 _ACEOF
9400
9401 fi
9402
9403 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9404 $as_echo_n "checking for void * support... " >&6; }
9405 if test "${emacs_cv_void_star+set}" = set; then
9406 $as_echo_n "(cached) " >&6
9407 else
9408 cat >conftest.$ac_ext <<_ACEOF
9409 /* confdefs.h. */
9410 _ACEOF
9411 cat confdefs.h >>conftest.$ac_ext
9412 cat >>conftest.$ac_ext <<_ACEOF
9413 /* end confdefs.h. */
9414
9415 int
9416 main ()
9417 {
9418 void * foo;
9419 ;
9420 return 0;
9421 }
9422 _ACEOF
9423 rm -f conftest.$ac_objext
9424 if { (ac_try="$ac_compile"
9425 case "(($ac_try" in
9426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9427 *) ac_try_echo=$ac_try;;
9428 esac
9429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9430 $as_echo "$ac_try_echo") >&5
9431 (eval "$ac_compile") 2>conftest.er1
9432 ac_status=$?
9433 grep -v '^ *+' conftest.er1 >conftest.err
9434 rm -f conftest.er1
9435 cat conftest.err >&5
9436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); } && {
9438 test -z "$ac_c_werror_flag" ||
9439 test ! -s conftest.err
9440 } && test -s conftest.$ac_objext; then
9441 emacs_cv_void_star=yes
9442 else
9443 $as_echo "$as_me: failed program was:" >&5
9444 sed 's/^/| /' conftest.$ac_ext >&5
9445
9446 emacs_cv_void_star=no
9447 fi
9448
9449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9450 fi
9451 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9452 $as_echo "$emacs_cv_void_star" >&6; }
9453 if test $emacs_cv_void_star = yes; then
9454 cat >>confdefs.h <<\_ACEOF
9455 #define POINTER_TYPE void
9456 _ACEOF
9457
9458 else
9459 cat >>confdefs.h <<\_ACEOF
9460 #define POINTER_TYPE char
9461 _ACEOF
9462
9463 fi
9464
9465
9466
9467
9468
9469 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9470 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9471 set x ${MAKE-make}
9472 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9473 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9474 $as_echo_n "(cached) " >&6
9475 else
9476 cat >conftest.make <<\_ACEOF
9477 SHELL = /bin/sh
9478 all:
9479 @echo '@@@%%%=$(MAKE)=@@@%%%'
9480 _ACEOF
9481 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9482 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9483 *@@@%%%=?*=@@@%%%*)
9484 eval ac_cv_prog_make_${ac_make}_set=yes;;
9485 *)
9486 eval ac_cv_prog_make_${ac_make}_set=no;;
9487 esac
9488 rm -f conftest.make
9489 fi
9490 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9491 { $as_echo "$as_me:$LINENO: result: yes" >&5
9492 $as_echo "yes" >&6; }
9493 SET_MAKE=
9494 else
9495 { $as_echo "$as_me:$LINENO: result: no" >&5
9496 $as_echo "no" >&6; }
9497 SET_MAKE="MAKE=${MAKE-make}"
9498 fi
9499
9500
9501 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9502 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9503 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9504 HAVE_GNU_MAKE=no
9505 testval=`make --version 2>/dev/null | grep 'GNU Make'`
9506 if test "x$testval" != x; then
9507 HAVE_GNU_MAKE=yes
9508 else
9509 ac_enable_autodepend=no
9510 fi
9511 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9512 $as_echo "$HAVE_GNU_MAKE" >&6; }
9513 if test $HAVE_GNU_MAKE = yes; then
9514 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9515 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9516 SAVE_CFLAGS="$CFLAGS"
9517 CFLAGS="$CFLAGS -MMD -MF deps.d"
9518 cat >conftest.$ac_ext <<_ACEOF
9519 /* confdefs.h. */
9520 _ACEOF
9521 cat confdefs.h >>conftest.$ac_ext
9522 cat >>conftest.$ac_ext <<_ACEOF
9523 /* end confdefs.h. */
9524
9525 int
9526 main ()
9527 {
9528
9529 ;
9530 return 0;
9531 }
9532 _ACEOF
9533 rm -f conftest.$ac_objext
9534 if { (ac_try="$ac_compile"
9535 case "(($ac_try" in
9536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9537 *) ac_try_echo=$ac_try;;
9538 esac
9539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9540 $as_echo "$ac_try_echo") >&5
9541 (eval "$ac_compile") 2>conftest.er1
9542 ac_status=$?
9543 grep -v '^ *+' conftest.er1 >conftest.err
9544 rm -f conftest.er1
9545 cat conftest.err >&5
9546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); } && {
9548 test -z "$ac_c_werror_flag" ||
9549 test ! -s conftest.err
9550 } && test -s conftest.$ac_objext; then
9551 :
9552 else
9553 $as_echo "$as_me: failed program was:" >&5
9554 sed 's/^/| /' conftest.$ac_ext >&5
9555
9556 ac_enable_autodepend=no
9557 fi
9558
9559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9560 CFLAGS="$SAVE_CFLAGS"
9561 test -f deps.d || ac_enable_autodepend=no
9562 rm -rf deps.d
9563 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9564 $as_echo "$ac_enable_autodepend" >&6; }
9565 fi
9566 if test $ac_enable_autodepend = yes; then
9567
9568 cat >>confdefs.h <<\_ACEOF
9569 #define AUTO_DEPEND 1
9570 _ACEOF
9571
9572 fi
9573 fi
9574
9575 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9576 $as_echo_n "checking for long file names... " >&6; }
9577 if test "${ac_cv_sys_long_file_names+set}" = set; then
9578 $as_echo_n "(cached) " >&6
9579 else
9580 ac_cv_sys_long_file_names=yes
9581 # Test for long file names in all the places we know might matter:
9582 # . the current directory, where building will happen
9583 # $prefix/lib where we will be installing things
9584 # $exec_prefix/lib likewise
9585 # $TMPDIR if set, where it might want to write temporary files
9586 # /tmp where it might want to write temporary files
9587 # /var/tmp likewise
9588 # /usr/tmp likewise
9589 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9590 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9591 # in the usual case where exec_prefix is '${prefix}'.
9592 case $ac_dir in #(
9593 . | /* | ?:[\\/]*) ;; #(
9594 *) continue;;
9595 esac
9596 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9597 ac_xdir=$ac_dir/cf$$
9598 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9599 ac_tf1=$ac_xdir/conftest9012345
9600 ac_tf2=$ac_xdir/conftest9012346
9601 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9602 ac_cv_sys_long_file_names=no
9603 rm -f -r "$ac_xdir" 2>/dev/null
9604 test $ac_cv_sys_long_file_names = no && break
9605 done
9606 fi
9607 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9608 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9609 if test $ac_cv_sys_long_file_names = yes; then
9610
9611 cat >>confdefs.h <<\_ACEOF
9612 #define HAVE_LONG_FILE_NAMES 1
9613 _ACEOF
9614
9615 fi
9616
9617
9618 #### Choose a window system.
9619
9620 { $as_echo "$as_me:$LINENO: checking for X" >&5
9621 $as_echo_n "checking for X... " >&6; }
9622
9623
9624 # Check whether --with-x was given.
9625 if test "${with_x+set}" = set; then
9626 withval=$with_x;
9627 fi
9628
9629 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9630 if test "x$with_x" = xno; then
9631 # The user explicitly disabled X.
9632 have_x=disabled
9633 else
9634 case $x_includes,$x_libraries in #(
9635 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9636 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9637 { (exit 1); exit 1; }; };; #(
9638 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9639 $as_echo_n "(cached) " >&6
9640 else
9641 # One or both of the vars are not set, and there is no cached value.
9642 ac_x_includes=no ac_x_libraries=no
9643 rm -f -r conftest.dir
9644 if mkdir conftest.dir; then
9645 cd conftest.dir
9646 cat >Imakefile <<'_ACEOF'
9647 incroot:
9648 @echo incroot='${INCROOT}'
9649 usrlibdir:
9650 @echo usrlibdir='${USRLIBDIR}'
9651 libdir:
9652 @echo libdir='${LIBDIR}'
9653 _ACEOF
9654 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9655 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9656 for ac_var in incroot usrlibdir libdir; do
9657 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9658 done
9659 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9660 for ac_extension in a so sl dylib la dll; do
9661 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9662 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9663 ac_im_usrlibdir=$ac_im_libdir; break
9664 fi
9665 done
9666 # Screen out bogus values from the imake configuration. They are
9667 # bogus both because they are the default anyway, and because
9668 # using them would break gcc on systems where it needs fixed includes.
9669 case $ac_im_incroot in
9670 /usr/include) ac_x_includes= ;;
9671 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9672 esac
9673 case $ac_im_usrlibdir in
9674 /usr/lib | /lib) ;;
9675 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9676 esac
9677 fi
9678 cd ..
9679 rm -f -r conftest.dir
9680 fi
9681
9682 # Standard set of common directories for X headers.
9683 # Check X11 before X11Rn because it is often a symlink to the current release.
9684 ac_x_header_dirs='
9685 /usr/X11/include
9686 /usr/X11R6/include
9687 /usr/X11R5/include
9688 /usr/X11R4/include
9689
9690 /usr/include/X11
9691 /usr/include/X11R6
9692 /usr/include/X11R5
9693 /usr/include/X11R4
9694
9695 /usr/local/X11/include
9696 /usr/local/X11R6/include
9697 /usr/local/X11R5/include
9698 /usr/local/X11R4/include
9699
9700 /usr/local/include/X11
9701 /usr/local/include/X11R6
9702 /usr/local/include/X11R5
9703 /usr/local/include/X11R4
9704
9705 /usr/X386/include
9706 /usr/x386/include
9707 /usr/XFree86/include/X11
9708
9709 /usr/include
9710 /usr/local/include
9711 /usr/unsupported/include
9712 /usr/athena/include
9713 /usr/local/x11r5/include
9714 /usr/lpp/Xamples/include
9715
9716 /usr/openwin/include
9717 /usr/openwin/share/include'
9718
9719 if test "$ac_x_includes" = no; then
9720 # Guess where to find include files, by looking for Xlib.h.
9721 # First, try using that file with no special directory specified.
9722 cat >conftest.$ac_ext <<_ACEOF
9723 /* confdefs.h. */
9724 _ACEOF
9725 cat confdefs.h >>conftest.$ac_ext
9726 cat >>conftest.$ac_ext <<_ACEOF
9727 /* end confdefs.h. */
9728 #include <X11/Xlib.h>
9729 _ACEOF
9730 if { (ac_try="$ac_cpp conftest.$ac_ext"
9731 case "(($ac_try" in
9732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9733 *) ac_try_echo=$ac_try;;
9734 esac
9735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9736 $as_echo "$ac_try_echo") >&5
9737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9738 ac_status=$?
9739 grep -v '^ *+' conftest.er1 >conftest.err
9740 rm -f conftest.er1
9741 cat conftest.err >&5
9742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); } >/dev/null && {
9744 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9745 test ! -s conftest.err
9746 }; then
9747 # We can compile using X headers with no special include directory.
9748 ac_x_includes=
9749 else
9750 $as_echo "$as_me: failed program was:" >&5
9751 sed 's/^/| /' conftest.$ac_ext >&5
9752
9753 for ac_dir in $ac_x_header_dirs; do
9754 if test -r "$ac_dir/X11/Xlib.h"; then
9755 ac_x_includes=$ac_dir
9756 break
9757 fi
9758 done
9759 fi
9760
9761 rm -f conftest.err conftest.$ac_ext
9762 fi # $ac_x_includes = no
9763
9764 if test "$ac_x_libraries" = no; then
9765 # Check for the libraries.
9766 # See if we find them without any special options.
9767 # Don't add to $LIBS permanently.
9768 ac_save_LIBS=$LIBS
9769 LIBS="-lX11 $LIBS"
9770 cat >conftest.$ac_ext <<_ACEOF
9771 /* confdefs.h. */
9772 _ACEOF
9773 cat confdefs.h >>conftest.$ac_ext
9774 cat >>conftest.$ac_ext <<_ACEOF
9775 /* end confdefs.h. */
9776 #include <X11/Xlib.h>
9777 int
9778 main ()
9779 {
9780 XrmInitialize ()
9781 ;
9782 return 0;
9783 }
9784 _ACEOF
9785 rm -f conftest.$ac_objext conftest$ac_exeext
9786 if { (ac_try="$ac_link"
9787 case "(($ac_try" in
9788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9789 *) ac_try_echo=$ac_try;;
9790 esac
9791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9792 $as_echo "$ac_try_echo") >&5
9793 (eval "$ac_link") 2>conftest.er1
9794 ac_status=$?
9795 grep -v '^ *+' conftest.er1 >conftest.err
9796 rm -f conftest.er1
9797 cat conftest.err >&5
9798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); } && {
9800 test -z "$ac_c_werror_flag" ||
9801 test ! -s conftest.err
9802 } && test -s conftest$ac_exeext && {
9803 test "$cross_compiling" = yes ||
9804 $as_test_x conftest$ac_exeext
9805 }; then
9806 LIBS=$ac_save_LIBS
9807 # We can link X programs with no special library path.
9808 ac_x_libraries=
9809 else
9810 $as_echo "$as_me: failed program was:" >&5
9811 sed 's/^/| /' conftest.$ac_ext >&5
9812
9813 LIBS=$ac_save_LIBS
9814 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9815 do
9816 # Don't even attempt the hair of trying to link an X program!
9817 for ac_extension in a so sl dylib la dll; do
9818 if test -r "$ac_dir/libX11.$ac_extension"; then
9819 ac_x_libraries=$ac_dir
9820 break 2
9821 fi
9822 done
9823 done
9824 fi
9825
9826 rm -rf conftest.dSYM
9827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9828 conftest$ac_exeext conftest.$ac_ext
9829 fi # $ac_x_libraries = no
9830
9831 case $ac_x_includes,$ac_x_libraries in #(
9832 no,* | *,no | *\'*)
9833 # Didn't find X, or a directory has "'" in its name.
9834 ac_cv_have_x="have_x=no";; #(
9835 *)
9836 # Record where we found X for the cache.
9837 ac_cv_have_x="have_x=yes\
9838 ac_x_includes='$ac_x_includes'\
9839 ac_x_libraries='$ac_x_libraries'"
9840 esac
9841 fi
9842 ;; #(
9843 *) have_x=yes;;
9844 esac
9845 eval "$ac_cv_have_x"
9846 fi # $with_x != no
9847
9848 if test "$have_x" != yes; then
9849 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9850 $as_echo "$have_x" >&6; }
9851 no_x=yes
9852 else
9853 # If each of the values was on the command line, it overrides each guess.
9854 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9855 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9856 # Update the cache value to reflect the command line values.
9857 ac_cv_have_x="have_x=yes\
9858 ac_x_includes='$x_includes'\
9859 ac_x_libraries='$x_libraries'"
9860 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9861 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9862 fi
9863
9864 if test "$no_x" = yes; then
9865 window_system=none
9866 else
9867 window_system=x11
9868 fi
9869
9870 ## Workaround for bug in autoconf <= 2.62.
9871 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9872 ## No need to do anything special for these standard directories.
9873 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9874
9875 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9876
9877 fi
9878
9879 LD_SWITCH_X_SITE_AUX=
9880 LD_SWITCH_X_SITE_AUX_RPATH=
9881 if test "${x_libraries}" != NONE; then
9882 if test -n "${x_libraries}"; then
9883 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9884 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9885 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9886 fi
9887 x_default_search_path=""
9888 x_search_path=${x_libraries}
9889 if test -z "${x_search_path}"; then
9890 x_search_path=/usr/lib
9891 fi
9892 for x_library in `echo ${x_search_path}: | \
9893 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9894 x_search_path="\
9895 ${x_library}/X11/%L/%T/%N%C%S:\
9896 ${x_library}/X11/%l/%T/%N%C%S:\
9897 ${x_library}/X11/%T/%N%C%S:\
9898 ${x_library}/X11/%L/%T/%N%S:\
9899 ${x_library}/X11/%l/%T/%N%S:\
9900 ${x_library}/X11/%T/%N%S"
9901 if test x"${x_default_search_path}" = x; then
9902 x_default_search_path=${x_search_path}
9903 else
9904 x_default_search_path="${x_search_path}:${x_default_search_path}"
9905 fi
9906 done
9907 fi
9908
9909
9910
9911 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9912 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9913 fi
9914
9915 if test x"${x_includes}" = x; then
9916 bitmapdir=/usr/include/X11/bitmaps
9917 else
9918 # accumulate include directories that have X11 bitmap subdirectories
9919 bmd_acc="dummyval"
9920 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9921 if test -d "${bmd}/X11/bitmaps"; then
9922 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9923 fi
9924 if test -d "${bmd}/bitmaps"; then
9925 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9926 fi
9927 done
9928 if test ${bmd_acc} != "dummyval"; then
9929 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9930 fi
9931 fi
9932
9933 HAVE_NS=no
9934 NS_IMPL_COCOA=no
9935 NS_IMPL_GNUSTEP=no
9936 NS_IMPL_GNUSTEP_INC=
9937 NS_IMPL_GNUSTEP_TEMACS_LDFLAGS=
9938 tmp_CPPFLAGS="$CPPFLAGS"
9939 tmp_CFLAGS="$CFLAGS"
9940 CPPFLAGS="$CPPFLAGS -x objective-c"
9941 CFLAGS="$CFLAGS -x objective-c"
9942 TEMACS_LDFLAGS2="\${LDFLAGS}"
9943 if test "${with_ns}" != no; then
9944 if test "${opsys}" = darwin; then
9945 NS_IMPL_COCOA=yes
9946 ns_appdir=`pwd`/nextstep/Emacs.app/
9947 ns_appbindir=${ns_appdir}Contents/MacOS/
9948 ns_appresdir=${ns_appdir}Contents/Resources
9949 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9950 elif test -f $GNUSTEP_CONFIG_FILE; then
9951 NS_IMPL_GNUSTEP=yes
9952 ns_appdir=`pwd`/nextstep/Emacs.app/
9953 ns_appbindir=${ns_appdir}
9954 ns_appresdir=${ns_appdir}Resources
9955 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9956 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9957 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9958 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9959 ## Pull in stuff from GNUstep-make.
9960 NS_IMPL_GNUSTEP_INC="FOUNDATION_LIB=gnu
9961 GUI_LIB=gnu
9962 include $GNUSTEP_MAKEFILES/Additional/base.make
9963 include $GNUSTEP_MAKEFILES/Additional/gui.make
9964 shared=no
9965 "
9966 NS_IMPL_GNUSTEP_TEMACS_LDFLAGS="-L${GNUSTEP_SYSTEM_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc \${CONFIG_SYSTEM_LIBS} -lpthread"
9967 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9968 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9969 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9970 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9971 LIB_STANDARD=
9972 START_FILES=
9973 TEMACS_LDFLAGS2=
9974 fi
9975 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9976 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9977 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9978 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9979 $as_echo_n "(cached) " >&6
9980 fi
9981 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9982 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9983 else
9984 # Is the header compilable?
9985 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9986 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9987 cat >conftest.$ac_ext <<_ACEOF
9988 /* confdefs.h. */
9989 _ACEOF
9990 cat confdefs.h >>conftest.$ac_ext
9991 cat >>conftest.$ac_ext <<_ACEOF
9992 /* end confdefs.h. */
9993 $ac_includes_default
9994 #include <AppKit/AppKit.h>
9995 _ACEOF
9996 rm -f conftest.$ac_objext
9997 if { (ac_try="$ac_compile"
9998 case "(($ac_try" in
9999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10000 *) ac_try_echo=$ac_try;;
10001 esac
10002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10003 $as_echo "$ac_try_echo") >&5
10004 (eval "$ac_compile") 2>conftest.er1
10005 ac_status=$?
10006 grep -v '^ *+' conftest.er1 >conftest.err
10007 rm -f conftest.er1
10008 cat conftest.err >&5
10009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); } && {
10011 test -z "$ac_c_werror_flag" ||
10012 test ! -s conftest.err
10013 } && test -s conftest.$ac_objext; then
10014 ac_header_compiler=yes
10015 else
10016 $as_echo "$as_me: failed program was:" >&5
10017 sed 's/^/| /' conftest.$ac_ext >&5
10018
10019 ac_header_compiler=no
10020 fi
10021
10022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10023 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10024 $as_echo "$ac_header_compiler" >&6; }
10025
10026 # Is the header present?
10027 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
10028 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
10029 cat >conftest.$ac_ext <<_ACEOF
10030 /* confdefs.h. */
10031 _ACEOF
10032 cat confdefs.h >>conftest.$ac_ext
10033 cat >>conftest.$ac_ext <<_ACEOF
10034 /* end confdefs.h. */
10035 #include <AppKit/AppKit.h>
10036 _ACEOF
10037 if { (ac_try="$ac_cpp conftest.$ac_ext"
10038 case "(($ac_try" in
10039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10040 *) ac_try_echo=$ac_try;;
10041 esac
10042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10043 $as_echo "$ac_try_echo") >&5
10044 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10045 ac_status=$?
10046 grep -v '^ *+' conftest.er1 >conftest.err
10047 rm -f conftest.er1
10048 cat conftest.err >&5
10049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); } >/dev/null && {
10051 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10052 test ! -s conftest.err
10053 }; then
10054 ac_header_preproc=yes
10055 else
10056 $as_echo "$as_me: failed program was:" >&5
10057 sed 's/^/| /' conftest.$ac_ext >&5
10058
10059 ac_header_preproc=no
10060 fi
10061
10062 rm -f conftest.err conftest.$ac_ext
10063 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10064 $as_echo "$ac_header_preproc" >&6; }
10065
10066 # So? What about this header?
10067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10068 yes:no: )
10069 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
10070 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10071 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
10072 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
10073 ac_header_preproc=yes
10074 ;;
10075 no:yes:* )
10076 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
10077 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
10078 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
10079 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
10080 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
10081 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
10082 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
10083 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
10084 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
10085 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
10086 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
10087 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
10088
10089 ;;
10090 esac
10091 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
10092 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
10093 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
10094 $as_echo_n "(cached) " >&6
10095 else
10096 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
10097 fi
10098 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
10099 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
10100
10101 fi
10102 if test $ac_cv_header_AppKit_AppKit_h = yes; then
10103 HAVE_NS=yes
10104 else
10105 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
10106 files are missing or cannot be compiled." >&5
10107 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
10108 files are missing or cannot be compiled." >&2;}
10109 { (exit 1); exit 1; }; }
10110 fi
10111
10112
10113 NS_HAVE_NSINTEGER=yes
10114 cat >conftest.$ac_ext <<_ACEOF
10115 /* confdefs.h. */
10116 _ACEOF
10117 cat confdefs.h >>conftest.$ac_ext
10118 cat >>conftest.$ac_ext <<_ACEOF
10119 /* end confdefs.h. */
10120 #include <Foundation/NSObjCRuntime.h>
10121 int
10122 main ()
10123 {
10124 NSInteger i;
10125 ;
10126 return 0;
10127 }
10128 _ACEOF
10129 rm -f conftest.$ac_objext
10130 if { (ac_try="$ac_compile"
10131 case "(($ac_try" in
10132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133 *) ac_try_echo=$ac_try;;
10134 esac
10135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10136 $as_echo "$ac_try_echo") >&5
10137 (eval "$ac_compile") 2>conftest.er1
10138 ac_status=$?
10139 grep -v '^ *+' conftest.er1 >conftest.err
10140 rm -f conftest.er1
10141 cat conftest.err >&5
10142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); } && {
10144 test -z "$ac_c_werror_flag" ||
10145 test ! -s conftest.err
10146 } && test -s conftest.$ac_objext; then
10147 ns_have_nsinteger=yes
10148 else
10149 $as_echo "$as_me: failed program was:" >&5
10150 sed 's/^/| /' conftest.$ac_ext >&5
10151
10152 ns_have_nsinteger=no
10153 fi
10154
10155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10156 if test $ns_have_nsinteger = no; then
10157 NS_HAVE_NSINTEGER=no
10158 fi
10159 fi
10160
10161
10162
10163
10164 NS_OBJ=
10165 NS_SUPPORT=
10166 if test "${HAVE_NS}" = yes; then
10167 window_system=nextstep
10168 with_xft=no
10169 # set up packaging dirs
10170 exec_prefix=${ns_appbindir}
10171 libexecdir=${ns_appbindir}/libexec
10172 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10173 prefix=${ns_appresdir}
10174 fi
10175 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
10176 NS_SUPPORT="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
10177 fi
10178 CFLAGS="$tmp_CFLAGS"
10179 CPPFLAGS="$tmp_CPPFLAGS"
10180
10181
10182
10183
10184 case "${window_system}" in
10185 x11 )
10186 HAVE_X_WINDOWS=yes
10187 HAVE_X11=yes
10188 case "${with_x_toolkit}" in
10189 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10190 motif ) USE_X_TOOLKIT=MOTIF ;;
10191 gtk ) with_gtk=yes
10192 USE_X_TOOLKIT=none ;;
10193 no ) USE_X_TOOLKIT=none ;;
10194 * ) USE_X_TOOLKIT=maybe ;;
10195 esac
10196 ;;
10197 nextstep | none )
10198 HAVE_X_WINDOWS=no
10199 HAVE_X11=no
10200 USE_X_TOOLKIT=none
10201 ;;
10202 esac
10203
10204 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10205 # Extract the first word of "X", so it can be a program name with args.
10206 set dummy X; ac_word=$2
10207 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10208 $as_echo_n "checking for $ac_word... " >&6; }
10209 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
10210 $as_echo_n "(cached) " >&6
10211 else
10212 if test -n "$HAVE_XSERVER"; then
10213 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10214 else
10215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10216 for as_dir in $PATH
10217 do
10218 IFS=$as_save_IFS
10219 test -z "$as_dir" && as_dir=.
10220 for ac_exec_ext in '' $ac_executable_extensions; do
10221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10222 ac_cv_prog_HAVE_XSERVER="true"
10223 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10224 break 2
10225 fi
10226 done
10227 done
10228 IFS=$as_save_IFS
10229
10230 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10231 fi
10232 fi
10233 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10234 if test -n "$HAVE_XSERVER"; then
10235 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
10236 $as_echo "$HAVE_XSERVER" >&6; }
10237 else
10238 { $as_echo "$as_me:$LINENO: result: no" >&5
10239 $as_echo "no" >&6; }
10240 fi
10241
10242
10243 if test "$HAVE_XSERVER" = true ||
10244 test -n "$DISPLAY" ||
10245 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10246 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
10247 were found. You should install the relevant development files for X
10248 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10249 sure you have development files for image handling, i.e.
10250 tiff, gif, jpeg, png and xpm.
10251 If you are sure you want Emacs compiled without X window support, pass
10252 --without-x
10253 to configure." >&5
10254 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
10255 were found. You should install the relevant development files for X
10256 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10257 sure you have development files for image handling, i.e.
10258 tiff, gif, jpeg, png and xpm.
10259 If you are sure you want Emacs compiled without X window support, pass
10260 --without-x
10261 to configure." >&2;}
10262 { (exit 1); exit 1; }; }
10263 fi
10264 fi
10265
10266 ### If we're using X11, we should use the X menu package.
10267 HAVE_MENUS=no
10268 case ${HAVE_X11} in
10269 yes ) HAVE_MENUS=yes ;;
10270 esac
10271
10272 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10273 # Assume not, until told otherwise.
10274 GNU_MALLOC=yes
10275 doug_lea_malloc=yes
10276 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
10277 $as_echo_n "checking for malloc_get_state... " >&6; }
10278 if test "${ac_cv_func_malloc_get_state+set}" = set; then
10279 $as_echo_n "(cached) " >&6
10280 else
10281 cat >conftest.$ac_ext <<_ACEOF
10282 /* confdefs.h. */
10283 _ACEOF
10284 cat confdefs.h >>conftest.$ac_ext
10285 cat >>conftest.$ac_ext <<_ACEOF
10286 /* end confdefs.h. */
10287 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10289 #define malloc_get_state innocuous_malloc_get_state
10290
10291 /* System header to define __stub macros and hopefully few prototypes,
10292 which can conflict with char malloc_get_state (); below.
10293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10294 <limits.h> exists even on freestanding compilers. */
10295
10296 #ifdef __STDC__
10297 # include <limits.h>
10298 #else
10299 # include <assert.h>
10300 #endif
10301
10302 #undef malloc_get_state
10303
10304 /* Override any GCC internal prototype to avoid an error.
10305 Use char because int might match the return type of a GCC
10306 builtin and then its argument prototype would still apply. */
10307 #ifdef __cplusplus
10308 extern "C"
10309 #endif
10310 char malloc_get_state ();
10311 /* The GNU C library defines this for functions which it implements
10312 to always fail with ENOSYS. Some functions are actually named
10313 something starting with __ and the normal name is an alias. */
10314 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10315 choke me
10316 #endif
10317
10318 int
10319 main ()
10320 {
10321 return malloc_get_state ();
10322 ;
10323 return 0;
10324 }
10325 _ACEOF
10326 rm -f conftest.$ac_objext conftest$ac_exeext
10327 if { (ac_try="$ac_link"
10328 case "(($ac_try" in
10329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10330 *) ac_try_echo=$ac_try;;
10331 esac
10332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10333 $as_echo "$ac_try_echo") >&5
10334 (eval "$ac_link") 2>conftest.er1
10335 ac_status=$?
10336 grep -v '^ *+' conftest.er1 >conftest.err
10337 rm -f conftest.er1
10338 cat conftest.err >&5
10339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); } && {
10341 test -z "$ac_c_werror_flag" ||
10342 test ! -s conftest.err
10343 } && test -s conftest$ac_exeext && {
10344 test "$cross_compiling" = yes ||
10345 $as_test_x conftest$ac_exeext
10346 }; then
10347 ac_cv_func_malloc_get_state=yes
10348 else
10349 $as_echo "$as_me: failed program was:" >&5
10350 sed 's/^/| /' conftest.$ac_ext >&5
10351
10352 ac_cv_func_malloc_get_state=no
10353 fi
10354
10355 rm -rf conftest.dSYM
10356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10357 conftest$ac_exeext conftest.$ac_ext
10358 fi
10359 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10360 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10361 if test $ac_cv_func_malloc_get_state = yes; then
10362 :
10363 else
10364 doug_lea_malloc=no
10365 fi
10366
10367 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10368 $as_echo_n "checking for malloc_set_state... " >&6; }
10369 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10370 $as_echo_n "(cached) " >&6
10371 else
10372 cat >conftest.$ac_ext <<_ACEOF
10373 /* confdefs.h. */
10374 _ACEOF
10375 cat confdefs.h >>conftest.$ac_ext
10376 cat >>conftest.$ac_ext <<_ACEOF
10377 /* end confdefs.h. */
10378 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10380 #define malloc_set_state innocuous_malloc_set_state
10381
10382 /* System header to define __stub macros and hopefully few prototypes,
10383 which can conflict with char malloc_set_state (); below.
10384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10385 <limits.h> exists even on freestanding compilers. */
10386
10387 #ifdef __STDC__
10388 # include <limits.h>
10389 #else
10390 # include <assert.h>
10391 #endif
10392
10393 #undef malloc_set_state
10394
10395 /* Override any GCC internal prototype to avoid an error.
10396 Use char because int might match the return type of a GCC
10397 builtin and then its argument prototype would still apply. */
10398 #ifdef __cplusplus
10399 extern "C"
10400 #endif
10401 char malloc_set_state ();
10402 /* The GNU C library defines this for functions which it implements
10403 to always fail with ENOSYS. Some functions are actually named
10404 something starting with __ and the normal name is an alias. */
10405 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10406 choke me
10407 #endif
10408
10409 int
10410 main ()
10411 {
10412 return malloc_set_state ();
10413 ;
10414 return 0;
10415 }
10416 _ACEOF
10417 rm -f conftest.$ac_objext conftest$ac_exeext
10418 if { (ac_try="$ac_link"
10419 case "(($ac_try" in
10420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10421 *) ac_try_echo=$ac_try;;
10422 esac
10423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10424 $as_echo "$ac_try_echo") >&5
10425 (eval "$ac_link") 2>conftest.er1
10426 ac_status=$?
10427 grep -v '^ *+' conftest.er1 >conftest.err
10428 rm -f conftest.er1
10429 cat conftest.err >&5
10430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); } && {
10432 test -z "$ac_c_werror_flag" ||
10433 test ! -s conftest.err
10434 } && test -s conftest$ac_exeext && {
10435 test "$cross_compiling" = yes ||
10436 $as_test_x conftest$ac_exeext
10437 }; then
10438 ac_cv_func_malloc_set_state=yes
10439 else
10440 $as_echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.$ac_ext >&5
10442
10443 ac_cv_func_malloc_set_state=no
10444 fi
10445
10446 rm -rf conftest.dSYM
10447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10448 conftest$ac_exeext conftest.$ac_ext
10449 fi
10450 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10451 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10452 if test $ac_cv_func_malloc_set_state = yes; then
10453 :
10454 else
10455 doug_lea_malloc=no
10456 fi
10457
10458 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10459 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10460 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10461 $as_echo_n "(cached) " >&6
10462 else
10463 cat >conftest.$ac_ext <<_ACEOF
10464 /* confdefs.h. */
10465 _ACEOF
10466 cat confdefs.h >>conftest.$ac_ext
10467 cat >>conftest.$ac_ext <<_ACEOF
10468 /* end confdefs.h. */
10469 extern void (* __after_morecore_hook)();
10470 int
10471 main ()
10472 {
10473 __after_morecore_hook = 0
10474 ;
10475 return 0;
10476 }
10477 _ACEOF
10478 rm -f conftest.$ac_objext conftest$ac_exeext
10479 if { (ac_try="$ac_link"
10480 case "(($ac_try" in
10481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10482 *) ac_try_echo=$ac_try;;
10483 esac
10484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10485 $as_echo "$ac_try_echo") >&5
10486 (eval "$ac_link") 2>conftest.er1
10487 ac_status=$?
10488 grep -v '^ *+' conftest.er1 >conftest.err
10489 rm -f conftest.er1
10490 cat conftest.err >&5
10491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); } && {
10493 test -z "$ac_c_werror_flag" ||
10494 test ! -s conftest.err
10495 } && test -s conftest$ac_exeext && {
10496 test "$cross_compiling" = yes ||
10497 $as_test_x conftest$ac_exeext
10498 }; then
10499 emacs_cv_var___after_morecore_hook=yes
10500 else
10501 $as_echo "$as_me: failed program was:" >&5
10502 sed 's/^/| /' conftest.$ac_ext >&5
10503
10504 emacs_cv_var___after_morecore_hook=no
10505 fi
10506
10507 rm -rf conftest.dSYM
10508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10509 conftest$ac_exeext conftest.$ac_ext
10510 fi
10511 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10512 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10513 if test $emacs_cv_var___after_morecore_hook = no; then
10514 doug_lea_malloc=no
10515 fi
10516 if test "${system_malloc}" = "yes"; then
10517 GNU_MALLOC=no
10518 GNU_MALLOC_reason="
10519 (The GNU allocators don't work with this system configuration.)"
10520 fi
10521 if test "$doug_lea_malloc" = "yes" ; then
10522 if test "$GNU_MALLOC" = yes ; then
10523 GNU_MALLOC_reason="
10524 (Using Doug Lea's new malloc from the GNU C Library.)"
10525 fi
10526
10527 cat >>confdefs.h <<\_ACEOF
10528 #define DOUG_LEA_MALLOC 1
10529 _ACEOF
10530
10531 fi
10532
10533 if test x"${REL_ALLOC}" = x; then
10534 REL_ALLOC=${GNU_MALLOC}
10535 fi
10536
10537
10538
10539
10540 for ac_header in stdlib.h unistd.h
10541 do
10542 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10544 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10545 $as_echo_n "checking for $ac_header... " >&6; }
10546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10547 $as_echo_n "(cached) " >&6
10548 fi
10549 ac_res=`eval 'as_val=${'$as_ac_Header'}
10550 $as_echo "$as_val"'`
10551 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10552 $as_echo "$ac_res" >&6; }
10553 else
10554 # Is the header compilable?
10555 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10556 $as_echo_n "checking $ac_header usability... " >&6; }
10557 cat >conftest.$ac_ext <<_ACEOF
10558 /* confdefs.h. */
10559 _ACEOF
10560 cat confdefs.h >>conftest.$ac_ext
10561 cat >>conftest.$ac_ext <<_ACEOF
10562 /* end confdefs.h. */
10563 $ac_includes_default
10564 #include <$ac_header>
10565 _ACEOF
10566 rm -f conftest.$ac_objext
10567 if { (ac_try="$ac_compile"
10568 case "(($ac_try" in
10569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10570 *) ac_try_echo=$ac_try;;
10571 esac
10572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10573 $as_echo "$ac_try_echo") >&5
10574 (eval "$ac_compile") 2>conftest.er1
10575 ac_status=$?
10576 grep -v '^ *+' conftest.er1 >conftest.err
10577 rm -f conftest.er1
10578 cat conftest.err >&5
10579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); } && {
10581 test -z "$ac_c_werror_flag" ||
10582 test ! -s conftest.err
10583 } && test -s conftest.$ac_objext; then
10584 ac_header_compiler=yes
10585 else
10586 $as_echo "$as_me: failed program was:" >&5
10587 sed 's/^/| /' conftest.$ac_ext >&5
10588
10589 ac_header_compiler=no
10590 fi
10591
10592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10593 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10594 $as_echo "$ac_header_compiler" >&6; }
10595
10596 # Is the header present?
10597 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10598 $as_echo_n "checking $ac_header presence... " >&6; }
10599 cat >conftest.$ac_ext <<_ACEOF
10600 /* confdefs.h. */
10601 _ACEOF
10602 cat confdefs.h >>conftest.$ac_ext
10603 cat >>conftest.$ac_ext <<_ACEOF
10604 /* end confdefs.h. */
10605 #include <$ac_header>
10606 _ACEOF
10607 if { (ac_try="$ac_cpp conftest.$ac_ext"
10608 case "(($ac_try" in
10609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10610 *) ac_try_echo=$ac_try;;
10611 esac
10612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10613 $as_echo "$ac_try_echo") >&5
10614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10615 ac_status=$?
10616 grep -v '^ *+' conftest.er1 >conftest.err
10617 rm -f conftest.er1
10618 cat conftest.err >&5
10619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); } >/dev/null && {
10621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10622 test ! -s conftest.err
10623 }; then
10624 ac_header_preproc=yes
10625 else
10626 $as_echo "$as_me: failed program was:" >&5
10627 sed 's/^/| /' conftest.$ac_ext >&5
10628
10629 ac_header_preproc=no
10630 fi
10631
10632 rm -f conftest.err conftest.$ac_ext
10633 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10634 $as_echo "$ac_header_preproc" >&6; }
10635
10636 # So? What about this header?
10637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10638 yes:no: )
10639 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10640 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10641 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10642 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10643 ac_header_preproc=yes
10644 ;;
10645 no:yes:* )
10646 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10647 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10648 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10649 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10650 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10651 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10652 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10653 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10654 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10655 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10656 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10657 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10658
10659 ;;
10660 esac
10661 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10662 $as_echo_n "checking for $ac_header... " >&6; }
10663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10664 $as_echo_n "(cached) " >&6
10665 else
10666 eval "$as_ac_Header=\$ac_header_preproc"
10667 fi
10668 ac_res=`eval 'as_val=${'$as_ac_Header'}
10669 $as_echo "$as_val"'`
10670 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10671 $as_echo "$ac_res" >&6; }
10672
10673 fi
10674 if test `eval 'as_val=${'$as_ac_Header'}
10675 $as_echo "$as_val"'` = yes; then
10676 cat >>confdefs.h <<_ACEOF
10677 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10678 _ACEOF
10679
10680 fi
10681
10682 done
10683
10684
10685 for ac_func in getpagesize
10686 do
10687 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10688 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10689 $as_echo_n "checking for $ac_func... " >&6; }
10690 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10691 $as_echo_n "(cached) " >&6
10692 else
10693 cat >conftest.$ac_ext <<_ACEOF
10694 /* confdefs.h. */
10695 _ACEOF
10696 cat confdefs.h >>conftest.$ac_ext
10697 cat >>conftest.$ac_ext <<_ACEOF
10698 /* end confdefs.h. */
10699 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10701 #define $ac_func innocuous_$ac_func
10702
10703 /* System header to define __stub macros and hopefully few prototypes,
10704 which can conflict with char $ac_func (); below.
10705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10706 <limits.h> exists even on freestanding compilers. */
10707
10708 #ifdef __STDC__
10709 # include <limits.h>
10710 #else
10711 # include <assert.h>
10712 #endif
10713
10714 #undef $ac_func
10715
10716 /* Override any GCC internal prototype to avoid an error.
10717 Use char because int might match the return type of a GCC
10718 builtin and then its argument prototype would still apply. */
10719 #ifdef __cplusplus
10720 extern "C"
10721 #endif
10722 char $ac_func ();
10723 /* The GNU C library defines this for functions which it implements
10724 to always fail with ENOSYS. Some functions are actually named
10725 something starting with __ and the normal name is an alias. */
10726 #if defined __stub_$ac_func || defined __stub___$ac_func
10727 choke me
10728 #endif
10729
10730 int
10731 main ()
10732 {
10733 return $ac_func ();
10734 ;
10735 return 0;
10736 }
10737 _ACEOF
10738 rm -f conftest.$ac_objext conftest$ac_exeext
10739 if { (ac_try="$ac_link"
10740 case "(($ac_try" in
10741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10742 *) ac_try_echo=$ac_try;;
10743 esac
10744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10745 $as_echo "$ac_try_echo") >&5
10746 (eval "$ac_link") 2>conftest.er1
10747 ac_status=$?
10748 grep -v '^ *+' conftest.er1 >conftest.err
10749 rm -f conftest.er1
10750 cat conftest.err >&5
10751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); } && {
10753 test -z "$ac_c_werror_flag" ||
10754 test ! -s conftest.err
10755 } && test -s conftest$ac_exeext && {
10756 test "$cross_compiling" = yes ||
10757 $as_test_x conftest$ac_exeext
10758 }; then
10759 eval "$as_ac_var=yes"
10760 else
10761 $as_echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.$ac_ext >&5
10763
10764 eval "$as_ac_var=no"
10765 fi
10766
10767 rm -rf conftest.dSYM
10768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10769 conftest$ac_exeext conftest.$ac_ext
10770 fi
10771 ac_res=`eval 'as_val=${'$as_ac_var'}
10772 $as_echo "$as_val"'`
10773 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10774 $as_echo "$ac_res" >&6; }
10775 if test `eval 'as_val=${'$as_ac_var'}
10776 $as_echo "$as_val"'` = yes; then
10777 cat >>confdefs.h <<_ACEOF
10778 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10779 _ACEOF
10780
10781 fi
10782 done
10783
10784 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10785 $as_echo_n "checking for working mmap... " >&6; }
10786 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10787 $as_echo_n "(cached) " >&6
10788 else
10789 if test "$cross_compiling" = yes; then
10790 ac_cv_func_mmap_fixed_mapped=no
10791 else
10792 cat >conftest.$ac_ext <<_ACEOF
10793 /* confdefs.h. */
10794 _ACEOF
10795 cat confdefs.h >>conftest.$ac_ext
10796 cat >>conftest.$ac_ext <<_ACEOF
10797 /* end confdefs.h. */
10798 $ac_includes_default
10799 /* malloc might have been renamed as rpl_malloc. */
10800 #undef malloc
10801
10802 /* Thanks to Mike Haertel and Jim Avera for this test.
10803 Here is a matrix of mmap possibilities:
10804 mmap private not fixed
10805 mmap private fixed at somewhere currently unmapped
10806 mmap private fixed at somewhere already mapped
10807 mmap shared not fixed
10808 mmap shared fixed at somewhere currently unmapped
10809 mmap shared fixed at somewhere already mapped
10810 For private mappings, we should verify that changes cannot be read()
10811 back from the file, nor mmap's back from the file at a different
10812 address. (There have been systems where private was not correctly
10813 implemented like the infamous i386 svr4.0, and systems where the
10814 VM page cache was not coherent with the file system buffer cache
10815 like early versions of FreeBSD and possibly contemporary NetBSD.)
10816 For shared mappings, we should conversely verify that changes get
10817 propagated back to all the places they're supposed to be.
10818
10819 Grep wants private fixed already mapped.
10820 The main things grep needs to know about mmap are:
10821 * does it exist and is it safe to write into the mmap'd area
10822 * how to use it (BSD variants) */
10823
10824 #include <fcntl.h>
10825 #include <sys/mman.h>
10826
10827 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10828 char *malloc ();
10829 #endif
10830
10831 /* This mess was copied from the GNU getpagesize.h. */
10832 #ifndef HAVE_GETPAGESIZE
10833 /* Assume that all systems that can run configure have sys/param.h. */
10834 # ifndef HAVE_SYS_PARAM_H
10835 # define HAVE_SYS_PARAM_H 1
10836 # endif
10837
10838 # ifdef _SC_PAGESIZE
10839 # define getpagesize() sysconf(_SC_PAGESIZE)
10840 # else /* no _SC_PAGESIZE */
10841 # ifdef HAVE_SYS_PARAM_H
10842 # include <sys/param.h>
10843 # ifdef EXEC_PAGESIZE
10844 # define getpagesize() EXEC_PAGESIZE
10845 # else /* no EXEC_PAGESIZE */
10846 # ifdef NBPG
10847 # define getpagesize() NBPG * CLSIZE
10848 # ifndef CLSIZE
10849 # define CLSIZE 1
10850 # endif /* no CLSIZE */
10851 # else /* no NBPG */
10852 # ifdef NBPC
10853 # define getpagesize() NBPC
10854 # else /* no NBPC */
10855 # ifdef PAGESIZE
10856 # define getpagesize() PAGESIZE
10857 # endif /* PAGESIZE */
10858 # endif /* no NBPC */
10859 # endif /* no NBPG */
10860 # endif /* no EXEC_PAGESIZE */
10861 # else /* no HAVE_SYS_PARAM_H */
10862 # define getpagesize() 8192 /* punt totally */
10863 # endif /* no HAVE_SYS_PARAM_H */
10864 # endif /* no _SC_PAGESIZE */
10865
10866 #endif /* no HAVE_GETPAGESIZE */
10867
10868 int
10869 main ()
10870 {
10871 char *data, *data2, *data3;
10872 int i, pagesize;
10873 int fd;
10874
10875 pagesize = getpagesize ();
10876
10877 /* First, make a file with some known garbage in it. */
10878 data = (char *) malloc (pagesize);
10879 if (!data)
10880 return 1;
10881 for (i = 0; i < pagesize; ++i)
10882 *(data + i) = rand ();
10883 umask (0);
10884 fd = creat ("conftest.mmap", 0600);
10885 if (fd < 0)
10886 return 1;
10887 if (write (fd, data, pagesize) != pagesize)
10888 return 1;
10889 close (fd);
10890
10891 /* Next, try to mmap the file at a fixed address which already has
10892 something else allocated at it. If we can, also make sure that
10893 we see the same garbage. */
10894 fd = open ("conftest.mmap", O_RDWR);
10895 if (fd < 0)
10896 return 1;
10897 data2 = (char *) malloc (2 * pagesize);
10898 if (!data2)
10899 return 1;
10900 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10901 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10902 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10903 return 1;
10904 for (i = 0; i < pagesize; ++i)
10905 if (*(data + i) != *(data2 + i))
10906 return 1;
10907
10908 /* Finally, make sure that changes to the mapped area do not
10909 percolate back to the file as seen by read(). (This is a bug on
10910 some variants of i386 svr4.0.) */
10911 for (i = 0; i < pagesize; ++i)
10912 *(data2 + i) = *(data2 + i) + 1;
10913 data3 = (char *) malloc (pagesize);
10914 if (!data3)
10915 return 1;
10916 if (read (fd, data3, pagesize) != pagesize)
10917 return 1;
10918 for (i = 0; i < pagesize; ++i)
10919 if (*(data + i) != *(data3 + i))
10920 return 1;
10921 close (fd);
10922 return 0;
10923 }
10924 _ACEOF
10925 rm -f conftest$ac_exeext
10926 if { (ac_try="$ac_link"
10927 case "(($ac_try" in
10928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10929 *) ac_try_echo=$ac_try;;
10930 esac
10931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10932 $as_echo "$ac_try_echo") >&5
10933 (eval "$ac_link") 2>&5
10934 ac_status=$?
10935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10937 { (case "(($ac_try" in
10938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10939 *) ac_try_echo=$ac_try;;
10940 esac
10941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10942 $as_echo "$ac_try_echo") >&5
10943 (eval "$ac_try") 2>&5
10944 ac_status=$?
10945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); }; }; then
10947 ac_cv_func_mmap_fixed_mapped=yes
10948 else
10949 $as_echo "$as_me: program exited with status $ac_status" >&5
10950 $as_echo "$as_me: failed program was:" >&5
10951 sed 's/^/| /' conftest.$ac_ext >&5
10952
10953 ( exit $ac_status )
10954 ac_cv_func_mmap_fixed_mapped=no
10955 fi
10956 rm -rf conftest.dSYM
10957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10958 fi
10959
10960
10961 fi
10962 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10963 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10964 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10965
10966 cat >>confdefs.h <<\_ACEOF
10967 #define HAVE_MMAP 1
10968 _ACEOF
10969
10970 fi
10971 rm -f conftest.mmap
10972
10973 if test $use_mmap_for_buffers = yes; then
10974 REL_ALLOC=no
10975 fi
10976
10977 LIBS="$LIBS_SYSTEM $LIBS"
10978
10979
10980 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10981 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10982 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10983 $as_echo_n "(cached) " >&6
10984 else
10985 ac_check_lib_save_LIBS=$LIBS
10986 LIBS="-ldnet $LIBS"
10987 cat >conftest.$ac_ext <<_ACEOF
10988 /* confdefs.h. */
10989 _ACEOF
10990 cat confdefs.h >>conftest.$ac_ext
10991 cat >>conftest.$ac_ext <<_ACEOF
10992 /* end confdefs.h. */
10993
10994 /* Override any GCC internal prototype to avoid an error.
10995 Use char because int might match the return type of a GCC
10996 builtin and then its argument prototype would still apply. */
10997 #ifdef __cplusplus
10998 extern "C"
10999 #endif
11000 char dnet_ntoa ();
11001 int
11002 main ()
11003 {
11004 return dnet_ntoa ();
11005 ;
11006 return 0;
11007 }
11008 _ACEOF
11009 rm -f conftest.$ac_objext conftest$ac_exeext
11010 if { (ac_try="$ac_link"
11011 case "(($ac_try" in
11012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11013 *) ac_try_echo=$ac_try;;
11014 esac
11015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11016 $as_echo "$ac_try_echo") >&5
11017 (eval "$ac_link") 2>conftest.er1
11018 ac_status=$?
11019 grep -v '^ *+' conftest.er1 >conftest.err
11020 rm -f conftest.er1
11021 cat conftest.err >&5
11022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); } && {
11024 test -z "$ac_c_werror_flag" ||
11025 test ! -s conftest.err
11026 } && test -s conftest$ac_exeext && {
11027 test "$cross_compiling" = yes ||
11028 $as_test_x conftest$ac_exeext
11029 }; then
11030 ac_cv_lib_dnet_dnet_ntoa=yes
11031 else
11032 $as_echo "$as_me: failed program was:" >&5
11033 sed 's/^/| /' conftest.$ac_ext >&5
11034
11035 ac_cv_lib_dnet_dnet_ntoa=no
11036 fi
11037
11038 rm -rf conftest.dSYM
11039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11040 conftest$ac_exeext conftest.$ac_ext
11041 LIBS=$ac_check_lib_save_LIBS
11042 fi
11043 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11044 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
11045 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
11046 cat >>confdefs.h <<_ACEOF
11047 #define HAVE_LIBDNET 1
11048 _ACEOF
11049
11050 LIBS="-ldnet $LIBS"
11051
11052 fi
11053
11054
11055 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
11056 $as_echo_n "checking for main in -lXbsd... " >&6; }
11057 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
11058 $as_echo_n "(cached) " >&6
11059 else
11060 ac_check_lib_save_LIBS=$LIBS
11061 LIBS="-lXbsd $LIBS"
11062 cat >conftest.$ac_ext <<_ACEOF
11063 /* confdefs.h. */
11064 _ACEOF
11065 cat confdefs.h >>conftest.$ac_ext
11066 cat >>conftest.$ac_ext <<_ACEOF
11067 /* end confdefs.h. */
11068
11069
11070 int
11071 main ()
11072 {
11073 return main ();
11074 ;
11075 return 0;
11076 }
11077 _ACEOF
11078 rm -f conftest.$ac_objext conftest$ac_exeext
11079 if { (ac_try="$ac_link"
11080 case "(($ac_try" in
11081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11082 *) ac_try_echo=$ac_try;;
11083 esac
11084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11085 $as_echo "$ac_try_echo") >&5
11086 (eval "$ac_link") 2>conftest.er1
11087 ac_status=$?
11088 grep -v '^ *+' conftest.er1 >conftest.err
11089 rm -f conftest.er1
11090 cat conftest.err >&5
11091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092 (exit $ac_status); } && {
11093 test -z "$ac_c_werror_flag" ||
11094 test ! -s conftest.err
11095 } && test -s conftest$ac_exeext && {
11096 test "$cross_compiling" = yes ||
11097 $as_test_x conftest$ac_exeext
11098 }; then
11099 ac_cv_lib_Xbsd_main=yes
11100 else
11101 $as_echo "$as_me: failed program was:" >&5
11102 sed 's/^/| /' conftest.$ac_ext >&5
11103
11104 ac_cv_lib_Xbsd_main=no
11105 fi
11106
11107 rm -rf conftest.dSYM
11108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11109 conftest$ac_exeext conftest.$ac_ext
11110 LIBS=$ac_check_lib_save_LIBS
11111 fi
11112 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
11113 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
11114 if test $ac_cv_lib_Xbsd_main = yes; then
11115 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
11116 fi
11117
11118
11119
11120 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
11121 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
11122 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
11123 $as_echo_n "(cached) " >&6
11124 else
11125 ac_check_lib_save_LIBS=$LIBS
11126 LIBS="-lpthreads $LIBS"
11127 cat >conftest.$ac_ext <<_ACEOF
11128 /* confdefs.h. */
11129 _ACEOF
11130 cat confdefs.h >>conftest.$ac_ext
11131 cat >>conftest.$ac_ext <<_ACEOF
11132 /* end confdefs.h. */
11133
11134 /* Override any GCC internal prototype to avoid an error.
11135 Use char because int might match the return type of a GCC
11136 builtin and then its argument prototype would still apply. */
11137 #ifdef __cplusplus
11138 extern "C"
11139 #endif
11140 char cma_open ();
11141 int
11142 main ()
11143 {
11144 return cma_open ();
11145 ;
11146 return 0;
11147 }
11148 _ACEOF
11149 rm -f conftest.$ac_objext conftest$ac_exeext
11150 if { (ac_try="$ac_link"
11151 case "(($ac_try" in
11152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11153 *) ac_try_echo=$ac_try;;
11154 esac
11155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11156 $as_echo "$ac_try_echo") >&5
11157 (eval "$ac_link") 2>conftest.er1
11158 ac_status=$?
11159 grep -v '^ *+' conftest.er1 >conftest.err
11160 rm -f conftest.er1
11161 cat conftest.err >&5
11162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); } && {
11164 test -z "$ac_c_werror_flag" ||
11165 test ! -s conftest.err
11166 } && test -s conftest$ac_exeext && {
11167 test "$cross_compiling" = yes ||
11168 $as_test_x conftest$ac_exeext
11169 }; then
11170 ac_cv_lib_pthreads_cma_open=yes
11171 else
11172 $as_echo "$as_me: failed program was:" >&5
11173 sed 's/^/| /' conftest.$ac_ext >&5
11174
11175 ac_cv_lib_pthreads_cma_open=no
11176 fi
11177
11178 rm -rf conftest.dSYM
11179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11180 conftest$ac_exeext conftest.$ac_ext
11181 LIBS=$ac_check_lib_save_LIBS
11182 fi
11183 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
11184 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
11185 if test $ac_cv_lib_pthreads_cma_open = yes; then
11186 cat >>confdefs.h <<_ACEOF
11187 #define HAVE_LIBPTHREADS 1
11188 _ACEOF
11189
11190 LIBS="-lpthreads $LIBS"
11191
11192 fi
11193
11194
11195 ## Note: when using cpp in s/aix4.2.h, this definition depended on
11196 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
11197 ## the system file was sourced. Hence the value of LIBS_SYSTEM
11198 ## added to LIBS in configure would never contain the pthreads part,
11199 ## but the value used in Makefiles might. FIXME?
11200 ##
11201 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
11202 ## be harmless on older versions of X where it happens to exist.
11203 test "$opsys" = "aix4-2" && \
11204 test $ac_cv_lib_pthreads_cma_open = yes && \
11205 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
11206
11207
11208 case ${host_os} in
11209 aix*)
11210 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
11211 $as_echo_n "checking for -bbigtoc option... " >&6; }
11212 if test "${gdb_cv_bigtoc+set}" = set; then
11213 $as_echo_n "(cached) " >&6
11214 else
11215
11216 case $GCC in
11217 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
11218 *) gdb_cv_bigtoc=-bbigtoc ;;
11219 esac
11220
11221 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
11222 cat >conftest.$ac_ext <<_ACEOF
11223 /* confdefs.h. */
11224 _ACEOF
11225 cat confdefs.h >>conftest.$ac_ext
11226 cat >>conftest.$ac_ext <<_ACEOF
11227 /* end confdefs.h. */
11228
11229 int
11230 main ()
11231 {
11232 int i;
11233 ;
11234 return 0;
11235 }
11236 _ACEOF
11237 rm -f conftest.$ac_objext conftest$ac_exeext
11238 if { (ac_try="$ac_link"
11239 case "(($ac_try" in
11240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11241 *) ac_try_echo=$ac_try;;
11242 esac
11243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11244 $as_echo "$ac_try_echo") >&5
11245 (eval "$ac_link") 2>conftest.er1
11246 ac_status=$?
11247 grep -v '^ *+' conftest.er1 >conftest.err
11248 rm -f conftest.er1
11249 cat conftest.err >&5
11250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); } && {
11252 test -z "$ac_c_werror_flag" ||
11253 test ! -s conftest.err
11254 } && test -s conftest$ac_exeext && {
11255 test "$cross_compiling" = yes ||
11256 $as_test_x conftest$ac_exeext
11257 }; then
11258 :
11259 else
11260 $as_echo "$as_me: failed program was:" >&5
11261 sed 's/^/| /' conftest.$ac_ext >&5
11262
11263 gdb_cv_bigtoc=
11264 fi
11265
11266 rm -rf conftest.dSYM
11267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11268 conftest$ac_exeext conftest.$ac_ext
11269
11270 fi
11271 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
11272 $as_echo "$gdb_cv_bigtoc" >&6; }
11273 ;;
11274 esac
11275
11276 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11277 # used for the tests that follow. We set them back to REAL_CFLAGS and
11278 # REAL_CPPFLAGS later on.
11279
11280 REAL_CPPFLAGS="$CPPFLAGS"
11281
11282 if test "${HAVE_X11}" = "yes"; then
11283 DEFS="$C_SWITCH_X_SITE $DEFS"
11284 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11285 LIBS="$LIBX $LIBS"
11286 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11287 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11288
11289 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11290 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
11291 # but it's more convenient here to set LD_RUN_PATH
11292 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11293 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11294 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11295 export LD_RUN_PATH
11296 fi
11297
11298 if test "${opsys}" = "gnu-linux"; then
11299 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
11300 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11301 cat >conftest.$ac_ext <<_ACEOF
11302 /* confdefs.h. */
11303 _ACEOF
11304 cat confdefs.h >>conftest.$ac_ext
11305 cat >>conftest.$ac_ext <<_ACEOF
11306 /* end confdefs.h. */
11307
11308 int
11309 main ()
11310 {
11311 XOpenDisplay ("foo");
11312 ;
11313 return 0;
11314 }
11315 _ACEOF
11316 rm -f conftest.$ac_objext conftest$ac_exeext
11317 if { (ac_try="$ac_link"
11318 case "(($ac_try" in
11319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11320 *) ac_try_echo=$ac_try;;
11321 esac
11322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11323 $as_echo "$ac_try_echo") >&5
11324 (eval "$ac_link") 2>conftest.er1
11325 ac_status=$?
11326 grep -v '^ *+' conftest.er1 >conftest.err
11327 rm -f conftest.er1
11328 cat conftest.err >&5
11329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); } && {
11331 test -z "$ac_c_werror_flag" ||
11332 test ! -s conftest.err
11333 } && test -s conftest$ac_exeext && {
11334 test "$cross_compiling" = yes ||
11335 $as_test_x conftest$ac_exeext
11336 }; then
11337 xlinux_first_failure=no
11338 else
11339 $as_echo "$as_me: failed program was:" >&5
11340 sed 's/^/| /' conftest.$ac_ext >&5
11341
11342 xlinux_first_failure=yes
11343 fi
11344
11345 rm -rf conftest.dSYM
11346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11347 conftest$ac_exeext conftest.$ac_ext
11348 if test "${xlinux_first_failure}" = "yes"; then
11349 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11350 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
11351 OLD_CPPFLAGS="$CPPFLAGS"
11352 OLD_LIBS="$LIBS"
11353 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
11354 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
11355 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
11356 LIBS="$LIBS -b i486-linuxaout"
11357 cat >conftest.$ac_ext <<_ACEOF
11358 /* confdefs.h. */
11359 _ACEOF
11360 cat confdefs.h >>conftest.$ac_ext
11361 cat >>conftest.$ac_ext <<_ACEOF
11362 /* end confdefs.h. */
11363
11364 int
11365 main ()
11366 {
11367 XOpenDisplay ("foo");
11368 ;
11369 return 0;
11370 }
11371 _ACEOF
11372 rm -f conftest.$ac_objext conftest$ac_exeext
11373 if { (ac_try="$ac_link"
11374 case "(($ac_try" in
11375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11376 *) ac_try_echo=$ac_try;;
11377 esac
11378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11379 $as_echo "$ac_try_echo") >&5
11380 (eval "$ac_link") 2>conftest.er1
11381 ac_status=$?
11382 grep -v '^ *+' conftest.er1 >conftest.err
11383 rm -f conftest.er1
11384 cat conftest.err >&5
11385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); } && {
11387 test -z "$ac_c_werror_flag" ||
11388 test ! -s conftest.err
11389 } && test -s conftest$ac_exeext && {
11390 test "$cross_compiling" = yes ||
11391 $as_test_x conftest$ac_exeext
11392 }; then
11393 xlinux_second_failure=no
11394 else
11395 $as_echo "$as_me: failed program was:" >&5
11396 sed 's/^/| /' conftest.$ac_ext >&5
11397
11398 xlinux_second_failure=yes
11399 fi
11400
11401 rm -rf conftest.dSYM
11402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11403 conftest$ac_exeext conftest.$ac_ext
11404 if test "${xlinux_second_failure}" = "yes"; then
11405 # If we get the same failure with -b, there is no use adding -b.
11406 # So take it out. This plays safe.
11407 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11408 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11409 CPPFLAGS="$OLD_CPPFLAGS"
11410 LIBS="$OLD_LIBS"
11411 { $as_echo "$as_me:$LINENO: result: no" >&5
11412 $as_echo "no" >&6; }
11413 else
11414 { $as_echo "$as_me:$LINENO: result: yes" >&5
11415 $as_echo "yes" >&6; }
11416 fi
11417 else
11418 { $as_echo "$as_me:$LINENO: result: no" >&5
11419 $as_echo "no" >&6; }
11420 fi
11421 fi
11422
11423 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11424 # header files included from there.
11425 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11426 $as_echo_n "checking for Xkb... " >&6; }
11427 cat >conftest.$ac_ext <<_ACEOF
11428 /* confdefs.h. */
11429 _ACEOF
11430 cat confdefs.h >>conftest.$ac_ext
11431 cat >>conftest.$ac_ext <<_ACEOF
11432 /* end confdefs.h. */
11433 #include <X11/Xlib.h>
11434 #include <X11/XKBlib.h>
11435 int
11436 main ()
11437 {
11438 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11439 ;
11440 return 0;
11441 }
11442 _ACEOF
11443 rm -f conftest.$ac_objext conftest$ac_exeext
11444 if { (ac_try="$ac_link"
11445 case "(($ac_try" in
11446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11447 *) ac_try_echo=$ac_try;;
11448 esac
11449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11450 $as_echo "$ac_try_echo") >&5
11451 (eval "$ac_link") 2>conftest.er1
11452 ac_status=$?
11453 grep -v '^ *+' conftest.er1 >conftest.err
11454 rm -f conftest.er1
11455 cat conftest.err >&5
11456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); } && {
11458 test -z "$ac_c_werror_flag" ||
11459 test ! -s conftest.err
11460 } && test -s conftest$ac_exeext && {
11461 test "$cross_compiling" = yes ||
11462 $as_test_x conftest$ac_exeext
11463 }; then
11464 emacs_xkb=yes
11465 else
11466 $as_echo "$as_me: failed program was:" >&5
11467 sed 's/^/| /' conftest.$ac_ext >&5
11468
11469 emacs_xkb=no
11470 fi
11471
11472 rm -rf conftest.dSYM
11473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11474 conftest$ac_exeext conftest.$ac_ext
11475 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11476 $as_echo "$emacs_xkb" >&6; }
11477 if test $emacs_xkb = yes; then
11478
11479 cat >>confdefs.h <<\_ACEOF
11480 #define HAVE_XKBGETKEYBOARD 1
11481 _ACEOF
11482
11483 fi
11484
11485
11486
11487
11488
11489 for ac_func in XrmSetDatabase XScreenResourceString \
11490 XScreenNumberOfScreen XSetWMProtocols
11491 do
11492 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11493 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11494 $as_echo_n "checking for $ac_func... " >&6; }
11495 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11496 $as_echo_n "(cached) " >&6
11497 else
11498 cat >conftest.$ac_ext <<_ACEOF
11499 /* confdefs.h. */
11500 _ACEOF
11501 cat confdefs.h >>conftest.$ac_ext
11502 cat >>conftest.$ac_ext <<_ACEOF
11503 /* end confdefs.h. */
11504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11506 #define $ac_func innocuous_$ac_func
11507
11508 /* System header to define __stub macros and hopefully few prototypes,
11509 which can conflict with char $ac_func (); below.
11510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11511 <limits.h> exists even on freestanding compilers. */
11512
11513 #ifdef __STDC__
11514 # include <limits.h>
11515 #else
11516 # include <assert.h>
11517 #endif
11518
11519 #undef $ac_func
11520
11521 /* Override any GCC internal prototype to avoid an error.
11522 Use char because int might match the return type of a GCC
11523 builtin and then its argument prototype would still apply. */
11524 #ifdef __cplusplus
11525 extern "C"
11526 #endif
11527 char $ac_func ();
11528 /* The GNU C library defines this for functions which it implements
11529 to always fail with ENOSYS. Some functions are actually named
11530 something starting with __ and the normal name is an alias. */
11531 #if defined __stub_$ac_func || defined __stub___$ac_func
11532 choke me
11533 #endif
11534
11535 int
11536 main ()
11537 {
11538 return $ac_func ();
11539 ;
11540 return 0;
11541 }
11542 _ACEOF
11543 rm -f conftest.$ac_objext conftest$ac_exeext
11544 if { (ac_try="$ac_link"
11545 case "(($ac_try" in
11546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11547 *) ac_try_echo=$ac_try;;
11548 esac
11549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11550 $as_echo "$ac_try_echo") >&5
11551 (eval "$ac_link") 2>conftest.er1
11552 ac_status=$?
11553 grep -v '^ *+' conftest.er1 >conftest.err
11554 rm -f conftest.er1
11555 cat conftest.err >&5
11556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); } && {
11558 test -z "$ac_c_werror_flag" ||
11559 test ! -s conftest.err
11560 } && test -s conftest$ac_exeext && {
11561 test "$cross_compiling" = yes ||
11562 $as_test_x conftest$ac_exeext
11563 }; then
11564 eval "$as_ac_var=yes"
11565 else
11566 $as_echo "$as_me: failed program was:" >&5
11567 sed 's/^/| /' conftest.$ac_ext >&5
11568
11569 eval "$as_ac_var=no"
11570 fi
11571
11572 rm -rf conftest.dSYM
11573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11574 conftest$ac_exeext conftest.$ac_ext
11575 fi
11576 ac_res=`eval 'as_val=${'$as_ac_var'}
11577 $as_echo "$as_val"'`
11578 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11579 $as_echo "$ac_res" >&6; }
11580 if test `eval 'as_val=${'$as_ac_var'}
11581 $as_echo "$as_val"'` = yes; then
11582 cat >>confdefs.h <<_ACEOF
11583 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11584 _ACEOF
11585
11586 fi
11587 done
11588
11589 fi
11590
11591 if test "${window_system}" = "x11"; then
11592 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11593 $as_echo_n "checking X11 version 6... " >&6; }
11594 if test "${emacs_cv_x11_version_6+set}" = set; then
11595 $as_echo_n "(cached) " >&6
11596 else
11597 cat >conftest.$ac_ext <<_ACEOF
11598 /* confdefs.h. */
11599 _ACEOF
11600 cat confdefs.h >>conftest.$ac_ext
11601 cat >>conftest.$ac_ext <<_ACEOF
11602 /* end confdefs.h. */
11603 #include <X11/Xlib.h>
11604 int
11605 main ()
11606 {
11607 #if XlibSpecificationRelease < 6
11608 fail;
11609 #endif
11610
11611 ;
11612 return 0;
11613 }
11614 _ACEOF
11615 rm -f conftest.$ac_objext conftest$ac_exeext
11616 if { (ac_try="$ac_link"
11617 case "(($ac_try" in
11618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11619 *) ac_try_echo=$ac_try;;
11620 esac
11621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11622 $as_echo "$ac_try_echo") >&5
11623 (eval "$ac_link") 2>conftest.er1
11624 ac_status=$?
11625 grep -v '^ *+' conftest.er1 >conftest.err
11626 rm -f conftest.er1
11627 cat conftest.err >&5
11628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); } && {
11630 test -z "$ac_c_werror_flag" ||
11631 test ! -s conftest.err
11632 } && test -s conftest$ac_exeext && {
11633 test "$cross_compiling" = yes ||
11634 $as_test_x conftest$ac_exeext
11635 }; then
11636 emacs_cv_x11_version_6=yes
11637 else
11638 $as_echo "$as_me: failed program was:" >&5
11639 sed 's/^/| /' conftest.$ac_ext >&5
11640
11641 emacs_cv_x11_version_6=no
11642 fi
11643
11644 rm -rf conftest.dSYM
11645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11646 conftest$ac_exeext conftest.$ac_ext
11647 fi
11648
11649 if test $emacs_cv_x11_version_6 = yes; then
11650 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11651 $as_echo "6 or newer" >&6; }
11652
11653 cat >>confdefs.h <<\_ACEOF
11654 #define HAVE_X11R6 1
11655 _ACEOF
11656
11657 else
11658 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11659 $as_echo "before 6" >&6; }
11660 fi
11661 fi
11662
11663
11664 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11665 HAVE_RSVG=no
11666 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
11667 if test "${with_rsvg}" != "no"; then
11668 RSVG_REQUIRED=2.11.0
11669 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11670
11671
11672 succeeded=no
11673
11674 # Extract the first word of "pkg-config", so it can be a program name with args.
11675 set dummy pkg-config; ac_word=$2
11676 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11677 $as_echo_n "checking for $ac_word... " >&6; }
11678 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11679 $as_echo_n "(cached) " >&6
11680 else
11681 case $PKG_CONFIG in
11682 [\\/]* | ?:[\\/]*)
11683 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11684 ;;
11685 *)
11686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11687 for as_dir in $PATH
11688 do
11689 IFS=$as_save_IFS
11690 test -z "$as_dir" && as_dir=.
11691 for ac_exec_ext in '' $ac_executable_extensions; do
11692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11693 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11694 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11695 break 2
11696 fi
11697 done
11698 done
11699 IFS=$as_save_IFS
11700
11701 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11702 ;;
11703 esac
11704 fi
11705 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11706 if test -n "$PKG_CONFIG"; then
11707 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11708 $as_echo "$PKG_CONFIG" >&6; }
11709 else
11710 { $as_echo "$as_me:$LINENO: result: no" >&5
11711 $as_echo "no" >&6; }
11712 fi
11713
11714
11715
11716 if test "$PKG_CONFIG" = "no" ; then
11717 :
11718 else
11719 PKG_CONFIG_MIN_VERSION=0.9.0
11720 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11721 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11722 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11723
11724 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11725 { $as_echo "$as_me:$LINENO: result: yes" >&5
11726 $as_echo "yes" >&6; }
11727 succeeded=yes
11728
11729 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11730 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11731 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11732 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11733 $as_echo "$RSVG_CFLAGS" >&6; }
11734
11735 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11736 $as_echo_n "checking RSVG_LIBS... " >&6; }
11737 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11738 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11739 $as_echo "$RSVG_LIBS" >&6; }
11740 else
11741 { $as_echo "$as_me:$LINENO: result: no" >&5
11742 $as_echo "no" >&6; }
11743 RSVG_CFLAGS=""
11744 RSVG_LIBS=""
11745 ## If we have a custom action on failure, don't print errors, but
11746 ## do set a variable so people can do so.
11747 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11748
11749 fi
11750
11751
11752
11753 else
11754 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11755 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11756 fi
11757 fi
11758
11759 if test $succeeded = yes; then
11760 :
11761 else
11762 :
11763 fi
11764
11765
11766
11767
11768 if test ".${RSVG_CFLAGS}" != "."; then
11769 HAVE_RSVG=yes
11770
11771 cat >>confdefs.h <<\_ACEOF
11772 #define HAVE_RSVG 1
11773 _ACEOF
11774
11775 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11776 LIBS="$RSVG_LIBS $LIBS"
11777 fi
11778 fi
11779 fi
11780
11781
11782 HAVE_GTK=no
11783 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11784 GLIB_REQUIRED=2.6
11785 GTK_REQUIRED=2.6
11786 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11787
11788
11789 succeeded=no
11790
11791 # Extract the first word of "pkg-config", so it can be a program name with args.
11792 set dummy pkg-config; ac_word=$2
11793 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11794 $as_echo_n "checking for $ac_word... " >&6; }
11795 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11796 $as_echo_n "(cached) " >&6
11797 else
11798 case $PKG_CONFIG in
11799 [\\/]* | ?:[\\/]*)
11800 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11801 ;;
11802 *)
11803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11804 for as_dir in $PATH
11805 do
11806 IFS=$as_save_IFS
11807 test -z "$as_dir" && as_dir=.
11808 for ac_exec_ext in '' $ac_executable_extensions; do
11809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11810 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11811 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11812 break 2
11813 fi
11814 done
11815 done
11816 IFS=$as_save_IFS
11817
11818 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11819 ;;
11820 esac
11821 fi
11822 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11823 if test -n "$PKG_CONFIG"; then
11824 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11825 $as_echo "$PKG_CONFIG" >&6; }
11826 else
11827 { $as_echo "$as_me:$LINENO: result: no" >&5
11828 $as_echo "no" >&6; }
11829 fi
11830
11831
11832
11833 if test "$PKG_CONFIG" = "no" ; then
11834 pkg_check_gtk=no
11835 else
11836 PKG_CONFIG_MIN_VERSION=0.9.0
11837 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11838 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11839 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11840
11841 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11842 { $as_echo "$as_me:$LINENO: result: yes" >&5
11843 $as_echo "yes" >&6; }
11844 succeeded=yes
11845
11846 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11847 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11848 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11849 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11850 $as_echo "$GTK_CFLAGS" >&6; }
11851
11852 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11853 $as_echo_n "checking GTK_LIBS... " >&6; }
11854 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11855 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11856 $as_echo "$GTK_LIBS" >&6; }
11857 else
11858 { $as_echo "$as_me:$LINENO: result: no" >&5
11859 $as_echo "no" >&6; }
11860 GTK_CFLAGS=""
11861 GTK_LIBS=""
11862 ## If we have a custom action on failure, don't print errors, but
11863 ## do set a variable so people can do so.
11864 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11865
11866 fi
11867
11868
11869
11870 else
11871 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11872 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11873 fi
11874 fi
11875
11876 if test $succeeded = yes; then
11877 pkg_check_gtk=yes
11878 else
11879 pkg_check_gtk=no
11880 fi
11881
11882 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11883 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11884 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11885 { (exit 1); exit 1; }; }
11886 fi
11887 fi
11888
11889
11890 GTK_OBJ=
11891 if test x"$pkg_check_gtk" = xyes; then
11892
11893
11894
11895 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11896 CFLAGS="$CFLAGS $GTK_CFLAGS"
11897 LIBS="$GTK_LIBS $LIBS"
11898 GTK_COMPILES=no
11899
11900 for ac_func in gtk_main
11901 do
11902 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11903 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11904 $as_echo_n "checking for $ac_func... " >&6; }
11905 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11906 $as_echo_n "(cached) " >&6
11907 else
11908 cat >conftest.$ac_ext <<_ACEOF
11909 /* confdefs.h. */
11910 _ACEOF
11911 cat confdefs.h >>conftest.$ac_ext
11912 cat >>conftest.$ac_ext <<_ACEOF
11913 /* end confdefs.h. */
11914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11916 #define $ac_func innocuous_$ac_func
11917
11918 /* System header to define __stub macros and hopefully few prototypes,
11919 which can conflict with char $ac_func (); below.
11920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11921 <limits.h> exists even on freestanding compilers. */
11922
11923 #ifdef __STDC__
11924 # include <limits.h>
11925 #else
11926 # include <assert.h>
11927 #endif
11928
11929 #undef $ac_func
11930
11931 /* Override any GCC internal prototype to avoid an error.
11932 Use char because int might match the return type of a GCC
11933 builtin and then its argument prototype would still apply. */
11934 #ifdef __cplusplus
11935 extern "C"
11936 #endif
11937 char $ac_func ();
11938 /* The GNU C library defines this for functions which it implements
11939 to always fail with ENOSYS. Some functions are actually named
11940 something starting with __ and the normal name is an alias. */
11941 #if defined __stub_$ac_func || defined __stub___$ac_func
11942 choke me
11943 #endif
11944
11945 int
11946 main ()
11947 {
11948 return $ac_func ();
11949 ;
11950 return 0;
11951 }
11952 _ACEOF
11953 rm -f conftest.$ac_objext conftest$ac_exeext
11954 if { (ac_try="$ac_link"
11955 case "(($ac_try" in
11956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11957 *) ac_try_echo=$ac_try;;
11958 esac
11959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11960 $as_echo "$ac_try_echo") >&5
11961 (eval "$ac_link") 2>conftest.er1
11962 ac_status=$?
11963 grep -v '^ *+' conftest.er1 >conftest.err
11964 rm -f conftest.er1
11965 cat conftest.err >&5
11966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); } && {
11968 test -z "$ac_c_werror_flag" ||
11969 test ! -s conftest.err
11970 } && test -s conftest$ac_exeext && {
11971 test "$cross_compiling" = yes ||
11972 $as_test_x conftest$ac_exeext
11973 }; then
11974 eval "$as_ac_var=yes"
11975 else
11976 $as_echo "$as_me: failed program was:" >&5
11977 sed 's/^/| /' conftest.$ac_ext >&5
11978
11979 eval "$as_ac_var=no"
11980 fi
11981
11982 rm -rf conftest.dSYM
11983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11984 conftest$ac_exeext conftest.$ac_ext
11985 fi
11986 ac_res=`eval 'as_val=${'$as_ac_var'}
11987 $as_echo "$as_val"'`
11988 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11989 $as_echo "$ac_res" >&6; }
11990 if test `eval 'as_val=${'$as_ac_var'}
11991 $as_echo "$as_val"'` = yes; then
11992 cat >>confdefs.h <<_ACEOF
11993 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11994 _ACEOF
11995 GTK_COMPILES=yes
11996 fi
11997 done
11998
11999 if test "${GTK_COMPILES}" != "yes"; then
12000 if test "$USE_X_TOOLKIT" != "maybe"; then
12001 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
12002 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
12003 { (exit 1); exit 1; }; };
12004 fi
12005 else
12006 HAVE_GTK=yes
12007
12008 cat >>confdefs.h <<\_ACEOF
12009 #define USE_GTK 1
12010 _ACEOF
12011
12012 GTK_OBJ=gtkutil.o
12013 USE_X_TOOLKIT=none
12014 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
12015 :
12016 else
12017 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
12018 closing open displays. This is no problem if you just use
12019 one display, but if you use more than one and close one of them
12020 Emacs may crash." >&5
12021 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
12022 closing open displays. This is no problem if you just use
12023 one display, but if you use more than one and close one of them
12024 Emacs may crash." >&2;}
12025 sleep 3
12026 fi
12027 fi
12028
12029 fi
12030
12031
12032
12033 if test "${HAVE_GTK}" = "yes"; then
12034
12035 if test "$with_toolkit_scroll_bars" != no; then
12036 with_toolkit_scroll_bars=yes
12037 fi
12038
12039 HAVE_GTK_MULTIDISPLAY=no
12040
12041 for ac_func in gdk_display_open
12042 do
12043 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12044 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12045 $as_echo_n "checking for $ac_func... " >&6; }
12046 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12047 $as_echo_n "(cached) " >&6
12048 else
12049 cat >conftest.$ac_ext <<_ACEOF
12050 /* confdefs.h. */
12051 _ACEOF
12052 cat confdefs.h >>conftest.$ac_ext
12053 cat >>conftest.$ac_ext <<_ACEOF
12054 /* end confdefs.h. */
12055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12057 #define $ac_func innocuous_$ac_func
12058
12059 /* System header to define __stub macros and hopefully few prototypes,
12060 which can conflict with char $ac_func (); below.
12061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12062 <limits.h> exists even on freestanding compilers. */
12063
12064 #ifdef __STDC__
12065 # include <limits.h>
12066 #else
12067 # include <assert.h>
12068 #endif
12069
12070 #undef $ac_func
12071
12072 /* Override any GCC internal prototype to avoid an error.
12073 Use char because int might match the return type of a GCC
12074 builtin and then its argument prototype would still apply. */
12075 #ifdef __cplusplus
12076 extern "C"
12077 #endif
12078 char $ac_func ();
12079 /* The GNU C library defines this for functions which it implements
12080 to always fail with ENOSYS. Some functions are actually named
12081 something starting with __ and the normal name is an alias. */
12082 #if defined __stub_$ac_func || defined __stub___$ac_func
12083 choke me
12084 #endif
12085
12086 int
12087 main ()
12088 {
12089 return $ac_func ();
12090 ;
12091 return 0;
12092 }
12093 _ACEOF
12094 rm -f conftest.$ac_objext conftest$ac_exeext
12095 if { (ac_try="$ac_link"
12096 case "(($ac_try" in
12097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12098 *) ac_try_echo=$ac_try;;
12099 esac
12100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12101 $as_echo "$ac_try_echo") >&5
12102 (eval "$ac_link") 2>conftest.er1
12103 ac_status=$?
12104 grep -v '^ *+' conftest.er1 >conftest.err
12105 rm -f conftest.er1
12106 cat conftest.err >&5
12107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); } && {
12109 test -z "$ac_c_werror_flag" ||
12110 test ! -s conftest.err
12111 } && test -s conftest$ac_exeext && {
12112 test "$cross_compiling" = yes ||
12113 $as_test_x conftest$ac_exeext
12114 }; then
12115 eval "$as_ac_var=yes"
12116 else
12117 $as_echo "$as_me: failed program was:" >&5
12118 sed 's/^/| /' conftest.$ac_ext >&5
12119
12120 eval "$as_ac_var=no"
12121 fi
12122
12123 rm -rf conftest.dSYM
12124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12125 conftest$ac_exeext conftest.$ac_ext
12126 fi
12127 ac_res=`eval 'as_val=${'$as_ac_var'}
12128 $as_echo "$as_val"'`
12129 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12130 $as_echo "$ac_res" >&6; }
12131 if test `eval 'as_val=${'$as_ac_var'}
12132 $as_echo "$as_val"'` = yes; then
12133 cat >>confdefs.h <<_ACEOF
12134 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12135 _ACEOF
12136 HAVE_GTK_MULTIDISPLAY=yes
12137 fi
12138 done
12139
12140 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
12141
12142 cat >>confdefs.h <<\_ACEOF
12143 #define HAVE_GTK_MULTIDISPLAY 1
12144 _ACEOF
12145
12146 fi
12147
12148 HAVE_GTK_FILE_SELECTION=no
12149 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
12150 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
12151 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
12152 $as_echo_n "(cached) " >&6
12153 else
12154 cat >conftest.$ac_ext <<_ACEOF
12155 /* confdefs.h. */
12156 _ACEOF
12157 cat confdefs.h >>conftest.$ac_ext
12158 cat >>conftest.$ac_ext <<_ACEOF
12159 /* end confdefs.h. */
12160 $ac_includes_default
12161 #include <gtk/gtk.h>
12162
12163 int
12164 main ()
12165 {
12166 #ifndef GTK_TYPE_FILE_SELECTION
12167 (void) GTK_TYPE_FILE_SELECTION;
12168 #endif
12169
12170 ;
12171 return 0;
12172 }
12173 _ACEOF
12174 rm -f conftest.$ac_objext
12175 if { (ac_try="$ac_compile"
12176 case "(($ac_try" in
12177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12178 *) ac_try_echo=$ac_try;;
12179 esac
12180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12181 $as_echo "$ac_try_echo") >&5
12182 (eval "$ac_compile") 2>conftest.er1
12183 ac_status=$?
12184 grep -v '^ *+' conftest.er1 >conftest.err
12185 rm -f conftest.er1
12186 cat conftest.err >&5
12187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); } && {
12189 test -z "$ac_c_werror_flag" ||
12190 test ! -s conftest.err
12191 } && test -s conftest.$ac_objext; then
12192 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
12193 else
12194 $as_echo "$as_me: failed program was:" >&5
12195 sed 's/^/| /' conftest.$ac_ext >&5
12196
12197 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
12198 fi
12199
12200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12201 fi
12202 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
12203 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
12204 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
12205 HAVE_GTK_FILE_SELECTION=yes
12206 else
12207 HAVE_GTK_FILE_SELECTION=no
12208 fi
12209
12210 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
12211
12212 for ac_func in gtk_file_selection_new
12213 do
12214 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12215 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12216 $as_echo_n "checking for $ac_func... " >&6; }
12217 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12218 $as_echo_n "(cached) " >&6
12219 else
12220 cat >conftest.$ac_ext <<_ACEOF
12221 /* confdefs.h. */
12222 _ACEOF
12223 cat confdefs.h >>conftest.$ac_ext
12224 cat >>conftest.$ac_ext <<_ACEOF
12225 /* end confdefs.h. */
12226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12228 #define $ac_func innocuous_$ac_func
12229
12230 /* System header to define __stub macros and hopefully few prototypes,
12231 which can conflict with char $ac_func (); below.
12232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12233 <limits.h> exists even on freestanding compilers. */
12234
12235 #ifdef __STDC__
12236 # include <limits.h>
12237 #else
12238 # include <assert.h>
12239 #endif
12240
12241 #undef $ac_func
12242
12243 /* Override any GCC internal prototype to avoid an error.
12244 Use char because int might match the return type of a GCC
12245 builtin and then its argument prototype would still apply. */
12246 #ifdef __cplusplus
12247 extern "C"
12248 #endif
12249 char $ac_func ();
12250 /* The GNU C library defines this for functions which it implements
12251 to always fail with ENOSYS. Some functions are actually named
12252 something starting with __ and the normal name is an alias. */
12253 #if defined __stub_$ac_func || defined __stub___$ac_func
12254 choke me
12255 #endif
12256
12257 int
12258 main ()
12259 {
12260 return $ac_func ();
12261 ;
12262 return 0;
12263 }
12264 _ACEOF
12265 rm -f conftest.$ac_objext conftest$ac_exeext
12266 if { (ac_try="$ac_link"
12267 case "(($ac_try" in
12268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12269 *) ac_try_echo=$ac_try;;
12270 esac
12271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12272 $as_echo "$ac_try_echo") >&5
12273 (eval "$ac_link") 2>conftest.er1
12274 ac_status=$?
12275 grep -v '^ *+' conftest.er1 >conftest.err
12276 rm -f conftest.er1
12277 cat conftest.err >&5
12278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); } && {
12280 test -z "$ac_c_werror_flag" ||
12281 test ! -s conftest.err
12282 } && test -s conftest$ac_exeext && {
12283 test "$cross_compiling" = yes ||
12284 $as_test_x conftest$ac_exeext
12285 }; then
12286 eval "$as_ac_var=yes"
12287 else
12288 $as_echo "$as_me: failed program was:" >&5
12289 sed 's/^/| /' conftest.$ac_ext >&5
12290
12291 eval "$as_ac_var=no"
12292 fi
12293
12294 rm -rf conftest.dSYM
12295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12296 conftest$ac_exeext conftest.$ac_ext
12297 fi
12298 ac_res=`eval 'as_val=${'$as_ac_var'}
12299 $as_echo "$as_val"'`
12300 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12301 $as_echo "$ac_res" >&6; }
12302 if test `eval 'as_val=${'$as_ac_var'}
12303 $as_echo "$as_val"'` = yes; then
12304 cat >>confdefs.h <<_ACEOF
12305 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12306 _ACEOF
12307 HAVE_GTK_FILE_SELECTION=yes
12308 else
12309 HAVE_GTK_FILE_SELECTION=no
12310 fi
12311 done
12312
12313 fi
12314
12315 HAVE_GTK_FILE_CHOOSER=no
12316 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12317 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12318 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12319 $as_echo_n "(cached) " >&6
12320 else
12321 cat >conftest.$ac_ext <<_ACEOF
12322 /* confdefs.h. */
12323 _ACEOF
12324 cat confdefs.h >>conftest.$ac_ext
12325 cat >>conftest.$ac_ext <<_ACEOF
12326 /* end confdefs.h. */
12327 $ac_includes_default
12328 #include <gtk/gtk.h>
12329
12330 int
12331 main ()
12332 {
12333 #ifndef GTK_TYPE_FILE_CHOOSER
12334 (void) GTK_TYPE_FILE_CHOOSER;
12335 #endif
12336
12337 ;
12338 return 0;
12339 }
12340 _ACEOF
12341 rm -f conftest.$ac_objext
12342 if { (ac_try="$ac_compile"
12343 case "(($ac_try" in
12344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12345 *) ac_try_echo=$ac_try;;
12346 esac
12347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12348 $as_echo "$ac_try_echo") >&5
12349 (eval "$ac_compile") 2>conftest.er1
12350 ac_status=$?
12351 grep -v '^ *+' conftest.er1 >conftest.err
12352 rm -f conftest.er1
12353 cat conftest.err >&5
12354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); } && {
12356 test -z "$ac_c_werror_flag" ||
12357 test ! -s conftest.err
12358 } && test -s conftest.$ac_objext; then
12359 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12360 else
12361 $as_echo "$as_me: failed program was:" >&5
12362 sed 's/^/| /' conftest.$ac_ext >&5
12363
12364 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12365 fi
12366
12367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12368 fi
12369 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12370 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12371 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
12372 HAVE_GTK_FILE_CHOOSER=yes
12373 else
12374 HAVE_GTK_FILE_CHOOSER=no
12375 fi
12376
12377 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12378
12379 for ac_func in gtk_file_chooser_dialog_new
12380 do
12381 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12382 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12383 $as_echo_n "checking for $ac_func... " >&6; }
12384 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12385 $as_echo_n "(cached) " >&6
12386 else
12387 cat >conftest.$ac_ext <<_ACEOF
12388 /* confdefs.h. */
12389 _ACEOF
12390 cat confdefs.h >>conftest.$ac_ext
12391 cat >>conftest.$ac_ext <<_ACEOF
12392 /* end confdefs.h. */
12393 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12395 #define $ac_func innocuous_$ac_func
12396
12397 /* System header to define __stub macros and hopefully few prototypes,
12398 which can conflict with char $ac_func (); below.
12399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12400 <limits.h> exists even on freestanding compilers. */
12401
12402 #ifdef __STDC__
12403 # include <limits.h>
12404 #else
12405 # include <assert.h>
12406 #endif
12407
12408 #undef $ac_func
12409
12410 /* Override any GCC internal prototype to avoid an error.
12411 Use char because int might match the return type of a GCC
12412 builtin and then its argument prototype would still apply. */
12413 #ifdef __cplusplus
12414 extern "C"
12415 #endif
12416 char $ac_func ();
12417 /* The GNU C library defines this for functions which it implements
12418 to always fail with ENOSYS. Some functions are actually named
12419 something starting with __ and the normal name is an alias. */
12420 #if defined __stub_$ac_func || defined __stub___$ac_func
12421 choke me
12422 #endif
12423
12424 int
12425 main ()
12426 {
12427 return $ac_func ();
12428 ;
12429 return 0;
12430 }
12431 _ACEOF
12432 rm -f conftest.$ac_objext conftest$ac_exeext
12433 if { (ac_try="$ac_link"
12434 case "(($ac_try" in
12435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12436 *) ac_try_echo=$ac_try;;
12437 esac
12438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12439 $as_echo "$ac_try_echo") >&5
12440 (eval "$ac_link") 2>conftest.er1
12441 ac_status=$?
12442 grep -v '^ *+' conftest.er1 >conftest.err
12443 rm -f conftest.er1
12444 cat conftest.err >&5
12445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); } && {
12447 test -z "$ac_c_werror_flag" ||
12448 test ! -s conftest.err
12449 } && test -s conftest$ac_exeext && {
12450 test "$cross_compiling" = yes ||
12451 $as_test_x conftest$ac_exeext
12452 }; then
12453 eval "$as_ac_var=yes"
12454 else
12455 $as_echo "$as_me: failed program was:" >&5
12456 sed 's/^/| /' conftest.$ac_ext >&5
12457
12458 eval "$as_ac_var=no"
12459 fi
12460
12461 rm -rf conftest.dSYM
12462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12463 conftest$ac_exeext conftest.$ac_ext
12464 fi
12465 ac_res=`eval 'as_val=${'$as_ac_var'}
12466 $as_echo "$as_val"'`
12467 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12468 $as_echo "$ac_res" >&6; }
12469 if test `eval 'as_val=${'$as_ac_var'}
12470 $as_echo "$as_val"'` = yes; then
12471 cat >>confdefs.h <<_ACEOF
12472 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12473 _ACEOF
12474 HAVE_GTK_FILE_CHOOSER=yes
12475 else
12476 HAVE_GTK_FILE_CHOOSER=no
12477 fi
12478 done
12479
12480 fi
12481
12482 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12483 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12484
12485 cat >>confdefs.h <<\_ACEOF
12486 #define HAVE_GTK_FILE_BOTH 1
12487 _ACEOF
12488
12489 fi
12490
12491 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12492 HAVE_GTK_AND_PTHREAD=no
12493
12494 for ac_header in pthread.h
12495 do
12496 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12498 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12499 $as_echo_n "checking for $ac_header... " >&6; }
12500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12501 $as_echo_n "(cached) " >&6
12502 fi
12503 ac_res=`eval 'as_val=${'$as_ac_Header'}
12504 $as_echo "$as_val"'`
12505 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12506 $as_echo "$ac_res" >&6; }
12507 else
12508 # Is the header compilable?
12509 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12510 $as_echo_n "checking $ac_header usability... " >&6; }
12511 cat >conftest.$ac_ext <<_ACEOF
12512 /* confdefs.h. */
12513 _ACEOF
12514 cat confdefs.h >>conftest.$ac_ext
12515 cat >>conftest.$ac_ext <<_ACEOF
12516 /* end confdefs.h. */
12517 $ac_includes_default
12518 #include <$ac_header>
12519 _ACEOF
12520 rm -f conftest.$ac_objext
12521 if { (ac_try="$ac_compile"
12522 case "(($ac_try" in
12523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12524 *) ac_try_echo=$ac_try;;
12525 esac
12526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12527 $as_echo "$ac_try_echo") >&5
12528 (eval "$ac_compile") 2>conftest.er1
12529 ac_status=$?
12530 grep -v '^ *+' conftest.er1 >conftest.err
12531 rm -f conftest.er1
12532 cat conftest.err >&5
12533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); } && {
12535 test -z "$ac_c_werror_flag" ||
12536 test ! -s conftest.err
12537 } && test -s conftest.$ac_objext; then
12538 ac_header_compiler=yes
12539 else
12540 $as_echo "$as_me: failed program was:" >&5
12541 sed 's/^/| /' conftest.$ac_ext >&5
12542
12543 ac_header_compiler=no
12544 fi
12545
12546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12547 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12548 $as_echo "$ac_header_compiler" >&6; }
12549
12550 # Is the header present?
12551 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12552 $as_echo_n "checking $ac_header presence... " >&6; }
12553 cat >conftest.$ac_ext <<_ACEOF
12554 /* confdefs.h. */
12555 _ACEOF
12556 cat confdefs.h >>conftest.$ac_ext
12557 cat >>conftest.$ac_ext <<_ACEOF
12558 /* end confdefs.h. */
12559 #include <$ac_header>
12560 _ACEOF
12561 if { (ac_try="$ac_cpp conftest.$ac_ext"
12562 case "(($ac_try" in
12563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12564 *) ac_try_echo=$ac_try;;
12565 esac
12566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12567 $as_echo "$ac_try_echo") >&5
12568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12569 ac_status=$?
12570 grep -v '^ *+' conftest.er1 >conftest.err
12571 rm -f conftest.er1
12572 cat conftest.err >&5
12573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); } >/dev/null && {
12575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12576 test ! -s conftest.err
12577 }; then
12578 ac_header_preproc=yes
12579 else
12580 $as_echo "$as_me: failed program was:" >&5
12581 sed 's/^/| /' conftest.$ac_ext >&5
12582
12583 ac_header_preproc=no
12584 fi
12585
12586 rm -f conftest.err conftest.$ac_ext
12587 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12588 $as_echo "$ac_header_preproc" >&6; }
12589
12590 # So? What about this header?
12591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12592 yes:no: )
12593 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12594 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12595 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12596 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12597 ac_header_preproc=yes
12598 ;;
12599 no:yes:* )
12600 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12601 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12603 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12605 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12607 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12608 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12609 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12610 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12611 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12612
12613 ;;
12614 esac
12615 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12616 $as_echo_n "checking for $ac_header... " >&6; }
12617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12618 $as_echo_n "(cached) " >&6
12619 else
12620 eval "$as_ac_Header=\$ac_header_preproc"
12621 fi
12622 ac_res=`eval 'as_val=${'$as_ac_Header'}
12623 $as_echo "$as_val"'`
12624 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12625 $as_echo "$ac_res" >&6; }
12626
12627 fi
12628 if test `eval 'as_val=${'$as_ac_Header'}
12629 $as_echo "$as_val"'` = yes; then
12630 cat >>confdefs.h <<_ACEOF
12631 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12632 _ACEOF
12633
12634 fi
12635
12636 done
12637
12638 if test "$ac_cv_header_pthread_h"; then
12639 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12640 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12641 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12642 $as_echo_n "(cached) " >&6
12643 else
12644 ac_check_lib_save_LIBS=$LIBS
12645 LIBS="-lpthread $LIBS"
12646 cat >conftest.$ac_ext <<_ACEOF
12647 /* confdefs.h. */
12648 _ACEOF
12649 cat confdefs.h >>conftest.$ac_ext
12650 cat >>conftest.$ac_ext <<_ACEOF
12651 /* end confdefs.h. */
12652
12653 /* Override any GCC internal prototype to avoid an error.
12654 Use char because int might match the return type of a GCC
12655 builtin and then its argument prototype would still apply. */
12656 #ifdef __cplusplus
12657 extern "C"
12658 #endif
12659 char pthread_self ();
12660 int
12661 main ()
12662 {
12663 return pthread_self ();
12664 ;
12665 return 0;
12666 }
12667 _ACEOF
12668 rm -f conftest.$ac_objext conftest$ac_exeext
12669 if { (ac_try="$ac_link"
12670 case "(($ac_try" in
12671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12672 *) ac_try_echo=$ac_try;;
12673 esac
12674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12675 $as_echo "$ac_try_echo") >&5
12676 (eval "$ac_link") 2>conftest.er1
12677 ac_status=$?
12678 grep -v '^ *+' conftest.er1 >conftest.err
12679 rm -f conftest.er1
12680 cat conftest.err >&5
12681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); } && {
12683 test -z "$ac_c_werror_flag" ||
12684 test ! -s conftest.err
12685 } && test -s conftest$ac_exeext && {
12686 test "$cross_compiling" = yes ||
12687 $as_test_x conftest$ac_exeext
12688 }; then
12689 ac_cv_lib_pthread_pthread_self=yes
12690 else
12691 $as_echo "$as_me: failed program was:" >&5
12692 sed 's/^/| /' conftest.$ac_ext >&5
12693
12694 ac_cv_lib_pthread_pthread_self=no
12695 fi
12696
12697 rm -rf conftest.dSYM
12698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12699 conftest$ac_exeext conftest.$ac_ext
12700 LIBS=$ac_check_lib_save_LIBS
12701 fi
12702 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12703 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12704 if test $ac_cv_lib_pthread_pthread_self = yes; then
12705 HAVE_GTK_AND_PTHREAD=yes
12706 fi
12707
12708 fi
12709 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12710 case "${canonical}" in
12711 *-hpux*) ;;
12712 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12713 esac
12714
12715 cat >>confdefs.h <<\_ACEOF
12716 #define HAVE_GTK_AND_PTHREAD 1
12717 _ACEOF
12718
12719 fi
12720 fi
12721 fi
12722
12723 HAVE_DBUS=no
12724 DBUS_OBJ=
12725 if test "${with_dbus}" = "yes"; then
12726
12727 succeeded=no
12728
12729 # Extract the first word of "pkg-config", so it can be a program name with args.
12730 set dummy pkg-config; ac_word=$2
12731 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12732 $as_echo_n "checking for $ac_word... " >&6; }
12733 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12734 $as_echo_n "(cached) " >&6
12735 else
12736 case $PKG_CONFIG in
12737 [\\/]* | ?:[\\/]*)
12738 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12739 ;;
12740 *)
12741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12742 for as_dir in $PATH
12743 do
12744 IFS=$as_save_IFS
12745 test -z "$as_dir" && as_dir=.
12746 for ac_exec_ext in '' $ac_executable_extensions; do
12747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12748 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12749 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12750 break 2
12751 fi
12752 done
12753 done
12754 IFS=$as_save_IFS
12755
12756 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12757 ;;
12758 esac
12759 fi
12760 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12761 if test -n "$PKG_CONFIG"; then
12762 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12763 $as_echo "$PKG_CONFIG" >&6; }
12764 else
12765 { $as_echo "$as_me:$LINENO: result: no" >&5
12766 $as_echo "no" >&6; }
12767 fi
12768
12769
12770
12771 if test "$PKG_CONFIG" = "no" ; then
12772 HAVE_DBUS=no
12773 else
12774 PKG_CONFIG_MIN_VERSION=0.9.0
12775 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12776 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12777 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12778
12779 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12780 { $as_echo "$as_me:$LINENO: result: yes" >&5
12781 $as_echo "yes" >&6; }
12782 succeeded=yes
12783
12784 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12785 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12786 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12787 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12788 $as_echo "$DBUS_CFLAGS" >&6; }
12789
12790 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12791 $as_echo_n "checking DBUS_LIBS... " >&6; }
12792 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12793 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12794 $as_echo "$DBUS_LIBS" >&6; }
12795 else
12796 { $as_echo "$as_me:$LINENO: result: no" >&5
12797 $as_echo "no" >&6; }
12798 DBUS_CFLAGS=""
12799 DBUS_LIBS=""
12800 ## If we have a custom action on failure, don't print errors, but
12801 ## do set a variable so people can do so.
12802 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12803
12804 fi
12805
12806
12807
12808 else
12809 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12810 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12811 fi
12812 fi
12813
12814 if test $succeeded = yes; then
12815 HAVE_DBUS=yes
12816 else
12817 HAVE_DBUS=no
12818 fi
12819
12820 if test "$HAVE_DBUS" = yes; then
12821 LIBS="$LIBS $DBUS_LIBS"
12822
12823 cat >>confdefs.h <<\_ACEOF
12824 #define HAVE_DBUS 1
12825 _ACEOF
12826
12827
12828 for ac_func in dbus_watch_get_unix_fd
12829 do
12830 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12831 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12832 $as_echo_n "checking for $ac_func... " >&6; }
12833 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12834 $as_echo_n "(cached) " >&6
12835 else
12836 cat >conftest.$ac_ext <<_ACEOF
12837 /* confdefs.h. */
12838 _ACEOF
12839 cat confdefs.h >>conftest.$ac_ext
12840 cat >>conftest.$ac_ext <<_ACEOF
12841 /* end confdefs.h. */
12842 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12844 #define $ac_func innocuous_$ac_func
12845
12846 /* System header to define __stub macros and hopefully few prototypes,
12847 which can conflict with char $ac_func (); below.
12848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12849 <limits.h> exists even on freestanding compilers. */
12850
12851 #ifdef __STDC__
12852 # include <limits.h>
12853 #else
12854 # include <assert.h>
12855 #endif
12856
12857 #undef $ac_func
12858
12859 /* Override any GCC internal prototype to avoid an error.
12860 Use char because int might match the return type of a GCC
12861 builtin and then its argument prototype would still apply. */
12862 #ifdef __cplusplus
12863 extern "C"
12864 #endif
12865 char $ac_func ();
12866 /* The GNU C library defines this for functions which it implements
12867 to always fail with ENOSYS. Some functions are actually named
12868 something starting with __ and the normal name is an alias. */
12869 #if defined __stub_$ac_func || defined __stub___$ac_func
12870 choke me
12871 #endif
12872
12873 int
12874 main ()
12875 {
12876 return $ac_func ();
12877 ;
12878 return 0;
12879 }
12880 _ACEOF
12881 rm -f conftest.$ac_objext conftest$ac_exeext
12882 if { (ac_try="$ac_link"
12883 case "(($ac_try" in
12884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12885 *) ac_try_echo=$ac_try;;
12886 esac
12887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12888 $as_echo "$ac_try_echo") >&5
12889 (eval "$ac_link") 2>conftest.er1
12890 ac_status=$?
12891 grep -v '^ *+' conftest.er1 >conftest.err
12892 rm -f conftest.er1
12893 cat conftest.err >&5
12894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); } && {
12896 test -z "$ac_c_werror_flag" ||
12897 test ! -s conftest.err
12898 } && test -s conftest$ac_exeext && {
12899 test "$cross_compiling" = yes ||
12900 $as_test_x conftest$ac_exeext
12901 }; then
12902 eval "$as_ac_var=yes"
12903 else
12904 $as_echo "$as_me: failed program was:" >&5
12905 sed 's/^/| /' conftest.$ac_ext >&5
12906
12907 eval "$as_ac_var=no"
12908 fi
12909
12910 rm -rf conftest.dSYM
12911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12912 conftest$ac_exeext conftest.$ac_ext
12913 fi
12914 ac_res=`eval 'as_val=${'$as_ac_var'}
12915 $as_echo "$as_val"'`
12916 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12917 $as_echo "$ac_res" >&6; }
12918 if test `eval 'as_val=${'$as_ac_var'}
12919 $as_echo "$as_val"'` = yes; then
12920 cat >>confdefs.h <<_ACEOF
12921 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12922 _ACEOF
12923
12924 fi
12925 done
12926
12927 DBUS_OBJ=dbusbind.o
12928 fi
12929 fi
12930
12931
12932 HAVE_GCONF=no
12933 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12934
12935 succeeded=no
12936
12937 # Extract the first word of "pkg-config", so it can be a program name with args.
12938 set dummy pkg-config; ac_word=$2
12939 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12940 $as_echo_n "checking for $ac_word... " >&6; }
12941 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12942 $as_echo_n "(cached) " >&6
12943 else
12944 case $PKG_CONFIG in
12945 [\\/]* | ?:[\\/]*)
12946 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12947 ;;
12948 *)
12949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12950 for as_dir in $PATH
12951 do
12952 IFS=$as_save_IFS
12953 test -z "$as_dir" && as_dir=.
12954 for ac_exec_ext in '' $ac_executable_extensions; do
12955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12956 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12957 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12958 break 2
12959 fi
12960 done
12961 done
12962 IFS=$as_save_IFS
12963
12964 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12965 ;;
12966 esac
12967 fi
12968 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12969 if test -n "$PKG_CONFIG"; then
12970 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12971 $as_echo "$PKG_CONFIG" >&6; }
12972 else
12973 { $as_echo "$as_me:$LINENO: result: no" >&5
12974 $as_echo "no" >&6; }
12975 fi
12976
12977
12978
12979 if test "$PKG_CONFIG" = "no" ; then
12980 HAVE_GCONF=no
12981 else
12982 PKG_CONFIG_MIN_VERSION=0.9.0
12983 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12984 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
12985 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12986
12987 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
12988 { $as_echo "$as_me:$LINENO: result: yes" >&5
12989 $as_echo "yes" >&6; }
12990 succeeded=yes
12991
12992 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
12993 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
12994 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12995 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
12996 $as_echo "$GCONF_CFLAGS" >&6; }
12997
12998 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
12999 $as_echo_n "checking GCONF_LIBS... " >&6; }
13000 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
13001 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
13002 $as_echo "$GCONF_LIBS" >&6; }
13003 else
13004 { $as_echo "$as_me:$LINENO: result: no" >&5
13005 $as_echo "no" >&6; }
13006 GCONF_CFLAGS=""
13007 GCONF_LIBS=""
13008 ## If we have a custom action on failure, don't print errors, but
13009 ## do set a variable so people can do so.
13010 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
13011
13012 fi
13013
13014
13015
13016 else
13017 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13018 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13019 fi
13020 fi
13021
13022 if test $succeeded = yes; then
13023 HAVE_GCONF=yes
13024 else
13025 HAVE_GCONF=no
13026 fi
13027
13028 if test "$HAVE_GCONF" = yes; then
13029
13030 cat >>confdefs.h <<\_ACEOF
13031 #define HAVE_GCONF 1
13032 _ACEOF
13033
13034 fi
13035 fi
13036
13037 HAVE_LIBSELINUX=no
13038 LIBSELINUX_LIBS=
13039 if test "${with_selinux}" = "yes"; then
13040 { $as_echo "$as_me:$LINENO: checking for lgetfilecon in -lselinux" >&5
13041 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
13042 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then
13043 $as_echo_n "(cached) " >&6
13044 else
13045 ac_check_lib_save_LIBS=$LIBS
13046 LIBS="-lselinux $LIBS"
13047 cat >conftest.$ac_ext <<_ACEOF
13048 /* confdefs.h. */
13049 _ACEOF
13050 cat confdefs.h >>conftest.$ac_ext
13051 cat >>conftest.$ac_ext <<_ACEOF
13052 /* end confdefs.h. */
13053
13054 /* Override any GCC internal prototype to avoid an error.
13055 Use char because int might match the return type of a GCC
13056 builtin and then its argument prototype would still apply. */
13057 #ifdef __cplusplus
13058 extern "C"
13059 #endif
13060 char lgetfilecon ();
13061 int
13062 main ()
13063 {
13064 return lgetfilecon ();
13065 ;
13066 return 0;
13067 }
13068 _ACEOF
13069 rm -f conftest.$ac_objext conftest$ac_exeext
13070 if { (ac_try="$ac_link"
13071 case "(($ac_try" in
13072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13073 *) ac_try_echo=$ac_try;;
13074 esac
13075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13076 $as_echo "$ac_try_echo") >&5
13077 (eval "$ac_link") 2>conftest.er1
13078 ac_status=$?
13079 grep -v '^ *+' conftest.er1 >conftest.err
13080 rm -f conftest.er1
13081 cat conftest.err >&5
13082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083 (exit $ac_status); } && {
13084 test -z "$ac_c_werror_flag" ||
13085 test ! -s conftest.err
13086 } && test -s conftest$ac_exeext && {
13087 test "$cross_compiling" = yes ||
13088 $as_test_x conftest$ac_exeext
13089 }; then
13090 ac_cv_lib_selinux_lgetfilecon=yes
13091 else
13092 $as_echo "$as_me: failed program was:" >&5
13093 sed 's/^/| /' conftest.$ac_ext >&5
13094
13095 ac_cv_lib_selinux_lgetfilecon=no
13096 fi
13097
13098 rm -rf conftest.dSYM
13099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13100 conftest$ac_exeext conftest.$ac_ext
13101 LIBS=$ac_check_lib_save_LIBS
13102 fi
13103 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_lgetfilecon" >&5
13104 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
13105 if test $ac_cv_lib_selinux_lgetfilecon = yes; then
13106 HAVE_LIBSELINUX=yes
13107 else
13108 HAVE_LIBSELINUX=no
13109 fi
13110
13111 if test "$HAVE_LIBSELINUX" = yes; then
13112
13113 cat >>confdefs.h <<\_ACEOF
13114 #define HAVE_LIBSELINUX 1
13115 _ACEOF
13116
13117 LIBSELINUX_LIBS=-lselinux
13118 fi
13119 fi
13120
13121
13122 HAVE_XAW3D=no
13123 LUCID_LIBW=
13124 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
13125 if test "$with_xaw3d" != no; then
13126 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
13127 $as_echo_n "checking for xaw3d... " >&6; }
13128 if test "${emacs_cv_xaw3d+set}" = set; then
13129 $as_echo_n "(cached) " >&6
13130 else
13131 cat >conftest.$ac_ext <<_ACEOF
13132 /* confdefs.h. */
13133 _ACEOF
13134 cat confdefs.h >>conftest.$ac_ext
13135 cat >>conftest.$ac_ext <<_ACEOF
13136 /* end confdefs.h. */
13137
13138 #include <X11/Intrinsic.h>
13139 #include <X11/Xaw3d/Simple.h>
13140 int
13141 main ()
13142 {
13143
13144 ;
13145 return 0;
13146 }
13147 _ACEOF
13148 rm -f conftest.$ac_objext conftest$ac_exeext
13149 if { (ac_try="$ac_link"
13150 case "(($ac_try" in
13151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13152 *) ac_try_echo=$ac_try;;
13153 esac
13154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13155 $as_echo "$ac_try_echo") >&5
13156 (eval "$ac_link") 2>conftest.er1
13157 ac_status=$?
13158 grep -v '^ *+' conftest.er1 >conftest.err
13159 rm -f conftest.er1
13160 cat conftest.err >&5
13161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162 (exit $ac_status); } && {
13163 test -z "$ac_c_werror_flag" ||
13164 test ! -s conftest.err
13165 } && test -s conftest$ac_exeext && {
13166 test "$cross_compiling" = yes ||
13167 $as_test_x conftest$ac_exeext
13168 }; then
13169 emacs_cv_xaw3d=yes
13170 else
13171 $as_echo "$as_me: failed program was:" >&5
13172 sed 's/^/| /' conftest.$ac_ext >&5
13173
13174 emacs_cv_xaw3d=no
13175 fi
13176
13177 rm -rf conftest.dSYM
13178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13179 conftest$ac_exeext conftest.$ac_ext
13180 fi
13181
13182 else
13183 emacs_cv_xaw3d=no
13184 fi
13185 if test $emacs_cv_xaw3d = yes; then
13186 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13187 $as_echo "yes; using Lucid toolkit" >&6; }
13188 USE_X_TOOLKIT=LUCID
13189 HAVE_XAW3D=yes
13190 LUCID_LIBW=-lXaw3d
13191
13192 cat >>confdefs.h <<\_ACEOF
13193 #define HAVE_XAW3D 1
13194 _ACEOF
13195
13196 else
13197 { $as_echo "$as_me:$LINENO: result: no" >&5
13198 $as_echo "no" >&6; }
13199 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
13200 $as_echo_n "checking for libXaw... " >&6; }
13201 if test "${emacs_cv_xaw+set}" = set; then
13202 $as_echo_n "(cached) " >&6
13203 else
13204 cat >conftest.$ac_ext <<_ACEOF
13205 /* confdefs.h. */
13206 _ACEOF
13207 cat confdefs.h >>conftest.$ac_ext
13208 cat >>conftest.$ac_ext <<_ACEOF
13209 /* end confdefs.h. */
13210
13211 #include <X11/Intrinsic.h>
13212 #include <X11/Xaw/Simple.h>
13213 int
13214 main ()
13215 {
13216
13217 ;
13218 return 0;
13219 }
13220 _ACEOF
13221 rm -f conftest.$ac_objext conftest$ac_exeext
13222 if { (ac_try="$ac_link"
13223 case "(($ac_try" in
13224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13225 *) ac_try_echo=$ac_try;;
13226 esac
13227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13228 $as_echo "$ac_try_echo") >&5
13229 (eval "$ac_link") 2>conftest.er1
13230 ac_status=$?
13231 grep -v '^ *+' conftest.er1 >conftest.err
13232 rm -f conftest.er1
13233 cat conftest.err >&5
13234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); } && {
13236 test -z "$ac_c_werror_flag" ||
13237 test ! -s conftest.err
13238 } && test -s conftest$ac_exeext && {
13239 test "$cross_compiling" = yes ||
13240 $as_test_x conftest$ac_exeext
13241 }; then
13242 emacs_cv_xaw=yes
13243 else
13244 $as_echo "$as_me: failed program was:" >&5
13245 sed 's/^/| /' conftest.$ac_ext >&5
13246
13247 emacs_cv_xaw=no
13248 fi
13249
13250 rm -rf conftest.dSYM
13251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13252 conftest$ac_exeext conftest.$ac_ext
13253 fi
13254
13255 if test $emacs_cv_xaw = yes; then
13256 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13257 $as_echo "yes; using Lucid toolkit" >&6; }
13258 USE_X_TOOLKIT=LUCID
13259 LUCID_LIBW=-lXaw
13260 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
13261 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
13262 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
13263 { (exit 1); exit 1; }; }
13264 else
13265 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
13266 $as_echo "no; do not use toolkit by default" >&6; }
13267 USE_X_TOOLKIT=none
13268 fi
13269 fi
13270 fi
13271
13272 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
13273
13274 LIBXTR6=
13275 if test "${USE_X_TOOLKIT}" != "none"; then
13276 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
13277 $as_echo_n "checking X11 toolkit version... " >&6; }
13278 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
13279 $as_echo_n "(cached) " >&6
13280 else
13281 cat >conftest.$ac_ext <<_ACEOF
13282 /* confdefs.h. */
13283 _ACEOF
13284 cat confdefs.h >>conftest.$ac_ext
13285 cat >>conftest.$ac_ext <<_ACEOF
13286 /* end confdefs.h. */
13287 #include <X11/Intrinsic.h>
13288 int
13289 main ()
13290 {
13291 #if XtSpecificationRelease < 6
13292 fail;
13293 #endif
13294
13295 ;
13296 return 0;
13297 }
13298 _ACEOF
13299 rm -f conftest.$ac_objext conftest$ac_exeext
13300 if { (ac_try="$ac_link"
13301 case "(($ac_try" in
13302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13303 *) ac_try_echo=$ac_try;;
13304 esac
13305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13306 $as_echo "$ac_try_echo") >&5
13307 (eval "$ac_link") 2>conftest.er1
13308 ac_status=$?
13309 grep -v '^ *+' conftest.er1 >conftest.err
13310 rm -f conftest.er1
13311 cat conftest.err >&5
13312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); } && {
13314 test -z "$ac_c_werror_flag" ||
13315 test ! -s conftest.err
13316 } && test -s conftest$ac_exeext && {
13317 test "$cross_compiling" = yes ||
13318 $as_test_x conftest$ac_exeext
13319 }; then
13320 emacs_cv_x11_toolkit_version_6=yes
13321 else
13322 $as_echo "$as_me: failed program was:" >&5
13323 sed 's/^/| /' conftest.$ac_ext >&5
13324
13325 emacs_cv_x11_toolkit_version_6=no
13326 fi
13327
13328 rm -rf conftest.dSYM
13329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13330 conftest$ac_exeext conftest.$ac_ext
13331 fi
13332
13333 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
13334 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13335 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
13336 $as_echo "6 or newer" >&6; }
13337
13338 cat >>confdefs.h <<\_ACEOF
13339 #define HAVE_X11XTR6 1
13340 _ACEOF
13341
13342 LIBXTR6="-lSM -lICE"
13343 case "$opsys" in
13344 ## Use libw.a along with X11R6 Xt.
13345 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
13346 esac
13347 else
13348 { $as_echo "$as_me:$LINENO: result: before 6" >&5
13349 $as_echo "before 6" >&6; }
13350 fi
13351
13352 OLDLIBS="$LIBS"
13353 if test x$HAVE_X11XTR6 = xyes; then
13354 LIBS="-lXt -lSM -lICE $LIBS"
13355 else
13356 LIBS="-lXt $LIBS"
13357 fi
13358
13359 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13360 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
13361 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13362 $as_echo_n "(cached) " >&6
13363 else
13364 ac_check_lib_save_LIBS=$LIBS
13365 LIBS="-lXmu $LIBS"
13366 cat >conftest.$ac_ext <<_ACEOF
13367 /* confdefs.h. */
13368 _ACEOF
13369 cat confdefs.h >>conftest.$ac_ext
13370 cat >>conftest.$ac_ext <<_ACEOF
13371 /* end confdefs.h. */
13372
13373 /* Override any GCC internal prototype to avoid an error.
13374 Use char because int might match the return type of a GCC
13375 builtin and then its argument prototype would still apply. */
13376 #ifdef __cplusplus
13377 extern "C"
13378 #endif
13379 char XmuConvertStandardSelection ();
13380 int
13381 main ()
13382 {
13383 return XmuConvertStandardSelection ();
13384 ;
13385 return 0;
13386 }
13387 _ACEOF
13388 rm -f conftest.$ac_objext conftest$ac_exeext
13389 if { (ac_try="$ac_link"
13390 case "(($ac_try" in
13391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13392 *) ac_try_echo=$ac_try;;
13393 esac
13394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13395 $as_echo "$ac_try_echo") >&5
13396 (eval "$ac_link") 2>conftest.er1
13397 ac_status=$?
13398 grep -v '^ *+' conftest.er1 >conftest.err
13399 rm -f conftest.er1
13400 cat conftest.err >&5
13401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); } && {
13403 test -z "$ac_c_werror_flag" ||
13404 test ! -s conftest.err
13405 } && test -s conftest$ac_exeext && {
13406 test "$cross_compiling" = yes ||
13407 $as_test_x conftest$ac_exeext
13408 }; then
13409 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13410 else
13411 $as_echo "$as_me: failed program was:" >&5
13412 sed 's/^/| /' conftest.$ac_ext >&5
13413
13414 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13415 fi
13416
13417 rm -rf conftest.dSYM
13418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13419 conftest$ac_exeext conftest.$ac_ext
13420 LIBS=$ac_check_lib_save_LIBS
13421 fi
13422 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13423 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13424 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
13425 cat >>confdefs.h <<_ACEOF
13426 #define HAVE_LIBXMU 1
13427 _ACEOF
13428
13429 LIBS="-lXmu $LIBS"
13430
13431 fi
13432
13433 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13434 fi
13435
13436
13437 LIBXMU=-lXmu
13438 case "$machine" in
13439 ## These machines don't supply Xmu.
13440 hpux* | aix4-2 )
13441 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
13442 ;;
13443 esac
13444
13445
13446 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13447 if test "${HAVE_X11}" = "yes"; then
13448 if test "${USE_X_TOOLKIT}" != "none"; then
13449
13450 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13451 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13452 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13453 $as_echo_n "(cached) " >&6
13454 else
13455 ac_check_lib_save_LIBS=$LIBS
13456 LIBS="-lXext $LIBS"
13457 cat >conftest.$ac_ext <<_ACEOF
13458 /* confdefs.h. */
13459 _ACEOF
13460 cat confdefs.h >>conftest.$ac_ext
13461 cat >>conftest.$ac_ext <<_ACEOF
13462 /* end confdefs.h. */
13463
13464 /* Override any GCC internal prototype to avoid an error.
13465 Use char because int might match the return type of a GCC
13466 builtin and then its argument prototype would still apply. */
13467 #ifdef __cplusplus
13468 extern "C"
13469 #endif
13470 char XShapeQueryExtension ();
13471 int
13472 main ()
13473 {
13474 return XShapeQueryExtension ();
13475 ;
13476 return 0;
13477 }
13478 _ACEOF
13479 rm -f conftest.$ac_objext conftest$ac_exeext
13480 if { (ac_try="$ac_link"
13481 case "(($ac_try" in
13482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13483 *) ac_try_echo=$ac_try;;
13484 esac
13485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13486 $as_echo "$ac_try_echo") >&5
13487 (eval "$ac_link") 2>conftest.er1
13488 ac_status=$?
13489 grep -v '^ *+' conftest.er1 >conftest.err
13490 rm -f conftest.er1
13491 cat conftest.err >&5
13492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493 (exit $ac_status); } && {
13494 test -z "$ac_c_werror_flag" ||
13495 test ! -s conftest.err
13496 } && test -s conftest$ac_exeext && {
13497 test "$cross_compiling" = yes ||
13498 $as_test_x conftest$ac_exeext
13499 }; then
13500 ac_cv_lib_Xext_XShapeQueryExtension=yes
13501 else
13502 $as_echo "$as_me: failed program was:" >&5
13503 sed 's/^/| /' conftest.$ac_ext >&5
13504
13505 ac_cv_lib_Xext_XShapeQueryExtension=no
13506 fi
13507
13508 rm -rf conftest.dSYM
13509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13510 conftest$ac_exeext conftest.$ac_ext
13511 LIBS=$ac_check_lib_save_LIBS
13512 fi
13513 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13514 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13515 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13516 cat >>confdefs.h <<_ACEOF
13517 #define HAVE_LIBXEXT 1
13518 _ACEOF
13519
13520 LIBS="-lXext $LIBS"
13521
13522 fi
13523
13524 fi
13525 fi
13526
13527 LIBXP=
13528 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13529 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13530 $as_echo_n "checking for Motif version 2.1... " >&6; }
13531 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13532 $as_echo_n "(cached) " >&6
13533 else
13534 cat >conftest.$ac_ext <<_ACEOF
13535 /* confdefs.h. */
13536 _ACEOF
13537 cat confdefs.h >>conftest.$ac_ext
13538 cat >>conftest.$ac_ext <<_ACEOF
13539 /* end confdefs.h. */
13540 #include <Xm/Xm.h>
13541 int
13542 main ()
13543 {
13544 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13545 int x = 5;
13546 #else
13547 Motif version prior to 2.1.
13548 #endif
13549 ;
13550 return 0;
13551 }
13552 _ACEOF
13553 rm -f conftest.$ac_objext
13554 if { (ac_try="$ac_compile"
13555 case "(($ac_try" in
13556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13557 *) ac_try_echo=$ac_try;;
13558 esac
13559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13560 $as_echo "$ac_try_echo") >&5
13561 (eval "$ac_compile") 2>conftest.er1
13562 ac_status=$?
13563 grep -v '^ *+' conftest.er1 >conftest.err
13564 rm -f conftest.er1
13565 cat conftest.err >&5
13566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 (exit $ac_status); } && {
13568 test -z "$ac_c_werror_flag" ||
13569 test ! -s conftest.err
13570 } && test -s conftest.$ac_objext; then
13571 emacs_cv_motif_version_2_1=yes
13572 else
13573 $as_echo "$as_me: failed program was:" >&5
13574 sed 's/^/| /' conftest.$ac_ext >&5
13575
13576 emacs_cv_motif_version_2_1=no
13577 fi
13578
13579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13580 fi
13581 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13582 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13583 if test $emacs_cv_motif_version_2_1 = yes; then
13584 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13585 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13586 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13587 $as_echo_n "(cached) " >&6
13588 else
13589 ac_check_lib_save_LIBS=$LIBS
13590 LIBS="-lXp $LIBS"
13591 cat >conftest.$ac_ext <<_ACEOF
13592 /* confdefs.h. */
13593 _ACEOF
13594 cat confdefs.h >>conftest.$ac_ext
13595 cat >>conftest.$ac_ext <<_ACEOF
13596 /* end confdefs.h. */
13597
13598 /* Override any GCC internal prototype to avoid an error.
13599 Use char because int might match the return type of a GCC
13600 builtin and then its argument prototype would still apply. */
13601 #ifdef __cplusplus
13602 extern "C"
13603 #endif
13604 char XpCreateContext ();
13605 int
13606 main ()
13607 {
13608 return XpCreateContext ();
13609 ;
13610 return 0;
13611 }
13612 _ACEOF
13613 rm -f conftest.$ac_objext conftest$ac_exeext
13614 if { (ac_try="$ac_link"
13615 case "(($ac_try" in
13616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13617 *) ac_try_echo=$ac_try;;
13618 esac
13619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13620 $as_echo "$ac_try_echo") >&5
13621 (eval "$ac_link") 2>conftest.er1
13622 ac_status=$?
13623 grep -v '^ *+' conftest.er1 >conftest.err
13624 rm -f conftest.er1
13625 cat conftest.err >&5
13626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); } && {
13628 test -z "$ac_c_werror_flag" ||
13629 test ! -s conftest.err
13630 } && test -s conftest$ac_exeext && {
13631 test "$cross_compiling" = yes ||
13632 $as_test_x conftest$ac_exeext
13633 }; then
13634 ac_cv_lib_Xp_XpCreateContext=yes
13635 else
13636 $as_echo "$as_me: failed program was:" >&5
13637 sed 's/^/| /' conftest.$ac_ext >&5
13638
13639 ac_cv_lib_Xp_XpCreateContext=no
13640 fi
13641
13642 rm -rf conftest.dSYM
13643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13644 conftest$ac_exeext conftest.$ac_ext
13645 LIBS=$ac_check_lib_save_LIBS
13646 fi
13647 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13648 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13649 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13650 LIBXP=-lXp
13651 fi
13652
13653 else
13654 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13655 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13656 if test "${emacs_cv_lesstif+set}" = set; then
13657 $as_echo_n "(cached) " >&6
13658 else
13659 # We put this in CFLAGS temporarily to precede other -I options
13660 # that might be in CFLAGS temporarily.
13661 # We put this in CPPFLAGS where it precedes the other -I options.
13662 OLD_CPPFLAGS=$CPPFLAGS
13663 OLD_CFLAGS=$CFLAGS
13664 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13665 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13666 cat >conftest.$ac_ext <<_ACEOF
13667 /* confdefs.h. */
13668 _ACEOF
13669 cat confdefs.h >>conftest.$ac_ext
13670 cat >>conftest.$ac_ext <<_ACEOF
13671 /* end confdefs.h. */
13672 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13673 int
13674 main ()
13675 {
13676 int x = 5;
13677 ;
13678 return 0;
13679 }
13680 _ACEOF
13681 rm -f conftest.$ac_objext
13682 if { (ac_try="$ac_compile"
13683 case "(($ac_try" in
13684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13685 *) ac_try_echo=$ac_try;;
13686 esac
13687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13688 $as_echo "$ac_try_echo") >&5
13689 (eval "$ac_compile") 2>conftest.er1
13690 ac_status=$?
13691 grep -v '^ *+' conftest.er1 >conftest.err
13692 rm -f conftest.er1
13693 cat conftest.err >&5
13694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695 (exit $ac_status); } && {
13696 test -z "$ac_c_werror_flag" ||
13697 test ! -s conftest.err
13698 } && test -s conftest.$ac_objext; then
13699 emacs_cv_lesstif=yes
13700 else
13701 $as_echo "$as_me: failed program was:" >&5
13702 sed 's/^/| /' conftest.$ac_ext >&5
13703
13704 emacs_cv_lesstif=no
13705 fi
13706
13707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13708 fi
13709 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13710 $as_echo "$emacs_cv_lesstif" >&6; }
13711 if test $emacs_cv_lesstif = yes; then
13712 # Make sure this -I option remains in CPPFLAGS after it is set
13713 # back to REAL_CPPFLAGS.
13714 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13715 # have those other -I options anyway. Ultimately, having this
13716 # directory ultimately in CPPFLAGS will be enough.
13717 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13718 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13719 else
13720 CFLAGS=$OLD_CFLAGS
13721 CPPFLAGS=$OLD_CPPFLAGS
13722 fi
13723 fi
13724 fi
13725
13726
13727
13728 USE_TOOLKIT_SCROLL_BARS=no
13729 if test "${with_toolkit_scroll_bars}" != "no"; then
13730 if test "${USE_X_TOOLKIT}" != "none"; then
13731 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13732 cat >>confdefs.h <<\_ACEOF
13733 #define USE_TOOLKIT_SCROLL_BARS 1
13734 _ACEOF
13735
13736 HAVE_XAW3D=no
13737 USE_TOOLKIT_SCROLL_BARS=yes
13738 elif test "${HAVE_XAW3D}" = "yes"; then
13739 cat >>confdefs.h <<\_ACEOF
13740 #define USE_TOOLKIT_SCROLL_BARS 1
13741 _ACEOF
13742
13743 USE_TOOLKIT_SCROLL_BARS=yes
13744 fi
13745 elif test "${HAVE_GTK}" = "yes"; then
13746 cat >>confdefs.h <<\_ACEOF
13747 #define USE_TOOLKIT_SCROLL_BARS 1
13748 _ACEOF
13749
13750 USE_TOOLKIT_SCROLL_BARS=yes
13751 elif test "${HAVE_NS}" = "yes"; then
13752 cat >>confdefs.h <<\_ACEOF
13753 #define USE_TOOLKIT_SCROLL_BARS 1
13754 _ACEOF
13755
13756 USE_TOOLKIT_SCROLL_BARS=yes
13757 fi
13758 fi
13759
13760 cat >conftest.$ac_ext <<_ACEOF
13761 /* confdefs.h. */
13762 _ACEOF
13763 cat confdefs.h >>conftest.$ac_ext
13764 cat >>conftest.$ac_ext <<_ACEOF
13765 /* end confdefs.h. */
13766
13767 #include <X11/Xlib.h>
13768 #include <X11/Xresource.h>
13769 int
13770 main ()
13771 {
13772 XIMProc callback;
13773 ;
13774 return 0;
13775 }
13776 _ACEOF
13777 rm -f conftest.$ac_objext
13778 if { (ac_try="$ac_compile"
13779 case "(($ac_try" in
13780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13781 *) ac_try_echo=$ac_try;;
13782 esac
13783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13784 $as_echo "$ac_try_echo") >&5
13785 (eval "$ac_compile") 2>conftest.er1
13786 ac_status=$?
13787 grep -v '^ *+' conftest.er1 >conftest.err
13788 rm -f conftest.er1
13789 cat conftest.err >&5
13790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); } && {
13792 test -z "$ac_c_werror_flag" ||
13793 test ! -s conftest.err
13794 } && test -s conftest.$ac_objext; then
13795 HAVE_XIM=yes
13796
13797 cat >>confdefs.h <<\_ACEOF
13798 #define HAVE_XIM 1
13799 _ACEOF
13800
13801 else
13802 $as_echo "$as_me: failed program was:" >&5
13803 sed 's/^/| /' conftest.$ac_ext >&5
13804
13805 HAVE_XIM=no
13806 fi
13807
13808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13809
13810
13811 if test "${with_xim}" != "no"; then
13812
13813 cat >>confdefs.h <<\_ACEOF
13814 #define USE_XIM 1
13815 _ACEOF
13816
13817 fi
13818
13819
13820 if test "${HAVE_XIM}" != "no"; then
13821 late_CFLAGS=$CFLAGS
13822 if test "$GCC" = yes; then
13823 CFLAGS="$CFLAGS --pedantic-errors"
13824 fi
13825 cat >conftest.$ac_ext <<_ACEOF
13826 /* confdefs.h. */
13827 _ACEOF
13828 cat confdefs.h >>conftest.$ac_ext
13829 cat >>conftest.$ac_ext <<_ACEOF
13830 /* end confdefs.h. */
13831
13832 #include <X11/Xlib.h>
13833 #include <X11/Xresource.h>
13834 int
13835 main ()
13836 {
13837 Display *display;
13838 XrmDatabase db;
13839 char *res_name;
13840 char *res_class;
13841 XIMProc callback;
13842 XPointer *client_data;
13843 #ifndef __GNUC__
13844 /* If we're not using GCC, it's probably not XFree86, and this is
13845 probably right, but we can't use something like --pedantic-errors. */
13846 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13847 char*, XIMProc, XPointer*);
13848 #endif
13849 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13850 client_data);
13851 ;
13852 return 0;
13853 }
13854 _ACEOF
13855 rm -f conftest.$ac_objext
13856 if { (ac_try="$ac_compile"
13857 case "(($ac_try" in
13858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13859 *) ac_try_echo=$ac_try;;
13860 esac
13861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13862 $as_echo "$ac_try_echo") >&5
13863 (eval "$ac_compile") 2>conftest.er1
13864 ac_status=$?
13865 grep -v '^ *+' conftest.er1 >conftest.err
13866 rm -f conftest.er1
13867 cat conftest.err >&5
13868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); } && {
13870 test -z "$ac_c_werror_flag" ||
13871 test ! -s conftest.err
13872 } && test -s conftest.$ac_objext; then
13873 emacs_cv_arg6_star=yes
13874 else
13875 $as_echo "$as_me: failed program was:" >&5
13876 sed 's/^/| /' conftest.$ac_ext >&5
13877
13878
13879 fi
13880
13881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13882
13883 if test "$emacs_cv_arg6_star" = yes; then
13884 cat >>confdefs.h <<\_ACEOF
13885 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13886 _ACEOF
13887
13888 else
13889 cat >>confdefs.h <<\_ACEOF
13890 #define XRegisterIMInstantiateCallback_arg6 XPointer
13891 _ACEOF
13892
13893 fi
13894 CFLAGS=$late_CFLAGS
13895 fi
13896
13897 ### Start of font-backend (under any platform) section.
13898 # (nothing here yet -- this is a placeholder)
13899 ### End of font-backend (under any platform) section.
13900
13901 ### Start of font-backend (under X11) section.
13902 if test "${HAVE_X11}" = "yes"; then
13903
13904 succeeded=no
13905
13906 # Extract the first word of "pkg-config", so it can be a program name with args.
13907 set dummy pkg-config; ac_word=$2
13908 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13909 $as_echo_n "checking for $ac_word... " >&6; }
13910 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13911 $as_echo_n "(cached) " >&6
13912 else
13913 case $PKG_CONFIG in
13914 [\\/]* | ?:[\\/]*)
13915 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13916 ;;
13917 *)
13918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13919 for as_dir in $PATH
13920 do
13921 IFS=$as_save_IFS
13922 test -z "$as_dir" && as_dir=.
13923 for ac_exec_ext in '' $ac_executable_extensions; do
13924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13925 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13926 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13927 break 2
13928 fi
13929 done
13930 done
13931 IFS=$as_save_IFS
13932
13933 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13934 ;;
13935 esac
13936 fi
13937 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13938 if test -n "$PKG_CONFIG"; then
13939 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13940 $as_echo "$PKG_CONFIG" >&6; }
13941 else
13942 { $as_echo "$as_me:$LINENO: result: no" >&5
13943 $as_echo "no" >&6; }
13944 fi
13945
13946
13947
13948 if test "$PKG_CONFIG" = "no" ; then
13949 HAVE_FC=no
13950 else
13951 PKG_CONFIG_MIN_VERSION=0.9.0
13952 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13953 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13954 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13955
13956 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13957 { $as_echo "$as_me:$LINENO: result: yes" >&5
13958 $as_echo "yes" >&6; }
13959 succeeded=yes
13960
13961 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13962 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13963 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13964 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13965 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13966
13967 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13968 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13969 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13970 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13971 $as_echo "$FONTCONFIG_LIBS" >&6; }
13972 else
13973 { $as_echo "$as_me:$LINENO: result: no" >&5
13974 $as_echo "no" >&6; }
13975 FONTCONFIG_CFLAGS=""
13976 FONTCONFIG_LIBS=""
13977 ## If we have a custom action on failure, don't print errors, but
13978 ## do set a variable so people can do so.
13979 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13980
13981 fi
13982
13983
13984
13985 else
13986 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13987 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13988 fi
13989 fi
13990
13991 if test $succeeded = yes; then
13992 HAVE_FC=yes
13993 else
13994 HAVE_FC=no
13995 fi
13996
13997
13998 ## Use -lXft if available, unless `--with-xft=no'.
13999 HAVE_XFT=maybe
14000 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
14001 with_xft="no";
14002 fi
14003 if test "x${with_xft}" != "xno"; then
14004
14005
14006 succeeded=no
14007
14008 # Extract the first word of "pkg-config", so it can be a program name with args.
14009 set dummy pkg-config; ac_word=$2
14010 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14011 $as_echo_n "checking for $ac_word... " >&6; }
14012 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14013 $as_echo_n "(cached) " >&6
14014 else
14015 case $PKG_CONFIG in
14016 [\\/]* | ?:[\\/]*)
14017 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14018 ;;
14019 *)
14020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14021 for as_dir in $PATH
14022 do
14023 IFS=$as_save_IFS
14024 test -z "$as_dir" && as_dir=.
14025 for ac_exec_ext in '' $ac_executable_extensions; do
14026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14027 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14028 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14029 break 2
14030 fi
14031 done
14032 done
14033 IFS=$as_save_IFS
14034
14035 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14036 ;;
14037 esac
14038 fi
14039 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14040 if test -n "$PKG_CONFIG"; then
14041 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14042 $as_echo "$PKG_CONFIG" >&6; }
14043 else
14044 { $as_echo "$as_me:$LINENO: result: no" >&5
14045 $as_echo "no" >&6; }
14046 fi
14047
14048
14049
14050 if test "$PKG_CONFIG" = "no" ; then
14051 HAVE_XFT=no
14052 else
14053 PKG_CONFIG_MIN_VERSION=0.9.0
14054 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14055 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
14056 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
14057
14058 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
14059 { $as_echo "$as_me:$LINENO: result: yes" >&5
14060 $as_echo "yes" >&6; }
14061 succeeded=yes
14062
14063 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
14064 $as_echo_n "checking XFT_CFLAGS... " >&6; }
14065 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
14066 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
14067 $as_echo "$XFT_CFLAGS" >&6; }
14068
14069 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
14070 $as_echo_n "checking XFT_LIBS... " >&6; }
14071 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
14072 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
14073 $as_echo "$XFT_LIBS" >&6; }
14074 else
14075 { $as_echo "$as_me:$LINENO: result: no" >&5
14076 $as_echo "no" >&6; }
14077 XFT_CFLAGS=""
14078 XFT_LIBS=""
14079 ## If we have a custom action on failure, don't print errors, but
14080 ## do set a variable so people can do so.
14081 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
14082
14083 fi
14084
14085
14086
14087 else
14088 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14089 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14090 fi
14091 fi
14092
14093 if test $succeeded = yes; then
14094 :
14095 else
14096 HAVE_XFT=no
14097 fi
14098
14099 ## Because xftfont.c uses XRenderQueryExtension, we also
14100 ## need to link to -lXrender.
14101 HAVE_XRENDER=no
14102 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
14103 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
14104 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
14105 $as_echo_n "(cached) " >&6
14106 else
14107 ac_check_lib_save_LIBS=$LIBS
14108 LIBS="-lXrender $LIBS"
14109 cat >conftest.$ac_ext <<_ACEOF
14110 /* confdefs.h. */
14111 _ACEOF
14112 cat confdefs.h >>conftest.$ac_ext
14113 cat >>conftest.$ac_ext <<_ACEOF
14114 /* end confdefs.h. */
14115
14116 /* Override any GCC internal prototype to avoid an error.
14117 Use char because int might match the return type of a GCC
14118 builtin and then its argument prototype would still apply. */
14119 #ifdef __cplusplus
14120 extern "C"
14121 #endif
14122 char XRenderQueryExtension ();
14123 int
14124 main ()
14125 {
14126 return XRenderQueryExtension ();
14127 ;
14128 return 0;
14129 }
14130 _ACEOF
14131 rm -f conftest.$ac_objext conftest$ac_exeext
14132 if { (ac_try="$ac_link"
14133 case "(($ac_try" in
14134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14135 *) ac_try_echo=$ac_try;;
14136 esac
14137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14138 $as_echo "$ac_try_echo") >&5
14139 (eval "$ac_link") 2>conftest.er1
14140 ac_status=$?
14141 grep -v '^ *+' conftest.er1 >conftest.err
14142 rm -f conftest.er1
14143 cat conftest.err >&5
14144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); } && {
14146 test -z "$ac_c_werror_flag" ||
14147 test ! -s conftest.err
14148 } && test -s conftest$ac_exeext && {
14149 test "$cross_compiling" = yes ||
14150 $as_test_x conftest$ac_exeext
14151 }; then
14152 ac_cv_lib_Xrender_XRenderQueryExtension=yes
14153 else
14154 $as_echo "$as_me: failed program was:" >&5
14155 sed 's/^/| /' conftest.$ac_ext >&5
14156
14157 ac_cv_lib_Xrender_XRenderQueryExtension=no
14158 fi
14159
14160 rm -rf conftest.dSYM
14161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14162 conftest$ac_exeext conftest.$ac_ext
14163 LIBS=$ac_check_lib_save_LIBS
14164 fi
14165 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
14166 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
14167 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
14168 HAVE_XRENDER=yes
14169 fi
14170
14171 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
14172 OLD_CPPFLAGS="$CPPFLAGS"
14173 OLD_CFLAGS="$CFLAGS"
14174 OLD_LIBS="$LIBS"
14175 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
14176 CFLAGS="$CFLAGS $XFT_CFLAGS"
14177 XFT_LIBS="-lXrender $XFT_LIBS"
14178 LIBS="$XFT_LIBS $LIBS"
14179 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14180 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14181 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14182 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14183 $as_echo_n "(cached) " >&6
14184 fi
14185 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14186 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14187 else
14188 # Is the header compilable?
14189 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
14190 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
14191 cat >conftest.$ac_ext <<_ACEOF
14192 /* confdefs.h. */
14193 _ACEOF
14194 cat confdefs.h >>conftest.$ac_ext
14195 cat >>conftest.$ac_ext <<_ACEOF
14196 /* end confdefs.h. */
14197 $ac_includes_default
14198 #include <X11/Xft/Xft.h>
14199 _ACEOF
14200 rm -f conftest.$ac_objext
14201 if { (ac_try="$ac_compile"
14202 case "(($ac_try" in
14203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14204 *) ac_try_echo=$ac_try;;
14205 esac
14206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14207 $as_echo "$ac_try_echo") >&5
14208 (eval "$ac_compile") 2>conftest.er1
14209 ac_status=$?
14210 grep -v '^ *+' conftest.er1 >conftest.err
14211 rm -f conftest.er1
14212 cat conftest.err >&5
14213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); } && {
14215 test -z "$ac_c_werror_flag" ||
14216 test ! -s conftest.err
14217 } && test -s conftest.$ac_objext; then
14218 ac_header_compiler=yes
14219 else
14220 $as_echo "$as_me: failed program was:" >&5
14221 sed 's/^/| /' conftest.$ac_ext >&5
14222
14223 ac_header_compiler=no
14224 fi
14225
14226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14227 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14228 $as_echo "$ac_header_compiler" >&6; }
14229
14230 # Is the header present?
14231 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
14232 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
14233 cat >conftest.$ac_ext <<_ACEOF
14234 /* confdefs.h. */
14235 _ACEOF
14236 cat confdefs.h >>conftest.$ac_ext
14237 cat >>conftest.$ac_ext <<_ACEOF
14238 /* end confdefs.h. */
14239 #include <X11/Xft/Xft.h>
14240 _ACEOF
14241 if { (ac_try="$ac_cpp conftest.$ac_ext"
14242 case "(($ac_try" in
14243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14244 *) ac_try_echo=$ac_try;;
14245 esac
14246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14247 $as_echo "$ac_try_echo") >&5
14248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14249 ac_status=$?
14250 grep -v '^ *+' conftest.er1 >conftest.err
14251 rm -f conftest.er1
14252 cat conftest.err >&5
14253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); } >/dev/null && {
14255 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14256 test ! -s conftest.err
14257 }; then
14258 ac_header_preproc=yes
14259 else
14260 $as_echo "$as_me: failed program was:" >&5
14261 sed 's/^/| /' conftest.$ac_ext >&5
14262
14263 ac_header_preproc=no
14264 fi
14265
14266 rm -f conftest.err conftest.$ac_ext
14267 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14268 $as_echo "$ac_header_preproc" >&6; }
14269
14270 # So? What about this header?
14271 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14272 yes:no: )
14273 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
14274 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14275 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
14276 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
14277 ac_header_preproc=yes
14278 ;;
14279 no:yes:* )
14280 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
14281 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
14282 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
14283 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
14284 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
14285 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
14286 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
14287 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
14288 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
14289 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
14290 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
14291 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
14292
14293 ;;
14294 esac
14295 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14296 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14297 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14298 $as_echo_n "(cached) " >&6
14299 else
14300 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
14301 fi
14302 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14303 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14304
14305 fi
14306 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
14307 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
14308 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
14309 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
14310 $as_echo_n "(cached) " >&6
14311 else
14312 ac_check_lib_save_LIBS=$LIBS
14313 LIBS="-lXft $XFT_LIBS $LIBS"
14314 cat >conftest.$ac_ext <<_ACEOF
14315 /* confdefs.h. */
14316 _ACEOF
14317 cat confdefs.h >>conftest.$ac_ext
14318 cat >>conftest.$ac_ext <<_ACEOF
14319 /* end confdefs.h. */
14320
14321 /* Override any GCC internal prototype to avoid an error.
14322 Use char because int might match the return type of a GCC
14323 builtin and then its argument prototype would still apply. */
14324 #ifdef __cplusplus
14325 extern "C"
14326 #endif
14327 char XftFontOpen ();
14328 int
14329 main ()
14330 {
14331 return XftFontOpen ();
14332 ;
14333 return 0;
14334 }
14335 _ACEOF
14336 rm -f conftest.$ac_objext conftest$ac_exeext
14337 if { (ac_try="$ac_link"
14338 case "(($ac_try" in
14339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14340 *) ac_try_echo=$ac_try;;
14341 esac
14342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14343 $as_echo "$ac_try_echo") >&5
14344 (eval "$ac_link") 2>conftest.er1
14345 ac_status=$?
14346 grep -v '^ *+' conftest.er1 >conftest.err
14347 rm -f conftest.er1
14348 cat conftest.err >&5
14349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); } && {
14351 test -z "$ac_c_werror_flag" ||
14352 test ! -s conftest.err
14353 } && test -s conftest$ac_exeext && {
14354 test "$cross_compiling" = yes ||
14355 $as_test_x conftest$ac_exeext
14356 }; then
14357 ac_cv_lib_Xft_XftFontOpen=yes
14358 else
14359 $as_echo "$as_me: failed program was:" >&5
14360 sed 's/^/| /' conftest.$ac_ext >&5
14361
14362 ac_cv_lib_Xft_XftFontOpen=no
14363 fi
14364
14365 rm -rf conftest.dSYM
14366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14367 conftest$ac_exeext conftest.$ac_ext
14368 LIBS=$ac_check_lib_save_LIBS
14369 fi
14370 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
14371 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14372 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
14373 HAVE_XFT=yes
14374 fi
14375
14376 fi
14377
14378
14379
14380 if test "${HAVE_XFT}" = "yes"; then
14381
14382 cat >>confdefs.h <<\_ACEOF
14383 #define HAVE_XFT 1
14384 _ACEOF
14385
14386
14387 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
14388 else
14389 CPPFLAGS="$OLD_CPPFLAGS"
14390 CFLAGS="$OLD_CFLAGS"
14391 LIBS="$OLD_LIBS"
14392 fi # "${HAVE_XFT}" = "yes"
14393 fi # "$HAVE_XFT" != no
14394 fi # "x${with_xft}" != "xno"
14395
14396 if test "$HAVE_XFT" != "yes"; then
14397 HAVE_XFT=no
14398 fi
14399
14400
14401 HAVE_FREETYPE=no
14402 ## We used to allow building with FreeType and without Xft.
14403 ## However, the ftx font backend driver is not in good shape.
14404 if test "${HAVE_XFT}" = "yes"; then
14405 HAVE_FREETYPE=yes
14406 FONTCONFIG_CFLAGS=
14407 FONTCONFIG_LIBS=
14408 fi
14409
14410 HAVE_LIBOTF=no
14411 if test "${HAVE_FREETYPE}" = "yes"; then
14412
14413 cat >>confdefs.h <<\_ACEOF
14414 #define HAVE_FREETYPE 1
14415 _ACEOF
14416
14417 if test "${with_libotf}" != "no"; then
14418
14419 succeeded=no
14420
14421 # Extract the first word of "pkg-config", so it can be a program name with args.
14422 set dummy pkg-config; ac_word=$2
14423 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14424 $as_echo_n "checking for $ac_word... " >&6; }
14425 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14426 $as_echo_n "(cached) " >&6
14427 else
14428 case $PKG_CONFIG in
14429 [\\/]* | ?:[\\/]*)
14430 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14431 ;;
14432 *)
14433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14434 for as_dir in $PATH
14435 do
14436 IFS=$as_save_IFS
14437 test -z "$as_dir" && as_dir=.
14438 for ac_exec_ext in '' $ac_executable_extensions; do
14439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14440 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14441 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14442 break 2
14443 fi
14444 done
14445 done
14446 IFS=$as_save_IFS
14447
14448 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14449 ;;
14450 esac
14451 fi
14452 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14453 if test -n "$PKG_CONFIG"; then
14454 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14455 $as_echo "$PKG_CONFIG" >&6; }
14456 else
14457 { $as_echo "$as_me:$LINENO: result: no" >&5
14458 $as_echo "no" >&6; }
14459 fi
14460
14461
14462
14463 if test "$PKG_CONFIG" = "no" ; then
14464 HAVE_LIBOTF=no
14465 else
14466 PKG_CONFIG_MIN_VERSION=0.9.0
14467 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14468 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
14469 $as_echo_n "checking for libotf... " >&6; }
14470
14471 if $PKG_CONFIG --exists "libotf" 2>&5; then
14472 { $as_echo "$as_me:$LINENO: result: yes" >&5
14473 $as_echo "yes" >&6; }
14474 succeeded=yes
14475
14476 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
14477 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14478 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14479 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
14480 $as_echo "$LIBOTF_CFLAGS" >&6; }
14481
14482 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
14483 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
14484 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14485 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
14486 $as_echo "$LIBOTF_LIBS" >&6; }
14487 else
14488 { $as_echo "$as_me:$LINENO: result: no" >&5
14489 $as_echo "no" >&6; }
14490 LIBOTF_CFLAGS=""
14491 LIBOTF_LIBS=""
14492 ## If we have a custom action on failure, don't print errors, but
14493 ## do set a variable so people can do so.
14494 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
14495
14496 fi
14497
14498
14499
14500 else
14501 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14502 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14503 fi
14504 fi
14505
14506 if test $succeeded = yes; then
14507 HAVE_LIBOTF=yes
14508 else
14509 HAVE_LIBOTF=no
14510 fi
14511
14512 if test "$HAVE_LIBOTF" = "yes"; then
14513
14514 cat >>confdefs.h <<\_ACEOF
14515 #define HAVE_LIBOTF 1
14516 _ACEOF
14517
14518 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14519 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14520 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14521 $as_echo_n "(cached) " >&6
14522 else
14523 ac_check_lib_save_LIBS=$LIBS
14524 LIBS="-lotf $LIBS"
14525 cat >conftest.$ac_ext <<_ACEOF
14526 /* confdefs.h. */
14527 _ACEOF
14528 cat confdefs.h >>conftest.$ac_ext
14529 cat >>conftest.$ac_ext <<_ACEOF
14530 /* end confdefs.h. */
14531
14532 /* Override any GCC internal prototype to avoid an error.
14533 Use char because int might match the return type of a GCC
14534 builtin and then its argument prototype would still apply. */
14535 #ifdef __cplusplus
14536 extern "C"
14537 #endif
14538 char OTF_get_variation_glyphs ();
14539 int
14540 main ()
14541 {
14542 return OTF_get_variation_glyphs ();
14543 ;
14544 return 0;
14545 }
14546 _ACEOF
14547 rm -f conftest.$ac_objext conftest$ac_exeext
14548 if { (ac_try="$ac_link"
14549 case "(($ac_try" in
14550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14551 *) ac_try_echo=$ac_try;;
14552 esac
14553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14554 $as_echo "$ac_try_echo") >&5
14555 (eval "$ac_link") 2>conftest.er1
14556 ac_status=$?
14557 grep -v '^ *+' conftest.er1 >conftest.err
14558 rm -f conftest.er1
14559 cat conftest.err >&5
14560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); } && {
14562 test -z "$ac_c_werror_flag" ||
14563 test ! -s conftest.err
14564 } && test -s conftest$ac_exeext && {
14565 test "$cross_compiling" = yes ||
14566 $as_test_x conftest$ac_exeext
14567 }; then
14568 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14569 else
14570 $as_echo "$as_me: failed program was:" >&5
14571 sed 's/^/| /' conftest.$ac_ext >&5
14572
14573 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14574 fi
14575
14576 rm -rf conftest.dSYM
14577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14578 conftest$ac_exeext conftest.$ac_ext
14579 LIBS=$ac_check_lib_save_LIBS
14580 fi
14581 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14582 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14583 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
14584 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14585 else
14586 HAVE_OTF_GET_VARIATION_GLYPHS=no
14587 fi
14588
14589 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14590
14591 cat >>confdefs.h <<\_ACEOF
14592 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14593 _ACEOF
14594
14595 fi
14596 fi
14597 fi
14598 fi
14599
14600 HAVE_M17N_FLT=no
14601 if test "${HAVE_LIBOTF}" = yes; then
14602 if test "${with_m17n_flt}" != "no"; then
14603
14604 succeeded=no
14605
14606 # Extract the first word of "pkg-config", so it can be a program name with args.
14607 set dummy pkg-config; ac_word=$2
14608 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14609 $as_echo_n "checking for $ac_word... " >&6; }
14610 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14611 $as_echo_n "(cached) " >&6
14612 else
14613 case $PKG_CONFIG in
14614 [\\/]* | ?:[\\/]*)
14615 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14616 ;;
14617 *)
14618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14619 for as_dir in $PATH
14620 do
14621 IFS=$as_save_IFS
14622 test -z "$as_dir" && as_dir=.
14623 for ac_exec_ext in '' $ac_executable_extensions; do
14624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14625 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14626 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14627 break 2
14628 fi
14629 done
14630 done
14631 IFS=$as_save_IFS
14632
14633 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14634 ;;
14635 esac
14636 fi
14637 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14638 if test -n "$PKG_CONFIG"; then
14639 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14640 $as_echo "$PKG_CONFIG" >&6; }
14641 else
14642 { $as_echo "$as_me:$LINENO: result: no" >&5
14643 $as_echo "no" >&6; }
14644 fi
14645
14646
14647
14648 if test "$PKG_CONFIG" = "no" ; then
14649 HAVE_M17N_FLT=no
14650 else
14651 PKG_CONFIG_MIN_VERSION=0.9.0
14652 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14653 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14654 $as_echo_n "checking for m17n-flt... " >&6; }
14655
14656 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14657 { $as_echo "$as_me:$LINENO: result: yes" >&5
14658 $as_echo "yes" >&6; }
14659 succeeded=yes
14660
14661 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14662 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14663 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
14664 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14665 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14666
14667 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14668 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14669 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
14670 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14671 $as_echo "$M17N_FLT_LIBS" >&6; }
14672 else
14673 { $as_echo "$as_me:$LINENO: result: no" >&5
14674 $as_echo "no" >&6; }
14675 M17N_FLT_CFLAGS=""
14676 M17N_FLT_LIBS=""
14677 ## If we have a custom action on failure, don't print errors, but
14678 ## do set a variable so people can do so.
14679 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14680
14681 fi
14682
14683
14684
14685 else
14686 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14687 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14688 fi
14689 fi
14690
14691 if test $succeeded = yes; then
14692 HAVE_M17N_FLT=yes
14693 else
14694 HAVE_M17N_FLT=no
14695 fi
14696
14697 if test "$HAVE_M17N_FLT" = "yes"; then
14698
14699 cat >>confdefs.h <<\_ACEOF
14700 #define HAVE_M17N_FLT 1
14701 _ACEOF
14702
14703 fi
14704 fi
14705 fi
14706 else
14707 HAVE_XFT=no
14708 HAVE_FREETYPE=no
14709 HAVE_LIBOTF=no
14710 HAVE_M17N_FLT=no
14711 fi
14712
14713 ### End of font-backend (under X11) section.
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724 ### Use -lXpm if available, unless `--with-xpm=no'.
14725 HAVE_XPM=no
14726 LIBXPM=
14727 if test "${HAVE_X11}" = "yes"; then
14728 if test "${with_xpm}" != "no"; then
14729 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14730 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14731 $as_echo_n "checking for X11/xpm.h... " >&6; }
14732 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14733 $as_echo_n "(cached) " >&6
14734 fi
14735 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14736 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14737 else
14738 # Is the header compilable?
14739 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14740 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14741 cat >conftest.$ac_ext <<_ACEOF
14742 /* confdefs.h. */
14743 _ACEOF
14744 cat confdefs.h >>conftest.$ac_ext
14745 cat >>conftest.$ac_ext <<_ACEOF
14746 /* end confdefs.h. */
14747 $ac_includes_default
14748 #include <X11/xpm.h>
14749 _ACEOF
14750 rm -f conftest.$ac_objext
14751 if { (ac_try="$ac_compile"
14752 case "(($ac_try" in
14753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14754 *) ac_try_echo=$ac_try;;
14755 esac
14756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14757 $as_echo "$ac_try_echo") >&5
14758 (eval "$ac_compile") 2>conftest.er1
14759 ac_status=$?
14760 grep -v '^ *+' conftest.er1 >conftest.err
14761 rm -f conftest.er1
14762 cat conftest.err >&5
14763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); } && {
14765 test -z "$ac_c_werror_flag" ||
14766 test ! -s conftest.err
14767 } && test -s conftest.$ac_objext; then
14768 ac_header_compiler=yes
14769 else
14770 $as_echo "$as_me: failed program was:" >&5
14771 sed 's/^/| /' conftest.$ac_ext >&5
14772
14773 ac_header_compiler=no
14774 fi
14775
14776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14777 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14778 $as_echo "$ac_header_compiler" >&6; }
14779
14780 # Is the header present?
14781 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14782 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14783 cat >conftest.$ac_ext <<_ACEOF
14784 /* confdefs.h. */
14785 _ACEOF
14786 cat confdefs.h >>conftest.$ac_ext
14787 cat >>conftest.$ac_ext <<_ACEOF
14788 /* end confdefs.h. */
14789 #include <X11/xpm.h>
14790 _ACEOF
14791 if { (ac_try="$ac_cpp conftest.$ac_ext"
14792 case "(($ac_try" in
14793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14794 *) ac_try_echo=$ac_try;;
14795 esac
14796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14797 $as_echo "$ac_try_echo") >&5
14798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14799 ac_status=$?
14800 grep -v '^ *+' conftest.er1 >conftest.err
14801 rm -f conftest.er1
14802 cat conftest.err >&5
14803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); } >/dev/null && {
14805 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14806 test ! -s conftest.err
14807 }; then
14808 ac_header_preproc=yes
14809 else
14810 $as_echo "$as_me: failed program was:" >&5
14811 sed 's/^/| /' conftest.$ac_ext >&5
14812
14813 ac_header_preproc=no
14814 fi
14815
14816 rm -f conftest.err conftest.$ac_ext
14817 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14818 $as_echo "$ac_header_preproc" >&6; }
14819
14820 # So? What about this header?
14821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14822 yes:no: )
14823 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14824 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14825 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14826 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14827 ac_header_preproc=yes
14828 ;;
14829 no:yes:* )
14830 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14831 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14832 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14833 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14834 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14835 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14836 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14837 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14838 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14839 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14840 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14841 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14842
14843 ;;
14844 esac
14845 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14846 $as_echo_n "checking for X11/xpm.h... " >&6; }
14847 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14848 $as_echo_n "(cached) " >&6
14849 else
14850 ac_cv_header_X11_xpm_h=$ac_header_preproc
14851 fi
14852 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14853 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14854
14855 fi
14856 if test $ac_cv_header_X11_xpm_h = yes; then
14857 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14858 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14859 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14860 $as_echo_n "(cached) " >&6
14861 else
14862 ac_check_lib_save_LIBS=$LIBS
14863 LIBS="-lXpm -lX11 $LIBS"
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
14871 /* Override any GCC internal prototype to avoid an error.
14872 Use char because int might match the return type of a GCC
14873 builtin and then its argument prototype would still apply. */
14874 #ifdef __cplusplus
14875 extern "C"
14876 #endif
14877 char XpmReadFileToPixmap ();
14878 int
14879 main ()
14880 {
14881 return XpmReadFileToPixmap ();
14882 ;
14883 return 0;
14884 }
14885 _ACEOF
14886 rm -f conftest.$ac_objext conftest$ac_exeext
14887 if { (ac_try="$ac_link"
14888 case "(($ac_try" in
14889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14890 *) ac_try_echo=$ac_try;;
14891 esac
14892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14893 $as_echo "$ac_try_echo") >&5
14894 (eval "$ac_link") 2>conftest.er1
14895 ac_status=$?
14896 grep -v '^ *+' conftest.er1 >conftest.err
14897 rm -f conftest.er1
14898 cat conftest.err >&5
14899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); } && {
14901 test -z "$ac_c_werror_flag" ||
14902 test ! -s conftest.err
14903 } && test -s conftest$ac_exeext && {
14904 test "$cross_compiling" = yes ||
14905 $as_test_x conftest$ac_exeext
14906 }; then
14907 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14908 else
14909 $as_echo "$as_me: failed program was:" >&5
14910 sed 's/^/| /' conftest.$ac_ext >&5
14911
14912 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14913 fi
14914
14915 rm -rf conftest.dSYM
14916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14917 conftest$ac_exeext conftest.$ac_ext
14918 LIBS=$ac_check_lib_save_LIBS
14919 fi
14920 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14921 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14922 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14923 HAVE_XPM=yes
14924 fi
14925
14926 fi
14927
14928
14929 if test "${HAVE_XPM}" = "yes"; then
14930 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14931 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14932 cat >conftest.$ac_ext <<_ACEOF
14933 /* confdefs.h. */
14934 _ACEOF
14935 cat confdefs.h >>conftest.$ac_ext
14936 cat >>conftest.$ac_ext <<_ACEOF
14937 /* end confdefs.h. */
14938 #include "X11/xpm.h"
14939 #ifndef XpmReturnAllocPixels
14940 no_return_alloc_pixels
14941 #endif
14942
14943 _ACEOF
14944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14945 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14946 HAVE_XPM=no
14947 else
14948 HAVE_XPM=yes
14949 fi
14950 rm -f conftest*
14951
14952
14953 if test "${HAVE_XPM}" = "yes"; then
14954 { $as_echo "$as_me:$LINENO: result: yes" >&5
14955 $as_echo "yes" >&6; }
14956 else
14957 { $as_echo "$as_me:$LINENO: result: no" >&5
14958 $as_echo "no" >&6; }
14959 fi
14960 fi
14961 fi
14962
14963 if test "${HAVE_XPM}" = "yes"; then
14964
14965 cat >>confdefs.h <<\_ACEOF
14966 #define HAVE_XPM 1
14967 _ACEOF
14968
14969 LIBXPM=-lXpm
14970 fi
14971 fi
14972
14973
14974 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14975 HAVE_JPEG=no
14976 LIBJPEG=
14977 if test "${HAVE_X11}" = "yes"; then
14978 if test "${with_jpeg}" != "no"; then
14979 if test "${ac_cv_header_jerror_h+set}" = set; then
14980 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14981 $as_echo_n "checking for jerror.h... " >&6; }
14982 if test "${ac_cv_header_jerror_h+set}" = set; then
14983 $as_echo_n "(cached) " >&6
14984 fi
14985 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14986 $as_echo "$ac_cv_header_jerror_h" >&6; }
14987 else
14988 # Is the header compilable?
14989 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14990 $as_echo_n "checking jerror.h usability... " >&6; }
14991 cat >conftest.$ac_ext <<_ACEOF
14992 /* confdefs.h. */
14993 _ACEOF
14994 cat confdefs.h >>conftest.$ac_ext
14995 cat >>conftest.$ac_ext <<_ACEOF
14996 /* end confdefs.h. */
14997 $ac_includes_default
14998 #include <jerror.h>
14999 _ACEOF
15000 rm -f conftest.$ac_objext
15001 if { (ac_try="$ac_compile"
15002 case "(($ac_try" in
15003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15004 *) ac_try_echo=$ac_try;;
15005 esac
15006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15007 $as_echo "$ac_try_echo") >&5
15008 (eval "$ac_compile") 2>conftest.er1
15009 ac_status=$?
15010 grep -v '^ *+' conftest.er1 >conftest.err
15011 rm -f conftest.er1
15012 cat conftest.err >&5
15013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); } && {
15015 test -z "$ac_c_werror_flag" ||
15016 test ! -s conftest.err
15017 } && test -s conftest.$ac_objext; then
15018 ac_header_compiler=yes
15019 else
15020 $as_echo "$as_me: failed program was:" >&5
15021 sed 's/^/| /' conftest.$ac_ext >&5
15022
15023 ac_header_compiler=no
15024 fi
15025
15026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15027 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15028 $as_echo "$ac_header_compiler" >&6; }
15029
15030 # Is the header present?
15031 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
15032 $as_echo_n "checking jerror.h presence... " >&6; }
15033 cat >conftest.$ac_ext <<_ACEOF
15034 /* confdefs.h. */
15035 _ACEOF
15036 cat confdefs.h >>conftest.$ac_ext
15037 cat >>conftest.$ac_ext <<_ACEOF
15038 /* end confdefs.h. */
15039 #include <jerror.h>
15040 _ACEOF
15041 if { (ac_try="$ac_cpp conftest.$ac_ext"
15042 case "(($ac_try" in
15043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15044 *) ac_try_echo=$ac_try;;
15045 esac
15046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15047 $as_echo "$ac_try_echo") >&5
15048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15049 ac_status=$?
15050 grep -v '^ *+' conftest.er1 >conftest.err
15051 rm -f conftest.er1
15052 cat conftest.err >&5
15053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 (exit $ac_status); } >/dev/null && {
15055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15056 test ! -s conftest.err
15057 }; then
15058 ac_header_preproc=yes
15059 else
15060 $as_echo "$as_me: failed program was:" >&5
15061 sed 's/^/| /' conftest.$ac_ext >&5
15062
15063 ac_header_preproc=no
15064 fi
15065
15066 rm -f conftest.err conftest.$ac_ext
15067 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15068 $as_echo "$ac_header_preproc" >&6; }
15069
15070 # So? What about this header?
15071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15072 yes:no: )
15073 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
15074 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15075 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
15076 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
15077 ac_header_preproc=yes
15078 ;;
15079 no:yes:* )
15080 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
15081 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
15082 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
15083 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
15084 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
15085 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
15086 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
15087 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
15088 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
15089 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
15090 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
15091 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
15092
15093 ;;
15094 esac
15095 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
15096 $as_echo_n "checking for jerror.h... " >&6; }
15097 if test "${ac_cv_header_jerror_h+set}" = set; then
15098 $as_echo_n "(cached) " >&6
15099 else
15100 ac_cv_header_jerror_h=$ac_header_preproc
15101 fi
15102 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
15103 $as_echo "$ac_cv_header_jerror_h" >&6; }
15104
15105 fi
15106 if test $ac_cv_header_jerror_h = yes; then
15107 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
15108 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
15109 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
15110 $as_echo_n "(cached) " >&6
15111 else
15112 ac_check_lib_save_LIBS=$LIBS
15113 LIBS="-ljpeg $LIBS"
15114 cat >conftest.$ac_ext <<_ACEOF
15115 /* confdefs.h. */
15116 _ACEOF
15117 cat confdefs.h >>conftest.$ac_ext
15118 cat >>conftest.$ac_ext <<_ACEOF
15119 /* end confdefs.h. */
15120
15121 /* Override any GCC internal prototype to avoid an error.
15122 Use char because int might match the return type of a GCC
15123 builtin and then its argument prototype would still apply. */
15124 #ifdef __cplusplus
15125 extern "C"
15126 #endif
15127 char jpeg_destroy_compress ();
15128 int
15129 main ()
15130 {
15131 return jpeg_destroy_compress ();
15132 ;
15133 return 0;
15134 }
15135 _ACEOF
15136 rm -f conftest.$ac_objext conftest$ac_exeext
15137 if { (ac_try="$ac_link"
15138 case "(($ac_try" in
15139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15140 *) ac_try_echo=$ac_try;;
15141 esac
15142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15143 $as_echo "$ac_try_echo") >&5
15144 (eval "$ac_link") 2>conftest.er1
15145 ac_status=$?
15146 grep -v '^ *+' conftest.er1 >conftest.err
15147 rm -f conftest.er1
15148 cat conftest.err >&5
15149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); } && {
15151 test -z "$ac_c_werror_flag" ||
15152 test ! -s conftest.err
15153 } && test -s conftest$ac_exeext && {
15154 test "$cross_compiling" = yes ||
15155 $as_test_x conftest$ac_exeext
15156 }; then
15157 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
15158 else
15159 $as_echo "$as_me: failed program was:" >&5
15160 sed 's/^/| /' conftest.$ac_ext >&5
15161
15162 ac_cv_lib_jpeg_jpeg_destroy_compress=no
15163 fi
15164
15165 rm -rf conftest.dSYM
15166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15167 conftest$ac_exeext conftest.$ac_ext
15168 LIBS=$ac_check_lib_save_LIBS
15169 fi
15170 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
15171 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
15172 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
15173 HAVE_JPEG=yes
15174 fi
15175
15176 fi
15177
15178
15179 fi
15180
15181
15182 if test "${HAVE_JPEG}" = "yes"; then
15183 cat >>confdefs.h <<\_ACEOF
15184 #define HAVE_JPEG 1
15185 _ACEOF
15186
15187 cat >conftest.$ac_ext <<_ACEOF
15188 /* confdefs.h. */
15189 _ACEOF
15190 cat confdefs.h >>conftest.$ac_ext
15191 cat >>conftest.$ac_ext <<_ACEOF
15192 /* end confdefs.h. */
15193 #include <jpeglib.h>
15194 version=JPEG_LIB_VERSION
15195
15196 _ACEOF
15197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15198 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
15199 cat >>confdefs.h <<\_ACEOF
15200 #define HAVE_JPEG 1
15201 _ACEOF
15202
15203 else
15204 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
15205 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
15206 HAVE_JPEG=no
15207 fi
15208 rm -f conftest*
15209
15210 fi
15211 if test "${HAVE_JPEG}" = "yes"; then
15212 LIBJPEG=-ljpeg
15213 fi
15214 fi
15215
15216
15217 ### Use -lpng if available, unless `--with-png=no'.
15218 HAVE_PNG=no
15219 LIBPNG=
15220 if test "${HAVE_X11}" = "yes"; then
15221 if test "${with_png}" != "no"; then
15222 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
15223 # in /usr/include/libpng.
15224
15225
15226 for ac_header in png.h libpng/png.h
15227 do
15228 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15230 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15231 $as_echo_n "checking for $ac_header... " >&6; }
15232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15233 $as_echo_n "(cached) " >&6
15234 fi
15235 ac_res=`eval 'as_val=${'$as_ac_Header'}
15236 $as_echo "$as_val"'`
15237 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15238 $as_echo "$ac_res" >&6; }
15239 else
15240 # Is the header compilable?
15241 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15242 $as_echo_n "checking $ac_header usability... " >&6; }
15243 cat >conftest.$ac_ext <<_ACEOF
15244 /* confdefs.h. */
15245 _ACEOF
15246 cat confdefs.h >>conftest.$ac_ext
15247 cat >>conftest.$ac_ext <<_ACEOF
15248 /* end confdefs.h. */
15249 $ac_includes_default
15250 #include <$ac_header>
15251 _ACEOF
15252 rm -f conftest.$ac_objext
15253 if { (ac_try="$ac_compile"
15254 case "(($ac_try" in
15255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15256 *) ac_try_echo=$ac_try;;
15257 esac
15258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15259 $as_echo "$ac_try_echo") >&5
15260 (eval "$ac_compile") 2>conftest.er1
15261 ac_status=$?
15262 grep -v '^ *+' conftest.er1 >conftest.err
15263 rm -f conftest.er1
15264 cat conftest.err >&5
15265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); } && {
15267 test -z "$ac_c_werror_flag" ||
15268 test ! -s conftest.err
15269 } && test -s conftest.$ac_objext; then
15270 ac_header_compiler=yes
15271 else
15272 $as_echo "$as_me: failed program was:" >&5
15273 sed 's/^/| /' conftest.$ac_ext >&5
15274
15275 ac_header_compiler=no
15276 fi
15277
15278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15279 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15280 $as_echo "$ac_header_compiler" >&6; }
15281
15282 # Is the header present?
15283 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15284 $as_echo_n "checking $ac_header presence... " >&6; }
15285 cat >conftest.$ac_ext <<_ACEOF
15286 /* confdefs.h. */
15287 _ACEOF
15288 cat confdefs.h >>conftest.$ac_ext
15289 cat >>conftest.$ac_ext <<_ACEOF
15290 /* end confdefs.h. */
15291 #include <$ac_header>
15292 _ACEOF
15293 if { (ac_try="$ac_cpp conftest.$ac_ext"
15294 case "(($ac_try" in
15295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15296 *) ac_try_echo=$ac_try;;
15297 esac
15298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15299 $as_echo "$ac_try_echo") >&5
15300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15301 ac_status=$?
15302 grep -v '^ *+' conftest.er1 >conftest.err
15303 rm -f conftest.er1
15304 cat conftest.err >&5
15305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); } >/dev/null && {
15307 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15308 test ! -s conftest.err
15309 }; then
15310 ac_header_preproc=yes
15311 else
15312 $as_echo "$as_me: failed program was:" >&5
15313 sed 's/^/| /' conftest.$ac_ext >&5
15314
15315 ac_header_preproc=no
15316 fi
15317
15318 rm -f conftest.err conftest.$ac_ext
15319 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15320 $as_echo "$ac_header_preproc" >&6; }
15321
15322 # So? What about this header?
15323 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15324 yes:no: )
15325 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15326 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15327 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15328 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15329 ac_header_preproc=yes
15330 ;;
15331 no:yes:* )
15332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15333 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15334 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15335 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15336 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15337 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15338 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15339 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15340 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15341 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15342 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15343 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15344
15345 ;;
15346 esac
15347 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15348 $as_echo_n "checking for $ac_header... " >&6; }
15349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15350 $as_echo_n "(cached) " >&6
15351 else
15352 eval "$as_ac_Header=\$ac_header_preproc"
15353 fi
15354 ac_res=`eval 'as_val=${'$as_ac_Header'}
15355 $as_echo "$as_val"'`
15356 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15357 $as_echo "$ac_res" >&6; }
15358
15359 fi
15360 if test `eval 'as_val=${'$as_ac_Header'}
15361 $as_echo "$as_val"'` = yes; then
15362 cat >>confdefs.h <<_ACEOF
15363 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15364 _ACEOF
15365
15366 fi
15367
15368 done
15369
15370 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
15371 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
15372 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
15373 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
15374 $as_echo_n "(cached) " >&6
15375 else
15376 ac_check_lib_save_LIBS=$LIBS
15377 LIBS="-lpng -lz -lm $LIBS"
15378 cat >conftest.$ac_ext <<_ACEOF
15379 /* confdefs.h. */
15380 _ACEOF
15381 cat confdefs.h >>conftest.$ac_ext
15382 cat >>conftest.$ac_ext <<_ACEOF
15383 /* end confdefs.h. */
15384
15385 /* Override any GCC internal prototype to avoid an error.
15386 Use char because int might match the return type of a GCC
15387 builtin and then its argument prototype would still apply. */
15388 #ifdef __cplusplus
15389 extern "C"
15390 #endif
15391 char png_get_channels ();
15392 int
15393 main ()
15394 {
15395 return png_get_channels ();
15396 ;
15397 return 0;
15398 }
15399 _ACEOF
15400 rm -f conftest.$ac_objext conftest$ac_exeext
15401 if { (ac_try="$ac_link"
15402 case "(($ac_try" in
15403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15404 *) ac_try_echo=$ac_try;;
15405 esac
15406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15407 $as_echo "$ac_try_echo") >&5
15408 (eval "$ac_link") 2>conftest.er1
15409 ac_status=$?
15410 grep -v '^ *+' conftest.er1 >conftest.err
15411 rm -f conftest.er1
15412 cat conftest.err >&5
15413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); } && {
15415 test -z "$ac_c_werror_flag" ||
15416 test ! -s conftest.err
15417 } && test -s conftest$ac_exeext && {
15418 test "$cross_compiling" = yes ||
15419 $as_test_x conftest$ac_exeext
15420 }; then
15421 ac_cv_lib_png_png_get_channels=yes
15422 else
15423 $as_echo "$as_me: failed program was:" >&5
15424 sed 's/^/| /' conftest.$ac_ext >&5
15425
15426 ac_cv_lib_png_png_get_channels=no
15427 fi
15428
15429 rm -rf conftest.dSYM
15430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15431 conftest$ac_exeext conftest.$ac_ext
15432 LIBS=$ac_check_lib_save_LIBS
15433 fi
15434 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
15435 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
15436 if test $ac_cv_lib_png_png_get_channels = yes; then
15437 HAVE_PNG=yes
15438 fi
15439
15440 fi
15441 fi
15442
15443 if test "${HAVE_PNG}" = "yes"; then
15444
15445 cat >>confdefs.h <<\_ACEOF
15446 #define HAVE_PNG 1
15447 _ACEOF
15448
15449 LIBPNG="-lpng -lz -lm"
15450 fi
15451 fi
15452
15453
15454 ### Use -ltiff if available, unless `--with-tiff=no'.
15455 HAVE_TIFF=no
15456 LIBTIFF=
15457 if test "${HAVE_X11}" = "yes"; then
15458 if test "${with_tiff}" != "no"; then
15459 if test "${ac_cv_header_tiffio_h+set}" = set; then
15460 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15461 $as_echo_n "checking for tiffio.h... " >&6; }
15462 if test "${ac_cv_header_tiffio_h+set}" = set; then
15463 $as_echo_n "(cached) " >&6
15464 fi
15465 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15466 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15467 else
15468 # Is the header compilable?
15469 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15470 $as_echo_n "checking tiffio.h usability... " >&6; }
15471 cat >conftest.$ac_ext <<_ACEOF
15472 /* confdefs.h. */
15473 _ACEOF
15474 cat confdefs.h >>conftest.$ac_ext
15475 cat >>conftest.$ac_ext <<_ACEOF
15476 /* end confdefs.h. */
15477 $ac_includes_default
15478 #include <tiffio.h>
15479 _ACEOF
15480 rm -f conftest.$ac_objext
15481 if { (ac_try="$ac_compile"
15482 case "(($ac_try" in
15483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15484 *) ac_try_echo=$ac_try;;
15485 esac
15486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15487 $as_echo "$ac_try_echo") >&5
15488 (eval "$ac_compile") 2>conftest.er1
15489 ac_status=$?
15490 grep -v '^ *+' conftest.er1 >conftest.err
15491 rm -f conftest.er1
15492 cat conftest.err >&5
15493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); } && {
15495 test -z "$ac_c_werror_flag" ||
15496 test ! -s conftest.err
15497 } && test -s conftest.$ac_objext; then
15498 ac_header_compiler=yes
15499 else
15500 $as_echo "$as_me: failed program was:" >&5
15501 sed 's/^/| /' conftest.$ac_ext >&5
15502
15503 ac_header_compiler=no
15504 fi
15505
15506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15507 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15508 $as_echo "$ac_header_compiler" >&6; }
15509
15510 # Is the header present?
15511 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15512 $as_echo_n "checking tiffio.h presence... " >&6; }
15513 cat >conftest.$ac_ext <<_ACEOF
15514 /* confdefs.h. */
15515 _ACEOF
15516 cat confdefs.h >>conftest.$ac_ext
15517 cat >>conftest.$ac_ext <<_ACEOF
15518 /* end confdefs.h. */
15519 #include <tiffio.h>
15520 _ACEOF
15521 if { (ac_try="$ac_cpp conftest.$ac_ext"
15522 case "(($ac_try" in
15523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15524 *) ac_try_echo=$ac_try;;
15525 esac
15526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15527 $as_echo "$ac_try_echo") >&5
15528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15529 ac_status=$?
15530 grep -v '^ *+' conftest.er1 >conftest.err
15531 rm -f conftest.er1
15532 cat conftest.err >&5
15533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); } >/dev/null && {
15535 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15536 test ! -s conftest.err
15537 }; then
15538 ac_header_preproc=yes
15539 else
15540 $as_echo "$as_me: failed program was:" >&5
15541 sed 's/^/| /' conftest.$ac_ext >&5
15542
15543 ac_header_preproc=no
15544 fi
15545
15546 rm -f conftest.err conftest.$ac_ext
15547 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15548 $as_echo "$ac_header_preproc" >&6; }
15549
15550 # So? What about this header?
15551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15552 yes:no: )
15553 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15554 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15555 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15556 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15557 ac_header_preproc=yes
15558 ;;
15559 no:yes:* )
15560 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15561 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15562 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15563 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15564 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15565 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15566 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15567 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15568 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15569 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15570 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15571 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15572
15573 ;;
15574 esac
15575 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15576 $as_echo_n "checking for tiffio.h... " >&6; }
15577 if test "${ac_cv_header_tiffio_h+set}" = set; then
15578 $as_echo_n "(cached) " >&6
15579 else
15580 ac_cv_header_tiffio_h=$ac_header_preproc
15581 fi
15582 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15583 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15584
15585 fi
15586 if test $ac_cv_header_tiffio_h = yes; then
15587 tifflibs="-lz -lm"
15588 # At least one tiff package requires the jpeg library.
15589 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
15590 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15591 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15592 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15593 $as_echo_n "(cached) " >&6
15594 else
15595 ac_check_lib_save_LIBS=$LIBS
15596 LIBS="-ltiff $tifflibs $LIBS"
15597 cat >conftest.$ac_ext <<_ACEOF
15598 /* confdefs.h. */
15599 _ACEOF
15600 cat confdefs.h >>conftest.$ac_ext
15601 cat >>conftest.$ac_ext <<_ACEOF
15602 /* end confdefs.h. */
15603
15604 /* Override any GCC internal prototype to avoid an error.
15605 Use char because int might match the return type of a GCC
15606 builtin and then its argument prototype would still apply. */
15607 #ifdef __cplusplus
15608 extern "C"
15609 #endif
15610 char TIFFGetVersion ();
15611 int
15612 main ()
15613 {
15614 return TIFFGetVersion ();
15615 ;
15616 return 0;
15617 }
15618 _ACEOF
15619 rm -f conftest.$ac_objext conftest$ac_exeext
15620 if { (ac_try="$ac_link"
15621 case "(($ac_try" in
15622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15623 *) ac_try_echo=$ac_try;;
15624 esac
15625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15626 $as_echo "$ac_try_echo") >&5
15627 (eval "$ac_link") 2>conftest.er1
15628 ac_status=$?
15629 grep -v '^ *+' conftest.er1 >conftest.err
15630 rm -f conftest.er1
15631 cat conftest.err >&5
15632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); } && {
15634 test -z "$ac_c_werror_flag" ||
15635 test ! -s conftest.err
15636 } && test -s conftest$ac_exeext && {
15637 test "$cross_compiling" = yes ||
15638 $as_test_x conftest$ac_exeext
15639 }; then
15640 ac_cv_lib_tiff_TIFFGetVersion=yes
15641 else
15642 $as_echo "$as_me: failed program was:" >&5
15643 sed 's/^/| /' conftest.$ac_ext >&5
15644
15645 ac_cv_lib_tiff_TIFFGetVersion=no
15646 fi
15647
15648 rm -rf conftest.dSYM
15649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15650 conftest$ac_exeext conftest.$ac_ext
15651 LIBS=$ac_check_lib_save_LIBS
15652 fi
15653 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15654 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15655 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
15656 HAVE_TIFF=yes
15657 fi
15658
15659 fi
15660
15661
15662 fi
15663
15664 if test "${HAVE_TIFF}" = "yes"; then
15665
15666 cat >>confdefs.h <<\_ACEOF
15667 #define HAVE_TIFF 1
15668 _ACEOF
15669
15670 LIBTIFF=-ltiff
15671 fi
15672 fi
15673
15674
15675 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
15676 HAVE_GIF=no
15677 LIBGIF=
15678 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15679 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15680 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15681 $as_echo_n "checking for gif_lib.h... " >&6; }
15682 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15683 $as_echo_n "(cached) " >&6
15684 fi
15685 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15686 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15687 else
15688 # Is the header compilable?
15689 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15690 $as_echo_n "checking gif_lib.h usability... " >&6; }
15691 cat >conftest.$ac_ext <<_ACEOF
15692 /* confdefs.h. */
15693 _ACEOF
15694 cat confdefs.h >>conftest.$ac_ext
15695 cat >>conftest.$ac_ext <<_ACEOF
15696 /* end confdefs.h. */
15697 $ac_includes_default
15698 #include <gif_lib.h>
15699 _ACEOF
15700 rm -f conftest.$ac_objext
15701 if { (ac_try="$ac_compile"
15702 case "(($ac_try" in
15703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15704 *) ac_try_echo=$ac_try;;
15705 esac
15706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15707 $as_echo "$ac_try_echo") >&5
15708 (eval "$ac_compile") 2>conftest.er1
15709 ac_status=$?
15710 grep -v '^ *+' conftest.er1 >conftest.err
15711 rm -f conftest.er1
15712 cat conftest.err >&5
15713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); } && {
15715 test -z "$ac_c_werror_flag" ||
15716 test ! -s conftest.err
15717 } && test -s conftest.$ac_objext; then
15718 ac_header_compiler=yes
15719 else
15720 $as_echo "$as_me: failed program was:" >&5
15721 sed 's/^/| /' conftest.$ac_ext >&5
15722
15723 ac_header_compiler=no
15724 fi
15725
15726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15727 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15728 $as_echo "$ac_header_compiler" >&6; }
15729
15730 # Is the header present?
15731 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15732 $as_echo_n "checking gif_lib.h presence... " >&6; }
15733 cat >conftest.$ac_ext <<_ACEOF
15734 /* confdefs.h. */
15735 _ACEOF
15736 cat confdefs.h >>conftest.$ac_ext
15737 cat >>conftest.$ac_ext <<_ACEOF
15738 /* end confdefs.h. */
15739 #include <gif_lib.h>
15740 _ACEOF
15741 if { (ac_try="$ac_cpp conftest.$ac_ext"
15742 case "(($ac_try" in
15743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15744 *) ac_try_echo=$ac_try;;
15745 esac
15746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15747 $as_echo "$ac_try_echo") >&5
15748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15749 ac_status=$?
15750 grep -v '^ *+' conftest.er1 >conftest.err
15751 rm -f conftest.er1
15752 cat conftest.err >&5
15753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754 (exit $ac_status); } >/dev/null && {
15755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15756 test ! -s conftest.err
15757 }; then
15758 ac_header_preproc=yes
15759 else
15760 $as_echo "$as_me: failed program was:" >&5
15761 sed 's/^/| /' conftest.$ac_ext >&5
15762
15763 ac_header_preproc=no
15764 fi
15765
15766 rm -f conftest.err conftest.$ac_ext
15767 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15768 $as_echo "$ac_header_preproc" >&6; }
15769
15770 # So? What about this header?
15771 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15772 yes:no: )
15773 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15774 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15775 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
15776 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
15777 ac_header_preproc=yes
15778 ;;
15779 no:yes:* )
15780 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15781 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15782 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15783 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15784 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15785 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15786 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15787 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15788 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15789 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15790 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15791 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15792
15793 ;;
15794 esac
15795 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15796 $as_echo_n "checking for gif_lib.h... " >&6; }
15797 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15798 $as_echo_n "(cached) " >&6
15799 else
15800 ac_cv_header_gif_lib_h=$ac_header_preproc
15801 fi
15802 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15803 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15804
15805 fi
15806 if test $ac_cv_header_gif_lib_h = yes; then
15807 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15808 # Earlier versions can crash Emacs.
15809 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15810 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15811 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15812 $as_echo_n "(cached) " >&6
15813 else
15814 ac_check_lib_save_LIBS=$LIBS
15815 LIBS="-lgif $LIBS"
15816 cat >conftest.$ac_ext <<_ACEOF
15817 /* confdefs.h. */
15818 _ACEOF
15819 cat confdefs.h >>conftest.$ac_ext
15820 cat >>conftest.$ac_ext <<_ACEOF
15821 /* end confdefs.h. */
15822
15823 /* Override any GCC internal prototype to avoid an error.
15824 Use char because int might match the return type of a GCC
15825 builtin and then its argument prototype would still apply. */
15826 #ifdef __cplusplus
15827 extern "C"
15828 #endif
15829 char EGifPutExtensionLast ();
15830 int
15831 main ()
15832 {
15833 return EGifPutExtensionLast ();
15834 ;
15835 return 0;
15836 }
15837 _ACEOF
15838 rm -f conftest.$ac_objext conftest$ac_exeext
15839 if { (ac_try="$ac_link"
15840 case "(($ac_try" in
15841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15842 *) ac_try_echo=$ac_try;;
15843 esac
15844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15845 $as_echo "$ac_try_echo") >&5
15846 (eval "$ac_link") 2>conftest.er1
15847 ac_status=$?
15848 grep -v '^ *+' conftest.er1 >conftest.err
15849 rm -f conftest.er1
15850 cat conftest.err >&5
15851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); } && {
15853 test -z "$ac_c_werror_flag" ||
15854 test ! -s conftest.err
15855 } && test -s conftest$ac_exeext && {
15856 test "$cross_compiling" = yes ||
15857 $as_test_x conftest$ac_exeext
15858 }; then
15859 ac_cv_lib_gif_EGifPutExtensionLast=yes
15860 else
15861 $as_echo "$as_me: failed program was:" >&5
15862 sed 's/^/| /' conftest.$ac_ext >&5
15863
15864 ac_cv_lib_gif_EGifPutExtensionLast=no
15865 fi
15866
15867 rm -rf conftest.dSYM
15868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15869 conftest$ac_exeext conftest.$ac_ext
15870 LIBS=$ac_check_lib_save_LIBS
15871 fi
15872 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15873 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15874 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15875 HAVE_GIF=yes
15876 else
15877 HAVE_GIF=maybe
15878 fi
15879
15880 fi
15881
15882
15883
15884 if test "$HAVE_GIF" = yes; then
15885 LIBGIF=-lgif
15886 elif test "$HAVE_GIF" = maybe; then
15887 # If gif_lib.h but no libgif, try libungif.
15888 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15889 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15890 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15891 $as_echo_n "(cached) " >&6
15892 else
15893 ac_check_lib_save_LIBS=$LIBS
15894 LIBS="-lungif $LIBS"
15895 cat >conftest.$ac_ext <<_ACEOF
15896 /* confdefs.h. */
15897 _ACEOF
15898 cat confdefs.h >>conftest.$ac_ext
15899 cat >>conftest.$ac_ext <<_ACEOF
15900 /* end confdefs.h. */
15901
15902 /* Override any GCC internal prototype to avoid an error.
15903 Use char because int might match the return type of a GCC
15904 builtin and then its argument prototype would still apply. */
15905 #ifdef __cplusplus
15906 extern "C"
15907 #endif
15908 char EGifPutExtensionLast ();
15909 int
15910 main ()
15911 {
15912 return EGifPutExtensionLast ();
15913 ;
15914 return 0;
15915 }
15916 _ACEOF
15917 rm -f conftest.$ac_objext conftest$ac_exeext
15918 if { (ac_try="$ac_link"
15919 case "(($ac_try" in
15920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15921 *) ac_try_echo=$ac_try;;
15922 esac
15923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15924 $as_echo "$ac_try_echo") >&5
15925 (eval "$ac_link") 2>conftest.er1
15926 ac_status=$?
15927 grep -v '^ *+' conftest.er1 >conftest.err
15928 rm -f conftest.er1
15929 cat conftest.err >&5
15930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931 (exit $ac_status); } && {
15932 test -z "$ac_c_werror_flag" ||
15933 test ! -s conftest.err
15934 } && test -s conftest$ac_exeext && {
15935 test "$cross_compiling" = yes ||
15936 $as_test_x conftest$ac_exeext
15937 }; then
15938 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15939 else
15940 $as_echo "$as_me: failed program was:" >&5
15941 sed 's/^/| /' conftest.$ac_ext >&5
15942
15943 ac_cv_lib_ungif_EGifPutExtensionLast=no
15944 fi
15945
15946 rm -rf conftest.dSYM
15947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15948 conftest$ac_exeext conftest.$ac_ext
15949 LIBS=$ac_check_lib_save_LIBS
15950 fi
15951 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15952 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15953 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15954 HAVE_GIF=yes
15955 else
15956 HAVE_GIF=no
15957 fi
15958
15959 test "$HAVE_GIF" = yes && LIBGIF=-lungif
15960 fi
15961
15962 if test "${HAVE_GIF}" = "yes"; then
15963
15964 cat >>confdefs.h <<\_ACEOF
15965 #define HAVE_GIF 1
15966 _ACEOF
15967
15968 fi
15969 fi
15970
15971
15972 if test "${HAVE_X11}" = "yes"; then
15973 MISSING=""
15974 WITH_NO=""
15975 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15976 MISSING="libXpm" && WITH_NO="--with-xpm=no"
15977 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15978 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
15979 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15980 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
15981 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15982 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
15983 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15984 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15985
15986 if test "X${MISSING}" != X; then
15987 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15988 $MISSING
15989 Maybe some development libraries/packages are missing?
15990 If you don't want to link with them give
15991 $WITH_NO
15992 as options to configure" >&5
15993 $as_echo "$as_me: error: The following required libraries were not found:
15994 $MISSING
15995 Maybe some development libraries/packages are missing?
15996 If you don't want to link with them give
15997 $WITH_NO
15998 as options to configure" >&2;}
15999 { (exit 1); exit 1; }; }
16000 fi
16001 fi
16002
16003 ### Use -lgpm if available, unless `--with-gpm=no'.
16004 HAVE_GPM=no
16005 LIBGPM=
16006 MOUSE_SUPPORT=
16007 if test "${with_gpm}" != "no"; then
16008 if test "${ac_cv_header_gpm_h+set}" = set; then
16009 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
16010 $as_echo_n "checking for gpm.h... " >&6; }
16011 if test "${ac_cv_header_gpm_h+set}" = set; then
16012 $as_echo_n "(cached) " >&6
16013 fi
16014 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
16015 $as_echo "$ac_cv_header_gpm_h" >&6; }
16016 else
16017 # Is the header compilable?
16018 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
16019 $as_echo_n "checking gpm.h usability... " >&6; }
16020 cat >conftest.$ac_ext <<_ACEOF
16021 /* confdefs.h. */
16022 _ACEOF
16023 cat confdefs.h >>conftest.$ac_ext
16024 cat >>conftest.$ac_ext <<_ACEOF
16025 /* end confdefs.h. */
16026 $ac_includes_default
16027 #include <gpm.h>
16028 _ACEOF
16029 rm -f conftest.$ac_objext
16030 if { (ac_try="$ac_compile"
16031 case "(($ac_try" in
16032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16033 *) ac_try_echo=$ac_try;;
16034 esac
16035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16036 $as_echo "$ac_try_echo") >&5
16037 (eval "$ac_compile") 2>conftest.er1
16038 ac_status=$?
16039 grep -v '^ *+' conftest.er1 >conftest.err
16040 rm -f conftest.er1
16041 cat conftest.err >&5
16042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); } && {
16044 test -z "$ac_c_werror_flag" ||
16045 test ! -s conftest.err
16046 } && test -s conftest.$ac_objext; then
16047 ac_header_compiler=yes
16048 else
16049 $as_echo "$as_me: failed program was:" >&5
16050 sed 's/^/| /' conftest.$ac_ext >&5
16051
16052 ac_header_compiler=no
16053 fi
16054
16055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16056 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16057 $as_echo "$ac_header_compiler" >&6; }
16058
16059 # Is the header present?
16060 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
16061 $as_echo_n "checking gpm.h presence... " >&6; }
16062 cat >conftest.$ac_ext <<_ACEOF
16063 /* confdefs.h. */
16064 _ACEOF
16065 cat confdefs.h >>conftest.$ac_ext
16066 cat >>conftest.$ac_ext <<_ACEOF
16067 /* end confdefs.h. */
16068 #include <gpm.h>
16069 _ACEOF
16070 if { (ac_try="$ac_cpp conftest.$ac_ext"
16071 case "(($ac_try" in
16072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16073 *) ac_try_echo=$ac_try;;
16074 esac
16075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16076 $as_echo "$ac_try_echo") >&5
16077 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16078 ac_status=$?
16079 grep -v '^ *+' conftest.er1 >conftest.err
16080 rm -f conftest.er1
16081 cat conftest.err >&5
16082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); } >/dev/null && {
16084 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16085 test ! -s conftest.err
16086 }; then
16087 ac_header_preproc=yes
16088 else
16089 $as_echo "$as_me: failed program was:" >&5
16090 sed 's/^/| /' conftest.$ac_ext >&5
16091
16092 ac_header_preproc=no
16093 fi
16094
16095 rm -f conftest.err conftest.$ac_ext
16096 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16097 $as_echo "$ac_header_preproc" >&6; }
16098
16099 # So? What about this header?
16100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16101 yes:no: )
16102 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
16103 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16104 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
16105 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
16106 ac_header_preproc=yes
16107 ;;
16108 no:yes:* )
16109 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
16110 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
16111 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
16112 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
16113 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
16114 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
16115 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
16116 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
16117 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
16118 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
16119 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
16120 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
16121
16122 ;;
16123 esac
16124 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
16125 $as_echo_n "checking for gpm.h... " >&6; }
16126 if test "${ac_cv_header_gpm_h+set}" = set; then
16127 $as_echo_n "(cached) " >&6
16128 else
16129 ac_cv_header_gpm_h=$ac_header_preproc
16130 fi
16131 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
16132 $as_echo "$ac_cv_header_gpm_h" >&6; }
16133
16134 fi
16135 if test $ac_cv_header_gpm_h = yes; then
16136 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
16137 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
16138 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
16139 $as_echo_n "(cached) " >&6
16140 else
16141 ac_check_lib_save_LIBS=$LIBS
16142 LIBS="-lgpm $LIBS"
16143 cat >conftest.$ac_ext <<_ACEOF
16144 /* confdefs.h. */
16145 _ACEOF
16146 cat confdefs.h >>conftest.$ac_ext
16147 cat >>conftest.$ac_ext <<_ACEOF
16148 /* end confdefs.h. */
16149
16150 /* Override any GCC internal prototype to avoid an error.
16151 Use char because int might match the return type of a GCC
16152 builtin and then its argument prototype would still apply. */
16153 #ifdef __cplusplus
16154 extern "C"
16155 #endif
16156 char Gpm_Open ();
16157 int
16158 main ()
16159 {
16160 return Gpm_Open ();
16161 ;
16162 return 0;
16163 }
16164 _ACEOF
16165 rm -f conftest.$ac_objext conftest$ac_exeext
16166 if { (ac_try="$ac_link"
16167 case "(($ac_try" in
16168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16169 *) ac_try_echo=$ac_try;;
16170 esac
16171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16172 $as_echo "$ac_try_echo") >&5
16173 (eval "$ac_link") 2>conftest.er1
16174 ac_status=$?
16175 grep -v '^ *+' conftest.er1 >conftest.err
16176 rm -f conftest.er1
16177 cat conftest.err >&5
16178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179 (exit $ac_status); } && {
16180 test -z "$ac_c_werror_flag" ||
16181 test ! -s conftest.err
16182 } && test -s conftest$ac_exeext && {
16183 test "$cross_compiling" = yes ||
16184 $as_test_x conftest$ac_exeext
16185 }; then
16186 ac_cv_lib_gpm_Gpm_Open=yes
16187 else
16188 $as_echo "$as_me: failed program was:" >&5
16189 sed 's/^/| /' conftest.$ac_ext >&5
16190
16191 ac_cv_lib_gpm_Gpm_Open=no
16192 fi
16193
16194 rm -rf conftest.dSYM
16195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16196 conftest$ac_exeext conftest.$ac_ext
16197 LIBS=$ac_check_lib_save_LIBS
16198 fi
16199 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
16200 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
16201 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
16202 HAVE_GPM=yes
16203 fi
16204
16205 fi
16206
16207
16208
16209 if test "${HAVE_GPM}" = "yes"; then
16210
16211 cat >>confdefs.h <<\_ACEOF
16212 #define HAVE_GPM 1
16213 _ACEOF
16214
16215 LIBGPM=-lgpm
16216 ## May be reset below.
16217 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
16218 fi
16219 fi
16220
16221
16222 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16223 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16224 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16225 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16226 $as_echo_n "(cached) " >&6
16227 fi
16228 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16229 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16230 else
16231 # Is the header compilable?
16232 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
16233 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
16234 cat >conftest.$ac_ext <<_ACEOF
16235 /* confdefs.h. */
16236 _ACEOF
16237 cat confdefs.h >>conftest.$ac_ext
16238 cat >>conftest.$ac_ext <<_ACEOF
16239 /* end confdefs.h. */
16240 $ac_includes_default
16241 #include <malloc/malloc.h>
16242 _ACEOF
16243 rm -f conftest.$ac_objext
16244 if { (ac_try="$ac_compile"
16245 case "(($ac_try" in
16246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16247 *) ac_try_echo=$ac_try;;
16248 esac
16249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16250 $as_echo "$ac_try_echo") >&5
16251 (eval "$ac_compile") 2>conftest.er1
16252 ac_status=$?
16253 grep -v '^ *+' conftest.er1 >conftest.err
16254 rm -f conftest.er1
16255 cat conftest.err >&5
16256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); } && {
16258 test -z "$ac_c_werror_flag" ||
16259 test ! -s conftest.err
16260 } && test -s conftest.$ac_objext; then
16261 ac_header_compiler=yes
16262 else
16263 $as_echo "$as_me: failed program was:" >&5
16264 sed 's/^/| /' conftest.$ac_ext >&5
16265
16266 ac_header_compiler=no
16267 fi
16268
16269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16270 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16271 $as_echo "$ac_header_compiler" >&6; }
16272
16273 # Is the header present?
16274 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
16275 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
16276 cat >conftest.$ac_ext <<_ACEOF
16277 /* confdefs.h. */
16278 _ACEOF
16279 cat confdefs.h >>conftest.$ac_ext
16280 cat >>conftest.$ac_ext <<_ACEOF
16281 /* end confdefs.h. */
16282 #include <malloc/malloc.h>
16283 _ACEOF
16284 if { (ac_try="$ac_cpp conftest.$ac_ext"
16285 case "(($ac_try" in
16286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16287 *) ac_try_echo=$ac_try;;
16288 esac
16289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16290 $as_echo "$ac_try_echo") >&5
16291 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16292 ac_status=$?
16293 grep -v '^ *+' conftest.er1 >conftest.err
16294 rm -f conftest.er1
16295 cat conftest.err >&5
16296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297 (exit $ac_status); } >/dev/null && {
16298 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16299 test ! -s conftest.err
16300 }; then
16301 ac_header_preproc=yes
16302 else
16303 $as_echo "$as_me: failed program was:" >&5
16304 sed 's/^/| /' conftest.$ac_ext >&5
16305
16306 ac_header_preproc=no
16307 fi
16308
16309 rm -f conftest.err conftest.$ac_ext
16310 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16311 $as_echo "$ac_header_preproc" >&6; }
16312
16313 # So? What about this header?
16314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16315 yes:no: )
16316 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
16317 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16318 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
16319 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
16320 ac_header_preproc=yes
16321 ;;
16322 no:yes:* )
16323 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
16324 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
16325 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
16326 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
16327 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
16328 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
16329 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
16330 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
16331 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
16332 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
16333 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
16334 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
16335
16336 ;;
16337 esac
16338 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16339 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16340 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16341 $as_echo_n "(cached) " >&6
16342 else
16343 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16344 fi
16345 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16346 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16347
16348 fi
16349 if test $ac_cv_header_malloc_malloc_h = yes; then
16350
16351 cat >>confdefs.h <<\_ACEOF
16352 #define HAVE_MALLOC_MALLOC_H 1
16353 _ACEOF
16354
16355 fi
16356
16357
16358
16359 C_SWITCH_X_SYSTEM=
16360 ### Use NeXTstep API to implement GUI.
16361 if test "${HAVE_NS}" = "yes"; then
16362
16363 cat >>confdefs.h <<\_ACEOF
16364 #define HAVE_NS 1
16365 _ACEOF
16366
16367 if test "${NS_IMPL_COCOA}" = "yes"; then
16368
16369 cat >>confdefs.h <<\_ACEOF
16370 #define NS_IMPL_COCOA 1
16371 _ACEOF
16372
16373 GNU_OBJC_CFLAGS=
16374 fi
16375 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16376
16377 cat >>confdefs.h <<\_ACEOF
16378 #define NS_IMPL_GNUSTEP 1
16379 _ACEOF
16380
16381 # See also .m.o rule in Makefile.in */
16382 # FIXME: are all these flags really needed? Document here why. */
16383 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
16384 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16385 fi
16386 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16387
16388 cat >>confdefs.h <<\_ACEOF
16389 #define NS_HAVE_NSINTEGER 1
16390 _ACEOF
16391
16392 fi
16393 # We also have mouse menus.
16394 HAVE_MENUS=yes
16395 OTHER_FILES=ns-app
16396 fi
16397
16398
16399 ### Use session management (-lSM -lICE) if available
16400 HAVE_X_SM=no
16401 LIBXSM=
16402 if test "${HAVE_X11}" = "yes"; then
16403 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16404 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16405 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16406 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16407 $as_echo_n "(cached) " >&6
16408 fi
16409 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16410 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16411 else
16412 # Is the header compilable?
16413 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16414 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16415 cat >conftest.$ac_ext <<_ACEOF
16416 /* confdefs.h. */
16417 _ACEOF
16418 cat confdefs.h >>conftest.$ac_ext
16419 cat >>conftest.$ac_ext <<_ACEOF
16420 /* end confdefs.h. */
16421 $ac_includes_default
16422 #include <X11/SM/SMlib.h>
16423 _ACEOF
16424 rm -f conftest.$ac_objext
16425 if { (ac_try="$ac_compile"
16426 case "(($ac_try" in
16427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16428 *) ac_try_echo=$ac_try;;
16429 esac
16430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16431 $as_echo "$ac_try_echo") >&5
16432 (eval "$ac_compile") 2>conftest.er1
16433 ac_status=$?
16434 grep -v '^ *+' conftest.er1 >conftest.err
16435 rm -f conftest.er1
16436 cat conftest.err >&5
16437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438 (exit $ac_status); } && {
16439 test -z "$ac_c_werror_flag" ||
16440 test ! -s conftest.err
16441 } && test -s conftest.$ac_objext; then
16442 ac_header_compiler=yes
16443 else
16444 $as_echo "$as_me: failed program was:" >&5
16445 sed 's/^/| /' conftest.$ac_ext >&5
16446
16447 ac_header_compiler=no
16448 fi
16449
16450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16451 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16452 $as_echo "$ac_header_compiler" >&6; }
16453
16454 # Is the header present?
16455 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16456 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16457 cat >conftest.$ac_ext <<_ACEOF
16458 /* confdefs.h. */
16459 _ACEOF
16460 cat confdefs.h >>conftest.$ac_ext
16461 cat >>conftest.$ac_ext <<_ACEOF
16462 /* end confdefs.h. */
16463 #include <X11/SM/SMlib.h>
16464 _ACEOF
16465 if { (ac_try="$ac_cpp conftest.$ac_ext"
16466 case "(($ac_try" in
16467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16468 *) ac_try_echo=$ac_try;;
16469 esac
16470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16471 $as_echo "$ac_try_echo") >&5
16472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16473 ac_status=$?
16474 grep -v '^ *+' conftest.er1 >conftest.err
16475 rm -f conftest.er1
16476 cat conftest.err >&5
16477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478 (exit $ac_status); } >/dev/null && {
16479 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16480 test ! -s conftest.err
16481 }; then
16482 ac_header_preproc=yes
16483 else
16484 $as_echo "$as_me: failed program was:" >&5
16485 sed 's/^/| /' conftest.$ac_ext >&5
16486
16487 ac_header_preproc=no
16488 fi
16489
16490 rm -f conftest.err conftest.$ac_ext
16491 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16492 $as_echo "$ac_header_preproc" >&6; }
16493
16494 # So? What about this header?
16495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16496 yes:no: )
16497 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16498 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16499 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16500 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16501 ac_header_preproc=yes
16502 ;;
16503 no:yes:* )
16504 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16505 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16506 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16507 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16508 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16509 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16510 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16511 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16512 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16513 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16514 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16515 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16516
16517 ;;
16518 esac
16519 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16520 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16521 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16522 $as_echo_n "(cached) " >&6
16523 else
16524 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16525 fi
16526 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16527 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16528
16529 fi
16530 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16531 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16532 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16533 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16534 $as_echo_n "(cached) " >&6
16535 else
16536 ac_check_lib_save_LIBS=$LIBS
16537 LIBS="-lSM -lICE $LIBS"
16538 cat >conftest.$ac_ext <<_ACEOF
16539 /* confdefs.h. */
16540 _ACEOF
16541 cat confdefs.h >>conftest.$ac_ext
16542 cat >>conftest.$ac_ext <<_ACEOF
16543 /* end confdefs.h. */
16544
16545 /* Override any GCC internal prototype to avoid an error.
16546 Use char because int might match the return type of a GCC
16547 builtin and then its argument prototype would still apply. */
16548 #ifdef __cplusplus
16549 extern "C"
16550 #endif
16551 char SmcOpenConnection ();
16552 int
16553 main ()
16554 {
16555 return SmcOpenConnection ();
16556 ;
16557 return 0;
16558 }
16559 _ACEOF
16560 rm -f conftest.$ac_objext conftest$ac_exeext
16561 if { (ac_try="$ac_link"
16562 case "(($ac_try" in
16563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16564 *) ac_try_echo=$ac_try;;
16565 esac
16566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16567 $as_echo "$ac_try_echo") >&5
16568 (eval "$ac_link") 2>conftest.er1
16569 ac_status=$?
16570 grep -v '^ *+' conftest.er1 >conftest.err
16571 rm -f conftest.er1
16572 cat conftest.err >&5
16573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574 (exit $ac_status); } && {
16575 test -z "$ac_c_werror_flag" ||
16576 test ! -s conftest.err
16577 } && test -s conftest$ac_exeext && {
16578 test "$cross_compiling" = yes ||
16579 $as_test_x conftest$ac_exeext
16580 }; then
16581 ac_cv_lib_SM_SmcOpenConnection=yes
16582 else
16583 $as_echo "$as_me: failed program was:" >&5
16584 sed 's/^/| /' conftest.$ac_ext >&5
16585
16586 ac_cv_lib_SM_SmcOpenConnection=no
16587 fi
16588
16589 rm -rf conftest.dSYM
16590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16591 conftest$ac_exeext conftest.$ac_ext
16592 LIBS=$ac_check_lib_save_LIBS
16593 fi
16594 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16595 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16596 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
16597 HAVE_X_SM=yes
16598 fi
16599
16600 fi
16601
16602
16603
16604 if test "${HAVE_X_SM}" = "yes"; then
16605
16606 cat >>confdefs.h <<\_ACEOF
16607 #define HAVE_X_SM 1
16608 _ACEOF
16609
16610 LIBXSM="-lSM -lICE"
16611 case "$LIBS" in
16612 *-lSM*) ;;
16613 *) LIBS="$LIBXSM $LIBS" ;;
16614 esac
16615 fi
16616 fi
16617
16618
16619 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16620 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16621 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16622 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16623 $as_echo_n "(cached) " >&6
16624 else
16625 cat >conftest.$ac_ext <<_ACEOF
16626 /* confdefs.h. */
16627 _ACEOF
16628 cat confdefs.h >>conftest.$ac_ext
16629 cat >>conftest.$ac_ext <<_ACEOF
16630 /* end confdefs.h. */
16631 #include <netdb.h>
16632 int
16633 main ()
16634 {
16635 return h_errno;
16636 ;
16637 return 0;
16638 }
16639 _ACEOF
16640 rm -f conftest.$ac_objext conftest$ac_exeext
16641 if { (ac_try="$ac_link"
16642 case "(($ac_try" in
16643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16644 *) ac_try_echo=$ac_try;;
16645 esac
16646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16647 $as_echo "$ac_try_echo") >&5
16648 (eval "$ac_link") 2>conftest.er1
16649 ac_status=$?
16650 grep -v '^ *+' conftest.er1 >conftest.err
16651 rm -f conftest.er1
16652 cat conftest.err >&5
16653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); } && {
16655 test -z "$ac_c_werror_flag" ||
16656 test ! -s conftest.err
16657 } && test -s conftest$ac_exeext && {
16658 test "$cross_compiling" = yes ||
16659 $as_test_x conftest$ac_exeext
16660 }; then
16661 emacs_cv_netdb_declares_h_errno=yes
16662 else
16663 $as_echo "$as_me: failed program was:" >&5
16664 sed 's/^/| /' conftest.$ac_ext >&5
16665
16666 emacs_cv_netdb_declares_h_errno=no
16667 fi
16668
16669 rm -rf conftest.dSYM
16670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16671 conftest$ac_exeext conftest.$ac_ext
16672 fi
16673 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16674 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16675 if test $emacs_cv_netdb_declares_h_errno = yes; then
16676
16677 cat >>confdefs.h <<\_ACEOF
16678 #define HAVE_H_ERRNO 1
16679 _ACEOF
16680
16681 fi
16682
16683 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16684 # for constant arguments. Useless!
16685 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16686 $as_echo_n "checking for working alloca.h... " >&6; }
16687 if test "${ac_cv_working_alloca_h+set}" = set; then
16688 $as_echo_n "(cached) " >&6
16689 else
16690 cat >conftest.$ac_ext <<_ACEOF
16691 /* confdefs.h. */
16692 _ACEOF
16693 cat confdefs.h >>conftest.$ac_ext
16694 cat >>conftest.$ac_ext <<_ACEOF
16695 /* end confdefs.h. */
16696 #include <alloca.h>
16697 int
16698 main ()
16699 {
16700 char *p = (char *) alloca (2 * sizeof (int));
16701 if (p) return 0;
16702 ;
16703 return 0;
16704 }
16705 _ACEOF
16706 rm -f conftest.$ac_objext conftest$ac_exeext
16707 if { (ac_try="$ac_link"
16708 case "(($ac_try" in
16709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16710 *) ac_try_echo=$ac_try;;
16711 esac
16712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16713 $as_echo "$ac_try_echo") >&5
16714 (eval "$ac_link") 2>conftest.er1
16715 ac_status=$?
16716 grep -v '^ *+' conftest.er1 >conftest.err
16717 rm -f conftest.er1
16718 cat conftest.err >&5
16719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); } && {
16721 test -z "$ac_c_werror_flag" ||
16722 test ! -s conftest.err
16723 } && test -s conftest$ac_exeext && {
16724 test "$cross_compiling" = yes ||
16725 $as_test_x conftest$ac_exeext
16726 }; then
16727 ac_cv_working_alloca_h=yes
16728 else
16729 $as_echo "$as_me: failed program was:" >&5
16730 sed 's/^/| /' conftest.$ac_ext >&5
16731
16732 ac_cv_working_alloca_h=no
16733 fi
16734
16735 rm -rf conftest.dSYM
16736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16737 conftest$ac_exeext conftest.$ac_ext
16738 fi
16739 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16740 $as_echo "$ac_cv_working_alloca_h" >&6; }
16741 if test $ac_cv_working_alloca_h = yes; then
16742
16743 cat >>confdefs.h <<\_ACEOF
16744 #define HAVE_ALLOCA_H 1
16745 _ACEOF
16746
16747 fi
16748
16749 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16750 $as_echo_n "checking for alloca... " >&6; }
16751 if test "${ac_cv_func_alloca_works+set}" = set; then
16752 $as_echo_n "(cached) " >&6
16753 else
16754 cat >conftest.$ac_ext <<_ACEOF
16755 /* confdefs.h. */
16756 _ACEOF
16757 cat confdefs.h >>conftest.$ac_ext
16758 cat >>conftest.$ac_ext <<_ACEOF
16759 /* end confdefs.h. */
16760 #ifdef __GNUC__
16761 # define alloca __builtin_alloca
16762 #else
16763 # ifdef _MSC_VER
16764 # include <malloc.h>
16765 # define alloca _alloca
16766 # else
16767 # ifdef HAVE_ALLOCA_H
16768 # include <alloca.h>
16769 # else
16770 # ifdef _AIX
16771 #pragma alloca
16772 # else
16773 # ifndef alloca /* predefined by HP cc +Olibcalls */
16774 char *alloca ();
16775 # endif
16776 # endif
16777 # endif
16778 # endif
16779 #endif
16780
16781 int
16782 main ()
16783 {
16784 char *p = (char *) alloca (1);
16785 if (p) return 0;
16786 ;
16787 return 0;
16788 }
16789 _ACEOF
16790 rm -f conftest.$ac_objext conftest$ac_exeext
16791 if { (ac_try="$ac_link"
16792 case "(($ac_try" in
16793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16794 *) ac_try_echo=$ac_try;;
16795 esac
16796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16797 $as_echo "$ac_try_echo") >&5
16798 (eval "$ac_link") 2>conftest.er1
16799 ac_status=$?
16800 grep -v '^ *+' conftest.er1 >conftest.err
16801 rm -f conftest.er1
16802 cat conftest.err >&5
16803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); } && {
16805 test -z "$ac_c_werror_flag" ||
16806 test ! -s conftest.err
16807 } && test -s conftest$ac_exeext && {
16808 test "$cross_compiling" = yes ||
16809 $as_test_x conftest$ac_exeext
16810 }; then
16811 ac_cv_func_alloca_works=yes
16812 else
16813 $as_echo "$as_me: failed program was:" >&5
16814 sed 's/^/| /' conftest.$ac_ext >&5
16815
16816 ac_cv_func_alloca_works=no
16817 fi
16818
16819 rm -rf conftest.dSYM
16820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16821 conftest$ac_exeext conftest.$ac_ext
16822 fi
16823 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16824 $as_echo "$ac_cv_func_alloca_works" >&6; }
16825
16826 if test $ac_cv_func_alloca_works = yes; then
16827
16828 cat >>confdefs.h <<\_ACEOF
16829 #define HAVE_ALLOCA 1
16830 _ACEOF
16831
16832 else
16833 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16834 # that cause trouble. Some versions do not even contain alloca or
16835 # contain a buggy version. If you still want to use their alloca,
16836 # use ar to extract alloca.o from them instead of compiling alloca.c.
16837
16838 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16839
16840 cat >>confdefs.h <<\_ACEOF
16841 #define C_ALLOCA 1
16842 _ACEOF
16843
16844
16845 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16846 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16847 if test "${ac_cv_os_cray+set}" = set; then
16848 $as_echo_n "(cached) " >&6
16849 else
16850 cat >conftest.$ac_ext <<_ACEOF
16851 /* confdefs.h. */
16852 _ACEOF
16853 cat confdefs.h >>conftest.$ac_ext
16854 cat >>conftest.$ac_ext <<_ACEOF
16855 /* end confdefs.h. */
16856 #if defined CRAY && ! defined CRAY2
16857 webecray
16858 #else
16859 wenotbecray
16860 #endif
16861
16862 _ACEOF
16863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16864 $EGREP "webecray" >/dev/null 2>&1; then
16865 ac_cv_os_cray=yes
16866 else
16867 ac_cv_os_cray=no
16868 fi
16869 rm -f conftest*
16870
16871 fi
16872 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16873 $as_echo "$ac_cv_os_cray" >&6; }
16874 if test $ac_cv_os_cray = yes; then
16875 for ac_func in _getb67 GETB67 getb67; do
16876 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16877 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16878 $as_echo_n "checking for $ac_func... " >&6; }
16879 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16880 $as_echo_n "(cached) " >&6
16881 else
16882 cat >conftest.$ac_ext <<_ACEOF
16883 /* confdefs.h. */
16884 _ACEOF
16885 cat confdefs.h >>conftest.$ac_ext
16886 cat >>conftest.$ac_ext <<_ACEOF
16887 /* end confdefs.h. */
16888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16890 #define $ac_func innocuous_$ac_func
16891
16892 /* System header to define __stub macros and hopefully few prototypes,
16893 which can conflict with char $ac_func (); below.
16894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16895 <limits.h> exists even on freestanding compilers. */
16896
16897 #ifdef __STDC__
16898 # include <limits.h>
16899 #else
16900 # include <assert.h>
16901 #endif
16902
16903 #undef $ac_func
16904
16905 /* Override any GCC internal prototype to avoid an error.
16906 Use char because int might match the return type of a GCC
16907 builtin and then its argument prototype would still apply. */
16908 #ifdef __cplusplus
16909 extern "C"
16910 #endif
16911 char $ac_func ();
16912 /* The GNU C library defines this for functions which it implements
16913 to always fail with ENOSYS. Some functions are actually named
16914 something starting with __ and the normal name is an alias. */
16915 #if defined __stub_$ac_func || defined __stub___$ac_func
16916 choke me
16917 #endif
16918
16919 int
16920 main ()
16921 {
16922 return $ac_func ();
16923 ;
16924 return 0;
16925 }
16926 _ACEOF
16927 rm -f conftest.$ac_objext conftest$ac_exeext
16928 if { (ac_try="$ac_link"
16929 case "(($ac_try" in
16930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16931 *) ac_try_echo=$ac_try;;
16932 esac
16933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16934 $as_echo "$ac_try_echo") >&5
16935 (eval "$ac_link") 2>conftest.er1
16936 ac_status=$?
16937 grep -v '^ *+' conftest.er1 >conftest.err
16938 rm -f conftest.er1
16939 cat conftest.err >&5
16940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); } && {
16942 test -z "$ac_c_werror_flag" ||
16943 test ! -s conftest.err
16944 } && test -s conftest$ac_exeext && {
16945 test "$cross_compiling" = yes ||
16946 $as_test_x conftest$ac_exeext
16947 }; then
16948 eval "$as_ac_var=yes"
16949 else
16950 $as_echo "$as_me: failed program was:" >&5
16951 sed 's/^/| /' conftest.$ac_ext >&5
16952
16953 eval "$as_ac_var=no"
16954 fi
16955
16956 rm -rf conftest.dSYM
16957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16958 conftest$ac_exeext conftest.$ac_ext
16959 fi
16960 ac_res=`eval 'as_val=${'$as_ac_var'}
16961 $as_echo "$as_val"'`
16962 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16963 $as_echo "$ac_res" >&6; }
16964 if test `eval 'as_val=${'$as_ac_var'}
16965 $as_echo "$as_val"'` = yes; then
16966
16967 cat >>confdefs.h <<_ACEOF
16968 #define CRAY_STACKSEG_END $ac_func
16969 _ACEOF
16970
16971 break
16972 fi
16973
16974 done
16975 fi
16976
16977 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16978 $as_echo_n "checking stack direction for C alloca... " >&6; }
16979 if test "${ac_cv_c_stack_direction+set}" = set; then
16980 $as_echo_n "(cached) " >&6
16981 else
16982 if test "$cross_compiling" = yes; then
16983 ac_cv_c_stack_direction=0
16984 else
16985 cat >conftest.$ac_ext <<_ACEOF
16986 /* confdefs.h. */
16987 _ACEOF
16988 cat confdefs.h >>conftest.$ac_ext
16989 cat >>conftest.$ac_ext <<_ACEOF
16990 /* end confdefs.h. */
16991 $ac_includes_default
16992 int
16993 find_stack_direction ()
16994 {
16995 static char *addr = 0;
16996 auto char dummy;
16997 if (addr == 0)
16998 {
16999 addr = &dummy;
17000 return find_stack_direction ();
17001 }
17002 else
17003 return (&dummy > addr) ? 1 : -1;
17004 }
17005
17006 int
17007 main ()
17008 {
17009 return find_stack_direction () < 0;
17010 }
17011 _ACEOF
17012 rm -f conftest$ac_exeext
17013 if { (ac_try="$ac_link"
17014 case "(($ac_try" in
17015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17016 *) ac_try_echo=$ac_try;;
17017 esac
17018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17019 $as_echo "$ac_try_echo") >&5
17020 (eval "$ac_link") 2>&5
17021 ac_status=$?
17022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17024 { (case "(($ac_try" in
17025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17026 *) ac_try_echo=$ac_try;;
17027 esac
17028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17029 $as_echo "$ac_try_echo") >&5
17030 (eval "$ac_try") 2>&5
17031 ac_status=$?
17032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); }; }; then
17034 ac_cv_c_stack_direction=1
17035 else
17036 $as_echo "$as_me: program exited with status $ac_status" >&5
17037 $as_echo "$as_me: failed program was:" >&5
17038 sed 's/^/| /' conftest.$ac_ext >&5
17039
17040 ( exit $ac_status )
17041 ac_cv_c_stack_direction=-1
17042 fi
17043 rm -rf conftest.dSYM
17044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17045 fi
17046
17047
17048 fi
17049 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17050 $as_echo "$ac_cv_c_stack_direction" >&6; }
17051
17052 cat >>confdefs.h <<_ACEOF
17053 #define STACK_DIRECTION $ac_cv_c_stack_direction
17054 _ACEOF
17055
17056
17057 fi
17058
17059
17060 if test x"$ac_cv_func_alloca_works" != xyes; then
17061 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
17062 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
17063 { (exit 1); exit 1; }; }
17064 fi
17065
17066 # fmod, logb, and frexp are found in -lm on most systems.
17067 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
17068
17069 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
17070 $as_echo_n "checking for sqrt in -lm... " >&6; }
17071 if test "${ac_cv_lib_m_sqrt+set}" = set; then
17072 $as_echo_n "(cached) " >&6
17073 else
17074 ac_check_lib_save_LIBS=$LIBS
17075 LIBS="-lm $LIBS"
17076 cat >conftest.$ac_ext <<_ACEOF
17077 /* confdefs.h. */
17078 _ACEOF
17079 cat confdefs.h >>conftest.$ac_ext
17080 cat >>conftest.$ac_ext <<_ACEOF
17081 /* end confdefs.h. */
17082
17083 /* Override any GCC internal prototype to avoid an error.
17084 Use char because int might match the return type of a GCC
17085 builtin and then its argument prototype would still apply. */
17086 #ifdef __cplusplus
17087 extern "C"
17088 #endif
17089 char sqrt ();
17090 int
17091 main ()
17092 {
17093 return sqrt ();
17094 ;
17095 return 0;
17096 }
17097 _ACEOF
17098 rm -f conftest.$ac_objext conftest$ac_exeext
17099 if { (ac_try="$ac_link"
17100 case "(($ac_try" in
17101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17102 *) ac_try_echo=$ac_try;;
17103 esac
17104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17105 $as_echo "$ac_try_echo") >&5
17106 (eval "$ac_link") 2>conftest.er1
17107 ac_status=$?
17108 grep -v '^ *+' conftest.er1 >conftest.err
17109 rm -f conftest.er1
17110 cat conftest.err >&5
17111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); } && {
17113 test -z "$ac_c_werror_flag" ||
17114 test ! -s conftest.err
17115 } && test -s conftest$ac_exeext && {
17116 test "$cross_compiling" = yes ||
17117 $as_test_x conftest$ac_exeext
17118 }; then
17119 ac_cv_lib_m_sqrt=yes
17120 else
17121 $as_echo "$as_me: failed program was:" >&5
17122 sed 's/^/| /' conftest.$ac_ext >&5
17123
17124 ac_cv_lib_m_sqrt=no
17125 fi
17126
17127 rm -rf conftest.dSYM
17128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17129 conftest$ac_exeext conftest.$ac_ext
17130 LIBS=$ac_check_lib_save_LIBS
17131 fi
17132 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
17133 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
17134 if test $ac_cv_lib_m_sqrt = yes; then
17135 cat >>confdefs.h <<_ACEOF
17136 #define HAVE_LIBM 1
17137 _ACEOF
17138
17139 LIBS="-lm $LIBS"
17140
17141 fi
17142
17143
17144 # Check for mail-locking functions in a "mail" library. Probably this should
17145 # have the same check as for liblockfile below.
17146 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
17147 $as_echo_n "checking for maillock in -lmail... " >&6; }
17148 if test "${ac_cv_lib_mail_maillock+set}" = set; then
17149 $as_echo_n "(cached) " >&6
17150 else
17151 ac_check_lib_save_LIBS=$LIBS
17152 LIBS="-lmail $LIBS"
17153 cat >conftest.$ac_ext <<_ACEOF
17154 /* confdefs.h. */
17155 _ACEOF
17156 cat confdefs.h >>conftest.$ac_ext
17157 cat >>conftest.$ac_ext <<_ACEOF
17158 /* end confdefs.h. */
17159
17160 /* Override any GCC internal prototype to avoid an error.
17161 Use char because int might match the return type of a GCC
17162 builtin and then its argument prototype would still apply. */
17163 #ifdef __cplusplus
17164 extern "C"
17165 #endif
17166 char maillock ();
17167 int
17168 main ()
17169 {
17170 return maillock ();
17171 ;
17172 return 0;
17173 }
17174 _ACEOF
17175 rm -f conftest.$ac_objext conftest$ac_exeext
17176 if { (ac_try="$ac_link"
17177 case "(($ac_try" in
17178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17179 *) ac_try_echo=$ac_try;;
17180 esac
17181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17182 $as_echo "$ac_try_echo") >&5
17183 (eval "$ac_link") 2>conftest.er1
17184 ac_status=$?
17185 grep -v '^ *+' conftest.er1 >conftest.err
17186 rm -f conftest.er1
17187 cat conftest.err >&5
17188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); } && {
17190 test -z "$ac_c_werror_flag" ||
17191 test ! -s conftest.err
17192 } && test -s conftest$ac_exeext && {
17193 test "$cross_compiling" = yes ||
17194 $as_test_x conftest$ac_exeext
17195 }; then
17196 ac_cv_lib_mail_maillock=yes
17197 else
17198 $as_echo "$as_me: failed program was:" >&5
17199 sed 's/^/| /' conftest.$ac_ext >&5
17200
17201 ac_cv_lib_mail_maillock=no
17202 fi
17203
17204 rm -rf conftest.dSYM
17205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17206 conftest$ac_exeext conftest.$ac_ext
17207 LIBS=$ac_check_lib_save_LIBS
17208 fi
17209 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
17210 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
17211 if test $ac_cv_lib_mail_maillock = yes; then
17212 have_mail=yes
17213 else
17214 have_mail=no
17215 fi
17216
17217 if test $have_mail = yes; then
17218 LIBS_MAIL=-lmail
17219 LIBS="$LIBS_MAIL $LIBS"
17220
17221 cat >>confdefs.h <<\_ACEOF
17222 #define HAVE_LIBMAIL 1
17223 _ACEOF
17224
17225 else
17226 LIBS_MAIL=
17227 fi
17228 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
17229 $as_echo_n "checking for maillock in -llockfile... " >&6; }
17230 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
17231 $as_echo_n "(cached) " >&6
17232 else
17233 ac_check_lib_save_LIBS=$LIBS
17234 LIBS="-llockfile $LIBS"
17235 cat >conftest.$ac_ext <<_ACEOF
17236 /* confdefs.h. */
17237 _ACEOF
17238 cat confdefs.h >>conftest.$ac_ext
17239 cat >>conftest.$ac_ext <<_ACEOF
17240 /* end confdefs.h. */
17241
17242 /* Override any GCC internal prototype to avoid an error.
17243 Use char because int might match the return type of a GCC
17244 builtin and then its argument prototype would still apply. */
17245 #ifdef __cplusplus
17246 extern "C"
17247 #endif
17248 char maillock ();
17249 int
17250 main ()
17251 {
17252 return maillock ();
17253 ;
17254 return 0;
17255 }
17256 _ACEOF
17257 rm -f conftest.$ac_objext conftest$ac_exeext
17258 if { (ac_try="$ac_link"
17259 case "(($ac_try" in
17260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17261 *) ac_try_echo=$ac_try;;
17262 esac
17263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17264 $as_echo "$ac_try_echo") >&5
17265 (eval "$ac_link") 2>conftest.er1
17266 ac_status=$?
17267 grep -v '^ *+' conftest.er1 >conftest.err
17268 rm -f conftest.er1
17269 cat conftest.err >&5
17270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); } && {
17272 test -z "$ac_c_werror_flag" ||
17273 test ! -s conftest.err
17274 } && test -s conftest$ac_exeext && {
17275 test "$cross_compiling" = yes ||
17276 $as_test_x conftest$ac_exeext
17277 }; then
17278 ac_cv_lib_lockfile_maillock=yes
17279 else
17280 $as_echo "$as_me: failed program was:" >&5
17281 sed 's/^/| /' conftest.$ac_ext >&5
17282
17283 ac_cv_lib_lockfile_maillock=no
17284 fi
17285
17286 rm -rf conftest.dSYM
17287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17288 conftest$ac_exeext conftest.$ac_ext
17289 LIBS=$ac_check_lib_save_LIBS
17290 fi
17291 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
17292 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
17293 if test $ac_cv_lib_lockfile_maillock = yes; then
17294 have_lockfile=yes
17295 else
17296 have_lockfile=no
17297 fi
17298
17299 if test $have_lockfile = yes; then
17300 LIBS_MAIL=-llockfile
17301 LIBS="$LIBS_MAIL $LIBS"
17302
17303 cat >>confdefs.h <<\_ACEOF
17304 #define HAVE_LIBLOCKFILE 1
17305 _ACEOF
17306
17307 else
17308 # If we have the shared liblockfile, assume we must use it for mail
17309 # locking (e.g. Debian). If we couldn't link against liblockfile
17310 # (no liblockfile.a installed), ensure that we don't need to.
17311 # Extract the first word of "liblockfile.so", so it can be a program name with args.
17312 set dummy liblockfile.so; ac_word=$2
17313 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17314 $as_echo_n "checking for $ac_word... " >&6; }
17315 if test "${ac_cv_prog_liblockfile+set}" = set; then
17316 $as_echo_n "(cached) " >&6
17317 else
17318 if test -n "$liblockfile"; then
17319 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
17320 else
17321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17322 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
17323 for as_dir in $as_dummy
17324 do
17325 IFS=$as_save_IFS
17326 test -z "$as_dir" && as_dir=.
17327 for ac_exec_ext in '' $ac_executable_extensions; do
17328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17329 ac_cv_prog_liblockfile="yes"
17330 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17331 break 2
17332 fi
17333 done
17334 done
17335 IFS=$as_save_IFS
17336
17337 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
17338 fi
17339 fi
17340 liblockfile=$ac_cv_prog_liblockfile
17341 if test -n "$liblockfile"; then
17342 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
17343 $as_echo "$liblockfile" >&6; }
17344 else
17345 { $as_echo "$as_me:$LINENO: result: no" >&5
17346 $as_echo "no" >&6; }
17347 fi
17348
17349
17350 if test $ac_cv_prog_liblockfile = yes; then
17351 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
17352 This probably means that movemail could lose mail.
17353 There may be a \`development' package to install containing liblockfile." >&5
17354 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
17355 This probably means that movemail could lose mail.
17356 There may be a \`development' package to install containing liblockfile." >&2;}
17357 { (exit 1); exit 1; }; }
17358 fi
17359 fi
17360
17361 for ac_func in touchlock
17362 do
17363 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17364 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17365 $as_echo_n "checking for $ac_func... " >&6; }
17366 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17367 $as_echo_n "(cached) " >&6
17368 else
17369 cat >conftest.$ac_ext <<_ACEOF
17370 /* confdefs.h. */
17371 _ACEOF
17372 cat confdefs.h >>conftest.$ac_ext
17373 cat >>conftest.$ac_ext <<_ACEOF
17374 /* end confdefs.h. */
17375 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17377 #define $ac_func innocuous_$ac_func
17378
17379 /* System header to define __stub macros and hopefully few prototypes,
17380 which can conflict with char $ac_func (); below.
17381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17382 <limits.h> exists even on freestanding compilers. */
17383
17384 #ifdef __STDC__
17385 # include <limits.h>
17386 #else
17387 # include <assert.h>
17388 #endif
17389
17390 #undef $ac_func
17391
17392 /* Override any GCC internal prototype to avoid an error.
17393 Use char because int might match the return type of a GCC
17394 builtin and then its argument prototype would still apply. */
17395 #ifdef __cplusplus
17396 extern "C"
17397 #endif
17398 char $ac_func ();
17399 /* The GNU C library defines this for functions which it implements
17400 to always fail with ENOSYS. Some functions are actually named
17401 something starting with __ and the normal name is an alias. */
17402 #if defined __stub_$ac_func || defined __stub___$ac_func
17403 choke me
17404 #endif
17405
17406 int
17407 main ()
17408 {
17409 return $ac_func ();
17410 ;
17411 return 0;
17412 }
17413 _ACEOF
17414 rm -f conftest.$ac_objext conftest$ac_exeext
17415 if { (ac_try="$ac_link"
17416 case "(($ac_try" in
17417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17418 *) ac_try_echo=$ac_try;;
17419 esac
17420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17421 $as_echo "$ac_try_echo") >&5
17422 (eval "$ac_link") 2>conftest.er1
17423 ac_status=$?
17424 grep -v '^ *+' conftest.er1 >conftest.err
17425 rm -f conftest.er1
17426 cat conftest.err >&5
17427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); } && {
17429 test -z "$ac_c_werror_flag" ||
17430 test ! -s conftest.err
17431 } && test -s conftest$ac_exeext && {
17432 test "$cross_compiling" = yes ||
17433 $as_test_x conftest$ac_exeext
17434 }; then
17435 eval "$as_ac_var=yes"
17436 else
17437 $as_echo "$as_me: failed program was:" >&5
17438 sed 's/^/| /' conftest.$ac_ext >&5
17439
17440 eval "$as_ac_var=no"
17441 fi
17442
17443 rm -rf conftest.dSYM
17444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17445 conftest$ac_exeext conftest.$ac_ext
17446 fi
17447 ac_res=`eval 'as_val=${'$as_ac_var'}
17448 $as_echo "$as_val"'`
17449 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17450 $as_echo "$ac_res" >&6; }
17451 if test `eval 'as_val=${'$as_ac_var'}
17452 $as_echo "$as_val"'` = yes; then
17453 cat >>confdefs.h <<_ACEOF
17454 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17455 _ACEOF
17456
17457 fi
17458 done
17459
17460
17461 for ac_header in maillock.h
17462 do
17463 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17465 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17466 $as_echo_n "checking for $ac_header... " >&6; }
17467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17468 $as_echo_n "(cached) " >&6
17469 fi
17470 ac_res=`eval 'as_val=${'$as_ac_Header'}
17471 $as_echo "$as_val"'`
17472 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17473 $as_echo "$ac_res" >&6; }
17474 else
17475 # Is the header compilable?
17476 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17477 $as_echo_n "checking $ac_header usability... " >&6; }
17478 cat >conftest.$ac_ext <<_ACEOF
17479 /* confdefs.h. */
17480 _ACEOF
17481 cat confdefs.h >>conftest.$ac_ext
17482 cat >>conftest.$ac_ext <<_ACEOF
17483 /* end confdefs.h. */
17484 $ac_includes_default
17485 #include <$ac_header>
17486 _ACEOF
17487 rm -f conftest.$ac_objext
17488 if { (ac_try="$ac_compile"
17489 case "(($ac_try" in
17490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17491 *) ac_try_echo=$ac_try;;
17492 esac
17493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17494 $as_echo "$ac_try_echo") >&5
17495 (eval "$ac_compile") 2>conftest.er1
17496 ac_status=$?
17497 grep -v '^ *+' conftest.er1 >conftest.err
17498 rm -f conftest.er1
17499 cat conftest.err >&5
17500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); } && {
17502 test -z "$ac_c_werror_flag" ||
17503 test ! -s conftest.err
17504 } && test -s conftest.$ac_objext; then
17505 ac_header_compiler=yes
17506 else
17507 $as_echo "$as_me: failed program was:" >&5
17508 sed 's/^/| /' conftest.$ac_ext >&5
17509
17510 ac_header_compiler=no
17511 fi
17512
17513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17514 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17515 $as_echo "$ac_header_compiler" >&6; }
17516
17517 # Is the header present?
17518 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17519 $as_echo_n "checking $ac_header presence... " >&6; }
17520 cat >conftest.$ac_ext <<_ACEOF
17521 /* confdefs.h. */
17522 _ACEOF
17523 cat confdefs.h >>conftest.$ac_ext
17524 cat >>conftest.$ac_ext <<_ACEOF
17525 /* end confdefs.h. */
17526 #include <$ac_header>
17527 _ACEOF
17528 if { (ac_try="$ac_cpp conftest.$ac_ext"
17529 case "(($ac_try" in
17530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17531 *) ac_try_echo=$ac_try;;
17532 esac
17533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17534 $as_echo "$ac_try_echo") >&5
17535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17536 ac_status=$?
17537 grep -v '^ *+' conftest.er1 >conftest.err
17538 rm -f conftest.er1
17539 cat conftest.err >&5
17540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); } >/dev/null && {
17542 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17543 test ! -s conftest.err
17544 }; then
17545 ac_header_preproc=yes
17546 else
17547 $as_echo "$as_me: failed program was:" >&5
17548 sed 's/^/| /' conftest.$ac_ext >&5
17549
17550 ac_header_preproc=no
17551 fi
17552
17553 rm -f conftest.err conftest.$ac_ext
17554 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17555 $as_echo "$ac_header_preproc" >&6; }
17556
17557 # So? What about this header?
17558 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17559 yes:no: )
17560 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17561 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17562 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17563 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17564 ac_header_preproc=yes
17565 ;;
17566 no:yes:* )
17567 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17568 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17569 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17570 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17571 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17572 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17573 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17574 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17575 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17576 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17577 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17578 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17579
17580 ;;
17581 esac
17582 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17583 $as_echo_n "checking for $ac_header... " >&6; }
17584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17585 $as_echo_n "(cached) " >&6
17586 else
17587 eval "$as_ac_Header=\$ac_header_preproc"
17588 fi
17589 ac_res=`eval 'as_val=${'$as_ac_Header'}
17590 $as_echo "$as_val"'`
17591 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17592 $as_echo "$ac_res" >&6; }
17593
17594 fi
17595 if test `eval 'as_val=${'$as_ac_Header'}
17596 $as_echo "$as_val"'` = yes; then
17597 cat >>confdefs.h <<_ACEOF
17598 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17599 _ACEOF
17600
17601 fi
17602
17603 done
17604
17605
17606
17607 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
17608 ## interlock access to the mail spool. The alternative is a lock file named
17609 ## /usr/spool/mail/$USER.lock.
17610 mail_lock=no
17611 case "$opsys" in
17612 aix4-2) mail_lock="lockf" ;;
17613
17614 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
17615
17616 ## On GNU/Linux systems, both methods are used by various mail programs.
17617 ## I assume most people are using newer mailers that have heard of flock.
17618 ## Change this if you need to.
17619 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
17620 ## configure gets the right answers, and that means *NOT* using flock.
17621 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
17622 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
17623 ## Debian maintainer hasn't provided a clean fix for Emacs.
17624 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
17625 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
17626 ## correct logic. -- fx
17627 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
17628 ## liblockfile is a Free Software replacement for libmail, used on
17629 ## Debian systems and elsewhere. -rfr.
17630 gnu-*)
17631 mail_lock="flock"
17632 if test $have_mail = yes || test $have_lockfile = yes; then
17633 test $ac_cv_header_maillock_h = yes && mail_lock=no
17634 fi
17635 ;;
17636 esac
17637
17638 BLESSMAIL_TARGET=
17639 case "$mail_lock" in
17640 flock)
17641 cat >>confdefs.h <<\_ACEOF
17642 #define MAIL_USE_FLOCK 1
17643 _ACEOF
17644 ;;
17645
17646 lockf)
17647 cat >>confdefs.h <<\_ACEOF
17648 #define MAIL_USE_LOCKF 1
17649 _ACEOF
17650 ;;
17651
17652 *) BLESSMAIL_TARGET="need-blessmail" ;;
17653 esac
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730 for ac_func in gethostname getdomainname dup2 \
17731 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17732 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17733 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17734 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17735 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17736 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17737 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17738 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17739 cfmakeraw cfsetspeed isnan copysign
17740 do
17741 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17742 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17743 $as_echo_n "checking for $ac_func... " >&6; }
17744 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17745 $as_echo_n "(cached) " >&6
17746 else
17747 cat >conftest.$ac_ext <<_ACEOF
17748 /* confdefs.h. */
17749 _ACEOF
17750 cat confdefs.h >>conftest.$ac_ext
17751 cat >>conftest.$ac_ext <<_ACEOF
17752 /* end confdefs.h. */
17753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17755 #define $ac_func innocuous_$ac_func
17756
17757 /* System header to define __stub macros and hopefully few prototypes,
17758 which can conflict with char $ac_func (); below.
17759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17760 <limits.h> exists even on freestanding compilers. */
17761
17762 #ifdef __STDC__
17763 # include <limits.h>
17764 #else
17765 # include <assert.h>
17766 #endif
17767
17768 #undef $ac_func
17769
17770 /* Override any GCC internal prototype to avoid an error.
17771 Use char because int might match the return type of a GCC
17772 builtin and then its argument prototype would still apply. */
17773 #ifdef __cplusplus
17774 extern "C"
17775 #endif
17776 char $ac_func ();
17777 /* The GNU C library defines this for functions which it implements
17778 to always fail with ENOSYS. Some functions are actually named
17779 something starting with __ and the normal name is an alias. */
17780 #if defined __stub_$ac_func || defined __stub___$ac_func
17781 choke me
17782 #endif
17783
17784 int
17785 main ()
17786 {
17787 return $ac_func ();
17788 ;
17789 return 0;
17790 }
17791 _ACEOF
17792 rm -f conftest.$ac_objext conftest$ac_exeext
17793 if { (ac_try="$ac_link"
17794 case "(($ac_try" in
17795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17796 *) ac_try_echo=$ac_try;;
17797 esac
17798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17799 $as_echo "$ac_try_echo") >&5
17800 (eval "$ac_link") 2>conftest.er1
17801 ac_status=$?
17802 grep -v '^ *+' conftest.er1 >conftest.err
17803 rm -f conftest.er1
17804 cat conftest.err >&5
17805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806 (exit $ac_status); } && {
17807 test -z "$ac_c_werror_flag" ||
17808 test ! -s conftest.err
17809 } && test -s conftest$ac_exeext && {
17810 test "$cross_compiling" = yes ||
17811 $as_test_x conftest$ac_exeext
17812 }; then
17813 eval "$as_ac_var=yes"
17814 else
17815 $as_echo "$as_me: failed program was:" >&5
17816 sed 's/^/| /' conftest.$ac_ext >&5
17817
17818 eval "$as_ac_var=no"
17819 fi
17820
17821 rm -rf conftest.dSYM
17822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17823 conftest$ac_exeext conftest.$ac_ext
17824 fi
17825 ac_res=`eval 'as_val=${'$as_ac_var'}
17826 $as_echo "$as_val"'`
17827 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17828 $as_echo "$ac_res" >&6; }
17829 if test `eval 'as_val=${'$as_ac_var'}
17830 $as_echo "$as_val"'` = yes; then
17831 cat >>confdefs.h <<_ACEOF
17832 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17833 _ACEOF
17834
17835 fi
17836 done
17837
17838
17839
17840 for ac_header in sys/un.h
17841 do
17842 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17844 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17845 $as_echo_n "checking for $ac_header... " >&6; }
17846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17847 $as_echo_n "(cached) " >&6
17848 fi
17849 ac_res=`eval 'as_val=${'$as_ac_Header'}
17850 $as_echo "$as_val"'`
17851 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17852 $as_echo "$ac_res" >&6; }
17853 else
17854 # Is the header compilable?
17855 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17856 $as_echo_n "checking $ac_header usability... " >&6; }
17857 cat >conftest.$ac_ext <<_ACEOF
17858 /* confdefs.h. */
17859 _ACEOF
17860 cat confdefs.h >>conftest.$ac_ext
17861 cat >>conftest.$ac_ext <<_ACEOF
17862 /* end confdefs.h. */
17863 $ac_includes_default
17864 #include <$ac_header>
17865 _ACEOF
17866 rm -f conftest.$ac_objext
17867 if { (ac_try="$ac_compile"
17868 case "(($ac_try" in
17869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17870 *) ac_try_echo=$ac_try;;
17871 esac
17872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17873 $as_echo "$ac_try_echo") >&5
17874 (eval "$ac_compile") 2>conftest.er1
17875 ac_status=$?
17876 grep -v '^ *+' conftest.er1 >conftest.err
17877 rm -f conftest.er1
17878 cat conftest.err >&5
17879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); } && {
17881 test -z "$ac_c_werror_flag" ||
17882 test ! -s conftest.err
17883 } && test -s conftest.$ac_objext; then
17884 ac_header_compiler=yes
17885 else
17886 $as_echo "$as_me: failed program was:" >&5
17887 sed 's/^/| /' conftest.$ac_ext >&5
17888
17889 ac_header_compiler=no
17890 fi
17891
17892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17893 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17894 $as_echo "$ac_header_compiler" >&6; }
17895
17896 # Is the header present?
17897 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17898 $as_echo_n "checking $ac_header presence... " >&6; }
17899 cat >conftest.$ac_ext <<_ACEOF
17900 /* confdefs.h. */
17901 _ACEOF
17902 cat confdefs.h >>conftest.$ac_ext
17903 cat >>conftest.$ac_ext <<_ACEOF
17904 /* end confdefs.h. */
17905 #include <$ac_header>
17906 _ACEOF
17907 if { (ac_try="$ac_cpp conftest.$ac_ext"
17908 case "(($ac_try" in
17909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17910 *) ac_try_echo=$ac_try;;
17911 esac
17912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17913 $as_echo "$ac_try_echo") >&5
17914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17915 ac_status=$?
17916 grep -v '^ *+' conftest.er1 >conftest.err
17917 rm -f conftest.er1
17918 cat conftest.err >&5
17919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920 (exit $ac_status); } >/dev/null && {
17921 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17922 test ! -s conftest.err
17923 }; then
17924 ac_header_preproc=yes
17925 else
17926 $as_echo "$as_me: failed program was:" >&5
17927 sed 's/^/| /' conftest.$ac_ext >&5
17928
17929 ac_header_preproc=no
17930 fi
17931
17932 rm -f conftest.err conftest.$ac_ext
17933 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17934 $as_echo "$ac_header_preproc" >&6; }
17935
17936 # So? What about this header?
17937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17938 yes:no: )
17939 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17940 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17941 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17942 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17943 ac_header_preproc=yes
17944 ;;
17945 no:yes:* )
17946 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17947 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17948 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17949 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17950 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17951 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17952 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17953 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17954 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17955 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17956 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17957 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17958
17959 ;;
17960 esac
17961 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17962 $as_echo_n "checking for $ac_header... " >&6; }
17963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17964 $as_echo_n "(cached) " >&6
17965 else
17966 eval "$as_ac_Header=\$ac_header_preproc"
17967 fi
17968 ac_res=`eval 'as_val=${'$as_ac_Header'}
17969 $as_echo "$as_val"'`
17970 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17971 $as_echo "$ac_res" >&6; }
17972
17973 fi
17974 if test `eval 'as_val=${'$as_ac_Header'}
17975 $as_echo "$as_val"'` = yes; then
17976 cat >>confdefs.h <<_ACEOF
17977 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17978 _ACEOF
17979
17980 fi
17981
17982 done
17983
17984
17985
17986
17987
17988
17989 for ac_header in $ac_header_list
17990 do
17991 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17993 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17994 $as_echo_n "checking for $ac_header... " >&6; }
17995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17996 $as_echo_n "(cached) " >&6
17997 fi
17998 ac_res=`eval 'as_val=${'$as_ac_Header'}
17999 $as_echo "$as_val"'`
18000 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18001 $as_echo "$ac_res" >&6; }
18002 else
18003 # Is the header compilable?
18004 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18005 $as_echo_n "checking $ac_header usability... " >&6; }
18006 cat >conftest.$ac_ext <<_ACEOF
18007 /* confdefs.h. */
18008 _ACEOF
18009 cat confdefs.h >>conftest.$ac_ext
18010 cat >>conftest.$ac_ext <<_ACEOF
18011 /* end confdefs.h. */
18012 $ac_includes_default
18013 #include <$ac_header>
18014 _ACEOF
18015 rm -f conftest.$ac_objext
18016 if { (ac_try="$ac_compile"
18017 case "(($ac_try" in
18018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18019 *) ac_try_echo=$ac_try;;
18020 esac
18021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18022 $as_echo "$ac_try_echo") >&5
18023 (eval "$ac_compile") 2>conftest.er1
18024 ac_status=$?
18025 grep -v '^ *+' conftest.er1 >conftest.err
18026 rm -f conftest.er1
18027 cat conftest.err >&5
18028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); } && {
18030 test -z "$ac_c_werror_flag" ||
18031 test ! -s conftest.err
18032 } && test -s conftest.$ac_objext; then
18033 ac_header_compiler=yes
18034 else
18035 $as_echo "$as_me: failed program was:" >&5
18036 sed 's/^/| /' conftest.$ac_ext >&5
18037
18038 ac_header_compiler=no
18039 fi
18040
18041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18042 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18043 $as_echo "$ac_header_compiler" >&6; }
18044
18045 # Is the header present?
18046 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18047 $as_echo_n "checking $ac_header presence... " >&6; }
18048 cat >conftest.$ac_ext <<_ACEOF
18049 /* confdefs.h. */
18050 _ACEOF
18051 cat confdefs.h >>conftest.$ac_ext
18052 cat >>conftest.$ac_ext <<_ACEOF
18053 /* end confdefs.h. */
18054 #include <$ac_header>
18055 _ACEOF
18056 if { (ac_try="$ac_cpp conftest.$ac_ext"
18057 case "(($ac_try" in
18058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18059 *) ac_try_echo=$ac_try;;
18060 esac
18061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18062 $as_echo "$ac_try_echo") >&5
18063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18064 ac_status=$?
18065 grep -v '^ *+' conftest.er1 >conftest.err
18066 rm -f conftest.er1
18067 cat conftest.err >&5
18068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); } >/dev/null && {
18070 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18071 test ! -s conftest.err
18072 }; then
18073 ac_header_preproc=yes
18074 else
18075 $as_echo "$as_me: failed program was:" >&5
18076 sed 's/^/| /' conftest.$ac_ext >&5
18077
18078 ac_header_preproc=no
18079 fi
18080
18081 rm -f conftest.err conftest.$ac_ext
18082 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18083 $as_echo "$ac_header_preproc" >&6; }
18084
18085 # So? What about this header?
18086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18087 yes:no: )
18088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18089 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18091 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18092 ac_header_preproc=yes
18093 ;;
18094 no:yes:* )
18095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18096 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18098 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18099 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18100 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18101 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18102 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18103 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18104 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18105 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18106 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18107
18108 ;;
18109 esac
18110 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18111 $as_echo_n "checking for $ac_header... " >&6; }
18112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18113 $as_echo_n "(cached) " >&6
18114 else
18115 eval "$as_ac_Header=\$ac_header_preproc"
18116 fi
18117 ac_res=`eval 'as_val=${'$as_ac_Header'}
18118 $as_echo "$as_val"'`
18119 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18120 $as_echo "$ac_res" >&6; }
18121
18122 fi
18123 if test `eval 'as_val=${'$as_ac_Header'}
18124 $as_echo "$as_val"'` = yes; then
18125 cat >>confdefs.h <<_ACEOF
18126 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18127 _ACEOF
18128
18129 fi
18130
18131 done
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141 for ac_func in $ac_func_list
18142 do
18143 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18144 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18145 $as_echo_n "checking for $ac_func... " >&6; }
18146 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18147 $as_echo_n "(cached) " >&6
18148 else
18149 cat >conftest.$ac_ext <<_ACEOF
18150 /* confdefs.h. */
18151 _ACEOF
18152 cat confdefs.h >>conftest.$ac_ext
18153 cat >>conftest.$ac_ext <<_ACEOF
18154 /* end confdefs.h. */
18155 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18157 #define $ac_func innocuous_$ac_func
18158
18159 /* System header to define __stub macros and hopefully few prototypes,
18160 which can conflict with char $ac_func (); below.
18161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18162 <limits.h> exists even on freestanding compilers. */
18163
18164 #ifdef __STDC__
18165 # include <limits.h>
18166 #else
18167 # include <assert.h>
18168 #endif
18169
18170 #undef $ac_func
18171
18172 /* Override any GCC internal prototype to avoid an error.
18173 Use char because int might match the return type of a GCC
18174 builtin and then its argument prototype would still apply. */
18175 #ifdef __cplusplus
18176 extern "C"
18177 #endif
18178 char $ac_func ();
18179 /* The GNU C library defines this for functions which it implements
18180 to always fail with ENOSYS. Some functions are actually named
18181 something starting with __ and the normal name is an alias. */
18182 #if defined __stub_$ac_func || defined __stub___$ac_func
18183 choke me
18184 #endif
18185
18186 int
18187 main ()
18188 {
18189 return $ac_func ();
18190 ;
18191 return 0;
18192 }
18193 _ACEOF
18194 rm -f conftest.$ac_objext conftest$ac_exeext
18195 if { (ac_try="$ac_link"
18196 case "(($ac_try" in
18197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18198 *) ac_try_echo=$ac_try;;
18199 esac
18200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18201 $as_echo "$ac_try_echo") >&5
18202 (eval "$ac_link") 2>conftest.er1
18203 ac_status=$?
18204 grep -v '^ *+' conftest.er1 >conftest.err
18205 rm -f conftest.er1
18206 cat conftest.err >&5
18207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208 (exit $ac_status); } && {
18209 test -z "$ac_c_werror_flag" ||
18210 test ! -s conftest.err
18211 } && test -s conftest$ac_exeext && {
18212 test "$cross_compiling" = yes ||
18213 $as_test_x conftest$ac_exeext
18214 }; then
18215 eval "$as_ac_var=yes"
18216 else
18217 $as_echo "$as_me: failed program was:" >&5
18218 sed 's/^/| /' conftest.$ac_ext >&5
18219
18220 eval "$as_ac_var=no"
18221 fi
18222
18223 rm -rf conftest.dSYM
18224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18225 conftest$ac_exeext conftest.$ac_ext
18226 fi
18227 ac_res=`eval 'as_val=${'$as_ac_var'}
18228 $as_echo "$as_val"'`
18229 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18230 $as_echo "$ac_res" >&6; }
18231 if test `eval 'as_val=${'$as_ac_var'}
18232 $as_echo "$as_val"'` = yes; then
18233 cat >>confdefs.h <<_ACEOF
18234 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18235 _ACEOF
18236
18237 fi
18238 done
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
18257 $as_echo_n "checking for working mktime... " >&6; }
18258 if test "${ac_cv_func_working_mktime+set}" = set; then
18259 $as_echo_n "(cached) " >&6
18260 else
18261 if test "$cross_compiling" = yes; then
18262 ac_cv_func_working_mktime=no
18263 else
18264 cat >conftest.$ac_ext <<_ACEOF
18265 /* confdefs.h. */
18266 _ACEOF
18267 cat confdefs.h >>conftest.$ac_ext
18268 cat >>conftest.$ac_ext <<_ACEOF
18269 /* end confdefs.h. */
18270 /* Test program from Paul Eggert and Tony Leneis. */
18271 #ifdef TIME_WITH_SYS_TIME
18272 # include <sys/time.h>
18273 # include <time.h>
18274 #else
18275 # ifdef HAVE_SYS_TIME_H
18276 # include <sys/time.h>
18277 # else
18278 # include <time.h>
18279 # endif
18280 #endif
18281
18282 #include <limits.h>
18283 #include <stdlib.h>
18284
18285 #ifdef HAVE_UNISTD_H
18286 # include <unistd.h>
18287 #endif
18288
18289 #ifndef HAVE_ALARM
18290 # define alarm(X) /* empty */
18291 #endif
18292
18293 /* Work around redefinition to rpl_putenv by other config tests. */
18294 #undef putenv
18295
18296 static time_t time_t_max;
18297 static time_t time_t_min;
18298
18299 /* Values we'll use to set the TZ environment variable. */
18300 static char *tz_strings[] = {
18301 (char *) 0, "TZ=GMT0", "TZ=JST-9",
18302 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
18303 };
18304 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
18305
18306 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
18307 Based on a problem report from Andreas Jaeger. */
18308 static int
18309 spring_forward_gap ()
18310 {
18311 /* glibc (up to about 1998-10-07) failed this test. */
18312 struct tm tm;
18313
18314 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18315 instead of "TZ=America/Vancouver" in order to detect the bug even
18316 on systems that don't support the Olson extension, or don't have the
18317 full zoneinfo tables installed. */
18318 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
18319
18320 tm.tm_year = 98;
18321 tm.tm_mon = 3;
18322 tm.tm_mday = 5;
18323 tm.tm_hour = 2;
18324 tm.tm_min = 0;
18325 tm.tm_sec = 0;
18326 tm.tm_isdst = -1;
18327 return mktime (&tm) != (time_t) -1;
18328 }
18329
18330 static int
18331 mktime_test1 (now)
18332 time_t now;
18333 {
18334 struct tm *lt;
18335 return ! (lt = localtime (&now)) || mktime (lt) == now;
18336 }
18337
18338 static int
18339 mktime_test (now)
18340 time_t now;
18341 {
18342 return (mktime_test1 (now)
18343 && mktime_test1 ((time_t) (time_t_max - now))
18344 && mktime_test1 ((time_t) (time_t_min + now)));
18345 }
18346
18347 static int
18348 irix_6_4_bug ()
18349 {
18350 /* Based on code from Ariel Faigon. */
18351 struct tm tm;
18352 tm.tm_year = 96;
18353 tm.tm_mon = 3;
18354 tm.tm_mday = 0;
18355 tm.tm_hour = 0;
18356 tm.tm_min = 0;
18357 tm.tm_sec = 0;
18358 tm.tm_isdst = -1;
18359 mktime (&tm);
18360 return tm.tm_mon == 2 && tm.tm_mday == 31;
18361 }
18362
18363 static int
18364 bigtime_test (j)
18365 int j;
18366 {
18367 struct tm tm;
18368 time_t now;
18369 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
18370 now = mktime (&tm);
18371 if (now != (time_t) -1)
18372 {
18373 struct tm *lt = localtime (&now);
18374 if (! (lt
18375 && lt->tm_year == tm.tm_year
18376 && lt->tm_mon == tm.tm_mon
18377 && lt->tm_mday == tm.tm_mday
18378 && lt->tm_hour == tm.tm_hour
18379 && lt->tm_min == tm.tm_min
18380 && lt->tm_sec == tm.tm_sec
18381 && lt->tm_yday == tm.tm_yday
18382 && lt->tm_wday == tm.tm_wday
18383 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
18384 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
18385 return 0;
18386 }
18387 return 1;
18388 }
18389
18390 static int
18391 year_2050_test ()
18392 {
18393 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
18394 ignoring leap seconds. */
18395 unsigned long int answer = 2527315200UL;
18396
18397 struct tm tm;
18398 time_t t;
18399 tm.tm_year = 2050 - 1900;
18400 tm.tm_mon = 2 - 1;
18401 tm.tm_mday = 1;
18402 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
18403 tm.tm_isdst = -1;
18404
18405 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18406 instead of "TZ=America/Vancouver" in order to detect the bug even
18407 on systems that don't support the Olson extension, or don't have the
18408 full zoneinfo tables installed. */
18409 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
18410
18411 t = mktime (&tm);
18412
18413 /* Check that the result is either a failure, or close enough
18414 to the correct answer that we can assume the discrepancy is
18415 due to leap seconds. */
18416 return (t == (time_t) -1
18417 || (0 < t && answer - 120 <= t && t <= answer + 120));
18418 }
18419
18420 int
18421 main ()
18422 {
18423 time_t t, delta;
18424 int i, j;
18425
18426 /* This test makes some buggy mktime implementations loop.
18427 Give up after 60 seconds; a mktime slower than that
18428 isn't worth using anyway. */
18429 alarm (60);
18430
18431 for (;;)
18432 {
18433 t = (time_t_max << 1) + 1;
18434 if (t <= time_t_max)
18435 break;
18436 time_t_max = t;
18437 }
18438 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
18439
18440 delta = time_t_max / 997; /* a suitable prime number */
18441 for (i = 0; i < N_STRINGS; i++)
18442 {
18443 if (tz_strings[i])
18444 putenv (tz_strings[i]);
18445
18446 for (t = 0; t <= time_t_max - delta; t += delta)
18447 if (! mktime_test (t))
18448 return 1;
18449 if (! (mktime_test ((time_t) 1)
18450 && mktime_test ((time_t) (60 * 60))
18451 && mktime_test ((time_t) (60 * 60 * 24))))
18452 return 1;
18453
18454 for (j = 1; ; j <<= 1)
18455 if (! bigtime_test (j))
18456 return 1;
18457 else if (INT_MAX / 2 < j)
18458 break;
18459 if (! bigtime_test (INT_MAX))
18460 return 1;
18461 }
18462 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18463 }
18464 _ACEOF
18465 rm -f conftest$ac_exeext
18466 if { (ac_try="$ac_link"
18467 case "(($ac_try" in
18468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18469 *) ac_try_echo=$ac_try;;
18470 esac
18471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18472 $as_echo "$ac_try_echo") >&5
18473 (eval "$ac_link") 2>&5
18474 ac_status=$?
18475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18477 { (case "(($ac_try" in
18478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18479 *) ac_try_echo=$ac_try;;
18480 esac
18481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18482 $as_echo "$ac_try_echo") >&5
18483 (eval "$ac_try") 2>&5
18484 ac_status=$?
18485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); }; }; then
18487 ac_cv_func_working_mktime=yes
18488 else
18489 $as_echo "$as_me: program exited with status $ac_status" >&5
18490 $as_echo "$as_me: failed program was:" >&5
18491 sed 's/^/| /' conftest.$ac_ext >&5
18492
18493 ( exit $ac_status )
18494 ac_cv_func_working_mktime=no
18495 fi
18496 rm -rf conftest.dSYM
18497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18498 fi
18499
18500
18501 fi
18502 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
18503 $as_echo "$ac_cv_func_working_mktime" >&6; }
18504 if test $ac_cv_func_working_mktime = no; then
18505 case " $LIBOBJS " in
18506 *" mktime.$ac_objext "* ) ;;
18507 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
18508 ;;
18509 esac
18510
18511 fi
18512
18513 if test "$ac_cv_func_working_mktime" = no; then
18514
18515 cat >>confdefs.h <<\_ACEOF
18516 #define BROKEN_MKTIME 1
18517 _ACEOF
18518
18519 fi
18520
18521 ac_have_func=no # yes means we've found a way to get the load average.
18522
18523 # Make sure getloadavg.c is where it belongs, at configure-time.
18524 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
18525 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
18526 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
18527 { (exit 1); exit 1; }; }
18528
18529 ac_save_LIBS=$LIBS
18530
18531 # Check for getloadavg, but be sure not to touch the cache variable.
18532 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
18533 $as_echo_n "checking for getloadavg... " >&6; }
18534 if test "${ac_cv_func_getloadavg+set}" = set; then
18535 $as_echo_n "(cached) " >&6
18536 else
18537 cat >conftest.$ac_ext <<_ACEOF
18538 /* confdefs.h. */
18539 _ACEOF
18540 cat confdefs.h >>conftest.$ac_ext
18541 cat >>conftest.$ac_ext <<_ACEOF
18542 /* end confdefs.h. */
18543 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18544 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18545 #define getloadavg innocuous_getloadavg
18546
18547 /* System header to define __stub macros and hopefully few prototypes,
18548 which can conflict with char getloadavg (); below.
18549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18550 <limits.h> exists even on freestanding compilers. */
18551
18552 #ifdef __STDC__
18553 # include <limits.h>
18554 #else
18555 # include <assert.h>
18556 #endif
18557
18558 #undef getloadavg
18559
18560 /* Override any GCC internal prototype to avoid an error.
18561 Use char because int might match the return type of a GCC
18562 builtin and then its argument prototype would still apply. */
18563 #ifdef __cplusplus
18564 extern "C"
18565 #endif
18566 char getloadavg ();
18567 /* The GNU C library defines this for functions which it implements
18568 to always fail with ENOSYS. Some functions are actually named
18569 something starting with __ and the normal name is an alias. */
18570 #if defined __stub_getloadavg || defined __stub___getloadavg
18571 choke me
18572 #endif
18573
18574 int
18575 main ()
18576 {
18577 return getloadavg ();
18578 ;
18579 return 0;
18580 }
18581 _ACEOF
18582 rm -f conftest.$ac_objext conftest$ac_exeext
18583 if { (ac_try="$ac_link"
18584 case "(($ac_try" in
18585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18586 *) ac_try_echo=$ac_try;;
18587 esac
18588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18589 $as_echo "$ac_try_echo") >&5
18590 (eval "$ac_link") 2>conftest.er1
18591 ac_status=$?
18592 grep -v '^ *+' conftest.er1 >conftest.err
18593 rm -f conftest.er1
18594 cat conftest.err >&5
18595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596 (exit $ac_status); } && {
18597 test -z "$ac_c_werror_flag" ||
18598 test ! -s conftest.err
18599 } && test -s conftest$ac_exeext && {
18600 test "$cross_compiling" = yes ||
18601 $as_test_x conftest$ac_exeext
18602 }; then
18603 ac_cv_func_getloadavg=yes
18604 else
18605 $as_echo "$as_me: failed program was:" >&5
18606 sed 's/^/| /' conftest.$ac_ext >&5
18607
18608 ac_cv_func_getloadavg=no
18609 fi
18610
18611 rm -rf conftest.dSYM
18612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18613 conftest$ac_exeext conftest.$ac_ext
18614 fi
18615 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
18616 $as_echo "$ac_cv_func_getloadavg" >&6; }
18617 if test $ac_cv_func_getloadavg = yes; then
18618 exit 0
18619 else
18620 exit 1
18621 fi
18622 ) && ac_have_func=yes
18623
18624 # On HPUX9, an unprivileged user can get load averages through this function.
18625
18626 for ac_func in pstat_getdynamic
18627 do
18628 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18629 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18630 $as_echo_n "checking for $ac_func... " >&6; }
18631 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18632 $as_echo_n "(cached) " >&6
18633 else
18634 cat >conftest.$ac_ext <<_ACEOF
18635 /* confdefs.h. */
18636 _ACEOF
18637 cat confdefs.h >>conftest.$ac_ext
18638 cat >>conftest.$ac_ext <<_ACEOF
18639 /* end confdefs.h. */
18640 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18642 #define $ac_func innocuous_$ac_func
18643
18644 /* System header to define __stub macros and hopefully few prototypes,
18645 which can conflict with char $ac_func (); below.
18646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18647 <limits.h> exists even on freestanding compilers. */
18648
18649 #ifdef __STDC__
18650 # include <limits.h>
18651 #else
18652 # include <assert.h>
18653 #endif
18654
18655 #undef $ac_func
18656
18657 /* Override any GCC internal prototype to avoid an error.
18658 Use char because int might match the return type of a GCC
18659 builtin and then its argument prototype would still apply. */
18660 #ifdef __cplusplus
18661 extern "C"
18662 #endif
18663 char $ac_func ();
18664 /* The GNU C library defines this for functions which it implements
18665 to always fail with ENOSYS. Some functions are actually named
18666 something starting with __ and the normal name is an alias. */
18667 #if defined __stub_$ac_func || defined __stub___$ac_func
18668 choke me
18669 #endif
18670
18671 int
18672 main ()
18673 {
18674 return $ac_func ();
18675 ;
18676 return 0;
18677 }
18678 _ACEOF
18679 rm -f conftest.$ac_objext conftest$ac_exeext
18680 if { (ac_try="$ac_link"
18681 case "(($ac_try" in
18682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18683 *) ac_try_echo=$ac_try;;
18684 esac
18685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18686 $as_echo "$ac_try_echo") >&5
18687 (eval "$ac_link") 2>conftest.er1
18688 ac_status=$?
18689 grep -v '^ *+' conftest.er1 >conftest.err
18690 rm -f conftest.er1
18691 cat conftest.err >&5
18692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693 (exit $ac_status); } && {
18694 test -z "$ac_c_werror_flag" ||
18695 test ! -s conftest.err
18696 } && test -s conftest$ac_exeext && {
18697 test "$cross_compiling" = yes ||
18698 $as_test_x conftest$ac_exeext
18699 }; then
18700 eval "$as_ac_var=yes"
18701 else
18702 $as_echo "$as_me: failed program was:" >&5
18703 sed 's/^/| /' conftest.$ac_ext >&5
18704
18705 eval "$as_ac_var=no"
18706 fi
18707
18708 rm -rf conftest.dSYM
18709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18710 conftest$ac_exeext conftest.$ac_ext
18711 fi
18712 ac_res=`eval 'as_val=${'$as_ac_var'}
18713 $as_echo "$as_val"'`
18714 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18715 $as_echo "$ac_res" >&6; }
18716 if test `eval 'as_val=${'$as_ac_var'}
18717 $as_echo "$as_val"'` = yes; then
18718 cat >>confdefs.h <<_ACEOF
18719 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18720 _ACEOF
18721
18722 fi
18723 done
18724
18725
18726 # Solaris has libkstat which does not require root.
18727
18728 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
18729 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18730 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18731 $as_echo_n "(cached) " >&6
18732 else
18733 ac_check_lib_save_LIBS=$LIBS
18734 LIBS="-lkstat $LIBS"
18735 cat >conftest.$ac_ext <<_ACEOF
18736 /* confdefs.h. */
18737 _ACEOF
18738 cat confdefs.h >>conftest.$ac_ext
18739 cat >>conftest.$ac_ext <<_ACEOF
18740 /* end confdefs.h. */
18741
18742 /* Override any GCC internal prototype to avoid an error.
18743 Use char because int might match the return type of a GCC
18744 builtin and then its argument prototype would still apply. */
18745 #ifdef __cplusplus
18746 extern "C"
18747 #endif
18748 char kstat_open ();
18749 int
18750 main ()
18751 {
18752 return kstat_open ();
18753 ;
18754 return 0;
18755 }
18756 _ACEOF
18757 rm -f conftest.$ac_objext conftest$ac_exeext
18758 if { (ac_try="$ac_link"
18759 case "(($ac_try" in
18760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18761 *) ac_try_echo=$ac_try;;
18762 esac
18763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18764 $as_echo "$ac_try_echo") >&5
18765 (eval "$ac_link") 2>conftest.er1
18766 ac_status=$?
18767 grep -v '^ *+' conftest.er1 >conftest.err
18768 rm -f conftest.er1
18769 cat conftest.err >&5
18770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); } && {
18772 test -z "$ac_c_werror_flag" ||
18773 test ! -s conftest.err
18774 } && test -s conftest$ac_exeext && {
18775 test "$cross_compiling" = yes ||
18776 $as_test_x conftest$ac_exeext
18777 }; then
18778 ac_cv_lib_kstat_kstat_open=yes
18779 else
18780 $as_echo "$as_me: failed program was:" >&5
18781 sed 's/^/| /' conftest.$ac_ext >&5
18782
18783 ac_cv_lib_kstat_kstat_open=no
18784 fi
18785
18786 rm -rf conftest.dSYM
18787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18788 conftest$ac_exeext conftest.$ac_ext
18789 LIBS=$ac_check_lib_save_LIBS
18790 fi
18791 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
18792 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18793 if test $ac_cv_lib_kstat_kstat_open = yes; then
18794 cat >>confdefs.h <<_ACEOF
18795 #define HAVE_LIBKSTAT 1
18796 _ACEOF
18797
18798 LIBS="-lkstat $LIBS"
18799
18800 fi
18801
18802 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18803
18804 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18805 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18806 # to get the right answer into the cache.
18807 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18808 if test $ac_have_func = no; then
18809 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18810 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18811 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18812 $as_echo_n "(cached) " >&6
18813 else
18814 ac_check_lib_save_LIBS=$LIBS
18815 LIBS="-lelf $LIBS"
18816 cat >conftest.$ac_ext <<_ACEOF
18817 /* confdefs.h. */
18818 _ACEOF
18819 cat confdefs.h >>conftest.$ac_ext
18820 cat >>conftest.$ac_ext <<_ACEOF
18821 /* end confdefs.h. */
18822
18823 /* Override any GCC internal prototype to avoid an error.
18824 Use char because int might match the return type of a GCC
18825 builtin and then its argument prototype would still apply. */
18826 #ifdef __cplusplus
18827 extern "C"
18828 #endif
18829 char elf_begin ();
18830 int
18831 main ()
18832 {
18833 return elf_begin ();
18834 ;
18835 return 0;
18836 }
18837 _ACEOF
18838 rm -f conftest.$ac_objext conftest$ac_exeext
18839 if { (ac_try="$ac_link"
18840 case "(($ac_try" in
18841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18842 *) ac_try_echo=$ac_try;;
18843 esac
18844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18845 $as_echo "$ac_try_echo") >&5
18846 (eval "$ac_link") 2>conftest.er1
18847 ac_status=$?
18848 grep -v '^ *+' conftest.er1 >conftest.err
18849 rm -f conftest.er1
18850 cat conftest.err >&5
18851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); } && {
18853 test -z "$ac_c_werror_flag" ||
18854 test ! -s conftest.err
18855 } && test -s conftest$ac_exeext && {
18856 test "$cross_compiling" = yes ||
18857 $as_test_x conftest$ac_exeext
18858 }; then
18859 ac_cv_lib_elf_elf_begin=yes
18860 else
18861 $as_echo "$as_me: failed program was:" >&5
18862 sed 's/^/| /' conftest.$ac_ext >&5
18863
18864 ac_cv_lib_elf_elf_begin=no
18865 fi
18866
18867 rm -rf conftest.dSYM
18868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18869 conftest$ac_exeext conftest.$ac_ext
18870 LIBS=$ac_check_lib_save_LIBS
18871 fi
18872 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18873 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18874 if test $ac_cv_lib_elf_elf_begin = yes; then
18875 LIBS="-lelf $LIBS"
18876 fi
18877
18878 fi
18879 if test $ac_have_func = no; then
18880 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
18881 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18882 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18883 $as_echo_n "(cached) " >&6
18884 else
18885 ac_check_lib_save_LIBS=$LIBS
18886 LIBS="-lkvm $LIBS"
18887 cat >conftest.$ac_ext <<_ACEOF
18888 /* confdefs.h. */
18889 _ACEOF
18890 cat confdefs.h >>conftest.$ac_ext
18891 cat >>conftest.$ac_ext <<_ACEOF
18892 /* end confdefs.h. */
18893
18894 /* Override any GCC internal prototype to avoid an error.
18895 Use char because int might match the return type of a GCC
18896 builtin and then its argument prototype would still apply. */
18897 #ifdef __cplusplus
18898 extern "C"
18899 #endif
18900 char kvm_open ();
18901 int
18902 main ()
18903 {
18904 return kvm_open ();
18905 ;
18906 return 0;
18907 }
18908 _ACEOF
18909 rm -f conftest.$ac_objext conftest$ac_exeext
18910 if { (ac_try="$ac_link"
18911 case "(($ac_try" in
18912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18913 *) ac_try_echo=$ac_try;;
18914 esac
18915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18916 $as_echo "$ac_try_echo") >&5
18917 (eval "$ac_link") 2>conftest.er1
18918 ac_status=$?
18919 grep -v '^ *+' conftest.er1 >conftest.err
18920 rm -f conftest.er1
18921 cat conftest.err >&5
18922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); } && {
18924 test -z "$ac_c_werror_flag" ||
18925 test ! -s conftest.err
18926 } && test -s conftest$ac_exeext && {
18927 test "$cross_compiling" = yes ||
18928 $as_test_x conftest$ac_exeext
18929 }; then
18930 ac_cv_lib_kvm_kvm_open=yes
18931 else
18932 $as_echo "$as_me: failed program was:" >&5
18933 sed 's/^/| /' conftest.$ac_ext >&5
18934
18935 ac_cv_lib_kvm_kvm_open=no
18936 fi
18937
18938 rm -rf conftest.dSYM
18939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18940 conftest$ac_exeext conftest.$ac_ext
18941 LIBS=$ac_check_lib_save_LIBS
18942 fi
18943 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
18944 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18945 if test $ac_cv_lib_kvm_kvm_open = yes; then
18946 LIBS="-lkvm $LIBS"
18947 fi
18948
18949 # Check for the 4.4BSD definition of getloadavg.
18950 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18951 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18952 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18953 $as_echo_n "(cached) " >&6
18954 else
18955 ac_check_lib_save_LIBS=$LIBS
18956 LIBS="-lutil $LIBS"
18957 cat >conftest.$ac_ext <<_ACEOF
18958 /* confdefs.h. */
18959 _ACEOF
18960 cat confdefs.h >>conftest.$ac_ext
18961 cat >>conftest.$ac_ext <<_ACEOF
18962 /* end confdefs.h. */
18963
18964 /* Override any GCC internal prototype to avoid an error.
18965 Use char because int might match the return type of a GCC
18966 builtin and then its argument prototype would still apply. */
18967 #ifdef __cplusplus
18968 extern "C"
18969 #endif
18970 char getloadavg ();
18971 int
18972 main ()
18973 {
18974 return getloadavg ();
18975 ;
18976 return 0;
18977 }
18978 _ACEOF
18979 rm -f conftest.$ac_objext conftest$ac_exeext
18980 if { (ac_try="$ac_link"
18981 case "(($ac_try" in
18982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18983 *) ac_try_echo=$ac_try;;
18984 esac
18985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18986 $as_echo "$ac_try_echo") >&5
18987 (eval "$ac_link") 2>conftest.er1
18988 ac_status=$?
18989 grep -v '^ *+' conftest.er1 >conftest.err
18990 rm -f conftest.er1
18991 cat conftest.err >&5
18992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); } && {
18994 test -z "$ac_c_werror_flag" ||
18995 test ! -s conftest.err
18996 } && test -s conftest$ac_exeext && {
18997 test "$cross_compiling" = yes ||
18998 $as_test_x conftest$ac_exeext
18999 }; then
19000 ac_cv_lib_util_getloadavg=yes
19001 else
19002 $as_echo "$as_me: failed program was:" >&5
19003 sed 's/^/| /' conftest.$ac_ext >&5
19004
19005 ac_cv_lib_util_getloadavg=no
19006 fi
19007
19008 rm -rf conftest.dSYM
19009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19010 conftest$ac_exeext conftest.$ac_ext
19011 LIBS=$ac_check_lib_save_LIBS
19012 fi
19013 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
19014 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
19015 if test $ac_cv_lib_util_getloadavg = yes; then
19016 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
19017 fi
19018
19019 fi
19020
19021 if test $ac_have_func = no; then
19022 # There is a commonly available library for RS/6000 AIX.
19023 # Since it is not a standard part of AIX, it might be installed locally.
19024 ac_getloadavg_LIBS=$LIBS
19025 LIBS="-L/usr/local/lib $LIBS"
19026 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
19027 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
19028 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
19029 $as_echo_n "(cached) " >&6
19030 else
19031 ac_check_lib_save_LIBS=$LIBS
19032 LIBS="-lgetloadavg $LIBS"
19033 cat >conftest.$ac_ext <<_ACEOF
19034 /* confdefs.h. */
19035 _ACEOF
19036 cat confdefs.h >>conftest.$ac_ext
19037 cat >>conftest.$ac_ext <<_ACEOF
19038 /* end confdefs.h. */
19039
19040 /* Override any GCC internal prototype to avoid an error.
19041 Use char because int might match the return type of a GCC
19042 builtin and then its argument prototype would still apply. */
19043 #ifdef __cplusplus
19044 extern "C"
19045 #endif
19046 char getloadavg ();
19047 int
19048 main ()
19049 {
19050 return getloadavg ();
19051 ;
19052 return 0;
19053 }
19054 _ACEOF
19055 rm -f conftest.$ac_objext conftest$ac_exeext
19056 if { (ac_try="$ac_link"
19057 case "(($ac_try" in
19058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19059 *) ac_try_echo=$ac_try;;
19060 esac
19061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19062 $as_echo "$ac_try_echo") >&5
19063 (eval "$ac_link") 2>conftest.er1
19064 ac_status=$?
19065 grep -v '^ *+' conftest.er1 >conftest.err
19066 rm -f conftest.er1
19067 cat conftest.err >&5
19068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); } && {
19070 test -z "$ac_c_werror_flag" ||
19071 test ! -s conftest.err
19072 } && test -s conftest$ac_exeext && {
19073 test "$cross_compiling" = yes ||
19074 $as_test_x conftest$ac_exeext
19075 }; then
19076 ac_cv_lib_getloadavg_getloadavg=yes
19077 else
19078 $as_echo "$as_me: failed program was:" >&5
19079 sed 's/^/| /' conftest.$ac_ext >&5
19080
19081 ac_cv_lib_getloadavg_getloadavg=no
19082 fi
19083
19084 rm -rf conftest.dSYM
19085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19086 conftest$ac_exeext conftest.$ac_ext
19087 LIBS=$ac_check_lib_save_LIBS
19088 fi
19089 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
19090 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
19091 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
19092 LIBS="-lgetloadavg $LIBS"
19093 else
19094 LIBS=$ac_getloadavg_LIBS
19095 fi
19096
19097 fi
19098
19099 # Make sure it is really in the library, if we think we found it,
19100 # otherwise set up the replacement function.
19101
19102 for ac_func in getloadavg
19103 do
19104 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19105 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19106 $as_echo_n "checking for $ac_func... " >&6; }
19107 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19108 $as_echo_n "(cached) " >&6
19109 else
19110 cat >conftest.$ac_ext <<_ACEOF
19111 /* confdefs.h. */
19112 _ACEOF
19113 cat confdefs.h >>conftest.$ac_ext
19114 cat >>conftest.$ac_ext <<_ACEOF
19115 /* end confdefs.h. */
19116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19118 #define $ac_func innocuous_$ac_func
19119
19120 /* System header to define __stub macros and hopefully few prototypes,
19121 which can conflict with char $ac_func (); below.
19122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19123 <limits.h> exists even on freestanding compilers. */
19124
19125 #ifdef __STDC__
19126 # include <limits.h>
19127 #else
19128 # include <assert.h>
19129 #endif
19130
19131 #undef $ac_func
19132
19133 /* Override any GCC internal prototype to avoid an error.
19134 Use char because int might match the return type of a GCC
19135 builtin and then its argument prototype would still apply. */
19136 #ifdef __cplusplus
19137 extern "C"
19138 #endif
19139 char $ac_func ();
19140 /* The GNU C library defines this for functions which it implements
19141 to always fail with ENOSYS. Some functions are actually named
19142 something starting with __ and the normal name is an alias. */
19143 #if defined __stub_$ac_func || defined __stub___$ac_func
19144 choke me
19145 #endif
19146
19147 int
19148 main ()
19149 {
19150 return $ac_func ();
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 eval "$as_ac_var=yes"
19177 else
19178 $as_echo "$as_me: failed program was:" >&5
19179 sed 's/^/| /' conftest.$ac_ext >&5
19180
19181 eval "$as_ac_var=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 fi
19188 ac_res=`eval 'as_val=${'$as_ac_var'}
19189 $as_echo "$as_val"'`
19190 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19191 $as_echo "$ac_res" >&6; }
19192 if test `eval 'as_val=${'$as_ac_var'}
19193 $as_echo "$as_val"'` = yes; then
19194 cat >>confdefs.h <<_ACEOF
19195 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19196 _ACEOF
19197
19198 else
19199 case " $LIBOBJS " in
19200 *" getloadavg.$ac_objext "* ) ;;
19201 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
19202 ;;
19203 esac
19204
19205
19206 cat >>confdefs.h <<\_ACEOF
19207 #define C_GETLOADAVG 1
19208 _ACEOF
19209
19210 # Figure out what our getloadavg.c needs.
19211 ac_have_func=no
19212 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19213 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19214 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
19215 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19216 $as_echo_n "(cached) " >&6
19217 fi
19218 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19219 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19220 else
19221 # Is the header compilable?
19222 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
19223 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
19224 cat >conftest.$ac_ext <<_ACEOF
19225 /* confdefs.h. */
19226 _ACEOF
19227 cat confdefs.h >>conftest.$ac_ext
19228 cat >>conftest.$ac_ext <<_ACEOF
19229 /* end confdefs.h. */
19230 $ac_includes_default
19231 #include <sys/dg_sys_info.h>
19232 _ACEOF
19233 rm -f conftest.$ac_objext
19234 if { (ac_try="$ac_compile"
19235 case "(($ac_try" in
19236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19237 *) ac_try_echo=$ac_try;;
19238 esac
19239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19240 $as_echo "$ac_try_echo") >&5
19241 (eval "$ac_compile") 2>conftest.er1
19242 ac_status=$?
19243 grep -v '^ *+' conftest.er1 >conftest.err
19244 rm -f conftest.er1
19245 cat conftest.err >&5
19246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); } && {
19248 test -z "$ac_c_werror_flag" ||
19249 test ! -s conftest.err
19250 } && test -s conftest.$ac_objext; then
19251 ac_header_compiler=yes
19252 else
19253 $as_echo "$as_me: failed program was:" >&5
19254 sed 's/^/| /' conftest.$ac_ext >&5
19255
19256 ac_header_compiler=no
19257 fi
19258
19259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19260 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19261 $as_echo "$ac_header_compiler" >&6; }
19262
19263 # Is the header present?
19264 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
19265 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
19266 cat >conftest.$ac_ext <<_ACEOF
19267 /* confdefs.h. */
19268 _ACEOF
19269 cat confdefs.h >>conftest.$ac_ext
19270 cat >>conftest.$ac_ext <<_ACEOF
19271 /* end confdefs.h. */
19272 #include <sys/dg_sys_info.h>
19273 _ACEOF
19274 if { (ac_try="$ac_cpp conftest.$ac_ext"
19275 case "(($ac_try" in
19276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19277 *) ac_try_echo=$ac_try;;
19278 esac
19279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19280 $as_echo "$ac_try_echo") >&5
19281 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19282 ac_status=$?
19283 grep -v '^ *+' conftest.er1 >conftest.err
19284 rm -f conftest.er1
19285 cat conftest.err >&5
19286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287 (exit $ac_status); } >/dev/null && {
19288 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19289 test ! -s conftest.err
19290 }; then
19291 ac_header_preproc=yes
19292 else
19293 $as_echo "$as_me: failed program was:" >&5
19294 sed 's/^/| /' conftest.$ac_ext >&5
19295
19296 ac_header_preproc=no
19297 fi
19298
19299 rm -f conftest.err conftest.$ac_ext
19300 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19301 $as_echo "$ac_header_preproc" >&6; }
19302
19303 # So? What about this header?
19304 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19305 yes:no: )
19306 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
19307 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19308 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
19309 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
19310 ac_header_preproc=yes
19311 ;;
19312 no:yes:* )
19313 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
19314 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
19315 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
19316 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
19317 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
19318 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
19319 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
19320 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
19321 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
19322 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
19323 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
19324 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
19325
19326 ;;
19327 esac
19328 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19329 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
19330 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19331 $as_echo_n "(cached) " >&6
19332 else
19333 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
19334 fi
19335 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19336 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19337
19338 fi
19339 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
19340 ac_have_func=yes
19341
19342 cat >>confdefs.h <<\_ACEOF
19343 #define DGUX 1
19344 _ACEOF
19345
19346
19347 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
19348 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19349 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
19350 $as_echo_n "(cached) " >&6
19351 else
19352 ac_check_lib_save_LIBS=$LIBS
19353 LIBS="-ldgc $LIBS"
19354 cat >conftest.$ac_ext <<_ACEOF
19355 /* confdefs.h. */
19356 _ACEOF
19357 cat confdefs.h >>conftest.$ac_ext
19358 cat >>conftest.$ac_ext <<_ACEOF
19359 /* end confdefs.h. */
19360
19361 /* Override any GCC internal prototype to avoid an error.
19362 Use char because int might match the return type of a GCC
19363 builtin and then its argument prototype would still apply. */
19364 #ifdef __cplusplus
19365 extern "C"
19366 #endif
19367 char dg_sys_info ();
19368 int
19369 main ()
19370 {
19371 return dg_sys_info ();
19372 ;
19373 return 0;
19374 }
19375 _ACEOF
19376 rm -f conftest.$ac_objext conftest$ac_exeext
19377 if { (ac_try="$ac_link"
19378 case "(($ac_try" in
19379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19380 *) ac_try_echo=$ac_try;;
19381 esac
19382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19383 $as_echo "$ac_try_echo") >&5
19384 (eval "$ac_link") 2>conftest.er1
19385 ac_status=$?
19386 grep -v '^ *+' conftest.er1 >conftest.err
19387 rm -f conftest.er1
19388 cat conftest.err >&5
19389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390 (exit $ac_status); } && {
19391 test -z "$ac_c_werror_flag" ||
19392 test ! -s conftest.err
19393 } && test -s conftest$ac_exeext && {
19394 test "$cross_compiling" = yes ||
19395 $as_test_x conftest$ac_exeext
19396 }; then
19397 ac_cv_lib_dgc_dg_sys_info=yes
19398 else
19399 $as_echo "$as_me: failed program was:" >&5
19400 sed 's/^/| /' conftest.$ac_ext >&5
19401
19402 ac_cv_lib_dgc_dg_sys_info=no
19403 fi
19404
19405 rm -rf conftest.dSYM
19406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19407 conftest$ac_exeext conftest.$ac_ext
19408 LIBS=$ac_check_lib_save_LIBS
19409 fi
19410 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19411 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19412 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
19413 cat >>confdefs.h <<_ACEOF
19414 #define HAVE_LIBDGC 1
19415 _ACEOF
19416
19417 LIBS="-ldgc $LIBS"
19418
19419 fi
19420
19421 fi
19422
19423
19424
19425 if test "${ac_cv_header_locale_h+set}" = set; then
19426 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19427 $as_echo_n "checking for locale.h... " >&6; }
19428 if test "${ac_cv_header_locale_h+set}" = set; then
19429 $as_echo_n "(cached) " >&6
19430 fi
19431 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19432 $as_echo "$ac_cv_header_locale_h" >&6; }
19433 else
19434 # Is the header compilable?
19435 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
19436 $as_echo_n "checking locale.h usability... " >&6; }
19437 cat >conftest.$ac_ext <<_ACEOF
19438 /* confdefs.h. */
19439 _ACEOF
19440 cat confdefs.h >>conftest.$ac_ext
19441 cat >>conftest.$ac_ext <<_ACEOF
19442 /* end confdefs.h. */
19443 $ac_includes_default
19444 #include <locale.h>
19445 _ACEOF
19446 rm -f conftest.$ac_objext
19447 if { (ac_try="$ac_compile"
19448 case "(($ac_try" in
19449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19450 *) ac_try_echo=$ac_try;;
19451 esac
19452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19453 $as_echo "$ac_try_echo") >&5
19454 (eval "$ac_compile") 2>conftest.er1
19455 ac_status=$?
19456 grep -v '^ *+' conftest.er1 >conftest.err
19457 rm -f conftest.er1
19458 cat conftest.err >&5
19459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460 (exit $ac_status); } && {
19461 test -z "$ac_c_werror_flag" ||
19462 test ! -s conftest.err
19463 } && test -s conftest.$ac_objext; then
19464 ac_header_compiler=yes
19465 else
19466 $as_echo "$as_me: failed program was:" >&5
19467 sed 's/^/| /' conftest.$ac_ext >&5
19468
19469 ac_header_compiler=no
19470 fi
19471
19472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19473 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19474 $as_echo "$ac_header_compiler" >&6; }
19475
19476 # Is the header present?
19477 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
19478 $as_echo_n "checking locale.h presence... " >&6; }
19479 cat >conftest.$ac_ext <<_ACEOF
19480 /* confdefs.h. */
19481 _ACEOF
19482 cat confdefs.h >>conftest.$ac_ext
19483 cat >>conftest.$ac_ext <<_ACEOF
19484 /* end confdefs.h. */
19485 #include <locale.h>
19486 _ACEOF
19487 if { (ac_try="$ac_cpp conftest.$ac_ext"
19488 case "(($ac_try" in
19489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19490 *) ac_try_echo=$ac_try;;
19491 esac
19492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19493 $as_echo "$ac_try_echo") >&5
19494 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19495 ac_status=$?
19496 grep -v '^ *+' conftest.er1 >conftest.err
19497 rm -f conftest.er1
19498 cat conftest.err >&5
19499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19500 (exit $ac_status); } >/dev/null && {
19501 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19502 test ! -s conftest.err
19503 }; then
19504 ac_header_preproc=yes
19505 else
19506 $as_echo "$as_me: failed program was:" >&5
19507 sed 's/^/| /' conftest.$ac_ext >&5
19508
19509 ac_header_preproc=no
19510 fi
19511
19512 rm -f conftest.err conftest.$ac_ext
19513 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19514 $as_echo "$ac_header_preproc" >&6; }
19515
19516 # So? What about this header?
19517 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19518 yes:no: )
19519 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
19520 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19521 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
19522 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
19523 ac_header_preproc=yes
19524 ;;
19525 no:yes:* )
19526 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
19527 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
19528 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
19529 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
19530 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
19531 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
19532 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
19533 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
19534 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
19535 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
19536 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
19537 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
19538
19539 ;;
19540 esac
19541 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19542 $as_echo_n "checking for locale.h... " >&6; }
19543 if test "${ac_cv_header_locale_h+set}" = set; then
19544 $as_echo_n "(cached) " >&6
19545 else
19546 ac_cv_header_locale_h=$ac_header_preproc
19547 fi
19548 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19549 $as_echo "$ac_cv_header_locale_h" >&6; }
19550
19551 fi
19552
19553
19554
19555 for ac_func in setlocale
19556 do
19557 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19558 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19559 $as_echo_n "checking for $ac_func... " >&6; }
19560 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19561 $as_echo_n "(cached) " >&6
19562 else
19563 cat >conftest.$ac_ext <<_ACEOF
19564 /* confdefs.h. */
19565 _ACEOF
19566 cat confdefs.h >>conftest.$ac_ext
19567 cat >>conftest.$ac_ext <<_ACEOF
19568 /* end confdefs.h. */
19569 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19571 #define $ac_func innocuous_$ac_func
19572
19573 /* System header to define __stub macros and hopefully few prototypes,
19574 which can conflict with char $ac_func (); below.
19575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19576 <limits.h> exists even on freestanding compilers. */
19577
19578 #ifdef __STDC__
19579 # include <limits.h>
19580 #else
19581 # include <assert.h>
19582 #endif
19583
19584 #undef $ac_func
19585
19586 /* Override any GCC internal prototype to avoid an error.
19587 Use char because int might match the return type of a GCC
19588 builtin and then its argument prototype would still apply. */
19589 #ifdef __cplusplus
19590 extern "C"
19591 #endif
19592 char $ac_func ();
19593 /* The GNU C library defines this for functions which it implements
19594 to always fail with ENOSYS. Some functions are actually named
19595 something starting with __ and the normal name is an alias. */
19596 #if defined __stub_$ac_func || defined __stub___$ac_func
19597 choke me
19598 #endif
19599
19600 int
19601 main ()
19602 {
19603 return $ac_func ();
19604 ;
19605 return 0;
19606 }
19607 _ACEOF
19608 rm -f conftest.$ac_objext conftest$ac_exeext
19609 if { (ac_try="$ac_link"
19610 case "(($ac_try" in
19611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19612 *) ac_try_echo=$ac_try;;
19613 esac
19614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19615 $as_echo "$ac_try_echo") >&5
19616 (eval "$ac_link") 2>conftest.er1
19617 ac_status=$?
19618 grep -v '^ *+' conftest.er1 >conftest.err
19619 rm -f conftest.er1
19620 cat conftest.err >&5
19621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); } && {
19623 test -z "$ac_c_werror_flag" ||
19624 test ! -s conftest.err
19625 } && test -s conftest$ac_exeext && {
19626 test "$cross_compiling" = yes ||
19627 $as_test_x conftest$ac_exeext
19628 }; then
19629 eval "$as_ac_var=yes"
19630 else
19631 $as_echo "$as_me: failed program was:" >&5
19632 sed 's/^/| /' conftest.$ac_ext >&5
19633
19634 eval "$as_ac_var=no"
19635 fi
19636
19637 rm -rf conftest.dSYM
19638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19639 conftest$ac_exeext conftest.$ac_ext
19640 fi
19641 ac_res=`eval 'as_val=${'$as_ac_var'}
19642 $as_echo "$as_val"'`
19643 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19644 $as_echo "$ac_res" >&6; }
19645 if test `eval 'as_val=${'$as_ac_var'}
19646 $as_echo "$as_val"'` = yes; then
19647 cat >>confdefs.h <<_ACEOF
19648 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19649 _ACEOF
19650
19651 fi
19652 done
19653
19654
19655 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19656 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19657 # Irix 4.0.5F has the header but not the library.
19658 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19659 ac_have_func=yes
19660
19661 cat >>confdefs.h <<\_ACEOF
19662 #define SVR4 1
19663 _ACEOF
19664
19665 fi
19666
19667 if test $ac_have_func = no; then
19668 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19669 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19670 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19671 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19672 $as_echo_n "(cached) " >&6
19673 fi
19674 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19675 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19676 else
19677 # Is the header compilable?
19678 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
19679 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
19680 cat >conftest.$ac_ext <<_ACEOF
19681 /* confdefs.h. */
19682 _ACEOF
19683 cat confdefs.h >>conftest.$ac_ext
19684 cat >>conftest.$ac_ext <<_ACEOF
19685 /* end confdefs.h. */
19686 $ac_includes_default
19687 #include <inq_stats/cpustats.h>
19688 _ACEOF
19689 rm -f conftest.$ac_objext
19690 if { (ac_try="$ac_compile"
19691 case "(($ac_try" in
19692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19693 *) ac_try_echo=$ac_try;;
19694 esac
19695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19696 $as_echo "$ac_try_echo") >&5
19697 (eval "$ac_compile") 2>conftest.er1
19698 ac_status=$?
19699 grep -v '^ *+' conftest.er1 >conftest.err
19700 rm -f conftest.er1
19701 cat conftest.err >&5
19702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703 (exit $ac_status); } && {
19704 test -z "$ac_c_werror_flag" ||
19705 test ! -s conftest.err
19706 } && test -s conftest.$ac_objext; then
19707 ac_header_compiler=yes
19708 else
19709 $as_echo "$as_me: failed program was:" >&5
19710 sed 's/^/| /' conftest.$ac_ext >&5
19711
19712 ac_header_compiler=no
19713 fi
19714
19715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19716 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19717 $as_echo "$ac_header_compiler" >&6; }
19718
19719 # Is the header present?
19720 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
19721 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
19722 cat >conftest.$ac_ext <<_ACEOF
19723 /* confdefs.h. */
19724 _ACEOF
19725 cat confdefs.h >>conftest.$ac_ext
19726 cat >>conftest.$ac_ext <<_ACEOF
19727 /* end confdefs.h. */
19728 #include <inq_stats/cpustats.h>
19729 _ACEOF
19730 if { (ac_try="$ac_cpp conftest.$ac_ext"
19731 case "(($ac_try" in
19732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19733 *) ac_try_echo=$ac_try;;
19734 esac
19735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19736 $as_echo "$ac_try_echo") >&5
19737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19738 ac_status=$?
19739 grep -v '^ *+' conftest.er1 >conftest.err
19740 rm -f conftest.er1
19741 cat conftest.err >&5
19742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); } >/dev/null && {
19744 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19745 test ! -s conftest.err
19746 }; then
19747 ac_header_preproc=yes
19748 else
19749 $as_echo "$as_me: failed program was:" >&5
19750 sed 's/^/| /' conftest.$ac_ext >&5
19751
19752 ac_header_preproc=no
19753 fi
19754
19755 rm -f conftest.err conftest.$ac_ext
19756 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19757 $as_echo "$ac_header_preproc" >&6; }
19758
19759 # So? What about this header?
19760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19761 yes:no: )
19762 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19763 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19764 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
19765 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
19766 ac_header_preproc=yes
19767 ;;
19768 no:yes:* )
19769 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
19770 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
19771 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
19772 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
19773 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
19774 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
19775 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19776 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19777 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19778 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
19779 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
19780 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19781
19782 ;;
19783 esac
19784 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19785 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19786 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19787 $as_echo_n "(cached) " >&6
19788 else
19789 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19790 fi
19791 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19792 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19793
19794 fi
19795 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19796 ac_have_func=yes
19797
19798 cat >>confdefs.h <<\_ACEOF
19799 #define UMAX 1
19800 _ACEOF
19801
19802
19803 cat >>confdefs.h <<\_ACEOF
19804 #define UMAX4_3 1
19805 _ACEOF
19806
19807 fi
19808
19809
19810 fi
19811
19812 if test $ac_have_func = no; then
19813 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19814 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19815 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19816 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19817 $as_echo_n "(cached) " >&6
19818 fi
19819 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19820 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19821 else
19822 # Is the header compilable?
19823 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19824 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
19825 cat >conftest.$ac_ext <<_ACEOF
19826 /* confdefs.h. */
19827 _ACEOF
19828 cat confdefs.h >>conftest.$ac_ext
19829 cat >>conftest.$ac_ext <<_ACEOF
19830 /* end confdefs.h. */
19831 $ac_includes_default
19832 #include <sys/cpustats.h>
19833 _ACEOF
19834 rm -f conftest.$ac_objext
19835 if { (ac_try="$ac_compile"
19836 case "(($ac_try" in
19837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19838 *) ac_try_echo=$ac_try;;
19839 esac
19840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19841 $as_echo "$ac_try_echo") >&5
19842 (eval "$ac_compile") 2>conftest.er1
19843 ac_status=$?
19844 grep -v '^ *+' conftest.er1 >conftest.err
19845 rm -f conftest.er1
19846 cat conftest.err >&5
19847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); } && {
19849 test -z "$ac_c_werror_flag" ||
19850 test ! -s conftest.err
19851 } && test -s conftest.$ac_objext; then
19852 ac_header_compiler=yes
19853 else
19854 $as_echo "$as_me: failed program was:" >&5
19855 sed 's/^/| /' conftest.$ac_ext >&5
19856
19857 ac_header_compiler=no
19858 fi
19859
19860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19861 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19862 $as_echo "$ac_header_compiler" >&6; }
19863
19864 # Is the header present?
19865 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19866 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
19867 cat >conftest.$ac_ext <<_ACEOF
19868 /* confdefs.h. */
19869 _ACEOF
19870 cat confdefs.h >>conftest.$ac_ext
19871 cat >>conftest.$ac_ext <<_ACEOF
19872 /* end confdefs.h. */
19873 #include <sys/cpustats.h>
19874 _ACEOF
19875 if { (ac_try="$ac_cpp conftest.$ac_ext"
19876 case "(($ac_try" in
19877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19878 *) ac_try_echo=$ac_try;;
19879 esac
19880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19881 $as_echo "$ac_try_echo") >&5
19882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19883 ac_status=$?
19884 grep -v '^ *+' conftest.er1 >conftest.err
19885 rm -f conftest.er1
19886 cat conftest.err >&5
19887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); } >/dev/null && {
19889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19890 test ! -s conftest.err
19891 }; then
19892 ac_header_preproc=yes
19893 else
19894 $as_echo "$as_me: failed program was:" >&5
19895 sed 's/^/| /' conftest.$ac_ext >&5
19896
19897 ac_header_preproc=no
19898 fi
19899
19900 rm -f conftest.err conftest.$ac_ext
19901 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19902 $as_echo "$ac_header_preproc" >&6; }
19903
19904 # So? What about this header?
19905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19906 yes:no: )
19907 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19908 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19909 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19910 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19911 ac_header_preproc=yes
19912 ;;
19913 no:yes:* )
19914 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19915 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19916 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19917 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19918 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19919 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19920 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19921 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19922 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19923 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19924 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19925 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19926
19927 ;;
19928 esac
19929 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19930 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19931 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19932 $as_echo_n "(cached) " >&6
19933 else
19934 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19935 fi
19936 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19937 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19938
19939 fi
19940 if test $ac_cv_header_sys_cpustats_h = yes; then
19941 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19942 #define UMAX 1
19943 _ACEOF
19944
19945 fi
19946
19947
19948 fi
19949
19950 if test $ac_have_func = no; then
19951
19952 for ac_header in mach/mach.h
19953 do
19954 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19956 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19957 $as_echo_n "checking for $ac_header... " >&6; }
19958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19959 $as_echo_n "(cached) " >&6
19960 fi
19961 ac_res=`eval 'as_val=${'$as_ac_Header'}
19962 $as_echo "$as_val"'`
19963 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19964 $as_echo "$ac_res" >&6; }
19965 else
19966 # Is the header compilable?
19967 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19968 $as_echo_n "checking $ac_header usability... " >&6; }
19969 cat >conftest.$ac_ext <<_ACEOF
19970 /* confdefs.h. */
19971 _ACEOF
19972 cat confdefs.h >>conftest.$ac_ext
19973 cat >>conftest.$ac_ext <<_ACEOF
19974 /* end confdefs.h. */
19975 $ac_includes_default
19976 #include <$ac_header>
19977 _ACEOF
19978 rm -f conftest.$ac_objext
19979 if { (ac_try="$ac_compile"
19980 case "(($ac_try" in
19981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19982 *) ac_try_echo=$ac_try;;
19983 esac
19984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19985 $as_echo "$ac_try_echo") >&5
19986 (eval "$ac_compile") 2>conftest.er1
19987 ac_status=$?
19988 grep -v '^ *+' conftest.er1 >conftest.err
19989 rm -f conftest.er1
19990 cat conftest.err >&5
19991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); } && {
19993 test -z "$ac_c_werror_flag" ||
19994 test ! -s conftest.err
19995 } && test -s conftest.$ac_objext; then
19996 ac_header_compiler=yes
19997 else
19998 $as_echo "$as_me: failed program was:" >&5
19999 sed 's/^/| /' conftest.$ac_ext >&5
20000
20001 ac_header_compiler=no
20002 fi
20003
20004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20005 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20006 $as_echo "$ac_header_compiler" >&6; }
20007
20008 # Is the header present?
20009 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20010 $as_echo_n "checking $ac_header presence... " >&6; }
20011 cat >conftest.$ac_ext <<_ACEOF
20012 /* confdefs.h. */
20013 _ACEOF
20014 cat confdefs.h >>conftest.$ac_ext
20015 cat >>conftest.$ac_ext <<_ACEOF
20016 /* end confdefs.h. */
20017 #include <$ac_header>
20018 _ACEOF
20019 if { (ac_try="$ac_cpp conftest.$ac_ext"
20020 case "(($ac_try" in
20021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20022 *) ac_try_echo=$ac_try;;
20023 esac
20024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20025 $as_echo "$ac_try_echo") >&5
20026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20027 ac_status=$?
20028 grep -v '^ *+' conftest.er1 >conftest.err
20029 rm -f conftest.er1
20030 cat conftest.err >&5
20031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); } >/dev/null && {
20033 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20034 test ! -s conftest.err
20035 }; then
20036 ac_header_preproc=yes
20037 else
20038 $as_echo "$as_me: failed program was:" >&5
20039 sed 's/^/| /' conftest.$ac_ext >&5
20040
20041 ac_header_preproc=no
20042 fi
20043
20044 rm -f conftest.err conftest.$ac_ext
20045 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20046 $as_echo "$ac_header_preproc" >&6; }
20047
20048 # So? What about this header?
20049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20050 yes:no: )
20051 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20052 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20053 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20054 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20055 ac_header_preproc=yes
20056 ;;
20057 no:yes:* )
20058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20059 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20061 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20062 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20063 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20064 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20065 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20067 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20068 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20069 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20070
20071 ;;
20072 esac
20073 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20074 $as_echo_n "checking for $ac_header... " >&6; }
20075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20076 $as_echo_n "(cached) " >&6
20077 else
20078 eval "$as_ac_Header=\$ac_header_preproc"
20079 fi
20080 ac_res=`eval 'as_val=${'$as_ac_Header'}
20081 $as_echo "$as_val"'`
20082 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20083 $as_echo "$ac_res" >&6; }
20084
20085 fi
20086 if test `eval 'as_val=${'$as_ac_Header'}
20087 $as_echo "$as_val"'` = yes; then
20088 cat >>confdefs.h <<_ACEOF
20089 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20090 _ACEOF
20091
20092 fi
20093
20094 done
20095
20096 fi
20097
20098
20099 for ac_header in nlist.h
20100 do
20101 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20103 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20104 $as_echo_n "checking for $ac_header... " >&6; }
20105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20106 $as_echo_n "(cached) " >&6
20107 fi
20108 ac_res=`eval 'as_val=${'$as_ac_Header'}
20109 $as_echo "$as_val"'`
20110 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20111 $as_echo "$ac_res" >&6; }
20112 else
20113 # Is the header compilable?
20114 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20115 $as_echo_n "checking $ac_header usability... " >&6; }
20116 cat >conftest.$ac_ext <<_ACEOF
20117 /* confdefs.h. */
20118 _ACEOF
20119 cat confdefs.h >>conftest.$ac_ext
20120 cat >>conftest.$ac_ext <<_ACEOF
20121 /* end confdefs.h. */
20122 $ac_includes_default
20123 #include <$ac_header>
20124 _ACEOF
20125 rm -f conftest.$ac_objext
20126 if { (ac_try="$ac_compile"
20127 case "(($ac_try" in
20128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20129 *) ac_try_echo=$ac_try;;
20130 esac
20131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20132 $as_echo "$ac_try_echo") >&5
20133 (eval "$ac_compile") 2>conftest.er1
20134 ac_status=$?
20135 grep -v '^ *+' conftest.er1 >conftest.err
20136 rm -f conftest.er1
20137 cat conftest.err >&5
20138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139 (exit $ac_status); } && {
20140 test -z "$ac_c_werror_flag" ||
20141 test ! -s conftest.err
20142 } && test -s conftest.$ac_objext; then
20143 ac_header_compiler=yes
20144 else
20145 $as_echo "$as_me: failed program was:" >&5
20146 sed 's/^/| /' conftest.$ac_ext >&5
20147
20148 ac_header_compiler=no
20149 fi
20150
20151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20152 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20153 $as_echo "$ac_header_compiler" >&6; }
20154
20155 # Is the header present?
20156 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20157 $as_echo_n "checking $ac_header presence... " >&6; }
20158 cat >conftest.$ac_ext <<_ACEOF
20159 /* confdefs.h. */
20160 _ACEOF
20161 cat confdefs.h >>conftest.$ac_ext
20162 cat >>conftest.$ac_ext <<_ACEOF
20163 /* end confdefs.h. */
20164 #include <$ac_header>
20165 _ACEOF
20166 if { (ac_try="$ac_cpp conftest.$ac_ext"
20167 case "(($ac_try" in
20168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20169 *) ac_try_echo=$ac_try;;
20170 esac
20171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20172 $as_echo "$ac_try_echo") >&5
20173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20174 ac_status=$?
20175 grep -v '^ *+' conftest.er1 >conftest.err
20176 rm -f conftest.er1
20177 cat conftest.err >&5
20178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179 (exit $ac_status); } >/dev/null && {
20180 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20181 test ! -s conftest.err
20182 }; then
20183 ac_header_preproc=yes
20184 else
20185 $as_echo "$as_me: failed program was:" >&5
20186 sed 's/^/| /' conftest.$ac_ext >&5
20187
20188 ac_header_preproc=no
20189 fi
20190
20191 rm -f conftest.err conftest.$ac_ext
20192 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20193 $as_echo "$ac_header_preproc" >&6; }
20194
20195 # So? What about this header?
20196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20197 yes:no: )
20198 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20199 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20200 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20201 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20202 ac_header_preproc=yes
20203 ;;
20204 no:yes:* )
20205 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20206 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20208 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20210 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20212 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20214 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20215 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20216 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20217
20218 ;;
20219 esac
20220 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20221 $as_echo_n "checking for $ac_header... " >&6; }
20222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20223 $as_echo_n "(cached) " >&6
20224 else
20225 eval "$as_ac_Header=\$ac_header_preproc"
20226 fi
20227 ac_res=`eval 'as_val=${'$as_ac_Header'}
20228 $as_echo "$as_val"'`
20229 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20230 $as_echo "$ac_res" >&6; }
20231
20232 fi
20233 if test `eval 'as_val=${'$as_ac_Header'}
20234 $as_echo "$as_val"'` = yes; then
20235 cat >>confdefs.h <<_ACEOF
20236 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20237 _ACEOF
20238 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
20239 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
20240 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
20241 $as_echo_n "(cached) " >&6
20242 else
20243 cat >conftest.$ac_ext <<_ACEOF
20244 /* confdefs.h. */
20245 _ACEOF
20246 cat confdefs.h >>conftest.$ac_ext
20247 cat >>conftest.$ac_ext <<_ACEOF
20248 /* end confdefs.h. */
20249 #include <nlist.h>
20250
20251 int
20252 main ()
20253 {
20254 static struct nlist ac_aggr;
20255 if (ac_aggr.n_un.n_name)
20256 return 0;
20257 ;
20258 return 0;
20259 }
20260 _ACEOF
20261 rm -f conftest.$ac_objext
20262 if { (ac_try="$ac_compile"
20263 case "(($ac_try" in
20264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20265 *) ac_try_echo=$ac_try;;
20266 esac
20267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20268 $as_echo "$ac_try_echo") >&5
20269 (eval "$ac_compile") 2>conftest.er1
20270 ac_status=$?
20271 grep -v '^ *+' conftest.er1 >conftest.err
20272 rm -f conftest.er1
20273 cat conftest.err >&5
20274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275 (exit $ac_status); } && {
20276 test -z "$ac_c_werror_flag" ||
20277 test ! -s conftest.err
20278 } && test -s conftest.$ac_objext; then
20279 ac_cv_member_struct_nlist_n_un_n_name=yes
20280 else
20281 $as_echo "$as_me: failed program was:" >&5
20282 sed 's/^/| /' conftest.$ac_ext >&5
20283
20284 cat >conftest.$ac_ext <<_ACEOF
20285 /* confdefs.h. */
20286 _ACEOF
20287 cat confdefs.h >>conftest.$ac_ext
20288 cat >>conftest.$ac_ext <<_ACEOF
20289 /* end confdefs.h. */
20290 #include <nlist.h>
20291
20292 int
20293 main ()
20294 {
20295 static struct nlist ac_aggr;
20296 if (sizeof ac_aggr.n_un.n_name)
20297 return 0;
20298 ;
20299 return 0;
20300 }
20301 _ACEOF
20302 rm -f conftest.$ac_objext
20303 if { (ac_try="$ac_compile"
20304 case "(($ac_try" in
20305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20306 *) ac_try_echo=$ac_try;;
20307 esac
20308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20309 $as_echo "$ac_try_echo") >&5
20310 (eval "$ac_compile") 2>conftest.er1
20311 ac_status=$?
20312 grep -v '^ *+' conftest.er1 >conftest.err
20313 rm -f conftest.er1
20314 cat conftest.err >&5
20315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316 (exit $ac_status); } && {
20317 test -z "$ac_c_werror_flag" ||
20318 test ! -s conftest.err
20319 } && test -s conftest.$ac_objext; then
20320 ac_cv_member_struct_nlist_n_un_n_name=yes
20321 else
20322 $as_echo "$as_me: failed program was:" >&5
20323 sed 's/^/| /' conftest.$ac_ext >&5
20324
20325 ac_cv_member_struct_nlist_n_un_n_name=no
20326 fi
20327
20328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20329 fi
20330
20331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20332 fi
20333 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
20334 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
20335 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
20336
20337 cat >>confdefs.h <<_ACEOF
20338 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20339 _ACEOF
20340
20341
20342 cat >>confdefs.h <<\_ACEOF
20343 #define NLIST_NAME_UNION 1
20344 _ACEOF
20345
20346 fi
20347
20348
20349 fi
20350
20351 done
20352
20353 fi
20354 done
20355
20356
20357 # Some definitions of getloadavg require that the program be installed setgid.
20358 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
20359 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
20360 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
20361 $as_echo_n "(cached) " >&6
20362 else
20363 cat >conftest.$ac_ext <<_ACEOF
20364 /* confdefs.h. */
20365 _ACEOF
20366 cat confdefs.h >>conftest.$ac_ext
20367 cat >>conftest.$ac_ext <<_ACEOF
20368 /* end confdefs.h. */
20369 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
20370 #ifdef LDAV_PRIVILEGED
20371 Yowza Am I SETGID yet
20372 #endif
20373 _ACEOF
20374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20375 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
20376 ac_cv_func_getloadavg_setgid=yes
20377 else
20378 ac_cv_func_getloadavg_setgid=no
20379 fi
20380 rm -f conftest*
20381
20382 fi
20383 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
20384 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
20385 if test $ac_cv_func_getloadavg_setgid = yes; then
20386 NEED_SETGID=true
20387
20388 cat >>confdefs.h <<\_ACEOF
20389 #define GETLOADAVG_PRIVILEGED 1
20390 _ACEOF
20391
20392 else
20393 NEED_SETGID=false
20394 fi
20395
20396 if test $ac_cv_func_getloadavg_setgid = yes; then
20397 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
20398 $as_echo_n "checking group of /dev/kmem... " >&6; }
20399 if test "${ac_cv_group_kmem+set}" = set; then
20400 $as_echo_n "(cached) " >&6
20401 else
20402 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
20403 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
20404 # If we got an error (system does not support symlinks), try without -L.
20405 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
20406 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
20407 | sed -ne 's/[ ][ ]*/ /g;
20408 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
20409 / /s/.* //;p;'`
20410
20411 fi
20412 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
20413 $as_echo "$ac_cv_group_kmem" >&6; }
20414 KMEM_GROUP=$ac_cv_group_kmem
20415 fi
20416 if test "x$ac_save_LIBS" = x; then
20417 GETLOADAVG_LIBS=$LIBS
20418 else
20419 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
20420 fi
20421 LIBS=$ac_save_LIBS
20422
20423
20424
20425 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
20426 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
20427 if test "${ac_cv_sys_largefile_source+set}" = set; then
20428 $as_echo_n "(cached) " >&6
20429 else
20430 while :; do
20431 cat >conftest.$ac_ext <<_ACEOF
20432 /* confdefs.h. */
20433 _ACEOF
20434 cat confdefs.h >>conftest.$ac_ext
20435 cat >>conftest.$ac_ext <<_ACEOF
20436 /* end confdefs.h. */
20437 #include <sys/types.h> /* for off_t */
20438 #include <stdio.h>
20439 int
20440 main ()
20441 {
20442 int (*fp) (FILE *, off_t, int) = fseeko;
20443 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20444 ;
20445 return 0;
20446 }
20447 _ACEOF
20448 rm -f conftest.$ac_objext conftest$ac_exeext
20449 if { (ac_try="$ac_link"
20450 case "(($ac_try" in
20451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20452 *) ac_try_echo=$ac_try;;
20453 esac
20454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20455 $as_echo "$ac_try_echo") >&5
20456 (eval "$ac_link") 2>conftest.er1
20457 ac_status=$?
20458 grep -v '^ *+' conftest.er1 >conftest.err
20459 rm -f conftest.er1
20460 cat conftest.err >&5
20461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20462 (exit $ac_status); } && {
20463 test -z "$ac_c_werror_flag" ||
20464 test ! -s conftest.err
20465 } && test -s conftest$ac_exeext && {
20466 test "$cross_compiling" = yes ||
20467 $as_test_x conftest$ac_exeext
20468 }; then
20469 ac_cv_sys_largefile_source=no; break
20470 else
20471 $as_echo "$as_me: failed program was:" >&5
20472 sed 's/^/| /' conftest.$ac_ext >&5
20473
20474
20475 fi
20476
20477 rm -rf conftest.dSYM
20478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20479 conftest$ac_exeext conftest.$ac_ext
20480 cat >conftest.$ac_ext <<_ACEOF
20481 /* confdefs.h. */
20482 _ACEOF
20483 cat confdefs.h >>conftest.$ac_ext
20484 cat >>conftest.$ac_ext <<_ACEOF
20485 /* end confdefs.h. */
20486 #define _LARGEFILE_SOURCE 1
20487 #include <sys/types.h> /* for off_t */
20488 #include <stdio.h>
20489 int
20490 main ()
20491 {
20492 int (*fp) (FILE *, off_t, int) = fseeko;
20493 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20494 ;
20495 return 0;
20496 }
20497 _ACEOF
20498 rm -f conftest.$ac_objext conftest$ac_exeext
20499 if { (ac_try="$ac_link"
20500 case "(($ac_try" in
20501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20502 *) ac_try_echo=$ac_try;;
20503 esac
20504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20505 $as_echo "$ac_try_echo") >&5
20506 (eval "$ac_link") 2>conftest.er1
20507 ac_status=$?
20508 grep -v '^ *+' conftest.er1 >conftest.err
20509 rm -f conftest.er1
20510 cat conftest.err >&5
20511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512 (exit $ac_status); } && {
20513 test -z "$ac_c_werror_flag" ||
20514 test ! -s conftest.err
20515 } && test -s conftest$ac_exeext && {
20516 test "$cross_compiling" = yes ||
20517 $as_test_x conftest$ac_exeext
20518 }; then
20519 ac_cv_sys_largefile_source=1; break
20520 else
20521 $as_echo "$as_me: failed program was:" >&5
20522 sed 's/^/| /' conftest.$ac_ext >&5
20523
20524
20525 fi
20526
20527 rm -rf conftest.dSYM
20528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20529 conftest$ac_exeext conftest.$ac_ext
20530 ac_cv_sys_largefile_source=unknown
20531 break
20532 done
20533 fi
20534 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20535 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20536 case $ac_cv_sys_largefile_source in #(
20537 no | unknown) ;;
20538 *)
20539 cat >>confdefs.h <<_ACEOF
20540 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20541 _ACEOF
20542 ;;
20543 esac
20544 rm -rf conftest*
20545
20546 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20547 # in glibc 2.1.3, but that breaks too many other things.
20548 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20549 if test $ac_cv_sys_largefile_source != unknown; then
20550
20551 cat >>confdefs.h <<\_ACEOF
20552 #define HAVE_FSEEKO 1
20553 _ACEOF
20554
20555 fi
20556
20557
20558 # Configure getopt.
20559 # getopt.m4 serial 10
20560
20561 # The getopt module assume you want GNU getopt, with getopt_long etc,
20562 # rather than vanilla POSIX getopt. This means your your code should
20563 # always include <getopt.h> for the getopt prototypes.
20564
20565
20566
20567
20568
20569
20570
20571
20572
20573
20574
20575 # Prerequisites of lib/getopt*.
20576
20577
20578
20579
20580 GETOPT_H=
20581
20582 for ac_header in getopt.h
20583 do
20584 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20586 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20587 $as_echo_n "checking for $ac_header... " >&6; }
20588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20589 $as_echo_n "(cached) " >&6
20590 fi
20591 ac_res=`eval 'as_val=${'$as_ac_Header'}
20592 $as_echo "$as_val"'`
20593 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20594 $as_echo "$ac_res" >&6; }
20595 else
20596 # Is the header compilable?
20597 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20598 $as_echo_n "checking $ac_header usability... " >&6; }
20599 cat >conftest.$ac_ext <<_ACEOF
20600 /* confdefs.h. */
20601 _ACEOF
20602 cat confdefs.h >>conftest.$ac_ext
20603 cat >>conftest.$ac_ext <<_ACEOF
20604 /* end confdefs.h. */
20605 $ac_includes_default
20606 #include <$ac_header>
20607 _ACEOF
20608 rm -f conftest.$ac_objext
20609 if { (ac_try="$ac_compile"
20610 case "(($ac_try" in
20611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20612 *) ac_try_echo=$ac_try;;
20613 esac
20614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20615 $as_echo "$ac_try_echo") >&5
20616 (eval "$ac_compile") 2>conftest.er1
20617 ac_status=$?
20618 grep -v '^ *+' conftest.er1 >conftest.err
20619 rm -f conftest.er1
20620 cat conftest.err >&5
20621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); } && {
20623 test -z "$ac_c_werror_flag" ||
20624 test ! -s conftest.err
20625 } && test -s conftest.$ac_objext; then
20626 ac_header_compiler=yes
20627 else
20628 $as_echo "$as_me: failed program was:" >&5
20629 sed 's/^/| /' conftest.$ac_ext >&5
20630
20631 ac_header_compiler=no
20632 fi
20633
20634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20635 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20636 $as_echo "$ac_header_compiler" >&6; }
20637
20638 # Is the header present?
20639 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20640 $as_echo_n "checking $ac_header presence... " >&6; }
20641 cat >conftest.$ac_ext <<_ACEOF
20642 /* confdefs.h. */
20643 _ACEOF
20644 cat confdefs.h >>conftest.$ac_ext
20645 cat >>conftest.$ac_ext <<_ACEOF
20646 /* end confdefs.h. */
20647 #include <$ac_header>
20648 _ACEOF
20649 if { (ac_try="$ac_cpp conftest.$ac_ext"
20650 case "(($ac_try" in
20651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20652 *) ac_try_echo=$ac_try;;
20653 esac
20654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20655 $as_echo "$ac_try_echo") >&5
20656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20657 ac_status=$?
20658 grep -v '^ *+' conftest.er1 >conftest.err
20659 rm -f conftest.er1
20660 cat conftest.err >&5
20661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662 (exit $ac_status); } >/dev/null && {
20663 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20664 test ! -s conftest.err
20665 }; then
20666 ac_header_preproc=yes
20667 else
20668 $as_echo "$as_me: failed program was:" >&5
20669 sed 's/^/| /' conftest.$ac_ext >&5
20670
20671 ac_header_preproc=no
20672 fi
20673
20674 rm -f conftest.err conftest.$ac_ext
20675 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20676 $as_echo "$ac_header_preproc" >&6; }
20677
20678 # So? What about this header?
20679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20680 yes:no: )
20681 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20682 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20684 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20685 ac_header_preproc=yes
20686 ;;
20687 no:yes:* )
20688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20689 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20691 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20693 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20695 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20697 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20699 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20700
20701 ;;
20702 esac
20703 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20704 $as_echo_n "checking for $ac_header... " >&6; }
20705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20706 $as_echo_n "(cached) " >&6
20707 else
20708 eval "$as_ac_Header=\$ac_header_preproc"
20709 fi
20710 ac_res=`eval 'as_val=${'$as_ac_Header'}
20711 $as_echo "$as_val"'`
20712 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20713 $as_echo "$ac_res" >&6; }
20714
20715 fi
20716 if test `eval 'as_val=${'$as_ac_Header'}
20717 $as_echo "$as_val"'` = yes; then
20718 cat >>confdefs.h <<_ACEOF
20719 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20720 _ACEOF
20721
20722 else
20723 GETOPT_H=getopt.h
20724 fi
20725
20726 done
20727
20728 if test -z "$GETOPT_H"; then
20729
20730 for ac_func in getopt_long_only
20731 do
20732 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20733 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20734 $as_echo_n "checking for $ac_func... " >&6; }
20735 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20736 $as_echo_n "(cached) " >&6
20737 else
20738 cat >conftest.$ac_ext <<_ACEOF
20739 /* confdefs.h. */
20740 _ACEOF
20741 cat confdefs.h >>conftest.$ac_ext
20742 cat >>conftest.$ac_ext <<_ACEOF
20743 /* end confdefs.h. */
20744 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20746 #define $ac_func innocuous_$ac_func
20747
20748 /* System header to define __stub macros and hopefully few prototypes,
20749 which can conflict with char $ac_func (); below.
20750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20751 <limits.h> exists even on freestanding compilers. */
20752
20753 #ifdef __STDC__
20754 # include <limits.h>
20755 #else
20756 # include <assert.h>
20757 #endif
20758
20759 #undef $ac_func
20760
20761 /* Override any GCC internal prototype to avoid an error.
20762 Use char because int might match the return type of a GCC
20763 builtin and then its argument prototype would still apply. */
20764 #ifdef __cplusplus
20765 extern "C"
20766 #endif
20767 char $ac_func ();
20768 /* The GNU C library defines this for functions which it implements
20769 to always fail with ENOSYS. Some functions are actually named
20770 something starting with __ and the normal name is an alias. */
20771 #if defined __stub_$ac_func || defined __stub___$ac_func
20772 choke me
20773 #endif
20774
20775 int
20776 main ()
20777 {
20778 return $ac_func ();
20779 ;
20780 return 0;
20781 }
20782 _ACEOF
20783 rm -f conftest.$ac_objext conftest$ac_exeext
20784 if { (ac_try="$ac_link"
20785 case "(($ac_try" in
20786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20787 *) ac_try_echo=$ac_try;;
20788 esac
20789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20790 $as_echo "$ac_try_echo") >&5
20791 (eval "$ac_link") 2>conftest.er1
20792 ac_status=$?
20793 grep -v '^ *+' conftest.er1 >conftest.err
20794 rm -f conftest.er1
20795 cat conftest.err >&5
20796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 (exit $ac_status); } && {
20798 test -z "$ac_c_werror_flag" ||
20799 test ! -s conftest.err
20800 } && test -s conftest$ac_exeext && {
20801 test "$cross_compiling" = yes ||
20802 $as_test_x conftest$ac_exeext
20803 }; then
20804 eval "$as_ac_var=yes"
20805 else
20806 $as_echo "$as_me: failed program was:" >&5
20807 sed 's/^/| /' conftest.$ac_ext >&5
20808
20809 eval "$as_ac_var=no"
20810 fi
20811
20812 rm -rf conftest.dSYM
20813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20814 conftest$ac_exeext conftest.$ac_ext
20815 fi
20816 ac_res=`eval 'as_val=${'$as_ac_var'}
20817 $as_echo "$as_val"'`
20818 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20819 $as_echo "$ac_res" >&6; }
20820 if test `eval 'as_val=${'$as_ac_var'}
20821 $as_echo "$as_val"'` = yes; then
20822 cat >>confdefs.h <<_ACEOF
20823 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20824 _ACEOF
20825
20826 else
20827 GETOPT_H=getopt.h
20828 fi
20829 done
20830
20831 fi
20832
20833 if test -z "$GETOPT_H"; then
20834 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
20835 $as_echo_n "checking whether optreset is declared... " >&6; }
20836 if test "${ac_cv_have_decl_optreset+set}" = set; then
20837 $as_echo_n "(cached) " >&6
20838 else
20839 cat >conftest.$ac_ext <<_ACEOF
20840 /* confdefs.h. */
20841 _ACEOF
20842 cat confdefs.h >>conftest.$ac_ext
20843 cat >>conftest.$ac_ext <<_ACEOF
20844 /* end confdefs.h. */
20845 #include <getopt.h>
20846
20847 int
20848 main ()
20849 {
20850 #ifndef optreset
20851 (void) optreset;
20852 #endif
20853
20854 ;
20855 return 0;
20856 }
20857 _ACEOF
20858 rm -f conftest.$ac_objext
20859 if { (ac_try="$ac_compile"
20860 case "(($ac_try" in
20861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20862 *) ac_try_echo=$ac_try;;
20863 esac
20864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20865 $as_echo "$ac_try_echo") >&5
20866 (eval "$ac_compile") 2>conftest.er1
20867 ac_status=$?
20868 grep -v '^ *+' conftest.er1 >conftest.err
20869 rm -f conftest.er1
20870 cat conftest.err >&5
20871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); } && {
20873 test -z "$ac_c_werror_flag" ||
20874 test ! -s conftest.err
20875 } && test -s conftest.$ac_objext; then
20876 ac_cv_have_decl_optreset=yes
20877 else
20878 $as_echo "$as_me: failed program was:" >&5
20879 sed 's/^/| /' conftest.$ac_ext >&5
20880
20881 ac_cv_have_decl_optreset=no
20882 fi
20883
20884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20885 fi
20886 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20887 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20888 if test $ac_cv_have_decl_optreset = yes; then
20889 GETOPT_H=getopt.h
20890 fi
20891
20892 fi
20893
20894 if test -z "$GETOPT_H"; then
20895 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
20896 $as_echo_n "checking for working GNU getopt function... " >&6; }
20897 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20898 $as_echo_n "(cached) " >&6
20899 else
20900 if test "$cross_compiling" = yes; then
20901 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
20902 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
20903 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20904 $as_echo_n "(cached) " >&6
20905 else
20906 cat >conftest.$ac_ext <<_ACEOF
20907 /* confdefs.h. */
20908 _ACEOF
20909 cat confdefs.h >>conftest.$ac_ext
20910 cat >>conftest.$ac_ext <<_ACEOF
20911 /* end confdefs.h. */
20912 #include <getopt.h>
20913
20914 int
20915 main ()
20916 {
20917 #ifndef getopt_clip
20918 (void) getopt_clip;
20919 #endif
20920
20921 ;
20922 return 0;
20923 }
20924 _ACEOF
20925 rm -f conftest.$ac_objext
20926 if { (ac_try="$ac_compile"
20927 case "(($ac_try" in
20928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20929 *) ac_try_echo=$ac_try;;
20930 esac
20931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20932 $as_echo "$ac_try_echo") >&5
20933 (eval "$ac_compile") 2>conftest.er1
20934 ac_status=$?
20935 grep -v '^ *+' conftest.er1 >conftest.err
20936 rm -f conftest.er1
20937 cat conftest.err >&5
20938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939 (exit $ac_status); } && {
20940 test -z "$ac_c_werror_flag" ||
20941 test ! -s conftest.err
20942 } && test -s conftest.$ac_objext; then
20943 ac_cv_have_decl_getopt_clip=yes
20944 else
20945 $as_echo "$as_me: failed program was:" >&5
20946 sed 's/^/| /' conftest.$ac_ext >&5
20947
20948 ac_cv_have_decl_getopt_clip=no
20949 fi
20950
20951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20952 fi
20953 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20954 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20955 if test $ac_cv_have_decl_getopt_clip = yes; then
20956 gl_cv_func_gnu_getopt=no
20957 else
20958 gl_cv_func_gnu_getopt=yes
20959 fi
20960
20961 else
20962 cat >conftest.$ac_ext <<_ACEOF
20963 /* confdefs.h. */
20964 _ACEOF
20965 cat confdefs.h >>conftest.$ac_ext
20966 cat >>conftest.$ac_ext <<_ACEOF
20967 /* end confdefs.h. */
20968 #include <getopt.h>
20969 int
20970 main ()
20971 {
20972
20973 char *myargv[3];
20974 myargv[0] = "conftest";
20975 myargv[1] = "-+";
20976 myargv[2] = 0;
20977 return getopt (2, myargv, "+a") != '?';
20978
20979 ;
20980 return 0;
20981 }
20982 _ACEOF
20983 rm -f conftest$ac_exeext
20984 if { (ac_try="$ac_link"
20985 case "(($ac_try" in
20986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20987 *) ac_try_echo=$ac_try;;
20988 esac
20989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20990 $as_echo "$ac_try_echo") >&5
20991 (eval "$ac_link") 2>&5
20992 ac_status=$?
20993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20995 { (case "(($ac_try" in
20996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20997 *) ac_try_echo=$ac_try;;
20998 esac
20999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21000 $as_echo "$ac_try_echo") >&5
21001 (eval "$ac_try") 2>&5
21002 ac_status=$?
21003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004 (exit $ac_status); }; }; then
21005 gl_cv_func_gnu_getopt=yes
21006 else
21007 $as_echo "$as_me: program exited with status $ac_status" >&5
21008 $as_echo "$as_me: failed program was:" >&5
21009 sed 's/^/| /' conftest.$ac_ext >&5
21010
21011 ( exit $ac_status )
21012 gl_cv_func_gnu_getopt=no
21013 fi
21014 rm -rf conftest.dSYM
21015 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21016 fi
21017
21018
21019 fi
21020 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
21021 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
21022 if test "$gl_cv_func_gnu_getopt" = "no"; then
21023 GETOPT_H=getopt.h
21024 fi
21025 fi
21026
21027
21028
21029 if test -n "$GETOPT_H"; then
21030
21031
21032 GETOPT_H=getopt.h
21033
21034 cat >>confdefs.h <<\_ACEOF
21035 #define __GETOPT_PREFIX rpl_
21036 _ACEOF
21037
21038
21039
21040 :
21041 GETOPTOBJS='getopt.o getopt1.o'
21042
21043 fi
21044
21045
21046
21047
21048 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
21049 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
21050 if test "${ac_cv_func_getpgrp_void+set}" = set; then
21051 $as_echo_n "(cached) " >&6
21052 else
21053 # Use it with a single arg.
21054 cat >conftest.$ac_ext <<_ACEOF
21055 /* confdefs.h. */
21056 _ACEOF
21057 cat confdefs.h >>conftest.$ac_ext
21058 cat >>conftest.$ac_ext <<_ACEOF
21059 /* end confdefs.h. */
21060 $ac_includes_default
21061 int
21062 main ()
21063 {
21064 getpgrp (0);
21065 ;
21066 return 0;
21067 }
21068 _ACEOF
21069 rm -f conftest.$ac_objext
21070 if { (ac_try="$ac_compile"
21071 case "(($ac_try" in
21072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21073 *) ac_try_echo=$ac_try;;
21074 esac
21075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21076 $as_echo "$ac_try_echo") >&5
21077 (eval "$ac_compile") 2>conftest.er1
21078 ac_status=$?
21079 grep -v '^ *+' conftest.er1 >conftest.err
21080 rm -f conftest.er1
21081 cat conftest.err >&5
21082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083 (exit $ac_status); } && {
21084 test -z "$ac_c_werror_flag" ||
21085 test ! -s conftest.err
21086 } && test -s conftest.$ac_objext; then
21087 ac_cv_func_getpgrp_void=no
21088 else
21089 $as_echo "$as_me: failed program was:" >&5
21090 sed 's/^/| /' conftest.$ac_ext >&5
21091
21092 ac_cv_func_getpgrp_void=yes
21093 fi
21094
21095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21096
21097 fi
21098 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
21099 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
21100 if test $ac_cv_func_getpgrp_void = yes; then
21101
21102 cat >>confdefs.h <<\_ACEOF
21103 #define GETPGRP_VOID 1
21104 _ACEOF
21105
21106 fi
21107
21108
21109
21110 for ac_func in strftime
21111 do
21112 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21113 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21114 $as_echo_n "checking for $ac_func... " >&6; }
21115 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21116 $as_echo_n "(cached) " >&6
21117 else
21118 cat >conftest.$ac_ext <<_ACEOF
21119 /* confdefs.h. */
21120 _ACEOF
21121 cat confdefs.h >>conftest.$ac_ext
21122 cat >>conftest.$ac_ext <<_ACEOF
21123 /* end confdefs.h. */
21124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21126 #define $ac_func innocuous_$ac_func
21127
21128 /* System header to define __stub macros and hopefully few prototypes,
21129 which can conflict with char $ac_func (); below.
21130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21131 <limits.h> exists even on freestanding compilers. */
21132
21133 #ifdef __STDC__
21134 # include <limits.h>
21135 #else
21136 # include <assert.h>
21137 #endif
21138
21139 #undef $ac_func
21140
21141 /* Override any GCC internal prototype to avoid an error.
21142 Use char because int might match the return type of a GCC
21143 builtin and then its argument prototype would still apply. */
21144 #ifdef __cplusplus
21145 extern "C"
21146 #endif
21147 char $ac_func ();
21148 /* The GNU C library defines this for functions which it implements
21149 to always fail with ENOSYS. Some functions are actually named
21150 something starting with __ and the normal name is an alias. */
21151 #if defined __stub_$ac_func || defined __stub___$ac_func
21152 choke me
21153 #endif
21154
21155 int
21156 main ()
21157 {
21158 return $ac_func ();
21159 ;
21160 return 0;
21161 }
21162 _ACEOF
21163 rm -f conftest.$ac_objext conftest$ac_exeext
21164 if { (ac_try="$ac_link"
21165 case "(($ac_try" in
21166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21167 *) ac_try_echo=$ac_try;;
21168 esac
21169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21170 $as_echo "$ac_try_echo") >&5
21171 (eval "$ac_link") 2>conftest.er1
21172 ac_status=$?
21173 grep -v '^ *+' conftest.er1 >conftest.err
21174 rm -f conftest.er1
21175 cat conftest.err >&5
21176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177 (exit $ac_status); } && {
21178 test -z "$ac_c_werror_flag" ||
21179 test ! -s conftest.err
21180 } && test -s conftest$ac_exeext && {
21181 test "$cross_compiling" = yes ||
21182 $as_test_x conftest$ac_exeext
21183 }; then
21184 eval "$as_ac_var=yes"
21185 else
21186 $as_echo "$as_me: failed program was:" >&5
21187 sed 's/^/| /' conftest.$ac_ext >&5
21188
21189 eval "$as_ac_var=no"
21190 fi
21191
21192 rm -rf conftest.dSYM
21193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21194 conftest$ac_exeext conftest.$ac_ext
21195 fi
21196 ac_res=`eval 'as_val=${'$as_ac_var'}
21197 $as_echo "$as_val"'`
21198 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21199 $as_echo "$ac_res" >&6; }
21200 if test `eval 'as_val=${'$as_ac_var'}
21201 $as_echo "$as_val"'` = yes; then
21202 cat >>confdefs.h <<_ACEOF
21203 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21204 _ACEOF
21205
21206 else
21207 # strftime is in -lintl on SCO UNIX.
21208 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
21209 $as_echo_n "checking for strftime in -lintl... " >&6; }
21210 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21211 $as_echo_n "(cached) " >&6
21212 else
21213 ac_check_lib_save_LIBS=$LIBS
21214 LIBS="-lintl $LIBS"
21215 cat >conftest.$ac_ext <<_ACEOF
21216 /* confdefs.h. */
21217 _ACEOF
21218 cat confdefs.h >>conftest.$ac_ext
21219 cat >>conftest.$ac_ext <<_ACEOF
21220 /* end confdefs.h. */
21221
21222 /* Override any GCC internal prototype to avoid an error.
21223 Use char because int might match the return type of a GCC
21224 builtin and then its argument prototype would still apply. */
21225 #ifdef __cplusplus
21226 extern "C"
21227 #endif
21228 char strftime ();
21229 int
21230 main ()
21231 {
21232 return strftime ();
21233 ;
21234 return 0;
21235 }
21236 _ACEOF
21237 rm -f conftest.$ac_objext conftest$ac_exeext
21238 if { (ac_try="$ac_link"
21239 case "(($ac_try" in
21240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21241 *) ac_try_echo=$ac_try;;
21242 esac
21243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21244 $as_echo "$ac_try_echo") >&5
21245 (eval "$ac_link") 2>conftest.er1
21246 ac_status=$?
21247 grep -v '^ *+' conftest.er1 >conftest.err
21248 rm -f conftest.er1
21249 cat conftest.err >&5
21250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21251 (exit $ac_status); } && {
21252 test -z "$ac_c_werror_flag" ||
21253 test ! -s conftest.err
21254 } && test -s conftest$ac_exeext && {
21255 test "$cross_compiling" = yes ||
21256 $as_test_x conftest$ac_exeext
21257 }; then
21258 ac_cv_lib_intl_strftime=yes
21259 else
21260 $as_echo "$as_me: failed program was:" >&5
21261 sed 's/^/| /' conftest.$ac_ext >&5
21262
21263 ac_cv_lib_intl_strftime=no
21264 fi
21265
21266 rm -rf conftest.dSYM
21267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21268 conftest$ac_exeext conftest.$ac_ext
21269 LIBS=$ac_check_lib_save_LIBS
21270 fi
21271 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
21272 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
21273 if test $ac_cv_lib_intl_strftime = yes; then
21274 cat >>confdefs.h <<\_ACEOF
21275 #define HAVE_STRFTIME 1
21276 _ACEOF
21277
21278 LIBS="-lintl $LIBS"
21279 fi
21280
21281 fi
21282 done
21283
21284
21285 # UNIX98 PTYs.
21286
21287 for ac_func in grantpt
21288 do
21289 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21290 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21291 $as_echo_n "checking for $ac_func... " >&6; }
21292 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21293 $as_echo_n "(cached) " >&6
21294 else
21295 cat >conftest.$ac_ext <<_ACEOF
21296 /* confdefs.h. */
21297 _ACEOF
21298 cat confdefs.h >>conftest.$ac_ext
21299 cat >>conftest.$ac_ext <<_ACEOF
21300 /* end confdefs.h. */
21301 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21303 #define $ac_func innocuous_$ac_func
21304
21305 /* System header to define __stub macros and hopefully few prototypes,
21306 which can conflict with char $ac_func (); below.
21307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21308 <limits.h> exists even on freestanding compilers. */
21309
21310 #ifdef __STDC__
21311 # include <limits.h>
21312 #else
21313 # include <assert.h>
21314 #endif
21315
21316 #undef $ac_func
21317
21318 /* Override any GCC internal prototype to avoid an error.
21319 Use char because int might match the return type of a GCC
21320 builtin and then its argument prototype would still apply. */
21321 #ifdef __cplusplus
21322 extern "C"
21323 #endif
21324 char $ac_func ();
21325 /* The GNU C library defines this for functions which it implements
21326 to always fail with ENOSYS. Some functions are actually named
21327 something starting with __ and the normal name is an alias. */
21328 #if defined __stub_$ac_func || defined __stub___$ac_func
21329 choke me
21330 #endif
21331
21332 int
21333 main ()
21334 {
21335 return $ac_func ();
21336 ;
21337 return 0;
21338 }
21339 _ACEOF
21340 rm -f conftest.$ac_objext conftest$ac_exeext
21341 if { (ac_try="$ac_link"
21342 case "(($ac_try" in
21343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21344 *) ac_try_echo=$ac_try;;
21345 esac
21346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21347 $as_echo "$ac_try_echo") >&5
21348 (eval "$ac_link") 2>conftest.er1
21349 ac_status=$?
21350 grep -v '^ *+' conftest.er1 >conftest.err
21351 rm -f conftest.er1
21352 cat conftest.err >&5
21353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 (exit $ac_status); } && {
21355 test -z "$ac_c_werror_flag" ||
21356 test ! -s conftest.err
21357 } && test -s conftest$ac_exeext && {
21358 test "$cross_compiling" = yes ||
21359 $as_test_x conftest$ac_exeext
21360 }; then
21361 eval "$as_ac_var=yes"
21362 else
21363 $as_echo "$as_me: failed program was:" >&5
21364 sed 's/^/| /' conftest.$ac_ext >&5
21365
21366 eval "$as_ac_var=no"
21367 fi
21368
21369 rm -rf conftest.dSYM
21370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21371 conftest$ac_exeext conftest.$ac_ext
21372 fi
21373 ac_res=`eval 'as_val=${'$as_ac_var'}
21374 $as_echo "$as_val"'`
21375 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21376 $as_echo "$ac_res" >&6; }
21377 if test `eval 'as_val=${'$as_ac_var'}
21378 $as_echo "$as_val"'` = yes; then
21379 cat >>confdefs.h <<_ACEOF
21380 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21381 _ACEOF
21382
21383 fi
21384 done
21385
21386
21387 # PTY-related GNU extensions.
21388
21389 for ac_func in getpt
21390 do
21391 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21392 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21393 $as_echo_n "checking for $ac_func... " >&6; }
21394 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21395 $as_echo_n "(cached) " >&6
21396 else
21397 cat >conftest.$ac_ext <<_ACEOF
21398 /* confdefs.h. */
21399 _ACEOF
21400 cat confdefs.h >>conftest.$ac_ext
21401 cat >>conftest.$ac_ext <<_ACEOF
21402 /* end confdefs.h. */
21403 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21405 #define $ac_func innocuous_$ac_func
21406
21407 /* System header to define __stub macros and hopefully few prototypes,
21408 which can conflict with char $ac_func (); below.
21409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21410 <limits.h> exists even on freestanding compilers. */
21411
21412 #ifdef __STDC__
21413 # include <limits.h>
21414 #else
21415 # include <assert.h>
21416 #endif
21417
21418 #undef $ac_func
21419
21420 /* Override any GCC internal prototype to avoid an error.
21421 Use char because int might match the return type of a GCC
21422 builtin and then its argument prototype would still apply. */
21423 #ifdef __cplusplus
21424 extern "C"
21425 #endif
21426 char $ac_func ();
21427 /* The GNU C library defines this for functions which it implements
21428 to always fail with ENOSYS. Some functions are actually named
21429 something starting with __ and the normal name is an alias. */
21430 #if defined __stub_$ac_func || defined __stub___$ac_func
21431 choke me
21432 #endif
21433
21434 int
21435 main ()
21436 {
21437 return $ac_func ();
21438 ;
21439 return 0;
21440 }
21441 _ACEOF
21442 rm -f conftest.$ac_objext conftest$ac_exeext
21443 if { (ac_try="$ac_link"
21444 case "(($ac_try" in
21445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21446 *) ac_try_echo=$ac_try;;
21447 esac
21448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21449 $as_echo "$ac_try_echo") >&5
21450 (eval "$ac_link") 2>conftest.er1
21451 ac_status=$?
21452 grep -v '^ *+' conftest.er1 >conftest.err
21453 rm -f conftest.er1
21454 cat conftest.err >&5
21455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21456 (exit $ac_status); } && {
21457 test -z "$ac_c_werror_flag" ||
21458 test ! -s conftest.err
21459 } && test -s conftest$ac_exeext && {
21460 test "$cross_compiling" = yes ||
21461 $as_test_x conftest$ac_exeext
21462 }; then
21463 eval "$as_ac_var=yes"
21464 else
21465 $as_echo "$as_me: failed program was:" >&5
21466 sed 's/^/| /' conftest.$ac_ext >&5
21467
21468 eval "$as_ac_var=no"
21469 fi
21470
21471 rm -rf conftest.dSYM
21472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21473 conftest$ac_exeext conftest.$ac_ext
21474 fi
21475 ac_res=`eval 'as_val=${'$as_ac_var'}
21476 $as_echo "$as_val"'`
21477 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21478 $as_echo "$ac_res" >&6; }
21479 if test `eval 'as_val=${'$as_ac_var'}
21480 $as_echo "$as_val"'` = yes; then
21481 cat >>confdefs.h <<_ACEOF
21482 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21483 _ACEOF
21484
21485 fi
21486 done
21487
21488
21489 # Check this now, so that we will NOT find the above functions in ncurses.
21490 # That is because we have not set up to link ncurses in lib-src.
21491 # It's better to believe a function is not available
21492 # than to expect to find it in ncurses.
21493 # Also we need tputs and friends to be able to build at all.
21494 have_tputs_et_al=true
21495 { $as_echo "$as_me:$LINENO: checking for library containing tputs" >&5
21496 $as_echo_n "checking for library containing tputs... " >&6; }
21497 if test "${ac_cv_search_tputs+set}" = set; then
21498 $as_echo_n "(cached) " >&6
21499 else
21500 ac_func_search_save_LIBS=$LIBS
21501 cat >conftest.$ac_ext <<_ACEOF
21502 /* confdefs.h. */
21503 _ACEOF
21504 cat confdefs.h >>conftest.$ac_ext
21505 cat >>conftest.$ac_ext <<_ACEOF
21506 /* end confdefs.h. */
21507
21508 /* Override any GCC internal prototype to avoid an error.
21509 Use char because int might match the return type of a GCC
21510 builtin and then its argument prototype would still apply. */
21511 #ifdef __cplusplus
21512 extern "C"
21513 #endif
21514 char tputs ();
21515 int
21516 main ()
21517 {
21518 return tputs ();
21519 ;
21520 return 0;
21521 }
21522 _ACEOF
21523 for ac_lib in '' ncurses terminfo termcap; do
21524 if test -z "$ac_lib"; then
21525 ac_res="none required"
21526 else
21527 ac_res=-l$ac_lib
21528 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21529 fi
21530 rm -f conftest.$ac_objext conftest$ac_exeext
21531 if { (ac_try="$ac_link"
21532 case "(($ac_try" in
21533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21534 *) ac_try_echo=$ac_try;;
21535 esac
21536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21537 $as_echo "$ac_try_echo") >&5
21538 (eval "$ac_link") 2>conftest.er1
21539 ac_status=$?
21540 grep -v '^ *+' conftest.er1 >conftest.err
21541 rm -f conftest.er1
21542 cat conftest.err >&5
21543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21544 (exit $ac_status); } && {
21545 test -z "$ac_c_werror_flag" ||
21546 test ! -s conftest.err
21547 } && test -s conftest$ac_exeext && {
21548 test "$cross_compiling" = yes ||
21549 $as_test_x conftest$ac_exeext
21550 }; then
21551 ac_cv_search_tputs=$ac_res
21552 else
21553 $as_echo "$as_me: failed program was:" >&5
21554 sed 's/^/| /' conftest.$ac_ext >&5
21555
21556
21557 fi
21558
21559 rm -rf conftest.dSYM
21560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21561 conftest$ac_exeext
21562 if test "${ac_cv_search_tputs+set}" = set; then
21563 break
21564 fi
21565 done
21566 if test "${ac_cv_search_tputs+set}" = set; then
21567 :
21568 else
21569 ac_cv_search_tputs=no
21570 fi
21571 rm conftest.$ac_ext
21572 LIBS=$ac_func_search_save_LIBS
21573 fi
21574 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tputs" >&5
21575 $as_echo "$ac_cv_search_tputs" >&6; }
21576 ac_res=$ac_cv_search_tputs
21577 if test "$ac_res" != no; then
21578 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21579
21580 else
21581 have_tputs_et_al=false
21582 fi
21583
21584 if test "$have_tputs_et_al" != true; then
21585 { { $as_echo "$as_me:$LINENO: error: I couldn't find termcap functions (tputs and friends).
21586 Maybe some development libraries/packages are missing? Try installing
21587 libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21588 $as_echo "$as_me: error: I couldn't find termcap functions (tputs and friends).
21589 Maybe some development libraries/packages are missing? Try installing
21590 libncurses-dev(el), libterminfo-dev(el) or similar." >&2;}
21591 { (exit 1); exit 1; }; }
21592 fi
21593 # Must define this when any termcap library is found.
21594
21595 cat >>confdefs.h <<\_ACEOF
21596 #define HAVE_LIBNCURSES 1
21597 _ACEOF
21598
21599 ## FIXME This was the cpp logic, but I am not sure it is right.
21600 ## The above test has not necessarily found libncurses.
21601 HAVE_LIBNCURSES=yes
21602
21603 ## Use terminfo instead of termcap?
21604 ## Note only system files NOT using terminfo are:
21605 ## freebsd < 40000, ms-w32, msdos, netbsd, and
21606 ## darwin|gnu without ncurses.
21607 TERMINFO=no
21608 LIBS_TERMCAP=
21609 case "$opsys" in
21610 ## cygwin: Fewer environment variables to go wrong, more terminal types.
21611 ## hpux10-20: Use the system provided termcap(3) library.
21612 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
21613 ## is necessary. Otherwise Emacs dumps core when run -nw.
21614 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
21615
21616 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
21617 ## The ncurses library has been moved out of the System framework in
21618 ## Mac OS X 10.2. So if configure detects it, set the command-line
21619 ## option to use it.
21620 darwin|gnu*)
21621 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
21622 if test "x$HAVE_LIBNCURSES" = "xyes"; then
21623 TERMINFO=yes
21624 LIBS_TERMCAP="-lncurses"
21625 fi
21626 ;;
21627
21628 freebsd)
21629 { $as_echo "$as_me:$LINENO: checking whether FreeBSD is new enough to use terminfo" >&5
21630 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
21631 if test "${emacs_cv_freebsd_terminfo+set}" = set; then
21632 $as_echo_n "(cached) " >&6
21633 else
21634 cat >conftest.$ac_ext <<_ACEOF
21635 /* confdefs.h. */
21636 _ACEOF
21637 cat confdefs.h >>conftest.$ac_ext
21638 cat >>conftest.$ac_ext <<_ACEOF
21639 /* end confdefs.h. */
21640 #include <osreldate.h>
21641 int
21642 main ()
21643 {
21644 #if __FreeBSD_version < 400000
21645 fail;
21646 #endif
21647
21648 ;
21649 return 0;
21650 }
21651 _ACEOF
21652 rm -f conftest.$ac_objext conftest$ac_exeext
21653 if { (ac_try="$ac_link"
21654 case "(($ac_try" in
21655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21656 *) ac_try_echo=$ac_try;;
21657 esac
21658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21659 $as_echo "$ac_try_echo") >&5
21660 (eval "$ac_link") 2>conftest.er1
21661 ac_status=$?
21662 grep -v '^ *+' conftest.er1 >conftest.err
21663 rm -f conftest.er1
21664 cat conftest.err >&5
21665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); } && {
21667 test -z "$ac_c_werror_flag" ||
21668 test ! -s conftest.err
21669 } && test -s conftest$ac_exeext && {
21670 test "$cross_compiling" = yes ||
21671 $as_test_x conftest$ac_exeext
21672 }; then
21673 emacs_cv_freebsd_terminfo=yes
21674 else
21675 $as_echo "$as_me: failed program was:" >&5
21676 sed 's/^/| /' conftest.$ac_ext >&5
21677
21678 emacs_cv_freebsd_terminfo=no
21679 fi
21680
21681 rm -rf conftest.dSYM
21682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21683 conftest$ac_exeext conftest.$ac_ext
21684 fi
21685
21686
21687 { $as_echo "$as_me:$LINENO: result: $emacs_cv_freebsd_terminfo" >&5
21688 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
21689
21690 if test $emacs_cv_freebsd_terminfo = yes; then
21691 TERMINFO=yes
21692 LIBS_TERMCAP="-lncurses"
21693 else
21694 LIBS_TERMCAP="-ltermcap"
21695 fi
21696 ;;
21697
21698 esac
21699
21700 case "$opsys" in
21701 ## hpux: Make sure we get select from libc rather than from libcurses
21702 ## because libcurses on HPUX 10.10 has a broken version of select.
21703 ## We used to use -lc -lcurses, but this may be cleaner.
21704 hpux*|netbsd) LIBS_TERMCAP="-ltermcap" ;;
21705
21706 openbsd) LIBS_TERMCAP="-lncurses" ;;
21707
21708 ## Must use system termcap, if we use any termcap. It does special things.
21709 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
21710 esac
21711
21712 TERMCAP_OBJ=tparam.o
21713 if test $TERMINFO = yes; then
21714
21715 cat >>confdefs.h <<\_ACEOF
21716 #define TERMINFO 1
21717 _ACEOF
21718
21719
21720 ## Default used to be -ltermcap. Add a case above if need something else.
21721 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
21722
21723 TERMCAP_OBJ=terminfo.o
21724 fi
21725
21726
21727
21728
21729 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21730 resolv=no
21731 cat >conftest.$ac_ext <<_ACEOF
21732 /* confdefs.h. */
21733 _ACEOF
21734 cat confdefs.h >>conftest.$ac_ext
21735 cat >>conftest.$ac_ext <<_ACEOF
21736 /* end confdefs.h. */
21737 #include <netinet/in.h>
21738 #include <arpa/nameser.h>
21739 #include <resolv.h>
21740 int
21741 main ()
21742 {
21743 return res_init();
21744 ;
21745 return 0;
21746 }
21747 _ACEOF
21748 rm -f conftest.$ac_objext conftest$ac_exeext
21749 if { (ac_try="$ac_link"
21750 case "(($ac_try" in
21751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21752 *) ac_try_echo=$ac_try;;
21753 esac
21754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21755 $as_echo "$ac_try_echo") >&5
21756 (eval "$ac_link") 2>conftest.er1
21757 ac_status=$?
21758 grep -v '^ *+' conftest.er1 >conftest.err
21759 rm -f conftest.er1
21760 cat conftest.err >&5
21761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762 (exit $ac_status); } && {
21763 test -z "$ac_c_werror_flag" ||
21764 test ! -s conftest.err
21765 } && test -s conftest$ac_exeext && {
21766 test "$cross_compiling" = yes ||
21767 $as_test_x conftest$ac_exeext
21768 }; then
21769 have_res_init=yes
21770 else
21771 $as_echo "$as_me: failed program was:" >&5
21772 sed 's/^/| /' conftest.$ac_ext >&5
21773
21774 have_res_init=no
21775 fi
21776
21777 rm -rf conftest.dSYM
21778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21779 conftest$ac_exeext conftest.$ac_ext
21780 if test "$have_res_init" = no; then
21781 OLIBS="$LIBS"
21782 LIBS="$LIBS -lresolv"
21783 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
21784 $as_echo_n "checking for res_init with -lresolv... " >&6; }
21785 cat >conftest.$ac_ext <<_ACEOF
21786 /* confdefs.h. */
21787 _ACEOF
21788 cat confdefs.h >>conftest.$ac_ext
21789 cat >>conftest.$ac_ext <<_ACEOF
21790 /* end confdefs.h. */
21791 #include <netinet/in.h>
21792 #include <arpa/nameser.h>
21793 #include <resolv.h>
21794 int
21795 main ()
21796 {
21797 return res_init();
21798 ;
21799 return 0;
21800 }
21801 _ACEOF
21802 rm -f conftest.$ac_objext conftest$ac_exeext
21803 if { (ac_try="$ac_link"
21804 case "(($ac_try" in
21805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21806 *) ac_try_echo=$ac_try;;
21807 esac
21808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21809 $as_echo "$ac_try_echo") >&5
21810 (eval "$ac_link") 2>conftest.er1
21811 ac_status=$?
21812 grep -v '^ *+' conftest.er1 >conftest.err
21813 rm -f conftest.er1
21814 cat conftest.err >&5
21815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816 (exit $ac_status); } && {
21817 test -z "$ac_c_werror_flag" ||
21818 test ! -s conftest.err
21819 } && test -s conftest$ac_exeext && {
21820 test "$cross_compiling" = yes ||
21821 $as_test_x conftest$ac_exeext
21822 }; then
21823 have_res_init=yes
21824 else
21825 $as_echo "$as_me: failed program was:" >&5
21826 sed 's/^/| /' conftest.$ac_ext >&5
21827
21828 have_res_init=no
21829 fi
21830
21831 rm -rf conftest.dSYM
21832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21833 conftest$ac_exeext conftest.$ac_ext
21834 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
21835 $as_echo "$have_res_init" >&6; }
21836 if test "$have_res_init" = yes ; then
21837 resolv=yes
21838 fi
21839 LIBS="$OLIBS"
21840 fi
21841
21842 if test "$have_res_init" = yes; then
21843
21844 cat >>confdefs.h <<\_ACEOF
21845 #define HAVE_RES_INIT 1
21846 _ACEOF
21847
21848 fi
21849
21850 # Do we need the Hesiod library to provide the support routines?
21851 LIBHESIOD=
21852 if test "$with_hesiod" != no ; then
21853 # Don't set $LIBS here -- see comments above. FIXME which comments?
21854 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
21855 $as_echo_n "checking for res_send... " >&6; }
21856 if test "${ac_cv_func_res_send+set}" = set; then
21857 $as_echo_n "(cached) " >&6
21858 else
21859 cat >conftest.$ac_ext <<_ACEOF
21860 /* confdefs.h. */
21861 _ACEOF
21862 cat confdefs.h >>conftest.$ac_ext
21863 cat >>conftest.$ac_ext <<_ACEOF
21864 /* end confdefs.h. */
21865 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21867 #define res_send innocuous_res_send
21868
21869 /* System header to define __stub macros and hopefully few prototypes,
21870 which can conflict with char res_send (); below.
21871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21872 <limits.h> exists even on freestanding compilers. */
21873
21874 #ifdef __STDC__
21875 # include <limits.h>
21876 #else
21877 # include <assert.h>
21878 #endif
21879
21880 #undef res_send
21881
21882 /* Override any GCC internal prototype to avoid an error.
21883 Use char because int might match the return type of a GCC
21884 builtin and then its argument prototype would still apply. */
21885 #ifdef __cplusplus
21886 extern "C"
21887 #endif
21888 char res_send ();
21889 /* The GNU C library defines this for functions which it implements
21890 to always fail with ENOSYS. Some functions are actually named
21891 something starting with __ and the normal name is an alias. */
21892 #if defined __stub_res_send || defined __stub___res_send
21893 choke me
21894 #endif
21895
21896 int
21897 main ()
21898 {
21899 return res_send ();
21900 ;
21901 return 0;
21902 }
21903 _ACEOF
21904 rm -f conftest.$ac_objext conftest$ac_exeext
21905 if { (ac_try="$ac_link"
21906 case "(($ac_try" in
21907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21908 *) ac_try_echo=$ac_try;;
21909 esac
21910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21911 $as_echo "$ac_try_echo") >&5
21912 (eval "$ac_link") 2>conftest.er1
21913 ac_status=$?
21914 grep -v '^ *+' conftest.er1 >conftest.err
21915 rm -f conftest.er1
21916 cat conftest.err >&5
21917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918 (exit $ac_status); } && {
21919 test -z "$ac_c_werror_flag" ||
21920 test ! -s conftest.err
21921 } && test -s conftest$ac_exeext && {
21922 test "$cross_compiling" = yes ||
21923 $as_test_x conftest$ac_exeext
21924 }; then
21925 ac_cv_func_res_send=yes
21926 else
21927 $as_echo "$as_me: failed program was:" >&5
21928 sed 's/^/| /' conftest.$ac_ext >&5
21929
21930 ac_cv_func_res_send=no
21931 fi
21932
21933 rm -rf conftest.dSYM
21934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21935 conftest$ac_exeext conftest.$ac_ext
21936 fi
21937 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
21938 $as_echo "$ac_cv_func_res_send" >&6; }
21939 if test $ac_cv_func_res_send = yes; then
21940 :
21941 else
21942 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
21943 $as_echo_n "checking for __res_send... " >&6; }
21944 if test "${ac_cv_func___res_send+set}" = set; then
21945 $as_echo_n "(cached) " >&6
21946 else
21947 cat >conftest.$ac_ext <<_ACEOF
21948 /* confdefs.h. */
21949 _ACEOF
21950 cat confdefs.h >>conftest.$ac_ext
21951 cat >>conftest.$ac_ext <<_ACEOF
21952 /* end confdefs.h. */
21953 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21955 #define __res_send innocuous___res_send
21956
21957 /* System header to define __stub macros and hopefully few prototypes,
21958 which can conflict with char __res_send (); below.
21959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21960 <limits.h> exists even on freestanding compilers. */
21961
21962 #ifdef __STDC__
21963 # include <limits.h>
21964 #else
21965 # include <assert.h>
21966 #endif
21967
21968 #undef __res_send
21969
21970 /* Override any GCC internal prototype to avoid an error.
21971 Use char because int might match the return type of a GCC
21972 builtin and then its argument prototype would still apply. */
21973 #ifdef __cplusplus
21974 extern "C"
21975 #endif
21976 char __res_send ();
21977 /* The GNU C library defines this for functions which it implements
21978 to always fail with ENOSYS. Some functions are actually named
21979 something starting with __ and the normal name is an alias. */
21980 #if defined __stub___res_send || defined __stub_____res_send
21981 choke me
21982 #endif
21983
21984 int
21985 main ()
21986 {
21987 return __res_send ();
21988 ;
21989 return 0;
21990 }
21991 _ACEOF
21992 rm -f conftest.$ac_objext conftest$ac_exeext
21993 if { (ac_try="$ac_link"
21994 case "(($ac_try" in
21995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21996 *) ac_try_echo=$ac_try;;
21997 esac
21998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21999 $as_echo "$ac_try_echo") >&5
22000 (eval "$ac_link") 2>conftest.er1
22001 ac_status=$?
22002 grep -v '^ *+' conftest.er1 >conftest.err
22003 rm -f conftest.er1
22004 cat conftest.err >&5
22005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006 (exit $ac_status); } && {
22007 test -z "$ac_c_werror_flag" ||
22008 test ! -s conftest.err
22009 } && test -s conftest$ac_exeext && {
22010 test "$cross_compiling" = yes ||
22011 $as_test_x conftest$ac_exeext
22012 }; then
22013 ac_cv_func___res_send=yes
22014 else
22015 $as_echo "$as_me: failed program was:" >&5
22016 sed 's/^/| /' conftest.$ac_ext >&5
22017
22018 ac_cv_func___res_send=no
22019 fi
22020
22021 rm -rf conftest.dSYM
22022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22023 conftest$ac_exeext conftest.$ac_ext
22024 fi
22025 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
22026 $as_echo "$ac_cv_func___res_send" >&6; }
22027 if test $ac_cv_func___res_send = yes; then
22028 :
22029 else
22030 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
22031 $as_echo_n "checking for res_send in -lresolv... " >&6; }
22032 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
22033 $as_echo_n "(cached) " >&6
22034 else
22035 ac_check_lib_save_LIBS=$LIBS
22036 LIBS="-lresolv $LIBS"
22037 cat >conftest.$ac_ext <<_ACEOF
22038 /* confdefs.h. */
22039 _ACEOF
22040 cat confdefs.h >>conftest.$ac_ext
22041 cat >>conftest.$ac_ext <<_ACEOF
22042 /* end confdefs.h. */
22043
22044 /* Override any GCC internal prototype to avoid an error.
22045 Use char because int might match the return type of a GCC
22046 builtin and then its argument prototype would still apply. */
22047 #ifdef __cplusplus
22048 extern "C"
22049 #endif
22050 char res_send ();
22051 int
22052 main ()
22053 {
22054 return res_send ();
22055 ;
22056 return 0;
22057 }
22058 _ACEOF
22059 rm -f conftest.$ac_objext conftest$ac_exeext
22060 if { (ac_try="$ac_link"
22061 case "(($ac_try" in
22062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22063 *) ac_try_echo=$ac_try;;
22064 esac
22065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22066 $as_echo "$ac_try_echo") >&5
22067 (eval "$ac_link") 2>conftest.er1
22068 ac_status=$?
22069 grep -v '^ *+' conftest.er1 >conftest.err
22070 rm -f conftest.er1
22071 cat conftest.err >&5
22072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073 (exit $ac_status); } && {
22074 test -z "$ac_c_werror_flag" ||
22075 test ! -s conftest.err
22076 } && test -s conftest$ac_exeext && {
22077 test "$cross_compiling" = yes ||
22078 $as_test_x conftest$ac_exeext
22079 }; then
22080 ac_cv_lib_resolv_res_send=yes
22081 else
22082 $as_echo "$as_me: failed program was:" >&5
22083 sed 's/^/| /' conftest.$ac_ext >&5
22084
22085 ac_cv_lib_resolv_res_send=no
22086 fi
22087
22088 rm -rf conftest.dSYM
22089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22090 conftest$ac_exeext conftest.$ac_ext
22091 LIBS=$ac_check_lib_save_LIBS
22092 fi
22093 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
22094 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
22095 if test $ac_cv_lib_resolv_res_send = yes; then
22096 resolv=yes
22097 else
22098 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
22099 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
22100 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
22101 $as_echo_n "(cached) " >&6
22102 else
22103 ac_check_lib_save_LIBS=$LIBS
22104 LIBS="-lresolv $LIBS"
22105 cat >conftest.$ac_ext <<_ACEOF
22106 /* confdefs.h. */
22107 _ACEOF
22108 cat confdefs.h >>conftest.$ac_ext
22109 cat >>conftest.$ac_ext <<_ACEOF
22110 /* end confdefs.h. */
22111
22112 /* Override any GCC internal prototype to avoid an error.
22113 Use char because int might match the return type of a GCC
22114 builtin and then its argument prototype would still apply. */
22115 #ifdef __cplusplus
22116 extern "C"
22117 #endif
22118 char __res_send ();
22119 int
22120 main ()
22121 {
22122 return __res_send ();
22123 ;
22124 return 0;
22125 }
22126 _ACEOF
22127 rm -f conftest.$ac_objext conftest$ac_exeext
22128 if { (ac_try="$ac_link"
22129 case "(($ac_try" in
22130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22131 *) ac_try_echo=$ac_try;;
22132 esac
22133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22134 $as_echo "$ac_try_echo") >&5
22135 (eval "$ac_link") 2>conftest.er1
22136 ac_status=$?
22137 grep -v '^ *+' conftest.er1 >conftest.err
22138 rm -f conftest.er1
22139 cat conftest.err >&5
22140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141 (exit $ac_status); } && {
22142 test -z "$ac_c_werror_flag" ||
22143 test ! -s conftest.err
22144 } && test -s conftest$ac_exeext && {
22145 test "$cross_compiling" = yes ||
22146 $as_test_x conftest$ac_exeext
22147 }; then
22148 ac_cv_lib_resolv___res_send=yes
22149 else
22150 $as_echo "$as_me: failed program was:" >&5
22151 sed 's/^/| /' conftest.$ac_ext >&5
22152
22153 ac_cv_lib_resolv___res_send=no
22154 fi
22155
22156 rm -rf conftest.dSYM
22157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22158 conftest$ac_exeext conftest.$ac_ext
22159 LIBS=$ac_check_lib_save_LIBS
22160 fi
22161 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
22162 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
22163 if test $ac_cv_lib_resolv___res_send = yes; then
22164 resolv=yes
22165 fi
22166
22167 fi
22168
22169 fi
22170
22171 fi
22172
22173 if test "$resolv" = yes ; then
22174 RESOLVLIB=-lresolv
22175 else
22176 RESOLVLIB=
22177 fi
22178 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
22179 $as_echo_n "checking for hes_getmailhost... " >&6; }
22180 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
22181 $as_echo_n "(cached) " >&6
22182 else
22183 cat >conftest.$ac_ext <<_ACEOF
22184 /* confdefs.h. */
22185 _ACEOF
22186 cat confdefs.h >>conftest.$ac_ext
22187 cat >>conftest.$ac_ext <<_ACEOF
22188 /* end confdefs.h. */
22189 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
22190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22191 #define hes_getmailhost innocuous_hes_getmailhost
22192
22193 /* System header to define __stub macros and hopefully few prototypes,
22194 which can conflict with char hes_getmailhost (); below.
22195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22196 <limits.h> exists even on freestanding compilers. */
22197
22198 #ifdef __STDC__
22199 # include <limits.h>
22200 #else
22201 # include <assert.h>
22202 #endif
22203
22204 #undef hes_getmailhost
22205
22206 /* Override any GCC internal prototype to avoid an error.
22207 Use char because int might match the return type of a GCC
22208 builtin and then its argument prototype would still apply. */
22209 #ifdef __cplusplus
22210 extern "C"
22211 #endif
22212 char hes_getmailhost ();
22213 /* The GNU C library defines this for functions which it implements
22214 to always fail with ENOSYS. Some functions are actually named
22215 something starting with __ and the normal name is an alias. */
22216 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
22217 choke me
22218 #endif
22219
22220 int
22221 main ()
22222 {
22223 return hes_getmailhost ();
22224 ;
22225 return 0;
22226 }
22227 _ACEOF
22228 rm -f conftest.$ac_objext conftest$ac_exeext
22229 if { (ac_try="$ac_link"
22230 case "(($ac_try" in
22231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22232 *) ac_try_echo=$ac_try;;
22233 esac
22234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22235 $as_echo "$ac_try_echo") >&5
22236 (eval "$ac_link") 2>conftest.er1
22237 ac_status=$?
22238 grep -v '^ *+' conftest.er1 >conftest.err
22239 rm -f conftest.er1
22240 cat conftest.err >&5
22241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242 (exit $ac_status); } && {
22243 test -z "$ac_c_werror_flag" ||
22244 test ! -s conftest.err
22245 } && test -s conftest$ac_exeext && {
22246 test "$cross_compiling" = yes ||
22247 $as_test_x conftest$ac_exeext
22248 }; then
22249 ac_cv_func_hes_getmailhost=yes
22250 else
22251 $as_echo "$as_me: failed program was:" >&5
22252 sed 's/^/| /' conftest.$ac_ext >&5
22253
22254 ac_cv_func_hes_getmailhost=no
22255 fi
22256
22257 rm -rf conftest.dSYM
22258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22259 conftest$ac_exeext conftest.$ac_ext
22260 fi
22261 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
22262 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
22263 if test $ac_cv_func_hes_getmailhost = yes; then
22264 :
22265 else
22266 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
22267 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
22268 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
22269 $as_echo_n "(cached) " >&6
22270 else
22271 ac_check_lib_save_LIBS=$LIBS
22272 LIBS="-lhesiod $RESOLVLIB $LIBS"
22273 cat >conftest.$ac_ext <<_ACEOF
22274 /* confdefs.h. */
22275 _ACEOF
22276 cat confdefs.h >>conftest.$ac_ext
22277 cat >>conftest.$ac_ext <<_ACEOF
22278 /* end confdefs.h. */
22279
22280 /* Override any GCC internal prototype to avoid an error.
22281 Use char because int might match the return type of a GCC
22282 builtin and then its argument prototype would still apply. */
22283 #ifdef __cplusplus
22284 extern "C"
22285 #endif
22286 char hes_getmailhost ();
22287 int
22288 main ()
22289 {
22290 return hes_getmailhost ();
22291 ;
22292 return 0;
22293 }
22294 _ACEOF
22295 rm -f conftest.$ac_objext conftest$ac_exeext
22296 if { (ac_try="$ac_link"
22297 case "(($ac_try" in
22298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22299 *) ac_try_echo=$ac_try;;
22300 esac
22301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22302 $as_echo "$ac_try_echo") >&5
22303 (eval "$ac_link") 2>conftest.er1
22304 ac_status=$?
22305 grep -v '^ *+' conftest.er1 >conftest.err
22306 rm -f conftest.er1
22307 cat conftest.err >&5
22308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309 (exit $ac_status); } && {
22310 test -z "$ac_c_werror_flag" ||
22311 test ! -s conftest.err
22312 } && test -s conftest$ac_exeext && {
22313 test "$cross_compiling" = yes ||
22314 $as_test_x conftest$ac_exeext
22315 }; then
22316 ac_cv_lib_hesiod_hes_getmailhost=yes
22317 else
22318 $as_echo "$as_me: failed program was:" >&5
22319 sed 's/^/| /' conftest.$ac_ext >&5
22320
22321 ac_cv_lib_hesiod_hes_getmailhost=no
22322 fi
22323
22324 rm -rf conftest.dSYM
22325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22326 conftest$ac_exeext conftest.$ac_ext
22327 LIBS=$ac_check_lib_save_LIBS
22328 fi
22329 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
22330 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
22331 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
22332 hesiod=yes
22333 else
22334 :
22335 fi
22336
22337 fi
22338
22339
22340 if test x"$hesiod" = xyes; then
22341
22342 cat >>confdefs.h <<\_ACEOF
22343 #define HAVE_LIBHESIOD 1
22344 _ACEOF
22345
22346 LIBHESIOD=-lhesiod
22347 fi
22348 fi
22349
22350
22351 # Do we need libresolv (due to res_init or Hesiod)?
22352 if test "$resolv" = yes ; then
22353
22354 cat >>confdefs.h <<\_ACEOF
22355 #define HAVE_LIBRESOLV 1
22356 _ACEOF
22357
22358 LIBRESOLV=-lresolv
22359 else
22360 LIBRESOLV=
22361 fi
22362
22363
22364 # These tell us which Kerberos-related libraries to use.
22365 COM_ERRLIB=
22366 CRYPTOLIB=
22367 KRB5LIB=
22368 DESLIB=
22369 KRB4LIB=
22370
22371 if test "${with_kerberos}" != no; then
22372 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
22373 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
22374 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
22375 $as_echo_n "(cached) " >&6
22376 else
22377 ac_check_lib_save_LIBS=$LIBS
22378 LIBS="-lcom_err $LIBS"
22379 cat >conftest.$ac_ext <<_ACEOF
22380 /* confdefs.h. */
22381 _ACEOF
22382 cat confdefs.h >>conftest.$ac_ext
22383 cat >>conftest.$ac_ext <<_ACEOF
22384 /* end confdefs.h. */
22385
22386 /* Override any GCC internal prototype to avoid an error.
22387 Use char because int might match the return type of a GCC
22388 builtin and then its argument prototype would still apply. */
22389 #ifdef __cplusplus
22390 extern "C"
22391 #endif
22392 char com_err ();
22393 int
22394 main ()
22395 {
22396 return com_err ();
22397 ;
22398 return 0;
22399 }
22400 _ACEOF
22401 rm -f conftest.$ac_objext conftest$ac_exeext
22402 if { (ac_try="$ac_link"
22403 case "(($ac_try" in
22404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22405 *) ac_try_echo=$ac_try;;
22406 esac
22407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22408 $as_echo "$ac_try_echo") >&5
22409 (eval "$ac_link") 2>conftest.er1
22410 ac_status=$?
22411 grep -v '^ *+' conftest.er1 >conftest.err
22412 rm -f conftest.er1
22413 cat conftest.err >&5
22414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22415 (exit $ac_status); } && {
22416 test -z "$ac_c_werror_flag" ||
22417 test ! -s conftest.err
22418 } && test -s conftest$ac_exeext && {
22419 test "$cross_compiling" = yes ||
22420 $as_test_x conftest$ac_exeext
22421 }; then
22422 ac_cv_lib_com_err_com_err=yes
22423 else
22424 $as_echo "$as_me: failed program was:" >&5
22425 sed 's/^/| /' conftest.$ac_ext >&5
22426
22427 ac_cv_lib_com_err_com_err=no
22428 fi
22429
22430 rm -rf conftest.dSYM
22431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22432 conftest$ac_exeext conftest.$ac_ext
22433 LIBS=$ac_check_lib_save_LIBS
22434 fi
22435 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
22436 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
22437 if test $ac_cv_lib_com_err_com_err = yes; then
22438 have_com_err=yes
22439 else
22440 have_com_err=no
22441 fi
22442
22443 if test $have_com_err = yes; then
22444 COM_ERRLIB=-lcom_err
22445 LIBS="$COM_ERRLIB $LIBS"
22446
22447 cat >>confdefs.h <<\_ACEOF
22448 #define HAVE_LIBCOM_ERR 1
22449 _ACEOF
22450
22451 fi
22452 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
22453 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
22454 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
22455 $as_echo_n "(cached) " >&6
22456 else
22457 ac_check_lib_save_LIBS=$LIBS
22458 LIBS="-lcrypto $LIBS"
22459 cat >conftest.$ac_ext <<_ACEOF
22460 /* confdefs.h. */
22461 _ACEOF
22462 cat confdefs.h >>conftest.$ac_ext
22463 cat >>conftest.$ac_ext <<_ACEOF
22464 /* end confdefs.h. */
22465
22466 /* Override any GCC internal prototype to avoid an error.
22467 Use char because int might match the return type of a GCC
22468 builtin and then its argument prototype would still apply. */
22469 #ifdef __cplusplus
22470 extern "C"
22471 #endif
22472 char mit_des_cbc_encrypt ();
22473 int
22474 main ()
22475 {
22476 return mit_des_cbc_encrypt ();
22477 ;
22478 return 0;
22479 }
22480 _ACEOF
22481 rm -f conftest.$ac_objext conftest$ac_exeext
22482 if { (ac_try="$ac_link"
22483 case "(($ac_try" in
22484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22485 *) ac_try_echo=$ac_try;;
22486 esac
22487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22488 $as_echo "$ac_try_echo") >&5
22489 (eval "$ac_link") 2>conftest.er1
22490 ac_status=$?
22491 grep -v '^ *+' conftest.er1 >conftest.err
22492 rm -f conftest.er1
22493 cat conftest.err >&5
22494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22495 (exit $ac_status); } && {
22496 test -z "$ac_c_werror_flag" ||
22497 test ! -s conftest.err
22498 } && test -s conftest$ac_exeext && {
22499 test "$cross_compiling" = yes ||
22500 $as_test_x conftest$ac_exeext
22501 }; then
22502 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22503 else
22504 $as_echo "$as_me: failed program was:" >&5
22505 sed 's/^/| /' conftest.$ac_ext >&5
22506
22507 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22508 fi
22509
22510 rm -rf conftest.dSYM
22511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22512 conftest$ac_exeext conftest.$ac_ext
22513 LIBS=$ac_check_lib_save_LIBS
22514 fi
22515 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22516 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22517 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
22518 have_crypto=yes
22519 else
22520 have_crypto=no
22521 fi
22522
22523 if test $have_crypto = yes; then
22524 CRYPTOLIB=-lcrypto
22525 LIBS="$CRYPTOLIB $LIBS"
22526
22527 cat >>confdefs.h <<\_ACEOF
22528 #define HAVE_LIBCRYPTO 1
22529 _ACEOF
22530
22531 fi
22532 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
22533 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
22534 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
22535 $as_echo_n "(cached) " >&6
22536 else
22537 ac_check_lib_save_LIBS=$LIBS
22538 LIBS="-lk5crypto $LIBS"
22539 cat >conftest.$ac_ext <<_ACEOF
22540 /* confdefs.h. */
22541 _ACEOF
22542 cat confdefs.h >>conftest.$ac_ext
22543 cat >>conftest.$ac_ext <<_ACEOF
22544 /* end confdefs.h. */
22545
22546 /* Override any GCC internal prototype to avoid an error.
22547 Use char because int might match the return type of a GCC
22548 builtin and then its argument prototype would still apply. */
22549 #ifdef __cplusplus
22550 extern "C"
22551 #endif
22552 char mit_des_cbc_encrypt ();
22553 int
22554 main ()
22555 {
22556 return mit_des_cbc_encrypt ();
22557 ;
22558 return 0;
22559 }
22560 _ACEOF
22561 rm -f conftest.$ac_objext conftest$ac_exeext
22562 if { (ac_try="$ac_link"
22563 case "(($ac_try" in
22564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22565 *) ac_try_echo=$ac_try;;
22566 esac
22567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22568 $as_echo "$ac_try_echo") >&5
22569 (eval "$ac_link") 2>conftest.er1
22570 ac_status=$?
22571 grep -v '^ *+' conftest.er1 >conftest.err
22572 rm -f conftest.er1
22573 cat conftest.err >&5
22574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575 (exit $ac_status); } && {
22576 test -z "$ac_c_werror_flag" ||
22577 test ! -s conftest.err
22578 } && test -s conftest$ac_exeext && {
22579 test "$cross_compiling" = yes ||
22580 $as_test_x conftest$ac_exeext
22581 }; then
22582 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22583 else
22584 $as_echo "$as_me: failed program was:" >&5
22585 sed 's/^/| /' conftest.$ac_ext >&5
22586
22587 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22588 fi
22589
22590 rm -rf conftest.dSYM
22591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22592 conftest$ac_exeext conftest.$ac_ext
22593 LIBS=$ac_check_lib_save_LIBS
22594 fi
22595 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22596 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22597 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
22598 have_k5crypto=yes
22599 else
22600 have_k5crypto=no
22601 fi
22602
22603 if test $have_k5crypto = yes; then
22604 CRYPTOLIB=-lk5crypto
22605 LIBS="$CRYPTOLIB $LIBS"
22606
22607 cat >>confdefs.h <<\_ACEOF
22608 #define HAVE_LIBK5CRYPTO 1
22609 _ACEOF
22610
22611 fi
22612 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
22613 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
22614 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22615 $as_echo_n "(cached) " >&6
22616 else
22617 ac_check_lib_save_LIBS=$LIBS
22618 LIBS="-lkrb5 $LIBS"
22619 cat >conftest.$ac_ext <<_ACEOF
22620 /* confdefs.h. */
22621 _ACEOF
22622 cat confdefs.h >>conftest.$ac_ext
22623 cat >>conftest.$ac_ext <<_ACEOF
22624 /* end confdefs.h. */
22625
22626 /* Override any GCC internal prototype to avoid an error.
22627 Use char because int might match the return type of a GCC
22628 builtin and then its argument prototype would still apply. */
22629 #ifdef __cplusplus
22630 extern "C"
22631 #endif
22632 char krb5_init_context ();
22633 int
22634 main ()
22635 {
22636 return krb5_init_context ();
22637 ;
22638 return 0;
22639 }
22640 _ACEOF
22641 rm -f conftest.$ac_objext conftest$ac_exeext
22642 if { (ac_try="$ac_link"
22643 case "(($ac_try" in
22644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22645 *) ac_try_echo=$ac_try;;
22646 esac
22647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22648 $as_echo "$ac_try_echo") >&5
22649 (eval "$ac_link") 2>conftest.er1
22650 ac_status=$?
22651 grep -v '^ *+' conftest.er1 >conftest.err
22652 rm -f conftest.er1
22653 cat conftest.err >&5
22654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22655 (exit $ac_status); } && {
22656 test -z "$ac_c_werror_flag" ||
22657 test ! -s conftest.err
22658 } && test -s conftest$ac_exeext && {
22659 test "$cross_compiling" = yes ||
22660 $as_test_x conftest$ac_exeext
22661 }; then
22662 ac_cv_lib_krb5_krb5_init_context=yes
22663 else
22664 $as_echo "$as_me: failed program was:" >&5
22665 sed 's/^/| /' conftest.$ac_ext >&5
22666
22667 ac_cv_lib_krb5_krb5_init_context=no
22668 fi
22669
22670 rm -rf conftest.dSYM
22671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22672 conftest$ac_exeext conftest.$ac_ext
22673 LIBS=$ac_check_lib_save_LIBS
22674 fi
22675 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
22676 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22677 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
22678 have_krb5=yes
22679 else
22680 have_krb5=no
22681 fi
22682
22683 if test $have_krb5=yes; then
22684 KRB5LIB=-lkrb5
22685 LIBS="$KRB5LIB $LIBS"
22686
22687 cat >>confdefs.h <<\_ACEOF
22688 #define HAVE_LIBKRB5 1
22689 _ACEOF
22690
22691 fi
22692 if test "${with_kerberos5}" = no; then
22693 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
22694 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
22695 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22696 $as_echo_n "(cached) " >&6
22697 else
22698 ac_check_lib_save_LIBS=$LIBS
22699 LIBS="-ldes425 $LIBS"
22700 cat >conftest.$ac_ext <<_ACEOF
22701 /* confdefs.h. */
22702 _ACEOF
22703 cat confdefs.h >>conftest.$ac_ext
22704 cat >>conftest.$ac_ext <<_ACEOF
22705 /* end confdefs.h. */
22706
22707 /* Override any GCC internal prototype to avoid an error.
22708 Use char because int might match the return type of a GCC
22709 builtin and then its argument prototype would still apply. */
22710 #ifdef __cplusplus
22711 extern "C"
22712 #endif
22713 char des_cbc_encrypt ();
22714 int
22715 main ()
22716 {
22717 return des_cbc_encrypt ();
22718 ;
22719 return 0;
22720 }
22721 _ACEOF
22722 rm -f conftest.$ac_objext conftest$ac_exeext
22723 if { (ac_try="$ac_link"
22724 case "(($ac_try" in
22725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22726 *) ac_try_echo=$ac_try;;
22727 esac
22728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22729 $as_echo "$ac_try_echo") >&5
22730 (eval "$ac_link") 2>conftest.er1
22731 ac_status=$?
22732 grep -v '^ *+' conftest.er1 >conftest.err
22733 rm -f conftest.er1
22734 cat conftest.err >&5
22735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736 (exit $ac_status); } && {
22737 test -z "$ac_c_werror_flag" ||
22738 test ! -s conftest.err
22739 } && test -s conftest$ac_exeext && {
22740 test "$cross_compiling" = yes ||
22741 $as_test_x conftest$ac_exeext
22742 }; then
22743 ac_cv_lib_des425_des_cbc_encrypt=yes
22744 else
22745 $as_echo "$as_me: failed program was:" >&5
22746 sed 's/^/| /' conftest.$ac_ext >&5
22747
22748 ac_cv_lib_des425_des_cbc_encrypt=no
22749 fi
22750
22751 rm -rf conftest.dSYM
22752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22753 conftest$ac_exeext conftest.$ac_ext
22754 LIBS=$ac_check_lib_save_LIBS
22755 fi
22756 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22757 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22758 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
22759 have_des425=yes
22760 else
22761 have_des425=no
22762 fi
22763
22764 if test $have_des425 = yes; then
22765 DESLIB=-ldes425
22766 LIBS="$DESLIB $LIBS"
22767
22768 cat >>confdefs.h <<\_ACEOF
22769 #define HAVE_LIBDES425 1
22770 _ACEOF
22771
22772 else
22773 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
22774 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
22775 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22776 $as_echo_n "(cached) " >&6
22777 else
22778 ac_check_lib_save_LIBS=$LIBS
22779 LIBS="-ldes $LIBS"
22780 cat >conftest.$ac_ext <<_ACEOF
22781 /* confdefs.h. */
22782 _ACEOF
22783 cat confdefs.h >>conftest.$ac_ext
22784 cat >>conftest.$ac_ext <<_ACEOF
22785 /* end confdefs.h. */
22786
22787 /* Override any GCC internal prototype to avoid an error.
22788 Use char because int might match the return type of a GCC
22789 builtin and then its argument prototype would still apply. */
22790 #ifdef __cplusplus
22791 extern "C"
22792 #endif
22793 char des_cbc_encrypt ();
22794 int
22795 main ()
22796 {
22797 return des_cbc_encrypt ();
22798 ;
22799 return 0;
22800 }
22801 _ACEOF
22802 rm -f conftest.$ac_objext conftest$ac_exeext
22803 if { (ac_try="$ac_link"
22804 case "(($ac_try" in
22805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22806 *) ac_try_echo=$ac_try;;
22807 esac
22808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22809 $as_echo "$ac_try_echo") >&5
22810 (eval "$ac_link") 2>conftest.er1
22811 ac_status=$?
22812 grep -v '^ *+' conftest.er1 >conftest.err
22813 rm -f conftest.er1
22814 cat conftest.err >&5
22815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22816 (exit $ac_status); } && {
22817 test -z "$ac_c_werror_flag" ||
22818 test ! -s conftest.err
22819 } && test -s conftest$ac_exeext && {
22820 test "$cross_compiling" = yes ||
22821 $as_test_x conftest$ac_exeext
22822 }; then
22823 ac_cv_lib_des_des_cbc_encrypt=yes
22824 else
22825 $as_echo "$as_me: failed program was:" >&5
22826 sed 's/^/| /' conftest.$ac_ext >&5
22827
22828 ac_cv_lib_des_des_cbc_encrypt=no
22829 fi
22830
22831 rm -rf conftest.dSYM
22832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22833 conftest$ac_exeext conftest.$ac_ext
22834 LIBS=$ac_check_lib_save_LIBS
22835 fi
22836 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
22837 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22838 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
22839 have_des=yes
22840 else
22841 have_des=no
22842 fi
22843
22844 if test $have_des = yes; then
22845 DESLIB=-ldes
22846 LIBS="$DESLIB $LIBS"
22847
22848 cat >>confdefs.h <<\_ACEOF
22849 #define HAVE_LIBDES 1
22850 _ACEOF
22851
22852 fi
22853 fi
22854 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
22855 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
22856 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22857 $as_echo_n "(cached) " >&6
22858 else
22859 ac_check_lib_save_LIBS=$LIBS
22860 LIBS="-lkrb4 $LIBS"
22861 cat >conftest.$ac_ext <<_ACEOF
22862 /* confdefs.h. */
22863 _ACEOF
22864 cat confdefs.h >>conftest.$ac_ext
22865 cat >>conftest.$ac_ext <<_ACEOF
22866 /* end confdefs.h. */
22867
22868 /* Override any GCC internal prototype to avoid an error.
22869 Use char because int might match the return type of a GCC
22870 builtin and then its argument prototype would still apply. */
22871 #ifdef __cplusplus
22872 extern "C"
22873 #endif
22874 char krb_get_cred ();
22875 int
22876 main ()
22877 {
22878 return krb_get_cred ();
22879 ;
22880 return 0;
22881 }
22882 _ACEOF
22883 rm -f conftest.$ac_objext conftest$ac_exeext
22884 if { (ac_try="$ac_link"
22885 case "(($ac_try" in
22886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22887 *) ac_try_echo=$ac_try;;
22888 esac
22889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22890 $as_echo "$ac_try_echo") >&5
22891 (eval "$ac_link") 2>conftest.er1
22892 ac_status=$?
22893 grep -v '^ *+' conftest.er1 >conftest.err
22894 rm -f conftest.er1
22895 cat conftest.err >&5
22896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22897 (exit $ac_status); } && {
22898 test -z "$ac_c_werror_flag" ||
22899 test ! -s conftest.err
22900 } && test -s conftest$ac_exeext && {
22901 test "$cross_compiling" = yes ||
22902 $as_test_x conftest$ac_exeext
22903 }; then
22904 ac_cv_lib_krb4_krb_get_cred=yes
22905 else
22906 $as_echo "$as_me: failed program was:" >&5
22907 sed 's/^/| /' conftest.$ac_ext >&5
22908
22909 ac_cv_lib_krb4_krb_get_cred=no
22910 fi
22911
22912 rm -rf conftest.dSYM
22913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22914 conftest$ac_exeext conftest.$ac_ext
22915 LIBS=$ac_check_lib_save_LIBS
22916 fi
22917 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
22918 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22919 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22920 have_krb4=yes
22921 else
22922 have_krb4=no
22923 fi
22924
22925 if test $have_krb4 = yes; then
22926 KRB4LIB=-lkrb4
22927 LIBS="$KRB4LIB $LIBS"
22928
22929 cat >>confdefs.h <<\_ACEOF
22930 #define HAVE_LIBKRB4 1
22931 _ACEOF
22932
22933 else
22934 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
22935 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
22936 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22937 $as_echo_n "(cached) " >&6
22938 else
22939 ac_check_lib_save_LIBS=$LIBS
22940 LIBS="-lkrb $LIBS"
22941 cat >conftest.$ac_ext <<_ACEOF
22942 /* confdefs.h. */
22943 _ACEOF
22944 cat confdefs.h >>conftest.$ac_ext
22945 cat >>conftest.$ac_ext <<_ACEOF
22946 /* end confdefs.h. */
22947
22948 /* Override any GCC internal prototype to avoid an error.
22949 Use char because int might match the return type of a GCC
22950 builtin and then its argument prototype would still apply. */
22951 #ifdef __cplusplus
22952 extern "C"
22953 #endif
22954 char krb_get_cred ();
22955 int
22956 main ()
22957 {
22958 return krb_get_cred ();
22959 ;
22960 return 0;
22961 }
22962 _ACEOF
22963 rm -f conftest.$ac_objext conftest$ac_exeext
22964 if { (ac_try="$ac_link"
22965 case "(($ac_try" in
22966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22967 *) ac_try_echo=$ac_try;;
22968 esac
22969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22970 $as_echo "$ac_try_echo") >&5
22971 (eval "$ac_link") 2>conftest.er1
22972 ac_status=$?
22973 grep -v '^ *+' conftest.er1 >conftest.err
22974 rm -f conftest.er1
22975 cat conftest.err >&5
22976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977 (exit $ac_status); } && {
22978 test -z "$ac_c_werror_flag" ||
22979 test ! -s conftest.err
22980 } && test -s conftest$ac_exeext && {
22981 test "$cross_compiling" = yes ||
22982 $as_test_x conftest$ac_exeext
22983 }; then
22984 ac_cv_lib_krb_krb_get_cred=yes
22985 else
22986 $as_echo "$as_me: failed program was:" >&5
22987 sed 's/^/| /' conftest.$ac_ext >&5
22988
22989 ac_cv_lib_krb_krb_get_cred=no
22990 fi
22991
22992 rm -rf conftest.dSYM
22993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22994 conftest$ac_exeext conftest.$ac_ext
22995 LIBS=$ac_check_lib_save_LIBS
22996 fi
22997 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
22998 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22999 if test $ac_cv_lib_krb_krb_get_cred = yes; then
23000 have_krb=yes
23001 else
23002 have_krb=no
23003 fi
23004
23005 if test $have_krb = yes; then
23006 KRB4LIB=-lkrb
23007 LIBS="$KRB4LIB $LIBS"
23008
23009 cat >>confdefs.h <<\_ACEOF
23010 #define HAVE_LIBKRB 1
23011 _ACEOF
23012
23013 fi
23014 fi
23015 fi
23016
23017 if test "${with_kerberos5}" != no; then
23018
23019 for ac_header in krb5.h
23020 do
23021 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23023 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23024 $as_echo_n "checking for $ac_header... " >&6; }
23025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23026 $as_echo_n "(cached) " >&6
23027 fi
23028 ac_res=`eval 'as_val=${'$as_ac_Header'}
23029 $as_echo "$as_val"'`
23030 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23031 $as_echo "$ac_res" >&6; }
23032 else
23033 # Is the header compilable?
23034 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23035 $as_echo_n "checking $ac_header usability... " >&6; }
23036 cat >conftest.$ac_ext <<_ACEOF
23037 /* confdefs.h. */
23038 _ACEOF
23039 cat confdefs.h >>conftest.$ac_ext
23040 cat >>conftest.$ac_ext <<_ACEOF
23041 /* end confdefs.h. */
23042 $ac_includes_default
23043 #include <$ac_header>
23044 _ACEOF
23045 rm -f conftest.$ac_objext
23046 if { (ac_try="$ac_compile"
23047 case "(($ac_try" in
23048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23049 *) ac_try_echo=$ac_try;;
23050 esac
23051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23052 $as_echo "$ac_try_echo") >&5
23053 (eval "$ac_compile") 2>conftest.er1
23054 ac_status=$?
23055 grep -v '^ *+' conftest.er1 >conftest.err
23056 rm -f conftest.er1
23057 cat conftest.err >&5
23058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23059 (exit $ac_status); } && {
23060 test -z "$ac_c_werror_flag" ||
23061 test ! -s conftest.err
23062 } && test -s conftest.$ac_objext; then
23063 ac_header_compiler=yes
23064 else
23065 $as_echo "$as_me: failed program was:" >&5
23066 sed 's/^/| /' conftest.$ac_ext >&5
23067
23068 ac_header_compiler=no
23069 fi
23070
23071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23072 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23073 $as_echo "$ac_header_compiler" >&6; }
23074
23075 # Is the header present?
23076 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23077 $as_echo_n "checking $ac_header presence... " >&6; }
23078 cat >conftest.$ac_ext <<_ACEOF
23079 /* confdefs.h. */
23080 _ACEOF
23081 cat confdefs.h >>conftest.$ac_ext
23082 cat >>conftest.$ac_ext <<_ACEOF
23083 /* end confdefs.h. */
23084 #include <$ac_header>
23085 _ACEOF
23086 if { (ac_try="$ac_cpp conftest.$ac_ext"
23087 case "(($ac_try" in
23088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23089 *) ac_try_echo=$ac_try;;
23090 esac
23091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23092 $as_echo "$ac_try_echo") >&5
23093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23094 ac_status=$?
23095 grep -v '^ *+' conftest.er1 >conftest.err
23096 rm -f conftest.er1
23097 cat conftest.err >&5
23098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23099 (exit $ac_status); } >/dev/null && {
23100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23101 test ! -s conftest.err
23102 }; then
23103 ac_header_preproc=yes
23104 else
23105 $as_echo "$as_me: failed program was:" >&5
23106 sed 's/^/| /' conftest.$ac_ext >&5
23107
23108 ac_header_preproc=no
23109 fi
23110
23111 rm -f conftest.err conftest.$ac_ext
23112 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23113 $as_echo "$ac_header_preproc" >&6; }
23114
23115 # So? What about this header?
23116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23117 yes:no: )
23118 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23119 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23120 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23121 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23122 ac_header_preproc=yes
23123 ;;
23124 no:yes:* )
23125 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23126 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23127 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23128 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23129 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23130 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23131 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23132 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23133 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23134 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23136 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23137
23138 ;;
23139 esac
23140 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23141 $as_echo_n "checking for $ac_header... " >&6; }
23142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23143 $as_echo_n "(cached) " >&6
23144 else
23145 eval "$as_ac_Header=\$ac_header_preproc"
23146 fi
23147 ac_res=`eval 'as_val=${'$as_ac_Header'}
23148 $as_echo "$as_val"'`
23149 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23150 $as_echo "$ac_res" >&6; }
23151
23152 fi
23153 if test `eval 'as_val=${'$as_ac_Header'}
23154 $as_echo "$as_val"'` = yes; then
23155 cat >>confdefs.h <<_ACEOF
23156 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23157 _ACEOF
23158 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
23159 $as_echo_n "checking for krb5_error.text... " >&6; }
23160 if test "${ac_cv_member_krb5_error_text+set}" = set; then
23161 $as_echo_n "(cached) " >&6
23162 else
23163 cat >conftest.$ac_ext <<_ACEOF
23164 /* confdefs.h. */
23165 _ACEOF
23166 cat confdefs.h >>conftest.$ac_ext
23167 cat >>conftest.$ac_ext <<_ACEOF
23168 /* end confdefs.h. */
23169 #include <krb5.h>
23170
23171 int
23172 main ()
23173 {
23174 static krb5_error ac_aggr;
23175 if (ac_aggr.text)
23176 return 0;
23177 ;
23178 return 0;
23179 }
23180 _ACEOF
23181 rm -f conftest.$ac_objext
23182 if { (ac_try="$ac_compile"
23183 case "(($ac_try" in
23184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23185 *) ac_try_echo=$ac_try;;
23186 esac
23187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23188 $as_echo "$ac_try_echo") >&5
23189 (eval "$ac_compile") 2>conftest.er1
23190 ac_status=$?
23191 grep -v '^ *+' conftest.er1 >conftest.err
23192 rm -f conftest.er1
23193 cat conftest.err >&5
23194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23195 (exit $ac_status); } && {
23196 test -z "$ac_c_werror_flag" ||
23197 test ! -s conftest.err
23198 } && test -s conftest.$ac_objext; then
23199 ac_cv_member_krb5_error_text=yes
23200 else
23201 $as_echo "$as_me: failed program was:" >&5
23202 sed 's/^/| /' conftest.$ac_ext >&5
23203
23204 cat >conftest.$ac_ext <<_ACEOF
23205 /* confdefs.h. */
23206 _ACEOF
23207 cat confdefs.h >>conftest.$ac_ext
23208 cat >>conftest.$ac_ext <<_ACEOF
23209 /* end confdefs.h. */
23210 #include <krb5.h>
23211
23212 int
23213 main ()
23214 {
23215 static krb5_error ac_aggr;
23216 if (sizeof ac_aggr.text)
23217 return 0;
23218 ;
23219 return 0;
23220 }
23221 _ACEOF
23222 rm -f conftest.$ac_objext
23223 if { (ac_try="$ac_compile"
23224 case "(($ac_try" in
23225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23226 *) ac_try_echo=$ac_try;;
23227 esac
23228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23229 $as_echo "$ac_try_echo") >&5
23230 (eval "$ac_compile") 2>conftest.er1
23231 ac_status=$?
23232 grep -v '^ *+' conftest.er1 >conftest.err
23233 rm -f conftest.er1
23234 cat conftest.err >&5
23235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236 (exit $ac_status); } && {
23237 test -z "$ac_c_werror_flag" ||
23238 test ! -s conftest.err
23239 } && test -s conftest.$ac_objext; then
23240 ac_cv_member_krb5_error_text=yes
23241 else
23242 $as_echo "$as_me: failed program was:" >&5
23243 sed 's/^/| /' conftest.$ac_ext >&5
23244
23245 ac_cv_member_krb5_error_text=no
23246 fi
23247
23248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23249 fi
23250
23251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23252 fi
23253 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
23254 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
23255 if test $ac_cv_member_krb5_error_text = yes; then
23256
23257 cat >>confdefs.h <<_ACEOF
23258 #define HAVE_KRB5_ERROR_TEXT 1
23259 _ACEOF
23260
23261
23262 fi
23263 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
23264 $as_echo_n "checking for krb5_error.e_text... " >&6; }
23265 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
23266 $as_echo_n "(cached) " >&6
23267 else
23268 cat >conftest.$ac_ext <<_ACEOF
23269 /* confdefs.h. */
23270 _ACEOF
23271 cat confdefs.h >>conftest.$ac_ext
23272 cat >>conftest.$ac_ext <<_ACEOF
23273 /* end confdefs.h. */
23274 #include <krb5.h>
23275
23276 int
23277 main ()
23278 {
23279 static krb5_error ac_aggr;
23280 if (ac_aggr.e_text)
23281 return 0;
23282 ;
23283 return 0;
23284 }
23285 _ACEOF
23286 rm -f conftest.$ac_objext
23287 if { (ac_try="$ac_compile"
23288 case "(($ac_try" in
23289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23290 *) ac_try_echo=$ac_try;;
23291 esac
23292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23293 $as_echo "$ac_try_echo") >&5
23294 (eval "$ac_compile") 2>conftest.er1
23295 ac_status=$?
23296 grep -v '^ *+' conftest.er1 >conftest.err
23297 rm -f conftest.er1
23298 cat conftest.err >&5
23299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23300 (exit $ac_status); } && {
23301 test -z "$ac_c_werror_flag" ||
23302 test ! -s conftest.err
23303 } && test -s conftest.$ac_objext; then
23304 ac_cv_member_krb5_error_e_text=yes
23305 else
23306 $as_echo "$as_me: failed program was:" >&5
23307 sed 's/^/| /' conftest.$ac_ext >&5
23308
23309 cat >conftest.$ac_ext <<_ACEOF
23310 /* confdefs.h. */
23311 _ACEOF
23312 cat confdefs.h >>conftest.$ac_ext
23313 cat >>conftest.$ac_ext <<_ACEOF
23314 /* end confdefs.h. */
23315 #include <krb5.h>
23316
23317 int
23318 main ()
23319 {
23320 static krb5_error ac_aggr;
23321 if (sizeof ac_aggr.e_text)
23322 return 0;
23323 ;
23324 return 0;
23325 }
23326 _ACEOF
23327 rm -f conftest.$ac_objext
23328 if { (ac_try="$ac_compile"
23329 case "(($ac_try" in
23330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23331 *) ac_try_echo=$ac_try;;
23332 esac
23333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23334 $as_echo "$ac_try_echo") >&5
23335 (eval "$ac_compile") 2>conftest.er1
23336 ac_status=$?
23337 grep -v '^ *+' conftest.er1 >conftest.err
23338 rm -f conftest.er1
23339 cat conftest.err >&5
23340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23341 (exit $ac_status); } && {
23342 test -z "$ac_c_werror_flag" ||
23343 test ! -s conftest.err
23344 } && test -s conftest.$ac_objext; then
23345 ac_cv_member_krb5_error_e_text=yes
23346 else
23347 $as_echo "$as_me: failed program was:" >&5
23348 sed 's/^/| /' conftest.$ac_ext >&5
23349
23350 ac_cv_member_krb5_error_e_text=no
23351 fi
23352
23353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23354 fi
23355
23356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23357 fi
23358 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
23359 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
23360 if test $ac_cv_member_krb5_error_e_text = yes; then
23361
23362 cat >>confdefs.h <<_ACEOF
23363 #define HAVE_KRB5_ERROR_E_TEXT 1
23364 _ACEOF
23365
23366
23367 fi
23368
23369 fi
23370
23371 done
23372
23373 else
23374
23375 for ac_header in des.h
23376 do
23377 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23379 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23380 $as_echo_n "checking for $ac_header... " >&6; }
23381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23382 $as_echo_n "(cached) " >&6
23383 fi
23384 ac_res=`eval 'as_val=${'$as_ac_Header'}
23385 $as_echo "$as_val"'`
23386 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23387 $as_echo "$ac_res" >&6; }
23388 else
23389 # Is the header compilable?
23390 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23391 $as_echo_n "checking $ac_header usability... " >&6; }
23392 cat >conftest.$ac_ext <<_ACEOF
23393 /* confdefs.h. */
23394 _ACEOF
23395 cat confdefs.h >>conftest.$ac_ext
23396 cat >>conftest.$ac_ext <<_ACEOF
23397 /* end confdefs.h. */
23398 $ac_includes_default
23399 #include <$ac_header>
23400 _ACEOF
23401 rm -f conftest.$ac_objext
23402 if { (ac_try="$ac_compile"
23403 case "(($ac_try" in
23404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23405 *) ac_try_echo=$ac_try;;
23406 esac
23407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23408 $as_echo "$ac_try_echo") >&5
23409 (eval "$ac_compile") 2>conftest.er1
23410 ac_status=$?
23411 grep -v '^ *+' conftest.er1 >conftest.err
23412 rm -f conftest.er1
23413 cat conftest.err >&5
23414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23415 (exit $ac_status); } && {
23416 test -z "$ac_c_werror_flag" ||
23417 test ! -s conftest.err
23418 } && test -s conftest.$ac_objext; then
23419 ac_header_compiler=yes
23420 else
23421 $as_echo "$as_me: failed program was:" >&5
23422 sed 's/^/| /' conftest.$ac_ext >&5
23423
23424 ac_header_compiler=no
23425 fi
23426
23427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23428 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23429 $as_echo "$ac_header_compiler" >&6; }
23430
23431 # Is the header present?
23432 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23433 $as_echo_n "checking $ac_header presence... " >&6; }
23434 cat >conftest.$ac_ext <<_ACEOF
23435 /* confdefs.h. */
23436 _ACEOF
23437 cat confdefs.h >>conftest.$ac_ext
23438 cat >>conftest.$ac_ext <<_ACEOF
23439 /* end confdefs.h. */
23440 #include <$ac_header>
23441 _ACEOF
23442 if { (ac_try="$ac_cpp conftest.$ac_ext"
23443 case "(($ac_try" in
23444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23445 *) ac_try_echo=$ac_try;;
23446 esac
23447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23448 $as_echo "$ac_try_echo") >&5
23449 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23450 ac_status=$?
23451 grep -v '^ *+' conftest.er1 >conftest.err
23452 rm -f conftest.er1
23453 cat conftest.err >&5
23454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23455 (exit $ac_status); } >/dev/null && {
23456 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23457 test ! -s conftest.err
23458 }; then
23459 ac_header_preproc=yes
23460 else
23461 $as_echo "$as_me: failed program was:" >&5
23462 sed 's/^/| /' conftest.$ac_ext >&5
23463
23464 ac_header_preproc=no
23465 fi
23466
23467 rm -f conftest.err conftest.$ac_ext
23468 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23469 $as_echo "$ac_header_preproc" >&6; }
23470
23471 # So? What about this header?
23472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23473 yes:no: )
23474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23475 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23476 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23477 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23478 ac_header_preproc=yes
23479 ;;
23480 no:yes:* )
23481 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23482 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23483 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23484 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23485 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23486 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23487 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23488 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23489 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23490 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23491 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23492 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23493
23494 ;;
23495 esac
23496 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23497 $as_echo_n "checking for $ac_header... " >&6; }
23498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23499 $as_echo_n "(cached) " >&6
23500 else
23501 eval "$as_ac_Header=\$ac_header_preproc"
23502 fi
23503 ac_res=`eval 'as_val=${'$as_ac_Header'}
23504 $as_echo "$as_val"'`
23505 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23506 $as_echo "$ac_res" >&6; }
23507
23508 fi
23509 if test `eval 'as_val=${'$as_ac_Header'}
23510 $as_echo "$as_val"'` = yes; then
23511 cat >>confdefs.h <<_ACEOF
23512 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23513 _ACEOF
23514
23515 else
23516
23517 for ac_header in kerberosIV/des.h
23518 do
23519 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23521 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23522 $as_echo_n "checking for $ac_header... " >&6; }
23523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23524 $as_echo_n "(cached) " >&6
23525 fi
23526 ac_res=`eval 'as_val=${'$as_ac_Header'}
23527 $as_echo "$as_val"'`
23528 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23529 $as_echo "$ac_res" >&6; }
23530 else
23531 # Is the header compilable?
23532 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23533 $as_echo_n "checking $ac_header usability... " >&6; }
23534 cat >conftest.$ac_ext <<_ACEOF
23535 /* confdefs.h. */
23536 _ACEOF
23537 cat confdefs.h >>conftest.$ac_ext
23538 cat >>conftest.$ac_ext <<_ACEOF
23539 /* end confdefs.h. */
23540 $ac_includes_default
23541 #include <$ac_header>
23542 _ACEOF
23543 rm -f conftest.$ac_objext
23544 if { (ac_try="$ac_compile"
23545 case "(($ac_try" in
23546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23547 *) ac_try_echo=$ac_try;;
23548 esac
23549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23550 $as_echo "$ac_try_echo") >&5
23551 (eval "$ac_compile") 2>conftest.er1
23552 ac_status=$?
23553 grep -v '^ *+' conftest.er1 >conftest.err
23554 rm -f conftest.er1
23555 cat conftest.err >&5
23556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23557 (exit $ac_status); } && {
23558 test -z "$ac_c_werror_flag" ||
23559 test ! -s conftest.err
23560 } && test -s conftest.$ac_objext; then
23561 ac_header_compiler=yes
23562 else
23563 $as_echo "$as_me: failed program was:" >&5
23564 sed 's/^/| /' conftest.$ac_ext >&5
23565
23566 ac_header_compiler=no
23567 fi
23568
23569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23570 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23571 $as_echo "$ac_header_compiler" >&6; }
23572
23573 # Is the header present?
23574 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23575 $as_echo_n "checking $ac_header presence... " >&6; }
23576 cat >conftest.$ac_ext <<_ACEOF
23577 /* confdefs.h. */
23578 _ACEOF
23579 cat confdefs.h >>conftest.$ac_ext
23580 cat >>conftest.$ac_ext <<_ACEOF
23581 /* end confdefs.h. */
23582 #include <$ac_header>
23583 _ACEOF
23584 if { (ac_try="$ac_cpp conftest.$ac_ext"
23585 case "(($ac_try" in
23586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23587 *) ac_try_echo=$ac_try;;
23588 esac
23589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23590 $as_echo "$ac_try_echo") >&5
23591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23592 ac_status=$?
23593 grep -v '^ *+' conftest.er1 >conftest.err
23594 rm -f conftest.er1
23595 cat conftest.err >&5
23596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23597 (exit $ac_status); } >/dev/null && {
23598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23599 test ! -s conftest.err
23600 }; then
23601 ac_header_preproc=yes
23602 else
23603 $as_echo "$as_me: failed program was:" >&5
23604 sed 's/^/| /' conftest.$ac_ext >&5
23605
23606 ac_header_preproc=no
23607 fi
23608
23609 rm -f conftest.err conftest.$ac_ext
23610 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23611 $as_echo "$ac_header_preproc" >&6; }
23612
23613 # So? What about this header?
23614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23615 yes:no: )
23616 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23617 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23618 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23619 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23620 ac_header_preproc=yes
23621 ;;
23622 no:yes:* )
23623 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23624 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23626 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23628 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23629 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23630 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23631 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23632 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23633 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23634 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23635
23636 ;;
23637 esac
23638 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23639 $as_echo_n "checking for $ac_header... " >&6; }
23640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23641 $as_echo_n "(cached) " >&6
23642 else
23643 eval "$as_ac_Header=\$ac_header_preproc"
23644 fi
23645 ac_res=`eval 'as_val=${'$as_ac_Header'}
23646 $as_echo "$as_val"'`
23647 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23648 $as_echo "$ac_res" >&6; }
23649
23650 fi
23651 if test `eval 'as_val=${'$as_ac_Header'}
23652 $as_echo "$as_val"'` = yes; then
23653 cat >>confdefs.h <<_ACEOF
23654 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23655 _ACEOF
23656
23657 else
23658
23659 for ac_header in kerberos/des.h
23660 do
23661 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23663 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23664 $as_echo_n "checking for $ac_header... " >&6; }
23665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23666 $as_echo_n "(cached) " >&6
23667 fi
23668 ac_res=`eval 'as_val=${'$as_ac_Header'}
23669 $as_echo "$as_val"'`
23670 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23671 $as_echo "$ac_res" >&6; }
23672 else
23673 # Is the header compilable?
23674 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23675 $as_echo_n "checking $ac_header usability... " >&6; }
23676 cat >conftest.$ac_ext <<_ACEOF
23677 /* confdefs.h. */
23678 _ACEOF
23679 cat confdefs.h >>conftest.$ac_ext
23680 cat >>conftest.$ac_ext <<_ACEOF
23681 /* end confdefs.h. */
23682 $ac_includes_default
23683 #include <$ac_header>
23684 _ACEOF
23685 rm -f conftest.$ac_objext
23686 if { (ac_try="$ac_compile"
23687 case "(($ac_try" in
23688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23689 *) ac_try_echo=$ac_try;;
23690 esac
23691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23692 $as_echo "$ac_try_echo") >&5
23693 (eval "$ac_compile") 2>conftest.er1
23694 ac_status=$?
23695 grep -v '^ *+' conftest.er1 >conftest.err
23696 rm -f conftest.er1
23697 cat conftest.err >&5
23698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23699 (exit $ac_status); } && {
23700 test -z "$ac_c_werror_flag" ||
23701 test ! -s conftest.err
23702 } && test -s conftest.$ac_objext; then
23703 ac_header_compiler=yes
23704 else
23705 $as_echo "$as_me: failed program was:" >&5
23706 sed 's/^/| /' conftest.$ac_ext >&5
23707
23708 ac_header_compiler=no
23709 fi
23710
23711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23712 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23713 $as_echo "$ac_header_compiler" >&6; }
23714
23715 # Is the header present?
23716 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23717 $as_echo_n "checking $ac_header presence... " >&6; }
23718 cat >conftest.$ac_ext <<_ACEOF
23719 /* confdefs.h. */
23720 _ACEOF
23721 cat confdefs.h >>conftest.$ac_ext
23722 cat >>conftest.$ac_ext <<_ACEOF
23723 /* end confdefs.h. */
23724 #include <$ac_header>
23725 _ACEOF
23726 if { (ac_try="$ac_cpp conftest.$ac_ext"
23727 case "(($ac_try" in
23728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23729 *) ac_try_echo=$ac_try;;
23730 esac
23731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23732 $as_echo "$ac_try_echo") >&5
23733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23734 ac_status=$?
23735 grep -v '^ *+' conftest.er1 >conftest.err
23736 rm -f conftest.er1
23737 cat conftest.err >&5
23738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739 (exit $ac_status); } >/dev/null && {
23740 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23741 test ! -s conftest.err
23742 }; then
23743 ac_header_preproc=yes
23744 else
23745 $as_echo "$as_me: failed program was:" >&5
23746 sed 's/^/| /' conftest.$ac_ext >&5
23747
23748 ac_header_preproc=no
23749 fi
23750
23751 rm -f conftest.err conftest.$ac_ext
23752 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23753 $as_echo "$ac_header_preproc" >&6; }
23754
23755 # So? What about this header?
23756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23757 yes:no: )
23758 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23759 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23760 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23761 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23762 ac_header_preproc=yes
23763 ;;
23764 no:yes:* )
23765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23766 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23767 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23768 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23769 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23770 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23771 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23772 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23773 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23774 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23775 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23776 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23777
23778 ;;
23779 esac
23780 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23781 $as_echo_n "checking for $ac_header... " >&6; }
23782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23783 $as_echo_n "(cached) " >&6
23784 else
23785 eval "$as_ac_Header=\$ac_header_preproc"
23786 fi
23787 ac_res=`eval 'as_val=${'$as_ac_Header'}
23788 $as_echo "$as_val"'`
23789 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23790 $as_echo "$ac_res" >&6; }
23791
23792 fi
23793 if test `eval 'as_val=${'$as_ac_Header'}
23794 $as_echo "$as_val"'` = yes; then
23795 cat >>confdefs.h <<_ACEOF
23796 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23797 _ACEOF
23798
23799 fi
23800
23801 done
23802
23803 fi
23804
23805 done
23806
23807 fi
23808
23809 done
23810
23811
23812 for ac_header in krb.h
23813 do
23814 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23816 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23817 $as_echo_n "checking for $ac_header... " >&6; }
23818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23819 $as_echo_n "(cached) " >&6
23820 fi
23821 ac_res=`eval 'as_val=${'$as_ac_Header'}
23822 $as_echo "$as_val"'`
23823 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23824 $as_echo "$ac_res" >&6; }
23825 else
23826 # Is the header compilable?
23827 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23828 $as_echo_n "checking $ac_header usability... " >&6; }
23829 cat >conftest.$ac_ext <<_ACEOF
23830 /* confdefs.h. */
23831 _ACEOF
23832 cat confdefs.h >>conftest.$ac_ext
23833 cat >>conftest.$ac_ext <<_ACEOF
23834 /* end confdefs.h. */
23835 $ac_includes_default
23836 #include <$ac_header>
23837 _ACEOF
23838 rm -f conftest.$ac_objext
23839 if { (ac_try="$ac_compile"
23840 case "(($ac_try" in
23841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23842 *) ac_try_echo=$ac_try;;
23843 esac
23844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23845 $as_echo "$ac_try_echo") >&5
23846 (eval "$ac_compile") 2>conftest.er1
23847 ac_status=$?
23848 grep -v '^ *+' conftest.er1 >conftest.err
23849 rm -f conftest.er1
23850 cat conftest.err >&5
23851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23852 (exit $ac_status); } && {
23853 test -z "$ac_c_werror_flag" ||
23854 test ! -s conftest.err
23855 } && test -s conftest.$ac_objext; then
23856 ac_header_compiler=yes
23857 else
23858 $as_echo "$as_me: failed program was:" >&5
23859 sed 's/^/| /' conftest.$ac_ext >&5
23860
23861 ac_header_compiler=no
23862 fi
23863
23864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23865 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23866 $as_echo "$ac_header_compiler" >&6; }
23867
23868 # Is the header present?
23869 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23870 $as_echo_n "checking $ac_header presence... " >&6; }
23871 cat >conftest.$ac_ext <<_ACEOF
23872 /* confdefs.h. */
23873 _ACEOF
23874 cat confdefs.h >>conftest.$ac_ext
23875 cat >>conftest.$ac_ext <<_ACEOF
23876 /* end confdefs.h. */
23877 #include <$ac_header>
23878 _ACEOF
23879 if { (ac_try="$ac_cpp conftest.$ac_ext"
23880 case "(($ac_try" in
23881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23882 *) ac_try_echo=$ac_try;;
23883 esac
23884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23885 $as_echo "$ac_try_echo") >&5
23886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23887 ac_status=$?
23888 grep -v '^ *+' conftest.er1 >conftest.err
23889 rm -f conftest.er1
23890 cat conftest.err >&5
23891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23892 (exit $ac_status); } >/dev/null && {
23893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23894 test ! -s conftest.err
23895 }; then
23896 ac_header_preproc=yes
23897 else
23898 $as_echo "$as_me: failed program was:" >&5
23899 sed 's/^/| /' conftest.$ac_ext >&5
23900
23901 ac_header_preproc=no
23902 fi
23903
23904 rm -f conftest.err conftest.$ac_ext
23905 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23906 $as_echo "$ac_header_preproc" >&6; }
23907
23908 # So? What about this header?
23909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23910 yes:no: )
23911 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23912 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23913 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23914 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23915 ac_header_preproc=yes
23916 ;;
23917 no:yes:* )
23918 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23919 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23920 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23921 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23922 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23923 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23924 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23925 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23926 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23927 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23928 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23929 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23930
23931 ;;
23932 esac
23933 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23934 $as_echo_n "checking for $ac_header... " >&6; }
23935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23936 $as_echo_n "(cached) " >&6
23937 else
23938 eval "$as_ac_Header=\$ac_header_preproc"
23939 fi
23940 ac_res=`eval 'as_val=${'$as_ac_Header'}
23941 $as_echo "$as_val"'`
23942 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23943 $as_echo "$ac_res" >&6; }
23944
23945 fi
23946 if test `eval 'as_val=${'$as_ac_Header'}
23947 $as_echo "$as_val"'` = yes; then
23948 cat >>confdefs.h <<_ACEOF
23949 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23950 _ACEOF
23951
23952 else
23953
23954 for ac_header in kerberosIV/krb.h
23955 do
23956 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23958 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23959 $as_echo_n "checking for $ac_header... " >&6; }
23960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23961 $as_echo_n "(cached) " >&6
23962 fi
23963 ac_res=`eval 'as_val=${'$as_ac_Header'}
23964 $as_echo "$as_val"'`
23965 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23966 $as_echo "$ac_res" >&6; }
23967 else
23968 # Is the header compilable?
23969 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23970 $as_echo_n "checking $ac_header usability... " >&6; }
23971 cat >conftest.$ac_ext <<_ACEOF
23972 /* confdefs.h. */
23973 _ACEOF
23974 cat confdefs.h >>conftest.$ac_ext
23975 cat >>conftest.$ac_ext <<_ACEOF
23976 /* end confdefs.h. */
23977 $ac_includes_default
23978 #include <$ac_header>
23979 _ACEOF
23980 rm -f conftest.$ac_objext
23981 if { (ac_try="$ac_compile"
23982 case "(($ac_try" in
23983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23984 *) ac_try_echo=$ac_try;;
23985 esac
23986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23987 $as_echo "$ac_try_echo") >&5
23988 (eval "$ac_compile") 2>conftest.er1
23989 ac_status=$?
23990 grep -v '^ *+' conftest.er1 >conftest.err
23991 rm -f conftest.er1
23992 cat conftest.err >&5
23993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23994 (exit $ac_status); } && {
23995 test -z "$ac_c_werror_flag" ||
23996 test ! -s conftest.err
23997 } && test -s conftest.$ac_objext; then
23998 ac_header_compiler=yes
23999 else
24000 $as_echo "$as_me: failed program was:" >&5
24001 sed 's/^/| /' conftest.$ac_ext >&5
24002
24003 ac_header_compiler=no
24004 fi
24005
24006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24007 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24008 $as_echo "$ac_header_compiler" >&6; }
24009
24010 # Is the header present?
24011 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24012 $as_echo_n "checking $ac_header presence... " >&6; }
24013 cat >conftest.$ac_ext <<_ACEOF
24014 /* confdefs.h. */
24015 _ACEOF
24016 cat confdefs.h >>conftest.$ac_ext
24017 cat >>conftest.$ac_ext <<_ACEOF
24018 /* end confdefs.h. */
24019 #include <$ac_header>
24020 _ACEOF
24021 if { (ac_try="$ac_cpp conftest.$ac_ext"
24022 case "(($ac_try" in
24023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24024 *) ac_try_echo=$ac_try;;
24025 esac
24026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24027 $as_echo "$ac_try_echo") >&5
24028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24029 ac_status=$?
24030 grep -v '^ *+' conftest.er1 >conftest.err
24031 rm -f conftest.er1
24032 cat conftest.err >&5
24033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24034 (exit $ac_status); } >/dev/null && {
24035 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24036 test ! -s conftest.err
24037 }; then
24038 ac_header_preproc=yes
24039 else
24040 $as_echo "$as_me: failed program was:" >&5
24041 sed 's/^/| /' conftest.$ac_ext >&5
24042
24043 ac_header_preproc=no
24044 fi
24045
24046 rm -f conftest.err conftest.$ac_ext
24047 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24048 $as_echo "$ac_header_preproc" >&6; }
24049
24050 # So? What about this header?
24051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24052 yes:no: )
24053 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24054 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24055 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24056 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24057 ac_header_preproc=yes
24058 ;;
24059 no:yes:* )
24060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24061 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24062 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24063 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24064 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24065 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24067 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24068 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24069 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24070 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24071 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24072
24073 ;;
24074 esac
24075 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24076 $as_echo_n "checking for $ac_header... " >&6; }
24077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24078 $as_echo_n "(cached) " >&6
24079 else
24080 eval "$as_ac_Header=\$ac_header_preproc"
24081 fi
24082 ac_res=`eval 'as_val=${'$as_ac_Header'}
24083 $as_echo "$as_val"'`
24084 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24085 $as_echo "$ac_res" >&6; }
24086
24087 fi
24088 if test `eval 'as_val=${'$as_ac_Header'}
24089 $as_echo "$as_val"'` = yes; then
24090 cat >>confdefs.h <<_ACEOF
24091 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24092 _ACEOF
24093
24094 else
24095
24096 for ac_header in kerberos/krb.h
24097 do
24098 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24100 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24101 $as_echo_n "checking for $ac_header... " >&6; }
24102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24103 $as_echo_n "(cached) " >&6
24104 fi
24105 ac_res=`eval 'as_val=${'$as_ac_Header'}
24106 $as_echo "$as_val"'`
24107 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24108 $as_echo "$ac_res" >&6; }
24109 else
24110 # Is the header compilable?
24111 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24112 $as_echo_n "checking $ac_header usability... " >&6; }
24113 cat >conftest.$ac_ext <<_ACEOF
24114 /* confdefs.h. */
24115 _ACEOF
24116 cat confdefs.h >>conftest.$ac_ext
24117 cat >>conftest.$ac_ext <<_ACEOF
24118 /* end confdefs.h. */
24119 $ac_includes_default
24120 #include <$ac_header>
24121 _ACEOF
24122 rm -f conftest.$ac_objext
24123 if { (ac_try="$ac_compile"
24124 case "(($ac_try" in
24125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24126 *) ac_try_echo=$ac_try;;
24127 esac
24128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24129 $as_echo "$ac_try_echo") >&5
24130 (eval "$ac_compile") 2>conftest.er1
24131 ac_status=$?
24132 grep -v '^ *+' conftest.er1 >conftest.err
24133 rm -f conftest.er1
24134 cat conftest.err >&5
24135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24136 (exit $ac_status); } && {
24137 test -z "$ac_c_werror_flag" ||
24138 test ! -s conftest.err
24139 } && test -s conftest.$ac_objext; then
24140 ac_header_compiler=yes
24141 else
24142 $as_echo "$as_me: failed program was:" >&5
24143 sed 's/^/| /' conftest.$ac_ext >&5
24144
24145 ac_header_compiler=no
24146 fi
24147
24148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24149 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24150 $as_echo "$ac_header_compiler" >&6; }
24151
24152 # Is the header present?
24153 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24154 $as_echo_n "checking $ac_header presence... " >&6; }
24155 cat >conftest.$ac_ext <<_ACEOF
24156 /* confdefs.h. */
24157 _ACEOF
24158 cat confdefs.h >>conftest.$ac_ext
24159 cat >>conftest.$ac_ext <<_ACEOF
24160 /* end confdefs.h. */
24161 #include <$ac_header>
24162 _ACEOF
24163 if { (ac_try="$ac_cpp conftest.$ac_ext"
24164 case "(($ac_try" in
24165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24166 *) ac_try_echo=$ac_try;;
24167 esac
24168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24169 $as_echo "$ac_try_echo") >&5
24170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24171 ac_status=$?
24172 grep -v '^ *+' conftest.er1 >conftest.err
24173 rm -f conftest.er1
24174 cat conftest.err >&5
24175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24176 (exit $ac_status); } >/dev/null && {
24177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24178 test ! -s conftest.err
24179 }; then
24180 ac_header_preproc=yes
24181 else
24182 $as_echo "$as_me: failed program was:" >&5
24183 sed 's/^/| /' conftest.$ac_ext >&5
24184
24185 ac_header_preproc=no
24186 fi
24187
24188 rm -f conftest.err conftest.$ac_ext
24189 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24190 $as_echo "$ac_header_preproc" >&6; }
24191
24192 # So? What about this header?
24193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24194 yes:no: )
24195 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24196 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24198 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24199 ac_header_preproc=yes
24200 ;;
24201 no:yes:* )
24202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24203 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24204 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24205 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24206 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24207 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24208 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24209 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24210 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24211 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24212 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24213 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24214
24215 ;;
24216 esac
24217 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24218 $as_echo_n "checking for $ac_header... " >&6; }
24219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24220 $as_echo_n "(cached) " >&6
24221 else
24222 eval "$as_ac_Header=\$ac_header_preproc"
24223 fi
24224 ac_res=`eval 'as_val=${'$as_ac_Header'}
24225 $as_echo "$as_val"'`
24226 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24227 $as_echo "$ac_res" >&6; }
24228
24229 fi
24230 if test `eval 'as_val=${'$as_ac_Header'}
24231 $as_echo "$as_val"'` = yes; then
24232 cat >>confdefs.h <<_ACEOF
24233 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24234 _ACEOF
24235
24236 fi
24237
24238 done
24239
24240 fi
24241
24242 done
24243
24244 fi
24245
24246 done
24247
24248 fi
24249
24250 for ac_header in com_err.h
24251 do
24252 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24254 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24255 $as_echo_n "checking for $ac_header... " >&6; }
24256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24257 $as_echo_n "(cached) " >&6
24258 fi
24259 ac_res=`eval 'as_val=${'$as_ac_Header'}
24260 $as_echo "$as_val"'`
24261 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24262 $as_echo "$ac_res" >&6; }
24263 else
24264 # Is the header compilable?
24265 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24266 $as_echo_n "checking $ac_header usability... " >&6; }
24267 cat >conftest.$ac_ext <<_ACEOF
24268 /* confdefs.h. */
24269 _ACEOF
24270 cat confdefs.h >>conftest.$ac_ext
24271 cat >>conftest.$ac_ext <<_ACEOF
24272 /* end confdefs.h. */
24273 $ac_includes_default
24274 #include <$ac_header>
24275 _ACEOF
24276 rm -f conftest.$ac_objext
24277 if { (ac_try="$ac_compile"
24278 case "(($ac_try" in
24279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24280 *) ac_try_echo=$ac_try;;
24281 esac
24282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24283 $as_echo "$ac_try_echo") >&5
24284 (eval "$ac_compile") 2>conftest.er1
24285 ac_status=$?
24286 grep -v '^ *+' conftest.er1 >conftest.err
24287 rm -f conftest.er1
24288 cat conftest.err >&5
24289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24290 (exit $ac_status); } && {
24291 test -z "$ac_c_werror_flag" ||
24292 test ! -s conftest.err
24293 } && test -s conftest.$ac_objext; then
24294 ac_header_compiler=yes
24295 else
24296 $as_echo "$as_me: failed program was:" >&5
24297 sed 's/^/| /' conftest.$ac_ext >&5
24298
24299 ac_header_compiler=no
24300 fi
24301
24302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24303 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24304 $as_echo "$ac_header_compiler" >&6; }
24305
24306 # Is the header present?
24307 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24308 $as_echo_n "checking $ac_header presence... " >&6; }
24309 cat >conftest.$ac_ext <<_ACEOF
24310 /* confdefs.h. */
24311 _ACEOF
24312 cat confdefs.h >>conftest.$ac_ext
24313 cat >>conftest.$ac_ext <<_ACEOF
24314 /* end confdefs.h. */
24315 #include <$ac_header>
24316 _ACEOF
24317 if { (ac_try="$ac_cpp conftest.$ac_ext"
24318 case "(($ac_try" in
24319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24320 *) ac_try_echo=$ac_try;;
24321 esac
24322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24323 $as_echo "$ac_try_echo") >&5
24324 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24325 ac_status=$?
24326 grep -v '^ *+' conftest.er1 >conftest.err
24327 rm -f conftest.er1
24328 cat conftest.err >&5
24329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330 (exit $ac_status); } >/dev/null && {
24331 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24332 test ! -s conftest.err
24333 }; then
24334 ac_header_preproc=yes
24335 else
24336 $as_echo "$as_me: failed program was:" >&5
24337 sed 's/^/| /' conftest.$ac_ext >&5
24338
24339 ac_header_preproc=no
24340 fi
24341
24342 rm -f conftest.err conftest.$ac_ext
24343 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24344 $as_echo "$ac_header_preproc" >&6; }
24345
24346 # So? What about this header?
24347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24348 yes:no: )
24349 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24350 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24351 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24352 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24353 ac_header_preproc=yes
24354 ;;
24355 no:yes:* )
24356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24357 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24359 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24361 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24363 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24364 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24365 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24366 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24367 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24368
24369 ;;
24370 esac
24371 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24372 $as_echo_n "checking for $ac_header... " >&6; }
24373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24374 $as_echo_n "(cached) " >&6
24375 else
24376 eval "$as_ac_Header=\$ac_header_preproc"
24377 fi
24378 ac_res=`eval 'as_val=${'$as_ac_Header'}
24379 $as_echo "$as_val"'`
24380 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24381 $as_echo "$ac_res" >&6; }
24382
24383 fi
24384 if test `eval 'as_val=${'$as_ac_Header'}
24385 $as_echo "$as_val"'` = yes; then
24386 cat >>confdefs.h <<_ACEOF
24387 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24388 _ACEOF
24389
24390 fi
24391
24392 done
24393
24394 fi
24395
24396
24397
24398
24399
24400
24401
24402 # Solaris requires -lintl if you want strerror (which calls dgettext)
24403 # to return localized messages.
24404
24405 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
24406 $as_echo_n "checking for dgettext in -lintl... " >&6; }
24407 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
24408 $as_echo_n "(cached) " >&6
24409 else
24410 ac_check_lib_save_LIBS=$LIBS
24411 LIBS="-lintl $LIBS"
24412 cat >conftest.$ac_ext <<_ACEOF
24413 /* confdefs.h. */
24414 _ACEOF
24415 cat confdefs.h >>conftest.$ac_ext
24416 cat >>conftest.$ac_ext <<_ACEOF
24417 /* end confdefs.h. */
24418
24419 /* Override any GCC internal prototype to avoid an error.
24420 Use char because int might match the return type of a GCC
24421 builtin and then its argument prototype would still apply. */
24422 #ifdef __cplusplus
24423 extern "C"
24424 #endif
24425 char dgettext ();
24426 int
24427 main ()
24428 {
24429 return dgettext ();
24430 ;
24431 return 0;
24432 }
24433 _ACEOF
24434 rm -f conftest.$ac_objext conftest$ac_exeext
24435 if { (ac_try="$ac_link"
24436 case "(($ac_try" in
24437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24438 *) ac_try_echo=$ac_try;;
24439 esac
24440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24441 $as_echo "$ac_try_echo") >&5
24442 (eval "$ac_link") 2>conftest.er1
24443 ac_status=$?
24444 grep -v '^ *+' conftest.er1 >conftest.err
24445 rm -f conftest.er1
24446 cat conftest.err >&5
24447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24448 (exit $ac_status); } && {
24449 test -z "$ac_c_werror_flag" ||
24450 test ! -s conftest.err
24451 } && test -s conftest$ac_exeext && {
24452 test "$cross_compiling" = yes ||
24453 $as_test_x conftest$ac_exeext
24454 }; then
24455 ac_cv_lib_intl_dgettext=yes
24456 else
24457 $as_echo "$as_me: failed program was:" >&5
24458 sed 's/^/| /' conftest.$ac_ext >&5
24459
24460 ac_cv_lib_intl_dgettext=no
24461 fi
24462
24463 rm -rf conftest.dSYM
24464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24465 conftest$ac_exeext conftest.$ac_ext
24466 LIBS=$ac_check_lib_save_LIBS
24467 fi
24468 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
24469 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
24470 if test $ac_cv_lib_intl_dgettext = yes; then
24471 cat >>confdefs.h <<_ACEOF
24472 #define HAVE_LIBINTL 1
24473 _ACEOF
24474
24475 LIBS="-lintl $LIBS"
24476
24477 fi
24478
24479
24480 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
24481 $as_echo_n "checking whether localtime caches TZ... " >&6; }
24482 if test "${emacs_cv_localtime_cache+set}" = set; then
24483 $as_echo_n "(cached) " >&6
24484 else
24485 if test x$ac_cv_func_tzset = xyes; then
24486 if test "$cross_compiling" = yes; then
24487 # If we have tzset, assume the worst when cross-compiling.
24488 emacs_cv_localtime_cache=yes
24489 else
24490 cat >conftest.$ac_ext <<_ACEOF
24491 /* confdefs.h. */
24492 _ACEOF
24493 cat confdefs.h >>conftest.$ac_ext
24494 cat >>conftest.$ac_ext <<_ACEOF
24495 /* end confdefs.h. */
24496 #include <time.h>
24497 extern char **environ;
24498 unset_TZ ()
24499 {
24500 char **from, **to;
24501 for (to = from = environ; (*to = *from); from++)
24502 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
24503 to++;
24504 }
24505 char TZ_GMT0[] = "TZ=GMT0";
24506 char TZ_PST8[] = "TZ=PST8";
24507 main()
24508 {
24509 time_t now = time ((time_t *) 0);
24510 int hour_GMT0, hour_unset;
24511 if (putenv (TZ_GMT0) != 0)
24512 exit (1);
24513 hour_GMT0 = localtime (&now)->tm_hour;
24514 unset_TZ ();
24515 hour_unset = localtime (&now)->tm_hour;
24516 if (putenv (TZ_PST8) != 0)
24517 exit (1);
24518 if (localtime (&now)->tm_hour == hour_GMT0)
24519 exit (1);
24520 unset_TZ ();
24521 if (localtime (&now)->tm_hour != hour_unset)
24522 exit (1);
24523 exit (0);
24524 }
24525 _ACEOF
24526 rm -f conftest$ac_exeext
24527 if { (ac_try="$ac_link"
24528 case "(($ac_try" in
24529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24530 *) ac_try_echo=$ac_try;;
24531 esac
24532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24533 $as_echo "$ac_try_echo") >&5
24534 (eval "$ac_link") 2>&5
24535 ac_status=$?
24536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24537 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24538 { (case "(($ac_try" in
24539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24540 *) ac_try_echo=$ac_try;;
24541 esac
24542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24543 $as_echo "$ac_try_echo") >&5
24544 (eval "$ac_try") 2>&5
24545 ac_status=$?
24546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24547 (exit $ac_status); }; }; then
24548 emacs_cv_localtime_cache=no
24549 else
24550 $as_echo "$as_me: program exited with status $ac_status" >&5
24551 $as_echo "$as_me: failed program was:" >&5
24552 sed 's/^/| /' conftest.$ac_ext >&5
24553
24554 ( exit $ac_status )
24555 emacs_cv_localtime_cache=yes
24556 fi
24557 rm -rf conftest.dSYM
24558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24559 fi
24560
24561
24562 else
24563 # If we lack tzset, report that localtime does not cache TZ,
24564 # since we can't invalidate the cache if we don't have tzset.
24565 emacs_cv_localtime_cache=no
24566 fi
24567 fi
24568 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
24569 $as_echo "$emacs_cv_localtime_cache" >&6; }
24570 if test $emacs_cv_localtime_cache = yes; then
24571
24572 cat >>confdefs.h <<\_ACEOF
24573 #define LOCALTIME_CACHE 1
24574 _ACEOF
24575
24576 fi
24577
24578 if test "x$HAVE_TIMEVAL" = xyes; then
24579
24580 for ac_func in gettimeofday
24581 do
24582 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24583 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24584 $as_echo_n "checking for $ac_func... " >&6; }
24585 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24586 $as_echo_n "(cached) " >&6
24587 else
24588 cat >conftest.$ac_ext <<_ACEOF
24589 /* confdefs.h. */
24590 _ACEOF
24591 cat confdefs.h >>conftest.$ac_ext
24592 cat >>conftest.$ac_ext <<_ACEOF
24593 /* end confdefs.h. */
24594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24596 #define $ac_func innocuous_$ac_func
24597
24598 /* System header to define __stub macros and hopefully few prototypes,
24599 which can conflict with char $ac_func (); below.
24600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24601 <limits.h> exists even on freestanding compilers. */
24602
24603 #ifdef __STDC__
24604 # include <limits.h>
24605 #else
24606 # include <assert.h>
24607 #endif
24608
24609 #undef $ac_func
24610
24611 /* Override any GCC internal prototype to avoid an error.
24612 Use char because int might match the return type of a GCC
24613 builtin and then its argument prototype would still apply. */
24614 #ifdef __cplusplus
24615 extern "C"
24616 #endif
24617 char $ac_func ();
24618 /* The GNU C library defines this for functions which it implements
24619 to always fail with ENOSYS. Some functions are actually named
24620 something starting with __ and the normal name is an alias. */
24621 #if defined __stub_$ac_func || defined __stub___$ac_func
24622 choke me
24623 #endif
24624
24625 int
24626 main ()
24627 {
24628 return $ac_func ();
24629 ;
24630 return 0;
24631 }
24632 _ACEOF
24633 rm -f conftest.$ac_objext conftest$ac_exeext
24634 if { (ac_try="$ac_link"
24635 case "(($ac_try" in
24636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24637 *) ac_try_echo=$ac_try;;
24638 esac
24639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24640 $as_echo "$ac_try_echo") >&5
24641 (eval "$ac_link") 2>conftest.er1
24642 ac_status=$?
24643 grep -v '^ *+' conftest.er1 >conftest.err
24644 rm -f conftest.er1
24645 cat conftest.err >&5
24646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24647 (exit $ac_status); } && {
24648 test -z "$ac_c_werror_flag" ||
24649 test ! -s conftest.err
24650 } && test -s conftest$ac_exeext && {
24651 test "$cross_compiling" = yes ||
24652 $as_test_x conftest$ac_exeext
24653 }; then
24654 eval "$as_ac_var=yes"
24655 else
24656 $as_echo "$as_me: failed program was:" >&5
24657 sed 's/^/| /' conftest.$ac_ext >&5
24658
24659 eval "$as_ac_var=no"
24660 fi
24661
24662 rm -rf conftest.dSYM
24663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24664 conftest$ac_exeext conftest.$ac_ext
24665 fi
24666 ac_res=`eval 'as_val=${'$as_ac_var'}
24667 $as_echo "$as_val"'`
24668 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24669 $as_echo "$ac_res" >&6; }
24670 if test `eval 'as_val=${'$as_ac_var'}
24671 $as_echo "$as_val"'` = yes; then
24672 cat >>confdefs.h <<_ACEOF
24673 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24674 _ACEOF
24675
24676 fi
24677 done
24678
24679 if test $ac_cv_func_gettimeofday = yes; then
24680 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
24681 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
24682 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24683 $as_echo_n "(cached) " >&6
24684 else
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
24692 #ifdef TIME_WITH_SYS_TIME
24693 #include <sys/time.h>
24694 #include <time.h>
24695 #else
24696 #ifdef HAVE_SYS_TIME_H
24697 #include <sys/time.h>
24698 #else
24699 #include <time.h>
24700 #endif
24701 #endif
24702 int
24703 main ()
24704 {
24705 struct timeval time;
24706 gettimeofday (&time, 0);
24707 ;
24708 return 0;
24709 }
24710 _ACEOF
24711 rm -f conftest.$ac_objext
24712 if { (ac_try="$ac_compile"
24713 case "(($ac_try" in
24714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24715 *) ac_try_echo=$ac_try;;
24716 esac
24717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24718 $as_echo "$ac_try_echo") >&5
24719 (eval "$ac_compile") 2>conftest.er1
24720 ac_status=$?
24721 grep -v '^ *+' conftest.er1 >conftest.err
24722 rm -f conftest.er1
24723 cat conftest.err >&5
24724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24725 (exit $ac_status); } && {
24726 test -z "$ac_c_werror_flag" ||
24727 test ! -s conftest.err
24728 } && test -s conftest.$ac_objext; then
24729 emacs_cv_gettimeofday_two_arguments=yes
24730 else
24731 $as_echo "$as_me: failed program was:" >&5
24732 sed 's/^/| /' conftest.$ac_ext >&5
24733
24734 emacs_cv_gettimeofday_two_arguments=no
24735 fi
24736
24737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24738 fi
24739 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
24740 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24741 if test $emacs_cv_gettimeofday_two_arguments = no; then
24742
24743 cat >>confdefs.h <<\_ACEOF
24744 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24745 _ACEOF
24746
24747 fi
24748 fi
24749 fi
24750
24751 ok_so_far=yes
24752 { $as_echo "$as_me:$LINENO: checking for socket" >&5
24753 $as_echo_n "checking for socket... " >&6; }
24754 if test "${ac_cv_func_socket+set}" = set; then
24755 $as_echo_n "(cached) " >&6
24756 else
24757 cat >conftest.$ac_ext <<_ACEOF
24758 /* confdefs.h. */
24759 _ACEOF
24760 cat confdefs.h >>conftest.$ac_ext
24761 cat >>conftest.$ac_ext <<_ACEOF
24762 /* end confdefs.h. */
24763 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24765 #define socket innocuous_socket
24766
24767 /* System header to define __stub macros and hopefully few prototypes,
24768 which can conflict with char socket (); below.
24769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24770 <limits.h> exists even on freestanding compilers. */
24771
24772 #ifdef __STDC__
24773 # include <limits.h>
24774 #else
24775 # include <assert.h>
24776 #endif
24777
24778 #undef socket
24779
24780 /* Override any GCC internal prototype to avoid an error.
24781 Use char because int might match the return type of a GCC
24782 builtin and then its argument prototype would still apply. */
24783 #ifdef __cplusplus
24784 extern "C"
24785 #endif
24786 char socket ();
24787 /* The GNU C library defines this for functions which it implements
24788 to always fail with ENOSYS. Some functions are actually named
24789 something starting with __ and the normal name is an alias. */
24790 #if defined __stub_socket || defined __stub___socket
24791 choke me
24792 #endif
24793
24794 int
24795 main ()
24796 {
24797 return socket ();
24798 ;
24799 return 0;
24800 }
24801 _ACEOF
24802 rm -f conftest.$ac_objext conftest$ac_exeext
24803 if { (ac_try="$ac_link"
24804 case "(($ac_try" in
24805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24806 *) ac_try_echo=$ac_try;;
24807 esac
24808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24809 $as_echo "$ac_try_echo") >&5
24810 (eval "$ac_link") 2>conftest.er1
24811 ac_status=$?
24812 grep -v '^ *+' conftest.er1 >conftest.err
24813 rm -f conftest.er1
24814 cat conftest.err >&5
24815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24816 (exit $ac_status); } && {
24817 test -z "$ac_c_werror_flag" ||
24818 test ! -s conftest.err
24819 } && test -s conftest$ac_exeext && {
24820 test "$cross_compiling" = yes ||
24821 $as_test_x conftest$ac_exeext
24822 }; then
24823 ac_cv_func_socket=yes
24824 else
24825 $as_echo "$as_me: failed program was:" >&5
24826 sed 's/^/| /' conftest.$ac_ext >&5
24827
24828 ac_cv_func_socket=no
24829 fi
24830
24831 rm -rf conftest.dSYM
24832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24833 conftest$ac_exeext conftest.$ac_ext
24834 fi
24835 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24836 $as_echo "$ac_cv_func_socket" >&6; }
24837 if test $ac_cv_func_socket = yes; then
24838 :
24839 else
24840 ok_so_far=no
24841 fi
24842
24843 if test $ok_so_far = yes; then
24844 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24845 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24846 $as_echo_n "checking for netinet/in.h... " >&6; }
24847 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24848 $as_echo_n "(cached) " >&6
24849 fi
24850 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24851 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24852 else
24853 # Is the header compilable?
24854 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
24855 $as_echo_n "checking netinet/in.h usability... " >&6; }
24856 cat >conftest.$ac_ext <<_ACEOF
24857 /* confdefs.h. */
24858 _ACEOF
24859 cat confdefs.h >>conftest.$ac_ext
24860 cat >>conftest.$ac_ext <<_ACEOF
24861 /* end confdefs.h. */
24862 $ac_includes_default
24863 #include <netinet/in.h>
24864 _ACEOF
24865 rm -f conftest.$ac_objext
24866 if { (ac_try="$ac_compile"
24867 case "(($ac_try" in
24868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24869 *) ac_try_echo=$ac_try;;
24870 esac
24871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24872 $as_echo "$ac_try_echo") >&5
24873 (eval "$ac_compile") 2>conftest.er1
24874 ac_status=$?
24875 grep -v '^ *+' conftest.er1 >conftest.err
24876 rm -f conftest.er1
24877 cat conftest.err >&5
24878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24879 (exit $ac_status); } && {
24880 test -z "$ac_c_werror_flag" ||
24881 test ! -s conftest.err
24882 } && test -s conftest.$ac_objext; then
24883 ac_header_compiler=yes
24884 else
24885 $as_echo "$as_me: failed program was:" >&5
24886 sed 's/^/| /' conftest.$ac_ext >&5
24887
24888 ac_header_compiler=no
24889 fi
24890
24891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24892 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24893 $as_echo "$ac_header_compiler" >&6; }
24894
24895 # Is the header present?
24896 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
24897 $as_echo_n "checking netinet/in.h presence... " >&6; }
24898 cat >conftest.$ac_ext <<_ACEOF
24899 /* confdefs.h. */
24900 _ACEOF
24901 cat confdefs.h >>conftest.$ac_ext
24902 cat >>conftest.$ac_ext <<_ACEOF
24903 /* end confdefs.h. */
24904 #include <netinet/in.h>
24905 _ACEOF
24906 if { (ac_try="$ac_cpp conftest.$ac_ext"
24907 case "(($ac_try" in
24908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24909 *) ac_try_echo=$ac_try;;
24910 esac
24911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24912 $as_echo "$ac_try_echo") >&5
24913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24914 ac_status=$?
24915 grep -v '^ *+' conftest.er1 >conftest.err
24916 rm -f conftest.er1
24917 cat conftest.err >&5
24918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24919 (exit $ac_status); } >/dev/null && {
24920 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24921 test ! -s conftest.err
24922 }; then
24923 ac_header_preproc=yes
24924 else
24925 $as_echo "$as_me: failed program was:" >&5
24926 sed 's/^/| /' conftest.$ac_ext >&5
24927
24928 ac_header_preproc=no
24929 fi
24930
24931 rm -f conftest.err conftest.$ac_ext
24932 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24933 $as_echo "$ac_header_preproc" >&6; }
24934
24935 # So? What about this header?
24936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24937 yes:no: )
24938 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
24939 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24940 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
24941 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
24942 ac_header_preproc=yes
24943 ;;
24944 no:yes:* )
24945 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
24946 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
24947 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
24948 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
24949 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
24950 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
24951 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
24952 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
24953 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
24954 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
24955 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
24956 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
24957
24958 ;;
24959 esac
24960 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24961 $as_echo_n "checking for netinet/in.h... " >&6; }
24962 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24963 $as_echo_n "(cached) " >&6
24964 else
24965 ac_cv_header_netinet_in_h=$ac_header_preproc
24966 fi
24967 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24968 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24969
24970 fi
24971 if test $ac_cv_header_netinet_in_h = yes; then
24972 :
24973 else
24974 ok_so_far=no
24975 fi
24976
24977
24978 fi
24979 if test $ok_so_far = yes; then
24980 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24981 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24982 $as_echo_n "checking for arpa/inet.h... " >&6; }
24983 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24984 $as_echo_n "(cached) " >&6
24985 fi
24986 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24987 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24988 else
24989 # Is the header compilable?
24990 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
24991 $as_echo_n "checking arpa/inet.h usability... " >&6; }
24992 cat >conftest.$ac_ext <<_ACEOF
24993 /* confdefs.h. */
24994 _ACEOF
24995 cat confdefs.h >>conftest.$ac_ext
24996 cat >>conftest.$ac_ext <<_ACEOF
24997 /* end confdefs.h. */
24998 $ac_includes_default
24999 #include <arpa/inet.h>
25000 _ACEOF
25001 rm -f conftest.$ac_objext
25002 if { (ac_try="$ac_compile"
25003 case "(($ac_try" in
25004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25005 *) ac_try_echo=$ac_try;;
25006 esac
25007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25008 $as_echo "$ac_try_echo") >&5
25009 (eval "$ac_compile") 2>conftest.er1
25010 ac_status=$?
25011 grep -v '^ *+' conftest.er1 >conftest.err
25012 rm -f conftest.er1
25013 cat conftest.err >&5
25014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25015 (exit $ac_status); } && {
25016 test -z "$ac_c_werror_flag" ||
25017 test ! -s conftest.err
25018 } && test -s conftest.$ac_objext; then
25019 ac_header_compiler=yes
25020 else
25021 $as_echo "$as_me: failed program was:" >&5
25022 sed 's/^/| /' conftest.$ac_ext >&5
25023
25024 ac_header_compiler=no
25025 fi
25026
25027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25028 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25029 $as_echo "$ac_header_compiler" >&6; }
25030
25031 # Is the header present?
25032 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
25033 $as_echo_n "checking arpa/inet.h presence... " >&6; }
25034 cat >conftest.$ac_ext <<_ACEOF
25035 /* confdefs.h. */
25036 _ACEOF
25037 cat confdefs.h >>conftest.$ac_ext
25038 cat >>conftest.$ac_ext <<_ACEOF
25039 /* end confdefs.h. */
25040 #include <arpa/inet.h>
25041 _ACEOF
25042 if { (ac_try="$ac_cpp conftest.$ac_ext"
25043 case "(($ac_try" in
25044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25045 *) ac_try_echo=$ac_try;;
25046 esac
25047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25048 $as_echo "$ac_try_echo") >&5
25049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25050 ac_status=$?
25051 grep -v '^ *+' conftest.er1 >conftest.err
25052 rm -f conftest.er1
25053 cat conftest.err >&5
25054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25055 (exit $ac_status); } >/dev/null && {
25056 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25057 test ! -s conftest.err
25058 }; then
25059 ac_header_preproc=yes
25060 else
25061 $as_echo "$as_me: failed program was:" >&5
25062 sed 's/^/| /' conftest.$ac_ext >&5
25063
25064 ac_header_preproc=no
25065 fi
25066
25067 rm -f conftest.err conftest.$ac_ext
25068 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25069 $as_echo "$ac_header_preproc" >&6; }
25070
25071 # So? What about this header?
25072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25073 yes:no: )
25074 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
25075 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25076 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
25077 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
25078 ac_header_preproc=yes
25079 ;;
25080 no:yes:* )
25081 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
25082 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
25083 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
25084 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
25085 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
25086 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
25087 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
25088 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
25089 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
25090 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
25091 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
25092 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
25093
25094 ;;
25095 esac
25096 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
25097 $as_echo_n "checking for arpa/inet.h... " >&6; }
25098 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
25099 $as_echo_n "(cached) " >&6
25100 else
25101 ac_cv_header_arpa_inet_h=$ac_header_preproc
25102 fi
25103 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
25104 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
25105
25106 fi
25107 if test $ac_cv_header_arpa_inet_h = yes; then
25108 :
25109 else
25110 ok_so_far=no
25111 fi
25112
25113
25114 fi
25115 if test $ok_so_far = yes; then
25116
25117 cat >>confdefs.h <<\_ACEOF
25118 #define HAVE_INET_SOCKETS 1
25119 _ACEOF
25120
25121 fi
25122
25123
25124 for ac_header in sys/ioctl.h
25125 do
25126 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25128 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25129 $as_echo_n "checking for $ac_header... " >&6; }
25130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25131 $as_echo_n "(cached) " >&6
25132 fi
25133 ac_res=`eval 'as_val=${'$as_ac_Header'}
25134 $as_echo "$as_val"'`
25135 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25136 $as_echo "$ac_res" >&6; }
25137 else
25138 # Is the header compilable?
25139 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25140 $as_echo_n "checking $ac_header usability... " >&6; }
25141 cat >conftest.$ac_ext <<_ACEOF
25142 /* confdefs.h. */
25143 _ACEOF
25144 cat confdefs.h >>conftest.$ac_ext
25145 cat >>conftest.$ac_ext <<_ACEOF
25146 /* end confdefs.h. */
25147 $ac_includes_default
25148 #include <$ac_header>
25149 _ACEOF
25150 rm -f conftest.$ac_objext
25151 if { (ac_try="$ac_compile"
25152 case "(($ac_try" in
25153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25154 *) ac_try_echo=$ac_try;;
25155 esac
25156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25157 $as_echo "$ac_try_echo") >&5
25158 (eval "$ac_compile") 2>conftest.er1
25159 ac_status=$?
25160 grep -v '^ *+' conftest.er1 >conftest.err
25161 rm -f conftest.er1
25162 cat conftest.err >&5
25163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25164 (exit $ac_status); } && {
25165 test -z "$ac_c_werror_flag" ||
25166 test ! -s conftest.err
25167 } && test -s conftest.$ac_objext; then
25168 ac_header_compiler=yes
25169 else
25170 $as_echo "$as_me: failed program was:" >&5
25171 sed 's/^/| /' conftest.$ac_ext >&5
25172
25173 ac_header_compiler=no
25174 fi
25175
25176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25177 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25178 $as_echo "$ac_header_compiler" >&6; }
25179
25180 # Is the header present?
25181 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25182 $as_echo_n "checking $ac_header presence... " >&6; }
25183 cat >conftest.$ac_ext <<_ACEOF
25184 /* confdefs.h. */
25185 _ACEOF
25186 cat confdefs.h >>conftest.$ac_ext
25187 cat >>conftest.$ac_ext <<_ACEOF
25188 /* end confdefs.h. */
25189 #include <$ac_header>
25190 _ACEOF
25191 if { (ac_try="$ac_cpp conftest.$ac_ext"
25192 case "(($ac_try" in
25193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25194 *) ac_try_echo=$ac_try;;
25195 esac
25196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25197 $as_echo "$ac_try_echo") >&5
25198 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25199 ac_status=$?
25200 grep -v '^ *+' conftest.er1 >conftest.err
25201 rm -f conftest.er1
25202 cat conftest.err >&5
25203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25204 (exit $ac_status); } >/dev/null && {
25205 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25206 test ! -s conftest.err
25207 }; then
25208 ac_header_preproc=yes
25209 else
25210 $as_echo "$as_me: failed program was:" >&5
25211 sed 's/^/| /' conftest.$ac_ext >&5
25212
25213 ac_header_preproc=no
25214 fi
25215
25216 rm -f conftest.err conftest.$ac_ext
25217 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25218 $as_echo "$ac_header_preproc" >&6; }
25219
25220 # So? What about this header?
25221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25222 yes:no: )
25223 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25224 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25225 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25226 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25227 ac_header_preproc=yes
25228 ;;
25229 no:yes:* )
25230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25231 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25232 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25233 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25234 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25235 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25236 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25237 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25238 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25239 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25240 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25241 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25242
25243 ;;
25244 esac
25245 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25246 $as_echo_n "checking for $ac_header... " >&6; }
25247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25248 $as_echo_n "(cached) " >&6
25249 else
25250 eval "$as_ac_Header=\$ac_header_preproc"
25251 fi
25252 ac_res=`eval 'as_val=${'$as_ac_Header'}
25253 $as_echo "$as_val"'`
25254 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25255 $as_echo "$ac_res" >&6; }
25256
25257 fi
25258 if test `eval 'as_val=${'$as_ac_Header'}
25259 $as_echo "$as_val"'` = yes; then
25260 cat >>confdefs.h <<_ACEOF
25261 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25262 _ACEOF
25263
25264 fi
25265
25266 done
25267
25268
25269 if test -f /usr/lpp/X11/bin/smt.exp; then
25270
25271 cat >>confdefs.h <<\_ACEOF
25272 #define HAVE_AIX_SMT_EXP 1
25273 _ACEOF
25274
25275 fi
25276
25277 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
25278 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
25279 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
25280 { $as_echo "$as_me:$LINENO: result: yes" >&5
25281 $as_echo "yes" >&6; }
25282
25283 cat >>confdefs.h <<\_ACEOF
25284 #define HAVE_DEV_PTMX 1
25285 _ACEOF
25286
25287 else
25288 { $as_echo "$as_me:$LINENO: result: no" >&5
25289 $as_echo "no" >&6; }
25290 fi
25291
25292 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
25293 $as_echo_n "checking for pid_t... " >&6; }
25294 if test "${ac_cv_type_pid_t+set}" = set; then
25295 $as_echo_n "(cached) " >&6
25296 else
25297 ac_cv_type_pid_t=no
25298 cat >conftest.$ac_ext <<_ACEOF
25299 /* confdefs.h. */
25300 _ACEOF
25301 cat confdefs.h >>conftest.$ac_ext
25302 cat >>conftest.$ac_ext <<_ACEOF
25303 /* end confdefs.h. */
25304 $ac_includes_default
25305 int
25306 main ()
25307 {
25308 if (sizeof (pid_t))
25309 return 0;
25310 ;
25311 return 0;
25312 }
25313 _ACEOF
25314 rm -f conftest.$ac_objext
25315 if { (ac_try="$ac_compile"
25316 case "(($ac_try" in
25317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25318 *) ac_try_echo=$ac_try;;
25319 esac
25320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25321 $as_echo "$ac_try_echo") >&5
25322 (eval "$ac_compile") 2>conftest.er1
25323 ac_status=$?
25324 grep -v '^ *+' conftest.er1 >conftest.err
25325 rm -f conftest.er1
25326 cat conftest.err >&5
25327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25328 (exit $ac_status); } && {
25329 test -z "$ac_c_werror_flag" ||
25330 test ! -s conftest.err
25331 } && test -s conftest.$ac_objext; then
25332 cat >conftest.$ac_ext <<_ACEOF
25333 /* confdefs.h. */
25334 _ACEOF
25335 cat confdefs.h >>conftest.$ac_ext
25336 cat >>conftest.$ac_ext <<_ACEOF
25337 /* end confdefs.h. */
25338 $ac_includes_default
25339 int
25340 main ()
25341 {
25342 if (sizeof ((pid_t)))
25343 return 0;
25344 ;
25345 return 0;
25346 }
25347 _ACEOF
25348 rm -f conftest.$ac_objext
25349 if { (ac_try="$ac_compile"
25350 case "(($ac_try" in
25351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25352 *) ac_try_echo=$ac_try;;
25353 esac
25354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25355 $as_echo "$ac_try_echo") >&5
25356 (eval "$ac_compile") 2>conftest.er1
25357 ac_status=$?
25358 grep -v '^ *+' conftest.er1 >conftest.err
25359 rm -f conftest.er1
25360 cat conftest.err >&5
25361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25362 (exit $ac_status); } && {
25363 test -z "$ac_c_werror_flag" ||
25364 test ! -s conftest.err
25365 } && test -s conftest.$ac_objext; then
25366 :
25367 else
25368 $as_echo "$as_me: failed program was:" >&5
25369 sed 's/^/| /' conftest.$ac_ext >&5
25370
25371 ac_cv_type_pid_t=yes
25372 fi
25373
25374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25375 else
25376 $as_echo "$as_me: failed program was:" >&5
25377 sed 's/^/| /' conftest.$ac_ext >&5
25378
25379
25380 fi
25381
25382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25383 fi
25384 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25385 $as_echo "$ac_cv_type_pid_t" >&6; }
25386 if test $ac_cv_type_pid_t = yes; then
25387 :
25388 else
25389
25390 cat >>confdefs.h <<_ACEOF
25391 #define pid_t int
25392 _ACEOF
25393
25394 fi
25395
25396
25397 for ac_header in vfork.h
25398 do
25399 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25401 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25402 $as_echo_n "checking for $ac_header... " >&6; }
25403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25404 $as_echo_n "(cached) " >&6
25405 fi
25406 ac_res=`eval 'as_val=${'$as_ac_Header'}
25407 $as_echo "$as_val"'`
25408 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25409 $as_echo "$ac_res" >&6; }
25410 else
25411 # Is the header compilable?
25412 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25413 $as_echo_n "checking $ac_header usability... " >&6; }
25414 cat >conftest.$ac_ext <<_ACEOF
25415 /* confdefs.h. */
25416 _ACEOF
25417 cat confdefs.h >>conftest.$ac_ext
25418 cat >>conftest.$ac_ext <<_ACEOF
25419 /* end confdefs.h. */
25420 $ac_includes_default
25421 #include <$ac_header>
25422 _ACEOF
25423 rm -f conftest.$ac_objext
25424 if { (ac_try="$ac_compile"
25425 case "(($ac_try" in
25426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25427 *) ac_try_echo=$ac_try;;
25428 esac
25429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25430 $as_echo "$ac_try_echo") >&5
25431 (eval "$ac_compile") 2>conftest.er1
25432 ac_status=$?
25433 grep -v '^ *+' conftest.er1 >conftest.err
25434 rm -f conftest.er1
25435 cat conftest.err >&5
25436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25437 (exit $ac_status); } && {
25438 test -z "$ac_c_werror_flag" ||
25439 test ! -s conftest.err
25440 } && test -s conftest.$ac_objext; then
25441 ac_header_compiler=yes
25442 else
25443 $as_echo "$as_me: failed program was:" >&5
25444 sed 's/^/| /' conftest.$ac_ext >&5
25445
25446 ac_header_compiler=no
25447 fi
25448
25449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25450 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25451 $as_echo "$ac_header_compiler" >&6; }
25452
25453 # Is the header present?
25454 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25455 $as_echo_n "checking $ac_header presence... " >&6; }
25456 cat >conftest.$ac_ext <<_ACEOF
25457 /* confdefs.h. */
25458 _ACEOF
25459 cat confdefs.h >>conftest.$ac_ext
25460 cat >>conftest.$ac_ext <<_ACEOF
25461 /* end confdefs.h. */
25462 #include <$ac_header>
25463 _ACEOF
25464 if { (ac_try="$ac_cpp conftest.$ac_ext"
25465 case "(($ac_try" in
25466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25467 *) ac_try_echo=$ac_try;;
25468 esac
25469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25470 $as_echo "$ac_try_echo") >&5
25471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25472 ac_status=$?
25473 grep -v '^ *+' conftest.er1 >conftest.err
25474 rm -f conftest.er1
25475 cat conftest.err >&5
25476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25477 (exit $ac_status); } >/dev/null && {
25478 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25479 test ! -s conftest.err
25480 }; then
25481 ac_header_preproc=yes
25482 else
25483 $as_echo "$as_me: failed program was:" >&5
25484 sed 's/^/| /' conftest.$ac_ext >&5
25485
25486 ac_header_preproc=no
25487 fi
25488
25489 rm -f conftest.err conftest.$ac_ext
25490 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25491 $as_echo "$ac_header_preproc" >&6; }
25492
25493 # So? What about this header?
25494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25495 yes:no: )
25496 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25497 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25498 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25499 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25500 ac_header_preproc=yes
25501 ;;
25502 no:yes:* )
25503 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25504 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25505 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25506 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25507 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25508 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25509 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25510 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25511 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25512 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25513 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25514 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25515
25516 ;;
25517 esac
25518 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25519 $as_echo_n "checking for $ac_header... " >&6; }
25520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25521 $as_echo_n "(cached) " >&6
25522 else
25523 eval "$as_ac_Header=\$ac_header_preproc"
25524 fi
25525 ac_res=`eval 'as_val=${'$as_ac_Header'}
25526 $as_echo "$as_val"'`
25527 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25528 $as_echo "$ac_res" >&6; }
25529
25530 fi
25531 if test `eval 'as_val=${'$as_ac_Header'}
25532 $as_echo "$as_val"'` = yes; then
25533 cat >>confdefs.h <<_ACEOF
25534 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25535 _ACEOF
25536
25537 fi
25538
25539 done
25540
25541
25542
25543 for ac_func in fork vfork
25544 do
25545 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25546 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25547 $as_echo_n "checking for $ac_func... " >&6; }
25548 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25549 $as_echo_n "(cached) " >&6
25550 else
25551 cat >conftest.$ac_ext <<_ACEOF
25552 /* confdefs.h. */
25553 _ACEOF
25554 cat confdefs.h >>conftest.$ac_ext
25555 cat >>conftest.$ac_ext <<_ACEOF
25556 /* end confdefs.h. */
25557 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25559 #define $ac_func innocuous_$ac_func
25560
25561 /* System header to define __stub macros and hopefully few prototypes,
25562 which can conflict with char $ac_func (); below.
25563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25564 <limits.h> exists even on freestanding compilers. */
25565
25566 #ifdef __STDC__
25567 # include <limits.h>
25568 #else
25569 # include <assert.h>
25570 #endif
25571
25572 #undef $ac_func
25573
25574 /* Override any GCC internal prototype to avoid an error.
25575 Use char because int might match the return type of a GCC
25576 builtin and then its argument prototype would still apply. */
25577 #ifdef __cplusplus
25578 extern "C"
25579 #endif
25580 char $ac_func ();
25581 /* The GNU C library defines this for functions which it implements
25582 to always fail with ENOSYS. Some functions are actually named
25583 something starting with __ and the normal name is an alias. */
25584 #if defined __stub_$ac_func || defined __stub___$ac_func
25585 choke me
25586 #endif
25587
25588 int
25589 main ()
25590 {
25591 return $ac_func ();
25592 ;
25593 return 0;
25594 }
25595 _ACEOF
25596 rm -f conftest.$ac_objext conftest$ac_exeext
25597 if { (ac_try="$ac_link"
25598 case "(($ac_try" in
25599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25600 *) ac_try_echo=$ac_try;;
25601 esac
25602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25603 $as_echo "$ac_try_echo") >&5
25604 (eval "$ac_link") 2>conftest.er1
25605 ac_status=$?
25606 grep -v '^ *+' conftest.er1 >conftest.err
25607 rm -f conftest.er1
25608 cat conftest.err >&5
25609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25610 (exit $ac_status); } && {
25611 test -z "$ac_c_werror_flag" ||
25612 test ! -s conftest.err
25613 } && test -s conftest$ac_exeext && {
25614 test "$cross_compiling" = yes ||
25615 $as_test_x conftest$ac_exeext
25616 }; then
25617 eval "$as_ac_var=yes"
25618 else
25619 $as_echo "$as_me: failed program was:" >&5
25620 sed 's/^/| /' conftest.$ac_ext >&5
25621
25622 eval "$as_ac_var=no"
25623 fi
25624
25625 rm -rf conftest.dSYM
25626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25627 conftest$ac_exeext conftest.$ac_ext
25628 fi
25629 ac_res=`eval 'as_val=${'$as_ac_var'}
25630 $as_echo "$as_val"'`
25631 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25632 $as_echo "$ac_res" >&6; }
25633 if test `eval 'as_val=${'$as_ac_var'}
25634 $as_echo "$as_val"'` = yes; then
25635 cat >>confdefs.h <<_ACEOF
25636 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25637 _ACEOF
25638
25639 fi
25640 done
25641
25642 if test "x$ac_cv_func_fork" = xyes; then
25643 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
25644 $as_echo_n "checking for working fork... " >&6; }
25645 if test "${ac_cv_func_fork_works+set}" = set; then
25646 $as_echo_n "(cached) " >&6
25647 else
25648 if test "$cross_compiling" = yes; then
25649 ac_cv_func_fork_works=cross
25650 else
25651 cat >conftest.$ac_ext <<_ACEOF
25652 /* confdefs.h. */
25653 _ACEOF
25654 cat confdefs.h >>conftest.$ac_ext
25655 cat >>conftest.$ac_ext <<_ACEOF
25656 /* end confdefs.h. */
25657 $ac_includes_default
25658 int
25659 main ()
25660 {
25661
25662 /* By Ruediger Kuhlmann. */
25663 return fork () < 0;
25664
25665 ;
25666 return 0;
25667 }
25668 _ACEOF
25669 rm -f conftest$ac_exeext
25670 if { (ac_try="$ac_link"
25671 case "(($ac_try" in
25672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25673 *) ac_try_echo=$ac_try;;
25674 esac
25675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25676 $as_echo "$ac_try_echo") >&5
25677 (eval "$ac_link") 2>&5
25678 ac_status=$?
25679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25680 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25681 { (case "(($ac_try" in
25682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25683 *) ac_try_echo=$ac_try;;
25684 esac
25685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25686 $as_echo "$ac_try_echo") >&5
25687 (eval "$ac_try") 2>&5
25688 ac_status=$?
25689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25690 (exit $ac_status); }; }; then
25691 ac_cv_func_fork_works=yes
25692 else
25693 $as_echo "$as_me: program exited with status $ac_status" >&5
25694 $as_echo "$as_me: failed program was:" >&5
25695 sed 's/^/| /' conftest.$ac_ext >&5
25696
25697 ( exit $ac_status )
25698 ac_cv_func_fork_works=no
25699 fi
25700 rm -rf conftest.dSYM
25701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25702 fi
25703
25704
25705 fi
25706 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25707 $as_echo "$ac_cv_func_fork_works" >&6; }
25708
25709 else
25710 ac_cv_func_fork_works=$ac_cv_func_fork
25711 fi
25712 if test "x$ac_cv_func_fork_works" = xcross; then
25713 case $host in
25714 *-*-amigaos* | *-*-msdosdjgpp*)
25715 # Override, as these systems have only a dummy fork() stub
25716 ac_cv_func_fork_works=no
25717 ;;
25718 *)
25719 ac_cv_func_fork_works=yes
25720 ;;
25721 esac
25722 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25723 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25724 fi
25725 ac_cv_func_vfork_works=$ac_cv_func_vfork
25726 if test "x$ac_cv_func_vfork" = xyes; then
25727 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
25728 $as_echo_n "checking for working vfork... " >&6; }
25729 if test "${ac_cv_func_vfork_works+set}" = set; then
25730 $as_echo_n "(cached) " >&6
25731 else
25732 if test "$cross_compiling" = yes; then
25733 ac_cv_func_vfork_works=cross
25734 else
25735 cat >conftest.$ac_ext <<_ACEOF
25736 /* confdefs.h. */
25737 _ACEOF
25738 cat confdefs.h >>conftest.$ac_ext
25739 cat >>conftest.$ac_ext <<_ACEOF
25740 /* end confdefs.h. */
25741 /* Thanks to Paul Eggert for this test. */
25742 $ac_includes_default
25743 #include <sys/wait.h>
25744 #ifdef HAVE_VFORK_H
25745 # include <vfork.h>
25746 #endif
25747 /* On some sparc systems, changes by the child to local and incoming
25748 argument registers are propagated back to the parent. The compiler
25749 is told about this with #include <vfork.h>, but some compilers
25750 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25751 static variable whose address is put into a register that is
25752 clobbered by the vfork. */
25753 static void
25754 #ifdef __cplusplus
25755 sparc_address_test (int arg)
25756 # else
25757 sparc_address_test (arg) int arg;
25758 #endif
25759 {
25760 static pid_t child;
25761 if (!child) {
25762 child = vfork ();
25763 if (child < 0) {
25764 perror ("vfork");
25765 _exit(2);
25766 }
25767 if (!child) {
25768 arg = getpid();
25769 write(-1, "", 0);
25770 _exit (arg);
25771 }
25772 }
25773 }
25774
25775 int
25776 main ()
25777 {
25778 pid_t parent = getpid ();
25779 pid_t child;
25780
25781 sparc_address_test (0);
25782
25783 child = vfork ();
25784
25785 if (child == 0) {
25786 /* Here is another test for sparc vfork register problems. This
25787 test uses lots of local variables, at least as many local
25788 variables as main has allocated so far including compiler
25789 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25790 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25791 reuse the register of parent for one of the local variables,
25792 since it will think that parent can't possibly be used any more
25793 in this routine. Assigning to the local variable will thus
25794 munge parent in the parent process. */
25795 pid_t
25796 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25797 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25798 /* Convince the compiler that p..p7 are live; otherwise, it might
25799 use the same hardware register for all 8 local variables. */
25800 if (p != p1 || p != p2 || p != p3 || p != p4
25801 || p != p5 || p != p6 || p != p7)
25802 _exit(1);
25803
25804 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25805 from child file descriptors. If the child closes a descriptor
25806 before it execs or exits, this munges the parent's descriptor
25807 as well. Test for this by closing stdout in the child. */
25808 _exit(close(fileno(stdout)) != 0);
25809 } else {
25810 int status;
25811 struct stat st;
25812
25813 while (wait(&status) != child)
25814 ;
25815 return (
25816 /* Was there some problem with vforking? */
25817 child < 0
25818
25819 /* Did the child fail? (This shouldn't happen.) */
25820 || status
25821
25822 /* Did the vfork/compiler bug occur? */
25823 || parent != getpid()
25824
25825 /* Did the file descriptor bug occur? */
25826 || fstat(fileno(stdout), &st) != 0
25827 );
25828 }
25829 }
25830 _ACEOF
25831 rm -f conftest$ac_exeext
25832 if { (ac_try="$ac_link"
25833 case "(($ac_try" in
25834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25835 *) ac_try_echo=$ac_try;;
25836 esac
25837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25838 $as_echo "$ac_try_echo") >&5
25839 (eval "$ac_link") 2>&5
25840 ac_status=$?
25841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25843 { (case "(($ac_try" in
25844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25845 *) ac_try_echo=$ac_try;;
25846 esac
25847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25848 $as_echo "$ac_try_echo") >&5
25849 (eval "$ac_try") 2>&5
25850 ac_status=$?
25851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25852 (exit $ac_status); }; }; then
25853 ac_cv_func_vfork_works=yes
25854 else
25855 $as_echo "$as_me: program exited with status $ac_status" >&5
25856 $as_echo "$as_me: failed program was:" >&5
25857 sed 's/^/| /' conftest.$ac_ext >&5
25858
25859 ( exit $ac_status )
25860 ac_cv_func_vfork_works=no
25861 fi
25862 rm -rf conftest.dSYM
25863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25864 fi
25865
25866
25867 fi
25868 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25869 $as_echo "$ac_cv_func_vfork_works" >&6; }
25870
25871 fi;
25872 if test "x$ac_cv_func_fork_works" = xcross; then
25873 ac_cv_func_vfork_works=$ac_cv_func_vfork
25874 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25875 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25876 fi
25877
25878 if test "x$ac_cv_func_vfork_works" = xyes; then
25879
25880 cat >>confdefs.h <<\_ACEOF
25881 #define HAVE_WORKING_VFORK 1
25882 _ACEOF
25883
25884 else
25885
25886 cat >>confdefs.h <<\_ACEOF
25887 #define vfork fork
25888 _ACEOF
25889
25890 fi
25891 if test "x$ac_cv_func_fork_works" = xyes; then
25892
25893 cat >>confdefs.h <<\_ACEOF
25894 #define HAVE_WORKING_FORK 1
25895 _ACEOF
25896
25897 fi
25898
25899
25900 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
25901 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
25902 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25903 $as_echo_n "(cached) " >&6
25904 else
25905 cat >conftest.$ac_ext <<_ACEOF
25906 /* confdefs.h. */
25907 _ACEOF
25908 cat confdefs.h >>conftest.$ac_ext
25909 cat >>conftest.$ac_ext <<_ACEOF
25910 /* end confdefs.h. */
25911 #include <langinfo.h>
25912 int
25913 main ()
25914 {
25915 char* cs = nl_langinfo(CODESET);
25916 ;
25917 return 0;
25918 }
25919 _ACEOF
25920 rm -f conftest.$ac_objext conftest$ac_exeext
25921 if { (ac_try="$ac_link"
25922 case "(($ac_try" in
25923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25924 *) ac_try_echo=$ac_try;;
25925 esac
25926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25927 $as_echo "$ac_try_echo") >&5
25928 (eval "$ac_link") 2>conftest.er1
25929 ac_status=$?
25930 grep -v '^ *+' conftest.er1 >conftest.err
25931 rm -f conftest.er1
25932 cat conftest.err >&5
25933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25934 (exit $ac_status); } && {
25935 test -z "$ac_c_werror_flag" ||
25936 test ! -s conftest.err
25937 } && test -s conftest$ac_exeext && {
25938 test "$cross_compiling" = yes ||
25939 $as_test_x conftest$ac_exeext
25940 }; then
25941 emacs_cv_langinfo_codeset=yes
25942 else
25943 $as_echo "$as_me: failed program was:" >&5
25944 sed 's/^/| /' conftest.$ac_ext >&5
25945
25946 emacs_cv_langinfo_codeset=no
25947 fi
25948
25949 rm -rf conftest.dSYM
25950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25951 conftest$ac_exeext conftest.$ac_ext
25952
25953 fi
25954 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
25955 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25956 if test $emacs_cv_langinfo_codeset = yes; then
25957
25958 cat >>confdefs.h <<\_ACEOF
25959 #define HAVE_LANGINFO_CODESET 1
25960 _ACEOF
25961
25962 fi
25963
25964 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
25965 $as_echo_n "checking for size_t... " >&6; }
25966 if test "${ac_cv_type_size_t+set}" = set; then
25967 $as_echo_n "(cached) " >&6
25968 else
25969 ac_cv_type_size_t=no
25970 cat >conftest.$ac_ext <<_ACEOF
25971 /* confdefs.h. */
25972 _ACEOF
25973 cat confdefs.h >>conftest.$ac_ext
25974 cat >>conftest.$ac_ext <<_ACEOF
25975 /* end confdefs.h. */
25976 $ac_includes_default
25977 int
25978 main ()
25979 {
25980 if (sizeof (size_t))
25981 return 0;
25982 ;
25983 return 0;
25984 }
25985 _ACEOF
25986 rm -f conftest.$ac_objext
25987 if { (ac_try="$ac_compile"
25988 case "(($ac_try" in
25989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25990 *) ac_try_echo=$ac_try;;
25991 esac
25992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25993 $as_echo "$ac_try_echo") >&5
25994 (eval "$ac_compile") 2>conftest.er1
25995 ac_status=$?
25996 grep -v '^ *+' conftest.er1 >conftest.err
25997 rm -f conftest.er1
25998 cat conftest.err >&5
25999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26000 (exit $ac_status); } && {
26001 test -z "$ac_c_werror_flag" ||
26002 test ! -s conftest.err
26003 } && test -s conftest.$ac_objext; then
26004 cat >conftest.$ac_ext <<_ACEOF
26005 /* confdefs.h. */
26006 _ACEOF
26007 cat confdefs.h >>conftest.$ac_ext
26008 cat >>conftest.$ac_ext <<_ACEOF
26009 /* end confdefs.h. */
26010 $ac_includes_default
26011 int
26012 main ()
26013 {
26014 if (sizeof ((size_t)))
26015 return 0;
26016 ;
26017 return 0;
26018 }
26019 _ACEOF
26020 rm -f conftest.$ac_objext
26021 if { (ac_try="$ac_compile"
26022 case "(($ac_try" in
26023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26024 *) ac_try_echo=$ac_try;;
26025 esac
26026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26027 $as_echo "$ac_try_echo") >&5
26028 (eval "$ac_compile") 2>conftest.er1
26029 ac_status=$?
26030 grep -v '^ *+' conftest.er1 >conftest.err
26031 rm -f conftest.er1
26032 cat conftest.err >&5
26033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26034 (exit $ac_status); } && {
26035 test -z "$ac_c_werror_flag" ||
26036 test ! -s conftest.err
26037 } && test -s conftest.$ac_objext; then
26038 :
26039 else
26040 $as_echo "$as_me: failed program was:" >&5
26041 sed 's/^/| /' conftest.$ac_ext >&5
26042
26043 ac_cv_type_size_t=yes
26044 fi
26045
26046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26047 else
26048 $as_echo "$as_me: failed program was:" >&5
26049 sed 's/^/| /' conftest.$ac_ext >&5
26050
26051
26052 fi
26053
26054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26055 fi
26056 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26057 $as_echo "$ac_cv_type_size_t" >&6; }
26058 if test $ac_cv_type_size_t = yes; then
26059
26060 cat >>confdefs.h <<_ACEOF
26061 #define HAVE_SIZE_T 1
26062 _ACEOF
26063
26064
26065 fi
26066
26067
26068 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
26069 $as_echo_n "checking for mbstate_t... " >&6; }
26070 if test "${ac_cv_type_mbstate_t+set}" = set; then
26071 $as_echo_n "(cached) " >&6
26072 else
26073 cat >conftest.$ac_ext <<_ACEOF
26074 /* confdefs.h. */
26075 _ACEOF
26076 cat confdefs.h >>conftest.$ac_ext
26077 cat >>conftest.$ac_ext <<_ACEOF
26078 /* end confdefs.h. */
26079 $ac_includes_default
26080 # include <wchar.h>
26081 int
26082 main ()
26083 {
26084 mbstate_t x; return sizeof x;
26085 ;
26086 return 0;
26087 }
26088 _ACEOF
26089 rm -f conftest.$ac_objext
26090 if { (ac_try="$ac_compile"
26091 case "(($ac_try" in
26092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26093 *) ac_try_echo=$ac_try;;
26094 esac
26095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26096 $as_echo "$ac_try_echo") >&5
26097 (eval "$ac_compile") 2>conftest.er1
26098 ac_status=$?
26099 grep -v '^ *+' conftest.er1 >conftest.err
26100 rm -f conftest.er1
26101 cat conftest.err >&5
26102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26103 (exit $ac_status); } && {
26104 test -z "$ac_c_werror_flag" ||
26105 test ! -s conftest.err
26106 } && test -s conftest.$ac_objext; then
26107 ac_cv_type_mbstate_t=yes
26108 else
26109 $as_echo "$as_me: failed program was:" >&5
26110 sed 's/^/| /' conftest.$ac_ext >&5
26111
26112 ac_cv_type_mbstate_t=no
26113 fi
26114
26115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26116 fi
26117 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
26118 $as_echo "$ac_cv_type_mbstate_t" >&6; }
26119 if test $ac_cv_type_mbstate_t = yes; then
26120
26121 cat >>confdefs.h <<\_ACEOF
26122 #define HAVE_MBSTATE_T 1
26123 _ACEOF
26124
26125 else
26126
26127 cat >>confdefs.h <<\_ACEOF
26128 #define mbstate_t int
26129 _ACEOF
26130
26131 fi
26132
26133 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
26134 $as_echo_n "checking for C restrict keyword... " >&6; }
26135 if test "${emacs_cv_c_restrict+set}" = set; then
26136 $as_echo_n "(cached) " >&6
26137 else
26138 cat >conftest.$ac_ext <<_ACEOF
26139 /* confdefs.h. */
26140 _ACEOF
26141 cat confdefs.h >>conftest.$ac_ext
26142 cat >>conftest.$ac_ext <<_ACEOF
26143 /* end confdefs.h. */
26144 void fred (int *restrict x);
26145 int
26146 main ()
26147 {
26148
26149 ;
26150 return 0;
26151 }
26152 _ACEOF
26153 rm -f conftest.$ac_objext
26154 if { (ac_try="$ac_compile"
26155 case "(($ac_try" in
26156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26157 *) ac_try_echo=$ac_try;;
26158 esac
26159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26160 $as_echo "$ac_try_echo") >&5
26161 (eval "$ac_compile") 2>conftest.er1
26162 ac_status=$?
26163 grep -v '^ *+' conftest.er1 >conftest.err
26164 rm -f conftest.er1
26165 cat conftest.err >&5
26166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26167 (exit $ac_status); } && {
26168 test -z "$ac_c_werror_flag" ||
26169 test ! -s conftest.err
26170 } && test -s conftest.$ac_objext; then
26171 emacs_cv_c_restrict=yes
26172 else
26173 $as_echo "$as_me: failed program was:" >&5
26174 sed 's/^/| /' conftest.$ac_ext >&5
26175
26176 cat >conftest.$ac_ext <<_ACEOF
26177 /* confdefs.h. */
26178 _ACEOF
26179 cat confdefs.h >>conftest.$ac_ext
26180 cat >>conftest.$ac_ext <<_ACEOF
26181 /* end confdefs.h. */
26182 void fred (int *__restrict x);
26183 int
26184 main ()
26185 {
26186
26187 ;
26188 return 0;
26189 }
26190 _ACEOF
26191 rm -f conftest.$ac_objext
26192 if { (ac_try="$ac_compile"
26193 case "(($ac_try" in
26194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26195 *) ac_try_echo=$ac_try;;
26196 esac
26197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26198 $as_echo "$ac_try_echo") >&5
26199 (eval "$ac_compile") 2>conftest.er1
26200 ac_status=$?
26201 grep -v '^ *+' conftest.er1 >conftest.err
26202 rm -f conftest.er1
26203 cat conftest.err >&5
26204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26205 (exit $ac_status); } && {
26206 test -z "$ac_c_werror_flag" ||
26207 test ! -s conftest.err
26208 } && test -s conftest.$ac_objext; then
26209 emacs_cv_c_restrict=__restrict
26210 else
26211 $as_echo "$as_me: failed program was:" >&5
26212 sed 's/^/| /' conftest.$ac_ext >&5
26213
26214 emacs_cv_c_restrict=no
26215 fi
26216
26217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26218 fi
26219
26220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26221 fi
26222 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
26223 $as_echo "$emacs_cv_c_restrict" >&6; }
26224 case "$emacs_cv_c_restrict" in
26225 yes) emacs_restrict=restrict;;
26226 no) emacs_restrict="";;
26227 *) emacs_restrict="$emacs_cv_c_restrict";;
26228 esac
26229 if test "$emacs_restrict" != __restrict; then
26230
26231 cat >>confdefs.h <<_ACEOF
26232 #define __restrict $emacs_restrict
26233 _ACEOF
26234
26235 fi
26236
26237 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
26238 $as_echo_n "checking for C restricted array declarations... " >&6; }
26239 if test "${emacs_cv_c_restrict_arr+set}" = set; then
26240 $as_echo_n "(cached) " >&6
26241 else
26242 cat >conftest.$ac_ext <<_ACEOF
26243 /* confdefs.h. */
26244 _ACEOF
26245 cat confdefs.h >>conftest.$ac_ext
26246 cat >>conftest.$ac_ext <<_ACEOF
26247 /* end confdefs.h. */
26248 void fred (int x[__restrict]);
26249 int
26250 main ()
26251 {
26252
26253 ;
26254 return 0;
26255 }
26256 _ACEOF
26257 rm -f conftest.$ac_objext
26258 if { (ac_try="$ac_compile"
26259 case "(($ac_try" in
26260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26261 *) ac_try_echo=$ac_try;;
26262 esac
26263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26264 $as_echo "$ac_try_echo") >&5
26265 (eval "$ac_compile") 2>conftest.er1
26266 ac_status=$?
26267 grep -v '^ *+' conftest.er1 >conftest.err
26268 rm -f conftest.er1
26269 cat conftest.err >&5
26270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26271 (exit $ac_status); } && {
26272 test -z "$ac_c_werror_flag" ||
26273 test ! -s conftest.err
26274 } && test -s conftest.$ac_objext; then
26275 emacs_cv_c_restrict_arr=yes
26276 else
26277 $as_echo "$as_me: failed program was:" >&5
26278 sed 's/^/| /' conftest.$ac_ext >&5
26279
26280 emacs_cv_c_restrict_arr=no
26281 fi
26282
26283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26284 fi
26285 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
26286 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
26287 if test "$emacs_cv_c_restrict_arr" = yes; then
26288
26289 cat >>confdefs.h <<\_ACEOF
26290 #define __restrict_arr __restrict
26291 _ACEOF
26292
26293 fi
26294
26295
26296
26297 # Set up the CFLAGS for real compilation, so we can substitute it.
26298 CFLAGS="$REAL_CFLAGS"
26299 CPPFLAGS="$REAL_CPPFLAGS"
26300
26301 ## Hack to detect a buggy GCC version.
26302 if test "x$GCC" = xyes \
26303 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
26304 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
26305 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
26306 { { $as_echo "$as_me:$LINENO: error: GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." >&5
26307 $as_echo "$as_me: error: GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." >&2;}
26308 { (exit 1); exit 1; }; }
26309 fi
26310
26311 #### Find out which version of Emacs this is.
26312 version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
26313 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
26314 if test x"${version}" = x; then
26315 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/src/emacs.c'." >&5
26316 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/src/emacs.c'." >&2;}
26317 { (exit 1); exit 1; }; }
26318 fi
26319 if test x"${version}" != x"$PACKAGE_VERSION"; then
26320 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
26321 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
26322 fi
26323
26324 ### Specify what sort of things we'll be editing into Makefile and config.h.
26325 ### Use configuration here uncanonicalized to avoid exceeding size limits.
26326
26327
26328 ## Unused?
26329
26330
26331
26332
26333
26334
26335
26336
26337
26338
26339
26340
26341
26342
26343
26344
26345
26346
26347
26348
26349
26350 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
26351 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
26352 ## end of LIBX_BASE, but nothing ever set it.
26353
26354
26355
26356
26357 ## Used in lwlib/Makefile.in.
26358
26359
26360
26361
26362
26363
26364
26365
26366
26367
26368
26369
26370 cat >>confdefs.h <<_ACEOF
26371 #define EMACS_CONFIGURATION "${canonical}"
26372 _ACEOF
26373
26374
26375 cat >>confdefs.h <<_ACEOF
26376 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
26377 _ACEOF
26378
26379
26380 cat >>confdefs.h <<_ACEOF
26381 #define config_machfile "${machfile}"
26382 _ACEOF
26383
26384
26385 cat >>confdefs.h <<_ACEOF
26386 #define config_opsysfile "${opsysfile}"
26387 _ACEOF
26388
26389
26390 XMENU_OBJ=
26391 XOBJ=
26392 FONT_OBJ=
26393 if test "${HAVE_X_WINDOWS}" = "yes" ; then
26394
26395 cat >>confdefs.h <<\_ACEOF
26396 #define HAVE_X_WINDOWS 1
26397 _ACEOF
26398
26399 XMENU_OBJ=xmenu.o
26400 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
26401 FONT_OBJ=xfont.o
26402 if test "$HAVE_XFT" = "yes"; then
26403 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
26404 elif test "$HAVE_FREETYPE" = "yes"; then
26405 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
26406 fi
26407
26408 fi
26409
26410
26411
26412
26413 WIDGET_OBJ=
26414 MOTIF_LIBW=
26415 if test "${USE_X_TOOLKIT}" != "none" ; then
26416 WIDGET_OBJ=widget.o
26417
26418 cat >>confdefs.h <<\_ACEOF
26419 #define USE_X_TOOLKIT 1
26420 _ACEOF
26421
26422 if test "${USE_X_TOOLKIT}" = "LUCID"; then
26423
26424 cat >>confdefs.h <<\_ACEOF
26425 #define USE_LUCID 1
26426 _ACEOF
26427
26428 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
26429
26430 cat >>confdefs.h <<\_ACEOF
26431 #define USE_MOTIF 1
26432 _ACEOF
26433
26434 MOTIF_LIBW=-lXm
26435 case "$opsys" in
26436 gnu-linux)
26437 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
26438 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
26439 ;;
26440
26441 unixware)
26442 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
26443 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
26444 MOTIF_LIBW="MOTIF_LIBW -lXimp"
26445 ;;
26446
26447 aix4-2)
26448 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
26449 MOTIF_LIBW="$MOTIF_LIBW -li18n"
26450 ;;
26451 esac
26452 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
26453 fi
26454 fi
26455
26456
26457 TOOLKIT_LIBW=
26458 case "$USE_X_TOOLKIT" in
26459 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
26460 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
26461 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
26462 esac
26463
26464
26465 if test "$USE_X_TOOLKIT" = "none"; then
26466 LIBXT_OTHER="\$(LIBXSM)"
26467 OLDXMENU_TARGET="really-oldXMenu"
26468 else
26469 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
26470 OLDXMENU_TARGET="really-lwlib"
26471 fi
26472
26473
26474
26475 ## The X Menu stuff is present in the X10 distribution, but missing
26476 ## from X11. If we have X10, just use the installed library;
26477 ## otherwise, use our own copy.
26478 if test "${HAVE_X11}" = "yes" ; then
26479
26480 cat >>confdefs.h <<\_ACEOF
26481 #define HAVE_X11 1
26482 _ACEOF
26483
26484
26485 if test "$USE_X_TOOLKIT" = "none"; then
26486 OLDXMENU="\${oldXMenudir}libXMenu11.a"
26487 else
26488 OLDXMENU="\${lwlibdir}liblw.a"
26489 fi
26490 LIBXMENU="\$(OLDXMENU)"
26491 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
26492 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
26493 else
26494 OLDXMENU=
26495 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
26496 if test "${HAVE_X_WINDOWS}" = "yes"; then
26497 LIBXMENU="-lXMenu"
26498 else
26499 LIBXMENU=
26500 fi
26501 LIBX_OTHER=
26502 OLDXMENU_DEPS=
26503 fi
26504
26505 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
26506 OLDXMENU=
26507 LIBXMENU=
26508 OLDXMENU_DEPS=
26509 fi
26510
26511
26512
26513
26514
26515
26516 if test "${HAVE_MENUS}" = "yes" ; then
26517
26518 cat >>confdefs.h <<\_ACEOF
26519 #define HAVE_MENUS 1
26520 _ACEOF
26521
26522 fi
26523 if test "${GNU_MALLOC}" = "yes" ; then
26524
26525 cat >>confdefs.h <<\_ACEOF
26526 #define GNU_MALLOC 1
26527 _ACEOF
26528
26529 fi
26530 if test "${REL_ALLOC}" = "yes" ; then
26531
26532 cat >>confdefs.h <<\_ACEOF
26533 #define REL_ALLOC 1
26534 _ACEOF
26535
26536 fi
26537
26538
26539 if test "$opsys" = "cygwin"; then
26540 CYGWIN_OBJ="sheap.o"
26541 ## Cygwin differs because of its unexec().
26542 PRE_ALLOC_OBJ=
26543 POST_ALLOC_OBJ="lastfile.o vm-limit.o"
26544 else
26545 CYGWIN_OBJ=
26546 PRE_ALLOC_OBJ=lastfile.o
26547 POST_ALLOC_OBJ="\$(vmlimitobj)"
26548 fi
26549
26550
26551
26552
26553
26554 case "$opsys" in
26555 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
26556
26557 darwin)
26558 ## The -headerpad option tells ld (see man page) to leave room at the
26559 ## end of the header for adding load commands. Needed for dumping.
26560 ## 0x690 is the total size of 30 segment load commands (at 56
26561 ## each); under Cocoa 31 commands are required.
26562 if test "$HAVE_NS" = "yes"; then
26563 libs_nsgui="-framework AppKit"
26564 headerpad_extra=6C8
26565 else
26566 libs_nsgui=
26567 headerpad_extra=690
26568 fi
26569 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
26570 ;;
26571
26572 *) LD_SWITCH_SYSTEM_TEMACS= ;;
26573 esac
26574
26575
26576
26577 ## This exists because src/Makefile.in did some extra fiddling around
26578 ## with LD_SWITCH_SYSTEM. The cpp logic was:
26579 ## #ifndef LD_SWITCH_SYSTEM
26580 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
26581 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
26582 ## not using gcc, darwin system not on an alpha (ie darwin, since
26583 ## darwin + alpha does not occur).
26584 ## Note that unlike L_S_S, this is not used in ac_link.
26585 if test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
26586 test "$opsys" = "darwin"; then
26587 LD_SWITCH_SYSTEM_EXTRA="-X"
26588 else
26589 LD_SWITCH_SYSTEM_EXTRA=
26590 fi
26591
26592
26593
26594 LIB_GCC=
26595 if test "x$GCC" = "xyes"; then
26596
26597 case "$opsys" in
26598 ## cygwin: don't link against static libgcc.
26599 cygwin|freebsd|netbsd|openbsd) LIB_GCC= ;;
26600
26601 gnu-*)
26602 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
26603 ## build on ARM EABI under GNU/Linux. (Bug#5518)
26604 ## Note that m/arm.h never bothered to undefine LIB_GCC first.
26605 if test "$machine" = "arm"; then
26606 LIB_GCC="-lgcc_s"
26607 else
26608 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
26609 ## immediately undefine it again and redefine it to empty.
26610 ## Was the C_SWITCH_X_SITE part really necessary?
26611 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
26612 LIB_GCC=
26613 fi
26614 ;;
26615
26616 ## Ask GCC where to find libgcc.a.
26617 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
26618 esac
26619 fi
26620
26621
26622 TOOLTIP_SUPPORT=
26623 WINDOW_SUPPORT=
26624 ## If we're using X11/GNUstep, define some consequences.
26625 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
26626
26627 cat >>confdefs.h <<\_ACEOF
26628 #define HAVE_WINDOW_SYSTEM 1
26629 _ACEOF
26630
26631
26632 cat >>confdefs.h <<\_ACEOF
26633 #define HAVE_MOUSE 1
26634 _ACEOF
26635
26636 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
26637 TOOLTIP_SUPPORT="\${lispsource}mouse.elc"
26638
26639 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
26640 test "$HAVE_X_WINDOWS" = "yes" && \
26641 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
26642
26643 fi
26644
26645
26646
26647
26648
26649
26650
26651
26652
26653 #### Report on what we decided to do.
26654 #### Report GTK as a toolkit, even if it doesn't use Xt.
26655 #### It makes printing result more understandable as using GTK sets
26656 #### toolkit_scroll_bars to yes by default.
26657 if test "${HAVE_GTK}" = "yes"; then
26658 USE_X_TOOLKIT=GTK
26659 fi
26660
26661 echo "
26662 Configured for \`${canonical}'.
26663
26664 Where should the build process find the source code? ${srcdir}
26665 What operating system and machine description files should Emacs use?
26666 \`${opsysfile}' and \`${machfile}'
26667 What compiler should emacs be built with? ${CC} ${CFLAGS}
26668 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
26669 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
26670 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
26671 What window system should Emacs use? ${window_system}
26672 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
26673
26674 if test -n "${x_includes}"; then
26675 echo " Where do we find X Windows header files? ${x_includes}"
26676 else
26677 echo " Where do we find X Windows header files? Standard dirs"
26678 fi
26679 if test -n "${x_libraries}"; then
26680 echo " Where do we find X Windows libraries? ${x_libraries}"
26681 else
26682 echo " Where do we find X Windows libraries? Standard dirs"
26683 fi
26684
26685 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
26686 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
26687 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
26688 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
26689 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
26690 echo " Does Emacs use -lpng? ${HAVE_PNG}"
26691 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
26692 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
26693 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
26694 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
26695 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
26696
26697 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
26698 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
26699 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
26700 echo " Does Emacs use -lxft? ${HAVE_XFT}"
26701
26702 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26703 echo
26704
26705 if test $USE_XASSERTS = yes; then
26706 echo " Compiling with asserts turned on."
26707 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
26708 fi
26709
26710 echo
26711
26712 if test "$HAVE_NS" = "yes"; then
26713 echo
26714 echo "You must run \"make install\" in order to test the built application.
26715 The installed application will go to nextstep/Emacs.app and can be
26716 run or moved from there."
26717 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26718 echo "The application will be fully self-contained."
26719 else
26720 echo "The lisp resources for the application will be installed under ${prefix}.
26721 You may need to run \"make install\" with sudo. The application will fail
26722 to run if these resources are not installed."
26723 fi
26724 echo
26725 fi
26726
26727 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
26728 echo "D-Bus integration has been tested for GNU/Linux only."
26729 echo
26730 fi
26731
26732
26733 # Remove any trailing slashes in these variables.
26734 test "${prefix}" != NONE &&
26735 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26736 test "${exec_prefix}" != NONE &&
26737 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26738
26739 # Now get this: Some word that is part of the ${srcdir} directory name
26740 # or the ${configuration} value might, just might, happen to be an
26741 # identifier like `sun4' or `i386' or something, and be predefined by
26742 # the C preprocessor to some helpful value like 1, or maybe the empty
26743 # string. Needless to say consequent macro substitutions are less
26744 # than conducive to the makefile finding the correct directory.
26745 # src/Makefile.in used to treat X11 as equivalent to HAVE_X11.
26746 # But nothing in Emacs defines X11, and everywhere else uses HAVE_X11,
26747 # so that cannot have been doing anything.
26748 cpp_undefs="`echo $srcdir $configuration $canonical unix mktime register X11 |
26749 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
26750 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
26751
26752 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
26753 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
26754 ## from Makefile.c can correctly provide the arg `-traditional' to the
26755 ## C preprocessor.
26756
26757 cat >conftest.$ac_ext <<_ACEOF
26758 /* confdefs.h. */
26759 _ACEOF
26760 cat confdefs.h >>conftest.$ac_ext
26761 cat >>conftest.$ac_ext <<_ACEOF
26762 /* end confdefs.h. */
26763 yes..yes
26764 _ACEOF
26765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26766 $EGREP "yes..yes" >/dev/null 2>&1; then
26767 CPP_NEED_TRADITIONAL=no
26768 else
26769 CPP_NEED_TRADITIONAL=yes
26770 fi
26771 rm -f conftest*
26772
26773
26774 ac_config_files="$ac_config_files Makefile lib-src/Makefile 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"
26775
26776 ac_config_commands="$ac_config_commands default"
26777
26778 cat >confcache <<\_ACEOF
26779 # This file is a shell script that caches the results of configure
26780 # tests run on this system so they can be shared between configure
26781 # scripts and configure runs, see configure's option --config-cache.
26782 # It is not useful on other systems. If it contains results you don't
26783 # want to keep, you may remove or edit it.
26784 #
26785 # config.status only pays attention to the cache file if you give it
26786 # the --recheck option to rerun configure.
26787 #
26788 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26789 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26790 # following values.
26791
26792 _ACEOF
26793
26794 # The following way of writing the cache mishandles newlines in values,
26795 # but we know of no workaround that is simple, portable, and efficient.
26796 # So, we kill variables containing newlines.
26797 # Ultrix sh set writes to stderr and can't be redirected directly,
26798 # and sets the high bit in the cache file unless we assign to the vars.
26799 (
26800 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26801 eval ac_val=\$$ac_var
26802 case $ac_val in #(
26803 *${as_nl}*)
26804 case $ac_var in #(
26805 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26806 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26807 esac
26808 case $ac_var in #(
26809 _ | IFS | as_nl) ;; #(
26810 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26811 *) $as_unset $ac_var ;;
26812 esac ;;
26813 esac
26814 done
26815
26816 (set) 2>&1 |
26817 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26818 *${as_nl}ac_space=\ *)
26819 # `set' does not quote correctly, so add quotes (double-quote
26820 # substitution turns \\\\ into \\, and sed turns \\ into \).
26821 sed -n \
26822 "s/'/'\\\\''/g;
26823 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26824 ;; #(
26825 *)
26826 # `set' quotes correctly as required by POSIX, so do not add quotes.
26827 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26828 ;;
26829 esac |
26830 sort
26831 ) |
26832 sed '
26833 /^ac_cv_env_/b end
26834 t clear
26835 :clear
26836 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26837 t end
26838 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26839 :end' >>confcache
26840 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26841 if test -w "$cache_file"; then
26842 test "x$cache_file" != "x/dev/null" &&
26843 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26844 $as_echo "$as_me: updating cache $cache_file" >&6;}
26845 cat confcache >$cache_file
26846 else
26847 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26848 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26849 fi
26850 fi
26851 rm -f confcache
26852
26853 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26854 # Let make expand exec_prefix.
26855 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26856
26857 DEFS=-DHAVE_CONFIG_H
26858
26859 ac_libobjs=
26860 ac_ltlibobjs=
26861 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26862 # 1. Remove the extension, and $U if already installed.
26863 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26864 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26865 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26866 # will be set to the directory where LIBOBJS objects are built.
26867 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26868 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26869 done
26870 LIBOBJS=$ac_libobjs
26871
26872 LTLIBOBJS=$ac_ltlibobjs
26873
26874
26875
26876 : ${CONFIG_STATUS=./config.status}
26877 ac_write_fail=0
26878 ac_clean_files_save=$ac_clean_files
26879 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26880 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26881 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26882 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26883 #! $SHELL
26884 # Generated by $as_me.
26885 # Run this file to recreate the current configuration.
26886 # Compiler output produced by configure, useful for debugging
26887 # configure, is in config.log if it exists.
26888
26889 debug=false
26890 ac_cs_recheck=false
26891 ac_cs_silent=false
26892 SHELL=\${CONFIG_SHELL-$SHELL}
26893 _ACEOF
26894
26895 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26896 ## --------------------- ##
26897 ## M4sh Initialization. ##
26898 ## --------------------- ##
26899
26900 # Be more Bourne compatible
26901 DUALCASE=1; export DUALCASE # for MKS sh
26902 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26903 emulate sh
26904 NULLCMD=:
26905 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26906 # is contrary to our usage. Disable this feature.
26907 alias -g '${1+"$@"}'='"$@"'
26908 setopt NO_GLOB_SUBST
26909 else
26910 case `(set -o) 2>/dev/null` in
26911 *posix*) set -o posix ;;
26912 esac
26913
26914 fi
26915
26916
26917
26918
26919 # PATH needs CR
26920 # Avoid depending upon Character Ranges.
26921 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26922 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26923 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26924 as_cr_digits='0123456789'
26925 as_cr_alnum=$as_cr_Letters$as_cr_digits
26926
26927 as_nl='
26928 '
26929 export as_nl
26930 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26931 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26932 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26933 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26934 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26935 as_echo='printf %s\n'
26936 as_echo_n='printf %s'
26937 else
26938 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26939 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26940 as_echo_n='/usr/ucb/echo -n'
26941 else
26942 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26943 as_echo_n_body='eval
26944 arg=$1;
26945 case $arg in
26946 *"$as_nl"*)
26947 expr "X$arg" : "X\\(.*\\)$as_nl";
26948 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26949 esac;
26950 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26951 '
26952 export as_echo_n_body
26953 as_echo_n='sh -c $as_echo_n_body as_echo'
26954 fi
26955 export as_echo_body
26956 as_echo='sh -c $as_echo_body as_echo'
26957 fi
26958
26959 # The user is always right.
26960 if test "${PATH_SEPARATOR+set}" != set; then
26961 PATH_SEPARATOR=:
26962 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26963 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26964 PATH_SEPARATOR=';'
26965 }
26966 fi
26967
26968 # Support unset when possible.
26969 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26970 as_unset=unset
26971 else
26972 as_unset=false
26973 fi
26974
26975
26976 # IFS
26977 # We need space, tab and new line, in precisely that order. Quoting is
26978 # there to prevent editors from complaining about space-tab.
26979 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26980 # splitting by setting IFS to empty value.)
26981 IFS=" "" $as_nl"
26982
26983 # Find who we are. Look in the path if we contain no directory separator.
26984 case $0 in
26985 *[\\/]* ) as_myself=$0 ;;
26986 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26987 for as_dir in $PATH
26988 do
26989 IFS=$as_save_IFS
26990 test -z "$as_dir" && as_dir=.
26991 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26992 done
26993 IFS=$as_save_IFS
26994
26995 ;;
26996 esac
26997 # We did not find ourselves, most probably we were run as `sh COMMAND'
26998 # in which case we are not to be found in the path.
26999 if test "x$as_myself" = x; then
27000 as_myself=$0
27001 fi
27002 if test ! -f "$as_myself"; then
27003 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27004 { (exit 1); exit 1; }
27005 fi
27006
27007 # Work around bugs in pre-3.0 UWIN ksh.
27008 for as_var in ENV MAIL MAILPATH
27009 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27010 done
27011 PS1='$ '
27012 PS2='> '
27013 PS4='+ '
27014
27015 # NLS nuisances.
27016 LC_ALL=C
27017 export LC_ALL
27018 LANGUAGE=C
27019 export LANGUAGE
27020
27021 # Required to use basename.
27022 if expr a : '\(a\)' >/dev/null 2>&1 &&
27023 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27024 as_expr=expr
27025 else
27026 as_expr=false
27027 fi
27028
27029 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27030 as_basename=basename
27031 else
27032 as_basename=false
27033 fi
27034
27035
27036 # Name of the executable.
27037 as_me=`$as_basename -- "$0" ||
27038 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27039 X"$0" : 'X\(//\)$' \| \
27040 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27041 $as_echo X/"$0" |
27042 sed '/^.*\/\([^/][^/]*\)\/*$/{
27043 s//\1/
27044 q
27045 }
27046 /^X\/\(\/\/\)$/{
27047 s//\1/
27048 q
27049 }
27050 /^X\/\(\/\).*/{
27051 s//\1/
27052 q
27053 }
27054 s/.*/./; q'`
27055
27056 # CDPATH.
27057 $as_unset CDPATH
27058
27059
27060
27061 as_lineno_1=$LINENO
27062 as_lineno_2=$LINENO
27063 test "x$as_lineno_1" != "x$as_lineno_2" &&
27064 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27065
27066 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27067 # uniformly replaced by the line number. The first 'sed' inserts a
27068 # line-number line after each line using $LINENO; the second 'sed'
27069 # does the real work. The second script uses 'N' to pair each
27070 # line-number line with the line containing $LINENO, and appends
27071 # trailing '-' during substitution so that $LINENO is not a special
27072 # case at line end.
27073 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27074 # scripts with optimization help from Paolo Bonzini. Blame Lee
27075 # E. McMahon (1931-1989) for sed's syntax. :-)
27076 sed -n '
27077 p
27078 /[$]LINENO/=
27079 ' <$as_myself |
27080 sed '
27081 s/[$]LINENO.*/&-/
27082 t lineno
27083 b
27084 :lineno
27085 N
27086 :loop
27087 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27088 t loop
27089 s/-\n.*//
27090 ' >$as_me.lineno &&
27091 chmod +x "$as_me.lineno" ||
27092 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27093 { (exit 1); exit 1; }; }
27094
27095 # Don't try to exec as it changes $[0], causing all sort of problems
27096 # (the dirname of $[0] is not the place where we might find the
27097 # original and so on. Autoconf is especially sensitive to this).
27098 . "./$as_me.lineno"
27099 # Exit status is that of the last command.
27100 exit
27101 }
27102
27103
27104 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27105 as_dirname=dirname
27106 else
27107 as_dirname=false
27108 fi
27109
27110 ECHO_C= ECHO_N= ECHO_T=
27111 case `echo -n x` in
27112 -n*)
27113 case `echo 'x\c'` in
27114 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27115 *) ECHO_C='\c';;
27116 esac;;
27117 *)
27118 ECHO_N='-n';;
27119 esac
27120 if expr a : '\(a\)' >/dev/null 2>&1 &&
27121 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27122 as_expr=expr
27123 else
27124 as_expr=false
27125 fi
27126
27127 rm -f conf$$ conf$$.exe conf$$.file
27128 if test -d conf$$.dir; then
27129 rm -f conf$$.dir/conf$$.file
27130 else
27131 rm -f conf$$.dir
27132 mkdir conf$$.dir 2>/dev/null
27133 fi
27134 if (echo >conf$$.file) 2>/dev/null; then
27135 if ln -s conf$$.file conf$$ 2>/dev/null; then
27136 as_ln_s='ln -s'
27137 # ... but there are two gotchas:
27138 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27139 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27140 # In both cases, we have to default to `cp -p'.
27141 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27142 as_ln_s='cp -p'
27143 elif ln conf$$.file conf$$ 2>/dev/null; then
27144 as_ln_s=ln
27145 else
27146 as_ln_s='cp -p'
27147 fi
27148 else
27149 as_ln_s='cp -p'
27150 fi
27151 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27152 rmdir conf$$.dir 2>/dev/null
27153
27154 if mkdir -p . 2>/dev/null; then
27155 as_mkdir_p=:
27156 else
27157 test -d ./-p && rmdir ./-p
27158 as_mkdir_p=false
27159 fi
27160
27161 if test -x / >/dev/null 2>&1; then
27162 as_test_x='test -x'
27163 else
27164 if ls -dL / >/dev/null 2>&1; then
27165 as_ls_L_option=L
27166 else
27167 as_ls_L_option=
27168 fi
27169 as_test_x='
27170 eval sh -c '\''
27171 if test -d "$1"; then
27172 test -d "$1/.";
27173 else
27174 case $1 in
27175 -*)set "./$1";;
27176 esac;
27177 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27178 ???[sx]*):;;*)false;;esac;fi
27179 '\'' sh
27180 '
27181 fi
27182 as_executable_p=$as_test_x
27183
27184 # Sed expression to map a string onto a valid CPP name.
27185 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27186
27187 # Sed expression to map a string onto a valid variable name.
27188 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27189
27190
27191 exec 6>&1
27192
27193 # Save the log message, to keep $[0] and so on meaningful, and to
27194 # report actual input values of CONFIG_FILES etc. instead of their
27195 # values after options handling.
27196 ac_log="
27197 This file was extended by emacs $as_me 24.0.50, which was
27198 generated by GNU Autoconf 2.62. Invocation command line was
27199
27200 CONFIG_FILES = $CONFIG_FILES
27201 CONFIG_HEADERS = $CONFIG_HEADERS
27202 CONFIG_LINKS = $CONFIG_LINKS
27203 CONFIG_COMMANDS = $CONFIG_COMMANDS
27204 $ $0 $@
27205
27206 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27207 "
27208
27209 _ACEOF
27210
27211 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27212 # Files that config.status was made for.
27213 config_files="$ac_config_files"
27214 config_headers="$ac_config_headers"
27215 config_commands="$ac_config_commands"
27216
27217 _ACEOF
27218
27219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27220 ac_cs_usage="\
27221 \`$as_me' instantiates files from templates according to the
27222 current configuration.
27223
27224 Usage: $0 [OPTIONS] [FILE]...
27225
27226 -h, --help print this help, then exit
27227 -V, --version print version number and configuration settings, then exit
27228 -q, --quiet do not print progress messages
27229 -d, --debug don't remove temporary files
27230 --recheck update $as_me by reconfiguring in the same conditions
27231 --file=FILE[:TEMPLATE]
27232 instantiate the configuration file FILE
27233 --header=FILE[:TEMPLATE]
27234 instantiate the configuration header FILE
27235
27236 Configuration files:
27237 $config_files
27238
27239 Configuration headers:
27240 $config_headers
27241
27242 Configuration commands:
27243 $config_commands
27244
27245 Report bugs to <bug-autoconf@gnu.org>."
27246
27247 _ACEOF
27248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27249 ac_cs_version="\\
27250 emacs config.status 24.0.50
27251 configured by $0, generated by GNU Autoconf 2.62,
27252 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27253
27254 Copyright (C) 2008 Free Software Foundation, Inc.
27255 This config.status script is free software; the Free Software Foundation
27256 gives unlimited permission to copy, distribute and modify it."
27257
27258 ac_pwd='$ac_pwd'
27259 srcdir='$srcdir'
27260 INSTALL='$INSTALL'
27261 test -n "\$AWK" || AWK=awk
27262 _ACEOF
27263
27264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27265 # The default lists apply if the user does not specify any file.
27266 ac_need_defaults=:
27267 while test $# != 0
27268 do
27269 case $1 in
27270 --*=*)
27271 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27272 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27273 ac_shift=:
27274 ;;
27275 *)
27276 ac_option=$1
27277 ac_optarg=$2
27278 ac_shift=shift
27279 ;;
27280 esac
27281
27282 case $ac_option in
27283 # Handling of the options.
27284 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27285 ac_cs_recheck=: ;;
27286 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27287 $as_echo "$ac_cs_version"; exit ;;
27288 --debug | --debu | --deb | --de | --d | -d )
27289 debug=: ;;
27290 --file | --fil | --fi | --f )
27291 $ac_shift
27292 case $ac_optarg in
27293 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27294 esac
27295 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
27296 ac_need_defaults=false;;
27297 --header | --heade | --head | --hea )
27298 $ac_shift
27299 case $ac_optarg in
27300 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27301 esac
27302 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
27303 ac_need_defaults=false;;
27304 --he | --h)
27305 # Conflict between --help and --header
27306 { $as_echo "$as_me: error: ambiguous option: $1
27307 Try \`$0 --help' for more information." >&2
27308 { (exit 1); exit 1; }; };;
27309 --help | --hel | -h )
27310 $as_echo "$ac_cs_usage"; exit ;;
27311 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27312 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27313 ac_cs_silent=: ;;
27314
27315 # This is an error.
27316 -*) { $as_echo "$as_me: error: unrecognized option: $1
27317 Try \`$0 --help' for more information." >&2
27318 { (exit 1); exit 1; }; } ;;
27319
27320 *) ac_config_targets="$ac_config_targets $1"
27321 ac_need_defaults=false ;;
27322
27323 esac
27324 shift
27325 done
27326
27327 ac_configure_extra_args=
27328
27329 if $ac_cs_silent; then
27330 exec 6>/dev/null
27331 ac_configure_extra_args="$ac_configure_extra_args --silent"
27332 fi
27333
27334 _ACEOF
27335 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27336 if \$ac_cs_recheck; then
27337 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27338 shift
27339 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27340 CONFIG_SHELL='$SHELL'
27341 export CONFIG_SHELL
27342 exec "\$@"
27343 fi
27344
27345 _ACEOF
27346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27347 exec 5>>config.log
27348 {
27349 echo
27350 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27351 ## Running $as_me. ##
27352 _ASBOX
27353 $as_echo "$ac_log"
27354 } >&5
27355
27356 _ACEOF
27357 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27358 #
27359 # INIT-COMMANDS
27360 #
27361 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
27362
27363 _ACEOF
27364
27365 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27366
27367 # Handling of arguments.
27368 for ac_config_target in $ac_config_targets
27369 do
27370 case $ac_config_target in
27371 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
27372 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27373 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
27374 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
27375 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
27376 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
27377 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
27378 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
27379 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
27380 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
27381 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
27382 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
27383 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27384
27385 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27386 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27387 { (exit 1); exit 1; }; };;
27388 esac
27389 done
27390
27391
27392 # If the user did not use the arguments to specify the items to instantiate,
27393 # then the envvar interface is used. Set only those that are not.
27394 # We use the long form for the default assignment because of an extremely
27395 # bizarre bug on SunOS 4.1.3.
27396 if $ac_need_defaults; then
27397 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27398 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27399 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27400 fi
27401
27402 # Have a temporary directory for convenience. Make it in the build tree
27403 # simply because there is no reason against having it here, and in addition,
27404 # creating and moving files from /tmp can sometimes cause problems.
27405 # Hook for its removal unless debugging.
27406 # Note that there is a small window in which the directory will not be cleaned:
27407 # after its creation but before its name has been assigned to `$tmp'.
27408 $debug ||
27409 {
27410 tmp=
27411 trap 'exit_status=$?
27412 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27413 ' 0
27414 trap '{ (exit 1); exit 1; }' 1 2 13 15
27415 }
27416 # Create a (secure) tmp directory for tmp files.
27417
27418 {
27419 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27420 test -n "$tmp" && test -d "$tmp"
27421 } ||
27422 {
27423 tmp=./conf$$-$RANDOM
27424 (umask 077 && mkdir "$tmp")
27425 } ||
27426 {
27427 $as_echo "$as_me: cannot create a temporary directory in ." >&2
27428 { (exit 1); exit 1; }
27429 }
27430
27431 # Set up the scripts for CONFIG_FILES section.
27432 # No need to generate them if there are no CONFIG_FILES.
27433 # This happens for instance with `./config.status config.h'.
27434 if test -n "$CONFIG_FILES"; then
27435
27436
27437 ac_cr=' '
27438 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27439 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27440 ac_cs_awk_cr='\\r'
27441 else
27442 ac_cs_awk_cr=$ac_cr
27443 fi
27444
27445 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27446 _ACEOF
27447
27448
27449 {
27450 echo "cat >conf$$subs.awk <<_ACEOF" &&
27451 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27452 echo "_ACEOF"
27453 } >conf$$subs.sh ||
27454 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27455 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27456 { (exit 1); exit 1; }; }
27457 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27458 ac_delim='%!_!# '
27459 for ac_last_try in false false false false false :; do
27460 . ./conf$$subs.sh ||
27461 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27462 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27463 { (exit 1); exit 1; }; }
27464
27465 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
27466 break
27467 elif $ac_last_try; then
27468 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27469 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27470 { (exit 1); exit 1; }; }
27471 else
27472 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27473 fi
27474 done
27475 rm -f conf$$subs.sh
27476
27477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27478 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27479 _ACEOF
27480 sed -n '
27481 h
27482 s/^/S["/; s/!.*/"]=/
27483 p
27484 g
27485 s/^[^!]*!//
27486 :repl
27487 t repl
27488 s/'"$ac_delim"'$//
27489 t delim
27490 :nl
27491 h
27492 s/\(.\{148\}\).*/\1/
27493 t more1
27494 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27495 p
27496 n
27497 b repl
27498 :more1
27499 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27500 p
27501 g
27502 s/.\{148\}//
27503 t nl
27504 :delim
27505 h
27506 s/\(.\{148\}\).*/\1/
27507 t more2
27508 s/["\\]/\\&/g; s/^/"/; s/$/"/
27509 p
27510 b
27511 :more2
27512 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27513 p
27514 g
27515 s/.\{148\}//
27516 t delim
27517 ' <conf$$subs.awk | sed '
27518 /^[^""]/{
27519 N
27520 s/\n//
27521 }
27522 ' >>$CONFIG_STATUS || ac_write_fail=1
27523 rm -f conf$$subs.awk
27524 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27525 _ACAWK
27526 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27527 for (key in S) S_is_set[key] = 1
27528 FS = "\a"
27529
27530 }
27531 {
27532 line = $ 0
27533 nfields = split(line, field, "@")
27534 substed = 0
27535 len = length(field[1])
27536 for (i = 2; i < nfields; i++) {
27537 key = field[i]
27538 keylen = length(key)
27539 if (S_is_set[key]) {
27540 value = S[key]
27541 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27542 len += length(value) + length(field[++i])
27543 substed = 1
27544 } else
27545 len += 1 + keylen
27546 }
27547
27548 print line
27549 }
27550
27551 _ACAWK
27552 _ACEOF
27553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27554 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27555 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27556 else
27557 cat
27558 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27559 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
27560 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
27561 { (exit 1); exit 1; }; }
27562 _ACEOF
27563
27564 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27565 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27566 # trailing colons and then remove the whole line if VPATH becomes empty
27567 # (actually we leave an empty line to preserve line numbers).
27568 if test "x$srcdir" = x.; then
27569 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27570 s/:*\$(srcdir):*/:/
27571 s/:*\${srcdir}:*/:/
27572 s/:*@srcdir@:*/:/
27573 s/^\([^=]*=[ ]*\):*/\1/
27574 s/:*$//
27575 s/^[^=]*=[ ]*$//
27576 }'
27577 fi
27578
27579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27580 fi # test -n "$CONFIG_FILES"
27581
27582 # Set up the scripts for CONFIG_HEADERS section.
27583 # No need to generate them if there are no CONFIG_HEADERS.
27584 # This happens for instance with `./config.status Makefile'.
27585 if test -n "$CONFIG_HEADERS"; then
27586 cat >"$tmp/defines.awk" <<\_ACAWK ||
27587 BEGIN {
27588 _ACEOF
27589
27590 # Transform confdefs.h into an awk script `defines.awk', embedded as
27591 # here-document in config.status, that substitutes the proper values into
27592 # config.h.in to produce config.h.
27593
27594 # Create a delimiter string that does not exist in confdefs.h, to ease
27595 # handling of long lines.
27596 ac_delim='%!_!# '
27597 for ac_last_try in false false :; do
27598 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27599 if test -z "$ac_t"; then
27600 break
27601 elif $ac_last_try; then
27602 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
27603 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
27604 { (exit 1); exit 1; }; }
27605 else
27606 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27607 fi
27608 done
27609
27610 # For the awk script, D is an array of macro values keyed by name,
27611 # likewise P contains macro parameters if any. Preserve backslash
27612 # newline sequences.
27613
27614 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27615 sed -n '
27616 s/.\{148\}/&'"$ac_delim"'/g
27617 t rset
27618 :rset
27619 s/^[ ]*#[ ]*define[ ][ ]*/ /
27620 t def
27621 d
27622 :def
27623 s/\\$//
27624 t bsnl
27625 s/["\\]/\\&/g
27626 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27627 D["\1"]=" \3"/p
27628 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27629 d
27630 :bsnl
27631 s/["\\]/\\&/g
27632 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27633 D["\1"]=" \3\\\\\\n"\\/p
27634 t cont
27635 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27636 t cont
27637 d
27638 :cont
27639 n
27640 s/.\{148\}/&'"$ac_delim"'/g
27641 t clear
27642 :clear
27643 s/\\$//
27644 t bsnlc
27645 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27646 d
27647 :bsnlc
27648 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27649 b cont
27650 ' <confdefs.h | sed '
27651 s/'"$ac_delim"'/"\\\
27652 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27653
27654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27655 for (key in D) D_is_set[key] = 1
27656 FS = "\a"
27657 }
27658 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27659 line = \$ 0
27660 split(line, arg, " ")
27661 if (arg[1] == "#") {
27662 defundef = arg[2]
27663 mac1 = arg[3]
27664 } else {
27665 defundef = substr(arg[1], 2)
27666 mac1 = arg[2]
27667 }
27668 split(mac1, mac2, "(") #)
27669 macro = mac2[1]
27670 if (D_is_set[macro]) {
27671 # Preserve the white space surrounding the "#".
27672 prefix = substr(line, 1, index(line, defundef) - 1)
27673 print prefix "define", macro P[macro] D[macro]
27674 next
27675 } else {
27676 # Replace #undef with comments. This is necessary, for example,
27677 # in the case of _POSIX_SOURCE, which is predefined and required
27678 # on some systems where configure will not decide to define it.
27679 if (defundef == "undef") {
27680 print "/*", line, "*/"
27681 next
27682 }
27683 }
27684 }
27685 { print }
27686 _ACAWK
27687 _ACEOF
27688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27689 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27690 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27691 { (exit 1); exit 1; }; }
27692 fi # test -n "$CONFIG_HEADERS"
27693
27694
27695 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27696 shift
27697 for ac_tag
27698 do
27699 case $ac_tag in
27700 :[FHLC]) ac_mode=$ac_tag; continue;;
27701 esac
27702 case $ac_mode$ac_tag in
27703 :[FHL]*:*);;
27704 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27705 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27706 { (exit 1); exit 1; }; };;
27707 :[FH]-) ac_tag=-:-;;
27708 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27709 esac
27710 ac_save_IFS=$IFS
27711 IFS=:
27712 set x $ac_tag
27713 IFS=$ac_save_IFS
27714 shift
27715 ac_file=$1
27716 shift
27717
27718 case $ac_mode in
27719 :L) ac_source=$1;;
27720 :[FH])
27721 ac_file_inputs=
27722 for ac_f
27723 do
27724 case $ac_f in
27725 -) ac_f="$tmp/stdin";;
27726 *) # Look for the file first in the build tree, then in the source tree
27727 # (if the path is not absolute). The absolute path cannot be DOS-style,
27728 # because $ac_f cannot contain `:'.
27729 test -f "$ac_f" ||
27730 case $ac_f in
27731 [\\/$]*) false;;
27732 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27733 esac ||
27734 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27735 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27736 { (exit 1); exit 1; }; };;
27737 esac
27738 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27739 ac_file_inputs="$ac_file_inputs '$ac_f'"
27740 done
27741
27742 # Let's still pretend it is `configure' which instantiates (i.e., don't
27743 # use $as_me), people would be surprised to read:
27744 # /* config.h. Generated by config.status. */
27745 configure_input='Generated from '`
27746 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27747 `' by configure.'
27748 if test x"$ac_file" != x-; then
27749 configure_input="$ac_file. $configure_input"
27750 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27751 $as_echo "$as_me: creating $ac_file" >&6;}
27752 fi
27753 # Neutralize special characters interpreted by sed in replacement strings.
27754 case $configure_input in #(
27755 *\&* | *\|* | *\\* )
27756 ac_sed_conf_input=`$as_echo "$configure_input" |
27757 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27758 *) ac_sed_conf_input=$configure_input;;
27759 esac
27760
27761 case $ac_tag in
27762 *:-:* | *:-) cat >"$tmp/stdin" \
27763 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27764 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27765 { (exit 1); exit 1; }; } ;;
27766 esac
27767 ;;
27768 esac
27769
27770 ac_dir=`$as_dirname -- "$ac_file" ||
27771 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27772 X"$ac_file" : 'X\(//\)[^/]' \| \
27773 X"$ac_file" : 'X\(//\)$' \| \
27774 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27775 $as_echo X"$ac_file" |
27776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27777 s//\1/
27778 q
27779 }
27780 /^X\(\/\/\)[^/].*/{
27781 s//\1/
27782 q
27783 }
27784 /^X\(\/\/\)$/{
27785 s//\1/
27786 q
27787 }
27788 /^X\(\/\).*/{
27789 s//\1/
27790 q
27791 }
27792 s/.*/./; q'`
27793 { as_dir="$ac_dir"
27794 case $as_dir in #(
27795 -*) as_dir=./$as_dir;;
27796 esac
27797 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27798 as_dirs=
27799 while :; do
27800 case $as_dir in #(
27801 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27802 *) as_qdir=$as_dir;;
27803 esac
27804 as_dirs="'$as_qdir' $as_dirs"
27805 as_dir=`$as_dirname -- "$as_dir" ||
27806 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27807 X"$as_dir" : 'X\(//\)[^/]' \| \
27808 X"$as_dir" : 'X\(//\)$' \| \
27809 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27810 $as_echo X"$as_dir" |
27811 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27812 s//\1/
27813 q
27814 }
27815 /^X\(\/\/\)[^/].*/{
27816 s//\1/
27817 q
27818 }
27819 /^X\(\/\/\)$/{
27820 s//\1/
27821 q
27822 }
27823 /^X\(\/\).*/{
27824 s//\1/
27825 q
27826 }
27827 s/.*/./; q'`
27828 test -d "$as_dir" && break
27829 done
27830 test -z "$as_dirs" || eval "mkdir $as_dirs"
27831 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27832 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27833 { (exit 1); exit 1; }; }; }
27834 ac_builddir=.
27835
27836 case "$ac_dir" in
27837 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27838 *)
27839 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27840 # A ".." for each directory in $ac_dir_suffix.
27841 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27842 case $ac_top_builddir_sub in
27843 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27844 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27845 esac ;;
27846 esac
27847 ac_abs_top_builddir=$ac_pwd
27848 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27849 # for backward compatibility:
27850 ac_top_builddir=$ac_top_build_prefix
27851
27852 case $srcdir in
27853 .) # We are building in place.
27854 ac_srcdir=.
27855 ac_top_srcdir=$ac_top_builddir_sub
27856 ac_abs_top_srcdir=$ac_pwd ;;
27857 [\\/]* | ?:[\\/]* ) # Absolute name.
27858 ac_srcdir=$srcdir$ac_dir_suffix;
27859 ac_top_srcdir=$srcdir
27860 ac_abs_top_srcdir=$srcdir ;;
27861 *) # Relative name.
27862 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27863 ac_top_srcdir=$ac_top_build_prefix$srcdir
27864 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27865 esac
27866 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27867
27868
27869 case $ac_mode in
27870 :F)
27871 #
27872 # CONFIG_FILE
27873 #
27874
27875 case $INSTALL in
27876 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27877 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27878 esac
27879 _ACEOF
27880
27881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27882 # If the template does not know about datarootdir, expand it.
27883 # FIXME: This hack should be removed a few years after 2.60.
27884 ac_datarootdir_hack=; ac_datarootdir_seen=
27885
27886 ac_sed_dataroot='
27887 /datarootdir/ {
27888 p
27889 q
27890 }
27891 /@datadir@/p
27892 /@docdir@/p
27893 /@infodir@/p
27894 /@localedir@/p
27895 /@mandir@/p
27896 '
27897 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27898 *datarootdir*) ac_datarootdir_seen=yes;;
27899 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27900 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27901 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27902 _ACEOF
27903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27904 ac_datarootdir_hack='
27905 s&@datadir@&$datadir&g
27906 s&@docdir@&$docdir&g
27907 s&@infodir@&$infodir&g
27908 s&@localedir@&$localedir&g
27909 s&@mandir@&$mandir&g
27910 s&\\\${datarootdir}&$datarootdir&g' ;;
27911 esac
27912 _ACEOF
27913
27914 # Neutralize VPATH when `$srcdir' = `.'.
27915 # Shell code in configure.ac might set extrasub.
27916 # FIXME: do we really want to maintain this feature?
27917 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27918 ac_sed_extra="$ac_vpsub
27919 $extrasub
27920 _ACEOF
27921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27922 :t
27923 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27924 s|@configure_input@|$ac_sed_conf_input|;t t
27925 s&@top_builddir@&$ac_top_builddir_sub&;t t
27926 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27927 s&@srcdir@&$ac_srcdir&;t t
27928 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27929 s&@top_srcdir@&$ac_top_srcdir&;t t
27930 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27931 s&@builddir@&$ac_builddir&;t t
27932 s&@abs_builddir@&$ac_abs_builddir&;t t
27933 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27934 s&@INSTALL@&$ac_INSTALL&;t t
27935 $ac_datarootdir_hack
27936 "
27937 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
27938 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27939 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27940 { (exit 1); exit 1; }; }
27941
27942 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27943 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27944 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27945 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27946 which seems to be undefined. Please make sure it is defined." >&5
27947 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27948 which seems to be undefined. Please make sure it is defined." >&2;}
27949
27950 rm -f "$tmp/stdin"
27951 case $ac_file in
27952 -) cat "$tmp/out" && rm -f "$tmp/out";;
27953 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27954 esac \
27955 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27956 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27957 { (exit 1); exit 1; }; }
27958 ;;
27959 :H)
27960 #
27961 # CONFIG_HEADER
27962 #
27963 if test x"$ac_file" != x-; then
27964 {
27965 $as_echo "/* $configure_input */" \
27966 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27967 } >"$tmp/config.h" \
27968 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27969 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27970 { (exit 1); exit 1; }; }
27971 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27972 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27973 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27974 else
27975 rm -f "$ac_file"
27976 mv "$tmp/config.h" "$ac_file" \
27977 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27978 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27979 { (exit 1); exit 1; }; }
27980 fi
27981 else
27982 $as_echo "/* $configure_input */" \
27983 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27984 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27985 $as_echo "$as_me: error: could not create -" >&2;}
27986 { (exit 1); exit 1; }; }
27987 fi
27988 ;;
27989
27990 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
27991 $as_echo "$as_me: executing $ac_file commands" >&6;}
27992 ;;
27993 esac
27994
27995
27996 case $ac_file$ac_mode in
27997 "default":C)
27998
27999 ### Make the necessary directories, if they don't exist.
28000 for dir in etc lisp ; do
28001 test -d ${dir} || mkdir ${dir}
28002 done
28003
28004 # Build src/Makefile from ${srcdir}/src/Makefile.c
28005 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
28006 # This must be done after src/config.h is built, since we rely on that file.
28007
28008 echo creating src/epaths.h
28009 ${MAKE-make} epaths-force
28010
28011 # As of 2000-11-19, newest development versions of GNU cpp preprocess
28012 # `..' to `. .' unless invoked with -traditional
28013
28014 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
28015 CPPFLAGS="$CPPFLAGS -traditional"
28016 fi
28017
28018 echo creating src/Makefile
28019 ( cd src
28020 rm -f junk.c junk1.c junk2.c
28021 sed -e '/start of cpp stuff/q' \
28022 < Makefile.c > junk1.c
28023 sed -e '1,/start of cpp stuff/d'\
28024 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
28025 < Makefile.c > junk.c
28026 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
28027 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
28028 cat junk1.c junk2.c > Makefile.new
28029 rm -f junk.c junk1.c junk2.c
28030 chmod 444 Makefile.new
28031 mv -f Makefile.new Makefile
28032 )
28033
28034 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
28035 echo creating src/.gdbinit
28036 echo source $srcdir/src/.gdbinit > src/.gdbinit
28037 fi
28038
28039 ;;
28040
28041 esac
28042 done # for ac_tag
28043
28044
28045 { (exit 0); exit 0; }
28046 _ACEOF
28047 chmod +x $CONFIG_STATUS
28048 ac_clean_files=$ac_clean_files_save
28049
28050 test $ac_write_fail = 0 ||
28051 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
28052 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
28053 { (exit 1); exit 1; }; }
28054
28055
28056 # configure is writing to config.log, and then calls config.status.
28057 # config.status does its own redirection, appending to config.log.
28058 # Unfortunately, on DOS this fails, as config.log is still kept open
28059 # by configure, so config.status won't be able to write to it; its
28060 # output is simply discarded. So we exec the FD to /dev/null,
28061 # effectively closing config.log, so it can be properly (re)opened and
28062 # appended to by config.status. When coming back to configure, we
28063 # need to make the FD available again.
28064 if test "$no_create" != yes; then
28065 ac_cs_success=:
28066 ac_config_status_args=
28067 test "$silent" = yes &&
28068 ac_config_status_args="$ac_config_status_args --quiet"
28069 exec 5>/dev/null
28070 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28071 exec 5>>config.log
28072 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28073 # would make configure fail if this is the last instruction.
28074 $ac_cs_success || { (exit 1); exit 1; }
28075 fi
28076 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28077 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
28078 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
28079 fi
28080
28081