]> code.delx.au - gnu-emacs/blob - configure
Fix spelling and remove merge marks due to 2010-05-14T04:14:23Z!handa@etlken.
[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_OBJ
722 NS_SUPPORT
723 LIB_STANDARD
724 HAVE_XSERVER
725 RSVG_CFLAGS
726 RSVG_LIBS
727 GTK_CFLAGS
728 GTK_LIBS
729 GTK_OBJ
730 DBUS_CFLAGS
731 DBUS_LIBS
732 DBUS_OBJ
733 GCONF_CFLAGS
734 GCONF_LIBS
735 LIBSELINUX_LIBS
736 LIBXTR6
737 LIBXMU
738 FONTCONFIG_CFLAGS
739 FONTCONFIG_LIBS
740 XFT_CFLAGS
741 XFT_LIBS
742 LIBOTF_CFLAGS
743 LIBOTF_LIBS
744 M17N_FLT_CFLAGS
745 M17N_FLT_LIBS
746 FONT_OBJ
747 FREETYPE_CFLAGS
748 FREETYPE_LIBS
749 LIBXPM
750 LIBJPEG
751 LIBPNG
752 LIBTIFF
753 LIBGIF
754 LIBGPM
755 LIBXSM
756 ALLOCA
757 liblockfile
758 LIBS_MAIL
759 BLESSMAIL_TARGET
760 LIBOBJS
761 NEED_SETGID
762 KMEM_GROUP
763 GETLOADAVG_LIBS
764 GETOPT_H
765 GETOPTOBJS
766 LIBS_TERMCAP
767 TERMCAP_OBJ
768 LIBHESIOD
769 LIBRESOLV
770 COM_ERRLIB
771 CRYPTOLIB
772 KRB5LIB
773 DESLIB
774 KRB4LIB
775 version
776 configuration
777 canonical
778 srcdir
779 lispdir
780 locallisppath
781 lisppath
782 x_default_search_path
783 etcdir
784 archlibdir
785 bitmapdir
786 gamedir
787 gameuser
788 unexec
789 LD_SWITCH_X_SITE
790 C_SWITCH_X_SITE
791 C_SWITCH_X_SYSTEM
792 X_TOOLKIT_TYPE
793 machfile
794 opsysfile
795 ns_appdir
796 ns_appbindir
797 ns_appresdir
798 ns_appsrc
799 GNUSTEP_SYSTEM_HEADERS
800 GNUSTEP_SYSTEM_LIBRARIES
801 GNU_OBJC_CFLAGS
802 OTHER_FILES
803 XMENU_OBJ
804 XOBJ
805 WIDGET_OBJ
806 TOOLKIT_LIBW
807 LIBXT_OTHER
808 OLDXMENU
809 LIBXMENU
810 LIBX_OTHER
811 CYGWIN_OBJ
812 PRE_ALLOC_OBJ
813 POST_ALLOC_OBJ
814 LD_SWITCH_SYSTEM_TEMACS
815 LD_SWITCH_SYSTEM_EXTRA
816 LIB_GCC
817 MOUSE_SUPPORT
818 TOOLTIP_SUPPORT
819 WINDOW_SUPPORT
820 LTLIBOBJS'
821 ac_subst_files=''
822 ac_user_opts='
823 enable_option_checking
824 with_pop
825 with_kerberos
826 with_kerberos5
827 with_hesiod
828 with_mmdf
829 with_mail_unlink
830 with_mailhost
831 with_sound
832 with_sync_input
833 with_x_toolkit
834 with_xpm
835 with_jpeg
836 with_tiff
837 with_gif
838 with_png
839 with_rsvg
840 with_xft
841 with_libotf
842 with_m17n_flt
843 with_toolkit_scroll_bars
844 with_xaw3d
845 with_xim
846 with_ns
847 with_gpm
848 with_dbus
849 with_gconf
850 with_selinux
851 with_makeinfo
852 with_gtk
853 with_gcc
854 with_pkg_config_prog
855 with_crt_dir
856 with_gnustep_conf
857 enable_ns_self_contained
858 enable_asserts
859 enable_maintainer_mode
860 enable_locallisppath
861 enable_checking
862 enable_profiling
863 enable_autodepend
864 enable_largefile
865 with_x
866 '
867 ac_precious_vars='build_alias
868 host_alias
869 target_alias
870 CC
871 CFLAGS
872 LDFLAGS
873 LIBS
874 CPPFLAGS
875 CPP
876 XMKMF'
877
878
879 # Initialize some variables set by options.
880 ac_init_help=
881 ac_init_version=false
882 ac_unrecognized_opts=
883 ac_unrecognized_sep=
884 # The variables have the same names as the options, with
885 # dashes changed to underlines.
886 cache_file=/dev/null
887 exec_prefix=NONE
888 no_create=
889 no_recursion=
890 prefix=NONE
891 program_prefix=NONE
892 program_suffix=NONE
893 program_transform_name=s,x,x,
894 silent=
895 site=
896 srcdir=
897 verbose=
898 x_includes=NONE
899 x_libraries=NONE
900
901 # Installation directory options.
902 # These are left unexpanded so users can "make install exec_prefix=/foo"
903 # and all the variables that are supposed to be based on exec_prefix
904 # by default will actually change.
905 # Use braces instead of parens because sh, perl, etc. also accept them.
906 # (The list follows the same order as the GNU Coding Standards.)
907 bindir='${exec_prefix}/bin'
908 sbindir='${exec_prefix}/sbin'
909 libexecdir='${exec_prefix}/libexec'
910 datarootdir='${prefix}/share'
911 datadir='${datarootdir}'
912 sysconfdir='${prefix}/etc'
913 sharedstatedir='${prefix}/com'
914 localstatedir='${prefix}/var'
915 includedir='${prefix}/include'
916 oldincludedir='/usr/include'
917 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
918 infodir='${datarootdir}/info'
919 htmldir='${docdir}'
920 dvidir='${docdir}'
921 pdfdir='${docdir}'
922 psdir='${docdir}'
923 libdir='${exec_prefix}/lib'
924 localedir='${datarootdir}/locale'
925 mandir='${datarootdir}/man'
926
927 ac_prev=
928 ac_dashdash=
929 for ac_option
930 do
931 # If the previous option needs an argument, assign it.
932 if test -n "$ac_prev"; then
933 eval $ac_prev=\$ac_option
934 ac_prev=
935 continue
936 fi
937
938 case $ac_option in
939 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
940 *) ac_optarg=yes ;;
941 esac
942
943 # Accept the important Cygnus configure options, so we can diagnose typos.
944
945 case $ac_dashdash$ac_option in
946 --)
947 ac_dashdash=yes ;;
948
949 -bindir | --bindir | --bindi | --bind | --bin | --bi)
950 ac_prev=bindir ;;
951 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
952 bindir=$ac_optarg ;;
953
954 -build | --build | --buil | --bui | --bu)
955 ac_prev=build_alias ;;
956 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
957 build_alias=$ac_optarg ;;
958
959 -cache-file | --cache-file | --cache-fil | --cache-fi \
960 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
961 ac_prev=cache_file ;;
962 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
963 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
964 cache_file=$ac_optarg ;;
965
966 --config-cache | -C)
967 cache_file=config.cache ;;
968
969 -datadir | --datadir | --datadi | --datad)
970 ac_prev=datadir ;;
971 -datadir=* | --datadir=* | --datadi=* | --datad=*)
972 datadir=$ac_optarg ;;
973
974 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
975 | --dataroo | --dataro | --datar)
976 ac_prev=datarootdir ;;
977 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
978 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
979 datarootdir=$ac_optarg ;;
980
981 -disable-* | --disable-*)
982 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
983 # Reject names that are not valid shell variable names.
984 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
985 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
986 { (exit 1); exit 1; }; }
987 ac_useropt_orig=$ac_useropt
988 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
989 case $ac_user_opts in
990 *"
991 "enable_$ac_useropt"
992 "*) ;;
993 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
994 ac_unrecognized_sep=', ';;
995 esac
996 eval enable_$ac_useropt=no ;;
997
998 -docdir | --docdir | --docdi | --doc | --do)
999 ac_prev=docdir ;;
1000 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1001 docdir=$ac_optarg ;;
1002
1003 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1004 ac_prev=dvidir ;;
1005 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1006 dvidir=$ac_optarg ;;
1007
1008 -enable-* | --enable-*)
1009 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1010 # Reject names that are not valid shell variable names.
1011 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1012 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1013 { (exit 1); exit 1; }; }
1014 ac_useropt_orig=$ac_useropt
1015 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1016 case $ac_user_opts in
1017 *"
1018 "enable_$ac_useropt"
1019 "*) ;;
1020 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1021 ac_unrecognized_sep=', ';;
1022 esac
1023 eval enable_$ac_useropt=\$ac_optarg ;;
1024
1025 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1026 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1027 | --exec | --exe | --ex)
1028 ac_prev=exec_prefix ;;
1029 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1030 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1031 | --exec=* | --exe=* | --ex=*)
1032 exec_prefix=$ac_optarg ;;
1033
1034 -gas | --gas | --ga | --g)
1035 # Obsolete; use --with-gas.
1036 with_gas=yes ;;
1037
1038 -help | --help | --hel | --he | -h)
1039 ac_init_help=long ;;
1040 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1041 ac_init_help=recursive ;;
1042 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1043 ac_init_help=short ;;
1044
1045 -host | --host | --hos | --ho)
1046 ac_prev=host_alias ;;
1047 -host=* | --host=* | --hos=* | --ho=*)
1048 host_alias=$ac_optarg ;;
1049
1050 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1051 ac_prev=htmldir ;;
1052 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1053 | --ht=*)
1054 htmldir=$ac_optarg ;;
1055
1056 -includedir | --includedir | --includedi | --included | --include \
1057 | --includ | --inclu | --incl | --inc)
1058 ac_prev=includedir ;;
1059 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1060 | --includ=* | --inclu=* | --incl=* | --inc=*)
1061 includedir=$ac_optarg ;;
1062
1063 -infodir | --infodir | --infodi | --infod | --info | --inf)
1064 ac_prev=infodir ;;
1065 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1066 infodir=$ac_optarg ;;
1067
1068 -libdir | --libdir | --libdi | --libd)
1069 ac_prev=libdir ;;
1070 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1071 libdir=$ac_optarg ;;
1072
1073 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1074 | --libexe | --libex | --libe)
1075 ac_prev=libexecdir ;;
1076 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1077 | --libexe=* | --libex=* | --libe=*)
1078 libexecdir=$ac_optarg ;;
1079
1080 -localedir | --localedir | --localedi | --localed | --locale)
1081 ac_prev=localedir ;;
1082 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1083 localedir=$ac_optarg ;;
1084
1085 -localstatedir | --localstatedir | --localstatedi | --localstated \
1086 | --localstate | --localstat | --localsta | --localst | --locals)
1087 ac_prev=localstatedir ;;
1088 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1089 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1090 localstatedir=$ac_optarg ;;
1091
1092 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1093 ac_prev=mandir ;;
1094 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1095 mandir=$ac_optarg ;;
1096
1097 -nfp | --nfp | --nf)
1098 # Obsolete; use --without-fp.
1099 with_fp=no ;;
1100
1101 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1102 | --no-cr | --no-c | -n)
1103 no_create=yes ;;
1104
1105 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1106 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1107 no_recursion=yes ;;
1108
1109 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1110 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1111 | --oldin | --oldi | --old | --ol | --o)
1112 ac_prev=oldincludedir ;;
1113 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1114 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1115 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1116 oldincludedir=$ac_optarg ;;
1117
1118 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1119 ac_prev=prefix ;;
1120 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1121 prefix=$ac_optarg ;;
1122
1123 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1124 | --program-pre | --program-pr | --program-p)
1125 ac_prev=program_prefix ;;
1126 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1127 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1128 program_prefix=$ac_optarg ;;
1129
1130 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1131 | --program-suf | --program-su | --program-s)
1132 ac_prev=program_suffix ;;
1133 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1134 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1135 program_suffix=$ac_optarg ;;
1136
1137 -program-transform-name | --program-transform-name \
1138 | --program-transform-nam | --program-transform-na \
1139 | --program-transform-n | --program-transform- \
1140 | --program-transform | --program-transfor \
1141 | --program-transfo | --program-transf \
1142 | --program-trans | --program-tran \
1143 | --progr-tra | --program-tr | --program-t)
1144 ac_prev=program_transform_name ;;
1145 -program-transform-name=* | --program-transform-name=* \
1146 | --program-transform-nam=* | --program-transform-na=* \
1147 | --program-transform-n=* | --program-transform-=* \
1148 | --program-transform=* | --program-transfor=* \
1149 | --program-transfo=* | --program-transf=* \
1150 | --program-trans=* | --program-tran=* \
1151 | --progr-tra=* | --program-tr=* | --program-t=*)
1152 program_transform_name=$ac_optarg ;;
1153
1154 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1155 ac_prev=pdfdir ;;
1156 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1157 pdfdir=$ac_optarg ;;
1158
1159 -psdir | --psdir | --psdi | --psd | --ps)
1160 ac_prev=psdir ;;
1161 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1162 psdir=$ac_optarg ;;
1163
1164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1165 | -silent | --silent | --silen | --sile | --sil)
1166 silent=yes ;;
1167
1168 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1169 ac_prev=sbindir ;;
1170 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1171 | --sbi=* | --sb=*)
1172 sbindir=$ac_optarg ;;
1173
1174 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1175 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1176 | --sharedst | --shareds | --shared | --share | --shar \
1177 | --sha | --sh)
1178 ac_prev=sharedstatedir ;;
1179 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1180 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1181 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1182 | --sha=* | --sh=*)
1183 sharedstatedir=$ac_optarg ;;
1184
1185 -site | --site | --sit)
1186 ac_prev=site ;;
1187 -site=* | --site=* | --sit=*)
1188 site=$ac_optarg ;;
1189
1190 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1191 ac_prev=srcdir ;;
1192 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1193 srcdir=$ac_optarg ;;
1194
1195 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1196 | --syscon | --sysco | --sysc | --sys | --sy)
1197 ac_prev=sysconfdir ;;
1198 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1199 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1200 sysconfdir=$ac_optarg ;;
1201
1202 -target | --target | --targe | --targ | --tar | --ta | --t)
1203 ac_prev=target_alias ;;
1204 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1205 target_alias=$ac_optarg ;;
1206
1207 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1208 verbose=yes ;;
1209
1210 -version | --version | --versio | --versi | --vers | -V)
1211 ac_init_version=: ;;
1212
1213 -with-* | --with-*)
1214 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1217 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1218 { (exit 1); exit 1; }; }
1219 ac_useropt_orig=$ac_useropt
1220 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1221 case $ac_user_opts in
1222 *"
1223 "with_$ac_useropt"
1224 "*) ;;
1225 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1226 ac_unrecognized_sep=', ';;
1227 esac
1228 eval with_$ac_useropt=\$ac_optarg ;;
1229
1230 -without-* | --without-*)
1231 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1232 # Reject names that are not valid shell variable names.
1233 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1234 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1235 { (exit 1); exit 1; }; }
1236 ac_useropt_orig=$ac_useropt
1237 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1238 case $ac_user_opts in
1239 *"
1240 "with_$ac_useropt"
1241 "*) ;;
1242 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1243 ac_unrecognized_sep=', ';;
1244 esac
1245 eval with_$ac_useropt=no ;;
1246
1247 --x)
1248 # Obsolete; use --with-x.
1249 with_x=yes ;;
1250
1251 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1252 | --x-incl | --x-inc | --x-in | --x-i)
1253 ac_prev=x_includes ;;
1254 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1255 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1256 x_includes=$ac_optarg ;;
1257
1258 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1259 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1260 ac_prev=x_libraries ;;
1261 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1262 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1263 x_libraries=$ac_optarg ;;
1264
1265 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1266 Try \`$0 --help' for more information." >&2
1267 { (exit 1); exit 1; }; }
1268 ;;
1269
1270 *=*)
1271 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1272 # Reject names that are not valid shell variable names.
1273 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1274 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1275 { (exit 1); exit 1; }; }
1276 eval $ac_envvar=\$ac_optarg
1277 export $ac_envvar ;;
1278
1279 *)
1280 # FIXME: should be removed in autoconf 3.0.
1281 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1282 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1283 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1284 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1285 ;;
1286
1287 esac
1288 done
1289
1290 if test -n "$ac_prev"; then
1291 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1292 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1293 { (exit 1); exit 1; }; }
1294 fi
1295
1296 if test -n "$ac_unrecognized_opts"; then
1297 case $enable_option_checking in
1298 no) ;;
1299 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1300 { (exit 1); exit 1; }; } ;;
1301 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1302 esac
1303 fi
1304
1305 # Check all directory arguments for consistency.
1306 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1307 datadir sysconfdir sharedstatedir localstatedir includedir \
1308 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1309 libdir localedir mandir
1310 do
1311 eval ac_val=\$$ac_var
1312 # Remove trailing slashes.
1313 case $ac_val in
1314 */ )
1315 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1316 eval $ac_var=\$ac_val;;
1317 esac
1318 # Be sure to have absolute directory names.
1319 case $ac_val in
1320 [\\/$]* | ?:[\\/]* ) continue;;
1321 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1322 esac
1323 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1324 { (exit 1); exit 1; }; }
1325 done
1326
1327 # There might be people who depend on the old broken behavior: `$host'
1328 # used to hold the argument of --host etc.
1329 # FIXME: To remove some day.
1330 build=$build_alias
1331 host=$host_alias
1332 target=$target_alias
1333
1334 # FIXME: To remove some day.
1335 if test "x$host_alias" != x; then
1336 if test "x$build_alias" = x; then
1337 cross_compiling=maybe
1338 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1339 If a cross compiler is detected then cross compile mode will be used." >&2
1340 elif test "x$build_alias" != "x$host_alias"; then
1341 cross_compiling=yes
1342 fi
1343 fi
1344
1345 ac_tool_prefix=
1346 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1347
1348 test "$silent" = yes && exec 6>/dev/null
1349
1350
1351 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1352 ac_ls_di=`ls -di .` &&
1353 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1354 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1355 { (exit 1); exit 1; }; }
1356 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1357 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1358 { (exit 1); exit 1; }; }
1359
1360
1361 # Find the source files, if location was not specified.
1362 if test -z "$srcdir"; then
1363 ac_srcdir_defaulted=yes
1364 # Try the directory containing this script, then the parent directory.
1365 ac_confdir=`$as_dirname -- "$as_myself" ||
1366 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1367 X"$as_myself" : 'X\(//\)[^/]' \| \
1368 X"$as_myself" : 'X\(//\)$' \| \
1369 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1370 $as_echo X"$as_myself" |
1371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1372 s//\1/
1373 q
1374 }
1375 /^X\(\/\/\)[^/].*/{
1376 s//\1/
1377 q
1378 }
1379 /^X\(\/\/\)$/{
1380 s//\1/
1381 q
1382 }
1383 /^X\(\/\).*/{
1384 s//\1/
1385 q
1386 }
1387 s/.*/./; q'`
1388 srcdir=$ac_confdir
1389 if test ! -r "$srcdir/$ac_unique_file"; then
1390 srcdir=..
1391 fi
1392 else
1393 ac_srcdir_defaulted=no
1394 fi
1395 if test ! -r "$srcdir/$ac_unique_file"; then
1396 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1397 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1398 { (exit 1); exit 1; }; }
1399 fi
1400 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1401 ac_abs_confdir=`(
1402 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1403 { (exit 1); exit 1; }; }
1404 pwd)`
1405 # When building in place, set srcdir=.
1406 if test "$ac_abs_confdir" = "$ac_pwd"; then
1407 srcdir=.
1408 fi
1409 # Remove unnecessary trailing slashes from srcdir.
1410 # Double slashes in file names in object file debugging info
1411 # mess up M-x gdb in Emacs.
1412 case $srcdir in
1413 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1414 esac
1415 for ac_var in $ac_precious_vars; do
1416 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1417 eval ac_env_${ac_var}_value=\$${ac_var}
1418 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1419 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1420 done
1421
1422 #
1423 # Report the --help message.
1424 #
1425 if test "$ac_init_help" = "long"; then
1426 # Omit some internal or obsolete options to make the list less imposing.
1427 # This message is too long to be a string in the A/UX 3.1 sh.
1428 cat <<_ACEOF
1429 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1430
1431 Usage: $0 [OPTION]... [VAR=VALUE]...
1432
1433 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1434 VAR=VALUE. See below for descriptions of some of the useful variables.
1435
1436 Defaults for the options are specified in brackets.
1437
1438 Configuration:
1439 -h, --help display this help and exit
1440 --help=short display options specific to this package
1441 --help=recursive display the short help of all the included packages
1442 -V, --version display version information and exit
1443 -q, --quiet, --silent do not print \`checking...' messages
1444 --cache-file=FILE cache test results in FILE [disabled]
1445 -C, --config-cache alias for \`--cache-file=config.cache'
1446 -n, --no-create do not create output files
1447 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1448
1449 Installation directories:
1450 --prefix=PREFIX install architecture-independent files in PREFIX
1451 [$ac_default_prefix]
1452 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1453 [PREFIX]
1454
1455 By default, \`make install' will install all the files in
1456 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1457 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1458 for instance \`--prefix=\$HOME'.
1459
1460 For better control, use the options below.
1461
1462 Fine tuning of the installation directories:
1463 --bindir=DIR user executables [EPREFIX/bin]
1464 --sbindir=DIR system admin executables [EPREFIX/sbin]
1465 --libexecdir=DIR program executables [EPREFIX/libexec]
1466 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1467 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1468 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1469 --libdir=DIR object code libraries [EPREFIX/lib]
1470 --includedir=DIR C header files [PREFIX/include]
1471 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1472 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1473 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1474 --infodir=DIR info documentation [DATAROOTDIR/info]
1475 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1476 --mandir=DIR man documentation [DATAROOTDIR/man]
1477 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1478 --htmldir=DIR html documentation [DOCDIR]
1479 --dvidir=DIR dvi documentation [DOCDIR]
1480 --pdfdir=DIR pdf documentation [DOCDIR]
1481 --psdir=DIR ps documentation [DOCDIR]
1482 _ACEOF
1483
1484 cat <<\_ACEOF
1485
1486 Program names:
1487 --program-prefix=PREFIX prepend PREFIX to installed program names
1488 --program-suffix=SUFFIX append SUFFIX to installed program names
1489 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1490
1491 X features:
1492 --x-includes=DIR X include files are in DIR
1493 --x-libraries=DIR X library files are in DIR
1494
1495 System types:
1496 --build=BUILD configure for building on BUILD [guessed]
1497 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1498 _ACEOF
1499 fi
1500
1501 if test -n "$ac_init_help"; then
1502 case $ac_init_help in
1503 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1504 esac
1505 cat <<\_ACEOF
1506
1507 Optional Features:
1508 --disable-option-checking ignore unrecognized --enable/--with options
1509 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1510 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1511 --disable-ns-self-contained
1512 disable self contained build under NeXTstep
1513 --enable-asserts compile code with asserts enabled
1514 --enable-maintainer-mode
1515 enable make rules and dependencies not useful (and
1516 sometimes confusing) to the casual installer
1517 --enable-locallisppath=PATH
1518 directories Emacs should search for lisp files
1519 specific to this site
1520 --enable-checking[=LIST]
1521 enable expensive run-time checks. With LIST, enable
1522 only specific categories of checks. Categories are:
1523 all,yes,no. Flags are: stringbytes, stringoverrun,
1524 stringfreelist, xmallocoverrun, conslist
1525 --enable-profiling build emacs with profiling support. This might not
1526 work on all platforms
1527 --enable-autodepend automatically generate dependencies to .h-files.
1528 Requires GNU Make and Gcc. Enabled if GNU Make and
1529 Gcc is found
1530 --disable-largefile omit support for large files
1531
1532 Optional Packages:
1533 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1534 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1535 --without-pop don't support POP mail retrieval with movemail
1536 --with-kerberos support Kerberos-authenticated POP
1537 --with-kerberos5 support Kerberos version 5 authenticated POP
1538 --with-hesiod support Hesiod to get the POP server host
1539 --with-mmdf support MMDF mailboxes
1540 --with-mail-unlink unlink, rather than empty, mail spool after reading
1541 --with-mailhost=HOSTNAME
1542 string giving default POP mail host
1543 --without-sound don't compile with sound support
1544 --without-sync-input process async input synchronously
1545 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, lucid or
1546 athena, motif, no)
1547 --without-xpm don't compile with XPM image support
1548 --without-jpeg don't compile with JPEG image support
1549 --without-tiff don't compile with TIFF image support
1550 --without-gif don't compile with GIF image support
1551 --without-png don't compile with PNG image support
1552 --without-rsvg don't compile with SVG image support
1553 --without-xft don't use XFT for anti aliased fonts
1554 --without-libotf don't use libotf for OpenType font support
1555 --without-m17n-flt don't use m17n-flt for text shaping
1556 --without-toolkit-scroll-bars
1557 don't use Motif or Xaw3d scroll bars
1558 --without-xaw3d don't use Xaw3d
1559 --without-xim don't use X11 XIM
1560 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1561 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1562 console
1563 --without-dbus don't compile with D-Bus support
1564 --without-gconf don't compile with GConf support
1565 --without-selinux don't compile with SELinux support
1566 --without-makeinfo don't require makeinfo for building manuals
1567
1568 --with-pkg-config-prog=PATH
1569 path to pkg-config for finding GTK and librsvg
1570 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1571 /usr/lib, or /usr/lib64 on some platforms.
1572 --with-gnustep-conf=PATH
1573 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1574 or /etc/GNUstep/GNUstep.conf
1575 --with-x use the X Window System
1576
1577 Some influential environment variables:
1578 CC C compiler command
1579 CFLAGS C compiler flags
1580 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1581 nonstandard directory <lib dir>
1582 LIBS libraries to pass to the linker, e.g. -l<library>
1583 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1584 you have headers in a nonstandard directory <include dir>
1585 CPP C preprocessor
1586 XMKMF Path to xmkmf, Makefile generator for X Window System
1587
1588 Use these variables to override the choices made by `configure' or to help
1589 it to find libraries and programs with nonstandard names/locations.
1590
1591 _ACEOF
1592 ac_status=$?
1593 fi
1594
1595 if test "$ac_init_help" = "recursive"; then
1596 # If there are subdirs, report their specific --help.
1597 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1598 test -d "$ac_dir" ||
1599 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1600 continue
1601 ac_builddir=.
1602
1603 case "$ac_dir" in
1604 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1605 *)
1606 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1607 # A ".." for each directory in $ac_dir_suffix.
1608 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1609 case $ac_top_builddir_sub in
1610 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1612 esac ;;
1613 esac
1614 ac_abs_top_builddir=$ac_pwd
1615 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1616 # for backward compatibility:
1617 ac_top_builddir=$ac_top_build_prefix
1618
1619 case $srcdir in
1620 .) # We are building in place.
1621 ac_srcdir=.
1622 ac_top_srcdir=$ac_top_builddir_sub
1623 ac_abs_top_srcdir=$ac_pwd ;;
1624 [\\/]* | ?:[\\/]* ) # Absolute name.
1625 ac_srcdir=$srcdir$ac_dir_suffix;
1626 ac_top_srcdir=$srcdir
1627 ac_abs_top_srcdir=$srcdir ;;
1628 *) # Relative name.
1629 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1630 ac_top_srcdir=$ac_top_build_prefix$srcdir
1631 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1632 esac
1633 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1634
1635 cd "$ac_dir" || { ac_status=$?; continue; }
1636 # Check for guested configure.
1637 if test -f "$ac_srcdir/configure.gnu"; then
1638 echo &&
1639 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1640 elif test -f "$ac_srcdir/configure"; then
1641 echo &&
1642 $SHELL "$ac_srcdir/configure" --help=recursive
1643 else
1644 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1645 fi || ac_status=$?
1646 cd "$ac_pwd" || { ac_status=$?; break; }
1647 done
1648 fi
1649
1650 test -n "$ac_init_help" && exit $ac_status
1651 if $ac_init_version; then
1652 cat <<\_ACEOF
1653 emacs configure 24.0.50
1654 generated by GNU Autoconf 2.62
1655
1656 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1657 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1658 This configure script is free software; the Free Software Foundation
1659 gives unlimited permission to copy, distribute and modify it.
1660 _ACEOF
1661 exit
1662 fi
1663 cat >config.log <<_ACEOF
1664 This file contains any messages produced by compilers while
1665 running configure, to aid debugging if configure makes a mistake.
1666
1667 It was created by emacs $as_me 24.0.50, which was
1668 generated by GNU Autoconf 2.62. Invocation command line was
1669
1670 $ $0 $@
1671
1672 _ACEOF
1673 exec 5>>config.log
1674 {
1675 cat <<_ASUNAME
1676 ## --------- ##
1677 ## Platform. ##
1678 ## --------- ##
1679
1680 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1681 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1682 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1683 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1684 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1685
1686 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1687 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1688
1689 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1690 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1691 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1692 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1693 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1694 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1695 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1696
1697 _ASUNAME
1698
1699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700 for as_dir in $PATH
1701 do
1702 IFS=$as_save_IFS
1703 test -z "$as_dir" && as_dir=.
1704 $as_echo "PATH: $as_dir"
1705 done
1706 IFS=$as_save_IFS
1707
1708 } >&5
1709
1710 cat >&5 <<_ACEOF
1711
1712
1713 ## ----------- ##
1714 ## Core tests. ##
1715 ## ----------- ##
1716
1717 _ACEOF
1718
1719
1720 # Keep a trace of the command line.
1721 # Strip out --no-create and --no-recursion so they do not pile up.
1722 # Strip out --silent because we don't want to record it for future runs.
1723 # Also quote any args containing shell meta-characters.
1724 # Make two passes to allow for proper duplicate-argument suppression.
1725 ac_configure_args=
1726 ac_configure_args0=
1727 ac_configure_args1=
1728 ac_must_keep_next=false
1729 for ac_pass in 1 2
1730 do
1731 for ac_arg
1732 do
1733 case $ac_arg in
1734 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1735 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1736 | -silent | --silent | --silen | --sile | --sil)
1737 continue ;;
1738 *\'*)
1739 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1740 esac
1741 case $ac_pass in
1742 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1743 2)
1744 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1745 if test $ac_must_keep_next = true; then
1746 ac_must_keep_next=false # Got value, back to normal.
1747 else
1748 case $ac_arg in
1749 *=* | --config-cache | -C | -disable-* | --disable-* \
1750 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1751 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1752 | -with-* | --with-* | -without-* | --without-* | --x)
1753 case "$ac_configure_args0 " in
1754 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1755 esac
1756 ;;
1757 -* ) ac_must_keep_next=true ;;
1758 esac
1759 fi
1760 ac_configure_args="$ac_configure_args '$ac_arg'"
1761 ;;
1762 esac
1763 done
1764 done
1765 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1766 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1767
1768 # When interrupted or exit'd, cleanup temporary files, and complete
1769 # config.log. We remove comments because anyway the quotes in there
1770 # would cause problems or look ugly.
1771 # WARNING: Use '\'' to represent an apostrophe within the trap.
1772 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1773 trap 'exit_status=$?
1774 # Save into config.log some information that might help in debugging.
1775 {
1776 echo
1777
1778 cat <<\_ASBOX
1779 ## ---------------- ##
1780 ## Cache variables. ##
1781 ## ---------------- ##
1782 _ASBOX
1783 echo
1784 # The following way of writing the cache mishandles newlines in values,
1785 (
1786 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1787 eval ac_val=\$$ac_var
1788 case $ac_val in #(
1789 *${as_nl}*)
1790 case $ac_var in #(
1791 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1792 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1793 esac
1794 case $ac_var in #(
1795 _ | IFS | as_nl) ;; #(
1796 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1797 *) $as_unset $ac_var ;;
1798 esac ;;
1799 esac
1800 done
1801 (set) 2>&1 |
1802 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1803 *${as_nl}ac_space=\ *)
1804 sed -n \
1805 "s/'\''/'\''\\\\'\'''\''/g;
1806 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1807 ;; #(
1808 *)
1809 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1810 ;;
1811 esac |
1812 sort
1813 )
1814 echo
1815
1816 cat <<\_ASBOX
1817 ## ----------------- ##
1818 ## Output variables. ##
1819 ## ----------------- ##
1820 _ASBOX
1821 echo
1822 for ac_var in $ac_subst_vars
1823 do
1824 eval ac_val=\$$ac_var
1825 case $ac_val in
1826 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1827 esac
1828 $as_echo "$ac_var='\''$ac_val'\''"
1829 done | sort
1830 echo
1831
1832 if test -n "$ac_subst_files"; then
1833 cat <<\_ASBOX
1834 ## ------------------- ##
1835 ## File substitutions. ##
1836 ## ------------------- ##
1837 _ASBOX
1838 echo
1839 for ac_var in $ac_subst_files
1840 do
1841 eval ac_val=\$$ac_var
1842 case $ac_val in
1843 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1844 esac
1845 $as_echo "$ac_var='\''$ac_val'\''"
1846 done | sort
1847 echo
1848 fi
1849
1850 if test -s confdefs.h; then
1851 cat <<\_ASBOX
1852 ## ----------- ##
1853 ## confdefs.h. ##
1854 ## ----------- ##
1855 _ASBOX
1856 echo
1857 cat confdefs.h
1858 echo
1859 fi
1860 test "$ac_signal" != 0 &&
1861 $as_echo "$as_me: caught signal $ac_signal"
1862 $as_echo "$as_me: exit $exit_status"
1863 } >&5
1864 rm -f core *.core core.conftest.* &&
1865 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1866 exit $exit_status
1867 ' 0
1868 for ac_signal in 1 2 13 15; do
1869 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1870 done
1871 ac_signal=0
1872
1873 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1874 rm -f -r conftest* confdefs.h
1875
1876 # Predefined preprocessor variables.
1877
1878 cat >>confdefs.h <<_ACEOF
1879 #define PACKAGE_NAME "$PACKAGE_NAME"
1880 _ACEOF
1881
1882
1883 cat >>confdefs.h <<_ACEOF
1884 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1885 _ACEOF
1886
1887
1888 cat >>confdefs.h <<_ACEOF
1889 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1890 _ACEOF
1891
1892
1893 cat >>confdefs.h <<_ACEOF
1894 #define PACKAGE_STRING "$PACKAGE_STRING"
1895 _ACEOF
1896
1897
1898 cat >>confdefs.h <<_ACEOF
1899 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1900 _ACEOF
1901
1902
1903 # Let the site file select an alternate cache file if it wants to.
1904 # Prefer an explicitly selected file to automatically selected ones.
1905 ac_site_file1=NONE
1906 ac_site_file2=NONE
1907 if test -n "$CONFIG_SITE"; then
1908 ac_site_file1=$CONFIG_SITE
1909 elif test "x$prefix" != xNONE; then
1910 ac_site_file1=$prefix/share/config.site
1911 ac_site_file2=$prefix/etc/config.site
1912 else
1913 ac_site_file1=$ac_default_prefix/share/config.site
1914 ac_site_file2=$ac_default_prefix/etc/config.site
1915 fi
1916 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1917 do
1918 test "x$ac_site_file" = xNONE && continue
1919 if test -r "$ac_site_file"; then
1920 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1921 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1922 sed 's/^/| /' "$ac_site_file" >&5
1923 . "$ac_site_file"
1924 fi
1925 done
1926
1927 if test -r "$cache_file"; then
1928 # Some versions of bash will fail to source /dev/null (special
1929 # files actually), so we avoid doing that.
1930 if test -f "$cache_file"; then
1931 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1932 $as_echo "$as_me: loading cache $cache_file" >&6;}
1933 case $cache_file in
1934 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1935 *) . "./$cache_file";;
1936 esac
1937 fi
1938 else
1939 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1940 $as_echo "$as_me: creating cache $cache_file" >&6;}
1941 >$cache_file
1942 fi
1943
1944 ac_header_list="$ac_header_list sys/time.h"
1945 ac_header_list="$ac_header_list unistd.h"
1946 ac_func_list="$ac_func_list alarm"
1947 # Check that the precious variables saved in the cache have kept the same
1948 # value.
1949 ac_cache_corrupted=false
1950 for ac_var in $ac_precious_vars; do
1951 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1952 eval ac_new_set=\$ac_env_${ac_var}_set
1953 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1954 eval ac_new_val=\$ac_env_${ac_var}_value
1955 case $ac_old_set,$ac_new_set in
1956 set,)
1957 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1958 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1959 ac_cache_corrupted=: ;;
1960 ,set)
1961 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1962 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1963 ac_cache_corrupted=: ;;
1964 ,);;
1965 *)
1966 if test "x$ac_old_val" != "x$ac_new_val"; then
1967 # differences in whitespace do not lead to failure.
1968 ac_old_val_w=`echo x $ac_old_val`
1969 ac_new_val_w=`echo x $ac_new_val`
1970 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1971 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1972 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1973 ac_cache_corrupted=:
1974 else
1975 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1976 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1977 eval $ac_var=\$ac_old_val
1978 fi
1979 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1980 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1981 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1982 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1983 fi;;
1984 esac
1985 # Pass precious variables to config.status.
1986 if test "$ac_new_set" = set; then
1987 case $ac_new_val in
1988 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1989 *) ac_arg=$ac_var=$ac_new_val ;;
1990 esac
1991 case " $ac_configure_args " in
1992 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1993 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1994 esac
1995 fi
1996 done
1997 if $ac_cache_corrupted; then
1998 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1999 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2000 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2001 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2002 { (exit 1); exit 1; }; }
2003 fi
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029 ac_ext=c
2030 ac_cpp='$CPP $CPPFLAGS'
2031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2034
2035
2036 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2037
2038
2039
2040 test "$program_prefix" != NONE &&
2041 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2042 # Use a double $ so make ignores it.
2043 test "$program_suffix" != NONE &&
2044 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2045 # Double any \ or $.
2046 # By default was `s,x,x', remove it if useless.
2047 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2048 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2049
2050
2051 lispdir='${datadir}/emacs/${version}/lisp'
2052 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2053 '${datadir}/emacs/site-lisp'
2054 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2055 etcdir='${datadir}/emacs/${version}/etc'
2056 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2057 docdir='${datadir}/emacs/${version}/etc'
2058 gamedir='${localstatedir}/games/emacs'
2059
2060 gameuser=games
2061
2062
2063
2064
2065 # Check whether --with-pop was given.
2066 if test "${with_pop+set}" = set; then
2067 withval=$with_pop;
2068 else
2069 with_pop=yes
2070 fi
2071
2072 if test "$with_pop" = yes; then
2073 cat >>confdefs.h <<\_ACEOF
2074 #define MAIL_USE_POP 1
2075 _ACEOF
2076
2077 fi
2078
2079
2080
2081 # Check whether --with-kerberos was given.
2082 if test "${with_kerberos+set}" = set; then
2083 withval=$with_kerberos;
2084 else
2085 with_kerberos=no
2086 fi
2087
2088 if test "$with_kerberos" != no; then
2089 cat >>confdefs.h <<\_ACEOF
2090 #define KERBEROS 1
2091 _ACEOF
2092
2093 fi
2094
2095
2096
2097 # Check whether --with-kerberos5 was given.
2098 if test "${with_kerberos5+set}" = set; then
2099 withval=$with_kerberos5;
2100 else
2101 with_kerberos5=no
2102 fi
2103
2104 if test "${with_kerberos5}" != no; then
2105 if test "${with_kerberos}" = no; then
2106 with_kerberos=yes
2107 cat >>confdefs.h <<\_ACEOF
2108 #define KERBEROS 1
2109 _ACEOF
2110
2111 fi
2112
2113 cat >>confdefs.h <<\_ACEOF
2114 #define KERBEROS5 1
2115 _ACEOF
2116
2117 fi
2118
2119
2120 # Check whether --with-hesiod was given.
2121 if test "${with_hesiod+set}" = set; then
2122 withval=$with_hesiod;
2123 else
2124 with_hesiod=no
2125 fi
2126
2127 if test "$with_hesiod" != no; then
2128
2129 cat >>confdefs.h <<\_ACEOF
2130 #define HESIOD 1
2131 _ACEOF
2132
2133 fi
2134
2135
2136 # Check whether --with-mmdf was given.
2137 if test "${with_mmdf+set}" = set; then
2138 withval=$with_mmdf;
2139 else
2140 with_mmdf=no
2141 fi
2142
2143 if test "$with_mmdf" != no; then
2144
2145 cat >>confdefs.h <<\_ACEOF
2146 #define MAIL_USE_MMDF 1
2147 _ACEOF
2148
2149 fi
2150
2151
2152 # Check whether --with-mail-unlink was given.
2153 if test "${with_mail_unlink+set}" = set; then
2154 withval=$with_mail_unlink;
2155 else
2156 with_mail_unlink=no
2157 fi
2158
2159 if test "$with_mail_unlink" != no; then
2160
2161 cat >>confdefs.h <<\_ACEOF
2162 #define MAIL_UNLINK_SPOOL 1
2163 _ACEOF
2164
2165 fi
2166
2167
2168 # Check whether --with-mailhost was given.
2169 if test "${with_mailhost+set}" = set; then
2170 withval=$with_mailhost;
2171 cat >>confdefs.h <<_ACEOF
2172 #define MAILHOST "$withval"
2173 _ACEOF
2174
2175 fi
2176
2177
2178
2179 # Check whether --with-sound was given.
2180 if test "${with_sound+set}" = set; then
2181 withval=$with_sound;
2182 else
2183 with_sound=yes
2184 fi
2185
2186
2187
2188 # Check whether --with-sync-input was given.
2189 if test "${with_sync_input+set}" = set; then
2190 withval=$with_sync_input;
2191 else
2192 with_sync_input=yes
2193 fi
2194
2195 if test "$with_sync_input" = yes; then
2196
2197 cat >>confdefs.h <<\_ACEOF
2198 #define SYNC_INPUT 1
2199 _ACEOF
2200
2201 fi
2202
2203
2204 # Check whether --with-x-toolkit was given.
2205 if test "${with_x_toolkit+set}" = set; then
2206 withval=$with_x_toolkit; case "${withval}" in
2207 y | ye | yes ) val=gtk ;;
2208 n | no ) val=no ;;
2209 l | lu | luc | luci | lucid ) val=lucid ;;
2210 a | at | ath | athe | athen | athena ) val=athena ;;
2211 m | mo | mot | moti | motif ) val=motif ;;
2212 g | gt | gtk ) val=gtk ;;
2213 * )
2214 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2215 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2216 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2217 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2218 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2219 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2220 { (exit 1); exit 1; }; }
2221 ;;
2222 esac
2223 with_x_toolkit=$val
2224
2225 fi
2226
2227
2228
2229 # Check whether --with-xpm was given.
2230 if test "${with_xpm+set}" = set; then
2231 withval=$with_xpm;
2232 else
2233 with_xpm=yes
2234 fi
2235
2236
2237 # Check whether --with-jpeg was given.
2238 if test "${with_jpeg+set}" = set; then
2239 withval=$with_jpeg;
2240 else
2241 with_jpeg=yes
2242 fi
2243
2244
2245 # Check whether --with-tiff was given.
2246 if test "${with_tiff+set}" = set; then
2247 withval=$with_tiff;
2248 else
2249 with_tiff=yes
2250 fi
2251
2252
2253 # Check whether --with-gif was given.
2254 if test "${with_gif+set}" = set; then
2255 withval=$with_gif;
2256 else
2257 with_gif=yes
2258 fi
2259
2260
2261 # Check whether --with-png was given.
2262 if test "${with_png+set}" = set; then
2263 withval=$with_png;
2264 else
2265 with_png=yes
2266 fi
2267
2268
2269 # Check whether --with-rsvg was given.
2270 if test "${with_rsvg+set}" = set; then
2271 withval=$with_rsvg;
2272 else
2273 with_rsvg=yes
2274 fi
2275
2276
2277
2278 # Check whether --with-xft was given.
2279 if test "${with_xft+set}" = set; then
2280 withval=$with_xft;
2281 else
2282 with_xft=yes
2283 fi
2284
2285
2286 # Check whether --with-libotf was given.
2287 if test "${with_libotf+set}" = set; then
2288 withval=$with_libotf;
2289 else
2290 with_libotf=yes
2291 fi
2292
2293
2294 # Check whether --with-m17n-flt was given.
2295 if test "${with_m17n_flt+set}" = set; then
2296 withval=$with_m17n_flt;
2297 else
2298 with_m17n_flt=yes
2299 fi
2300
2301
2302
2303 # Check whether --with-toolkit-scroll-bars was given.
2304 if test "${with_toolkit_scroll_bars+set}" = set; then
2305 withval=$with_toolkit_scroll_bars;
2306 else
2307 with_toolkit_scroll_bars=yes
2308 fi
2309
2310
2311 # Check whether --with-xaw3d was given.
2312 if test "${with_xaw3d+set}" = set; then
2313 withval=$with_xaw3d;
2314 else
2315 with_xaw3d=yes
2316 fi
2317
2318
2319 # Check whether --with-xim was given.
2320 if test "${with_xim+set}" = set; then
2321 withval=$with_xim;
2322 else
2323 with_xim=yes
2324 fi
2325
2326
2327 # Check whether --with-ns was given.
2328 if test "${with_ns+set}" = set; then
2329 withval=$with_ns;
2330 else
2331 with_ns=no
2332 fi
2333
2334
2335
2336 # Check whether --with-gpm was given.
2337 if test "${with_gpm+set}" = set; then
2338 withval=$with_gpm;
2339 else
2340 with_gpm=yes
2341 fi
2342
2343
2344 # Check whether --with-dbus was given.
2345 if test "${with_dbus+set}" = set; then
2346 withval=$with_dbus;
2347 else
2348 with_dbus=yes
2349 fi
2350
2351
2352 # Check whether --with-gconf was given.
2353 if test "${with_gconf+set}" = set; then
2354 withval=$with_gconf;
2355 else
2356 with_gconf=yes
2357 fi
2358
2359
2360 # Check whether --with-selinux was given.
2361 if test "${with_selinux+set}" = set; then
2362 withval=$with_selinux;
2363 else
2364 with_selinux=yes
2365 fi
2366
2367
2368 ## For the times when you want to build Emacs but don't have
2369 ## a suitable makeinfo, and can live without the manuals.
2370
2371 # Check whether --with-makeinfo was given.
2372 if test "${with_makeinfo+set}" = set; then
2373 withval=$with_makeinfo;
2374 else
2375 with_makeinfo=yes
2376 fi
2377
2378
2379
2380 # Check whether --with-gtk was given.
2381 if test "${with_gtk+set}" = set; then
2382 withval=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2383 specify a toolkit." >&5
2384 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2385 specify a toolkit." >&2;}
2386 { (exit 1); exit 1; }; }
2387 fi
2388
2389
2390
2391 # Check whether --with-gcc was given.
2392 if test "${with_gcc+set}" = set; then
2393 withval=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2394 variable to specify a compiler." >&5
2395 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2396 variable to specify a compiler." >&2;}
2397 { (exit 1); exit 1; }; }
2398 fi
2399
2400
2401
2402 # Check whether --with-pkg-config-prog was given.
2403 if test "${with_pkg_config_prog+set}" = set; then
2404 withval=$with_pkg_config_prog;
2405 fi
2406
2407 if test "X${with_pkg_config_prog}" != X; then
2408 if test "${with_pkg_config_prog}" != yes; then
2409 PKG_CONFIG="${with_pkg_config_prog}"
2410 fi
2411 fi
2412
2413 CRT_DIR=
2414
2415 # Check whether --with-crt-dir was given.
2416 if test "${with_crt_dir+set}" = set; then
2417 withval=$with_crt_dir;
2418 fi
2419
2420 CRT_DIR="${with_crt_dir}"
2421
2422
2423 # Check whether --with-gnustep-conf was given.
2424 if test "${with_gnustep_conf+set}" = set; then
2425 withval=$with_gnustep_conf;
2426 fi
2427
2428 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2429 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2430 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2431 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2432
2433 # Check whether --enable-ns-self-contained was given.
2434 if test "${enable_ns_self_contained+set}" = set; then
2435 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2436 else
2437 EN_NS_SELF_CONTAINED=yes
2438 fi
2439
2440
2441 # Check whether --enable-asserts was given.
2442 if test "${enable_asserts+set}" = set; then
2443 enableval=$enable_asserts; USE_XASSERTS=$enableval
2444 else
2445 USE_XASSERTS=no
2446 fi
2447
2448
2449 # Check whether --enable-maintainer-mode was given.
2450 if test "${enable_maintainer_mode+set}" = set; then
2451 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2452 else
2453 USE_MAINTAINER_MODE=no
2454 fi
2455
2456 if test $USE_MAINTAINER_MODE = yes; then
2457 MAINT=
2458 else
2459 MAINT=#
2460 fi
2461
2462
2463 # Check whether --enable-locallisppath was given.
2464 if test "${enable_locallisppath+set}" = set; then
2465 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2466 locallisppath=
2467 elif test "${enableval}" != "yes"; then
2468 locallisppath=${enableval}
2469 fi
2470 fi
2471
2472
2473 # Check whether --enable-checking was given.
2474 if test "${enable_checking+set}" = set; then
2475 enableval=$enable_checking; ac_checking_flags="${enableval}"
2476 fi
2477
2478 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2479 for check in $ac_checking_flags
2480 do
2481 case $check in
2482 # these set all the flags to specific states
2483 yes) ac_enable_checking=1 ;;
2484 no) ac_enable_checking= ;
2485 ac_gc_check_stringbytes= ;
2486 ac_gc_check_string_overrun= ;
2487 ac_gc_check_string_free_list= ;
2488 ac_xmalloc_overrun= ;
2489 ac_gc_check_cons_list= ;;
2490 all) ac_enable_checking=1 ;
2491 ac_gc_check_stringbytes=1 ;
2492 ac_gc_check_string_overrun=1 ;
2493 ac_gc_check_string_free_list=1 ;
2494 ac_xmalloc_overrun=1 ;
2495 ac_gc_check_cons_list=1 ;;
2496 # these enable particular checks
2497 stringbytes) ac_gc_check_stringbytes=1 ;;
2498 stringoverrun) ac_gc_check_string_overrun=1 ;;
2499 stringfreelist) ac_gc_check_string_free_list=1 ;;
2500 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2501 conslist) ac_gc_check_cons_list=1 ;;
2502 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2503 $as_echo "$as_me: error: unknown check category $check" >&2;}
2504 { (exit 1); exit 1; }; } ;;
2505 esac
2506 done
2507 IFS="$ac_save_IFS"
2508
2509 if test x$ac_enable_checking != x ; then
2510
2511 cat >>confdefs.h <<\_ACEOF
2512 #define ENABLE_CHECKING 1
2513 _ACEOF
2514
2515 fi
2516 if test x$ac_gc_check_stringbytes != x ; then
2517
2518 cat >>confdefs.h <<\_ACEOF
2519 #define GC_CHECK_STRING_BYTES 1
2520 _ACEOF
2521
2522 fi
2523 if test x$ac_gc_check_stringoverrun != x ; then
2524
2525 cat >>confdefs.h <<\_ACEOF
2526 #define GC_CHECK_STRING_OVERRUN 1
2527 _ACEOF
2528
2529 fi
2530 if test x$ac_gc_check_string_free_list != x ; then
2531
2532 cat >>confdefs.h <<\_ACEOF
2533 #define GC_CHECK_STRING_FREE_LIST 1
2534 _ACEOF
2535
2536 fi
2537 if test x$ac_xmalloc_overrun != x ; then
2538
2539 cat >>confdefs.h <<\_ACEOF
2540 #define XMALLOC_OVERRUN_CHECK 1
2541 _ACEOF
2542
2543 fi
2544 if test x$ac_gc_check_cons_list != x ; then
2545
2546 cat >>confdefs.h <<\_ACEOF
2547 #define GC_CHECK_CONS_LIST 1
2548 _ACEOF
2549
2550 fi
2551
2552 # Check whether --enable-profiling was given.
2553 if test "${enable_profiling+set}" = set; then
2554 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2555 fi
2556
2557 if test x$ac_enable_profiling != x ; then
2558 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2559 PROFILING_LDFLAGS="-pg"
2560 else
2561 PROFILING_CFLAGS=
2562 PROFILING_LDFLAGS=
2563 fi
2564
2565 # Check whether --enable-autodepend was given.
2566 if test "${enable_autodepend+set}" = set; then
2567 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2568 else
2569 ac_enable_autodepend=yes
2570 fi
2571
2572
2573 #### Make srcdir absolute, if it isn't already. It's important to
2574 #### avoid running the path through pwd unnecessarily, since pwd can
2575 #### give you automounter prefixes, which can go away. We do all this
2576 #### so Emacs can find its files when run uninstalled.
2577 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2578 unset CDPATH
2579 case "${srcdir}" in
2580 /* ) ;;
2581 . )
2582 ## We may be able to use the $PWD environment variable to make this
2583 ## absolute. But sometimes PWD is inaccurate.
2584 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2585 ## but that tested only for a well-formed and valid PWD,
2586 ## it did not object when PWD was well-formed and valid but just wrong.
2587 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2588 then
2589 srcdir="$PWD"
2590 else
2591 srcdir="`(cd ${srcdir}; pwd)`"
2592 fi
2593 ;;
2594 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2595 esac
2596
2597 #### Check if the source directory already has a configured system in it.
2598 if test `pwd` != `(cd ${srcdir} && pwd)` \
2599 && test -f "${srcdir}/src/config.h" ; then
2600 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2601 as a build directory right now; it has been configured in its own
2602 right. To configure in another directory as well, you MUST
2603 use GNU make. If you do not have GNU make, then you must
2604 now do \`make distclean' in ${srcdir},
2605 and then run $0 again." >&5
2606 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2607 as a build directory right now; it has been configured in its own
2608 right. To configure in another directory as well, you MUST
2609 use GNU make. If you do not have GNU make, then you must
2610 now do \`make distclean' in ${srcdir},
2611 and then run $0 again." >&2;}
2612 fi
2613
2614 #### Given the configuration name, set machfile and opsysfile to the
2615 #### names of the m/*.h and s/*.h files we should use.
2616
2617 ### Canonicalize the configuration name.
2618
2619 ac_aux_dir=
2620 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2621 if test -f "$ac_dir/install-sh"; then
2622 ac_aux_dir=$ac_dir
2623 ac_install_sh="$ac_aux_dir/install-sh -c"
2624 break
2625 elif test -f "$ac_dir/install.sh"; then
2626 ac_aux_dir=$ac_dir
2627 ac_install_sh="$ac_aux_dir/install.sh -c"
2628 break
2629 elif test -f "$ac_dir/shtool"; then
2630 ac_aux_dir=$ac_dir
2631 ac_install_sh="$ac_aux_dir/shtool install -c"
2632 break
2633 fi
2634 done
2635 if test -z "$ac_aux_dir"; then
2636 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2637 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2638 { (exit 1); exit 1; }; }
2639 fi
2640
2641 # These three variables are undocumented and unsupported,
2642 # and are intended to be withdrawn in a future Autoconf release.
2643 # They can cause serious problems if a builder's source tree is in a directory
2644 # whose full name contains unusual characters.
2645 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2646 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2647 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2648
2649
2650 # Make sure we can run config.sub.
2651 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2652 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2653 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2654 { (exit 1); exit 1; }; }
2655
2656 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2657 $as_echo_n "checking build system type... " >&6; }
2658 if test "${ac_cv_build+set}" = set; then
2659 $as_echo_n "(cached) " >&6
2660 else
2661 ac_build_alias=$build_alias
2662 test "x$ac_build_alias" = x &&
2663 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2664 test "x$ac_build_alias" = x &&
2665 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2666 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2667 { (exit 1); exit 1; }; }
2668 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2669 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2670 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2671 { (exit 1); exit 1; }; }
2672
2673 fi
2674 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2675 $as_echo "$ac_cv_build" >&6; }
2676 case $ac_cv_build in
2677 *-*-*) ;;
2678 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2679 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2680 { (exit 1); exit 1; }; };;
2681 esac
2682 build=$ac_cv_build
2683 ac_save_IFS=$IFS; IFS='-'
2684 set x $ac_cv_build
2685 shift
2686 build_cpu=$1
2687 build_vendor=$2
2688 shift; shift
2689 # Remember, the first character of IFS is used to create $*,
2690 # except with old shells:
2691 build_os=$*
2692 IFS=$ac_save_IFS
2693 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2694
2695
2696 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2697 $as_echo_n "checking host system type... " >&6; }
2698 if test "${ac_cv_host+set}" = set; then
2699 $as_echo_n "(cached) " >&6
2700 else
2701 if test "x$host_alias" = x; then
2702 ac_cv_host=$ac_cv_build
2703 else
2704 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2705 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2706 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2707 { (exit 1); exit 1; }; }
2708 fi
2709
2710 fi
2711 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2712 $as_echo "$ac_cv_host" >&6; }
2713 case $ac_cv_host in
2714 *-*-*) ;;
2715 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2716 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2717 { (exit 1); exit 1; }; };;
2718 esac
2719 host=$ac_cv_host
2720 ac_save_IFS=$IFS; IFS='-'
2721 set x $ac_cv_host
2722 shift
2723 host_cpu=$1
2724 host_vendor=$2
2725 shift; shift
2726 # Remember, the first character of IFS is used to create $*,
2727 # except with old shells:
2728 host_os=$*
2729 IFS=$ac_save_IFS
2730 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2731
2732
2733 canonical=$host
2734 configuration=${host_alias-${build_alias-$host}}
2735
2736
2737
2738 ### If you add support for a new configuration, add code to this
2739 ### switch statement to recognize your configuration name and select
2740 ### the appropriate operating system and machine description files.
2741
2742 ### You would hope that you could choose an m/*.h file pretty much
2743 ### based on the machine portion of the configuration name, and an s-
2744 ### file based on the operating system portion. However, it turns out
2745 ### that each m/*.h file is pretty manufacturer-specific - for
2746 ### example mips.h is MIPS
2747 ### So we basically have to have a special case for each
2748 ### configuration name.
2749 ###
2750 ### As far as handling version numbers on operating systems is
2751 ### concerned, make sure things will fail in a fixable way. If
2752 ### /etc/MACHINES doesn't say anything about version numbers, be
2753 ### prepared to handle anything reasonably. If version numbers
2754 ### matter, be sure /etc/MACHINES says something about it.
2755 ###
2756 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2757 ### "System V Release 4"; he writes, "The old convention encouraged
2758 ### confusion between `system' and `release' levels'."
2759
2760 machine='' opsys='' unported=no
2761 case "${canonical}" in
2762
2763 ## FreeBSD ports
2764 *-*-freebsd* )
2765 opsys=freebsd
2766 case "${canonical}" in
2767 alpha*-*-freebsd*) machine=alpha ;;
2768 arm*-*-freebsd*) machine=arm ;;
2769 ia64-*-freebsd*) machine=ia64 ;;
2770 sparc-*-freebsd*) machine=sparc ;;
2771 sparc64-*-freebsd*) machine=sparc ;;
2772 powerpc-*-freebsd*) machine=macppc ;;
2773 i[3456]86-*-freebsd*) machine=intel386 ;;
2774 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2775 esac
2776 ;;
2777
2778 ## FreeBSD kernel + glibc based userland
2779 *-*-kfreebsd*gnu* )
2780 opsys=gnu-kfreebsd
2781 case "${canonical}" in
2782 alpha*-*-kfreebsd*) machine=alpha ;;
2783 ia64-*-kfreebsd*) machine=ia64 ;;
2784 sparc-*-kfreebsd*) machine=sparc ;;
2785 sparc64-*-kfreebsd*) machine=sparc ;;
2786 powerpc-*-kfreebsd*) machine=macppc ;;
2787 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2788 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2789 esac
2790 ;;
2791
2792 ## NetBSD ports
2793 *-*-netbsd* )
2794 opsys=netbsd
2795 case "${canonical}" in
2796 alpha*-*-netbsd*) machine=alpha ;;
2797 i[3456]86-*-netbsd*) machine=intel386 ;;
2798 mips-*-netbsd*) machine=mips ;;
2799 mipsel-*-netbsd*) machine=mips ;;
2800 mipseb-*-netbsd*) machine=mips ;;
2801 powerpc-*-netbsd*) machine=macppc ;;
2802 sparc*-*-netbsd*) machine=sparc ;;
2803 vax-*-netbsd*) machine=vax ;;
2804 arm-*-netbsd*) machine=arm ;;
2805 x86_64-*-netbsd*) machine=amdx86-64 ;;
2806 hppa-*-netbsd*) machine=hp800 ;;
2807 m68k-*-netbsd*) machine=m68k ;;
2808 esac
2809 ;;
2810
2811 ## OpenBSD ports
2812 *-*-openbsd* )
2813 opsys=openbsd
2814 case "${canonical}" in
2815 alpha*-*-openbsd*) machine=alpha ;;
2816 arm-*-openbsd*) machine=arm ;;
2817 i386-*-openbsd*) machine=intel386 ;;
2818 powerpc-*-openbsd*) machine=macppc ;;
2819 sparc*-*-openbsd*) machine=sparc ;;
2820 vax-*-openbsd*) machine=vax ;;
2821 x86_64-*-openbsd*) machine=amdx86-64 ;;
2822 hppa-*-openbsd*) machine=hp800 ;;
2823 esac
2824 ;;
2825
2826 alpha*-*-linux-gnu* )
2827 machine=alpha opsys=gnu-linux
2828 ;;
2829
2830 arm*-*-linux-gnu* )
2831 machine=arm opsys=gnu-linux
2832 ;;
2833
2834 ## Apple Darwin / Mac OS X
2835 *-apple-darwin* )
2836 case "${canonical}" in
2837 i[3456]86-* ) machine=intel386 ;;
2838 powerpc-* ) machine=macppc ;;
2839 x86_64-* ) machine=amdx86-64 ;;
2840 * ) unported=yes ;;
2841 esac
2842 opsys=darwin
2843 # Define CPP as follows to make autoconf work correctly.
2844 CPP="${CC-cc} -E -no-cpp-precomp"
2845 # Use fink packages if available.
2846 if test -d /sw/include && test -d /sw/lib; then
2847 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2848 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2849 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2850 fi
2851 ;;
2852
2853 ## HP 9000 series 700 and 800, running HP/UX
2854 hppa*-hp-hpux10.2* )
2855 machine=hp800 opsys=hpux10-20
2856 ;;
2857 hppa*-hp-hpux1[1-9]* )
2858 machine=hp800 opsys=hpux11
2859 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2860 ;;
2861
2862 hppa*-*-linux-gnu* )
2863 machine=hp800 opsys=gnu-linux
2864 ;;
2865
2866 ## IBM machines
2867 s390-*-linux-gnu* )
2868 machine=ibms390 opsys=gnu-linux
2869 ;;
2870 s390x-*-linux-gnu* )
2871 machine=ibms390x opsys=gnu-linux
2872 ;;
2873 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2874 machine=ibmrs6000 opsys=aix4-2
2875 ;;
2876 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2877 machine=ibmrs6000 opsys=aix4-2
2878 ;;
2879 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2880 machine=ibmrs6000 opsys=aix4-2
2881 ;;
2882 rs6000-ibm-aix6* | powerpc-ibm-aix6* )
2883 machine=ibmrs6000 opsys=aix4-2
2884 ;;
2885
2886 ## Macintosh PowerPC
2887 powerpc*-*-linux-gnu* )
2888 machine=macppc opsys=gnu-linux
2889 ;;
2890
2891 ## Silicon Graphics machines
2892 ## Iris 4D
2893 mips-sgi-irix6.5 )
2894 machine=iris4d opsys=irix6-5
2895 # Without defining _LANGUAGE_C, things get masked out in the headers
2896 # so that, for instance, grepping for `free' in stdlib.h fails and
2897 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2898 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2899 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2900 ;;
2901
2902 ## Suns
2903 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2904 machine=sparc opsys=gnu-linux
2905 ;;
2906
2907 *-sun-solaris* \
2908 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
2909 | x86_64-*-solaris2* | x86_64-*-sunos5*)
2910 case "${canonical}" in
2911 i[3456]86-*-* ) machine=intel386 ;;
2912 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2913 sparc* ) machine=sparc ;;
2914 * ) unported=yes ;;
2915 esac
2916 case "${canonical}" in
2917 *-sunos5.6* | *-solaris2.6* )
2918 opsys=sol2-6
2919 NON_GNU_CPP=/usr/ccs/lib/cpp
2920 RANLIB="ar -ts"
2921 ;;
2922 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
2923 opsys=sol2-6
2924 emacs_check_sunpro_c=yes
2925 NON_GNU_CPP=/usr/ccs/lib/cpp
2926 ;;
2927 *-sunos5* | *-solaris* )
2928 opsys=sol2-10
2929 emacs_check_sunpro_c=yes
2930 NON_GNU_CPP=/usr/ccs/lib/cpp
2931 ;;
2932 esac
2933 ## Watch out for a compiler that we know will not work.
2934 case "${canonical}" in
2935 *-solaris* | *-sunos5* )
2936 if [ "x$CC" = x/usr/ucb/cc ]; then
2937 ## /usr/ucb/cc doesn't work;
2938 ## we should find some other compiler that does work.
2939 unset CC
2940 fi
2941 ;;
2942 *) ;;
2943 esac
2944 ;;
2945
2946 ## IA-64
2947 ia64*-*-linux* )
2948 machine=ia64 opsys=gnu-linux
2949 ;;
2950
2951 ## Intel 386 machines where we don't care about the manufacturer
2952 i[3456]86-*-* )
2953 machine=intel386
2954 case "${canonical}" in
2955 *-cygwin ) opsys=cygwin ;;
2956 *-darwin* ) opsys=darwin
2957 CPP="${CC-cc} -E -no-cpp-precomp"
2958 ;;
2959 *-linux-gnu* ) opsys=gnu-linux ;;
2960 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2961 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2962 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2963 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2964 esac
2965 ;;
2966
2967 ## m68k Linux-based GNU system
2968 m68k-*-linux-gnu* )
2969 machine=m68k opsys=gnu-linux
2970 ;;
2971
2972 ## Mips Linux-based GNU system
2973 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
2974 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
2975 machine=mips opsys=gnu-linux
2976 ;;
2977
2978 ## AMD x86-64 Linux-based GNU system
2979 x86_64-*-linux-gnu* )
2980 machine=amdx86-64 opsys=gnu-linux
2981 ;;
2982
2983 ## Tensilica Xtensa Linux-based GNU system
2984 xtensa*-*-linux-gnu* )
2985 machine=xtensa opsys=gnu-linux
2986 ;;
2987
2988 ## SuperH Linux-based GNU system
2989 sh[34]*-*-linux-gnu* )
2990 machine=sh3 opsys=gnu-linux
2991 ;;
2992
2993 * )
2994 unported=yes
2995 ;;
2996 esac
2997
2998 ### If the code above didn't choose an operating system, just choose
2999 ### an operating system based on the configuration name. You really
3000 ### only want to use this when you have no idea what the right
3001 ### operating system is; if you know what operating systems a machine
3002 ### runs, it's cleaner to make it explicit in the case statement
3003 ### above.
3004 if test x"${opsys}" = x; then
3005 case "${canonical}" in
3006 *-gnu* ) opsys=gnu ;;
3007 * )
3008 unported=yes
3009 ;;
3010 esac
3011 fi
3012
3013
3014
3015 if test $unported = yes; then
3016 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3017 Check \`etc/MACHINES' for recognized configuration names." >&5
3018 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3019 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3020 { (exit 1); exit 1; }; }
3021 fi
3022
3023 machfile="m/${machine}.h"
3024 opsysfile="s/${opsys}.h"
3025
3026
3027 #### Choose a compiler.
3028 test -n "$CC" && cc_specified=yes
3029
3030 # Save the value of CFLAGS that the user specified.
3031 SPECIFIED_CFLAGS="$CFLAGS"
3032
3033 ac_ext=c
3034 ac_cpp='$CPP $CPPFLAGS'
3035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3038 if test -n "$ac_tool_prefix"; then
3039 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3040 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3041 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3042 $as_echo_n "checking for $ac_word... " >&6; }
3043 if test "${ac_cv_prog_CC+set}" = set; then
3044 $as_echo_n "(cached) " >&6
3045 else
3046 if test -n "$CC"; then
3047 ac_cv_prog_CC="$CC" # Let the user override the test.
3048 else
3049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050 for as_dir in $PATH
3051 do
3052 IFS=$as_save_IFS
3053 test -z "$as_dir" && as_dir=.
3054 for ac_exec_ext in '' $ac_executable_extensions; do
3055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3056 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3057 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3058 break 2
3059 fi
3060 done
3061 done
3062 IFS=$as_save_IFS
3063
3064 fi
3065 fi
3066 CC=$ac_cv_prog_CC
3067 if test -n "$CC"; then
3068 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3069 $as_echo "$CC" >&6; }
3070 else
3071 { $as_echo "$as_me:$LINENO: result: no" >&5
3072 $as_echo "no" >&6; }
3073 fi
3074
3075
3076 fi
3077 if test -z "$ac_cv_prog_CC"; then
3078 ac_ct_CC=$CC
3079 # Extract the first word of "gcc", so it can be a program name with args.
3080 set dummy gcc; ac_word=$2
3081 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3082 $as_echo_n "checking for $ac_word... " >&6; }
3083 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3084 $as_echo_n "(cached) " >&6
3085 else
3086 if test -n "$ac_ct_CC"; then
3087 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3088 else
3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 for as_dir in $PATH
3091 do
3092 IFS=$as_save_IFS
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
3095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3096 ac_cv_prog_ac_ct_CC="gcc"
3097 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 break 2
3099 fi
3100 done
3101 done
3102 IFS=$as_save_IFS
3103
3104 fi
3105 fi
3106 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3107 if test -n "$ac_ct_CC"; then
3108 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3109 $as_echo "$ac_ct_CC" >&6; }
3110 else
3111 { $as_echo "$as_me:$LINENO: result: no" >&5
3112 $as_echo "no" >&6; }
3113 fi
3114
3115 if test "x$ac_ct_CC" = x; then
3116 CC=""
3117 else
3118 case $cross_compiling:$ac_tool_warned in
3119 yes:)
3120 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3121 whose name does not start with the host triplet. If you think this
3122 configuration is useful to you, please write to autoconf@gnu.org." >&5
3123 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3124 whose name does not start with the host triplet. If you think this
3125 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3126 ac_tool_warned=yes ;;
3127 esac
3128 CC=$ac_ct_CC
3129 fi
3130 else
3131 CC="$ac_cv_prog_CC"
3132 fi
3133
3134 if test -z "$CC"; then
3135 if test -n "$ac_tool_prefix"; then
3136 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3137 set dummy ${ac_tool_prefix}cc; ac_word=$2
3138 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3139 $as_echo_n "checking for $ac_word... " >&6; }
3140 if test "${ac_cv_prog_CC+set}" = set; then
3141 $as_echo_n "(cached) " >&6
3142 else
3143 if test -n "$CC"; then
3144 ac_cv_prog_CC="$CC" # Let the user override the test.
3145 else
3146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 for as_dir in $PATH
3148 do
3149 IFS=$as_save_IFS
3150 test -z "$as_dir" && as_dir=.
3151 for ac_exec_ext in '' $ac_executable_extensions; do
3152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3153 ac_cv_prog_CC="${ac_tool_prefix}cc"
3154 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3155 break 2
3156 fi
3157 done
3158 done
3159 IFS=$as_save_IFS
3160
3161 fi
3162 fi
3163 CC=$ac_cv_prog_CC
3164 if test -n "$CC"; then
3165 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3166 $as_echo "$CC" >&6; }
3167 else
3168 { $as_echo "$as_me:$LINENO: result: no" >&5
3169 $as_echo "no" >&6; }
3170 fi
3171
3172
3173 fi
3174 fi
3175 if test -z "$CC"; then
3176 # Extract the first word of "cc", so it can be a program name with args.
3177 set dummy cc; ac_word=$2
3178 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3179 $as_echo_n "checking for $ac_word... " >&6; }
3180 if test "${ac_cv_prog_CC+set}" = set; then
3181 $as_echo_n "(cached) " >&6
3182 else
3183 if test -n "$CC"; then
3184 ac_cv_prog_CC="$CC" # Let the user override the test.
3185 else
3186 ac_prog_rejected=no
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 for as_dir in $PATH
3189 do
3190 IFS=$as_save_IFS
3191 test -z "$as_dir" && as_dir=.
3192 for ac_exec_ext in '' $ac_executable_extensions; do
3193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3194 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3195 ac_prog_rejected=yes
3196 continue
3197 fi
3198 ac_cv_prog_CC="cc"
3199 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3200 break 2
3201 fi
3202 done
3203 done
3204 IFS=$as_save_IFS
3205
3206 if test $ac_prog_rejected = yes; then
3207 # We found a bogon in the path, so make sure we never use it.
3208 set dummy $ac_cv_prog_CC
3209 shift
3210 if test $# != 0; then
3211 # We chose a different compiler from the bogus one.
3212 # However, it has the same basename, so the bogon will be chosen
3213 # first if we set CC to just the basename; use the full file name.
3214 shift
3215 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3216 fi
3217 fi
3218 fi
3219 fi
3220 CC=$ac_cv_prog_CC
3221 if test -n "$CC"; then
3222 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3223 $as_echo "$CC" >&6; }
3224 else
3225 { $as_echo "$as_me:$LINENO: result: no" >&5
3226 $as_echo "no" >&6; }
3227 fi
3228
3229
3230 fi
3231 if test -z "$CC"; then
3232 if test -n "$ac_tool_prefix"; then
3233 for ac_prog in cl.exe
3234 do
3235 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3236 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3237 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3238 $as_echo_n "checking for $ac_word... " >&6; }
3239 if test "${ac_cv_prog_CC+set}" = set; then
3240 $as_echo_n "(cached) " >&6
3241 else
3242 if test -n "$CC"; then
3243 ac_cv_prog_CC="$CC" # Let the user override the test.
3244 else
3245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3246 for as_dir in $PATH
3247 do
3248 IFS=$as_save_IFS
3249 test -z "$as_dir" && as_dir=.
3250 for ac_exec_ext in '' $ac_executable_extensions; do
3251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3252 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3253 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3254 break 2
3255 fi
3256 done
3257 done
3258 IFS=$as_save_IFS
3259
3260 fi
3261 fi
3262 CC=$ac_cv_prog_CC
3263 if test -n "$CC"; then
3264 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3265 $as_echo "$CC" >&6; }
3266 else
3267 { $as_echo "$as_me:$LINENO: result: no" >&5
3268 $as_echo "no" >&6; }
3269 fi
3270
3271
3272 test -n "$CC" && break
3273 done
3274 fi
3275 if test -z "$CC"; then
3276 ac_ct_CC=$CC
3277 for ac_prog in cl.exe
3278 do
3279 # Extract the first word of "$ac_prog", so it can be a program name with args.
3280 set dummy $ac_prog; ac_word=$2
3281 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3282 $as_echo_n "checking for $ac_word... " >&6; }
3283 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3284 $as_echo_n "(cached) " >&6
3285 else
3286 if test -n "$ac_ct_CC"; then
3287 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3288 else
3289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290 for as_dir in $PATH
3291 do
3292 IFS=$as_save_IFS
3293 test -z "$as_dir" && as_dir=.
3294 for ac_exec_ext in '' $ac_executable_extensions; do
3295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3296 ac_cv_prog_ac_ct_CC="$ac_prog"
3297 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3298 break 2
3299 fi
3300 done
3301 done
3302 IFS=$as_save_IFS
3303
3304 fi
3305 fi
3306 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3307 if test -n "$ac_ct_CC"; then
3308 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3309 $as_echo "$ac_ct_CC" >&6; }
3310 else
3311 { $as_echo "$as_me:$LINENO: result: no" >&5
3312 $as_echo "no" >&6; }
3313 fi
3314
3315
3316 test -n "$ac_ct_CC" && break
3317 done
3318
3319 if test "x$ac_ct_CC" = x; then
3320 CC=""
3321 else
3322 case $cross_compiling:$ac_tool_warned in
3323 yes:)
3324 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3325 whose name does not start with the host triplet. If you think this
3326 configuration is useful to you, please write to autoconf@gnu.org." >&5
3327 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3328 whose name does not start with the host triplet. If you think this
3329 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3330 ac_tool_warned=yes ;;
3331 esac
3332 CC=$ac_ct_CC
3333 fi
3334 fi
3335
3336 fi
3337
3338
3339 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3340 See \`config.log' for more details." >&5
3341 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3342 See \`config.log' for more details." >&2;}
3343 { (exit 1); exit 1; }; }
3344
3345 # Provide some information about the compiler.
3346 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3347 set X $ac_compile
3348 ac_compiler=$2
3349 { (ac_try="$ac_compiler --version >&5"
3350 case "(($ac_try" in
3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352 *) ac_try_echo=$ac_try;;
3353 esac
3354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3355 $as_echo "$ac_try_echo") >&5
3356 (eval "$ac_compiler --version >&5") 2>&5
3357 ac_status=$?
3358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }
3360 { (ac_try="$ac_compiler -v >&5"
3361 case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3364 esac
3365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3366 $as_echo "$ac_try_echo") >&5
3367 (eval "$ac_compiler -v >&5") 2>&5
3368 ac_status=$?
3369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); }
3371 { (ac_try="$ac_compiler -V >&5"
3372 case "(($ac_try" in
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3375 esac
3376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3377 $as_echo "$ac_try_echo") >&5
3378 (eval "$ac_compiler -V >&5") 2>&5
3379 ac_status=$?
3380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); }
3382
3383 cat >conftest.$ac_ext <<_ACEOF
3384 /* confdefs.h. */
3385 _ACEOF
3386 cat confdefs.h >>conftest.$ac_ext
3387 cat >>conftest.$ac_ext <<_ACEOF
3388 /* end confdefs.h. */
3389
3390 int
3391 main ()
3392 {
3393
3394 ;
3395 return 0;
3396 }
3397 _ACEOF
3398 ac_clean_files_save=$ac_clean_files
3399 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3400 # Try to create an executable without -o first, disregard a.out.
3401 # It will help us diagnose broken compilers, and finding out an intuition
3402 # of exeext.
3403 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3404 $as_echo_n "checking for C compiler default output file name... " >&6; }
3405 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3406
3407 # The possible output files:
3408 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3409
3410 ac_rmfiles=
3411 for ac_file in $ac_files
3412 do
3413 case $ac_file in
3414 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3415 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3416 esac
3417 done
3418 rm -f $ac_rmfiles
3419
3420 if { (ac_try="$ac_link_default"
3421 case "(($ac_try" in
3422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423 *) ac_try_echo=$ac_try;;
3424 esac
3425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3426 $as_echo "$ac_try_echo") >&5
3427 (eval "$ac_link_default") 2>&5
3428 ac_status=$?
3429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); }; then
3431 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3432 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3433 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3434 # so that the user can short-circuit this test for compilers unknown to
3435 # Autoconf.
3436 for ac_file in $ac_files ''
3437 do
3438 test -f "$ac_file" || continue
3439 case $ac_file in
3440 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3441 ;;
3442 [ab].out )
3443 # We found the default executable, but exeext='' is most
3444 # certainly right.
3445 break;;
3446 *.* )
3447 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3448 then :; else
3449 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3450 fi
3451 # We set ac_cv_exeext here because the later test for it is not
3452 # safe: cross compilers may not add the suffix if given an `-o'
3453 # argument, so we may need to know it at that point already.
3454 # Even if this section looks crufty: it has the advantage of
3455 # actually working.
3456 break;;
3457 * )
3458 break;;
3459 esac
3460 done
3461 test "$ac_cv_exeext" = no && ac_cv_exeext=
3462
3463 else
3464 ac_file=''
3465 fi
3466
3467 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3468 $as_echo "$ac_file" >&6; }
3469 if test -z "$ac_file"; then
3470 $as_echo "$as_me: failed program was:" >&5
3471 sed 's/^/| /' conftest.$ac_ext >&5
3472
3473 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3474 See \`config.log' for more details." >&5
3475 $as_echo "$as_me: error: C compiler cannot create executables
3476 See \`config.log' for more details." >&2;}
3477 { (exit 77); exit 77; }; }
3478 fi
3479
3480 ac_exeext=$ac_cv_exeext
3481
3482 # Check that the compiler produces executables we can run. If not, either
3483 # the compiler is broken, or we cross compile.
3484 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3485 $as_echo_n "checking whether the C compiler works... " >&6; }
3486 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3487 # If not cross compiling, check that we can run a simple program.
3488 if test "$cross_compiling" != yes; then
3489 if { ac_try='./$ac_file'
3490 { (case "(($ac_try" in
3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3493 esac
3494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3495 $as_echo "$ac_try_echo") >&5
3496 (eval "$ac_try") 2>&5
3497 ac_status=$?
3498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }; }; then
3500 cross_compiling=no
3501 else
3502 if test "$cross_compiling" = maybe; then
3503 cross_compiling=yes
3504 else
3505 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3506 If you meant to cross compile, use \`--host'.
3507 See \`config.log' for more details." >&5
3508 $as_echo "$as_me: error: cannot run C compiled programs.
3509 If you meant to cross compile, use \`--host'.
3510 See \`config.log' for more details." >&2;}
3511 { (exit 1); exit 1; }; }
3512 fi
3513 fi
3514 fi
3515 { $as_echo "$as_me:$LINENO: result: yes" >&5
3516 $as_echo "yes" >&6; }
3517
3518 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3519 ac_clean_files=$ac_clean_files_save
3520 # Check that the compiler produces executables we can run. If not, either
3521 # the compiler is broken, or we cross compile.
3522 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3523 $as_echo_n "checking whether we are cross compiling... " >&6; }
3524 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3525 $as_echo "$cross_compiling" >&6; }
3526
3527 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3528 $as_echo_n "checking for suffix of executables... " >&6; }
3529 if { (ac_try="$ac_link"
3530 case "(($ac_try" in
3531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532 *) ac_try_echo=$ac_try;;
3533 esac
3534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3535 $as_echo "$ac_try_echo") >&5
3536 (eval "$ac_link") 2>&5
3537 ac_status=$?
3538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); }; then
3540 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3541 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3542 # work properly (i.e., refer to `conftest.exe'), while it won't with
3543 # `rm'.
3544 for ac_file in conftest.exe conftest conftest.*; do
3545 test -f "$ac_file" || continue
3546 case $ac_file in
3547 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3548 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3549 break;;
3550 * ) break;;
3551 esac
3552 done
3553 else
3554 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3555 See \`config.log' for more details." >&5
3556 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3557 See \`config.log' for more details." >&2;}
3558 { (exit 1); exit 1; }; }
3559 fi
3560
3561 rm -f conftest$ac_cv_exeext
3562 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3563 $as_echo "$ac_cv_exeext" >&6; }
3564
3565 rm -f conftest.$ac_ext
3566 EXEEXT=$ac_cv_exeext
3567 ac_exeext=$EXEEXT
3568 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3569 $as_echo_n "checking for suffix of object files... " >&6; }
3570 if test "${ac_cv_objext+set}" = set; then
3571 $as_echo_n "(cached) " >&6
3572 else
3573 cat >conftest.$ac_ext <<_ACEOF
3574 /* confdefs.h. */
3575 _ACEOF
3576 cat confdefs.h >>conftest.$ac_ext
3577 cat >>conftest.$ac_ext <<_ACEOF
3578 /* end confdefs.h. */
3579
3580 int
3581 main ()
3582 {
3583
3584 ;
3585 return 0;
3586 }
3587 _ACEOF
3588 rm -f conftest.o conftest.obj
3589 if { (ac_try="$ac_compile"
3590 case "(($ac_try" in
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3593 esac
3594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3595 $as_echo "$ac_try_echo") >&5
3596 (eval "$ac_compile") 2>&5
3597 ac_status=$?
3598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); }; then
3600 for ac_file in conftest.o conftest.obj conftest.*; do
3601 test -f "$ac_file" || continue;
3602 case $ac_file in
3603 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3604 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3605 break;;
3606 esac
3607 done
3608 else
3609 $as_echo "$as_me: failed program was:" >&5
3610 sed 's/^/| /' conftest.$ac_ext >&5
3611
3612 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3613 See \`config.log' for more details." >&5
3614 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3615 See \`config.log' for more details." >&2;}
3616 { (exit 1); exit 1; }; }
3617 fi
3618
3619 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3620 fi
3621 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3622 $as_echo "$ac_cv_objext" >&6; }
3623 OBJEXT=$ac_cv_objext
3624 ac_objext=$OBJEXT
3625 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3626 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3627 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3628 $as_echo_n "(cached) " >&6
3629 else
3630 cat >conftest.$ac_ext <<_ACEOF
3631 /* confdefs.h. */
3632 _ACEOF
3633 cat confdefs.h >>conftest.$ac_ext
3634 cat >>conftest.$ac_ext <<_ACEOF
3635 /* end confdefs.h. */
3636
3637 int
3638 main ()
3639 {
3640 #ifndef __GNUC__
3641 choke me
3642 #endif
3643
3644 ;
3645 return 0;
3646 }
3647 _ACEOF
3648 rm -f conftest.$ac_objext
3649 if { (ac_try="$ac_compile"
3650 case "(($ac_try" in
3651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3652 *) ac_try_echo=$ac_try;;
3653 esac
3654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3655 $as_echo "$ac_try_echo") >&5
3656 (eval "$ac_compile") 2>conftest.er1
3657 ac_status=$?
3658 grep -v '^ *+' conftest.er1 >conftest.err
3659 rm -f conftest.er1
3660 cat conftest.err >&5
3661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); } && {
3663 test -z "$ac_c_werror_flag" ||
3664 test ! -s conftest.err
3665 } && test -s conftest.$ac_objext; then
3666 ac_compiler_gnu=yes
3667 else
3668 $as_echo "$as_me: failed program was:" >&5
3669 sed 's/^/| /' conftest.$ac_ext >&5
3670
3671 ac_compiler_gnu=no
3672 fi
3673
3674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3675 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3676
3677 fi
3678 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3679 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3680 if test $ac_compiler_gnu = yes; then
3681 GCC=yes
3682 else
3683 GCC=
3684 fi
3685 ac_test_CFLAGS=${CFLAGS+set}
3686 ac_save_CFLAGS=$CFLAGS
3687 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3688 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3689 if test "${ac_cv_prog_cc_g+set}" = set; then
3690 $as_echo_n "(cached) " >&6
3691 else
3692 ac_save_c_werror_flag=$ac_c_werror_flag
3693 ac_c_werror_flag=yes
3694 ac_cv_prog_cc_g=no
3695 CFLAGS="-g"
3696 cat >conftest.$ac_ext <<_ACEOF
3697 /* confdefs.h. */
3698 _ACEOF
3699 cat confdefs.h >>conftest.$ac_ext
3700 cat >>conftest.$ac_ext <<_ACEOF
3701 /* end confdefs.h. */
3702
3703 int
3704 main ()
3705 {
3706
3707 ;
3708 return 0;
3709 }
3710 _ACEOF
3711 rm -f conftest.$ac_objext
3712 if { (ac_try="$ac_compile"
3713 case "(($ac_try" in
3714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3715 *) ac_try_echo=$ac_try;;
3716 esac
3717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3718 $as_echo "$ac_try_echo") >&5
3719 (eval "$ac_compile") 2>conftest.er1
3720 ac_status=$?
3721 grep -v '^ *+' conftest.er1 >conftest.err
3722 rm -f conftest.er1
3723 cat conftest.err >&5
3724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); } && {
3726 test -z "$ac_c_werror_flag" ||
3727 test ! -s conftest.err
3728 } && test -s conftest.$ac_objext; then
3729 ac_cv_prog_cc_g=yes
3730 else
3731 $as_echo "$as_me: failed program was:" >&5
3732 sed 's/^/| /' conftest.$ac_ext >&5
3733
3734 CFLAGS=""
3735 cat >conftest.$ac_ext <<_ACEOF
3736 /* confdefs.h. */
3737 _ACEOF
3738 cat confdefs.h >>conftest.$ac_ext
3739 cat >>conftest.$ac_ext <<_ACEOF
3740 /* end confdefs.h. */
3741
3742 int
3743 main ()
3744 {
3745
3746 ;
3747 return 0;
3748 }
3749 _ACEOF
3750 rm -f conftest.$ac_objext
3751 if { (ac_try="$ac_compile"
3752 case "(($ac_try" in
3753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3754 *) ac_try_echo=$ac_try;;
3755 esac
3756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3757 $as_echo "$ac_try_echo") >&5
3758 (eval "$ac_compile") 2>conftest.er1
3759 ac_status=$?
3760 grep -v '^ *+' conftest.er1 >conftest.err
3761 rm -f conftest.er1
3762 cat conftest.err >&5
3763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); } && {
3765 test -z "$ac_c_werror_flag" ||
3766 test ! -s conftest.err
3767 } && test -s conftest.$ac_objext; then
3768 :
3769 else
3770 $as_echo "$as_me: failed program was:" >&5
3771 sed 's/^/| /' conftest.$ac_ext >&5
3772
3773 ac_c_werror_flag=$ac_save_c_werror_flag
3774 CFLAGS="-g"
3775 cat >conftest.$ac_ext <<_ACEOF
3776 /* confdefs.h. */
3777 _ACEOF
3778 cat confdefs.h >>conftest.$ac_ext
3779 cat >>conftest.$ac_ext <<_ACEOF
3780 /* end confdefs.h. */
3781
3782 int
3783 main ()
3784 {
3785
3786 ;
3787 return 0;
3788 }
3789 _ACEOF
3790 rm -f conftest.$ac_objext
3791 if { (ac_try="$ac_compile"
3792 case "(($ac_try" in
3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794 *) ac_try_echo=$ac_try;;
3795 esac
3796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3797 $as_echo "$ac_try_echo") >&5
3798 (eval "$ac_compile") 2>conftest.er1
3799 ac_status=$?
3800 grep -v '^ *+' conftest.er1 >conftest.err
3801 rm -f conftest.er1
3802 cat conftest.err >&5
3803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); } && {
3805 test -z "$ac_c_werror_flag" ||
3806 test ! -s conftest.err
3807 } && test -s conftest.$ac_objext; then
3808 ac_cv_prog_cc_g=yes
3809 else
3810 $as_echo "$as_me: failed program was:" >&5
3811 sed 's/^/| /' conftest.$ac_ext >&5
3812
3813
3814 fi
3815
3816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3817 fi
3818
3819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3820 fi
3821
3822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3823 ac_c_werror_flag=$ac_save_c_werror_flag
3824 fi
3825 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3826 $as_echo "$ac_cv_prog_cc_g" >&6; }
3827 if test "$ac_test_CFLAGS" = set; then
3828 CFLAGS=$ac_save_CFLAGS
3829 elif test $ac_cv_prog_cc_g = yes; then
3830 if test "$GCC" = yes; then
3831 CFLAGS="-g -O2"
3832 else
3833 CFLAGS="-g"
3834 fi
3835 else
3836 if test "$GCC" = yes; then
3837 CFLAGS="-O2"
3838 else
3839 CFLAGS=
3840 fi
3841 fi
3842 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3843 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3844 if test "${ac_cv_prog_cc_c89+set}" = set; then
3845 $as_echo_n "(cached) " >&6
3846 else
3847 ac_cv_prog_cc_c89=no
3848 ac_save_CC=$CC
3849 cat >conftest.$ac_ext <<_ACEOF
3850 /* confdefs.h. */
3851 _ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h. */
3855 #include <stdarg.h>
3856 #include <stdio.h>
3857 #include <sys/types.h>
3858 #include <sys/stat.h>
3859 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3860 struct buf { int x; };
3861 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3862 static char *e (p, i)
3863 char **p;
3864 int i;
3865 {
3866 return p[i];
3867 }
3868 static char *f (char * (*g) (char **, int), char **p, ...)
3869 {
3870 char *s;
3871 va_list v;
3872 va_start (v,p);
3873 s = g (p, va_arg (v,int));
3874 va_end (v);
3875 return s;
3876 }
3877
3878 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3879 function prototypes and stuff, but not '\xHH' hex character constants.
3880 These don't provoke an error unfortunately, instead are silently treated
3881 as 'x'. The following induces an error, until -std is added to get
3882 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3883 array size at least. It's necessary to write '\x00'==0 to get something
3884 that's true only with -std. */
3885 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3886
3887 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3888 inside strings and character constants. */
3889 #define FOO(x) 'x'
3890 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3891
3892 int test (int i, double x);
3893 struct s1 {int (*f) (int a);};
3894 struct s2 {int (*f) (double a);};
3895 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3896 int argc;
3897 char **argv;
3898 int
3899 main ()
3900 {
3901 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3902 ;
3903 return 0;
3904 }
3905 _ACEOF
3906 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3907 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3908 do
3909 CC="$ac_save_CC $ac_arg"
3910 rm -f conftest.$ac_objext
3911 if { (ac_try="$ac_compile"
3912 case "(($ac_try" in
3913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914 *) ac_try_echo=$ac_try;;
3915 esac
3916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3917 $as_echo "$ac_try_echo") >&5
3918 (eval "$ac_compile") 2>conftest.er1
3919 ac_status=$?
3920 grep -v '^ *+' conftest.er1 >conftest.err
3921 rm -f conftest.er1
3922 cat conftest.err >&5
3923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 (exit $ac_status); } && {
3925 test -z "$ac_c_werror_flag" ||
3926 test ! -s conftest.err
3927 } && test -s conftest.$ac_objext; then
3928 ac_cv_prog_cc_c89=$ac_arg
3929 else
3930 $as_echo "$as_me: failed program was:" >&5
3931 sed 's/^/| /' conftest.$ac_ext >&5
3932
3933
3934 fi
3935
3936 rm -f core conftest.err conftest.$ac_objext
3937 test "x$ac_cv_prog_cc_c89" != "xno" && break
3938 done
3939 rm -f conftest.$ac_ext
3940 CC=$ac_save_CC
3941
3942 fi
3943 # AC_CACHE_VAL
3944 case "x$ac_cv_prog_cc_c89" in
3945 x)
3946 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3947 $as_echo "none needed" >&6; } ;;
3948 xno)
3949 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3950 $as_echo "unsupported" >&6; } ;;
3951 *)
3952 CC="$CC $ac_cv_prog_cc_c89"
3953 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3954 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3955 esac
3956
3957
3958 ac_ext=c
3959 ac_cpp='$CPP $CPPFLAGS'
3960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3963
3964
3965 # On Suns, sometimes $CPP names a directory.
3966 if test -n "$CPP" && test -d "$CPP"; then
3967 CPP=
3968 fi
3969
3970 ## If not using gcc, and on Solaris, and no CPP specified, see if
3971 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3972 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3973 test x"$CPP" = x; then
3974 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3975 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
3976
3977 if test "${emacs_cv_sunpro_c+set}" = set; then
3978 $as_echo_n "(cached) " >&6
3979 else
3980 cat >conftest.$ac_ext <<_ACEOF
3981 /* confdefs.h. */
3982 _ACEOF
3983 cat confdefs.h >>conftest.$ac_ext
3984 cat >>conftest.$ac_ext <<_ACEOF
3985 /* end confdefs.h. */
3986
3987 int
3988 main ()
3989 {
3990 #ifndef __SUNPRO_C
3991 fail;
3992 #endif
3993
3994 ;
3995 return 0;
3996 }
3997 _ACEOF
3998 rm -f conftest.$ac_objext conftest$ac_exeext
3999 if { (ac_try="$ac_link"
4000 case "(($ac_try" in
4001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
4003 esac
4004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4005 $as_echo "$ac_try_echo") >&5
4006 (eval "$ac_link") 2>conftest.er1
4007 ac_status=$?
4008 grep -v '^ *+' conftest.er1 >conftest.err
4009 rm -f conftest.er1
4010 cat conftest.err >&5
4011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } && {
4013 test -z "$ac_c_werror_flag" ||
4014 test ! -s conftest.err
4015 } && test -s conftest$ac_exeext && {
4016 test "$cross_compiling" = yes ||
4017 $as_test_x conftest$ac_exeext
4018 }; then
4019 emacs_cv_sunpro_c=yes
4020 else
4021 $as_echo "$as_me: failed program was:" >&5
4022 sed 's/^/| /' conftest.$ac_ext >&5
4023
4024 emacs_cv_sunpro_c=no
4025 fi
4026
4027 rm -rf conftest.dSYM
4028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4029 conftest$ac_exeext conftest.$ac_ext
4030 fi
4031
4032 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4033 $as_echo "$emacs_cv_sunpro_c" >&6; }
4034
4035 if test x"$emacs_cv_sunpro_c" = xyes; then
4036 NON_GNU_CPP="$CC -E -Xs"
4037 fi
4038 fi
4039
4040 #### Some systems specify a CPP to use unless we are using GCC.
4041 #### Now that we know whether we are using GCC, we can decide whether
4042 #### to use that one.
4043 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4044 then
4045 CPP="$NON_GNU_CPP"
4046 fi
4047
4048 #### Some systems specify a CC to use unless we are using GCC.
4049 #### Now that we know whether we are using GCC, we can decide whether
4050 #### to use that one.
4051 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4052 test x$cc_specified != xyes
4053 then
4054 CC="$NON_GNU_CC"
4055 fi
4056
4057 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4058 then
4059 CC="$CC $GCC_TEST_OPTIONS"
4060 fi
4061
4062 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4063 then
4064 CC="$CC $NON_GCC_TEST_OPTIONS"
4065 fi
4066
4067 ac_ext=c
4068 ac_cpp='$CPP $CPPFLAGS'
4069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4072 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4073 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4074 # On Suns, sometimes $CPP names a directory.
4075 if test -n "$CPP" && test -d "$CPP"; then
4076 CPP=
4077 fi
4078 if test -z "$CPP"; then
4079 if test "${ac_cv_prog_CPP+set}" = set; then
4080 $as_echo_n "(cached) " >&6
4081 else
4082 # Double quotes because CPP needs to be expanded
4083 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4084 do
4085 ac_preproc_ok=false
4086 for ac_c_preproc_warn_flag in '' yes
4087 do
4088 # Use a header file that comes with gcc, so configuring glibc
4089 # with a fresh cross-compiler works.
4090 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4091 # <limits.h> exists even on freestanding compilers.
4092 # On the NeXT, cc -E runs the code through the compiler's parser,
4093 # not just through cpp. "Syntax error" is here to catch this case.
4094 cat >conftest.$ac_ext <<_ACEOF
4095 /* confdefs.h. */
4096 _ACEOF
4097 cat confdefs.h >>conftest.$ac_ext
4098 cat >>conftest.$ac_ext <<_ACEOF
4099 /* end confdefs.h. */
4100 #ifdef __STDC__
4101 # include <limits.h>
4102 #else
4103 # include <assert.h>
4104 #endif
4105 Syntax error
4106 _ACEOF
4107 if { (ac_try="$ac_cpp conftest.$ac_ext"
4108 case "(($ac_try" in
4109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4110 *) ac_try_echo=$ac_try;;
4111 esac
4112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4113 $as_echo "$ac_try_echo") >&5
4114 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4115 ac_status=$?
4116 grep -v '^ *+' conftest.er1 >conftest.err
4117 rm -f conftest.er1
4118 cat conftest.err >&5
4119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); } >/dev/null && {
4121 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4122 test ! -s conftest.err
4123 }; then
4124 :
4125 else
4126 $as_echo "$as_me: failed program was:" >&5
4127 sed 's/^/| /' conftest.$ac_ext >&5
4128
4129 # Broken: fails on valid input.
4130 continue
4131 fi
4132
4133 rm -f conftest.err conftest.$ac_ext
4134
4135 # OK, works on sane cases. Now check whether nonexistent headers
4136 # can be detected and how.
4137 cat >conftest.$ac_ext <<_ACEOF
4138 /* confdefs.h. */
4139 _ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h. */
4143 #include <ac_nonexistent.h>
4144 _ACEOF
4145 if { (ac_try="$ac_cpp conftest.$ac_ext"
4146 case "(($ac_try" in
4147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148 *) ac_try_echo=$ac_try;;
4149 esac
4150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4151 $as_echo "$ac_try_echo") >&5
4152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4153 ac_status=$?
4154 grep -v '^ *+' conftest.er1 >conftest.err
4155 rm -f conftest.er1
4156 cat conftest.err >&5
4157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } >/dev/null && {
4159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4160 test ! -s conftest.err
4161 }; then
4162 # Broken: success on invalid input.
4163 continue
4164 else
4165 $as_echo "$as_me: failed program was:" >&5
4166 sed 's/^/| /' conftest.$ac_ext >&5
4167
4168 # Passes both tests.
4169 ac_preproc_ok=:
4170 break
4171 fi
4172
4173 rm -f conftest.err conftest.$ac_ext
4174
4175 done
4176 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4177 rm -f conftest.err conftest.$ac_ext
4178 if $ac_preproc_ok; then
4179 break
4180 fi
4181
4182 done
4183 ac_cv_prog_CPP=$CPP
4184
4185 fi
4186 CPP=$ac_cv_prog_CPP
4187 else
4188 ac_cv_prog_CPP=$CPP
4189 fi
4190 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4191 $as_echo "$CPP" >&6; }
4192 ac_preproc_ok=false
4193 for ac_c_preproc_warn_flag in '' yes
4194 do
4195 # Use a header file that comes with gcc, so configuring glibc
4196 # with a fresh cross-compiler works.
4197 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4198 # <limits.h> exists even on freestanding compilers.
4199 # On the NeXT, cc -E runs the code through the compiler's parser,
4200 # not just through cpp. "Syntax error" is here to catch this case.
4201 cat >conftest.$ac_ext <<_ACEOF
4202 /* confdefs.h. */
4203 _ACEOF
4204 cat confdefs.h >>conftest.$ac_ext
4205 cat >>conftest.$ac_ext <<_ACEOF
4206 /* end confdefs.h. */
4207 #ifdef __STDC__
4208 # include <limits.h>
4209 #else
4210 # include <assert.h>
4211 #endif
4212 Syntax error
4213 _ACEOF
4214 if { (ac_try="$ac_cpp conftest.$ac_ext"
4215 case "(($ac_try" in
4216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4217 *) ac_try_echo=$ac_try;;
4218 esac
4219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4220 $as_echo "$ac_try_echo") >&5
4221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4222 ac_status=$?
4223 grep -v '^ *+' conftest.er1 >conftest.err
4224 rm -f conftest.er1
4225 cat conftest.err >&5
4226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); } >/dev/null && {
4228 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4229 test ! -s conftest.err
4230 }; then
4231 :
4232 else
4233 $as_echo "$as_me: failed program was:" >&5
4234 sed 's/^/| /' conftest.$ac_ext >&5
4235
4236 # Broken: fails on valid input.
4237 continue
4238 fi
4239
4240 rm -f conftest.err conftest.$ac_ext
4241
4242 # OK, works on sane cases. Now check whether nonexistent headers
4243 # can be detected and how.
4244 cat >conftest.$ac_ext <<_ACEOF
4245 /* confdefs.h. */
4246 _ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4250 #include <ac_nonexistent.h>
4251 _ACEOF
4252 if { (ac_try="$ac_cpp conftest.$ac_ext"
4253 case "(($ac_try" in
4254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4255 *) ac_try_echo=$ac_try;;
4256 esac
4257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4258 $as_echo "$ac_try_echo") >&5
4259 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4260 ac_status=$?
4261 grep -v '^ *+' conftest.er1 >conftest.err
4262 rm -f conftest.er1
4263 cat conftest.err >&5
4264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); } >/dev/null && {
4266 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4267 test ! -s conftest.err
4268 }; then
4269 # Broken: success on invalid input.
4270 continue
4271 else
4272 $as_echo "$as_me: failed program was:" >&5
4273 sed 's/^/| /' conftest.$ac_ext >&5
4274
4275 # Passes both tests.
4276 ac_preproc_ok=:
4277 break
4278 fi
4279
4280 rm -f conftest.err conftest.$ac_ext
4281
4282 done
4283 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4284 rm -f conftest.err conftest.$ac_ext
4285 if $ac_preproc_ok; then
4286 :
4287 else
4288 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4289 See \`config.log' for more details." >&5
4290 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4291 See \`config.log' for more details." >&2;}
4292 { (exit 1); exit 1; }; }
4293 fi
4294
4295 ac_ext=c
4296 ac_cpp='$CPP $CPPFLAGS'
4297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4300
4301
4302 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4303 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4304 if test "${ac_cv_path_GREP+set}" = set; then
4305 $as_echo_n "(cached) " >&6
4306 else
4307 if test -z "$GREP"; then
4308 ac_path_GREP_found=false
4309 # Loop through the user's path and test for each of PROGNAME-LIST
4310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4312 do
4313 IFS=$as_save_IFS
4314 test -z "$as_dir" && as_dir=.
4315 for ac_prog in grep ggrep; do
4316 for ac_exec_ext in '' $ac_executable_extensions; do
4317 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4318 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4319 # Check for GNU ac_path_GREP and select it if it is found.
4320 # Check for GNU $ac_path_GREP
4321 case `"$ac_path_GREP" --version 2>&1` in
4322 *GNU*)
4323 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4324 *)
4325 ac_count=0
4326 $as_echo_n 0123456789 >"conftest.in"
4327 while :
4328 do
4329 cat "conftest.in" "conftest.in" >"conftest.tmp"
4330 mv "conftest.tmp" "conftest.in"
4331 cp "conftest.in" "conftest.nl"
4332 $as_echo 'GREP' >> "conftest.nl"
4333 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4334 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4335 ac_count=`expr $ac_count + 1`
4336 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4337 # Best one so far, save it but keep looking for a better one
4338 ac_cv_path_GREP="$ac_path_GREP"
4339 ac_path_GREP_max=$ac_count
4340 fi
4341 # 10*(2^10) chars as input seems more than enough
4342 test $ac_count -gt 10 && break
4343 done
4344 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4345 esac
4346
4347 $ac_path_GREP_found && break 3
4348 done
4349 done
4350 done
4351 IFS=$as_save_IFS
4352 if test -z "$ac_cv_path_GREP"; then
4353 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4354 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4355 { (exit 1); exit 1; }; }
4356 fi
4357 else
4358 ac_cv_path_GREP=$GREP
4359 fi
4360
4361 fi
4362 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4363 $as_echo "$ac_cv_path_GREP" >&6; }
4364 GREP="$ac_cv_path_GREP"
4365
4366
4367 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4368 $as_echo_n "checking for egrep... " >&6; }
4369 if test "${ac_cv_path_EGREP+set}" = set; then
4370 $as_echo_n "(cached) " >&6
4371 else
4372 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4373 then ac_cv_path_EGREP="$GREP -E"
4374 else
4375 if test -z "$EGREP"; then
4376 ac_path_EGREP_found=false
4377 # Loop through the user's path and test for each of PROGNAME-LIST
4378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4380 do
4381 IFS=$as_save_IFS
4382 test -z "$as_dir" && as_dir=.
4383 for ac_prog in egrep; do
4384 for ac_exec_ext in '' $ac_executable_extensions; do
4385 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4386 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4387 # Check for GNU ac_path_EGREP and select it if it is found.
4388 # Check for GNU $ac_path_EGREP
4389 case `"$ac_path_EGREP" --version 2>&1` in
4390 *GNU*)
4391 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4392 *)
4393 ac_count=0
4394 $as_echo_n 0123456789 >"conftest.in"
4395 while :
4396 do
4397 cat "conftest.in" "conftest.in" >"conftest.tmp"
4398 mv "conftest.tmp" "conftest.in"
4399 cp "conftest.in" "conftest.nl"
4400 $as_echo 'EGREP' >> "conftest.nl"
4401 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4402 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4403 ac_count=`expr $ac_count + 1`
4404 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4405 # Best one so far, save it but keep looking for a better one
4406 ac_cv_path_EGREP="$ac_path_EGREP"
4407 ac_path_EGREP_max=$ac_count
4408 fi
4409 # 10*(2^10) chars as input seems more than enough
4410 test $ac_count -gt 10 && break
4411 done
4412 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4413 esac
4414
4415 $ac_path_EGREP_found && break 3
4416 done
4417 done
4418 done
4419 IFS=$as_save_IFS
4420 if test -z "$ac_cv_path_EGREP"; then
4421 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4422 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4423 { (exit 1); exit 1; }; }
4424 fi
4425 else
4426 ac_cv_path_EGREP=$EGREP
4427 fi
4428
4429 fi
4430 fi
4431 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4432 $as_echo "$ac_cv_path_EGREP" >&6; }
4433 EGREP="$ac_cv_path_EGREP"
4434
4435
4436 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4437 $as_echo_n "checking for ANSI C header files... " >&6; }
4438 if test "${ac_cv_header_stdc+set}" = set; then
4439 $as_echo_n "(cached) " >&6
4440 else
4441 cat >conftest.$ac_ext <<_ACEOF
4442 /* confdefs.h. */
4443 _ACEOF
4444 cat confdefs.h >>conftest.$ac_ext
4445 cat >>conftest.$ac_ext <<_ACEOF
4446 /* end confdefs.h. */
4447 #include <stdlib.h>
4448 #include <stdarg.h>
4449 #include <string.h>
4450 #include <float.h>
4451
4452 int
4453 main ()
4454 {
4455
4456 ;
4457 return 0;
4458 }
4459 _ACEOF
4460 rm -f conftest.$ac_objext
4461 if { (ac_try="$ac_compile"
4462 case "(($ac_try" in
4463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4464 *) ac_try_echo=$ac_try;;
4465 esac
4466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4467 $as_echo "$ac_try_echo") >&5
4468 (eval "$ac_compile") 2>conftest.er1
4469 ac_status=$?
4470 grep -v '^ *+' conftest.er1 >conftest.err
4471 rm -f conftest.er1
4472 cat conftest.err >&5
4473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); } && {
4475 test -z "$ac_c_werror_flag" ||
4476 test ! -s conftest.err
4477 } && test -s conftest.$ac_objext; then
4478 ac_cv_header_stdc=yes
4479 else
4480 $as_echo "$as_me: failed program was:" >&5
4481 sed 's/^/| /' conftest.$ac_ext >&5
4482
4483 ac_cv_header_stdc=no
4484 fi
4485
4486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4487
4488 if test $ac_cv_header_stdc = yes; then
4489 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4490 cat >conftest.$ac_ext <<_ACEOF
4491 /* confdefs.h. */
4492 _ACEOF
4493 cat confdefs.h >>conftest.$ac_ext
4494 cat >>conftest.$ac_ext <<_ACEOF
4495 /* end confdefs.h. */
4496 #include <string.h>
4497
4498 _ACEOF
4499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4500 $EGREP "memchr" >/dev/null 2>&1; then
4501 :
4502 else
4503 ac_cv_header_stdc=no
4504 fi
4505 rm -f conftest*
4506
4507 fi
4508
4509 if test $ac_cv_header_stdc = yes; then
4510 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4511 cat >conftest.$ac_ext <<_ACEOF
4512 /* confdefs.h. */
4513 _ACEOF
4514 cat confdefs.h >>conftest.$ac_ext
4515 cat >>conftest.$ac_ext <<_ACEOF
4516 /* end confdefs.h. */
4517 #include <stdlib.h>
4518
4519 _ACEOF
4520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4521 $EGREP "free" >/dev/null 2>&1; then
4522 :
4523 else
4524 ac_cv_header_stdc=no
4525 fi
4526 rm -f conftest*
4527
4528 fi
4529
4530 if test $ac_cv_header_stdc = yes; then
4531 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4532 if test "$cross_compiling" = yes; then
4533 :
4534 else
4535 cat >conftest.$ac_ext <<_ACEOF
4536 /* confdefs.h. */
4537 _ACEOF
4538 cat confdefs.h >>conftest.$ac_ext
4539 cat >>conftest.$ac_ext <<_ACEOF
4540 /* end confdefs.h. */
4541 #include <ctype.h>
4542 #include <stdlib.h>
4543 #if ((' ' & 0x0FF) == 0x020)
4544 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4545 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4546 #else
4547 # define ISLOWER(c) \
4548 (('a' <= (c) && (c) <= 'i') \
4549 || ('j' <= (c) && (c) <= 'r') \
4550 || ('s' <= (c) && (c) <= 'z'))
4551 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4552 #endif
4553
4554 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4555 int
4556 main ()
4557 {
4558 int i;
4559 for (i = 0; i < 256; i++)
4560 if (XOR (islower (i), ISLOWER (i))
4561 || toupper (i) != TOUPPER (i))
4562 return 2;
4563 return 0;
4564 }
4565 _ACEOF
4566 rm -f conftest$ac_exeext
4567 if { (ac_try="$ac_link"
4568 case "(($ac_try" in
4569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4570 *) ac_try_echo=$ac_try;;
4571 esac
4572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4573 $as_echo "$ac_try_echo") >&5
4574 (eval "$ac_link") 2>&5
4575 ac_status=$?
4576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4578 { (case "(($ac_try" in
4579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4580 *) ac_try_echo=$ac_try;;
4581 esac
4582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4583 $as_echo "$ac_try_echo") >&5
4584 (eval "$ac_try") 2>&5
4585 ac_status=$?
4586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); }; }; then
4588 :
4589 else
4590 $as_echo "$as_me: program exited with status $ac_status" >&5
4591 $as_echo "$as_me: failed program was:" >&5
4592 sed 's/^/| /' conftest.$ac_ext >&5
4593
4594 ( exit $ac_status )
4595 ac_cv_header_stdc=no
4596 fi
4597 rm -rf conftest.dSYM
4598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4599 fi
4600
4601
4602 fi
4603 fi
4604 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4605 $as_echo "$ac_cv_header_stdc" >&6; }
4606 if test $ac_cv_header_stdc = yes; then
4607
4608 cat >>confdefs.h <<\_ACEOF
4609 #define STDC_HEADERS 1
4610 _ACEOF
4611
4612 fi
4613
4614 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4625 inttypes.h stdint.h unistd.h
4626 do
4627 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4628 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4629 $as_echo_n "checking for $ac_header... " >&6; }
4630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4631 $as_echo_n "(cached) " >&6
4632 else
4633 cat >conftest.$ac_ext <<_ACEOF
4634 /* confdefs.h. */
4635 _ACEOF
4636 cat confdefs.h >>conftest.$ac_ext
4637 cat >>conftest.$ac_ext <<_ACEOF
4638 /* end confdefs.h. */
4639 $ac_includes_default
4640
4641 #include <$ac_header>
4642 _ACEOF
4643 rm -f conftest.$ac_objext
4644 if { (ac_try="$ac_compile"
4645 case "(($ac_try" in
4646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4647 *) ac_try_echo=$ac_try;;
4648 esac
4649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4650 $as_echo "$ac_try_echo") >&5
4651 (eval "$ac_compile") 2>conftest.er1
4652 ac_status=$?
4653 grep -v '^ *+' conftest.er1 >conftest.err
4654 rm -f conftest.er1
4655 cat conftest.err >&5
4656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); } && {
4658 test -z "$ac_c_werror_flag" ||
4659 test ! -s conftest.err
4660 } && test -s conftest.$ac_objext; then
4661 eval "$as_ac_Header=yes"
4662 else
4663 $as_echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4665
4666 eval "$as_ac_Header=no"
4667 fi
4668
4669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4670 fi
4671 ac_res=`eval 'as_val=${'$as_ac_Header'}
4672 $as_echo "$as_val"'`
4673 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4674 $as_echo "$ac_res" >&6; }
4675 if test `eval 'as_val=${'$as_ac_Header'}
4676 $as_echo "$as_val"'` = yes; then
4677 cat >>confdefs.h <<_ACEOF
4678 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4679 _ACEOF
4680
4681 fi
4682
4683 done
4684
4685
4686
4687 if test "${ac_cv_header_minix_config_h+set}" = set; then
4688 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4689 $as_echo_n "checking for minix/config.h... " >&6; }
4690 if test "${ac_cv_header_minix_config_h+set}" = set; then
4691 $as_echo_n "(cached) " >&6
4692 fi
4693 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4694 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4695 else
4696 # Is the header compilable?
4697 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4698 $as_echo_n "checking minix/config.h usability... " >&6; }
4699 cat >conftest.$ac_ext <<_ACEOF
4700 /* confdefs.h. */
4701 _ACEOF
4702 cat confdefs.h >>conftest.$ac_ext
4703 cat >>conftest.$ac_ext <<_ACEOF
4704 /* end confdefs.h. */
4705 $ac_includes_default
4706 #include <minix/config.h>
4707 _ACEOF
4708 rm -f conftest.$ac_objext
4709 if { (ac_try="$ac_compile"
4710 case "(($ac_try" in
4711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4712 *) ac_try_echo=$ac_try;;
4713 esac
4714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4715 $as_echo "$ac_try_echo") >&5
4716 (eval "$ac_compile") 2>conftest.er1
4717 ac_status=$?
4718 grep -v '^ *+' conftest.er1 >conftest.err
4719 rm -f conftest.er1
4720 cat conftest.err >&5
4721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); } && {
4723 test -z "$ac_c_werror_flag" ||
4724 test ! -s conftest.err
4725 } && test -s conftest.$ac_objext; then
4726 ac_header_compiler=yes
4727 else
4728 $as_echo "$as_me: failed program was:" >&5
4729 sed 's/^/| /' conftest.$ac_ext >&5
4730
4731 ac_header_compiler=no
4732 fi
4733
4734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4735 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4736 $as_echo "$ac_header_compiler" >&6; }
4737
4738 # Is the header present?
4739 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4740 $as_echo_n "checking minix/config.h presence... " >&6; }
4741 cat >conftest.$ac_ext <<_ACEOF
4742 /* confdefs.h. */
4743 _ACEOF
4744 cat confdefs.h >>conftest.$ac_ext
4745 cat >>conftest.$ac_ext <<_ACEOF
4746 /* end confdefs.h. */
4747 #include <minix/config.h>
4748 _ACEOF
4749 if { (ac_try="$ac_cpp conftest.$ac_ext"
4750 case "(($ac_try" in
4751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4752 *) ac_try_echo=$ac_try;;
4753 esac
4754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4755 $as_echo "$ac_try_echo") >&5
4756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4757 ac_status=$?
4758 grep -v '^ *+' conftest.er1 >conftest.err
4759 rm -f conftest.er1
4760 cat conftest.err >&5
4761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); } >/dev/null && {
4763 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4764 test ! -s conftest.err
4765 }; then
4766 ac_header_preproc=yes
4767 else
4768 $as_echo "$as_me: failed program was:" >&5
4769 sed 's/^/| /' conftest.$ac_ext >&5
4770
4771 ac_header_preproc=no
4772 fi
4773
4774 rm -f conftest.err conftest.$ac_ext
4775 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4776 $as_echo "$ac_header_preproc" >&6; }
4777
4778 # So? What about this header?
4779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4780 yes:no: )
4781 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4782 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4783 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4784 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4785 ac_header_preproc=yes
4786 ;;
4787 no:yes:* )
4788 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4789 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4790 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4791 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4792 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4793 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4794 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4795 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4796 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4797 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4798 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4799 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4800
4801 ;;
4802 esac
4803 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4804 $as_echo_n "checking for minix/config.h... " >&6; }
4805 if test "${ac_cv_header_minix_config_h+set}" = set; then
4806 $as_echo_n "(cached) " >&6
4807 else
4808 ac_cv_header_minix_config_h=$ac_header_preproc
4809 fi
4810 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4811 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4812
4813 fi
4814 if test $ac_cv_header_minix_config_h = yes; then
4815 MINIX=yes
4816 else
4817 MINIX=
4818 fi
4819
4820
4821 if test "$MINIX" = yes; then
4822
4823 cat >>confdefs.h <<\_ACEOF
4824 #define _POSIX_SOURCE 1
4825 _ACEOF
4826
4827
4828 cat >>confdefs.h <<\_ACEOF
4829 #define _POSIX_1_SOURCE 2
4830 _ACEOF
4831
4832
4833 cat >>confdefs.h <<\_ACEOF
4834 #define _MINIX 1
4835 _ACEOF
4836
4837 fi
4838
4839
4840
4841 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4842 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4843 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4844 $as_echo_n "(cached) " >&6
4845 else
4846 cat >conftest.$ac_ext <<_ACEOF
4847 /* confdefs.h. */
4848 _ACEOF
4849 cat confdefs.h >>conftest.$ac_ext
4850 cat >>conftest.$ac_ext <<_ACEOF
4851 /* end confdefs.h. */
4852
4853 # define __EXTENSIONS__ 1
4854 $ac_includes_default
4855 int
4856 main ()
4857 {
4858
4859 ;
4860 return 0;
4861 }
4862 _ACEOF
4863 rm -f conftest.$ac_objext
4864 if { (ac_try="$ac_compile"
4865 case "(($ac_try" in
4866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4867 *) ac_try_echo=$ac_try;;
4868 esac
4869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4870 $as_echo "$ac_try_echo") >&5
4871 (eval "$ac_compile") 2>conftest.er1
4872 ac_status=$?
4873 grep -v '^ *+' conftest.er1 >conftest.err
4874 rm -f conftest.er1
4875 cat conftest.err >&5
4876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); } && {
4878 test -z "$ac_c_werror_flag" ||
4879 test ! -s conftest.err
4880 } && test -s conftest.$ac_objext; then
4881 ac_cv_safe_to_define___extensions__=yes
4882 else
4883 $as_echo "$as_me: failed program was:" >&5
4884 sed 's/^/| /' conftest.$ac_ext >&5
4885
4886 ac_cv_safe_to_define___extensions__=no
4887 fi
4888
4889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4890 fi
4891 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4892 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4893 test $ac_cv_safe_to_define___extensions__ = yes &&
4894 cat >>confdefs.h <<\_ACEOF
4895 #define __EXTENSIONS__ 1
4896 _ACEOF
4897
4898 cat >>confdefs.h <<\_ACEOF
4899 #define _ALL_SOURCE 1
4900 _ACEOF
4901
4902 cat >>confdefs.h <<\_ACEOF
4903 #define _GNU_SOURCE 1
4904 _ACEOF
4905
4906 cat >>confdefs.h <<\_ACEOF
4907 #define _POSIX_PTHREAD_SEMANTICS 1
4908 _ACEOF
4909
4910 cat >>confdefs.h <<\_ACEOF
4911 #define _TANDEM_SOURCE 1
4912 _ACEOF
4913
4914
4915
4916 ### Use -Wno-pointer-sign if the compiler supports it
4917 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4918 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4919 SAVE_CFLAGS="$CFLAGS"
4920 CFLAGS="$CFLAGS -Wno-pointer-sign"
4921 cat >conftest.$ac_ext <<_ACEOF
4922 /* confdefs.h. */
4923 _ACEOF
4924 cat confdefs.h >>conftest.$ac_ext
4925 cat >>conftest.$ac_ext <<_ACEOF
4926 /* end confdefs.h. */
4927
4928 int
4929 main ()
4930 {
4931
4932 ;
4933 return 0;
4934 }
4935 _ACEOF
4936 rm -f conftest.$ac_objext
4937 if { (ac_try="$ac_compile"
4938 case "(($ac_try" in
4939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4940 *) ac_try_echo=$ac_try;;
4941 esac
4942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4943 $as_echo "$ac_try_echo") >&5
4944 (eval "$ac_compile") 2>conftest.er1
4945 ac_status=$?
4946 grep -v '^ *+' conftest.er1 >conftest.err
4947 rm -f conftest.er1
4948 cat conftest.err >&5
4949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); } && {
4951 test -z "$ac_c_werror_flag" ||
4952 test ! -s conftest.err
4953 } && test -s conftest.$ac_objext; then
4954 has_option=yes
4955 else
4956 $as_echo "$as_me: failed program was:" >&5
4957 sed 's/^/| /' conftest.$ac_ext >&5
4958
4959 has_option=no
4960 fi
4961
4962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4963 if test $has_option = yes; then
4964 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4965 fi
4966 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4967 $as_echo "$has_option" >&6; }
4968 CFLAGS="$SAVE_CFLAGS"
4969 unset has_option
4970 unset SAVE_CFLAGS
4971
4972 ### Use -Wdeclaration-after-statement if the compiler supports it
4973 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4974 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4975 SAVE_CFLAGS="$CFLAGS"
4976 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4977 cat >conftest.$ac_ext <<_ACEOF
4978 /* confdefs.h. */
4979 _ACEOF
4980 cat confdefs.h >>conftest.$ac_ext
4981 cat >>conftest.$ac_ext <<_ACEOF
4982 /* end confdefs.h. */
4983
4984 int
4985 main ()
4986 {
4987
4988 ;
4989 return 0;
4990 }
4991 _ACEOF
4992 rm -f conftest.$ac_objext
4993 if { (ac_try="$ac_compile"
4994 case "(($ac_try" in
4995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4996 *) ac_try_echo=$ac_try;;
4997 esac
4998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4999 $as_echo "$ac_try_echo") >&5
5000 (eval "$ac_compile") 2>conftest.er1
5001 ac_status=$?
5002 grep -v '^ *+' conftest.er1 >conftest.err
5003 rm -f conftest.er1
5004 cat conftest.err >&5
5005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); } && {
5007 test -z "$ac_c_werror_flag" ||
5008 test ! -s conftest.err
5009 } && test -s conftest.$ac_objext; then
5010 has_option=yes
5011 else
5012 $as_echo "$as_me: failed program was:" >&5
5013 sed 's/^/| /' conftest.$ac_ext >&5
5014
5015 has_option=no
5016 fi
5017
5018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5019 if test $has_option = yes; then
5020 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5021 fi
5022 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
5023 $as_echo "$has_option" >&6; }
5024 CFLAGS="$SAVE_CFLAGS"
5025 unset has_option
5026 unset SAVE_CFLAGS
5027
5028 #### Some other nice autoconf tests.
5029
5030 ac_ext=c
5031 ac_cpp='$CPP $CPPFLAGS'
5032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5035 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5036 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5037 # On Suns, sometimes $CPP names a directory.
5038 if test -n "$CPP" && test -d "$CPP"; then
5039 CPP=
5040 fi
5041 if test -z "$CPP"; then
5042 if test "${ac_cv_prog_CPP+set}" = set; then
5043 $as_echo_n "(cached) " >&6
5044 else
5045 # Double quotes because CPP needs to be expanded
5046 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5047 do
5048 ac_preproc_ok=false
5049 for ac_c_preproc_warn_flag in '' yes
5050 do
5051 # Use a header file that comes with gcc, so configuring glibc
5052 # with a fresh cross-compiler works.
5053 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5054 # <limits.h> exists even on freestanding compilers.
5055 # On the NeXT, cc -E runs the code through the compiler's parser,
5056 # not just through cpp. "Syntax error" is here to catch this case.
5057 cat >conftest.$ac_ext <<_ACEOF
5058 /* confdefs.h. */
5059 _ACEOF
5060 cat confdefs.h >>conftest.$ac_ext
5061 cat >>conftest.$ac_ext <<_ACEOF
5062 /* end confdefs.h. */
5063 #ifdef __STDC__
5064 # include <limits.h>
5065 #else
5066 # include <assert.h>
5067 #endif
5068 Syntax error
5069 _ACEOF
5070 if { (ac_try="$ac_cpp conftest.$ac_ext"
5071 case "(($ac_try" in
5072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5073 *) ac_try_echo=$ac_try;;
5074 esac
5075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5076 $as_echo "$ac_try_echo") >&5
5077 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5078 ac_status=$?
5079 grep -v '^ *+' conftest.er1 >conftest.err
5080 rm -f conftest.er1
5081 cat conftest.err >&5
5082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); } >/dev/null && {
5084 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5085 test ! -s conftest.err
5086 }; then
5087 :
5088 else
5089 $as_echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5091
5092 # Broken: fails on valid input.
5093 continue
5094 fi
5095
5096 rm -f conftest.err conftest.$ac_ext
5097
5098 # OK, works on sane cases. Now check whether nonexistent headers
5099 # can be detected and how.
5100 cat >conftest.$ac_ext <<_ACEOF
5101 /* confdefs.h. */
5102 _ACEOF
5103 cat confdefs.h >>conftest.$ac_ext
5104 cat >>conftest.$ac_ext <<_ACEOF
5105 /* end confdefs.h. */
5106 #include <ac_nonexistent.h>
5107 _ACEOF
5108 if { (ac_try="$ac_cpp conftest.$ac_ext"
5109 case "(($ac_try" in
5110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5111 *) ac_try_echo=$ac_try;;
5112 esac
5113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5114 $as_echo "$ac_try_echo") >&5
5115 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5116 ac_status=$?
5117 grep -v '^ *+' conftest.er1 >conftest.err
5118 rm -f conftest.er1
5119 cat conftest.err >&5
5120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); } >/dev/null && {
5122 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5123 test ! -s conftest.err
5124 }; then
5125 # Broken: success on invalid input.
5126 continue
5127 else
5128 $as_echo "$as_me: failed program was:" >&5
5129 sed 's/^/| /' conftest.$ac_ext >&5
5130
5131 # Passes both tests.
5132 ac_preproc_ok=:
5133 break
5134 fi
5135
5136 rm -f conftest.err conftest.$ac_ext
5137
5138 done
5139 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5140 rm -f conftest.err conftest.$ac_ext
5141 if $ac_preproc_ok; then
5142 break
5143 fi
5144
5145 done
5146 ac_cv_prog_CPP=$CPP
5147
5148 fi
5149 CPP=$ac_cv_prog_CPP
5150 else
5151 ac_cv_prog_CPP=$CPP
5152 fi
5153 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5154 $as_echo "$CPP" >&6; }
5155 ac_preproc_ok=false
5156 for ac_c_preproc_warn_flag in '' yes
5157 do
5158 # Use a header file that comes with gcc, so configuring glibc
5159 # with a fresh cross-compiler works.
5160 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5161 # <limits.h> exists even on freestanding compilers.
5162 # On the NeXT, cc -E runs the code through the compiler's parser,
5163 # not just through cpp. "Syntax error" is here to catch this case.
5164 cat >conftest.$ac_ext <<_ACEOF
5165 /* confdefs.h. */
5166 _ACEOF
5167 cat confdefs.h >>conftest.$ac_ext
5168 cat >>conftest.$ac_ext <<_ACEOF
5169 /* end confdefs.h. */
5170 #ifdef __STDC__
5171 # include <limits.h>
5172 #else
5173 # include <assert.h>
5174 #endif
5175 Syntax error
5176 _ACEOF
5177 if { (ac_try="$ac_cpp conftest.$ac_ext"
5178 case "(($ac_try" in
5179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5180 *) ac_try_echo=$ac_try;;
5181 esac
5182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5183 $as_echo "$ac_try_echo") >&5
5184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5185 ac_status=$?
5186 grep -v '^ *+' conftest.er1 >conftest.err
5187 rm -f conftest.er1
5188 cat conftest.err >&5
5189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); } >/dev/null && {
5191 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5192 test ! -s conftest.err
5193 }; then
5194 :
5195 else
5196 $as_echo "$as_me: failed program was:" >&5
5197 sed 's/^/| /' conftest.$ac_ext >&5
5198
5199 # Broken: fails on valid input.
5200 continue
5201 fi
5202
5203 rm -f conftest.err conftest.$ac_ext
5204
5205 # OK, works on sane cases. Now check whether nonexistent headers
5206 # can be detected and how.
5207 cat >conftest.$ac_ext <<_ACEOF
5208 /* confdefs.h. */
5209 _ACEOF
5210 cat confdefs.h >>conftest.$ac_ext
5211 cat >>conftest.$ac_ext <<_ACEOF
5212 /* end confdefs.h. */
5213 #include <ac_nonexistent.h>
5214 _ACEOF
5215 if { (ac_try="$ac_cpp conftest.$ac_ext"
5216 case "(($ac_try" in
5217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5218 *) ac_try_echo=$ac_try;;
5219 esac
5220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5221 $as_echo "$ac_try_echo") >&5
5222 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5223 ac_status=$?
5224 grep -v '^ *+' conftest.er1 >conftest.err
5225 rm -f conftest.er1
5226 cat conftest.err >&5
5227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); } >/dev/null && {
5229 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5230 test ! -s conftest.err
5231 }; then
5232 # Broken: success on invalid input.
5233 continue
5234 else
5235 $as_echo "$as_me: failed program was:" >&5
5236 sed 's/^/| /' conftest.$ac_ext >&5
5237
5238 # Passes both tests.
5239 ac_preproc_ok=:
5240 break
5241 fi
5242
5243 rm -f conftest.err conftest.$ac_ext
5244
5245 done
5246 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5247 rm -f conftest.err conftest.$ac_ext
5248 if $ac_preproc_ok; then
5249 :
5250 else
5251 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5252 See \`config.log' for more details." >&5
5253 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5254 See \`config.log' for more details." >&2;}
5255 { (exit 1); exit 1; }; }
5256 fi
5257
5258 ac_ext=c
5259 ac_cpp='$CPP $CPPFLAGS'
5260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5263
5264 # Find a good install program. We prefer a C program (faster),
5265 # so one script is as good as another. But avoid the broken or
5266 # incompatible versions:
5267 # SysV /etc/install, /usr/sbin/install
5268 # SunOS /usr/etc/install
5269 # IRIX /sbin/install
5270 # AIX /bin/install
5271 # AmigaOS /C/install, which installs bootblocks on floppy discs
5272 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5273 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5274 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5275 # OS/2's system install, which has a completely different semantic
5276 # ./install, which can be erroneously created by make from ./install.sh.
5277 # Reject install programs that cannot install multiple files.
5278 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5279 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5280 if test -z "$INSTALL"; then
5281 if test "${ac_cv_path_install+set}" = set; then
5282 $as_echo_n "(cached) " >&6
5283 else
5284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 for as_dir in $PATH
5286 do
5287 IFS=$as_save_IFS
5288 test -z "$as_dir" && as_dir=.
5289 # Account for people who put trailing slashes in PATH elements.
5290 case $as_dir/ in
5291 ./ | .// | /cC/* | \
5292 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5293 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5294 /usr/ucb/* ) ;;
5295 *)
5296 # OSF1 and SCO ODT 3.0 have their own names for install.
5297 # Don't use installbsd from OSF since it installs stuff as root
5298 # by default.
5299 for ac_prog in ginstall scoinst install; do
5300 for ac_exec_ext in '' $ac_executable_extensions; do
5301 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5302 if test $ac_prog = install &&
5303 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5304 # AIX install. It has an incompatible calling convention.
5305 :
5306 elif test $ac_prog = install &&
5307 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5308 # program-specific install script used by HP pwplus--don't use.
5309 :
5310 else
5311 rm -rf conftest.one conftest.two conftest.dir
5312 echo one > conftest.one
5313 echo two > conftest.two
5314 mkdir conftest.dir
5315 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5316 test -s conftest.one && test -s conftest.two &&
5317 test -s conftest.dir/conftest.one &&
5318 test -s conftest.dir/conftest.two
5319 then
5320 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5321 break 3
5322 fi
5323 fi
5324 fi
5325 done
5326 done
5327 ;;
5328 esac
5329
5330 done
5331 IFS=$as_save_IFS
5332
5333 rm -rf conftest.one conftest.two conftest.dir
5334
5335 fi
5336 if test "${ac_cv_path_install+set}" = set; then
5337 INSTALL=$ac_cv_path_install
5338 else
5339 # As a last resort, use the slow shell script. Don't cache a
5340 # value for INSTALL within a source directory, because that will
5341 # break other packages using the cache if that directory is
5342 # removed, or if the value is a relative name.
5343 INSTALL=$ac_install_sh
5344 fi
5345 fi
5346 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5347 $as_echo "$INSTALL" >&6; }
5348
5349 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5350 # It thinks the first close brace ends the variable substitution.
5351 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5352
5353 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5354
5355 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5356
5357 if test "x$RANLIB" = x; then
5358 if test -n "$ac_tool_prefix"; then
5359 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5360 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5361 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5362 $as_echo_n "checking for $ac_word... " >&6; }
5363 if test "${ac_cv_prog_RANLIB+set}" = set; then
5364 $as_echo_n "(cached) " >&6
5365 else
5366 if test -n "$RANLIB"; then
5367 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5368 else
5369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370 for as_dir in $PATH
5371 do
5372 IFS=$as_save_IFS
5373 test -z "$as_dir" && as_dir=.
5374 for ac_exec_ext in '' $ac_executable_extensions; do
5375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5376 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5377 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5378 break 2
5379 fi
5380 done
5381 done
5382 IFS=$as_save_IFS
5383
5384 fi
5385 fi
5386 RANLIB=$ac_cv_prog_RANLIB
5387 if test -n "$RANLIB"; then
5388 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5389 $as_echo "$RANLIB" >&6; }
5390 else
5391 { $as_echo "$as_me:$LINENO: result: no" >&5
5392 $as_echo "no" >&6; }
5393 fi
5394
5395
5396 fi
5397 if test -z "$ac_cv_prog_RANLIB"; then
5398 ac_ct_RANLIB=$RANLIB
5399 # Extract the first word of "ranlib", so it can be a program name with args.
5400 set dummy ranlib; ac_word=$2
5401 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5402 $as_echo_n "checking for $ac_word... " >&6; }
5403 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5404 $as_echo_n "(cached) " >&6
5405 else
5406 if test -n "$ac_ct_RANLIB"; then
5407 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5408 else
5409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410 for as_dir in $PATH
5411 do
5412 IFS=$as_save_IFS
5413 test -z "$as_dir" && as_dir=.
5414 for ac_exec_ext in '' $ac_executable_extensions; do
5415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5416 ac_cv_prog_ac_ct_RANLIB="ranlib"
5417 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5418 break 2
5419 fi
5420 done
5421 done
5422 IFS=$as_save_IFS
5423
5424 fi
5425 fi
5426 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5427 if test -n "$ac_ct_RANLIB"; then
5428 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5429 $as_echo "$ac_ct_RANLIB" >&6; }
5430 else
5431 { $as_echo "$as_me:$LINENO: result: no" >&5
5432 $as_echo "no" >&6; }
5433 fi
5434
5435 if test "x$ac_ct_RANLIB" = x; then
5436 RANLIB=":"
5437 else
5438 case $cross_compiling:$ac_tool_warned in
5439 yes:)
5440 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5441 whose name does not start with the host triplet. If you think this
5442 configuration is useful to you, please write to autoconf@gnu.org." >&5
5443 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5444 whose name does not start with the host triplet. If you think this
5445 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5446 ac_tool_warned=yes ;;
5447 esac
5448 RANLIB=$ac_ct_RANLIB
5449 fi
5450 else
5451 RANLIB="$ac_cv_prog_RANLIB"
5452 fi
5453
5454 fi
5455
5456 ## Although we're running on an amd64 kernel, we're actually compiling for
5457 ## the x86 architecture. The user should probably have provided an
5458 ## explicit --build to `configure', but if everything else than the kernel
5459 ## is running in i386 mode, we can help them out.
5460 if test "$machine" = "amdx86-64"; then
5461 { $as_echo "$as_me:$LINENO: checking whether i386 is declared" >&5
5462 $as_echo_n "checking whether i386 is declared... " >&6; }
5463 if test "${ac_cv_have_decl_i386+set}" = set; then
5464 $as_echo_n "(cached) " >&6
5465 else
5466 cat >conftest.$ac_ext <<_ACEOF
5467 /* confdefs.h. */
5468 _ACEOF
5469 cat confdefs.h >>conftest.$ac_ext
5470 cat >>conftest.$ac_ext <<_ACEOF
5471 /* end confdefs.h. */
5472 $ac_includes_default
5473 int
5474 main ()
5475 {
5476 #ifndef i386
5477 (void) i386;
5478 #endif
5479
5480 ;
5481 return 0;
5482 }
5483 _ACEOF
5484 rm -f conftest.$ac_objext
5485 if { (ac_try="$ac_compile"
5486 case "(($ac_try" in
5487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488 *) ac_try_echo=$ac_try;;
5489 esac
5490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5491 $as_echo "$ac_try_echo") >&5
5492 (eval "$ac_compile") 2>conftest.er1
5493 ac_status=$?
5494 grep -v '^ *+' conftest.er1 >conftest.err
5495 rm -f conftest.er1
5496 cat conftest.err >&5
5497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); } && {
5499 test -z "$ac_c_werror_flag" ||
5500 test ! -s conftest.err
5501 } && test -s conftest.$ac_objext; then
5502 ac_cv_have_decl_i386=yes
5503 else
5504 $as_echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.$ac_ext >&5
5506
5507 ac_cv_have_decl_i386=no
5508 fi
5509
5510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5511 fi
5512 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_i386" >&5
5513 $as_echo "$ac_cv_have_decl_i386" >&6; }
5514
5515 if test "$ac_cv_have_decl_i386" = "yes"; then
5516 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5517 machine=intel386
5518 machfile="m/${machine}.h"
5519 fi
5520 fi
5521
5522 # Extract the first word of "install-info", so it can be a program name with args.
5523 set dummy install-info; ac_word=$2
5524 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5525 $as_echo_n "checking for $ac_word... " >&6; }
5526 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5527 $as_echo_n "(cached) " >&6
5528 else
5529 case $INSTALL_INFO in
5530 [\\/]* | ?:[\\/]*)
5531 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5532 ;;
5533 *)
5534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535 for as_dir in $PATH
5536 do
5537 IFS=$as_save_IFS
5538 test -z "$as_dir" && as_dir=.
5539 for ac_exec_ext in '' $ac_executable_extensions; do
5540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5541 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5542 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5543 break 2
5544 fi
5545 done
5546 done
5547 IFS=$as_save_IFS
5548
5549 ;;
5550 esac
5551 fi
5552 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5553 if test -n "$INSTALL_INFO"; then
5554 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5555 $as_echo "$INSTALL_INFO" >&6; }
5556 else
5557 { $as_echo "$as_me:$LINENO: result: no" >&5
5558 $as_echo "no" >&6; }
5559 fi
5560
5561
5562 # Extract the first word of "install-info", so it can be a program name with args.
5563 set dummy install-info; ac_word=$2
5564 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5565 $as_echo_n "checking for $ac_word... " >&6; }
5566 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5567 $as_echo_n "(cached) " >&6
5568 else
5569 case $INSTALL_INFO in
5570 [\\/]* | ?:[\\/]*)
5571 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5572 ;;
5573 *)
5574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575 for as_dir in /usr/sbin
5576 do
5577 IFS=$as_save_IFS
5578 test -z "$as_dir" && as_dir=.
5579 for ac_exec_ext in '' $ac_executable_extensions; do
5580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5581 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5582 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5583 break 2
5584 fi
5585 done
5586 done
5587 IFS=$as_save_IFS
5588
5589 ;;
5590 esac
5591 fi
5592 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5593 if test -n "$INSTALL_INFO"; then
5594 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5595 $as_echo "$INSTALL_INFO" >&6; }
5596 else
5597 { $as_echo "$as_me:$LINENO: result: no" >&5
5598 $as_echo "no" >&6; }
5599 fi
5600
5601
5602 # Extract the first word of "install-info", so it can be a program name with args.
5603 set dummy install-info; ac_word=$2
5604 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5605 $as_echo_n "checking for $ac_word... " >&6; }
5606 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5607 $as_echo_n "(cached) " >&6
5608 else
5609 case $INSTALL_INFO in
5610 [\\/]* | ?:[\\/]*)
5611 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5612 ;;
5613 *)
5614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615 for as_dir in /sbin
5616 do
5617 IFS=$as_save_IFS
5618 test -z "$as_dir" && as_dir=.
5619 for ac_exec_ext in '' $ac_executable_extensions; do
5620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5621 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5622 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5623 break 2
5624 fi
5625 done
5626 done
5627 IFS=$as_save_IFS
5628
5629 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5630 ;;
5631 esac
5632 fi
5633 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5634 if test -n "$INSTALL_INFO"; then
5635 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5636 $as_echo "$INSTALL_INFO" >&6; }
5637 else
5638 { $as_echo "$as_me:$LINENO: result: no" >&5
5639 $as_echo "no" >&6; }
5640 fi
5641
5642
5643 # Extract the first word of "gzip", so it can be a program name with args.
5644 set dummy gzip; ac_word=$2
5645 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5646 $as_echo_n "checking for $ac_word... " >&6; }
5647 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5648 $as_echo_n "(cached) " >&6
5649 else
5650 case $GZIP_PROG in
5651 [\\/]* | ?:[\\/]*)
5652 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5653 ;;
5654 *)
5655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656 for as_dir in $PATH
5657 do
5658 IFS=$as_save_IFS
5659 test -z "$as_dir" && as_dir=.
5660 for ac_exec_ext in '' $ac_executable_extensions; do
5661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5662 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5663 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5664 break 2
5665 fi
5666 done
5667 done
5668 IFS=$as_save_IFS
5669
5670 ;;
5671 esac
5672 fi
5673 GZIP_PROG=$ac_cv_path_GZIP_PROG
5674 if test -n "$GZIP_PROG"; then
5675 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5676 $as_echo "$GZIP_PROG" >&6; }
5677 else
5678 { $as_echo "$as_me:$LINENO: result: no" >&5
5679 $as_echo "no" >&6; }
5680 fi
5681
5682
5683
5684
5685 ## Need makeinfo >= 4.6 (?) to build the manuals.
5686 # Extract the first word of "makeinfo", so it can be a program name with args.
5687 set dummy makeinfo; ac_word=$2
5688 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5689 $as_echo_n "checking for $ac_word... " >&6; }
5690 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5691 $as_echo_n "(cached) " >&6
5692 else
5693 case $MAKEINFO in
5694 [\\/]* | ?:[\\/]*)
5695 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5696 ;;
5697 *)
5698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699 for as_dir in $PATH
5700 do
5701 IFS=$as_save_IFS
5702 test -z "$as_dir" && as_dir=.
5703 for ac_exec_ext in '' $ac_executable_extensions; do
5704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5705 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5706 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5707 break 2
5708 fi
5709 done
5710 done
5711 IFS=$as_save_IFS
5712
5713 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5714 ;;
5715 esac
5716 fi
5717 MAKEINFO=$ac_cv_path_MAKEINFO
5718 if test -n "$MAKEINFO"; then
5719 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5720 $as_echo "$MAKEINFO" >&6; }
5721 else
5722 { $as_echo "$as_me:$LINENO: result: no" >&5
5723 $as_echo "no" >&6; }
5724 fi
5725
5726
5727 if test "$MAKEINFO" != "no" && \
5728 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
5729 MAKEINFO=no
5730 fi
5731
5732 ## Makeinfo is unusual. For a released Emacs, the manuals are
5733 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5734 ## therefore in the category of "special tools" not normally required, which
5735 ## configure does not have to check for (eg autoconf itself).
5736 ## In a Bazaar checkout on the other hand, the manuals are not included.
5737 ## So makeinfo is a requirement to build from Bazaar, and configure
5738 ## should test for it as it does for any other build requirement.
5739 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5740 ## with pre-built manuals, from a Bazaar checkout.
5741 if test "$MAKEINFO" = "no"; then
5742 if test "x${with_makeinfo}" = "xno"; then
5743 MAKEINFO=off
5744 elif test ! -e $srcdir/info/emacs; then
5745 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5746 source tree does not seem to have pre-built manuals in the \`info' directory.
5747 Either install a suitable version of makeinfo, or re-run configure
5748 with the \`--without-makeinfo' option to build without the manuals. " >&5
5749 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5750 source tree does not seem to have pre-built manuals in the \`info' directory.
5751 Either install a suitable version of makeinfo, or re-run configure
5752 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5753 { (exit 1); exit 1; }; }
5754 fi
5755 fi
5756
5757
5758 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5759 then
5760 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5761 fi
5762
5763 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5764 then
5765 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5766 fi
5767
5768
5769 late_LDFLAGS=$LDFLAGS
5770 if test "$GCC" = yes; then
5771 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5772 else
5773 LDFLAGS="$LDFLAGS -znocombreloc"
5774 fi
5775
5776 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5777 $as_echo_n "checking for -znocombreloc... " >&6; }
5778 cat >conftest.$ac_ext <<_ACEOF
5779 main(){return 0;}
5780 _ACEOF
5781 rm -f conftest.$ac_objext conftest$ac_exeext
5782 if { (ac_try="$ac_link"
5783 case "(($ac_try" in
5784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5785 *) ac_try_echo=$ac_try;;
5786 esac
5787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5788 $as_echo "$ac_try_echo") >&5
5789 (eval "$ac_link") 2>conftest.er1
5790 ac_status=$?
5791 grep -v '^ *+' conftest.er1 >conftest.err
5792 rm -f conftest.er1
5793 cat conftest.err >&5
5794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); } && {
5796 test -z "$ac_c_werror_flag" ||
5797 test ! -s conftest.err
5798 } && test -s conftest$ac_exeext && {
5799 test "$cross_compiling" = yes ||
5800 $as_test_x conftest$ac_exeext
5801 }; then
5802 { $as_echo "$as_me:$LINENO: result: yes" >&5
5803 $as_echo "yes" >&6; }
5804 else
5805 $as_echo "$as_me: failed program was:" >&5
5806 sed 's/^/| /' conftest.$ac_ext >&5
5807
5808 LDFLAGS=$late_LDFLAGS
5809 { $as_echo "$as_me:$LINENO: result: no" >&5
5810 $as_echo "no" >&6; }
5811 fi
5812
5813 rm -rf conftest.dSYM
5814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5815 conftest$ac_exeext conftest.$ac_ext
5816
5817 #### Extract some information from the operating system and machine files.
5818
5819 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5820 - which libraries the lib-src programs will want, and
5821 - whether the GNU malloc routines are usable..." >&5
5822 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5823 - which libraries the lib-src programs will want, and
5824 - whether the GNU malloc routines are usable..." >&6;}
5825
5826 ### First figure out CFLAGS (which we use for running the compiler here)
5827 ### and REAL_CFLAGS (which we use for real compilation).
5828 ### The two are the same except on a few systems, where they are made
5829 ### different to work around various lossages. For example,
5830 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5831 ### as implying static linking.
5832
5833 ### If the CFLAGS env var is specified, we use that value
5834 ### instead of the default.
5835
5836 ### It's not important that this name contain the PID; you can't run
5837 ### two configures in the same directory and have anything work
5838 ### anyway.
5839 tempcname="conftest.c"
5840
5841 echo '
5842 #include "'${srcdir}'/src/'${opsysfile}'"
5843 #include "'${srcdir}'/src/'${machfile}'"
5844
5845 configure___ LIBX=-lX11
5846
5847 configure___ unexec=UNEXEC
5848
5849 #ifdef SYSTEM_MALLOC
5850 configure___ system_malloc=yes
5851 #else
5852 configure___ system_malloc=no
5853 #endif
5854
5855 #ifdef USE_MMAP_FOR_BUFFERS
5856 configure___ use_mmap_for_buffers=yes
5857 #else
5858 configure___ use_mmap_for_buffers=no
5859 #endif
5860
5861 #ifndef C_OPTIMIZE_SWITCH
5862 #ifdef __GNUC__
5863 #define C_OPTIMIZE_SWITCH -O2
5864 #else
5865 #define C_OPTIMIZE_SWITCH -O
5866 #endif
5867 #endif
5868
5869 #ifndef C_WARNINGS_SWITCH
5870 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5871 #endif
5872
5873 #ifdef THIS_IS_CONFIGURE
5874
5875 /* Get the CFLAGS for tests in configure. */
5876 #ifdef __GNUC__
5877 configure___ CFLAGS=-g C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5878 #else
5879 configure___ CFLAGS='${SPECIFIED_CFLAGS}'
5880 #endif
5881
5882 #else /* not THIS_IS_CONFIGURE */
5883
5884 /* Get the CFLAGS for real compilation. */
5885 #ifdef __GNUC__
5886 configure___ REAL_CFLAGS=-g C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5887 #else
5888 configure___ REAL_CFLAGS='${SPECIFIED_CFLAGS}'
5889 #endif
5890
5891 #endif /* not THIS_IS_CONFIGURE */
5892 ' > ${tempcname}
5893
5894 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5895
5896 # The value of CPP is a quoted variable reference, so we need to do this
5897 # to get its actual value...
5898 CPP=`eval "echo $CPP"`
5899 eval `${CPP} -Isrc ${tempcname} \
5900 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5901 if test "x$SPECIFIED_CFLAGS" = x; then
5902 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5903 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5904 else
5905 REAL_CFLAGS="$CFLAGS"
5906 fi
5907 rm ${tempcname}
5908
5909
5910 LD_SWITCH_SYSTEM=
5911 case "$opsys" in
5912 freebsd)
5913 ## Let `ld' find image libs and similar things in /usr/local/lib.
5914 ## The system compiler, GCC, has apparently been modified to not
5915 ## look there, contrary to what a stock GCC would do.
5916 LD_SWITCH_SYSTEM=-L/usr/local/lib
5917 ;;
5918
5919 gnu-linux)
5920 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5921 test "$machine" = "mips" && LD_SWITCH_SYSTEM="-G 0"
5922 ;;
5923
5924 netbsd)
5925 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5926 ;;
5927
5928 openbsd)
5929 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5930 ## otherwise Emacs dumps core on elf systems.
5931 LD_SWITCH_SYSTEM="-Z"
5932 ;;
5933 esac
5934
5935
5936 ac_link="$ac_link $LD_SWITCH_SYSTEM"
5937
5938 ## This is fun. Some settings of LD_SWITCH_SYSTEM reference
5939 ## LD_SWITCH_X_SITE_AUX, which has not been defined yet. When using
5940 ## cpp, it was expanded to null. Thus LD_SWITCH_SYSTEM had different
5941 ## values in configure and the Makefiles. How helpful.
5942 ## FIXME why not use LD_SWITCH_SYSTEM_TEMACS (or somesuch) instead?
5943 case "$opsys" in
5944 gnu-linux)
5945 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
5946 LD_SWITCH_SYSTEM="$LD_SWITCH_SYSTEM \$(LD_SWITCH_X_SITE_AUX)" ;;
5947
5948 netbsd|openbsd)
5949 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5950 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5951 esac
5952
5953
5954 C_SWITCH_MACHINE=
5955 if test "$machine" = "alpha"; then
5956 { $as_echo "$as_me:$LINENO: checking whether __ELF__ is declared" >&5
5957 $as_echo_n "checking whether __ELF__ is declared... " >&6; }
5958 if test "${ac_cv_have_decl___ELF__+set}" = set; then
5959 $as_echo_n "(cached) " >&6
5960 else
5961 cat >conftest.$ac_ext <<_ACEOF
5962 /* confdefs.h. */
5963 _ACEOF
5964 cat confdefs.h >>conftest.$ac_ext
5965 cat >>conftest.$ac_ext <<_ACEOF
5966 /* end confdefs.h. */
5967 $ac_includes_default
5968 int
5969 main ()
5970 {
5971 #ifndef __ELF__
5972 (void) __ELF__;
5973 #endif
5974
5975 ;
5976 return 0;
5977 }
5978 _ACEOF
5979 rm -f conftest.$ac_objext
5980 if { (ac_try="$ac_compile"
5981 case "(($ac_try" in
5982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5983 *) ac_try_echo=$ac_try;;
5984 esac
5985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5986 $as_echo "$ac_try_echo") >&5
5987 (eval "$ac_compile") 2>conftest.er1
5988 ac_status=$?
5989 grep -v '^ *+' conftest.er1 >conftest.err
5990 rm -f conftest.er1
5991 cat conftest.err >&5
5992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); } && {
5994 test -z "$ac_c_werror_flag" ||
5995 test ! -s conftest.err
5996 } && test -s conftest.$ac_objext; then
5997 ac_cv_have_decl___ELF__=yes
5998 else
5999 $as_echo "$as_me: failed program was:" >&5
6000 sed 's/^/| /' conftest.$ac_ext >&5
6001
6002 ac_cv_have_decl___ELF__=no
6003 fi
6004
6005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6006 fi
6007 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___ELF__" >&5
6008 $as_echo "$ac_cv_have_decl___ELF__" >&6; }
6009
6010 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6011 ## With ELF, make sure that all common symbols get allocated to in the
6012 ## data section. Otherwise, the dump of temacs may miss variables in
6013 ## the shared library that have been initialized. For example, with
6014 ## GNU libc, __malloc_initialized would normally be resolved to the
6015 ## shared library's .bss section, which is fatal.
6016 if test "x$GCC" = "xyes"; then
6017 C_SWITCH_MACHINE="-fno-common"
6018 else
6019 { { $as_echo "$as_me:$LINENO: error: What gives? Fix me if DEC Unix supports ELF now." >&5
6020 $as_echo "$as_me: error: What gives? Fix me if DEC Unix supports ELF now." >&2;}
6021 { (exit 1); exit 1; }; }
6022 fi
6023 fi
6024 fi
6025
6026
6027
6028 C_SWITCH_SYSTEM=
6029 ## Some programs in src produce warnings saying certain subprograms
6030 ## are too complex and need a MAXMEM value greater than 2000 for
6031 ## additional optimization. --nils@exp-math.uni-essen.de
6032 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6033 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6034 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6035 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6036
6037
6038
6039 LIBS_SYSTEM=
6040 case "$opsys" in
6041 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6042 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6043
6044 freebsd) LIBS_SYSTEM="-lutil" ;;
6045
6046 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6047
6048 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
6049
6050 ## Motif needs -lgen.
6051 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6052 esac
6053
6054
6055
6056 ### Make sure subsequent tests use flags consistent with the build flags.
6057
6058 if test x"${OVERRIDE_CPPFLAGS}" != x; then
6059 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
6060 else
6061 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6062 fi
6063
6064
6065
6066 # Check whether --enable-largefile was given.
6067 if test "${enable_largefile+set}" = set; then
6068 enableval=$enable_largefile;
6069 fi
6070
6071 if test "$enable_largefile" != no; then
6072
6073 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
6074 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6075 if test "${ac_cv_sys_largefile_CC+set}" = set; then
6076 $as_echo_n "(cached) " >&6
6077 else
6078 ac_cv_sys_largefile_CC=no
6079 if test "$GCC" != yes; then
6080 ac_save_CC=$CC
6081 while :; do
6082 # IRIX 6.2 and later do not support large files by default,
6083 # so use the C compiler's -n32 option if that helps.
6084 cat >conftest.$ac_ext <<_ACEOF
6085 /* confdefs.h. */
6086 _ACEOF
6087 cat confdefs.h >>conftest.$ac_ext
6088 cat >>conftest.$ac_ext <<_ACEOF
6089 /* end confdefs.h. */
6090 #include <sys/types.h>
6091 /* Check that off_t can represent 2**63 - 1 correctly.
6092 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6093 since some C++ compilers masquerading as C compilers
6094 incorrectly reject 9223372036854775807. */
6095 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6096 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6097 && LARGE_OFF_T % 2147483647 == 1)
6098 ? 1 : -1];
6099 int
6100 main ()
6101 {
6102
6103 ;
6104 return 0;
6105 }
6106 _ACEOF
6107 rm -f conftest.$ac_objext
6108 if { (ac_try="$ac_compile"
6109 case "(($ac_try" in
6110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6111 *) ac_try_echo=$ac_try;;
6112 esac
6113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6114 $as_echo "$ac_try_echo") >&5
6115 (eval "$ac_compile") 2>conftest.er1
6116 ac_status=$?
6117 grep -v '^ *+' conftest.er1 >conftest.err
6118 rm -f conftest.er1
6119 cat conftest.err >&5
6120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121 (exit $ac_status); } && {
6122 test -z "$ac_c_werror_flag" ||
6123 test ! -s conftest.err
6124 } && test -s conftest.$ac_objext; then
6125 break
6126 else
6127 $as_echo "$as_me: failed program was:" >&5
6128 sed 's/^/| /' conftest.$ac_ext >&5
6129
6130
6131 fi
6132
6133 rm -f core conftest.err conftest.$ac_objext
6134 CC="$CC -n32"
6135 rm -f conftest.$ac_objext
6136 if { (ac_try="$ac_compile"
6137 case "(($ac_try" in
6138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6139 *) ac_try_echo=$ac_try;;
6140 esac
6141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6142 $as_echo "$ac_try_echo") >&5
6143 (eval "$ac_compile") 2>conftest.er1
6144 ac_status=$?
6145 grep -v '^ *+' conftest.er1 >conftest.err
6146 rm -f conftest.er1
6147 cat conftest.err >&5
6148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); } && {
6150 test -z "$ac_c_werror_flag" ||
6151 test ! -s conftest.err
6152 } && test -s conftest.$ac_objext; then
6153 ac_cv_sys_largefile_CC=' -n32'; break
6154 else
6155 $as_echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.$ac_ext >&5
6157
6158
6159 fi
6160
6161 rm -f core conftest.err conftest.$ac_objext
6162 break
6163 done
6164 CC=$ac_save_CC
6165 rm -f conftest.$ac_ext
6166 fi
6167 fi
6168 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6169 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6170 if test "$ac_cv_sys_largefile_CC" != no; then
6171 CC=$CC$ac_cv_sys_largefile_CC
6172 fi
6173
6174 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6175 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6176 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6177 $as_echo_n "(cached) " >&6
6178 else
6179 while :; do
6180 cat >conftest.$ac_ext <<_ACEOF
6181 /* confdefs.h. */
6182 _ACEOF
6183 cat confdefs.h >>conftest.$ac_ext
6184 cat >>conftest.$ac_ext <<_ACEOF
6185 /* end confdefs.h. */
6186 #include <sys/types.h>
6187 /* Check that off_t can represent 2**63 - 1 correctly.
6188 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6189 since some C++ compilers masquerading as C compilers
6190 incorrectly reject 9223372036854775807. */
6191 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6192 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6193 && LARGE_OFF_T % 2147483647 == 1)
6194 ? 1 : -1];
6195 int
6196 main ()
6197 {
6198
6199 ;
6200 return 0;
6201 }
6202 _ACEOF
6203 rm -f conftest.$ac_objext
6204 if { (ac_try="$ac_compile"
6205 case "(($ac_try" in
6206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6207 *) ac_try_echo=$ac_try;;
6208 esac
6209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6210 $as_echo "$ac_try_echo") >&5
6211 (eval "$ac_compile") 2>conftest.er1
6212 ac_status=$?
6213 grep -v '^ *+' conftest.er1 >conftest.err
6214 rm -f conftest.er1
6215 cat conftest.err >&5
6216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); } && {
6218 test -z "$ac_c_werror_flag" ||
6219 test ! -s conftest.err
6220 } && test -s conftest.$ac_objext; then
6221 ac_cv_sys_file_offset_bits=no; break
6222 else
6223 $as_echo "$as_me: failed program was:" >&5
6224 sed 's/^/| /' conftest.$ac_ext >&5
6225
6226
6227 fi
6228
6229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6230 cat >conftest.$ac_ext <<_ACEOF
6231 /* confdefs.h. */
6232 _ACEOF
6233 cat confdefs.h >>conftest.$ac_ext
6234 cat >>conftest.$ac_ext <<_ACEOF
6235 /* end confdefs.h. */
6236 #define _FILE_OFFSET_BITS 64
6237 #include <sys/types.h>
6238 /* Check that off_t can represent 2**63 - 1 correctly.
6239 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6240 since some C++ compilers masquerading as C compilers
6241 incorrectly reject 9223372036854775807. */
6242 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6243 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6244 && LARGE_OFF_T % 2147483647 == 1)
6245 ? 1 : -1];
6246 int
6247 main ()
6248 {
6249
6250 ;
6251 return 0;
6252 }
6253 _ACEOF
6254 rm -f conftest.$ac_objext
6255 if { (ac_try="$ac_compile"
6256 case "(($ac_try" in
6257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6258 *) ac_try_echo=$ac_try;;
6259 esac
6260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6261 $as_echo "$ac_try_echo") >&5
6262 (eval "$ac_compile") 2>conftest.er1
6263 ac_status=$?
6264 grep -v '^ *+' conftest.er1 >conftest.err
6265 rm -f conftest.er1
6266 cat conftest.err >&5
6267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); } && {
6269 test -z "$ac_c_werror_flag" ||
6270 test ! -s conftest.err
6271 } && test -s conftest.$ac_objext; then
6272 ac_cv_sys_file_offset_bits=64; break
6273 else
6274 $as_echo "$as_me: failed program was:" >&5
6275 sed 's/^/| /' conftest.$ac_ext >&5
6276
6277
6278 fi
6279
6280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6281 ac_cv_sys_file_offset_bits=unknown
6282 break
6283 done
6284 fi
6285 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6286 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6287 case $ac_cv_sys_file_offset_bits in #(
6288 no | unknown) ;;
6289 *)
6290 cat >>confdefs.h <<_ACEOF
6291 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6292 _ACEOF
6293 ;;
6294 esac
6295 rm -rf conftest*
6296 if test $ac_cv_sys_file_offset_bits = unknown; then
6297 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6298 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6299 if test "${ac_cv_sys_large_files+set}" = set; then
6300 $as_echo_n "(cached) " >&6
6301 else
6302 while :; do
6303 cat >conftest.$ac_ext <<_ACEOF
6304 /* confdefs.h. */
6305 _ACEOF
6306 cat confdefs.h >>conftest.$ac_ext
6307 cat >>conftest.$ac_ext <<_ACEOF
6308 /* end confdefs.h. */
6309 #include <sys/types.h>
6310 /* Check that off_t can represent 2**63 - 1 correctly.
6311 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6312 since some C++ compilers masquerading as C compilers
6313 incorrectly reject 9223372036854775807. */
6314 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6315 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6316 && LARGE_OFF_T % 2147483647 == 1)
6317 ? 1 : -1];
6318 int
6319 main ()
6320 {
6321
6322 ;
6323 return 0;
6324 }
6325 _ACEOF
6326 rm -f conftest.$ac_objext
6327 if { (ac_try="$ac_compile"
6328 case "(($ac_try" in
6329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6330 *) ac_try_echo=$ac_try;;
6331 esac
6332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6333 $as_echo "$ac_try_echo") >&5
6334 (eval "$ac_compile") 2>conftest.er1
6335 ac_status=$?
6336 grep -v '^ *+' conftest.er1 >conftest.err
6337 rm -f conftest.er1
6338 cat conftest.err >&5
6339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); } && {
6341 test -z "$ac_c_werror_flag" ||
6342 test ! -s conftest.err
6343 } && test -s conftest.$ac_objext; then
6344 ac_cv_sys_large_files=no; break
6345 else
6346 $as_echo "$as_me: failed program was:" >&5
6347 sed 's/^/| /' conftest.$ac_ext >&5
6348
6349
6350 fi
6351
6352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6353 cat >conftest.$ac_ext <<_ACEOF
6354 /* confdefs.h. */
6355 _ACEOF
6356 cat confdefs.h >>conftest.$ac_ext
6357 cat >>conftest.$ac_ext <<_ACEOF
6358 /* end confdefs.h. */
6359 #define _LARGE_FILES 1
6360 #include <sys/types.h>
6361 /* Check that off_t can represent 2**63 - 1 correctly.
6362 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6363 since some C++ compilers masquerading as C compilers
6364 incorrectly reject 9223372036854775807. */
6365 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6366 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6367 && LARGE_OFF_T % 2147483647 == 1)
6368 ? 1 : -1];
6369 int
6370 main ()
6371 {
6372
6373 ;
6374 return 0;
6375 }
6376 _ACEOF
6377 rm -f conftest.$ac_objext
6378 if { (ac_try="$ac_compile"
6379 case "(($ac_try" in
6380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6381 *) ac_try_echo=$ac_try;;
6382 esac
6383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6384 $as_echo "$ac_try_echo") >&5
6385 (eval "$ac_compile") 2>conftest.er1
6386 ac_status=$?
6387 grep -v '^ *+' conftest.er1 >conftest.err
6388 rm -f conftest.er1
6389 cat conftest.err >&5
6390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } && {
6392 test -z "$ac_c_werror_flag" ||
6393 test ! -s conftest.err
6394 } && test -s conftest.$ac_objext; then
6395 ac_cv_sys_large_files=1; break
6396 else
6397 $as_echo "$as_me: failed program was:" >&5
6398 sed 's/^/| /' conftest.$ac_ext >&5
6399
6400
6401 fi
6402
6403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6404 ac_cv_sys_large_files=unknown
6405 break
6406 done
6407 fi
6408 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6409 $as_echo "$ac_cv_sys_large_files" >&6; }
6410 case $ac_cv_sys_large_files in #(
6411 no | unknown) ;;
6412 *)
6413 cat >>confdefs.h <<_ACEOF
6414 #define _LARGE_FILES $ac_cv_sys_large_files
6415 _ACEOF
6416 ;;
6417 esac
6418 rm -rf conftest*
6419 fi
6420 fi
6421
6422
6423
6424 ## If user specified a crt-dir, use that unconditionally.
6425 if test "X$CRT_DIR" = "X"; then
6426
6427 case "$canonical" in
6428 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
6429 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6430 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6431 ## For anything else (eg /usr/lib32), it is up the user to specify
6432 ## the location (bug#5655).
6433 ## Test for crtn.o, not just the directory, because sometimes the
6434 ## directory exists but does not have the relevant files (bug#1287).
6435 ## FIXME better to test for binary compatibility somehow.
6436 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
6437 ;;
6438
6439 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
6440 esac
6441
6442 case "$opsys" in
6443 hpux10-20) CRT_DIR=/lib ;;
6444 esac
6445
6446 ## Default is /usr/lib.
6447 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
6448
6449 else
6450
6451 ## Some platforms don't use any of these files, so it is not
6452 ## appropriate to put this test outside the if block.
6453 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
6454 { { $as_echo "$as_me:$LINENO: error: crt*.o not found in specified location." >&5
6455 $as_echo "$as_me: error: crt*.o not found in specified location." >&2;}
6456 { (exit 1); exit 1; }; }
6457
6458 fi
6459
6460
6461
6462 LIB_MATH=-lm
6463 LIB_STANDARD=
6464 START_FILES=
6465
6466 case $opsys in
6467 cygwin )
6468 LIB_MATH=
6469 START_FILES='ecrt0.o'
6470 ;;
6471 darwin )
6472 ## Adding -lm confuses the dynamic linker, so omit it.
6473 LIB_MATH=
6474 START_FILES='pre-crt0.o'
6475 ;;
6476 freebsd )
6477 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6478 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6479 ;;
6480 gnu-linux | gnu-kfreebsd )
6481 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
6482 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
6483 ;;
6484 hpux10-20 | hpux11 )
6485 LIB_STANDARD=-lc
6486 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
6487 ;;
6488 netbsd | openbsd )
6489 if test -f $CRT_DIR/crti.o; then
6490 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6491 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6492 else
6493 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
6494 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
6495 fi
6496 ;;
6497 esac
6498
6499
6500
6501
6502
6503
6504
6505 if test "${with_sound}" != "no"; then
6506 # Sound support for GNU/Linux and the free BSDs.
6507
6508
6509
6510 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6511 do
6512 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6514 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6515 $as_echo_n "checking for $ac_header... " >&6; }
6516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6517 $as_echo_n "(cached) " >&6
6518 fi
6519 ac_res=`eval 'as_val=${'$as_ac_Header'}
6520 $as_echo "$as_val"'`
6521 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6522 $as_echo "$ac_res" >&6; }
6523 else
6524 # Is the header compilable?
6525 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6526 $as_echo_n "checking $ac_header usability... " >&6; }
6527 cat >conftest.$ac_ext <<_ACEOF
6528 /* confdefs.h. */
6529 _ACEOF
6530 cat confdefs.h >>conftest.$ac_ext
6531 cat >>conftest.$ac_ext <<_ACEOF
6532 /* end confdefs.h. */
6533 $ac_includes_default
6534 #include <$ac_header>
6535 _ACEOF
6536 rm -f conftest.$ac_objext
6537 if { (ac_try="$ac_compile"
6538 case "(($ac_try" in
6539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6540 *) ac_try_echo=$ac_try;;
6541 esac
6542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6543 $as_echo "$ac_try_echo") >&5
6544 (eval "$ac_compile") 2>conftest.er1
6545 ac_status=$?
6546 grep -v '^ *+' conftest.er1 >conftest.err
6547 rm -f conftest.er1
6548 cat conftest.err >&5
6549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } && {
6551 test -z "$ac_c_werror_flag" ||
6552 test ! -s conftest.err
6553 } && test -s conftest.$ac_objext; then
6554 ac_header_compiler=yes
6555 else
6556 $as_echo "$as_me: failed program was:" >&5
6557 sed 's/^/| /' conftest.$ac_ext >&5
6558
6559 ac_header_compiler=no
6560 fi
6561
6562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6563 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6564 $as_echo "$ac_header_compiler" >&6; }
6565
6566 # Is the header present?
6567 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6568 $as_echo_n "checking $ac_header presence... " >&6; }
6569 cat >conftest.$ac_ext <<_ACEOF
6570 /* confdefs.h. */
6571 _ACEOF
6572 cat confdefs.h >>conftest.$ac_ext
6573 cat >>conftest.$ac_ext <<_ACEOF
6574 /* end confdefs.h. */
6575 #include <$ac_header>
6576 _ACEOF
6577 if { (ac_try="$ac_cpp conftest.$ac_ext"
6578 case "(($ac_try" in
6579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6580 *) ac_try_echo=$ac_try;;
6581 esac
6582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6583 $as_echo "$ac_try_echo") >&5
6584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6585 ac_status=$?
6586 grep -v '^ *+' conftest.er1 >conftest.err
6587 rm -f conftest.er1
6588 cat conftest.err >&5
6589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); } >/dev/null && {
6591 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6592 test ! -s conftest.err
6593 }; then
6594 ac_header_preproc=yes
6595 else
6596 $as_echo "$as_me: failed program was:" >&5
6597 sed 's/^/| /' conftest.$ac_ext >&5
6598
6599 ac_header_preproc=no
6600 fi
6601
6602 rm -f conftest.err conftest.$ac_ext
6603 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6604 $as_echo "$ac_header_preproc" >&6; }
6605
6606 # So? What about this header?
6607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6608 yes:no: )
6609 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6610 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6612 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6613 ac_header_preproc=yes
6614 ;;
6615 no:yes:* )
6616 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6617 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6618 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6619 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6620 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6621 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6622 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6623 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6624 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6625 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6626 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6627 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6628
6629 ;;
6630 esac
6631 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6632 $as_echo_n "checking for $ac_header... " >&6; }
6633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6634 $as_echo_n "(cached) " >&6
6635 else
6636 eval "$as_ac_Header=\$ac_header_preproc"
6637 fi
6638 ac_res=`eval 'as_val=${'$as_ac_Header'}
6639 $as_echo "$as_val"'`
6640 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6641 $as_echo "$ac_res" >&6; }
6642
6643 fi
6644 if test `eval 'as_val=${'$as_ac_Header'}
6645 $as_echo "$as_val"'` = yes; then
6646 cat >>confdefs.h <<_ACEOF
6647 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6648 _ACEOF
6649
6650 fi
6651
6652 done
6653
6654 # Emulation library used on NetBSD.
6655 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6656 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6657 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6658 $as_echo_n "(cached) " >&6
6659 else
6660 ac_check_lib_save_LIBS=$LIBS
6661 LIBS="-lossaudio $LIBS"
6662 cat >conftest.$ac_ext <<_ACEOF
6663 /* confdefs.h. */
6664 _ACEOF
6665 cat confdefs.h >>conftest.$ac_ext
6666 cat >>conftest.$ac_ext <<_ACEOF
6667 /* end confdefs.h. */
6668
6669 /* Override any GCC internal prototype to avoid an error.
6670 Use char because int might match the return type of a GCC
6671 builtin and then its argument prototype would still apply. */
6672 #ifdef __cplusplus
6673 extern "C"
6674 #endif
6675 char _oss_ioctl ();
6676 int
6677 main ()
6678 {
6679 return _oss_ioctl ();
6680 ;
6681 return 0;
6682 }
6683 _ACEOF
6684 rm -f conftest.$ac_objext conftest$ac_exeext
6685 if { (ac_try="$ac_link"
6686 case "(($ac_try" in
6687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6688 *) ac_try_echo=$ac_try;;
6689 esac
6690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6691 $as_echo "$ac_try_echo") >&5
6692 (eval "$ac_link") 2>conftest.er1
6693 ac_status=$?
6694 grep -v '^ *+' conftest.er1 >conftest.err
6695 rm -f conftest.er1
6696 cat conftest.err >&5
6697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); } && {
6699 test -z "$ac_c_werror_flag" ||
6700 test ! -s conftest.err
6701 } && test -s conftest$ac_exeext && {
6702 test "$cross_compiling" = yes ||
6703 $as_test_x conftest$ac_exeext
6704 }; then
6705 ac_cv_lib_ossaudio__oss_ioctl=yes
6706 else
6707 $as_echo "$as_me: failed program was:" >&5
6708 sed 's/^/| /' conftest.$ac_ext >&5
6709
6710 ac_cv_lib_ossaudio__oss_ioctl=no
6711 fi
6712
6713 rm -rf conftest.dSYM
6714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6715 conftest$ac_exeext conftest.$ac_ext
6716 LIBS=$ac_check_lib_save_LIBS
6717 fi
6718 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6719 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6720 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6721 LIBSOUND=-lossaudio
6722 else
6723 LIBSOUND=
6724 fi
6725
6726
6727
6728 ALSA_REQUIRED=1.0.0
6729 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6730
6731 succeeded=no
6732
6733 # Extract the first word of "pkg-config", so it can be a program name with args.
6734 set dummy pkg-config; ac_word=$2
6735 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6736 $as_echo_n "checking for $ac_word... " >&6; }
6737 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6738 $as_echo_n "(cached) " >&6
6739 else
6740 case $PKG_CONFIG in
6741 [\\/]* | ?:[\\/]*)
6742 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6743 ;;
6744 *)
6745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746 for as_dir in $PATH
6747 do
6748 IFS=$as_save_IFS
6749 test -z "$as_dir" && as_dir=.
6750 for ac_exec_ext in '' $ac_executable_extensions; do
6751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6752 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6753 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6754 break 2
6755 fi
6756 done
6757 done
6758 IFS=$as_save_IFS
6759
6760 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6761 ;;
6762 esac
6763 fi
6764 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6765 if test -n "$PKG_CONFIG"; then
6766 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6767 $as_echo "$PKG_CONFIG" >&6; }
6768 else
6769 { $as_echo "$as_me:$LINENO: result: no" >&5
6770 $as_echo "no" >&6; }
6771 fi
6772
6773
6774
6775 if test "$PKG_CONFIG" = "no" ; then
6776 HAVE_ALSA=no
6777 else
6778 PKG_CONFIG_MIN_VERSION=0.9.0
6779 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6780 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6781 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6782
6783 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6784 { $as_echo "$as_me:$LINENO: result: yes" >&5
6785 $as_echo "yes" >&6; }
6786 succeeded=yes
6787
6788 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6789 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6790 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6791 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6792 $as_echo "$ALSA_CFLAGS" >&6; }
6793
6794 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6795 $as_echo_n "checking ALSA_LIBS... " >&6; }
6796 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6797 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6798 $as_echo "$ALSA_LIBS" >&6; }
6799 else
6800 { $as_echo "$as_me:$LINENO: result: no" >&5
6801 $as_echo "no" >&6; }
6802 ALSA_CFLAGS=""
6803 ALSA_LIBS=""
6804 ## If we have a custom action on failure, don't print errors, but
6805 ## do set a variable so people can do so.
6806 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6807
6808 fi
6809
6810
6811
6812 else
6813 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6814 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6815 fi
6816 fi
6817
6818 if test $succeeded = yes; then
6819 HAVE_ALSA=yes
6820 else
6821 HAVE_ALSA=no
6822 fi
6823
6824 if test $HAVE_ALSA = yes; then
6825 SAVE_CFLAGS="$CFLAGS"
6826 SAVE_LDFLAGS="$LDFLAGS"
6827 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6828 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6829 cat >conftest.$ac_ext <<_ACEOF
6830 /* confdefs.h. */
6831 _ACEOF
6832 cat confdefs.h >>conftest.$ac_ext
6833 cat >>conftest.$ac_ext <<_ACEOF
6834 /* end confdefs.h. */
6835 #include <asoundlib.h>
6836 int
6837 main ()
6838 {
6839 snd_lib_error_set_handler (0);
6840 ;
6841 return 0;
6842 }
6843 _ACEOF
6844 rm -f conftest.$ac_objext
6845 if { (ac_try="$ac_compile"
6846 case "(($ac_try" in
6847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6848 *) ac_try_echo=$ac_try;;
6849 esac
6850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6851 $as_echo "$ac_try_echo") >&5
6852 (eval "$ac_compile") 2>conftest.er1
6853 ac_status=$?
6854 grep -v '^ *+' conftest.er1 >conftest.err
6855 rm -f conftest.er1
6856 cat conftest.err >&5
6857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); } && {
6859 test -z "$ac_c_werror_flag" ||
6860 test ! -s conftest.err
6861 } && test -s conftest.$ac_objext; then
6862 emacs_alsa_normal=yes
6863 else
6864 $as_echo "$as_me: failed program was:" >&5
6865 sed 's/^/| /' conftest.$ac_ext >&5
6866
6867 emacs_alsa_normal=no
6868 fi
6869
6870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6871 if test "$emacs_alsa_normal" != yes; then
6872 cat >conftest.$ac_ext <<_ACEOF
6873 /* confdefs.h. */
6874 _ACEOF
6875 cat confdefs.h >>conftest.$ac_ext
6876 cat >>conftest.$ac_ext <<_ACEOF
6877 /* end confdefs.h. */
6878 #include <alsa/asoundlib.h>
6879 int
6880 main ()
6881 {
6882 snd_lib_error_set_handler (0);
6883 ;
6884 return 0;
6885 }
6886 _ACEOF
6887 rm -f conftest.$ac_objext
6888 if { (ac_try="$ac_compile"
6889 case "(($ac_try" in
6890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6891 *) ac_try_echo=$ac_try;;
6892 esac
6893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6894 $as_echo "$ac_try_echo") >&5
6895 (eval "$ac_compile") 2>conftest.er1
6896 ac_status=$?
6897 grep -v '^ *+' conftest.er1 >conftest.err
6898 rm -f conftest.er1
6899 cat conftest.err >&5
6900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); } && {
6902 test -z "$ac_c_werror_flag" ||
6903 test ! -s conftest.err
6904 } && test -s conftest.$ac_objext; then
6905 emacs_alsa_subdir=yes
6906 else
6907 $as_echo "$as_me: failed program was:" >&5
6908 sed 's/^/| /' conftest.$ac_ext >&5
6909
6910 emacs_alsa_subdir=no
6911 fi
6912
6913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6914 if test "$emacs_alsa_subdir" != yes; then
6915 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6916 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6917 { (exit 1); exit 1; }; }
6918 fi
6919 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6920 fi
6921
6922 CFLAGS="$SAVE_CFLAGS"
6923 LDFLAGS="$SAVE_LDFLAGS"
6924 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6925 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6926
6927 cat >>confdefs.h <<\_ACEOF
6928 #define HAVE_ALSA 1
6929 _ACEOF
6930
6931 fi
6932
6933 fi
6934
6935
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 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6961 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6962 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6963 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6964 sys/utsname.h pwd.h utmp.h
6965 do
6966 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6968 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6969 $as_echo_n "checking for $ac_header... " >&6; }
6970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6971 $as_echo_n "(cached) " >&6
6972 fi
6973 ac_res=`eval 'as_val=${'$as_ac_Header'}
6974 $as_echo "$as_val"'`
6975 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6976 $as_echo "$ac_res" >&6; }
6977 else
6978 # Is the header compilable?
6979 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6980 $as_echo_n "checking $ac_header usability... " >&6; }
6981 cat >conftest.$ac_ext <<_ACEOF
6982 /* confdefs.h. */
6983 _ACEOF
6984 cat confdefs.h >>conftest.$ac_ext
6985 cat >>conftest.$ac_ext <<_ACEOF
6986 /* end confdefs.h. */
6987 $ac_includes_default
6988 #include <$ac_header>
6989 _ACEOF
6990 rm -f conftest.$ac_objext
6991 if { (ac_try="$ac_compile"
6992 case "(($ac_try" in
6993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6994 *) ac_try_echo=$ac_try;;
6995 esac
6996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6997 $as_echo "$ac_try_echo") >&5
6998 (eval "$ac_compile") 2>conftest.er1
6999 ac_status=$?
7000 grep -v '^ *+' conftest.er1 >conftest.err
7001 rm -f conftest.er1
7002 cat conftest.err >&5
7003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); } && {
7005 test -z "$ac_c_werror_flag" ||
7006 test ! -s conftest.err
7007 } && test -s conftest.$ac_objext; then
7008 ac_header_compiler=yes
7009 else
7010 $as_echo "$as_me: failed program was:" >&5
7011 sed 's/^/| /' conftest.$ac_ext >&5
7012
7013 ac_header_compiler=no
7014 fi
7015
7016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7017 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7018 $as_echo "$ac_header_compiler" >&6; }
7019
7020 # Is the header present?
7021 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7022 $as_echo_n "checking $ac_header presence... " >&6; }
7023 cat >conftest.$ac_ext <<_ACEOF
7024 /* confdefs.h. */
7025 _ACEOF
7026 cat confdefs.h >>conftest.$ac_ext
7027 cat >>conftest.$ac_ext <<_ACEOF
7028 /* end confdefs.h. */
7029 #include <$ac_header>
7030 _ACEOF
7031 if { (ac_try="$ac_cpp conftest.$ac_ext"
7032 case "(($ac_try" in
7033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7034 *) ac_try_echo=$ac_try;;
7035 esac
7036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7037 $as_echo "$ac_try_echo") >&5
7038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7039 ac_status=$?
7040 grep -v '^ *+' conftest.er1 >conftest.err
7041 rm -f conftest.er1
7042 cat conftest.err >&5
7043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); } >/dev/null && {
7045 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7046 test ! -s conftest.err
7047 }; then
7048 ac_header_preproc=yes
7049 else
7050 $as_echo "$as_me: failed program was:" >&5
7051 sed 's/^/| /' conftest.$ac_ext >&5
7052
7053 ac_header_preproc=no
7054 fi
7055
7056 rm -f conftest.err conftest.$ac_ext
7057 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7058 $as_echo "$ac_header_preproc" >&6; }
7059
7060 # So? What about this header?
7061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7062 yes:no: )
7063 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7064 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7066 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7067 ac_header_preproc=yes
7068 ;;
7069 no:yes:* )
7070 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7071 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7072 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7073 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7074 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7075 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7076 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7077 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7078 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7079 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7080 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7081 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7082
7083 ;;
7084 esac
7085 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7086 $as_echo_n "checking for $ac_header... " >&6; }
7087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7088 $as_echo_n "(cached) " >&6
7089 else
7090 eval "$as_ac_Header=\$ac_header_preproc"
7091 fi
7092 ac_res=`eval 'as_val=${'$as_ac_Header'}
7093 $as_echo "$as_val"'`
7094 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7095 $as_echo "$ac_res" >&6; }
7096
7097 fi
7098 if test `eval 'as_val=${'$as_ac_Header'}
7099 $as_echo "$as_val"'` = yes; then
7100 cat >>confdefs.h <<_ACEOF
7101 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7102 _ACEOF
7103
7104 fi
7105
7106 done
7107
7108
7109 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
7110 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7111 cat >conftest.$ac_ext <<_ACEOF
7112 /* confdefs.h. */
7113 _ACEOF
7114 cat confdefs.h >>conftest.$ac_ext
7115 cat >>conftest.$ac_ext <<_ACEOF
7116 /* end confdefs.h. */
7117 #include <sys/personality.h>
7118 int
7119 main ()
7120 {
7121 personality (PER_LINUX32)
7122 ;
7123 return 0;
7124 }
7125 _ACEOF
7126 rm -f conftest.$ac_objext
7127 if { (ac_try="$ac_compile"
7128 case "(($ac_try" in
7129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7130 *) ac_try_echo=$ac_try;;
7131 esac
7132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7133 $as_echo "$ac_try_echo") >&5
7134 (eval "$ac_compile") 2>conftest.er1
7135 ac_status=$?
7136 grep -v '^ *+' conftest.er1 >conftest.err
7137 rm -f conftest.er1
7138 cat conftest.err >&5
7139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); } && {
7141 test -z "$ac_c_werror_flag" ||
7142 test ! -s conftest.err
7143 } && test -s conftest.$ac_objext; then
7144 emacs_cv_personality_linux32=yes
7145 else
7146 $as_echo "$as_me: failed program was:" >&5
7147 sed 's/^/| /' conftest.$ac_ext >&5
7148
7149 emacs_cv_personality_linux32=no
7150 fi
7151
7152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7153 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
7154 $as_echo "$emacs_cv_personality_linux32" >&6; }
7155
7156 if test $emacs_cv_personality_linux32 = yes; then
7157
7158 cat >>confdefs.h <<\_ACEOF
7159 #define HAVE_PERSONALITY_LINUX32 1
7160 _ACEOF
7161
7162 fi
7163
7164
7165 for ac_header in term.h
7166 do
7167 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7168 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7169 $as_echo_n "checking for $ac_header... " >&6; }
7170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7171 $as_echo_n "(cached) " >&6
7172 else
7173 cat >conftest.$ac_ext <<_ACEOF
7174 /* confdefs.h. */
7175 _ACEOF
7176 cat confdefs.h >>conftest.$ac_ext
7177 cat >>conftest.$ac_ext <<_ACEOF
7178 /* end confdefs.h. */
7179 #include <$ac_header>
7180 _ACEOF
7181 if { (ac_try="$ac_cpp conftest.$ac_ext"
7182 case "(($ac_try" in
7183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7184 *) ac_try_echo=$ac_try;;
7185 esac
7186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7187 $as_echo "$ac_try_echo") >&5
7188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7189 ac_status=$?
7190 grep -v '^ *+' conftest.er1 >conftest.err
7191 rm -f conftest.er1
7192 cat conftest.err >&5
7193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); } >/dev/null && {
7195 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7196 test ! -s conftest.err
7197 }; then
7198 eval "$as_ac_Header=yes"
7199 else
7200 $as_echo "$as_me: failed program was:" >&5
7201 sed 's/^/| /' conftest.$ac_ext >&5
7202
7203 eval "$as_ac_Header=no"
7204 fi
7205
7206 rm -f conftest.err conftest.$ac_ext
7207 fi
7208 ac_res=`eval 'as_val=${'$as_ac_Header'}
7209 $as_echo "$as_val"'`
7210 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7211 $as_echo "$ac_res" >&6; }
7212 if test `eval 'as_val=${'$as_ac_Header'}
7213 $as_echo "$as_val"'` = yes; then
7214 cat >>confdefs.h <<_ACEOF
7215 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7216 _ACEOF
7217
7218 fi
7219
7220 done
7221
7222 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7223 $as_echo_n "checking for ANSI C header files... " >&6; }
7224 if test "${ac_cv_header_stdc+set}" = set; then
7225 $as_echo_n "(cached) " >&6
7226 else
7227 cat >conftest.$ac_ext <<_ACEOF
7228 /* confdefs.h. */
7229 _ACEOF
7230 cat confdefs.h >>conftest.$ac_ext
7231 cat >>conftest.$ac_ext <<_ACEOF
7232 /* end confdefs.h. */
7233 #include <stdlib.h>
7234 #include <stdarg.h>
7235 #include <string.h>
7236 #include <float.h>
7237
7238 int
7239 main ()
7240 {
7241
7242 ;
7243 return 0;
7244 }
7245 _ACEOF
7246 rm -f conftest.$ac_objext
7247 if { (ac_try="$ac_compile"
7248 case "(($ac_try" in
7249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7250 *) ac_try_echo=$ac_try;;
7251 esac
7252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7253 $as_echo "$ac_try_echo") >&5
7254 (eval "$ac_compile") 2>conftest.er1
7255 ac_status=$?
7256 grep -v '^ *+' conftest.er1 >conftest.err
7257 rm -f conftest.er1
7258 cat conftest.err >&5
7259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); } && {
7261 test -z "$ac_c_werror_flag" ||
7262 test ! -s conftest.err
7263 } && test -s conftest.$ac_objext; then
7264 ac_cv_header_stdc=yes
7265 else
7266 $as_echo "$as_me: failed program was:" >&5
7267 sed 's/^/| /' conftest.$ac_ext >&5
7268
7269 ac_cv_header_stdc=no
7270 fi
7271
7272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7273
7274 if test $ac_cv_header_stdc = yes; then
7275 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7276 cat >conftest.$ac_ext <<_ACEOF
7277 /* confdefs.h. */
7278 _ACEOF
7279 cat confdefs.h >>conftest.$ac_ext
7280 cat >>conftest.$ac_ext <<_ACEOF
7281 /* end confdefs.h. */
7282 #include <string.h>
7283
7284 _ACEOF
7285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7286 $EGREP "memchr" >/dev/null 2>&1; then
7287 :
7288 else
7289 ac_cv_header_stdc=no
7290 fi
7291 rm -f conftest*
7292
7293 fi
7294
7295 if test $ac_cv_header_stdc = yes; then
7296 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7297 cat >conftest.$ac_ext <<_ACEOF
7298 /* confdefs.h. */
7299 _ACEOF
7300 cat confdefs.h >>conftest.$ac_ext
7301 cat >>conftest.$ac_ext <<_ACEOF
7302 /* end confdefs.h. */
7303 #include <stdlib.h>
7304
7305 _ACEOF
7306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7307 $EGREP "free" >/dev/null 2>&1; then
7308 :
7309 else
7310 ac_cv_header_stdc=no
7311 fi
7312 rm -f conftest*
7313
7314 fi
7315
7316 if test $ac_cv_header_stdc = yes; then
7317 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7318 if test "$cross_compiling" = yes; then
7319 :
7320 else
7321 cat >conftest.$ac_ext <<_ACEOF
7322 /* confdefs.h. */
7323 _ACEOF
7324 cat confdefs.h >>conftest.$ac_ext
7325 cat >>conftest.$ac_ext <<_ACEOF
7326 /* end confdefs.h. */
7327 #include <ctype.h>
7328 #include <stdlib.h>
7329 #if ((' ' & 0x0FF) == 0x020)
7330 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7331 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7332 #else
7333 # define ISLOWER(c) \
7334 (('a' <= (c) && (c) <= 'i') \
7335 || ('j' <= (c) && (c) <= 'r') \
7336 || ('s' <= (c) && (c) <= 'z'))
7337 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7338 #endif
7339
7340 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7341 int
7342 main ()
7343 {
7344 int i;
7345 for (i = 0; i < 256; i++)
7346 if (XOR (islower (i), ISLOWER (i))
7347 || toupper (i) != TOUPPER (i))
7348 return 2;
7349 return 0;
7350 }
7351 _ACEOF
7352 rm -f conftest$ac_exeext
7353 if { (ac_try="$ac_link"
7354 case "(($ac_try" in
7355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7356 *) ac_try_echo=$ac_try;;
7357 esac
7358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7359 $as_echo "$ac_try_echo") >&5
7360 (eval "$ac_link") 2>&5
7361 ac_status=$?
7362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7364 { (case "(($ac_try" in
7365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7366 *) ac_try_echo=$ac_try;;
7367 esac
7368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7369 $as_echo "$ac_try_echo") >&5
7370 (eval "$ac_try") 2>&5
7371 ac_status=$?
7372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373 (exit $ac_status); }; }; then
7374 :
7375 else
7376 $as_echo "$as_me: program exited with status $ac_status" >&5
7377 $as_echo "$as_me: failed program was:" >&5
7378 sed 's/^/| /' conftest.$ac_ext >&5
7379
7380 ( exit $ac_status )
7381 ac_cv_header_stdc=no
7382 fi
7383 rm -rf conftest.dSYM
7384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7385 fi
7386
7387
7388 fi
7389 fi
7390 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7391 $as_echo "$ac_cv_header_stdc" >&6; }
7392 if test $ac_cv_header_stdc = yes; then
7393
7394 cat >>confdefs.h <<\_ACEOF
7395 #define STDC_HEADERS 1
7396 _ACEOF
7397
7398 fi
7399
7400 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7401 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7402 if test "${ac_cv_header_time+set}" = set; then
7403 $as_echo_n "(cached) " >&6
7404 else
7405 cat >conftest.$ac_ext <<_ACEOF
7406 /* confdefs.h. */
7407 _ACEOF
7408 cat confdefs.h >>conftest.$ac_ext
7409 cat >>conftest.$ac_ext <<_ACEOF
7410 /* end confdefs.h. */
7411 #include <sys/types.h>
7412 #include <sys/time.h>
7413 #include <time.h>
7414
7415 int
7416 main ()
7417 {
7418 if ((struct tm *) 0)
7419 return 0;
7420 ;
7421 return 0;
7422 }
7423 _ACEOF
7424 rm -f conftest.$ac_objext
7425 if { (ac_try="$ac_compile"
7426 case "(($ac_try" in
7427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7428 *) ac_try_echo=$ac_try;;
7429 esac
7430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7431 $as_echo "$ac_try_echo") >&5
7432 (eval "$ac_compile") 2>conftest.er1
7433 ac_status=$?
7434 grep -v '^ *+' conftest.er1 >conftest.err
7435 rm -f conftest.er1
7436 cat conftest.err >&5
7437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438 (exit $ac_status); } && {
7439 test -z "$ac_c_werror_flag" ||
7440 test ! -s conftest.err
7441 } && test -s conftest.$ac_objext; then
7442 ac_cv_header_time=yes
7443 else
7444 $as_echo "$as_me: failed program was:" >&5
7445 sed 's/^/| /' conftest.$ac_ext >&5
7446
7447 ac_cv_header_time=no
7448 fi
7449
7450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7451 fi
7452 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7453 $as_echo "$ac_cv_header_time" >&6; }
7454 if test $ac_cv_header_time = yes; then
7455
7456 cat >>confdefs.h <<\_ACEOF
7457 #define TIME_WITH_SYS_TIME 1
7458 _ACEOF
7459
7460 fi
7461
7462 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7463 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7464 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7465 $as_echo_n "(cached) " >&6
7466 else
7467 cat >conftest.$ac_ext <<_ACEOF
7468 /* confdefs.h. */
7469 _ACEOF
7470 cat confdefs.h >>conftest.$ac_ext
7471 cat >>conftest.$ac_ext <<_ACEOF
7472 /* end confdefs.h. */
7473 $ac_includes_default
7474 int
7475 main ()
7476 {
7477 #ifndef sys_siglist
7478 (void) sys_siglist;
7479 #endif
7480
7481 ;
7482 return 0;
7483 }
7484 _ACEOF
7485 rm -f conftest.$ac_objext
7486 if { (ac_try="$ac_compile"
7487 case "(($ac_try" in
7488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7489 *) ac_try_echo=$ac_try;;
7490 esac
7491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7492 $as_echo "$ac_try_echo") >&5
7493 (eval "$ac_compile") 2>conftest.er1
7494 ac_status=$?
7495 grep -v '^ *+' conftest.er1 >conftest.err
7496 rm -f conftest.er1
7497 cat conftest.err >&5
7498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499 (exit $ac_status); } && {
7500 test -z "$ac_c_werror_flag" ||
7501 test ! -s conftest.err
7502 } && test -s conftest.$ac_objext; then
7503 ac_cv_have_decl_sys_siglist=yes
7504 else
7505 $as_echo "$as_me: failed program was:" >&5
7506 sed 's/^/| /' conftest.$ac_ext >&5
7507
7508 ac_cv_have_decl_sys_siglist=no
7509 fi
7510
7511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7512 fi
7513 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7514 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7515 if test $ac_cv_have_decl_sys_siglist = yes; then
7516
7517 cat >>confdefs.h <<_ACEOF
7518 #define HAVE_DECL_SYS_SIGLIST 1
7519 _ACEOF
7520
7521
7522 else
7523 cat >>confdefs.h <<_ACEOF
7524 #define HAVE_DECL_SYS_SIGLIST 0
7525 _ACEOF
7526
7527
7528 fi
7529
7530
7531 if test $ac_cv_have_decl_sys_siglist != yes; then
7532 # For Tru64, at least:
7533 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7534 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7535 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7536 $as_echo_n "(cached) " >&6
7537 else
7538 cat >conftest.$ac_ext <<_ACEOF
7539 /* confdefs.h. */
7540 _ACEOF
7541 cat confdefs.h >>conftest.$ac_ext
7542 cat >>conftest.$ac_ext <<_ACEOF
7543 /* end confdefs.h. */
7544 $ac_includes_default
7545 int
7546 main ()
7547 {
7548 #ifndef __sys_siglist
7549 (void) __sys_siglist;
7550 #endif
7551
7552 ;
7553 return 0;
7554 }
7555 _ACEOF
7556 rm -f conftest.$ac_objext
7557 if { (ac_try="$ac_compile"
7558 case "(($ac_try" in
7559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7560 *) ac_try_echo=$ac_try;;
7561 esac
7562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7563 $as_echo "$ac_try_echo") >&5
7564 (eval "$ac_compile") 2>conftest.er1
7565 ac_status=$?
7566 grep -v '^ *+' conftest.er1 >conftest.err
7567 rm -f conftest.er1
7568 cat conftest.err >&5
7569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); } && {
7571 test -z "$ac_c_werror_flag" ||
7572 test ! -s conftest.err
7573 } && test -s conftest.$ac_objext; then
7574 ac_cv_have_decl___sys_siglist=yes
7575 else
7576 $as_echo "$as_me: failed program was:" >&5
7577 sed 's/^/| /' conftest.$ac_ext >&5
7578
7579 ac_cv_have_decl___sys_siglist=no
7580 fi
7581
7582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7583 fi
7584 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7585 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7586 if test $ac_cv_have_decl___sys_siglist = yes; then
7587
7588 cat >>confdefs.h <<_ACEOF
7589 #define HAVE_DECL___SYS_SIGLIST 1
7590 _ACEOF
7591
7592
7593 else
7594 cat >>confdefs.h <<_ACEOF
7595 #define HAVE_DECL___SYS_SIGLIST 0
7596 _ACEOF
7597
7598
7599 fi
7600
7601
7602 if test $ac_cv_have_decl___sys_siglist = yes; then
7603
7604 cat >>confdefs.h <<\_ACEOF
7605 #define sys_siglist __sys_siglist
7606 _ACEOF
7607
7608 fi
7609 fi
7610 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7611 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7612 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7613 $as_echo_n "(cached) " >&6
7614 else
7615 cat >conftest.$ac_ext <<_ACEOF
7616 /* confdefs.h. */
7617 _ACEOF
7618 cat confdefs.h >>conftest.$ac_ext
7619 cat >>conftest.$ac_ext <<_ACEOF
7620 /* end confdefs.h. */
7621 #include <sys/types.h>
7622 #include <sys/wait.h>
7623 #ifndef WEXITSTATUS
7624 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7625 #endif
7626 #ifndef WIFEXITED
7627 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7628 #endif
7629
7630 int
7631 main ()
7632 {
7633 int s;
7634 wait (&s);
7635 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7636 ;
7637 return 0;
7638 }
7639 _ACEOF
7640 rm -f conftest.$ac_objext
7641 if { (ac_try="$ac_compile"
7642 case "(($ac_try" in
7643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7644 *) ac_try_echo=$ac_try;;
7645 esac
7646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7647 $as_echo "$ac_try_echo") >&5
7648 (eval "$ac_compile") 2>conftest.er1
7649 ac_status=$?
7650 grep -v '^ *+' conftest.er1 >conftest.err
7651 rm -f conftest.er1
7652 cat conftest.err >&5
7653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 (exit $ac_status); } && {
7655 test -z "$ac_c_werror_flag" ||
7656 test ! -s conftest.err
7657 } && test -s conftest.$ac_objext; then
7658 ac_cv_header_sys_wait_h=yes
7659 else
7660 $as_echo "$as_me: failed program was:" >&5
7661 sed 's/^/| /' conftest.$ac_ext >&5
7662
7663 ac_cv_header_sys_wait_h=no
7664 fi
7665
7666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7667 fi
7668 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7669 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7670 if test $ac_cv_header_sys_wait_h = yes; then
7671
7672 cat >>confdefs.h <<\_ACEOF
7673 #define HAVE_SYS_WAIT_H 1
7674 _ACEOF
7675
7676 fi
7677
7678
7679 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7680 $as_echo_n "checking for struct utimbuf... " >&6; }
7681 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7682 $as_echo_n "(cached) " >&6
7683 else
7684 cat >conftest.$ac_ext <<_ACEOF
7685 /* confdefs.h. */
7686 _ACEOF
7687 cat confdefs.h >>conftest.$ac_ext
7688 cat >>conftest.$ac_ext <<_ACEOF
7689 /* end confdefs.h. */
7690 #ifdef TIME_WITH_SYS_TIME
7691 #include <sys/time.h>
7692 #include <time.h>
7693 #else
7694 #ifdef HAVE_SYS_TIME_H
7695 #include <sys/time.h>
7696 #else
7697 #include <time.h>
7698 #endif
7699 #endif
7700 #ifdef HAVE_UTIME_H
7701 #include <utime.h>
7702 #endif
7703 int
7704 main ()
7705 {
7706 static struct utimbuf x; x.actime = x.modtime;
7707 ;
7708 return 0;
7709 }
7710 _ACEOF
7711 rm -f conftest.$ac_objext
7712 if { (ac_try="$ac_compile"
7713 case "(($ac_try" in
7714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7715 *) ac_try_echo=$ac_try;;
7716 esac
7717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7718 $as_echo "$ac_try_echo") >&5
7719 (eval "$ac_compile") 2>conftest.er1
7720 ac_status=$?
7721 grep -v '^ *+' conftest.er1 >conftest.err
7722 rm -f conftest.er1
7723 cat conftest.err >&5
7724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); } && {
7726 test -z "$ac_c_werror_flag" ||
7727 test ! -s conftest.err
7728 } && test -s conftest.$ac_objext; then
7729 emacs_cv_struct_utimbuf=yes
7730 else
7731 $as_echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.$ac_ext >&5
7733
7734 emacs_cv_struct_utimbuf=no
7735 fi
7736
7737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7738 fi
7739 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7740 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7741 if test $emacs_cv_struct_utimbuf = yes; then
7742
7743 cat >>confdefs.h <<\_ACEOF
7744 #define HAVE_STRUCT_UTIMBUF 1
7745 _ACEOF
7746
7747 fi
7748
7749 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7750 $as_echo_n "checking return type of signal handlers... " >&6; }
7751 if test "${ac_cv_type_signal+set}" = set; then
7752 $as_echo_n "(cached) " >&6
7753 else
7754 cat >conftest.$ac_ext <<_ACEOF
7755 /* confdefs.h. */
7756 _ACEOF
7757 cat confdefs.h >>conftest.$ac_ext
7758 cat >>conftest.$ac_ext <<_ACEOF
7759 /* end confdefs.h. */
7760 #include <sys/types.h>
7761 #include <signal.h>
7762
7763 int
7764 main ()
7765 {
7766 return *(signal (0, 0)) (0) == 1;
7767 ;
7768 return 0;
7769 }
7770 _ACEOF
7771 rm -f conftest.$ac_objext
7772 if { (ac_try="$ac_compile"
7773 case "(($ac_try" in
7774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7775 *) ac_try_echo=$ac_try;;
7776 esac
7777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7778 $as_echo "$ac_try_echo") >&5
7779 (eval "$ac_compile") 2>conftest.er1
7780 ac_status=$?
7781 grep -v '^ *+' conftest.er1 >conftest.err
7782 rm -f conftest.er1
7783 cat conftest.err >&5
7784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); } && {
7786 test -z "$ac_c_werror_flag" ||
7787 test ! -s conftest.err
7788 } && test -s conftest.$ac_objext; then
7789 ac_cv_type_signal=int
7790 else
7791 $as_echo "$as_me: failed program was:" >&5
7792 sed 's/^/| /' conftest.$ac_ext >&5
7793
7794 ac_cv_type_signal=void
7795 fi
7796
7797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7798 fi
7799 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7800 $as_echo "$ac_cv_type_signal" >&6; }
7801
7802 cat >>confdefs.h <<_ACEOF
7803 #define RETSIGTYPE $ac_cv_type_signal
7804 _ACEOF
7805
7806
7807
7808 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7809 $as_echo_n "checking for speed_t... " >&6; }
7810 if test "${emacs_cv_speed_t+set}" = set; then
7811 $as_echo_n "(cached) " >&6
7812 else
7813 cat >conftest.$ac_ext <<_ACEOF
7814 /* confdefs.h. */
7815 _ACEOF
7816 cat confdefs.h >>conftest.$ac_ext
7817 cat >>conftest.$ac_ext <<_ACEOF
7818 /* end confdefs.h. */
7819 #include <termios.h>
7820 int
7821 main ()
7822 {
7823 speed_t x = 1;
7824 ;
7825 return 0;
7826 }
7827 _ACEOF
7828 rm -f conftest.$ac_objext
7829 if { (ac_try="$ac_compile"
7830 case "(($ac_try" in
7831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7832 *) ac_try_echo=$ac_try;;
7833 esac
7834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7835 $as_echo "$ac_try_echo") >&5
7836 (eval "$ac_compile") 2>conftest.er1
7837 ac_status=$?
7838 grep -v '^ *+' conftest.er1 >conftest.err
7839 rm -f conftest.er1
7840 cat conftest.err >&5
7841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); } && {
7843 test -z "$ac_c_werror_flag" ||
7844 test ! -s conftest.err
7845 } && test -s conftest.$ac_objext; then
7846 emacs_cv_speed_t=yes
7847 else
7848 $as_echo "$as_me: failed program was:" >&5
7849 sed 's/^/| /' conftest.$ac_ext >&5
7850
7851 emacs_cv_speed_t=no
7852 fi
7853
7854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7855 fi
7856 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7857 $as_echo "$emacs_cv_speed_t" >&6; }
7858 if test $emacs_cv_speed_t = yes; then
7859
7860 cat >>confdefs.h <<\_ACEOF
7861 #define HAVE_SPEED_T 1
7862 _ACEOF
7863
7864 fi
7865
7866 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7867 $as_echo_n "checking for struct timeval... " >&6; }
7868 if test "${emacs_cv_struct_timeval+set}" = set; then
7869 $as_echo_n "(cached) " >&6
7870 else
7871 cat >conftest.$ac_ext <<_ACEOF
7872 /* confdefs.h. */
7873 _ACEOF
7874 cat confdefs.h >>conftest.$ac_ext
7875 cat >>conftest.$ac_ext <<_ACEOF
7876 /* end confdefs.h. */
7877 #ifdef TIME_WITH_SYS_TIME
7878 #include <sys/time.h>
7879 #include <time.h>
7880 #else
7881 #ifdef HAVE_SYS_TIME_H
7882 #include <sys/time.h>
7883 #else
7884 #include <time.h>
7885 #endif
7886 #endif
7887 int
7888 main ()
7889 {
7890 static struct timeval x; x.tv_sec = x.tv_usec;
7891 ;
7892 return 0;
7893 }
7894 _ACEOF
7895 rm -f conftest.$ac_objext
7896 if { (ac_try="$ac_compile"
7897 case "(($ac_try" in
7898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7899 *) ac_try_echo=$ac_try;;
7900 esac
7901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7902 $as_echo "$ac_try_echo") >&5
7903 (eval "$ac_compile") 2>conftest.er1
7904 ac_status=$?
7905 grep -v '^ *+' conftest.er1 >conftest.err
7906 rm -f conftest.er1
7907 cat conftest.err >&5
7908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); } && {
7910 test -z "$ac_c_werror_flag" ||
7911 test ! -s conftest.err
7912 } && test -s conftest.$ac_objext; then
7913 emacs_cv_struct_timeval=yes
7914 else
7915 $as_echo "$as_me: failed program was:" >&5
7916 sed 's/^/| /' conftest.$ac_ext >&5
7917
7918 emacs_cv_struct_timeval=no
7919 fi
7920
7921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7922 fi
7923 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7924 $as_echo "$emacs_cv_struct_timeval" >&6; }
7925 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7926 if test $emacs_cv_struct_timeval = yes; then
7927
7928 cat >>confdefs.h <<\_ACEOF
7929 #define HAVE_TIMEVAL 1
7930 _ACEOF
7931
7932 fi
7933
7934 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7935 $as_echo_n "checking for struct exception... " >&6; }
7936 if test "${emacs_cv_struct_exception+set}" = set; then
7937 $as_echo_n "(cached) " >&6
7938 else
7939 cat >conftest.$ac_ext <<_ACEOF
7940 /* confdefs.h. */
7941 _ACEOF
7942 cat confdefs.h >>conftest.$ac_ext
7943 cat >>conftest.$ac_ext <<_ACEOF
7944 /* end confdefs.h. */
7945 #include <math.h>
7946 int
7947 main ()
7948 {
7949 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7950 ;
7951 return 0;
7952 }
7953 _ACEOF
7954 rm -f conftest.$ac_objext
7955 if { (ac_try="$ac_compile"
7956 case "(($ac_try" in
7957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7958 *) ac_try_echo=$ac_try;;
7959 esac
7960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7961 $as_echo "$ac_try_echo") >&5
7962 (eval "$ac_compile") 2>conftest.er1
7963 ac_status=$?
7964 grep -v '^ *+' conftest.er1 >conftest.err
7965 rm -f conftest.er1
7966 cat conftest.err >&5
7967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); } && {
7969 test -z "$ac_c_werror_flag" ||
7970 test ! -s conftest.err
7971 } && test -s conftest.$ac_objext; then
7972 emacs_cv_struct_exception=yes
7973 else
7974 $as_echo "$as_me: failed program was:" >&5
7975 sed 's/^/| /' conftest.$ac_ext >&5
7976
7977 emacs_cv_struct_exception=no
7978 fi
7979
7980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7981 fi
7982 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7983 $as_echo "$emacs_cv_struct_exception" >&6; }
7984 HAVE_EXCEPTION=$emacs_cv_struct_exception
7985 if test $emacs_cv_struct_exception != yes; then
7986
7987 cat >>confdefs.h <<\_ACEOF
7988 #define NO_MATHERR 1
7989 _ACEOF
7990
7991 fi
7992
7993
7994 for ac_header in sys/socket.h
7995 do
7996 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7998 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7999 $as_echo_n "checking for $ac_header... " >&6; }
8000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8001 $as_echo_n "(cached) " >&6
8002 fi
8003 ac_res=`eval 'as_val=${'$as_ac_Header'}
8004 $as_echo "$as_val"'`
8005 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8006 $as_echo "$ac_res" >&6; }
8007 else
8008 # Is the header compilable?
8009 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8010 $as_echo_n "checking $ac_header usability... " >&6; }
8011 cat >conftest.$ac_ext <<_ACEOF
8012 /* confdefs.h. */
8013 _ACEOF
8014 cat confdefs.h >>conftest.$ac_ext
8015 cat >>conftest.$ac_ext <<_ACEOF
8016 /* end confdefs.h. */
8017 $ac_includes_default
8018 #include <$ac_header>
8019 _ACEOF
8020 rm -f conftest.$ac_objext
8021 if { (ac_try="$ac_compile"
8022 case "(($ac_try" in
8023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8024 *) ac_try_echo=$ac_try;;
8025 esac
8026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8027 $as_echo "$ac_try_echo") >&5
8028 (eval "$ac_compile") 2>conftest.er1
8029 ac_status=$?
8030 grep -v '^ *+' conftest.er1 >conftest.err
8031 rm -f conftest.er1
8032 cat conftest.err >&5
8033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); } && {
8035 test -z "$ac_c_werror_flag" ||
8036 test ! -s conftest.err
8037 } && test -s conftest.$ac_objext; then
8038 ac_header_compiler=yes
8039 else
8040 $as_echo "$as_me: failed program was:" >&5
8041 sed 's/^/| /' conftest.$ac_ext >&5
8042
8043 ac_header_compiler=no
8044 fi
8045
8046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8047 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8048 $as_echo "$ac_header_compiler" >&6; }
8049
8050 # Is the header present?
8051 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8052 $as_echo_n "checking $ac_header presence... " >&6; }
8053 cat >conftest.$ac_ext <<_ACEOF
8054 /* confdefs.h. */
8055 _ACEOF
8056 cat confdefs.h >>conftest.$ac_ext
8057 cat >>conftest.$ac_ext <<_ACEOF
8058 /* end confdefs.h. */
8059 #include <$ac_header>
8060 _ACEOF
8061 if { (ac_try="$ac_cpp conftest.$ac_ext"
8062 case "(($ac_try" in
8063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8064 *) ac_try_echo=$ac_try;;
8065 esac
8066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8067 $as_echo "$ac_try_echo") >&5
8068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8069 ac_status=$?
8070 grep -v '^ *+' conftest.er1 >conftest.err
8071 rm -f conftest.er1
8072 cat conftest.err >&5
8073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); } >/dev/null && {
8075 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8076 test ! -s conftest.err
8077 }; then
8078 ac_header_preproc=yes
8079 else
8080 $as_echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.$ac_ext >&5
8082
8083 ac_header_preproc=no
8084 fi
8085
8086 rm -f conftest.err conftest.$ac_ext
8087 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8088 $as_echo "$ac_header_preproc" >&6; }
8089
8090 # So? What about this header?
8091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8092 yes:no: )
8093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8094 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8096 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8097 ac_header_preproc=yes
8098 ;;
8099 no:yes:* )
8100 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8101 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8102 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8103 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8104 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8105 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8107 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8109 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8111 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8112
8113 ;;
8114 esac
8115 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8116 $as_echo_n "checking for $ac_header... " >&6; }
8117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8118 $as_echo_n "(cached) " >&6
8119 else
8120 eval "$as_ac_Header=\$ac_header_preproc"
8121 fi
8122 ac_res=`eval 'as_val=${'$as_ac_Header'}
8123 $as_echo "$as_val"'`
8124 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8125 $as_echo "$ac_res" >&6; }
8126
8127 fi
8128 if test `eval 'as_val=${'$as_ac_Header'}
8129 $as_echo "$as_val"'` = yes; then
8130 cat >>confdefs.h <<_ACEOF
8131 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8132 _ACEOF
8133
8134 fi
8135
8136 done
8137
8138
8139 for ac_header in net/if.h
8140 do
8141 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8142 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8143 $as_echo_n "checking for $ac_header... " >&6; }
8144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8145 $as_echo_n "(cached) " >&6
8146 else
8147 cat >conftest.$ac_ext <<_ACEOF
8148 /* confdefs.h. */
8149 _ACEOF
8150 cat confdefs.h >>conftest.$ac_ext
8151 cat >>conftest.$ac_ext <<_ACEOF
8152 /* end confdefs.h. */
8153 $ac_includes_default
8154 #if HAVE_SYS_SOCKET_H
8155 #include <sys/socket.h>
8156 #endif
8157
8158 #include <$ac_header>
8159 _ACEOF
8160 rm -f conftest.$ac_objext
8161 if { (ac_try="$ac_compile"
8162 case "(($ac_try" in
8163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8164 *) ac_try_echo=$ac_try;;
8165 esac
8166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8167 $as_echo "$ac_try_echo") >&5
8168 (eval "$ac_compile") 2>conftest.er1
8169 ac_status=$?
8170 grep -v '^ *+' conftest.er1 >conftest.err
8171 rm -f conftest.er1
8172 cat conftest.err >&5
8173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); } && {
8175 test -z "$ac_c_werror_flag" ||
8176 test ! -s conftest.err
8177 } && test -s conftest.$ac_objext; then
8178 eval "$as_ac_Header=yes"
8179 else
8180 $as_echo "$as_me: failed program was:" >&5
8181 sed 's/^/| /' conftest.$ac_ext >&5
8182
8183 eval "$as_ac_Header=no"
8184 fi
8185
8186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8187 fi
8188 ac_res=`eval 'as_val=${'$as_ac_Header'}
8189 $as_echo "$as_val"'`
8190 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8191 $as_echo "$ac_res" >&6; }
8192 if test `eval 'as_val=${'$as_ac_Header'}
8193 $as_echo "$as_val"'` = yes; then
8194 cat >>confdefs.h <<_ACEOF
8195 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8196 _ACEOF
8197
8198 fi
8199
8200 done
8201
8202
8203 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8204 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8205 if test "${ac_cv_struct_tm+set}" = set; then
8206 $as_echo_n "(cached) " >&6
8207 else
8208 cat >conftest.$ac_ext <<_ACEOF
8209 /* confdefs.h. */
8210 _ACEOF
8211 cat confdefs.h >>conftest.$ac_ext
8212 cat >>conftest.$ac_ext <<_ACEOF
8213 /* end confdefs.h. */
8214 #include <sys/types.h>
8215 #include <time.h>
8216
8217 int
8218 main ()
8219 {
8220 struct tm tm;
8221 int *p = &tm.tm_sec;
8222 return !p;
8223 ;
8224 return 0;
8225 }
8226 _ACEOF
8227 rm -f conftest.$ac_objext
8228 if { (ac_try="$ac_compile"
8229 case "(($ac_try" in
8230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8231 *) ac_try_echo=$ac_try;;
8232 esac
8233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8234 $as_echo "$ac_try_echo") >&5
8235 (eval "$ac_compile") 2>conftest.er1
8236 ac_status=$?
8237 grep -v '^ *+' conftest.er1 >conftest.err
8238 rm -f conftest.er1
8239 cat conftest.err >&5
8240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); } && {
8242 test -z "$ac_c_werror_flag" ||
8243 test ! -s conftest.err
8244 } && test -s conftest.$ac_objext; then
8245 ac_cv_struct_tm=time.h
8246 else
8247 $as_echo "$as_me: failed program was:" >&5
8248 sed 's/^/| /' conftest.$ac_ext >&5
8249
8250 ac_cv_struct_tm=sys/time.h
8251 fi
8252
8253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8254 fi
8255 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8256 $as_echo "$ac_cv_struct_tm" >&6; }
8257 if test $ac_cv_struct_tm = sys/time.h; then
8258
8259 cat >>confdefs.h <<\_ACEOF
8260 #define TM_IN_SYS_TIME 1
8261 _ACEOF
8262
8263 fi
8264
8265 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8266 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8267 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8268 $as_echo_n "(cached) " >&6
8269 else
8270 cat >conftest.$ac_ext <<_ACEOF
8271 /* confdefs.h. */
8272 _ACEOF
8273 cat confdefs.h >>conftest.$ac_ext
8274 cat >>conftest.$ac_ext <<_ACEOF
8275 /* end confdefs.h. */
8276 #include <sys/types.h>
8277 #include <$ac_cv_struct_tm>
8278
8279
8280 int
8281 main ()
8282 {
8283 static struct tm ac_aggr;
8284 if (ac_aggr.tm_zone)
8285 return 0;
8286 ;
8287 return 0;
8288 }
8289 _ACEOF
8290 rm -f conftest.$ac_objext
8291 if { (ac_try="$ac_compile"
8292 case "(($ac_try" in
8293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8294 *) ac_try_echo=$ac_try;;
8295 esac
8296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8297 $as_echo "$ac_try_echo") >&5
8298 (eval "$ac_compile") 2>conftest.er1
8299 ac_status=$?
8300 grep -v '^ *+' conftest.er1 >conftest.err
8301 rm -f conftest.er1
8302 cat conftest.err >&5
8303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); } && {
8305 test -z "$ac_c_werror_flag" ||
8306 test ! -s conftest.err
8307 } && test -s conftest.$ac_objext; then
8308 ac_cv_member_struct_tm_tm_zone=yes
8309 else
8310 $as_echo "$as_me: failed program was:" >&5
8311 sed 's/^/| /' conftest.$ac_ext >&5
8312
8313 cat >conftest.$ac_ext <<_ACEOF
8314 /* confdefs.h. */
8315 _ACEOF
8316 cat confdefs.h >>conftest.$ac_ext
8317 cat >>conftest.$ac_ext <<_ACEOF
8318 /* end confdefs.h. */
8319 #include <sys/types.h>
8320 #include <$ac_cv_struct_tm>
8321
8322
8323 int
8324 main ()
8325 {
8326 static struct tm ac_aggr;
8327 if (sizeof ac_aggr.tm_zone)
8328 return 0;
8329 ;
8330 return 0;
8331 }
8332 _ACEOF
8333 rm -f conftest.$ac_objext
8334 if { (ac_try="$ac_compile"
8335 case "(($ac_try" in
8336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8337 *) ac_try_echo=$ac_try;;
8338 esac
8339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8340 $as_echo "$ac_try_echo") >&5
8341 (eval "$ac_compile") 2>conftest.er1
8342 ac_status=$?
8343 grep -v '^ *+' conftest.er1 >conftest.err
8344 rm -f conftest.er1
8345 cat conftest.err >&5
8346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); } && {
8348 test -z "$ac_c_werror_flag" ||
8349 test ! -s conftest.err
8350 } && test -s conftest.$ac_objext; then
8351 ac_cv_member_struct_tm_tm_zone=yes
8352 else
8353 $as_echo "$as_me: failed program was:" >&5
8354 sed 's/^/| /' conftest.$ac_ext >&5
8355
8356 ac_cv_member_struct_tm_tm_zone=no
8357 fi
8358
8359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8360 fi
8361
8362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8363 fi
8364 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8365 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8366 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8367
8368 cat >>confdefs.h <<_ACEOF
8369 #define HAVE_STRUCT_TM_TM_ZONE 1
8370 _ACEOF
8371
8372
8373 fi
8374
8375 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8376
8377 cat >>confdefs.h <<\_ACEOF
8378 #define HAVE_TM_ZONE 1
8379 _ACEOF
8380
8381 else
8382 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8383 $as_echo_n "checking whether tzname is declared... " >&6; }
8384 if test "${ac_cv_have_decl_tzname+set}" = set; then
8385 $as_echo_n "(cached) " >&6
8386 else
8387 cat >conftest.$ac_ext <<_ACEOF
8388 /* confdefs.h. */
8389 _ACEOF
8390 cat confdefs.h >>conftest.$ac_ext
8391 cat >>conftest.$ac_ext <<_ACEOF
8392 /* end confdefs.h. */
8393 #include <time.h>
8394
8395 int
8396 main ()
8397 {
8398 #ifndef tzname
8399 (void) tzname;
8400 #endif
8401
8402 ;
8403 return 0;
8404 }
8405 _ACEOF
8406 rm -f conftest.$ac_objext
8407 if { (ac_try="$ac_compile"
8408 case "(($ac_try" in
8409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8410 *) ac_try_echo=$ac_try;;
8411 esac
8412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8413 $as_echo "$ac_try_echo") >&5
8414 (eval "$ac_compile") 2>conftest.er1
8415 ac_status=$?
8416 grep -v '^ *+' conftest.er1 >conftest.err
8417 rm -f conftest.er1
8418 cat conftest.err >&5
8419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); } && {
8421 test -z "$ac_c_werror_flag" ||
8422 test ! -s conftest.err
8423 } && test -s conftest.$ac_objext; then
8424 ac_cv_have_decl_tzname=yes
8425 else
8426 $as_echo "$as_me: failed program was:" >&5
8427 sed 's/^/| /' conftest.$ac_ext >&5
8428
8429 ac_cv_have_decl_tzname=no
8430 fi
8431
8432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8433 fi
8434 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8435 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8436 if test $ac_cv_have_decl_tzname = yes; then
8437
8438 cat >>confdefs.h <<_ACEOF
8439 #define HAVE_DECL_TZNAME 1
8440 _ACEOF
8441
8442
8443 else
8444 cat >>confdefs.h <<_ACEOF
8445 #define HAVE_DECL_TZNAME 0
8446 _ACEOF
8447
8448
8449 fi
8450
8451
8452 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8453 $as_echo_n "checking for tzname... " >&6; }
8454 if test "${ac_cv_var_tzname+set}" = set; then
8455 $as_echo_n "(cached) " >&6
8456 else
8457 cat >conftest.$ac_ext <<_ACEOF
8458 /* confdefs.h. */
8459 _ACEOF
8460 cat confdefs.h >>conftest.$ac_ext
8461 cat >>conftest.$ac_ext <<_ACEOF
8462 /* end confdefs.h. */
8463 #include <time.h>
8464 #if !HAVE_DECL_TZNAME
8465 extern char *tzname[];
8466 #endif
8467
8468 int
8469 main ()
8470 {
8471 return tzname[0][0];
8472 ;
8473 return 0;
8474 }
8475 _ACEOF
8476 rm -f conftest.$ac_objext conftest$ac_exeext
8477 if { (ac_try="$ac_link"
8478 case "(($ac_try" in
8479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8480 *) ac_try_echo=$ac_try;;
8481 esac
8482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8483 $as_echo "$ac_try_echo") >&5
8484 (eval "$ac_link") 2>conftest.er1
8485 ac_status=$?
8486 grep -v '^ *+' conftest.er1 >conftest.err
8487 rm -f conftest.er1
8488 cat conftest.err >&5
8489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); } && {
8491 test -z "$ac_c_werror_flag" ||
8492 test ! -s conftest.err
8493 } && test -s conftest$ac_exeext && {
8494 test "$cross_compiling" = yes ||
8495 $as_test_x conftest$ac_exeext
8496 }; then
8497 ac_cv_var_tzname=yes
8498 else
8499 $as_echo "$as_me: failed program was:" >&5
8500 sed 's/^/| /' conftest.$ac_ext >&5
8501
8502 ac_cv_var_tzname=no
8503 fi
8504
8505 rm -rf conftest.dSYM
8506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8507 conftest$ac_exeext conftest.$ac_ext
8508 fi
8509 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8510 $as_echo "$ac_cv_var_tzname" >&6; }
8511 if test $ac_cv_var_tzname = yes; then
8512
8513 cat >>confdefs.h <<\_ACEOF
8514 #define HAVE_TZNAME 1
8515 _ACEOF
8516
8517 fi
8518 fi
8519
8520 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8521 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8522 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8523 $as_echo_n "(cached) " >&6
8524 else
8525 cat >conftest.$ac_ext <<_ACEOF
8526 /* confdefs.h. */
8527 _ACEOF
8528 cat confdefs.h >>conftest.$ac_ext
8529 cat >>conftest.$ac_ext <<_ACEOF
8530 /* end confdefs.h. */
8531 #include <time.h>
8532
8533 int
8534 main ()
8535 {
8536 static struct tm ac_aggr;
8537 if (ac_aggr.tm_gmtoff)
8538 return 0;
8539 ;
8540 return 0;
8541 }
8542 _ACEOF
8543 rm -f conftest.$ac_objext
8544 if { (ac_try="$ac_compile"
8545 case "(($ac_try" in
8546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8547 *) ac_try_echo=$ac_try;;
8548 esac
8549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8550 $as_echo "$ac_try_echo") >&5
8551 (eval "$ac_compile") 2>conftest.er1
8552 ac_status=$?
8553 grep -v '^ *+' conftest.er1 >conftest.err
8554 rm -f conftest.er1
8555 cat conftest.err >&5
8556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); } && {
8558 test -z "$ac_c_werror_flag" ||
8559 test ! -s conftest.err
8560 } && test -s conftest.$ac_objext; then
8561 ac_cv_member_struct_tm_tm_gmtoff=yes
8562 else
8563 $as_echo "$as_me: failed program was:" >&5
8564 sed 's/^/| /' conftest.$ac_ext >&5
8565
8566 cat >conftest.$ac_ext <<_ACEOF
8567 /* confdefs.h. */
8568 _ACEOF
8569 cat confdefs.h >>conftest.$ac_ext
8570 cat >>conftest.$ac_ext <<_ACEOF
8571 /* end confdefs.h. */
8572 #include <time.h>
8573
8574 int
8575 main ()
8576 {
8577 static struct tm ac_aggr;
8578 if (sizeof ac_aggr.tm_gmtoff)
8579 return 0;
8580 ;
8581 return 0;
8582 }
8583 _ACEOF
8584 rm -f conftest.$ac_objext
8585 if { (ac_try="$ac_compile"
8586 case "(($ac_try" in
8587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8588 *) ac_try_echo=$ac_try;;
8589 esac
8590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8591 $as_echo "$ac_try_echo") >&5
8592 (eval "$ac_compile") 2>conftest.er1
8593 ac_status=$?
8594 grep -v '^ *+' conftest.er1 >conftest.err
8595 rm -f conftest.er1
8596 cat conftest.err >&5
8597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); } && {
8599 test -z "$ac_c_werror_flag" ||
8600 test ! -s conftest.err
8601 } && test -s conftest.$ac_objext; then
8602 ac_cv_member_struct_tm_tm_gmtoff=yes
8603 else
8604 $as_echo "$as_me: failed program was:" >&5
8605 sed 's/^/| /' conftest.$ac_ext >&5
8606
8607 ac_cv_member_struct_tm_tm_gmtoff=no
8608 fi
8609
8610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8611 fi
8612
8613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8614 fi
8615 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8616 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8617 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8618
8619 cat >>confdefs.h <<\_ACEOF
8620 #define HAVE_TM_GMTOFF 1
8621 _ACEOF
8622
8623 fi
8624
8625 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8626 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8627 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8628 $as_echo_n "(cached) " >&6
8629 else
8630 cat >conftest.$ac_ext <<_ACEOF
8631 /* confdefs.h. */
8632 _ACEOF
8633 cat confdefs.h >>conftest.$ac_ext
8634 cat >>conftest.$ac_ext <<_ACEOF
8635 /* end confdefs.h. */
8636 $ac_includes_default
8637 #if HAVE_SYS_SOCKET_H
8638 #include <sys/socket.h>
8639 #endif
8640 #if HAVE_NET_IF_H
8641 #include <net/if.h>
8642 #endif
8643
8644 int
8645 main ()
8646 {
8647 static struct ifreq ac_aggr;
8648 if (ac_aggr.ifr_flags)
8649 return 0;
8650 ;
8651 return 0;
8652 }
8653 _ACEOF
8654 rm -f conftest.$ac_objext
8655 if { (ac_try="$ac_compile"
8656 case "(($ac_try" in
8657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8658 *) ac_try_echo=$ac_try;;
8659 esac
8660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8661 $as_echo "$ac_try_echo") >&5
8662 (eval "$ac_compile") 2>conftest.er1
8663 ac_status=$?
8664 grep -v '^ *+' conftest.er1 >conftest.err
8665 rm -f conftest.er1
8666 cat conftest.err >&5
8667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); } && {
8669 test -z "$ac_c_werror_flag" ||
8670 test ! -s conftest.err
8671 } && test -s conftest.$ac_objext; then
8672 ac_cv_member_struct_ifreq_ifr_flags=yes
8673 else
8674 $as_echo "$as_me: failed program was:" >&5
8675 sed 's/^/| /' conftest.$ac_ext >&5
8676
8677 cat >conftest.$ac_ext <<_ACEOF
8678 /* confdefs.h. */
8679 _ACEOF
8680 cat confdefs.h >>conftest.$ac_ext
8681 cat >>conftest.$ac_ext <<_ACEOF
8682 /* end confdefs.h. */
8683 $ac_includes_default
8684 #if HAVE_SYS_SOCKET_H
8685 #include <sys/socket.h>
8686 #endif
8687 #if HAVE_NET_IF_H
8688 #include <net/if.h>
8689 #endif
8690
8691 int
8692 main ()
8693 {
8694 static struct ifreq ac_aggr;
8695 if (sizeof ac_aggr.ifr_flags)
8696 return 0;
8697 ;
8698 return 0;
8699 }
8700 _ACEOF
8701 rm -f conftest.$ac_objext
8702 if { (ac_try="$ac_compile"
8703 case "(($ac_try" in
8704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8705 *) ac_try_echo=$ac_try;;
8706 esac
8707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8708 $as_echo "$ac_try_echo") >&5
8709 (eval "$ac_compile") 2>conftest.er1
8710 ac_status=$?
8711 grep -v '^ *+' conftest.er1 >conftest.err
8712 rm -f conftest.er1
8713 cat conftest.err >&5
8714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); } && {
8716 test -z "$ac_c_werror_flag" ||
8717 test ! -s conftest.err
8718 } && test -s conftest.$ac_objext; then
8719 ac_cv_member_struct_ifreq_ifr_flags=yes
8720 else
8721 $as_echo "$as_me: failed program was:" >&5
8722 sed 's/^/| /' conftest.$ac_ext >&5
8723
8724 ac_cv_member_struct_ifreq_ifr_flags=no
8725 fi
8726
8727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8728 fi
8729
8730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8731 fi
8732 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8733 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8734 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8735
8736 cat >>confdefs.h <<_ACEOF
8737 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8738 _ACEOF
8739
8740
8741 fi
8742 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8743 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8744 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8745 $as_echo_n "(cached) " >&6
8746 else
8747 cat >conftest.$ac_ext <<_ACEOF
8748 /* confdefs.h. */
8749 _ACEOF
8750 cat confdefs.h >>conftest.$ac_ext
8751 cat >>conftest.$ac_ext <<_ACEOF
8752 /* end confdefs.h. */
8753 $ac_includes_default
8754 #if HAVE_SYS_SOCKET_H
8755 #include <sys/socket.h>
8756 #endif
8757 #if HAVE_NET_IF_H
8758 #include <net/if.h>
8759 #endif
8760
8761 int
8762 main ()
8763 {
8764 static struct ifreq ac_aggr;
8765 if (ac_aggr.ifr_hwaddr)
8766 return 0;
8767 ;
8768 return 0;
8769 }
8770 _ACEOF
8771 rm -f conftest.$ac_objext
8772 if { (ac_try="$ac_compile"
8773 case "(($ac_try" in
8774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8775 *) ac_try_echo=$ac_try;;
8776 esac
8777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8778 $as_echo "$ac_try_echo") >&5
8779 (eval "$ac_compile") 2>conftest.er1
8780 ac_status=$?
8781 grep -v '^ *+' conftest.er1 >conftest.err
8782 rm -f conftest.er1
8783 cat conftest.err >&5
8784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); } && {
8786 test -z "$ac_c_werror_flag" ||
8787 test ! -s conftest.err
8788 } && test -s conftest.$ac_objext; then
8789 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8790 else
8791 $as_echo "$as_me: failed program was:" >&5
8792 sed 's/^/| /' conftest.$ac_ext >&5
8793
8794 cat >conftest.$ac_ext <<_ACEOF
8795 /* confdefs.h. */
8796 _ACEOF
8797 cat confdefs.h >>conftest.$ac_ext
8798 cat >>conftest.$ac_ext <<_ACEOF
8799 /* end confdefs.h. */
8800 $ac_includes_default
8801 #if HAVE_SYS_SOCKET_H
8802 #include <sys/socket.h>
8803 #endif
8804 #if HAVE_NET_IF_H
8805 #include <net/if.h>
8806 #endif
8807
8808 int
8809 main ()
8810 {
8811 static struct ifreq ac_aggr;
8812 if (sizeof ac_aggr.ifr_hwaddr)
8813 return 0;
8814 ;
8815 return 0;
8816 }
8817 _ACEOF
8818 rm -f conftest.$ac_objext
8819 if { (ac_try="$ac_compile"
8820 case "(($ac_try" in
8821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8822 *) ac_try_echo=$ac_try;;
8823 esac
8824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8825 $as_echo "$ac_try_echo") >&5
8826 (eval "$ac_compile") 2>conftest.er1
8827 ac_status=$?
8828 grep -v '^ *+' conftest.er1 >conftest.err
8829 rm -f conftest.er1
8830 cat conftest.err >&5
8831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); } && {
8833 test -z "$ac_c_werror_flag" ||
8834 test ! -s conftest.err
8835 } && test -s conftest.$ac_objext; then
8836 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8837 else
8838 $as_echo "$as_me: failed program was:" >&5
8839 sed 's/^/| /' conftest.$ac_ext >&5
8840
8841 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8842 fi
8843
8844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8845 fi
8846
8847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8848 fi
8849 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8850 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8851 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8852
8853 cat >>confdefs.h <<_ACEOF
8854 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8855 _ACEOF
8856
8857
8858 fi
8859 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8860 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8861 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8862 $as_echo_n "(cached) " >&6
8863 else
8864 cat >conftest.$ac_ext <<_ACEOF
8865 /* confdefs.h. */
8866 _ACEOF
8867 cat confdefs.h >>conftest.$ac_ext
8868 cat >>conftest.$ac_ext <<_ACEOF
8869 /* end confdefs.h. */
8870 $ac_includes_default
8871 #if HAVE_SYS_SOCKET_H
8872 #include <sys/socket.h>
8873 #endif
8874 #if HAVE_NET_IF_H
8875 #include <net/if.h>
8876 #endif
8877
8878 int
8879 main ()
8880 {
8881 static struct ifreq ac_aggr;
8882 if (ac_aggr.ifr_netmask)
8883 return 0;
8884 ;
8885 return 0;
8886 }
8887 _ACEOF
8888 rm -f conftest.$ac_objext
8889 if { (ac_try="$ac_compile"
8890 case "(($ac_try" in
8891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8892 *) ac_try_echo=$ac_try;;
8893 esac
8894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8895 $as_echo "$ac_try_echo") >&5
8896 (eval "$ac_compile") 2>conftest.er1
8897 ac_status=$?
8898 grep -v '^ *+' conftest.er1 >conftest.err
8899 rm -f conftest.er1
8900 cat conftest.err >&5
8901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); } && {
8903 test -z "$ac_c_werror_flag" ||
8904 test ! -s conftest.err
8905 } && test -s conftest.$ac_objext; then
8906 ac_cv_member_struct_ifreq_ifr_netmask=yes
8907 else
8908 $as_echo "$as_me: failed program was:" >&5
8909 sed 's/^/| /' conftest.$ac_ext >&5
8910
8911 cat >conftest.$ac_ext <<_ACEOF
8912 /* confdefs.h. */
8913 _ACEOF
8914 cat confdefs.h >>conftest.$ac_ext
8915 cat >>conftest.$ac_ext <<_ACEOF
8916 /* end confdefs.h. */
8917 $ac_includes_default
8918 #if HAVE_SYS_SOCKET_H
8919 #include <sys/socket.h>
8920 #endif
8921 #if HAVE_NET_IF_H
8922 #include <net/if.h>
8923 #endif
8924
8925 int
8926 main ()
8927 {
8928 static struct ifreq ac_aggr;
8929 if (sizeof ac_aggr.ifr_netmask)
8930 return 0;
8931 ;
8932 return 0;
8933 }
8934 _ACEOF
8935 rm -f conftest.$ac_objext
8936 if { (ac_try="$ac_compile"
8937 case "(($ac_try" in
8938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8939 *) ac_try_echo=$ac_try;;
8940 esac
8941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8942 $as_echo "$ac_try_echo") >&5
8943 (eval "$ac_compile") 2>conftest.er1
8944 ac_status=$?
8945 grep -v '^ *+' conftest.er1 >conftest.err
8946 rm -f conftest.er1
8947 cat conftest.err >&5
8948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); } && {
8950 test -z "$ac_c_werror_flag" ||
8951 test ! -s conftest.err
8952 } && test -s conftest.$ac_objext; then
8953 ac_cv_member_struct_ifreq_ifr_netmask=yes
8954 else
8955 $as_echo "$as_me: failed program was:" >&5
8956 sed 's/^/| /' conftest.$ac_ext >&5
8957
8958 ac_cv_member_struct_ifreq_ifr_netmask=no
8959 fi
8960
8961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8962 fi
8963
8964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8965 fi
8966 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8967 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8968 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8969
8970 cat >>confdefs.h <<_ACEOF
8971 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8972 _ACEOF
8973
8974
8975 fi
8976 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8977 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8978 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8979 $as_echo_n "(cached) " >&6
8980 else
8981 cat >conftest.$ac_ext <<_ACEOF
8982 /* confdefs.h. */
8983 _ACEOF
8984 cat confdefs.h >>conftest.$ac_ext
8985 cat >>conftest.$ac_ext <<_ACEOF
8986 /* end confdefs.h. */
8987 $ac_includes_default
8988 #if HAVE_SYS_SOCKET_H
8989 #include <sys/socket.h>
8990 #endif
8991 #if HAVE_NET_IF_H
8992 #include <net/if.h>
8993 #endif
8994
8995 int
8996 main ()
8997 {
8998 static struct ifreq ac_aggr;
8999 if (ac_aggr.ifr_broadaddr)
9000 return 0;
9001 ;
9002 return 0;
9003 }
9004 _ACEOF
9005 rm -f conftest.$ac_objext
9006 if { (ac_try="$ac_compile"
9007 case "(($ac_try" in
9008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9009 *) ac_try_echo=$ac_try;;
9010 esac
9011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9012 $as_echo "$ac_try_echo") >&5
9013 (eval "$ac_compile") 2>conftest.er1
9014 ac_status=$?
9015 grep -v '^ *+' conftest.er1 >conftest.err
9016 rm -f conftest.er1
9017 cat conftest.err >&5
9018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); } && {
9020 test -z "$ac_c_werror_flag" ||
9021 test ! -s conftest.err
9022 } && test -s conftest.$ac_objext; then
9023 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
9024 else
9025 $as_echo "$as_me: failed program was:" >&5
9026 sed 's/^/| /' conftest.$ac_ext >&5
9027
9028 cat >conftest.$ac_ext <<_ACEOF
9029 /* confdefs.h. */
9030 _ACEOF
9031 cat confdefs.h >>conftest.$ac_ext
9032 cat >>conftest.$ac_ext <<_ACEOF
9033 /* end confdefs.h. */
9034 $ac_includes_default
9035 #if HAVE_SYS_SOCKET_H
9036 #include <sys/socket.h>
9037 #endif
9038 #if HAVE_NET_IF_H
9039 #include <net/if.h>
9040 #endif
9041
9042 int
9043 main ()
9044 {
9045 static struct ifreq ac_aggr;
9046 if (sizeof ac_aggr.ifr_broadaddr)
9047 return 0;
9048 ;
9049 return 0;
9050 }
9051 _ACEOF
9052 rm -f conftest.$ac_objext
9053 if { (ac_try="$ac_compile"
9054 case "(($ac_try" in
9055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9056 *) ac_try_echo=$ac_try;;
9057 esac
9058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9059 $as_echo "$ac_try_echo") >&5
9060 (eval "$ac_compile") 2>conftest.er1
9061 ac_status=$?
9062 grep -v '^ *+' conftest.er1 >conftest.err
9063 rm -f conftest.er1
9064 cat conftest.err >&5
9065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); } && {
9067 test -z "$ac_c_werror_flag" ||
9068 test ! -s conftest.err
9069 } && test -s conftest.$ac_objext; then
9070 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
9071 else
9072 $as_echo "$as_me: failed program was:" >&5
9073 sed 's/^/| /' conftest.$ac_ext >&5
9074
9075 ac_cv_member_struct_ifreq_ifr_broadaddr=no
9076 fi
9077
9078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9079 fi
9080
9081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9082 fi
9083 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
9084 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
9085 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
9086
9087 cat >>confdefs.h <<_ACEOF
9088 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9089 _ACEOF
9090
9091
9092 fi
9093 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
9094 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
9095 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
9096 $as_echo_n "(cached) " >&6
9097 else
9098 cat >conftest.$ac_ext <<_ACEOF
9099 /* confdefs.h. */
9100 _ACEOF
9101 cat confdefs.h >>conftest.$ac_ext
9102 cat >>conftest.$ac_ext <<_ACEOF
9103 /* end confdefs.h. */
9104 $ac_includes_default
9105 #if HAVE_SYS_SOCKET_H
9106 #include <sys/socket.h>
9107 #endif
9108 #if HAVE_NET_IF_H
9109 #include <net/if.h>
9110 #endif
9111
9112 int
9113 main ()
9114 {
9115 static struct ifreq ac_aggr;
9116 if (ac_aggr.ifr_addr)
9117 return 0;
9118 ;
9119 return 0;
9120 }
9121 _ACEOF
9122 rm -f conftest.$ac_objext
9123 if { (ac_try="$ac_compile"
9124 case "(($ac_try" in
9125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9126 *) ac_try_echo=$ac_try;;
9127 esac
9128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9129 $as_echo "$ac_try_echo") >&5
9130 (eval "$ac_compile") 2>conftest.er1
9131 ac_status=$?
9132 grep -v '^ *+' conftest.er1 >conftest.err
9133 rm -f conftest.er1
9134 cat conftest.err >&5
9135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); } && {
9137 test -z "$ac_c_werror_flag" ||
9138 test ! -s conftest.err
9139 } && test -s conftest.$ac_objext; then
9140 ac_cv_member_struct_ifreq_ifr_addr=yes
9141 else
9142 $as_echo "$as_me: failed program was:" >&5
9143 sed 's/^/| /' conftest.$ac_ext >&5
9144
9145 cat >conftest.$ac_ext <<_ACEOF
9146 /* confdefs.h. */
9147 _ACEOF
9148 cat confdefs.h >>conftest.$ac_ext
9149 cat >>conftest.$ac_ext <<_ACEOF
9150 /* end confdefs.h. */
9151 $ac_includes_default
9152 #if HAVE_SYS_SOCKET_H
9153 #include <sys/socket.h>
9154 #endif
9155 #if HAVE_NET_IF_H
9156 #include <net/if.h>
9157 #endif
9158
9159 int
9160 main ()
9161 {
9162 static struct ifreq ac_aggr;
9163 if (sizeof ac_aggr.ifr_addr)
9164 return 0;
9165 ;
9166 return 0;
9167 }
9168 _ACEOF
9169 rm -f conftest.$ac_objext
9170 if { (ac_try="$ac_compile"
9171 case "(($ac_try" in
9172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9173 *) ac_try_echo=$ac_try;;
9174 esac
9175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9176 $as_echo "$ac_try_echo") >&5
9177 (eval "$ac_compile") 2>conftest.er1
9178 ac_status=$?
9179 grep -v '^ *+' conftest.er1 >conftest.err
9180 rm -f conftest.er1
9181 cat conftest.err >&5
9182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 (exit $ac_status); } && {
9184 test -z "$ac_c_werror_flag" ||
9185 test ! -s conftest.err
9186 } && test -s conftest.$ac_objext; then
9187 ac_cv_member_struct_ifreq_ifr_addr=yes
9188 else
9189 $as_echo "$as_me: failed program was:" >&5
9190 sed 's/^/| /' conftest.$ac_ext >&5
9191
9192 ac_cv_member_struct_ifreq_ifr_addr=no
9193 fi
9194
9195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9196 fi
9197
9198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9199 fi
9200 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
9201 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
9202 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
9203
9204 cat >>confdefs.h <<_ACEOF
9205 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9206 _ACEOF
9207
9208
9209 fi
9210
9211
9212
9213 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
9214 $as_echo_n "checking for function prototypes... " >&6; }
9215 if test "$ac_cv_prog_cc_c89" != no; then
9216 { $as_echo "$as_me:$LINENO: result: yes" >&5
9217 $as_echo "yes" >&6; }
9218
9219 cat >>confdefs.h <<\_ACEOF
9220 #define PROTOTYPES 1
9221 _ACEOF
9222
9223
9224 cat >>confdefs.h <<\_ACEOF
9225 #define __PROTOTYPES 1
9226 _ACEOF
9227
9228 else
9229 { $as_echo "$as_me:$LINENO: result: no" >&5
9230 $as_echo "no" >&6; }
9231 fi
9232
9233 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
9234 $as_echo_n "checking for working volatile... " >&6; }
9235 if test "${ac_cv_c_volatile+set}" = set; then
9236 $as_echo_n "(cached) " >&6
9237 else
9238 cat >conftest.$ac_ext <<_ACEOF
9239 /* confdefs.h. */
9240 _ACEOF
9241 cat confdefs.h >>conftest.$ac_ext
9242 cat >>conftest.$ac_ext <<_ACEOF
9243 /* end confdefs.h. */
9244
9245 int
9246 main ()
9247 {
9248
9249 volatile int x;
9250 int * volatile y = (int *) 0;
9251 return !x && !y;
9252 ;
9253 return 0;
9254 }
9255 _ACEOF
9256 rm -f conftest.$ac_objext
9257 if { (ac_try="$ac_compile"
9258 case "(($ac_try" in
9259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9260 *) ac_try_echo=$ac_try;;
9261 esac
9262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9263 $as_echo "$ac_try_echo") >&5
9264 (eval "$ac_compile") 2>conftest.er1
9265 ac_status=$?
9266 grep -v '^ *+' conftest.er1 >conftest.err
9267 rm -f conftest.er1
9268 cat conftest.err >&5
9269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); } && {
9271 test -z "$ac_c_werror_flag" ||
9272 test ! -s conftest.err
9273 } && test -s conftest.$ac_objext; then
9274 ac_cv_c_volatile=yes
9275 else
9276 $as_echo "$as_me: failed program was:" >&5
9277 sed 's/^/| /' conftest.$ac_ext >&5
9278
9279 ac_cv_c_volatile=no
9280 fi
9281
9282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9283 fi
9284 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9285 $as_echo "$ac_cv_c_volatile" >&6; }
9286 if test $ac_cv_c_volatile = no; then
9287
9288 cat >>confdefs.h <<\_ACEOF
9289 #define volatile /**/
9290 _ACEOF
9291
9292 fi
9293
9294 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9295 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9296 if test "${ac_cv_c_const+set}" = set; then
9297 $as_echo_n "(cached) " >&6
9298 else
9299 cat >conftest.$ac_ext <<_ACEOF
9300 /* confdefs.h. */
9301 _ACEOF
9302 cat confdefs.h >>conftest.$ac_ext
9303 cat >>conftest.$ac_ext <<_ACEOF
9304 /* end confdefs.h. */
9305
9306 int
9307 main ()
9308 {
9309 /* FIXME: Include the comments suggested by Paul. */
9310 #ifndef __cplusplus
9311 /* Ultrix mips cc rejects this. */
9312 typedef int charset[2];
9313 const charset cs;
9314 /* SunOS 4.1.1 cc rejects this. */
9315 char const *const *pcpcc;
9316 char **ppc;
9317 /* NEC SVR4.0.2 mips cc rejects this. */
9318 struct point {int x, y;};
9319 static struct point const zero = {0,0};
9320 /* AIX XL C 1.02.0.0 rejects this.
9321 It does not let you subtract one const X* pointer from another in
9322 an arm of an if-expression whose if-part is not a constant
9323 expression */
9324 const char *g = "string";
9325 pcpcc = &g + (g ? g-g : 0);
9326 /* HPUX 7.0 cc rejects these. */
9327 ++pcpcc;
9328 ppc = (char**) pcpcc;
9329 pcpcc = (char const *const *) ppc;
9330 { /* SCO 3.2v4 cc rejects this. */
9331 char *t;
9332 char const *s = 0 ? (char *) 0 : (char const *) 0;
9333
9334 *t++ = 0;
9335 if (s) return 0;
9336 }
9337 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9338 int x[] = {25, 17};
9339 const int *foo = &x[0];
9340 ++foo;
9341 }
9342 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9343 typedef const int *iptr;
9344 iptr p = 0;
9345 ++p;
9346 }
9347 { /* AIX XL C 1.02.0.0 rejects this saying
9348 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9349 struct s { int j; const int *ap[3]; };
9350 struct s *b; b->j = 5;
9351 }
9352 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9353 const int foo = 10;
9354 if (!foo) return 0;
9355 }
9356 return !cs[0] && !zero.x;
9357 #endif
9358
9359 ;
9360 return 0;
9361 }
9362 _ACEOF
9363 rm -f conftest.$ac_objext
9364 if { (ac_try="$ac_compile"
9365 case "(($ac_try" in
9366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9367 *) ac_try_echo=$ac_try;;
9368 esac
9369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9370 $as_echo "$ac_try_echo") >&5
9371 (eval "$ac_compile") 2>conftest.er1
9372 ac_status=$?
9373 grep -v '^ *+' conftest.er1 >conftest.err
9374 rm -f conftest.er1
9375 cat conftest.err >&5
9376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377 (exit $ac_status); } && {
9378 test -z "$ac_c_werror_flag" ||
9379 test ! -s conftest.err
9380 } && test -s conftest.$ac_objext; then
9381 ac_cv_c_const=yes
9382 else
9383 $as_echo "$as_me: failed program was:" >&5
9384 sed 's/^/| /' conftest.$ac_ext >&5
9385
9386 ac_cv_c_const=no
9387 fi
9388
9389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9390 fi
9391 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9392 $as_echo "$ac_cv_c_const" >&6; }
9393 if test $ac_cv_c_const = no; then
9394
9395 cat >>confdefs.h <<\_ACEOF
9396 #define const /**/
9397 _ACEOF
9398
9399 fi
9400
9401 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9402 $as_echo_n "checking for void * support... " >&6; }
9403 if test "${emacs_cv_void_star+set}" = set; then
9404 $as_echo_n "(cached) " >&6
9405 else
9406 cat >conftest.$ac_ext <<_ACEOF
9407 /* confdefs.h. */
9408 _ACEOF
9409 cat confdefs.h >>conftest.$ac_ext
9410 cat >>conftest.$ac_ext <<_ACEOF
9411 /* end confdefs.h. */
9412
9413 int
9414 main ()
9415 {
9416 void * foo;
9417 ;
9418 return 0;
9419 }
9420 _ACEOF
9421 rm -f conftest.$ac_objext
9422 if { (ac_try="$ac_compile"
9423 case "(($ac_try" in
9424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9425 *) ac_try_echo=$ac_try;;
9426 esac
9427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9428 $as_echo "$ac_try_echo") >&5
9429 (eval "$ac_compile") 2>conftest.er1
9430 ac_status=$?
9431 grep -v '^ *+' conftest.er1 >conftest.err
9432 rm -f conftest.er1
9433 cat conftest.err >&5
9434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); } && {
9436 test -z "$ac_c_werror_flag" ||
9437 test ! -s conftest.err
9438 } && test -s conftest.$ac_objext; then
9439 emacs_cv_void_star=yes
9440 else
9441 $as_echo "$as_me: failed program was:" >&5
9442 sed 's/^/| /' conftest.$ac_ext >&5
9443
9444 emacs_cv_void_star=no
9445 fi
9446
9447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9448 fi
9449 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9450 $as_echo "$emacs_cv_void_star" >&6; }
9451 if test $emacs_cv_void_star = yes; then
9452 cat >>confdefs.h <<\_ACEOF
9453 #define POINTER_TYPE void
9454 _ACEOF
9455
9456 else
9457 cat >>confdefs.h <<\_ACEOF
9458 #define POINTER_TYPE char
9459 _ACEOF
9460
9461 fi
9462
9463
9464
9465
9466
9467 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9468 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9469 set x ${MAKE-make}
9470 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9471 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9472 $as_echo_n "(cached) " >&6
9473 else
9474 cat >conftest.make <<\_ACEOF
9475 SHELL = /bin/sh
9476 all:
9477 @echo '@@@%%%=$(MAKE)=@@@%%%'
9478 _ACEOF
9479 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9480 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9481 *@@@%%%=?*=@@@%%%*)
9482 eval ac_cv_prog_make_${ac_make}_set=yes;;
9483 *)
9484 eval ac_cv_prog_make_${ac_make}_set=no;;
9485 esac
9486 rm -f conftest.make
9487 fi
9488 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9489 { $as_echo "$as_me:$LINENO: result: yes" >&5
9490 $as_echo "yes" >&6; }
9491 SET_MAKE=
9492 else
9493 { $as_echo "$as_me:$LINENO: result: no" >&5
9494 $as_echo "no" >&6; }
9495 SET_MAKE="MAKE=${MAKE-make}"
9496 fi
9497
9498
9499 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9500 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9501 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9502 HAVE_GNU_MAKE=no
9503 testval=`make --version 2>/dev/null | grep 'GNU Make'`
9504 if test "x$testval" != x; then
9505 HAVE_GNU_MAKE=yes
9506 else
9507 ac_enable_autodepend=no
9508 fi
9509 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9510 $as_echo "$HAVE_GNU_MAKE" >&6; }
9511 if test $HAVE_GNU_MAKE = yes; then
9512 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9513 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9514 SAVE_CFLAGS="$CFLAGS"
9515 CFLAGS="$CFLAGS -MMD -MF deps.d"
9516 cat >conftest.$ac_ext <<_ACEOF
9517 /* confdefs.h. */
9518 _ACEOF
9519 cat confdefs.h >>conftest.$ac_ext
9520 cat >>conftest.$ac_ext <<_ACEOF
9521 /* end confdefs.h. */
9522
9523 int
9524 main ()
9525 {
9526
9527 ;
9528 return 0;
9529 }
9530 _ACEOF
9531 rm -f conftest.$ac_objext
9532 if { (ac_try="$ac_compile"
9533 case "(($ac_try" in
9534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9535 *) ac_try_echo=$ac_try;;
9536 esac
9537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9538 $as_echo "$ac_try_echo") >&5
9539 (eval "$ac_compile") 2>conftest.er1
9540 ac_status=$?
9541 grep -v '^ *+' conftest.er1 >conftest.err
9542 rm -f conftest.er1
9543 cat conftest.err >&5
9544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); } && {
9546 test -z "$ac_c_werror_flag" ||
9547 test ! -s conftest.err
9548 } && test -s conftest.$ac_objext; then
9549 :
9550 else
9551 $as_echo "$as_me: failed program was:" >&5
9552 sed 's/^/| /' conftest.$ac_ext >&5
9553
9554 ac_enable_autodepend=no
9555 fi
9556
9557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9558 CFLAGS="$SAVE_CFLAGS"
9559 test -f deps.d || ac_enable_autodepend=no
9560 rm -rf deps.d
9561 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9562 $as_echo "$ac_enable_autodepend" >&6; }
9563 fi
9564 if test $ac_enable_autodepend = yes; then
9565
9566 cat >>confdefs.h <<\_ACEOF
9567 #define AUTO_DEPEND 1
9568 _ACEOF
9569
9570 fi
9571 fi
9572
9573 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9574 $as_echo_n "checking for long file names... " >&6; }
9575 if test "${ac_cv_sys_long_file_names+set}" = set; then
9576 $as_echo_n "(cached) " >&6
9577 else
9578 ac_cv_sys_long_file_names=yes
9579 # Test for long file names in all the places we know might matter:
9580 # . the current directory, where building will happen
9581 # $prefix/lib where we will be installing things
9582 # $exec_prefix/lib likewise
9583 # $TMPDIR if set, where it might want to write temporary files
9584 # /tmp where it might want to write temporary files
9585 # /var/tmp likewise
9586 # /usr/tmp likewise
9587 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9588 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9589 # in the usual case where exec_prefix is '${prefix}'.
9590 case $ac_dir in #(
9591 . | /* | ?:[\\/]*) ;; #(
9592 *) continue;;
9593 esac
9594 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9595 ac_xdir=$ac_dir/cf$$
9596 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9597 ac_tf1=$ac_xdir/conftest9012345
9598 ac_tf2=$ac_xdir/conftest9012346
9599 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9600 ac_cv_sys_long_file_names=no
9601 rm -f -r "$ac_xdir" 2>/dev/null
9602 test $ac_cv_sys_long_file_names = no && break
9603 done
9604 fi
9605 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9606 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9607 if test $ac_cv_sys_long_file_names = yes; then
9608
9609 cat >>confdefs.h <<\_ACEOF
9610 #define HAVE_LONG_FILE_NAMES 1
9611 _ACEOF
9612
9613 fi
9614
9615
9616 #### Choose a window system.
9617
9618 { $as_echo "$as_me:$LINENO: checking for X" >&5
9619 $as_echo_n "checking for X... " >&6; }
9620
9621
9622 # Check whether --with-x was given.
9623 if test "${with_x+set}" = set; then
9624 withval=$with_x;
9625 fi
9626
9627 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9628 if test "x$with_x" = xno; then
9629 # The user explicitly disabled X.
9630 have_x=disabled
9631 else
9632 case $x_includes,$x_libraries in #(
9633 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9634 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9635 { (exit 1); exit 1; }; };; #(
9636 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9637 $as_echo_n "(cached) " >&6
9638 else
9639 # One or both of the vars are not set, and there is no cached value.
9640 ac_x_includes=no ac_x_libraries=no
9641 rm -f -r conftest.dir
9642 if mkdir conftest.dir; then
9643 cd conftest.dir
9644 cat >Imakefile <<'_ACEOF'
9645 incroot:
9646 @echo incroot='${INCROOT}'
9647 usrlibdir:
9648 @echo usrlibdir='${USRLIBDIR}'
9649 libdir:
9650 @echo libdir='${LIBDIR}'
9651 _ACEOF
9652 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9653 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9654 for ac_var in incroot usrlibdir libdir; do
9655 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9656 done
9657 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9658 for ac_extension in a so sl dylib la dll; do
9659 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9660 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9661 ac_im_usrlibdir=$ac_im_libdir; break
9662 fi
9663 done
9664 # Screen out bogus values from the imake configuration. They are
9665 # bogus both because they are the default anyway, and because
9666 # using them would break gcc on systems where it needs fixed includes.
9667 case $ac_im_incroot in
9668 /usr/include) ac_x_includes= ;;
9669 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9670 esac
9671 case $ac_im_usrlibdir in
9672 /usr/lib | /lib) ;;
9673 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9674 esac
9675 fi
9676 cd ..
9677 rm -f -r conftest.dir
9678 fi
9679
9680 # Standard set of common directories for X headers.
9681 # Check X11 before X11Rn because it is often a symlink to the current release.
9682 ac_x_header_dirs='
9683 /usr/X11/include
9684 /usr/X11R6/include
9685 /usr/X11R5/include
9686 /usr/X11R4/include
9687
9688 /usr/include/X11
9689 /usr/include/X11R6
9690 /usr/include/X11R5
9691 /usr/include/X11R4
9692
9693 /usr/local/X11/include
9694 /usr/local/X11R6/include
9695 /usr/local/X11R5/include
9696 /usr/local/X11R4/include
9697
9698 /usr/local/include/X11
9699 /usr/local/include/X11R6
9700 /usr/local/include/X11R5
9701 /usr/local/include/X11R4
9702
9703 /usr/X386/include
9704 /usr/x386/include
9705 /usr/XFree86/include/X11
9706
9707 /usr/include
9708 /usr/local/include
9709 /usr/unsupported/include
9710 /usr/athena/include
9711 /usr/local/x11r5/include
9712 /usr/lpp/Xamples/include
9713
9714 /usr/openwin/include
9715 /usr/openwin/share/include'
9716
9717 if test "$ac_x_includes" = no; then
9718 # Guess where to find include files, by looking for Xlib.h.
9719 # First, try using that file with no special directory specified.
9720 cat >conftest.$ac_ext <<_ACEOF
9721 /* confdefs.h. */
9722 _ACEOF
9723 cat confdefs.h >>conftest.$ac_ext
9724 cat >>conftest.$ac_ext <<_ACEOF
9725 /* end confdefs.h. */
9726 #include <X11/Xlib.h>
9727 _ACEOF
9728 if { (ac_try="$ac_cpp conftest.$ac_ext"
9729 case "(($ac_try" in
9730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9731 *) ac_try_echo=$ac_try;;
9732 esac
9733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9734 $as_echo "$ac_try_echo") >&5
9735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9736 ac_status=$?
9737 grep -v '^ *+' conftest.er1 >conftest.err
9738 rm -f conftest.er1
9739 cat conftest.err >&5
9740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); } >/dev/null && {
9742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9743 test ! -s conftest.err
9744 }; then
9745 # We can compile using X headers with no special include directory.
9746 ac_x_includes=
9747 else
9748 $as_echo "$as_me: failed program was:" >&5
9749 sed 's/^/| /' conftest.$ac_ext >&5
9750
9751 for ac_dir in $ac_x_header_dirs; do
9752 if test -r "$ac_dir/X11/Xlib.h"; then
9753 ac_x_includes=$ac_dir
9754 break
9755 fi
9756 done
9757 fi
9758
9759 rm -f conftest.err conftest.$ac_ext
9760 fi # $ac_x_includes = no
9761
9762 if test "$ac_x_libraries" = no; then
9763 # Check for the libraries.
9764 # See if we find them without any special options.
9765 # Don't add to $LIBS permanently.
9766 ac_save_LIBS=$LIBS
9767 LIBS="-lX11 $LIBS"
9768 cat >conftest.$ac_ext <<_ACEOF
9769 /* confdefs.h. */
9770 _ACEOF
9771 cat confdefs.h >>conftest.$ac_ext
9772 cat >>conftest.$ac_ext <<_ACEOF
9773 /* end confdefs.h. */
9774 #include <X11/Xlib.h>
9775 int
9776 main ()
9777 {
9778 XrmInitialize ()
9779 ;
9780 return 0;
9781 }
9782 _ACEOF
9783 rm -f conftest.$ac_objext conftest$ac_exeext
9784 if { (ac_try="$ac_link"
9785 case "(($ac_try" in
9786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9787 *) ac_try_echo=$ac_try;;
9788 esac
9789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9790 $as_echo "$ac_try_echo") >&5
9791 (eval "$ac_link") 2>conftest.er1
9792 ac_status=$?
9793 grep -v '^ *+' conftest.er1 >conftest.err
9794 rm -f conftest.er1
9795 cat conftest.err >&5
9796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); } && {
9798 test -z "$ac_c_werror_flag" ||
9799 test ! -s conftest.err
9800 } && test -s conftest$ac_exeext && {
9801 test "$cross_compiling" = yes ||
9802 $as_test_x conftest$ac_exeext
9803 }; then
9804 LIBS=$ac_save_LIBS
9805 # We can link X programs with no special library path.
9806 ac_x_libraries=
9807 else
9808 $as_echo "$as_me: failed program was:" >&5
9809 sed 's/^/| /' conftest.$ac_ext >&5
9810
9811 LIBS=$ac_save_LIBS
9812 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9813 do
9814 # Don't even attempt the hair of trying to link an X program!
9815 for ac_extension in a so sl dylib la dll; do
9816 if test -r "$ac_dir/libX11.$ac_extension"; then
9817 ac_x_libraries=$ac_dir
9818 break 2
9819 fi
9820 done
9821 done
9822 fi
9823
9824 rm -rf conftest.dSYM
9825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9826 conftest$ac_exeext conftest.$ac_ext
9827 fi # $ac_x_libraries = no
9828
9829 case $ac_x_includes,$ac_x_libraries in #(
9830 no,* | *,no | *\'*)
9831 # Didn't find X, or a directory has "'" in its name.
9832 ac_cv_have_x="have_x=no";; #(
9833 *)
9834 # Record where we found X for the cache.
9835 ac_cv_have_x="have_x=yes\
9836 ac_x_includes='$ac_x_includes'\
9837 ac_x_libraries='$ac_x_libraries'"
9838 esac
9839 fi
9840 ;; #(
9841 *) have_x=yes;;
9842 esac
9843 eval "$ac_cv_have_x"
9844 fi # $with_x != no
9845
9846 if test "$have_x" != yes; then
9847 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9848 $as_echo "$have_x" >&6; }
9849 no_x=yes
9850 else
9851 # If each of the values was on the command line, it overrides each guess.
9852 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9853 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9854 # Update the cache value to reflect the command line values.
9855 ac_cv_have_x="have_x=yes\
9856 ac_x_includes='$x_includes'\
9857 ac_x_libraries='$x_libraries'"
9858 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9859 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9860 fi
9861
9862 if test "$no_x" = yes; then
9863 window_system=none
9864 else
9865 window_system=x11
9866 fi
9867
9868 ## Workaround for bug in autoconf <= 2.62.
9869 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9870 ## No need to do anything special for these standard directories.
9871 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9872
9873 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9874
9875 fi
9876
9877 LD_SWITCH_X_SITE_AUX=
9878 LD_SWITCH_X_SITE_AUX_RPATH=
9879 if test "${x_libraries}" != NONE; then
9880 if test -n "${x_libraries}"; then
9881 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9882 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9883 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9884 fi
9885 x_default_search_path=""
9886 x_search_path=${x_libraries}
9887 if test -z "${x_search_path}"; then
9888 x_search_path=/usr/lib
9889 fi
9890 for x_library in `echo ${x_search_path}: | \
9891 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9892 x_search_path="\
9893 ${x_library}/X11/%L/%T/%N%C%S:\
9894 ${x_library}/X11/%l/%T/%N%C%S:\
9895 ${x_library}/X11/%T/%N%C%S:\
9896 ${x_library}/X11/%L/%T/%N%S:\
9897 ${x_library}/X11/%l/%T/%N%S:\
9898 ${x_library}/X11/%T/%N%S"
9899 if test x"${x_default_search_path}" = x; then
9900 x_default_search_path=${x_search_path}
9901 else
9902 x_default_search_path="${x_search_path}:${x_default_search_path}"
9903 fi
9904 done
9905 fi
9906
9907
9908
9909 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9910 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9911 fi
9912
9913 if test x"${x_includes}" = x; then
9914 bitmapdir=/usr/include/X11/bitmaps
9915 else
9916 # accumulate include directories that have X11 bitmap subdirectories
9917 bmd_acc="dummyval"
9918 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9919 if test -d "${bmd}/X11/bitmaps"; then
9920 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9921 fi
9922 if test -d "${bmd}/bitmaps"; then
9923 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9924 fi
9925 done
9926 if test ${bmd_acc} != "dummyval"; then
9927 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9928 fi
9929 fi
9930
9931 HAVE_NS=no
9932 NS_IMPL_COCOA=no
9933 NS_IMPL_GNUSTEP=no
9934 NS_IMPL_GNUSTEP_INC=
9935 tmp_CPPFLAGS="$CPPFLAGS"
9936 tmp_CFLAGS="$CFLAGS"
9937 CPPFLAGS="$CPPFLAGS -x objective-c"
9938 CFLAGS="$CFLAGS -x objective-c"
9939 if test "${with_ns}" != no; then
9940 if test "${opsys}" = darwin; then
9941 NS_IMPL_COCOA=yes
9942 ns_appdir=`pwd`/nextstep/Emacs.app
9943 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9944 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9945 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9946 elif test -f $GNUSTEP_CONFIG_FILE; then
9947 NS_IMPL_GNUSTEP=yes
9948 ns_appdir=`pwd`/nextstep/Emacs.app
9949 ns_appbindir=`pwd`/nextstep/Emacs.app
9950 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9951 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9952 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9953 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9954 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9955 ## Pull in stuff from GNUstep-make.
9956 NS_IMPL_GNUSTEP_INC="FOUNDATION_LIB=gnu
9957 GUI_LIB=gnu
9958 include $GNUSTEP_MAKEFILES/Additional/base.make
9959 include $GNUSTEP_MAKEFILES/Additional/gui.make
9960 shared=no
9961 "
9962 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9963 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9964 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9965 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9966 LIB_STANDARD=
9967 fi
9968 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9969 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9970 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9971 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9972 $as_echo_n "(cached) " >&6
9973 fi
9974 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9975 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9976 else
9977 # Is the header compilable?
9978 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9979 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9980 cat >conftest.$ac_ext <<_ACEOF
9981 /* confdefs.h. */
9982 _ACEOF
9983 cat confdefs.h >>conftest.$ac_ext
9984 cat >>conftest.$ac_ext <<_ACEOF
9985 /* end confdefs.h. */
9986 $ac_includes_default
9987 #include <AppKit/AppKit.h>
9988 _ACEOF
9989 rm -f conftest.$ac_objext
9990 if { (ac_try="$ac_compile"
9991 case "(($ac_try" in
9992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9993 *) ac_try_echo=$ac_try;;
9994 esac
9995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9996 $as_echo "$ac_try_echo") >&5
9997 (eval "$ac_compile") 2>conftest.er1
9998 ac_status=$?
9999 grep -v '^ *+' conftest.er1 >conftest.err
10000 rm -f conftest.er1
10001 cat conftest.err >&5
10002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); } && {
10004 test -z "$ac_c_werror_flag" ||
10005 test ! -s conftest.err
10006 } && test -s conftest.$ac_objext; then
10007 ac_header_compiler=yes
10008 else
10009 $as_echo "$as_me: failed program was:" >&5
10010 sed 's/^/| /' conftest.$ac_ext >&5
10011
10012 ac_header_compiler=no
10013 fi
10014
10015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10016 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10017 $as_echo "$ac_header_compiler" >&6; }
10018
10019 # Is the header present?
10020 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
10021 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
10022 cat >conftest.$ac_ext <<_ACEOF
10023 /* confdefs.h. */
10024 _ACEOF
10025 cat confdefs.h >>conftest.$ac_ext
10026 cat >>conftest.$ac_ext <<_ACEOF
10027 /* end confdefs.h. */
10028 #include <AppKit/AppKit.h>
10029 _ACEOF
10030 if { (ac_try="$ac_cpp conftest.$ac_ext"
10031 case "(($ac_try" in
10032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10033 *) ac_try_echo=$ac_try;;
10034 esac
10035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10036 $as_echo "$ac_try_echo") >&5
10037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10038 ac_status=$?
10039 grep -v '^ *+' conftest.er1 >conftest.err
10040 rm -f conftest.er1
10041 cat conftest.err >&5
10042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); } >/dev/null && {
10044 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10045 test ! -s conftest.err
10046 }; then
10047 ac_header_preproc=yes
10048 else
10049 $as_echo "$as_me: failed program was:" >&5
10050 sed 's/^/| /' conftest.$ac_ext >&5
10051
10052 ac_header_preproc=no
10053 fi
10054
10055 rm -f conftest.err conftest.$ac_ext
10056 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10057 $as_echo "$ac_header_preproc" >&6; }
10058
10059 # So? What about this header?
10060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10061 yes:no: )
10062 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
10063 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10064 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
10065 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
10066 ac_header_preproc=yes
10067 ;;
10068 no:yes:* )
10069 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
10070 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
10071 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
10072 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
10073 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
10074 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
10075 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
10076 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
10077 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
10078 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
10079 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
10080 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
10081
10082 ;;
10083 esac
10084 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
10085 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
10086 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
10087 $as_echo_n "(cached) " >&6
10088 else
10089 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
10090 fi
10091 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
10092 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
10093
10094 fi
10095 if test $ac_cv_header_AppKit_AppKit_h = yes; then
10096 HAVE_NS=yes
10097 else
10098 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
10099 files are missing or cannot be compiled." >&5
10100 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
10101 files are missing or cannot be compiled." >&2;}
10102 { (exit 1); exit 1; }; }
10103 fi
10104
10105
10106 NS_HAVE_NSINTEGER=yes
10107 cat >conftest.$ac_ext <<_ACEOF
10108 /* confdefs.h. */
10109 _ACEOF
10110 cat confdefs.h >>conftest.$ac_ext
10111 cat >>conftest.$ac_ext <<_ACEOF
10112 /* end confdefs.h. */
10113 #include <Foundation/NSObjCRuntime.h>
10114 int
10115 main ()
10116 {
10117 NSInteger i;
10118 ;
10119 return 0;
10120 }
10121 _ACEOF
10122 rm -f conftest.$ac_objext
10123 if { (ac_try="$ac_compile"
10124 case "(($ac_try" in
10125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10126 *) ac_try_echo=$ac_try;;
10127 esac
10128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10129 $as_echo "$ac_try_echo") >&5
10130 (eval "$ac_compile") 2>conftest.er1
10131 ac_status=$?
10132 grep -v '^ *+' conftest.er1 >conftest.err
10133 rm -f conftest.er1
10134 cat conftest.err >&5
10135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); } && {
10137 test -z "$ac_c_werror_flag" ||
10138 test ! -s conftest.err
10139 } && test -s conftest.$ac_objext; then
10140 ns_have_nsinteger=yes
10141 else
10142 $as_echo "$as_me: failed program was:" >&5
10143 sed 's/^/| /' conftest.$ac_ext >&5
10144
10145 ns_have_nsinteger=no
10146 fi
10147
10148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10149 if test $ns_have_nsinteger = no; then
10150 NS_HAVE_NSINTEGER=no
10151 fi
10152 fi
10153
10154
10155 NS_OBJ=
10156 NS_SUPPORT=
10157 if test "${HAVE_NS}" = yes; then
10158 window_system=nextstep
10159 with_xft=no
10160 # set up packaging dirs
10161 exec_prefix=${ns_appbindir}
10162 libexecdir=${ns_appbindir}/libexec
10163 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10164 prefix=${ns_appresdir}
10165 fi
10166 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
10167 NS_SUPPORT="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
10168 fi
10169 CFLAGS="$tmp_CFLAGS"
10170 CPPFLAGS="$tmp_CPPFLAGS"
10171
10172
10173
10174
10175 case "${window_system}" in
10176 x11 )
10177 HAVE_X_WINDOWS=yes
10178 HAVE_X11=yes
10179 case "${with_x_toolkit}" in
10180 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10181 motif ) USE_X_TOOLKIT=MOTIF ;;
10182 gtk ) with_gtk=yes
10183 USE_X_TOOLKIT=none ;;
10184 no ) USE_X_TOOLKIT=none ;;
10185 * ) USE_X_TOOLKIT=maybe ;;
10186 esac
10187 ;;
10188 nextstep | none )
10189 HAVE_X_WINDOWS=no
10190 HAVE_X11=no
10191 USE_X_TOOLKIT=none
10192 ;;
10193 esac
10194
10195 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10196 # Extract the first word of "X", so it can be a program name with args.
10197 set dummy X; ac_word=$2
10198 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10199 $as_echo_n "checking for $ac_word... " >&6; }
10200 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
10201 $as_echo_n "(cached) " >&6
10202 else
10203 if test -n "$HAVE_XSERVER"; then
10204 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10205 else
10206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10207 for as_dir in $PATH
10208 do
10209 IFS=$as_save_IFS
10210 test -z "$as_dir" && as_dir=.
10211 for ac_exec_ext in '' $ac_executable_extensions; do
10212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10213 ac_cv_prog_HAVE_XSERVER="true"
10214 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10215 break 2
10216 fi
10217 done
10218 done
10219 IFS=$as_save_IFS
10220
10221 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10222 fi
10223 fi
10224 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10225 if test -n "$HAVE_XSERVER"; then
10226 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
10227 $as_echo "$HAVE_XSERVER" >&6; }
10228 else
10229 { $as_echo "$as_me:$LINENO: result: no" >&5
10230 $as_echo "no" >&6; }
10231 fi
10232
10233
10234 if test "$HAVE_XSERVER" = true ||
10235 test -n "$DISPLAY" ||
10236 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10237 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
10238 were found. You should install the relevant development files for X
10239 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10240 sure you have development files for image handling, i.e.
10241 tiff, gif, jpeg, png and xpm.
10242 If you are sure you want Emacs compiled without X window support, pass
10243 --without-x
10244 to configure." >&5
10245 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
10246 were found. You should install the relevant development files for X
10247 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10248 sure you have development files for image handling, i.e.
10249 tiff, gif, jpeg, png and xpm.
10250 If you are sure you want Emacs compiled without X window support, pass
10251 --without-x
10252 to configure." >&2;}
10253 { (exit 1); exit 1; }; }
10254 fi
10255 fi
10256
10257 ### If we're using X11, we should use the X menu package.
10258 HAVE_MENUS=no
10259 case ${HAVE_X11} in
10260 yes ) HAVE_MENUS=yes ;;
10261 esac
10262
10263 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10264 # Assume not, until told otherwise.
10265 GNU_MALLOC=yes
10266 doug_lea_malloc=yes
10267 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
10268 $as_echo_n "checking for malloc_get_state... " >&6; }
10269 if test "${ac_cv_func_malloc_get_state+set}" = set; then
10270 $as_echo_n "(cached) " >&6
10271 else
10272 cat >conftest.$ac_ext <<_ACEOF
10273 /* confdefs.h. */
10274 _ACEOF
10275 cat confdefs.h >>conftest.$ac_ext
10276 cat >>conftest.$ac_ext <<_ACEOF
10277 /* end confdefs.h. */
10278 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10280 #define malloc_get_state innocuous_malloc_get_state
10281
10282 /* System header to define __stub macros and hopefully few prototypes,
10283 which can conflict with char malloc_get_state (); below.
10284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10285 <limits.h> exists even on freestanding compilers. */
10286
10287 #ifdef __STDC__
10288 # include <limits.h>
10289 #else
10290 # include <assert.h>
10291 #endif
10292
10293 #undef malloc_get_state
10294
10295 /* Override any GCC internal prototype to avoid an error.
10296 Use char because int might match the return type of a GCC
10297 builtin and then its argument prototype would still apply. */
10298 #ifdef __cplusplus
10299 extern "C"
10300 #endif
10301 char malloc_get_state ();
10302 /* The GNU C library defines this for functions which it implements
10303 to always fail with ENOSYS. Some functions are actually named
10304 something starting with __ and the normal name is an alias. */
10305 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10306 choke me
10307 #endif
10308
10309 int
10310 main ()
10311 {
10312 return malloc_get_state ();
10313 ;
10314 return 0;
10315 }
10316 _ACEOF
10317 rm -f conftest.$ac_objext conftest$ac_exeext
10318 if { (ac_try="$ac_link"
10319 case "(($ac_try" in
10320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10321 *) ac_try_echo=$ac_try;;
10322 esac
10323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10324 $as_echo "$ac_try_echo") >&5
10325 (eval "$ac_link") 2>conftest.er1
10326 ac_status=$?
10327 grep -v '^ *+' conftest.er1 >conftest.err
10328 rm -f conftest.er1
10329 cat conftest.err >&5
10330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); } && {
10332 test -z "$ac_c_werror_flag" ||
10333 test ! -s conftest.err
10334 } && test -s conftest$ac_exeext && {
10335 test "$cross_compiling" = yes ||
10336 $as_test_x conftest$ac_exeext
10337 }; then
10338 ac_cv_func_malloc_get_state=yes
10339 else
10340 $as_echo "$as_me: failed program was:" >&5
10341 sed 's/^/| /' conftest.$ac_ext >&5
10342
10343 ac_cv_func_malloc_get_state=no
10344 fi
10345
10346 rm -rf conftest.dSYM
10347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10348 conftest$ac_exeext conftest.$ac_ext
10349 fi
10350 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10351 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10352 if test $ac_cv_func_malloc_get_state = yes; then
10353 :
10354 else
10355 doug_lea_malloc=no
10356 fi
10357
10358 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10359 $as_echo_n "checking for malloc_set_state... " >&6; }
10360 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10361 $as_echo_n "(cached) " >&6
10362 else
10363 cat >conftest.$ac_ext <<_ACEOF
10364 /* confdefs.h. */
10365 _ACEOF
10366 cat confdefs.h >>conftest.$ac_ext
10367 cat >>conftest.$ac_ext <<_ACEOF
10368 /* end confdefs.h. */
10369 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10371 #define malloc_set_state innocuous_malloc_set_state
10372
10373 /* System header to define __stub macros and hopefully few prototypes,
10374 which can conflict with char malloc_set_state (); below.
10375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10376 <limits.h> exists even on freestanding compilers. */
10377
10378 #ifdef __STDC__
10379 # include <limits.h>
10380 #else
10381 # include <assert.h>
10382 #endif
10383
10384 #undef malloc_set_state
10385
10386 /* Override any GCC internal prototype to avoid an error.
10387 Use char because int might match the return type of a GCC
10388 builtin and then its argument prototype would still apply. */
10389 #ifdef __cplusplus
10390 extern "C"
10391 #endif
10392 char malloc_set_state ();
10393 /* The GNU C library defines this for functions which it implements
10394 to always fail with ENOSYS. Some functions are actually named
10395 something starting with __ and the normal name is an alias. */
10396 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10397 choke me
10398 #endif
10399
10400 int
10401 main ()
10402 {
10403 return malloc_set_state ();
10404 ;
10405 return 0;
10406 }
10407 _ACEOF
10408 rm -f conftest.$ac_objext conftest$ac_exeext
10409 if { (ac_try="$ac_link"
10410 case "(($ac_try" in
10411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10412 *) ac_try_echo=$ac_try;;
10413 esac
10414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10415 $as_echo "$ac_try_echo") >&5
10416 (eval "$ac_link") 2>conftest.er1
10417 ac_status=$?
10418 grep -v '^ *+' conftest.er1 >conftest.err
10419 rm -f conftest.er1
10420 cat conftest.err >&5
10421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); } && {
10423 test -z "$ac_c_werror_flag" ||
10424 test ! -s conftest.err
10425 } && test -s conftest$ac_exeext && {
10426 test "$cross_compiling" = yes ||
10427 $as_test_x conftest$ac_exeext
10428 }; then
10429 ac_cv_func_malloc_set_state=yes
10430 else
10431 $as_echo "$as_me: failed program was:" >&5
10432 sed 's/^/| /' conftest.$ac_ext >&5
10433
10434 ac_cv_func_malloc_set_state=no
10435 fi
10436
10437 rm -rf conftest.dSYM
10438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10439 conftest$ac_exeext conftest.$ac_ext
10440 fi
10441 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10442 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10443 if test $ac_cv_func_malloc_set_state = yes; then
10444 :
10445 else
10446 doug_lea_malloc=no
10447 fi
10448
10449 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10450 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10451 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10452 $as_echo_n "(cached) " >&6
10453 else
10454 cat >conftest.$ac_ext <<_ACEOF
10455 /* confdefs.h. */
10456 _ACEOF
10457 cat confdefs.h >>conftest.$ac_ext
10458 cat >>conftest.$ac_ext <<_ACEOF
10459 /* end confdefs.h. */
10460 extern void (* __after_morecore_hook)();
10461 int
10462 main ()
10463 {
10464 __after_morecore_hook = 0
10465 ;
10466 return 0;
10467 }
10468 _ACEOF
10469 rm -f conftest.$ac_objext conftest$ac_exeext
10470 if { (ac_try="$ac_link"
10471 case "(($ac_try" in
10472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10473 *) ac_try_echo=$ac_try;;
10474 esac
10475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10476 $as_echo "$ac_try_echo") >&5
10477 (eval "$ac_link") 2>conftest.er1
10478 ac_status=$?
10479 grep -v '^ *+' conftest.er1 >conftest.err
10480 rm -f conftest.er1
10481 cat conftest.err >&5
10482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); } && {
10484 test -z "$ac_c_werror_flag" ||
10485 test ! -s conftest.err
10486 } && test -s conftest$ac_exeext && {
10487 test "$cross_compiling" = yes ||
10488 $as_test_x conftest$ac_exeext
10489 }; then
10490 emacs_cv_var___after_morecore_hook=yes
10491 else
10492 $as_echo "$as_me: failed program was:" >&5
10493 sed 's/^/| /' conftest.$ac_ext >&5
10494
10495 emacs_cv_var___after_morecore_hook=no
10496 fi
10497
10498 rm -rf conftest.dSYM
10499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10500 conftest$ac_exeext conftest.$ac_ext
10501 fi
10502 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10503 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10504 if test $emacs_cv_var___after_morecore_hook = no; then
10505 doug_lea_malloc=no
10506 fi
10507 if test "${system_malloc}" = "yes"; then
10508 GNU_MALLOC=no
10509 GNU_MALLOC_reason="
10510 (The GNU allocators don't work with this system configuration.)"
10511 fi
10512 if test "$doug_lea_malloc" = "yes" ; then
10513 if test "$GNU_MALLOC" = yes ; then
10514 GNU_MALLOC_reason="
10515 (Using Doug Lea's new malloc from the GNU C Library.)"
10516 fi
10517
10518 cat >>confdefs.h <<\_ACEOF
10519 #define DOUG_LEA_MALLOC 1
10520 _ACEOF
10521
10522 fi
10523
10524 if test x"${REL_ALLOC}" = x; then
10525 REL_ALLOC=${GNU_MALLOC}
10526 fi
10527
10528
10529
10530
10531 for ac_header in stdlib.h unistd.h
10532 do
10533 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10535 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10536 $as_echo_n "checking for $ac_header... " >&6; }
10537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10538 $as_echo_n "(cached) " >&6
10539 fi
10540 ac_res=`eval 'as_val=${'$as_ac_Header'}
10541 $as_echo "$as_val"'`
10542 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10543 $as_echo "$ac_res" >&6; }
10544 else
10545 # Is the header compilable?
10546 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10547 $as_echo_n "checking $ac_header usability... " >&6; }
10548 cat >conftest.$ac_ext <<_ACEOF
10549 /* confdefs.h. */
10550 _ACEOF
10551 cat confdefs.h >>conftest.$ac_ext
10552 cat >>conftest.$ac_ext <<_ACEOF
10553 /* end confdefs.h. */
10554 $ac_includes_default
10555 #include <$ac_header>
10556 _ACEOF
10557 rm -f conftest.$ac_objext
10558 if { (ac_try="$ac_compile"
10559 case "(($ac_try" in
10560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10561 *) ac_try_echo=$ac_try;;
10562 esac
10563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10564 $as_echo "$ac_try_echo") >&5
10565 (eval "$ac_compile") 2>conftest.er1
10566 ac_status=$?
10567 grep -v '^ *+' conftest.er1 >conftest.err
10568 rm -f conftest.er1
10569 cat conftest.err >&5
10570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); } && {
10572 test -z "$ac_c_werror_flag" ||
10573 test ! -s conftest.err
10574 } && test -s conftest.$ac_objext; then
10575 ac_header_compiler=yes
10576 else
10577 $as_echo "$as_me: failed program was:" >&5
10578 sed 's/^/| /' conftest.$ac_ext >&5
10579
10580 ac_header_compiler=no
10581 fi
10582
10583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10584 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10585 $as_echo "$ac_header_compiler" >&6; }
10586
10587 # Is the header present?
10588 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10589 $as_echo_n "checking $ac_header presence... " >&6; }
10590 cat >conftest.$ac_ext <<_ACEOF
10591 /* confdefs.h. */
10592 _ACEOF
10593 cat confdefs.h >>conftest.$ac_ext
10594 cat >>conftest.$ac_ext <<_ACEOF
10595 /* end confdefs.h. */
10596 #include <$ac_header>
10597 _ACEOF
10598 if { (ac_try="$ac_cpp conftest.$ac_ext"
10599 case "(($ac_try" in
10600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10601 *) ac_try_echo=$ac_try;;
10602 esac
10603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10604 $as_echo "$ac_try_echo") >&5
10605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10606 ac_status=$?
10607 grep -v '^ *+' conftest.er1 >conftest.err
10608 rm -f conftest.er1
10609 cat conftest.err >&5
10610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); } >/dev/null && {
10612 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10613 test ! -s conftest.err
10614 }; then
10615 ac_header_preproc=yes
10616 else
10617 $as_echo "$as_me: failed program was:" >&5
10618 sed 's/^/| /' conftest.$ac_ext >&5
10619
10620 ac_header_preproc=no
10621 fi
10622
10623 rm -f conftest.err conftest.$ac_ext
10624 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10625 $as_echo "$ac_header_preproc" >&6; }
10626
10627 # So? What about this header?
10628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10629 yes:no: )
10630 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10631 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10632 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10633 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10634 ac_header_preproc=yes
10635 ;;
10636 no:yes:* )
10637 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10638 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10639 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10640 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10641 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10642 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10643 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10644 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10645 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10646 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10647 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10648 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10649
10650 ;;
10651 esac
10652 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10653 $as_echo_n "checking for $ac_header... " >&6; }
10654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10655 $as_echo_n "(cached) " >&6
10656 else
10657 eval "$as_ac_Header=\$ac_header_preproc"
10658 fi
10659 ac_res=`eval 'as_val=${'$as_ac_Header'}
10660 $as_echo "$as_val"'`
10661 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10662 $as_echo "$ac_res" >&6; }
10663
10664 fi
10665 if test `eval 'as_val=${'$as_ac_Header'}
10666 $as_echo "$as_val"'` = yes; then
10667 cat >>confdefs.h <<_ACEOF
10668 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10669 _ACEOF
10670
10671 fi
10672
10673 done
10674
10675
10676 for ac_func in getpagesize
10677 do
10678 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10679 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10680 $as_echo_n "checking for $ac_func... " >&6; }
10681 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10682 $as_echo_n "(cached) " >&6
10683 else
10684 cat >conftest.$ac_ext <<_ACEOF
10685 /* confdefs.h. */
10686 _ACEOF
10687 cat confdefs.h >>conftest.$ac_ext
10688 cat >>conftest.$ac_ext <<_ACEOF
10689 /* end confdefs.h. */
10690 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10692 #define $ac_func innocuous_$ac_func
10693
10694 /* System header to define __stub macros and hopefully few prototypes,
10695 which can conflict with char $ac_func (); below.
10696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10697 <limits.h> exists even on freestanding compilers. */
10698
10699 #ifdef __STDC__
10700 # include <limits.h>
10701 #else
10702 # include <assert.h>
10703 #endif
10704
10705 #undef $ac_func
10706
10707 /* Override any GCC internal prototype to avoid an error.
10708 Use char because int might match the return type of a GCC
10709 builtin and then its argument prototype would still apply. */
10710 #ifdef __cplusplus
10711 extern "C"
10712 #endif
10713 char $ac_func ();
10714 /* The GNU C library defines this for functions which it implements
10715 to always fail with ENOSYS. Some functions are actually named
10716 something starting with __ and the normal name is an alias. */
10717 #if defined __stub_$ac_func || defined __stub___$ac_func
10718 choke me
10719 #endif
10720
10721 int
10722 main ()
10723 {
10724 return $ac_func ();
10725 ;
10726 return 0;
10727 }
10728 _ACEOF
10729 rm -f conftest.$ac_objext conftest$ac_exeext
10730 if { (ac_try="$ac_link"
10731 case "(($ac_try" in
10732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10733 *) ac_try_echo=$ac_try;;
10734 esac
10735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10736 $as_echo "$ac_try_echo") >&5
10737 (eval "$ac_link") 2>conftest.er1
10738 ac_status=$?
10739 grep -v '^ *+' conftest.er1 >conftest.err
10740 rm -f conftest.er1
10741 cat conftest.err >&5
10742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); } && {
10744 test -z "$ac_c_werror_flag" ||
10745 test ! -s conftest.err
10746 } && test -s conftest$ac_exeext && {
10747 test "$cross_compiling" = yes ||
10748 $as_test_x conftest$ac_exeext
10749 }; then
10750 eval "$as_ac_var=yes"
10751 else
10752 $as_echo "$as_me: failed program was:" >&5
10753 sed 's/^/| /' conftest.$ac_ext >&5
10754
10755 eval "$as_ac_var=no"
10756 fi
10757
10758 rm -rf conftest.dSYM
10759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10760 conftest$ac_exeext conftest.$ac_ext
10761 fi
10762 ac_res=`eval 'as_val=${'$as_ac_var'}
10763 $as_echo "$as_val"'`
10764 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10765 $as_echo "$ac_res" >&6; }
10766 if test `eval 'as_val=${'$as_ac_var'}
10767 $as_echo "$as_val"'` = yes; then
10768 cat >>confdefs.h <<_ACEOF
10769 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10770 _ACEOF
10771
10772 fi
10773 done
10774
10775 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10776 $as_echo_n "checking for working mmap... " >&6; }
10777 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10778 $as_echo_n "(cached) " >&6
10779 else
10780 if test "$cross_compiling" = yes; then
10781 ac_cv_func_mmap_fixed_mapped=no
10782 else
10783 cat >conftest.$ac_ext <<_ACEOF
10784 /* confdefs.h. */
10785 _ACEOF
10786 cat confdefs.h >>conftest.$ac_ext
10787 cat >>conftest.$ac_ext <<_ACEOF
10788 /* end confdefs.h. */
10789 $ac_includes_default
10790 /* malloc might have been renamed as rpl_malloc. */
10791 #undef malloc
10792
10793 /* Thanks to Mike Haertel and Jim Avera for this test.
10794 Here is a matrix of mmap possibilities:
10795 mmap private not fixed
10796 mmap private fixed at somewhere currently unmapped
10797 mmap private fixed at somewhere already mapped
10798 mmap shared not fixed
10799 mmap shared fixed at somewhere currently unmapped
10800 mmap shared fixed at somewhere already mapped
10801 For private mappings, we should verify that changes cannot be read()
10802 back from the file, nor mmap's back from the file at a different
10803 address. (There have been systems where private was not correctly
10804 implemented like the infamous i386 svr4.0, and systems where the
10805 VM page cache was not coherent with the file system buffer cache
10806 like early versions of FreeBSD and possibly contemporary NetBSD.)
10807 For shared mappings, we should conversely verify that changes get
10808 propagated back to all the places they're supposed to be.
10809
10810 Grep wants private fixed already mapped.
10811 The main things grep needs to know about mmap are:
10812 * does it exist and is it safe to write into the mmap'd area
10813 * how to use it (BSD variants) */
10814
10815 #include <fcntl.h>
10816 #include <sys/mman.h>
10817
10818 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10819 char *malloc ();
10820 #endif
10821
10822 /* This mess was copied from the GNU getpagesize.h. */
10823 #ifndef HAVE_GETPAGESIZE
10824 /* Assume that all systems that can run configure have sys/param.h. */
10825 # ifndef HAVE_SYS_PARAM_H
10826 # define HAVE_SYS_PARAM_H 1
10827 # endif
10828
10829 # ifdef _SC_PAGESIZE
10830 # define getpagesize() sysconf(_SC_PAGESIZE)
10831 # else /* no _SC_PAGESIZE */
10832 # ifdef HAVE_SYS_PARAM_H
10833 # include <sys/param.h>
10834 # ifdef EXEC_PAGESIZE
10835 # define getpagesize() EXEC_PAGESIZE
10836 # else /* no EXEC_PAGESIZE */
10837 # ifdef NBPG
10838 # define getpagesize() NBPG * CLSIZE
10839 # ifndef CLSIZE
10840 # define CLSIZE 1
10841 # endif /* no CLSIZE */
10842 # else /* no NBPG */
10843 # ifdef NBPC
10844 # define getpagesize() NBPC
10845 # else /* no NBPC */
10846 # ifdef PAGESIZE
10847 # define getpagesize() PAGESIZE
10848 # endif /* PAGESIZE */
10849 # endif /* no NBPC */
10850 # endif /* no NBPG */
10851 # endif /* no EXEC_PAGESIZE */
10852 # else /* no HAVE_SYS_PARAM_H */
10853 # define getpagesize() 8192 /* punt totally */
10854 # endif /* no HAVE_SYS_PARAM_H */
10855 # endif /* no _SC_PAGESIZE */
10856
10857 #endif /* no HAVE_GETPAGESIZE */
10858
10859 int
10860 main ()
10861 {
10862 char *data, *data2, *data3;
10863 int i, pagesize;
10864 int fd;
10865
10866 pagesize = getpagesize ();
10867
10868 /* First, make a file with some known garbage in it. */
10869 data = (char *) malloc (pagesize);
10870 if (!data)
10871 return 1;
10872 for (i = 0; i < pagesize; ++i)
10873 *(data + i) = rand ();
10874 umask (0);
10875 fd = creat ("conftest.mmap", 0600);
10876 if (fd < 0)
10877 return 1;
10878 if (write (fd, data, pagesize) != pagesize)
10879 return 1;
10880 close (fd);
10881
10882 /* Next, try to mmap the file at a fixed address which already has
10883 something else allocated at it. If we can, also make sure that
10884 we see the same garbage. */
10885 fd = open ("conftest.mmap", O_RDWR);
10886 if (fd < 0)
10887 return 1;
10888 data2 = (char *) malloc (2 * pagesize);
10889 if (!data2)
10890 return 1;
10891 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10892 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10893 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10894 return 1;
10895 for (i = 0; i < pagesize; ++i)
10896 if (*(data + i) != *(data2 + i))
10897 return 1;
10898
10899 /* Finally, make sure that changes to the mapped area do not
10900 percolate back to the file as seen by read(). (This is a bug on
10901 some variants of i386 svr4.0.) */
10902 for (i = 0; i < pagesize; ++i)
10903 *(data2 + i) = *(data2 + i) + 1;
10904 data3 = (char *) malloc (pagesize);
10905 if (!data3)
10906 return 1;
10907 if (read (fd, data3, pagesize) != pagesize)
10908 return 1;
10909 for (i = 0; i < pagesize; ++i)
10910 if (*(data + i) != *(data3 + i))
10911 return 1;
10912 close (fd);
10913 return 0;
10914 }
10915 _ACEOF
10916 rm -f conftest$ac_exeext
10917 if { (ac_try="$ac_link"
10918 case "(($ac_try" in
10919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10920 *) ac_try_echo=$ac_try;;
10921 esac
10922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10923 $as_echo "$ac_try_echo") >&5
10924 (eval "$ac_link") 2>&5
10925 ac_status=$?
10926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10928 { (case "(($ac_try" in
10929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10930 *) ac_try_echo=$ac_try;;
10931 esac
10932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10933 $as_echo "$ac_try_echo") >&5
10934 (eval "$ac_try") 2>&5
10935 ac_status=$?
10936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); }; }; then
10938 ac_cv_func_mmap_fixed_mapped=yes
10939 else
10940 $as_echo "$as_me: program exited with status $ac_status" >&5
10941 $as_echo "$as_me: failed program was:" >&5
10942 sed 's/^/| /' conftest.$ac_ext >&5
10943
10944 ( exit $ac_status )
10945 ac_cv_func_mmap_fixed_mapped=no
10946 fi
10947 rm -rf conftest.dSYM
10948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10949 fi
10950
10951
10952 fi
10953 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10954 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10955 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10956
10957 cat >>confdefs.h <<\_ACEOF
10958 #define HAVE_MMAP 1
10959 _ACEOF
10960
10961 fi
10962 rm -f conftest.mmap
10963
10964 if test $use_mmap_for_buffers = yes; then
10965 REL_ALLOC=no
10966 fi
10967
10968 LIBS="$LIBS_SYSTEM $LIBS"
10969
10970
10971 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10972 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10973 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10974 $as_echo_n "(cached) " >&6
10975 else
10976 ac_check_lib_save_LIBS=$LIBS
10977 LIBS="-ldnet $LIBS"
10978 cat >conftest.$ac_ext <<_ACEOF
10979 /* confdefs.h. */
10980 _ACEOF
10981 cat confdefs.h >>conftest.$ac_ext
10982 cat >>conftest.$ac_ext <<_ACEOF
10983 /* end confdefs.h. */
10984
10985 /* Override any GCC internal prototype to avoid an error.
10986 Use char because int might match the return type of a GCC
10987 builtin and then its argument prototype would still apply. */
10988 #ifdef __cplusplus
10989 extern "C"
10990 #endif
10991 char dnet_ntoa ();
10992 int
10993 main ()
10994 {
10995 return dnet_ntoa ();
10996 ;
10997 return 0;
10998 }
10999 _ACEOF
11000 rm -f conftest.$ac_objext conftest$ac_exeext
11001 if { (ac_try="$ac_link"
11002 case "(($ac_try" in
11003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11004 *) ac_try_echo=$ac_try;;
11005 esac
11006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11007 $as_echo "$ac_try_echo") >&5
11008 (eval "$ac_link") 2>conftest.er1
11009 ac_status=$?
11010 grep -v '^ *+' conftest.er1 >conftest.err
11011 rm -f conftest.er1
11012 cat conftest.err >&5
11013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); } && {
11015 test -z "$ac_c_werror_flag" ||
11016 test ! -s conftest.err
11017 } && test -s conftest$ac_exeext && {
11018 test "$cross_compiling" = yes ||
11019 $as_test_x conftest$ac_exeext
11020 }; then
11021 ac_cv_lib_dnet_dnet_ntoa=yes
11022 else
11023 $as_echo "$as_me: failed program was:" >&5
11024 sed 's/^/| /' conftest.$ac_ext >&5
11025
11026 ac_cv_lib_dnet_dnet_ntoa=no
11027 fi
11028
11029 rm -rf conftest.dSYM
11030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11031 conftest$ac_exeext conftest.$ac_ext
11032 LIBS=$ac_check_lib_save_LIBS
11033 fi
11034 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11035 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
11036 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
11037 cat >>confdefs.h <<_ACEOF
11038 #define HAVE_LIBDNET 1
11039 _ACEOF
11040
11041 LIBS="-ldnet $LIBS"
11042
11043 fi
11044
11045
11046 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
11047 $as_echo_n "checking for main in -lXbsd... " >&6; }
11048 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
11049 $as_echo_n "(cached) " >&6
11050 else
11051 ac_check_lib_save_LIBS=$LIBS
11052 LIBS="-lXbsd $LIBS"
11053 cat >conftest.$ac_ext <<_ACEOF
11054 /* confdefs.h. */
11055 _ACEOF
11056 cat confdefs.h >>conftest.$ac_ext
11057 cat >>conftest.$ac_ext <<_ACEOF
11058 /* end confdefs.h. */
11059
11060
11061 int
11062 main ()
11063 {
11064 return main ();
11065 ;
11066 return 0;
11067 }
11068 _ACEOF
11069 rm -f conftest.$ac_objext conftest$ac_exeext
11070 if { (ac_try="$ac_link"
11071 case "(($ac_try" in
11072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11073 *) ac_try_echo=$ac_try;;
11074 esac
11075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11076 $as_echo "$ac_try_echo") >&5
11077 (eval "$ac_link") 2>conftest.er1
11078 ac_status=$?
11079 grep -v '^ *+' conftest.er1 >conftest.err
11080 rm -f conftest.er1
11081 cat conftest.err >&5
11082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); } && {
11084 test -z "$ac_c_werror_flag" ||
11085 test ! -s conftest.err
11086 } && test -s conftest$ac_exeext && {
11087 test "$cross_compiling" = yes ||
11088 $as_test_x conftest$ac_exeext
11089 }; then
11090 ac_cv_lib_Xbsd_main=yes
11091 else
11092 $as_echo "$as_me: failed program was:" >&5
11093 sed 's/^/| /' conftest.$ac_ext >&5
11094
11095 ac_cv_lib_Xbsd_main=no
11096 fi
11097
11098 rm -rf conftest.dSYM
11099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11100 conftest$ac_exeext conftest.$ac_ext
11101 LIBS=$ac_check_lib_save_LIBS
11102 fi
11103 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
11104 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
11105 if test $ac_cv_lib_Xbsd_main = yes; then
11106 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
11107 fi
11108
11109
11110
11111 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
11112 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
11113 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
11114 $as_echo_n "(cached) " >&6
11115 else
11116 ac_check_lib_save_LIBS=$LIBS
11117 LIBS="-lpthreads $LIBS"
11118 cat >conftest.$ac_ext <<_ACEOF
11119 /* confdefs.h. */
11120 _ACEOF
11121 cat confdefs.h >>conftest.$ac_ext
11122 cat >>conftest.$ac_ext <<_ACEOF
11123 /* end confdefs.h. */
11124
11125 /* Override any GCC internal prototype to avoid an error.
11126 Use char because int might match the return type of a GCC
11127 builtin and then its argument prototype would still apply. */
11128 #ifdef __cplusplus
11129 extern "C"
11130 #endif
11131 char cma_open ();
11132 int
11133 main ()
11134 {
11135 return cma_open ();
11136 ;
11137 return 0;
11138 }
11139 _ACEOF
11140 rm -f conftest.$ac_objext conftest$ac_exeext
11141 if { (ac_try="$ac_link"
11142 case "(($ac_try" in
11143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11144 *) ac_try_echo=$ac_try;;
11145 esac
11146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11147 $as_echo "$ac_try_echo") >&5
11148 (eval "$ac_link") 2>conftest.er1
11149 ac_status=$?
11150 grep -v '^ *+' conftest.er1 >conftest.err
11151 rm -f conftest.er1
11152 cat conftest.err >&5
11153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); } && {
11155 test -z "$ac_c_werror_flag" ||
11156 test ! -s conftest.err
11157 } && test -s conftest$ac_exeext && {
11158 test "$cross_compiling" = yes ||
11159 $as_test_x conftest$ac_exeext
11160 }; then
11161 ac_cv_lib_pthreads_cma_open=yes
11162 else
11163 $as_echo "$as_me: failed program was:" >&5
11164 sed 's/^/| /' conftest.$ac_ext >&5
11165
11166 ac_cv_lib_pthreads_cma_open=no
11167 fi
11168
11169 rm -rf conftest.dSYM
11170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11171 conftest$ac_exeext conftest.$ac_ext
11172 LIBS=$ac_check_lib_save_LIBS
11173 fi
11174 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
11175 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
11176 if test $ac_cv_lib_pthreads_cma_open = yes; then
11177 cat >>confdefs.h <<_ACEOF
11178 #define HAVE_LIBPTHREADS 1
11179 _ACEOF
11180
11181 LIBS="-lpthreads $LIBS"
11182
11183 fi
11184
11185
11186 ## Note: when using cpp in s/aix4.2.h, this definition depended on
11187 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
11188 ## the system file was sourced. Hence the value of LIBS_SYSTEM
11189 ## added to LIBS in configure would never contain the pthreads part,
11190 ## but the value used in Makefiles might. FIXME?
11191 ##
11192 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
11193 ## be harmless on older versions of X where it happens to exist.
11194 test "$opsys" = "aix4-2" && \
11195 test $ac_cv_lib_pthreads_cma_open = yes && \
11196 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
11197
11198
11199 case ${host_os} in
11200 aix*)
11201 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
11202 $as_echo_n "checking for -bbigtoc option... " >&6; }
11203 if test "${gdb_cv_bigtoc+set}" = set; then
11204 $as_echo_n "(cached) " >&6
11205 else
11206
11207 case $GCC in
11208 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
11209 *) gdb_cv_bigtoc=-bbigtoc ;;
11210 esac
11211
11212 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
11213 cat >conftest.$ac_ext <<_ACEOF
11214 /* confdefs.h. */
11215 _ACEOF
11216 cat confdefs.h >>conftest.$ac_ext
11217 cat >>conftest.$ac_ext <<_ACEOF
11218 /* end confdefs.h. */
11219
11220 int
11221 main ()
11222 {
11223 int i;
11224 ;
11225 return 0;
11226 }
11227 _ACEOF
11228 rm -f conftest.$ac_objext conftest$ac_exeext
11229 if { (ac_try="$ac_link"
11230 case "(($ac_try" in
11231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11232 *) ac_try_echo=$ac_try;;
11233 esac
11234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11235 $as_echo "$ac_try_echo") >&5
11236 (eval "$ac_link") 2>conftest.er1
11237 ac_status=$?
11238 grep -v '^ *+' conftest.er1 >conftest.err
11239 rm -f conftest.er1
11240 cat conftest.err >&5
11241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); } && {
11243 test -z "$ac_c_werror_flag" ||
11244 test ! -s conftest.err
11245 } && test -s conftest$ac_exeext && {
11246 test "$cross_compiling" = yes ||
11247 $as_test_x conftest$ac_exeext
11248 }; then
11249 :
11250 else
11251 $as_echo "$as_me: failed program was:" >&5
11252 sed 's/^/| /' conftest.$ac_ext >&5
11253
11254 gdb_cv_bigtoc=
11255 fi
11256
11257 rm -rf conftest.dSYM
11258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11259 conftest$ac_exeext conftest.$ac_ext
11260
11261 fi
11262 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
11263 $as_echo "$gdb_cv_bigtoc" >&6; }
11264 ;;
11265 esac
11266
11267 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11268 # used for the tests that follow. We set them back to REAL_CFLAGS and
11269 # REAL_CPPFLAGS later on.
11270
11271 REAL_CPPFLAGS="$CPPFLAGS"
11272
11273 if test "${HAVE_X11}" = "yes"; then
11274 DEFS="$C_SWITCH_X_SITE $DEFS"
11275 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11276 LIBS="$LIBX $LIBS"
11277 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11278 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11279
11280 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11281 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
11282 # but it's more convenient here to set LD_RUN_PATH
11283 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11284 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11285 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11286 export LD_RUN_PATH
11287 fi
11288
11289 if test "${opsys}" = "gnu-linux"; then
11290 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
11291 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11292 cat >conftest.$ac_ext <<_ACEOF
11293 /* confdefs.h. */
11294 _ACEOF
11295 cat confdefs.h >>conftest.$ac_ext
11296 cat >>conftest.$ac_ext <<_ACEOF
11297 /* end confdefs.h. */
11298
11299 int
11300 main ()
11301 {
11302 XOpenDisplay ("foo");
11303 ;
11304 return 0;
11305 }
11306 _ACEOF
11307 rm -f conftest.$ac_objext conftest$ac_exeext
11308 if { (ac_try="$ac_link"
11309 case "(($ac_try" in
11310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11311 *) ac_try_echo=$ac_try;;
11312 esac
11313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11314 $as_echo "$ac_try_echo") >&5
11315 (eval "$ac_link") 2>conftest.er1
11316 ac_status=$?
11317 grep -v '^ *+' conftest.er1 >conftest.err
11318 rm -f conftest.er1
11319 cat conftest.err >&5
11320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); } && {
11322 test -z "$ac_c_werror_flag" ||
11323 test ! -s conftest.err
11324 } && test -s conftest$ac_exeext && {
11325 test "$cross_compiling" = yes ||
11326 $as_test_x conftest$ac_exeext
11327 }; then
11328 xlinux_first_failure=no
11329 else
11330 $as_echo "$as_me: failed program was:" >&5
11331 sed 's/^/| /' conftest.$ac_ext >&5
11332
11333 xlinux_first_failure=yes
11334 fi
11335
11336 rm -rf conftest.dSYM
11337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11338 conftest$ac_exeext conftest.$ac_ext
11339 if test "${xlinux_first_failure}" = "yes"; then
11340 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11341 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
11342 OLD_CPPFLAGS="$CPPFLAGS"
11343 OLD_LIBS="$LIBS"
11344 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
11345 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
11346 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
11347 LIBS="$LIBS -b i486-linuxaout"
11348 cat >conftest.$ac_ext <<_ACEOF
11349 /* confdefs.h. */
11350 _ACEOF
11351 cat confdefs.h >>conftest.$ac_ext
11352 cat >>conftest.$ac_ext <<_ACEOF
11353 /* end confdefs.h. */
11354
11355 int
11356 main ()
11357 {
11358 XOpenDisplay ("foo");
11359 ;
11360 return 0;
11361 }
11362 _ACEOF
11363 rm -f conftest.$ac_objext conftest$ac_exeext
11364 if { (ac_try="$ac_link"
11365 case "(($ac_try" in
11366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11367 *) ac_try_echo=$ac_try;;
11368 esac
11369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11370 $as_echo "$ac_try_echo") >&5
11371 (eval "$ac_link") 2>conftest.er1
11372 ac_status=$?
11373 grep -v '^ *+' conftest.er1 >conftest.err
11374 rm -f conftest.er1
11375 cat conftest.err >&5
11376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); } && {
11378 test -z "$ac_c_werror_flag" ||
11379 test ! -s conftest.err
11380 } && test -s conftest$ac_exeext && {
11381 test "$cross_compiling" = yes ||
11382 $as_test_x conftest$ac_exeext
11383 }; then
11384 xlinux_second_failure=no
11385 else
11386 $as_echo "$as_me: failed program was:" >&5
11387 sed 's/^/| /' conftest.$ac_ext >&5
11388
11389 xlinux_second_failure=yes
11390 fi
11391
11392 rm -rf conftest.dSYM
11393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11394 conftest$ac_exeext conftest.$ac_ext
11395 if test "${xlinux_second_failure}" = "yes"; then
11396 # If we get the same failure with -b, there is no use adding -b.
11397 # So take it out. This plays safe.
11398 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11399 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11400 CPPFLAGS="$OLD_CPPFLAGS"
11401 LIBS="$OLD_LIBS"
11402 { $as_echo "$as_me:$LINENO: result: no" >&5
11403 $as_echo "no" >&6; }
11404 else
11405 { $as_echo "$as_me:$LINENO: result: yes" >&5
11406 $as_echo "yes" >&6; }
11407 fi
11408 else
11409 { $as_echo "$as_me:$LINENO: result: no" >&5
11410 $as_echo "no" >&6; }
11411 fi
11412 fi
11413
11414 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11415 # header files included from there.
11416 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11417 $as_echo_n "checking for Xkb... " >&6; }
11418 cat >conftest.$ac_ext <<_ACEOF
11419 /* confdefs.h. */
11420 _ACEOF
11421 cat confdefs.h >>conftest.$ac_ext
11422 cat >>conftest.$ac_ext <<_ACEOF
11423 /* end confdefs.h. */
11424 #include <X11/Xlib.h>
11425 #include <X11/XKBlib.h>
11426 int
11427 main ()
11428 {
11429 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11430 ;
11431 return 0;
11432 }
11433 _ACEOF
11434 rm -f conftest.$ac_objext conftest$ac_exeext
11435 if { (ac_try="$ac_link"
11436 case "(($ac_try" in
11437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11438 *) ac_try_echo=$ac_try;;
11439 esac
11440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11441 $as_echo "$ac_try_echo") >&5
11442 (eval "$ac_link") 2>conftest.er1
11443 ac_status=$?
11444 grep -v '^ *+' conftest.er1 >conftest.err
11445 rm -f conftest.er1
11446 cat conftest.err >&5
11447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); } && {
11449 test -z "$ac_c_werror_flag" ||
11450 test ! -s conftest.err
11451 } && test -s conftest$ac_exeext && {
11452 test "$cross_compiling" = yes ||
11453 $as_test_x conftest$ac_exeext
11454 }; then
11455 emacs_xkb=yes
11456 else
11457 $as_echo "$as_me: failed program was:" >&5
11458 sed 's/^/| /' conftest.$ac_ext >&5
11459
11460 emacs_xkb=no
11461 fi
11462
11463 rm -rf conftest.dSYM
11464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11465 conftest$ac_exeext conftest.$ac_ext
11466 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11467 $as_echo "$emacs_xkb" >&6; }
11468 if test $emacs_xkb = yes; then
11469
11470 cat >>confdefs.h <<\_ACEOF
11471 #define HAVE_XKBGETKEYBOARD 1
11472 _ACEOF
11473
11474 fi
11475
11476
11477
11478
11479
11480 for ac_func in XrmSetDatabase XScreenResourceString \
11481 XScreenNumberOfScreen XSetWMProtocols
11482 do
11483 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11484 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11485 $as_echo_n "checking for $ac_func... " >&6; }
11486 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11487 $as_echo_n "(cached) " >&6
11488 else
11489 cat >conftest.$ac_ext <<_ACEOF
11490 /* confdefs.h. */
11491 _ACEOF
11492 cat confdefs.h >>conftest.$ac_ext
11493 cat >>conftest.$ac_ext <<_ACEOF
11494 /* end confdefs.h. */
11495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11497 #define $ac_func innocuous_$ac_func
11498
11499 /* System header to define __stub macros and hopefully few prototypes,
11500 which can conflict with char $ac_func (); below.
11501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11502 <limits.h> exists even on freestanding compilers. */
11503
11504 #ifdef __STDC__
11505 # include <limits.h>
11506 #else
11507 # include <assert.h>
11508 #endif
11509
11510 #undef $ac_func
11511
11512 /* Override any GCC internal prototype to avoid an error.
11513 Use char because int might match the return type of a GCC
11514 builtin and then its argument prototype would still apply. */
11515 #ifdef __cplusplus
11516 extern "C"
11517 #endif
11518 char $ac_func ();
11519 /* The GNU C library defines this for functions which it implements
11520 to always fail with ENOSYS. Some functions are actually named
11521 something starting with __ and the normal name is an alias. */
11522 #if defined __stub_$ac_func || defined __stub___$ac_func
11523 choke me
11524 #endif
11525
11526 int
11527 main ()
11528 {
11529 return $ac_func ();
11530 ;
11531 return 0;
11532 }
11533 _ACEOF
11534 rm -f conftest.$ac_objext conftest$ac_exeext
11535 if { (ac_try="$ac_link"
11536 case "(($ac_try" in
11537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11538 *) ac_try_echo=$ac_try;;
11539 esac
11540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11541 $as_echo "$ac_try_echo") >&5
11542 (eval "$ac_link") 2>conftest.er1
11543 ac_status=$?
11544 grep -v '^ *+' conftest.er1 >conftest.err
11545 rm -f conftest.er1
11546 cat conftest.err >&5
11547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); } && {
11549 test -z "$ac_c_werror_flag" ||
11550 test ! -s conftest.err
11551 } && test -s conftest$ac_exeext && {
11552 test "$cross_compiling" = yes ||
11553 $as_test_x conftest$ac_exeext
11554 }; then
11555 eval "$as_ac_var=yes"
11556 else
11557 $as_echo "$as_me: failed program was:" >&5
11558 sed 's/^/| /' conftest.$ac_ext >&5
11559
11560 eval "$as_ac_var=no"
11561 fi
11562
11563 rm -rf conftest.dSYM
11564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11565 conftest$ac_exeext conftest.$ac_ext
11566 fi
11567 ac_res=`eval 'as_val=${'$as_ac_var'}
11568 $as_echo "$as_val"'`
11569 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11570 $as_echo "$ac_res" >&6; }
11571 if test `eval 'as_val=${'$as_ac_var'}
11572 $as_echo "$as_val"'` = yes; then
11573 cat >>confdefs.h <<_ACEOF
11574 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11575 _ACEOF
11576
11577 fi
11578 done
11579
11580 fi
11581
11582 if test "${window_system}" = "x11"; then
11583 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11584 $as_echo_n "checking X11 version 6... " >&6; }
11585 if test "${emacs_cv_x11_version_6+set}" = set; then
11586 $as_echo_n "(cached) " >&6
11587 else
11588 cat >conftest.$ac_ext <<_ACEOF
11589 /* confdefs.h. */
11590 _ACEOF
11591 cat confdefs.h >>conftest.$ac_ext
11592 cat >>conftest.$ac_ext <<_ACEOF
11593 /* end confdefs.h. */
11594 #include <X11/Xlib.h>
11595 int
11596 main ()
11597 {
11598 #if XlibSpecificationRelease < 6
11599 fail;
11600 #endif
11601
11602 ;
11603 return 0;
11604 }
11605 _ACEOF
11606 rm -f conftest.$ac_objext conftest$ac_exeext
11607 if { (ac_try="$ac_link"
11608 case "(($ac_try" in
11609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11610 *) ac_try_echo=$ac_try;;
11611 esac
11612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11613 $as_echo "$ac_try_echo") >&5
11614 (eval "$ac_link") 2>conftest.er1
11615 ac_status=$?
11616 grep -v '^ *+' conftest.er1 >conftest.err
11617 rm -f conftest.er1
11618 cat conftest.err >&5
11619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); } && {
11621 test -z "$ac_c_werror_flag" ||
11622 test ! -s conftest.err
11623 } && test -s conftest$ac_exeext && {
11624 test "$cross_compiling" = yes ||
11625 $as_test_x conftest$ac_exeext
11626 }; then
11627 emacs_cv_x11_version_6=yes
11628 else
11629 $as_echo "$as_me: failed program was:" >&5
11630 sed 's/^/| /' conftest.$ac_ext >&5
11631
11632 emacs_cv_x11_version_6=no
11633 fi
11634
11635 rm -rf conftest.dSYM
11636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11637 conftest$ac_exeext conftest.$ac_ext
11638 fi
11639
11640 if test $emacs_cv_x11_version_6 = yes; then
11641 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11642 $as_echo "6 or newer" >&6; }
11643
11644 cat >>confdefs.h <<\_ACEOF
11645 #define HAVE_X11R6 1
11646 _ACEOF
11647
11648 else
11649 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11650 $as_echo "before 6" >&6; }
11651 fi
11652 fi
11653
11654
11655 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11656 HAVE_RSVG=no
11657 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
11658 if test "${with_rsvg}" != "no"; then
11659 RSVG_REQUIRED=2.11.0
11660 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11661
11662
11663 succeeded=no
11664
11665 # Extract the first word of "pkg-config", so it can be a program name with args.
11666 set dummy pkg-config; ac_word=$2
11667 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11668 $as_echo_n "checking for $ac_word... " >&6; }
11669 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11670 $as_echo_n "(cached) " >&6
11671 else
11672 case $PKG_CONFIG in
11673 [\\/]* | ?:[\\/]*)
11674 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11675 ;;
11676 *)
11677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11678 for as_dir in $PATH
11679 do
11680 IFS=$as_save_IFS
11681 test -z "$as_dir" && as_dir=.
11682 for ac_exec_ext in '' $ac_executable_extensions; do
11683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11684 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11685 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11686 break 2
11687 fi
11688 done
11689 done
11690 IFS=$as_save_IFS
11691
11692 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11693 ;;
11694 esac
11695 fi
11696 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11697 if test -n "$PKG_CONFIG"; then
11698 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11699 $as_echo "$PKG_CONFIG" >&6; }
11700 else
11701 { $as_echo "$as_me:$LINENO: result: no" >&5
11702 $as_echo "no" >&6; }
11703 fi
11704
11705
11706
11707 if test "$PKG_CONFIG" = "no" ; then
11708 :
11709 else
11710 PKG_CONFIG_MIN_VERSION=0.9.0
11711 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11712 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11713 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11714
11715 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11716 { $as_echo "$as_me:$LINENO: result: yes" >&5
11717 $as_echo "yes" >&6; }
11718 succeeded=yes
11719
11720 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11721 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11722 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11723 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11724 $as_echo "$RSVG_CFLAGS" >&6; }
11725
11726 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11727 $as_echo_n "checking RSVG_LIBS... " >&6; }
11728 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11729 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11730 $as_echo "$RSVG_LIBS" >&6; }
11731 else
11732 { $as_echo "$as_me:$LINENO: result: no" >&5
11733 $as_echo "no" >&6; }
11734 RSVG_CFLAGS=""
11735 RSVG_LIBS=""
11736 ## If we have a custom action on failure, don't print errors, but
11737 ## do set a variable so people can do so.
11738 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11739
11740 fi
11741
11742
11743
11744 else
11745 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11746 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11747 fi
11748 fi
11749
11750 if test $succeeded = yes; then
11751 :
11752 else
11753 :
11754 fi
11755
11756
11757
11758
11759 if test ".${RSVG_CFLAGS}" != "."; then
11760 HAVE_RSVG=yes
11761
11762 cat >>confdefs.h <<\_ACEOF
11763 #define HAVE_RSVG 1
11764 _ACEOF
11765
11766 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11767 LIBS="$RSVG_LIBS $LIBS"
11768 fi
11769 fi
11770 fi
11771
11772
11773 HAVE_GTK=no
11774 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11775 GLIB_REQUIRED=2.6
11776 GTK_REQUIRED=2.6
11777 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11778
11779
11780 succeeded=no
11781
11782 # Extract the first word of "pkg-config", so it can be a program name with args.
11783 set dummy pkg-config; ac_word=$2
11784 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11785 $as_echo_n "checking for $ac_word... " >&6; }
11786 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11787 $as_echo_n "(cached) " >&6
11788 else
11789 case $PKG_CONFIG in
11790 [\\/]* | ?:[\\/]*)
11791 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11792 ;;
11793 *)
11794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11795 for as_dir in $PATH
11796 do
11797 IFS=$as_save_IFS
11798 test -z "$as_dir" && as_dir=.
11799 for ac_exec_ext in '' $ac_executable_extensions; do
11800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11801 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11802 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11803 break 2
11804 fi
11805 done
11806 done
11807 IFS=$as_save_IFS
11808
11809 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11810 ;;
11811 esac
11812 fi
11813 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11814 if test -n "$PKG_CONFIG"; then
11815 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11816 $as_echo "$PKG_CONFIG" >&6; }
11817 else
11818 { $as_echo "$as_me:$LINENO: result: no" >&5
11819 $as_echo "no" >&6; }
11820 fi
11821
11822
11823
11824 if test "$PKG_CONFIG" = "no" ; then
11825 pkg_check_gtk=no
11826 else
11827 PKG_CONFIG_MIN_VERSION=0.9.0
11828 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11829 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11830 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11831
11832 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11833 { $as_echo "$as_me:$LINENO: result: yes" >&5
11834 $as_echo "yes" >&6; }
11835 succeeded=yes
11836
11837 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11838 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11839 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11840 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11841 $as_echo "$GTK_CFLAGS" >&6; }
11842
11843 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11844 $as_echo_n "checking GTK_LIBS... " >&6; }
11845 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11846 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11847 $as_echo "$GTK_LIBS" >&6; }
11848 else
11849 { $as_echo "$as_me:$LINENO: result: no" >&5
11850 $as_echo "no" >&6; }
11851 GTK_CFLAGS=""
11852 GTK_LIBS=""
11853 ## If we have a custom action on failure, don't print errors, but
11854 ## do set a variable so people can do so.
11855 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11856
11857 fi
11858
11859
11860
11861 else
11862 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11863 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11864 fi
11865 fi
11866
11867 if test $succeeded = yes; then
11868 pkg_check_gtk=yes
11869 else
11870 pkg_check_gtk=no
11871 fi
11872
11873 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11874 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11875 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11876 { (exit 1); exit 1; }; }
11877 fi
11878 fi
11879
11880
11881 GTK_OBJ=
11882 if test x"$pkg_check_gtk" = xyes; then
11883
11884
11885
11886 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11887 CFLAGS="$CFLAGS $GTK_CFLAGS"
11888 LIBS="$GTK_LIBS $LIBS"
11889 GTK_COMPILES=no
11890
11891 for ac_func in gtk_main
11892 do
11893 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11894 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11895 $as_echo_n "checking for $ac_func... " >&6; }
11896 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11897 $as_echo_n "(cached) " >&6
11898 else
11899 cat >conftest.$ac_ext <<_ACEOF
11900 /* confdefs.h. */
11901 _ACEOF
11902 cat confdefs.h >>conftest.$ac_ext
11903 cat >>conftest.$ac_ext <<_ACEOF
11904 /* end confdefs.h. */
11905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11907 #define $ac_func innocuous_$ac_func
11908
11909 /* System header to define __stub macros and hopefully few prototypes,
11910 which can conflict with char $ac_func (); below.
11911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11912 <limits.h> exists even on freestanding compilers. */
11913
11914 #ifdef __STDC__
11915 # include <limits.h>
11916 #else
11917 # include <assert.h>
11918 #endif
11919
11920 #undef $ac_func
11921
11922 /* Override any GCC internal prototype to avoid an error.
11923 Use char because int might match the return type of a GCC
11924 builtin and then its argument prototype would still apply. */
11925 #ifdef __cplusplus
11926 extern "C"
11927 #endif
11928 char $ac_func ();
11929 /* The GNU C library defines this for functions which it implements
11930 to always fail with ENOSYS. Some functions are actually named
11931 something starting with __ and the normal name is an alias. */
11932 #if defined __stub_$ac_func || defined __stub___$ac_func
11933 choke me
11934 #endif
11935
11936 int
11937 main ()
11938 {
11939 return $ac_func ();
11940 ;
11941 return 0;
11942 }
11943 _ACEOF
11944 rm -f conftest.$ac_objext conftest$ac_exeext
11945 if { (ac_try="$ac_link"
11946 case "(($ac_try" in
11947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11948 *) ac_try_echo=$ac_try;;
11949 esac
11950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11951 $as_echo "$ac_try_echo") >&5
11952 (eval "$ac_link") 2>conftest.er1
11953 ac_status=$?
11954 grep -v '^ *+' conftest.er1 >conftest.err
11955 rm -f conftest.er1
11956 cat conftest.err >&5
11957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); } && {
11959 test -z "$ac_c_werror_flag" ||
11960 test ! -s conftest.err
11961 } && test -s conftest$ac_exeext && {
11962 test "$cross_compiling" = yes ||
11963 $as_test_x conftest$ac_exeext
11964 }; then
11965 eval "$as_ac_var=yes"
11966 else
11967 $as_echo "$as_me: failed program was:" >&5
11968 sed 's/^/| /' conftest.$ac_ext >&5
11969
11970 eval "$as_ac_var=no"
11971 fi
11972
11973 rm -rf conftest.dSYM
11974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11975 conftest$ac_exeext conftest.$ac_ext
11976 fi
11977 ac_res=`eval 'as_val=${'$as_ac_var'}
11978 $as_echo "$as_val"'`
11979 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11980 $as_echo "$ac_res" >&6; }
11981 if test `eval 'as_val=${'$as_ac_var'}
11982 $as_echo "$as_val"'` = yes; then
11983 cat >>confdefs.h <<_ACEOF
11984 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11985 _ACEOF
11986 GTK_COMPILES=yes
11987 fi
11988 done
11989
11990 if test "${GTK_COMPILES}" != "yes"; then
11991 if test "$USE_X_TOOLKIT" != "maybe"; then
11992 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11993 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11994 { (exit 1); exit 1; }; };
11995 fi
11996 else
11997 HAVE_GTK=yes
11998
11999 cat >>confdefs.h <<\_ACEOF
12000 #define USE_GTK 1
12001 _ACEOF
12002
12003 GTK_OBJ=gtkutil.o
12004 USE_X_TOOLKIT=none
12005 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
12006 :
12007 else
12008 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
12009 closing open displays. This is no problem if you just use
12010 one display, but if you use more than one and close one of them
12011 Emacs may crash." >&5
12012 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
12013 closing open displays. This is no problem if you just use
12014 one display, but if you use more than one and close one of them
12015 Emacs may crash." >&2;}
12016 sleep 3
12017 fi
12018 fi
12019
12020 fi
12021
12022
12023
12024 if test "${HAVE_GTK}" = "yes"; then
12025
12026 if test "$with_toolkit_scroll_bars" != no; then
12027 with_toolkit_scroll_bars=yes
12028 fi
12029
12030 HAVE_GTK_MULTIDISPLAY=no
12031
12032 for ac_func in gdk_display_open
12033 do
12034 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12035 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12036 $as_echo_n "checking for $ac_func... " >&6; }
12037 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12038 $as_echo_n "(cached) " >&6
12039 else
12040 cat >conftest.$ac_ext <<_ACEOF
12041 /* confdefs.h. */
12042 _ACEOF
12043 cat confdefs.h >>conftest.$ac_ext
12044 cat >>conftest.$ac_ext <<_ACEOF
12045 /* end confdefs.h. */
12046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12048 #define $ac_func innocuous_$ac_func
12049
12050 /* System header to define __stub macros and hopefully few prototypes,
12051 which can conflict with char $ac_func (); below.
12052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12053 <limits.h> exists even on freestanding compilers. */
12054
12055 #ifdef __STDC__
12056 # include <limits.h>
12057 #else
12058 # include <assert.h>
12059 #endif
12060
12061 #undef $ac_func
12062
12063 /* Override any GCC internal prototype to avoid an error.
12064 Use char because int might match the return type of a GCC
12065 builtin and then its argument prototype would still apply. */
12066 #ifdef __cplusplus
12067 extern "C"
12068 #endif
12069 char $ac_func ();
12070 /* The GNU C library defines this for functions which it implements
12071 to always fail with ENOSYS. Some functions are actually named
12072 something starting with __ and the normal name is an alias. */
12073 #if defined __stub_$ac_func || defined __stub___$ac_func
12074 choke me
12075 #endif
12076
12077 int
12078 main ()
12079 {
12080 return $ac_func ();
12081 ;
12082 return 0;
12083 }
12084 _ACEOF
12085 rm -f conftest.$ac_objext conftest$ac_exeext
12086 if { (ac_try="$ac_link"
12087 case "(($ac_try" in
12088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12089 *) ac_try_echo=$ac_try;;
12090 esac
12091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12092 $as_echo "$ac_try_echo") >&5
12093 (eval "$ac_link") 2>conftest.er1
12094 ac_status=$?
12095 grep -v '^ *+' conftest.er1 >conftest.err
12096 rm -f conftest.er1
12097 cat conftest.err >&5
12098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); } && {
12100 test -z "$ac_c_werror_flag" ||
12101 test ! -s conftest.err
12102 } && test -s conftest$ac_exeext && {
12103 test "$cross_compiling" = yes ||
12104 $as_test_x conftest$ac_exeext
12105 }; then
12106 eval "$as_ac_var=yes"
12107 else
12108 $as_echo "$as_me: failed program was:" >&5
12109 sed 's/^/| /' conftest.$ac_ext >&5
12110
12111 eval "$as_ac_var=no"
12112 fi
12113
12114 rm -rf conftest.dSYM
12115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12116 conftest$ac_exeext conftest.$ac_ext
12117 fi
12118 ac_res=`eval 'as_val=${'$as_ac_var'}
12119 $as_echo "$as_val"'`
12120 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12121 $as_echo "$ac_res" >&6; }
12122 if test `eval 'as_val=${'$as_ac_var'}
12123 $as_echo "$as_val"'` = yes; then
12124 cat >>confdefs.h <<_ACEOF
12125 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12126 _ACEOF
12127 HAVE_GTK_MULTIDISPLAY=yes
12128 fi
12129 done
12130
12131 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
12132
12133 cat >>confdefs.h <<\_ACEOF
12134 #define HAVE_GTK_MULTIDISPLAY 1
12135 _ACEOF
12136
12137 fi
12138
12139 HAVE_GTK_FILE_SELECTION=no
12140 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
12141 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
12142 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
12143 $as_echo_n "(cached) " >&6
12144 else
12145 cat >conftest.$ac_ext <<_ACEOF
12146 /* confdefs.h. */
12147 _ACEOF
12148 cat confdefs.h >>conftest.$ac_ext
12149 cat >>conftest.$ac_ext <<_ACEOF
12150 /* end confdefs.h. */
12151 $ac_includes_default
12152 #include <gtk/gtk.h>
12153
12154 int
12155 main ()
12156 {
12157 #ifndef GTK_TYPE_FILE_SELECTION
12158 (void) GTK_TYPE_FILE_SELECTION;
12159 #endif
12160
12161 ;
12162 return 0;
12163 }
12164 _ACEOF
12165 rm -f conftest.$ac_objext
12166 if { (ac_try="$ac_compile"
12167 case "(($ac_try" in
12168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12169 *) ac_try_echo=$ac_try;;
12170 esac
12171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12172 $as_echo "$ac_try_echo") >&5
12173 (eval "$ac_compile") 2>conftest.er1
12174 ac_status=$?
12175 grep -v '^ *+' conftest.er1 >conftest.err
12176 rm -f conftest.er1
12177 cat conftest.err >&5
12178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); } && {
12180 test -z "$ac_c_werror_flag" ||
12181 test ! -s conftest.err
12182 } && test -s conftest.$ac_objext; then
12183 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
12184 else
12185 $as_echo "$as_me: failed program was:" >&5
12186 sed 's/^/| /' conftest.$ac_ext >&5
12187
12188 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
12189 fi
12190
12191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12192 fi
12193 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
12194 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
12195 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
12196 HAVE_GTK_FILE_SELECTION=yes
12197 else
12198 HAVE_GTK_FILE_SELECTION=no
12199 fi
12200
12201 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
12202
12203 for ac_func in gtk_file_selection_new
12204 do
12205 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12206 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12207 $as_echo_n "checking for $ac_func... " >&6; }
12208 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12209 $as_echo_n "(cached) " >&6
12210 else
12211 cat >conftest.$ac_ext <<_ACEOF
12212 /* confdefs.h. */
12213 _ACEOF
12214 cat confdefs.h >>conftest.$ac_ext
12215 cat >>conftest.$ac_ext <<_ACEOF
12216 /* end confdefs.h. */
12217 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12219 #define $ac_func innocuous_$ac_func
12220
12221 /* System header to define __stub macros and hopefully few prototypes,
12222 which can conflict with char $ac_func (); below.
12223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12224 <limits.h> exists even on freestanding compilers. */
12225
12226 #ifdef __STDC__
12227 # include <limits.h>
12228 #else
12229 # include <assert.h>
12230 #endif
12231
12232 #undef $ac_func
12233
12234 /* Override any GCC internal prototype to avoid an error.
12235 Use char because int might match the return type of a GCC
12236 builtin and then its argument prototype would still apply. */
12237 #ifdef __cplusplus
12238 extern "C"
12239 #endif
12240 char $ac_func ();
12241 /* The GNU C library defines this for functions which it implements
12242 to always fail with ENOSYS. Some functions are actually named
12243 something starting with __ and the normal name is an alias. */
12244 #if defined __stub_$ac_func || defined __stub___$ac_func
12245 choke me
12246 #endif
12247
12248 int
12249 main ()
12250 {
12251 return $ac_func ();
12252 ;
12253 return 0;
12254 }
12255 _ACEOF
12256 rm -f conftest.$ac_objext conftest$ac_exeext
12257 if { (ac_try="$ac_link"
12258 case "(($ac_try" in
12259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12260 *) ac_try_echo=$ac_try;;
12261 esac
12262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12263 $as_echo "$ac_try_echo") >&5
12264 (eval "$ac_link") 2>conftest.er1
12265 ac_status=$?
12266 grep -v '^ *+' conftest.er1 >conftest.err
12267 rm -f conftest.er1
12268 cat conftest.err >&5
12269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); } && {
12271 test -z "$ac_c_werror_flag" ||
12272 test ! -s conftest.err
12273 } && test -s conftest$ac_exeext && {
12274 test "$cross_compiling" = yes ||
12275 $as_test_x conftest$ac_exeext
12276 }; then
12277 eval "$as_ac_var=yes"
12278 else
12279 $as_echo "$as_me: failed program was:" >&5
12280 sed 's/^/| /' conftest.$ac_ext >&5
12281
12282 eval "$as_ac_var=no"
12283 fi
12284
12285 rm -rf conftest.dSYM
12286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12287 conftest$ac_exeext conftest.$ac_ext
12288 fi
12289 ac_res=`eval 'as_val=${'$as_ac_var'}
12290 $as_echo "$as_val"'`
12291 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12292 $as_echo "$ac_res" >&6; }
12293 if test `eval 'as_val=${'$as_ac_var'}
12294 $as_echo "$as_val"'` = yes; then
12295 cat >>confdefs.h <<_ACEOF
12296 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12297 _ACEOF
12298 HAVE_GTK_FILE_SELECTION=yes
12299 else
12300 HAVE_GTK_FILE_SELECTION=no
12301 fi
12302 done
12303
12304 fi
12305
12306 HAVE_GTK_FILE_CHOOSER=no
12307 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12308 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12309 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12310 $as_echo_n "(cached) " >&6
12311 else
12312 cat >conftest.$ac_ext <<_ACEOF
12313 /* confdefs.h. */
12314 _ACEOF
12315 cat confdefs.h >>conftest.$ac_ext
12316 cat >>conftest.$ac_ext <<_ACEOF
12317 /* end confdefs.h. */
12318 $ac_includes_default
12319 #include <gtk/gtk.h>
12320
12321 int
12322 main ()
12323 {
12324 #ifndef GTK_TYPE_FILE_CHOOSER
12325 (void) GTK_TYPE_FILE_CHOOSER;
12326 #endif
12327
12328 ;
12329 return 0;
12330 }
12331 _ACEOF
12332 rm -f conftest.$ac_objext
12333 if { (ac_try="$ac_compile"
12334 case "(($ac_try" in
12335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12336 *) ac_try_echo=$ac_try;;
12337 esac
12338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12339 $as_echo "$ac_try_echo") >&5
12340 (eval "$ac_compile") 2>conftest.er1
12341 ac_status=$?
12342 grep -v '^ *+' conftest.er1 >conftest.err
12343 rm -f conftest.er1
12344 cat conftest.err >&5
12345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); } && {
12347 test -z "$ac_c_werror_flag" ||
12348 test ! -s conftest.err
12349 } && test -s conftest.$ac_objext; then
12350 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12351 else
12352 $as_echo "$as_me: failed program was:" >&5
12353 sed 's/^/| /' conftest.$ac_ext >&5
12354
12355 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12356 fi
12357
12358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12359 fi
12360 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12361 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12362 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
12363 HAVE_GTK_FILE_CHOOSER=yes
12364 else
12365 HAVE_GTK_FILE_CHOOSER=no
12366 fi
12367
12368 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12369
12370 for ac_func in gtk_file_chooser_dialog_new
12371 do
12372 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12373 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12374 $as_echo_n "checking for $ac_func... " >&6; }
12375 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12376 $as_echo_n "(cached) " >&6
12377 else
12378 cat >conftest.$ac_ext <<_ACEOF
12379 /* confdefs.h. */
12380 _ACEOF
12381 cat confdefs.h >>conftest.$ac_ext
12382 cat >>conftest.$ac_ext <<_ACEOF
12383 /* end confdefs.h. */
12384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12386 #define $ac_func innocuous_$ac_func
12387
12388 /* System header to define __stub macros and hopefully few prototypes,
12389 which can conflict with char $ac_func (); below.
12390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12391 <limits.h> exists even on freestanding compilers. */
12392
12393 #ifdef __STDC__
12394 # include <limits.h>
12395 #else
12396 # include <assert.h>
12397 #endif
12398
12399 #undef $ac_func
12400
12401 /* Override any GCC internal prototype to avoid an error.
12402 Use char because int might match the return type of a GCC
12403 builtin and then its argument prototype would still apply. */
12404 #ifdef __cplusplus
12405 extern "C"
12406 #endif
12407 char $ac_func ();
12408 /* The GNU C library defines this for functions which it implements
12409 to always fail with ENOSYS. Some functions are actually named
12410 something starting with __ and the normal name is an alias. */
12411 #if defined __stub_$ac_func || defined __stub___$ac_func
12412 choke me
12413 #endif
12414
12415 int
12416 main ()
12417 {
12418 return $ac_func ();
12419 ;
12420 return 0;
12421 }
12422 _ACEOF
12423 rm -f conftest.$ac_objext conftest$ac_exeext
12424 if { (ac_try="$ac_link"
12425 case "(($ac_try" in
12426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12427 *) ac_try_echo=$ac_try;;
12428 esac
12429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12430 $as_echo "$ac_try_echo") >&5
12431 (eval "$ac_link") 2>conftest.er1
12432 ac_status=$?
12433 grep -v '^ *+' conftest.er1 >conftest.err
12434 rm -f conftest.er1
12435 cat conftest.err >&5
12436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); } && {
12438 test -z "$ac_c_werror_flag" ||
12439 test ! -s conftest.err
12440 } && test -s conftest$ac_exeext && {
12441 test "$cross_compiling" = yes ||
12442 $as_test_x conftest$ac_exeext
12443 }; then
12444 eval "$as_ac_var=yes"
12445 else
12446 $as_echo "$as_me: failed program was:" >&5
12447 sed 's/^/| /' conftest.$ac_ext >&5
12448
12449 eval "$as_ac_var=no"
12450 fi
12451
12452 rm -rf conftest.dSYM
12453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12454 conftest$ac_exeext conftest.$ac_ext
12455 fi
12456 ac_res=`eval 'as_val=${'$as_ac_var'}
12457 $as_echo "$as_val"'`
12458 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12459 $as_echo "$ac_res" >&6; }
12460 if test `eval 'as_val=${'$as_ac_var'}
12461 $as_echo "$as_val"'` = yes; then
12462 cat >>confdefs.h <<_ACEOF
12463 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12464 _ACEOF
12465 HAVE_GTK_FILE_CHOOSER=yes
12466 else
12467 HAVE_GTK_FILE_CHOOSER=no
12468 fi
12469 done
12470
12471 fi
12472
12473 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12474 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12475
12476 cat >>confdefs.h <<\_ACEOF
12477 #define HAVE_GTK_FILE_BOTH 1
12478 _ACEOF
12479
12480 fi
12481
12482 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12483 HAVE_GTK_AND_PTHREAD=no
12484
12485 for ac_header in pthread.h
12486 do
12487 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12489 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12490 $as_echo_n "checking for $ac_header... " >&6; }
12491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12492 $as_echo_n "(cached) " >&6
12493 fi
12494 ac_res=`eval 'as_val=${'$as_ac_Header'}
12495 $as_echo "$as_val"'`
12496 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12497 $as_echo "$ac_res" >&6; }
12498 else
12499 # Is the header compilable?
12500 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12501 $as_echo_n "checking $ac_header usability... " >&6; }
12502 cat >conftest.$ac_ext <<_ACEOF
12503 /* confdefs.h. */
12504 _ACEOF
12505 cat confdefs.h >>conftest.$ac_ext
12506 cat >>conftest.$ac_ext <<_ACEOF
12507 /* end confdefs.h. */
12508 $ac_includes_default
12509 #include <$ac_header>
12510 _ACEOF
12511 rm -f conftest.$ac_objext
12512 if { (ac_try="$ac_compile"
12513 case "(($ac_try" in
12514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12515 *) ac_try_echo=$ac_try;;
12516 esac
12517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12518 $as_echo "$ac_try_echo") >&5
12519 (eval "$ac_compile") 2>conftest.er1
12520 ac_status=$?
12521 grep -v '^ *+' conftest.er1 >conftest.err
12522 rm -f conftest.er1
12523 cat conftest.err >&5
12524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); } && {
12526 test -z "$ac_c_werror_flag" ||
12527 test ! -s conftest.err
12528 } && test -s conftest.$ac_objext; then
12529 ac_header_compiler=yes
12530 else
12531 $as_echo "$as_me: failed program was:" >&5
12532 sed 's/^/| /' conftest.$ac_ext >&5
12533
12534 ac_header_compiler=no
12535 fi
12536
12537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12538 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12539 $as_echo "$ac_header_compiler" >&6; }
12540
12541 # Is the header present?
12542 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12543 $as_echo_n "checking $ac_header presence... " >&6; }
12544 cat >conftest.$ac_ext <<_ACEOF
12545 /* confdefs.h. */
12546 _ACEOF
12547 cat confdefs.h >>conftest.$ac_ext
12548 cat >>conftest.$ac_ext <<_ACEOF
12549 /* end confdefs.h. */
12550 #include <$ac_header>
12551 _ACEOF
12552 if { (ac_try="$ac_cpp conftest.$ac_ext"
12553 case "(($ac_try" in
12554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12555 *) ac_try_echo=$ac_try;;
12556 esac
12557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12558 $as_echo "$ac_try_echo") >&5
12559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12560 ac_status=$?
12561 grep -v '^ *+' conftest.er1 >conftest.err
12562 rm -f conftest.er1
12563 cat conftest.err >&5
12564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); } >/dev/null && {
12566 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12567 test ! -s conftest.err
12568 }; then
12569 ac_header_preproc=yes
12570 else
12571 $as_echo "$as_me: failed program was:" >&5
12572 sed 's/^/| /' conftest.$ac_ext >&5
12573
12574 ac_header_preproc=no
12575 fi
12576
12577 rm -f conftest.err conftest.$ac_ext
12578 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12579 $as_echo "$ac_header_preproc" >&6; }
12580
12581 # So? What about this header?
12582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12583 yes:no: )
12584 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12585 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12586 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12587 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12588 ac_header_preproc=yes
12589 ;;
12590 no:yes:* )
12591 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12592 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12593 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12594 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12595 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12596 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12597 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12598 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12599 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12600 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12601 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12602 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12603
12604 ;;
12605 esac
12606 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12607 $as_echo_n "checking for $ac_header... " >&6; }
12608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12609 $as_echo_n "(cached) " >&6
12610 else
12611 eval "$as_ac_Header=\$ac_header_preproc"
12612 fi
12613 ac_res=`eval 'as_val=${'$as_ac_Header'}
12614 $as_echo "$as_val"'`
12615 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12616 $as_echo "$ac_res" >&6; }
12617
12618 fi
12619 if test `eval 'as_val=${'$as_ac_Header'}
12620 $as_echo "$as_val"'` = yes; then
12621 cat >>confdefs.h <<_ACEOF
12622 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12623 _ACEOF
12624
12625 fi
12626
12627 done
12628
12629 if test "$ac_cv_header_pthread_h"; then
12630 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12631 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12632 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12633 $as_echo_n "(cached) " >&6
12634 else
12635 ac_check_lib_save_LIBS=$LIBS
12636 LIBS="-lpthread $LIBS"
12637 cat >conftest.$ac_ext <<_ACEOF
12638 /* confdefs.h. */
12639 _ACEOF
12640 cat confdefs.h >>conftest.$ac_ext
12641 cat >>conftest.$ac_ext <<_ACEOF
12642 /* end confdefs.h. */
12643
12644 /* Override any GCC internal prototype to avoid an error.
12645 Use char because int might match the return type of a GCC
12646 builtin and then its argument prototype would still apply. */
12647 #ifdef __cplusplus
12648 extern "C"
12649 #endif
12650 char pthread_self ();
12651 int
12652 main ()
12653 {
12654 return pthread_self ();
12655 ;
12656 return 0;
12657 }
12658 _ACEOF
12659 rm -f conftest.$ac_objext conftest$ac_exeext
12660 if { (ac_try="$ac_link"
12661 case "(($ac_try" in
12662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12663 *) ac_try_echo=$ac_try;;
12664 esac
12665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12666 $as_echo "$ac_try_echo") >&5
12667 (eval "$ac_link") 2>conftest.er1
12668 ac_status=$?
12669 grep -v '^ *+' conftest.er1 >conftest.err
12670 rm -f conftest.er1
12671 cat conftest.err >&5
12672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); } && {
12674 test -z "$ac_c_werror_flag" ||
12675 test ! -s conftest.err
12676 } && test -s conftest$ac_exeext && {
12677 test "$cross_compiling" = yes ||
12678 $as_test_x conftest$ac_exeext
12679 }; then
12680 ac_cv_lib_pthread_pthread_self=yes
12681 else
12682 $as_echo "$as_me: failed program was:" >&5
12683 sed 's/^/| /' conftest.$ac_ext >&5
12684
12685 ac_cv_lib_pthread_pthread_self=no
12686 fi
12687
12688 rm -rf conftest.dSYM
12689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12690 conftest$ac_exeext conftest.$ac_ext
12691 LIBS=$ac_check_lib_save_LIBS
12692 fi
12693 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12694 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12695 if test $ac_cv_lib_pthread_pthread_self = yes; then
12696 HAVE_GTK_AND_PTHREAD=yes
12697 fi
12698
12699 fi
12700 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12701 case "${canonical}" in
12702 *-hpux*) ;;
12703 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12704 esac
12705
12706 cat >>confdefs.h <<\_ACEOF
12707 #define HAVE_GTK_AND_PTHREAD 1
12708 _ACEOF
12709
12710 fi
12711 fi
12712 fi
12713
12714 HAVE_DBUS=no
12715 DBUS_OBJ=
12716 if test "${with_dbus}" = "yes"; then
12717
12718 succeeded=no
12719
12720 # Extract the first word of "pkg-config", so it can be a program name with args.
12721 set dummy pkg-config; ac_word=$2
12722 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12723 $as_echo_n "checking for $ac_word... " >&6; }
12724 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12725 $as_echo_n "(cached) " >&6
12726 else
12727 case $PKG_CONFIG in
12728 [\\/]* | ?:[\\/]*)
12729 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12730 ;;
12731 *)
12732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12733 for as_dir in $PATH
12734 do
12735 IFS=$as_save_IFS
12736 test -z "$as_dir" && as_dir=.
12737 for ac_exec_ext in '' $ac_executable_extensions; do
12738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12739 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12740 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12741 break 2
12742 fi
12743 done
12744 done
12745 IFS=$as_save_IFS
12746
12747 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12748 ;;
12749 esac
12750 fi
12751 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12752 if test -n "$PKG_CONFIG"; then
12753 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12754 $as_echo "$PKG_CONFIG" >&6; }
12755 else
12756 { $as_echo "$as_me:$LINENO: result: no" >&5
12757 $as_echo "no" >&6; }
12758 fi
12759
12760
12761
12762 if test "$PKG_CONFIG" = "no" ; then
12763 HAVE_DBUS=no
12764 else
12765 PKG_CONFIG_MIN_VERSION=0.9.0
12766 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12767 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12768 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12769
12770 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12771 { $as_echo "$as_me:$LINENO: result: yes" >&5
12772 $as_echo "yes" >&6; }
12773 succeeded=yes
12774
12775 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12776 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12777 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12778 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12779 $as_echo "$DBUS_CFLAGS" >&6; }
12780
12781 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12782 $as_echo_n "checking DBUS_LIBS... " >&6; }
12783 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12784 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12785 $as_echo "$DBUS_LIBS" >&6; }
12786 else
12787 { $as_echo "$as_me:$LINENO: result: no" >&5
12788 $as_echo "no" >&6; }
12789 DBUS_CFLAGS=""
12790 DBUS_LIBS=""
12791 ## If we have a custom action on failure, don't print errors, but
12792 ## do set a variable so people can do so.
12793 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12794
12795 fi
12796
12797
12798
12799 else
12800 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12801 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12802 fi
12803 fi
12804
12805 if test $succeeded = yes; then
12806 HAVE_DBUS=yes
12807 else
12808 HAVE_DBUS=no
12809 fi
12810
12811 if test "$HAVE_DBUS" = yes; then
12812 LIBS="$LIBS $DBUS_LIBS"
12813
12814 cat >>confdefs.h <<\_ACEOF
12815 #define HAVE_DBUS 1
12816 _ACEOF
12817
12818
12819 for ac_func in dbus_watch_get_unix_fd
12820 do
12821 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12822 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12823 $as_echo_n "checking for $ac_func... " >&6; }
12824 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12825 $as_echo_n "(cached) " >&6
12826 else
12827 cat >conftest.$ac_ext <<_ACEOF
12828 /* confdefs.h. */
12829 _ACEOF
12830 cat confdefs.h >>conftest.$ac_ext
12831 cat >>conftest.$ac_ext <<_ACEOF
12832 /* end confdefs.h. */
12833 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12835 #define $ac_func innocuous_$ac_func
12836
12837 /* System header to define __stub macros and hopefully few prototypes,
12838 which can conflict with char $ac_func (); below.
12839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12840 <limits.h> exists even on freestanding compilers. */
12841
12842 #ifdef __STDC__
12843 # include <limits.h>
12844 #else
12845 # include <assert.h>
12846 #endif
12847
12848 #undef $ac_func
12849
12850 /* Override any GCC internal prototype to avoid an error.
12851 Use char because int might match the return type of a GCC
12852 builtin and then its argument prototype would still apply. */
12853 #ifdef __cplusplus
12854 extern "C"
12855 #endif
12856 char $ac_func ();
12857 /* The GNU C library defines this for functions which it implements
12858 to always fail with ENOSYS. Some functions are actually named
12859 something starting with __ and the normal name is an alias. */
12860 #if defined __stub_$ac_func || defined __stub___$ac_func
12861 choke me
12862 #endif
12863
12864 int
12865 main ()
12866 {
12867 return $ac_func ();
12868 ;
12869 return 0;
12870 }
12871 _ACEOF
12872 rm -f conftest.$ac_objext conftest$ac_exeext
12873 if { (ac_try="$ac_link"
12874 case "(($ac_try" in
12875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12876 *) ac_try_echo=$ac_try;;
12877 esac
12878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12879 $as_echo "$ac_try_echo") >&5
12880 (eval "$ac_link") 2>conftest.er1
12881 ac_status=$?
12882 grep -v '^ *+' conftest.er1 >conftest.err
12883 rm -f conftest.er1
12884 cat conftest.err >&5
12885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886 (exit $ac_status); } && {
12887 test -z "$ac_c_werror_flag" ||
12888 test ! -s conftest.err
12889 } && test -s conftest$ac_exeext && {
12890 test "$cross_compiling" = yes ||
12891 $as_test_x conftest$ac_exeext
12892 }; then
12893 eval "$as_ac_var=yes"
12894 else
12895 $as_echo "$as_me: failed program was:" >&5
12896 sed 's/^/| /' conftest.$ac_ext >&5
12897
12898 eval "$as_ac_var=no"
12899 fi
12900
12901 rm -rf conftest.dSYM
12902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12903 conftest$ac_exeext conftest.$ac_ext
12904 fi
12905 ac_res=`eval 'as_val=${'$as_ac_var'}
12906 $as_echo "$as_val"'`
12907 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12908 $as_echo "$ac_res" >&6; }
12909 if test `eval 'as_val=${'$as_ac_var'}
12910 $as_echo "$as_val"'` = yes; then
12911 cat >>confdefs.h <<_ACEOF
12912 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12913 _ACEOF
12914
12915 fi
12916 done
12917
12918 DBUS_OBJ=dbusbind.o
12919 fi
12920 fi
12921
12922
12923 HAVE_GCONF=no
12924 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12925
12926 succeeded=no
12927
12928 # Extract the first word of "pkg-config", so it can be a program name with args.
12929 set dummy pkg-config; ac_word=$2
12930 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12931 $as_echo_n "checking for $ac_word... " >&6; }
12932 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12933 $as_echo_n "(cached) " >&6
12934 else
12935 case $PKG_CONFIG in
12936 [\\/]* | ?:[\\/]*)
12937 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12938 ;;
12939 *)
12940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12941 for as_dir in $PATH
12942 do
12943 IFS=$as_save_IFS
12944 test -z "$as_dir" && as_dir=.
12945 for ac_exec_ext in '' $ac_executable_extensions; do
12946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12947 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12948 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12949 break 2
12950 fi
12951 done
12952 done
12953 IFS=$as_save_IFS
12954
12955 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12956 ;;
12957 esac
12958 fi
12959 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12960 if test -n "$PKG_CONFIG"; then
12961 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12962 $as_echo "$PKG_CONFIG" >&6; }
12963 else
12964 { $as_echo "$as_me:$LINENO: result: no" >&5
12965 $as_echo "no" >&6; }
12966 fi
12967
12968
12969
12970 if test "$PKG_CONFIG" = "no" ; then
12971 HAVE_GCONF=no
12972 else
12973 PKG_CONFIG_MIN_VERSION=0.9.0
12974 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12975 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
12976 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12977
12978 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
12979 { $as_echo "$as_me:$LINENO: result: yes" >&5
12980 $as_echo "yes" >&6; }
12981 succeeded=yes
12982
12983 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
12984 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
12985 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12986 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
12987 $as_echo "$GCONF_CFLAGS" >&6; }
12988
12989 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
12990 $as_echo_n "checking GCONF_LIBS... " >&6; }
12991 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12992 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
12993 $as_echo "$GCONF_LIBS" >&6; }
12994 else
12995 { $as_echo "$as_me:$LINENO: result: no" >&5
12996 $as_echo "no" >&6; }
12997 GCONF_CFLAGS=""
12998 GCONF_LIBS=""
12999 ## If we have a custom action on failure, don't print errors, but
13000 ## do set a variable so people can do so.
13001 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
13002
13003 fi
13004
13005
13006
13007 else
13008 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13009 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13010 fi
13011 fi
13012
13013 if test $succeeded = yes; then
13014 HAVE_GCONF=yes
13015 else
13016 HAVE_GCONF=no
13017 fi
13018
13019 if test "$HAVE_GCONF" = yes; then
13020
13021 cat >>confdefs.h <<\_ACEOF
13022 #define HAVE_GCONF 1
13023 _ACEOF
13024
13025 fi
13026 fi
13027
13028 HAVE_LIBSELINUX=no
13029 LIBSELINUX_LIBS=
13030 if test "${with_selinux}" = "yes"; then
13031 { $as_echo "$as_me:$LINENO: checking for lgetfilecon in -lselinux" >&5
13032 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
13033 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then
13034 $as_echo_n "(cached) " >&6
13035 else
13036 ac_check_lib_save_LIBS=$LIBS
13037 LIBS="-lselinux $LIBS"
13038 cat >conftest.$ac_ext <<_ACEOF
13039 /* confdefs.h. */
13040 _ACEOF
13041 cat confdefs.h >>conftest.$ac_ext
13042 cat >>conftest.$ac_ext <<_ACEOF
13043 /* end confdefs.h. */
13044
13045 /* Override any GCC internal prototype to avoid an error.
13046 Use char because int might match the return type of a GCC
13047 builtin and then its argument prototype would still apply. */
13048 #ifdef __cplusplus
13049 extern "C"
13050 #endif
13051 char lgetfilecon ();
13052 int
13053 main ()
13054 {
13055 return lgetfilecon ();
13056 ;
13057 return 0;
13058 }
13059 _ACEOF
13060 rm -f conftest.$ac_objext conftest$ac_exeext
13061 if { (ac_try="$ac_link"
13062 case "(($ac_try" in
13063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13064 *) ac_try_echo=$ac_try;;
13065 esac
13066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13067 $as_echo "$ac_try_echo") >&5
13068 (eval "$ac_link") 2>conftest.er1
13069 ac_status=$?
13070 grep -v '^ *+' conftest.er1 >conftest.err
13071 rm -f conftest.er1
13072 cat conftest.err >&5
13073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); } && {
13075 test -z "$ac_c_werror_flag" ||
13076 test ! -s conftest.err
13077 } && test -s conftest$ac_exeext && {
13078 test "$cross_compiling" = yes ||
13079 $as_test_x conftest$ac_exeext
13080 }; then
13081 ac_cv_lib_selinux_lgetfilecon=yes
13082 else
13083 $as_echo "$as_me: failed program was:" >&5
13084 sed 's/^/| /' conftest.$ac_ext >&5
13085
13086 ac_cv_lib_selinux_lgetfilecon=no
13087 fi
13088
13089 rm -rf conftest.dSYM
13090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13091 conftest$ac_exeext conftest.$ac_ext
13092 LIBS=$ac_check_lib_save_LIBS
13093 fi
13094 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_lgetfilecon" >&5
13095 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
13096 if test $ac_cv_lib_selinux_lgetfilecon = yes; then
13097 HAVE_LIBSELINUX=yes
13098 else
13099 HAVE_LIBSELINUX=no
13100 fi
13101
13102 if test "$HAVE_LIBSELINUX" = yes; then
13103
13104 cat >>confdefs.h <<\_ACEOF
13105 #define HAVE_LIBSELINUX 1
13106 _ACEOF
13107
13108 LIBSELINUX_LIBS=-lselinux
13109 fi
13110 fi
13111
13112
13113 HAVE_XAW3D=no
13114 LUCID_LIBW=
13115 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
13116 if test "$with_xaw3d" != no; then
13117 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
13118 $as_echo_n "checking for xaw3d... " >&6; }
13119 if test "${emacs_cv_xaw3d+set}" = set; then
13120 $as_echo_n "(cached) " >&6
13121 else
13122 cat >conftest.$ac_ext <<_ACEOF
13123 /* confdefs.h. */
13124 _ACEOF
13125 cat confdefs.h >>conftest.$ac_ext
13126 cat >>conftest.$ac_ext <<_ACEOF
13127 /* end confdefs.h. */
13128
13129 #include <X11/Intrinsic.h>
13130 #include <X11/Xaw3d/Simple.h>
13131 int
13132 main ()
13133 {
13134
13135 ;
13136 return 0;
13137 }
13138 _ACEOF
13139 rm -f conftest.$ac_objext conftest$ac_exeext
13140 if { (ac_try="$ac_link"
13141 case "(($ac_try" in
13142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143 *) ac_try_echo=$ac_try;;
13144 esac
13145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13146 $as_echo "$ac_try_echo") >&5
13147 (eval "$ac_link") 2>conftest.er1
13148 ac_status=$?
13149 grep -v '^ *+' conftest.er1 >conftest.err
13150 rm -f conftest.er1
13151 cat conftest.err >&5
13152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); } && {
13154 test -z "$ac_c_werror_flag" ||
13155 test ! -s conftest.err
13156 } && test -s conftest$ac_exeext && {
13157 test "$cross_compiling" = yes ||
13158 $as_test_x conftest$ac_exeext
13159 }; then
13160 emacs_cv_xaw3d=yes
13161 else
13162 $as_echo "$as_me: failed program was:" >&5
13163 sed 's/^/| /' conftest.$ac_ext >&5
13164
13165 emacs_cv_xaw3d=no
13166 fi
13167
13168 rm -rf conftest.dSYM
13169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13170 conftest$ac_exeext conftest.$ac_ext
13171 fi
13172
13173 else
13174 emacs_cv_xaw3d=no
13175 fi
13176 if test $emacs_cv_xaw3d = yes; then
13177 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13178 $as_echo "yes; using Lucid toolkit" >&6; }
13179 USE_X_TOOLKIT=LUCID
13180 HAVE_XAW3D=yes
13181 LUCID_LIBW=-lXaw3d
13182
13183 cat >>confdefs.h <<\_ACEOF
13184 #define HAVE_XAW3D 1
13185 _ACEOF
13186
13187 else
13188 { $as_echo "$as_me:$LINENO: result: no" >&5
13189 $as_echo "no" >&6; }
13190 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
13191 $as_echo_n "checking for libXaw... " >&6; }
13192 if test "${emacs_cv_xaw+set}" = set; then
13193 $as_echo_n "(cached) " >&6
13194 else
13195 cat >conftest.$ac_ext <<_ACEOF
13196 /* confdefs.h. */
13197 _ACEOF
13198 cat confdefs.h >>conftest.$ac_ext
13199 cat >>conftest.$ac_ext <<_ACEOF
13200 /* end confdefs.h. */
13201
13202 #include <X11/Intrinsic.h>
13203 #include <X11/Xaw/Simple.h>
13204 int
13205 main ()
13206 {
13207
13208 ;
13209 return 0;
13210 }
13211 _ACEOF
13212 rm -f conftest.$ac_objext conftest$ac_exeext
13213 if { (ac_try="$ac_link"
13214 case "(($ac_try" in
13215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13216 *) ac_try_echo=$ac_try;;
13217 esac
13218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13219 $as_echo "$ac_try_echo") >&5
13220 (eval "$ac_link") 2>conftest.er1
13221 ac_status=$?
13222 grep -v '^ *+' conftest.er1 >conftest.err
13223 rm -f conftest.er1
13224 cat conftest.err >&5
13225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); } && {
13227 test -z "$ac_c_werror_flag" ||
13228 test ! -s conftest.err
13229 } && test -s conftest$ac_exeext && {
13230 test "$cross_compiling" = yes ||
13231 $as_test_x conftest$ac_exeext
13232 }; then
13233 emacs_cv_xaw=yes
13234 else
13235 $as_echo "$as_me: failed program was:" >&5
13236 sed 's/^/| /' conftest.$ac_ext >&5
13237
13238 emacs_cv_xaw=no
13239 fi
13240
13241 rm -rf conftest.dSYM
13242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13243 conftest$ac_exeext conftest.$ac_ext
13244 fi
13245
13246 if test $emacs_cv_xaw = yes; then
13247 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13248 $as_echo "yes; using Lucid toolkit" >&6; }
13249 USE_X_TOOLKIT=LUCID
13250 LUCID_LIBW=-lXaw
13251 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
13252 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
13253 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
13254 { (exit 1); exit 1; }; }
13255 else
13256 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
13257 $as_echo "no; do not use toolkit by default" >&6; }
13258 USE_X_TOOLKIT=none
13259 fi
13260 fi
13261 fi
13262
13263 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
13264
13265 LIBXTR6=
13266 if test "${USE_X_TOOLKIT}" != "none"; then
13267 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
13268 $as_echo_n "checking X11 toolkit version... " >&6; }
13269 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
13270 $as_echo_n "(cached) " >&6
13271 else
13272 cat >conftest.$ac_ext <<_ACEOF
13273 /* confdefs.h. */
13274 _ACEOF
13275 cat confdefs.h >>conftest.$ac_ext
13276 cat >>conftest.$ac_ext <<_ACEOF
13277 /* end confdefs.h. */
13278 #include <X11/Intrinsic.h>
13279 int
13280 main ()
13281 {
13282 #if XtSpecificationRelease < 6
13283 fail;
13284 #endif
13285
13286 ;
13287 return 0;
13288 }
13289 _ACEOF
13290 rm -f conftest.$ac_objext conftest$ac_exeext
13291 if { (ac_try="$ac_link"
13292 case "(($ac_try" in
13293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13294 *) ac_try_echo=$ac_try;;
13295 esac
13296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13297 $as_echo "$ac_try_echo") >&5
13298 (eval "$ac_link") 2>conftest.er1
13299 ac_status=$?
13300 grep -v '^ *+' conftest.er1 >conftest.err
13301 rm -f conftest.er1
13302 cat conftest.err >&5
13303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); } && {
13305 test -z "$ac_c_werror_flag" ||
13306 test ! -s conftest.err
13307 } && test -s conftest$ac_exeext && {
13308 test "$cross_compiling" = yes ||
13309 $as_test_x conftest$ac_exeext
13310 }; then
13311 emacs_cv_x11_toolkit_version_6=yes
13312 else
13313 $as_echo "$as_me: failed program was:" >&5
13314 sed 's/^/| /' conftest.$ac_ext >&5
13315
13316 emacs_cv_x11_toolkit_version_6=no
13317 fi
13318
13319 rm -rf conftest.dSYM
13320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13321 conftest$ac_exeext conftest.$ac_ext
13322 fi
13323
13324 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
13325 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13326 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
13327 $as_echo "6 or newer" >&6; }
13328
13329 cat >>confdefs.h <<\_ACEOF
13330 #define HAVE_X11XTR6 1
13331 _ACEOF
13332
13333 LIBXTR6="-lSM -lICE"
13334 case "$opsys" in
13335 ## Use libw.a along with X11R6 Xt.
13336 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
13337 esac
13338 else
13339 { $as_echo "$as_me:$LINENO: result: before 6" >&5
13340 $as_echo "before 6" >&6; }
13341 fi
13342
13343 OLDLIBS="$LIBS"
13344 if test x$HAVE_X11XTR6 = xyes; then
13345 LIBS="-lXt -lSM -lICE $LIBS"
13346 else
13347 LIBS="-lXt $LIBS"
13348 fi
13349
13350 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13351 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
13352 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13353 $as_echo_n "(cached) " >&6
13354 else
13355 ac_check_lib_save_LIBS=$LIBS
13356 LIBS="-lXmu $LIBS"
13357 cat >conftest.$ac_ext <<_ACEOF
13358 /* confdefs.h. */
13359 _ACEOF
13360 cat confdefs.h >>conftest.$ac_ext
13361 cat >>conftest.$ac_ext <<_ACEOF
13362 /* end confdefs.h. */
13363
13364 /* Override any GCC internal prototype to avoid an error.
13365 Use char because int might match the return type of a GCC
13366 builtin and then its argument prototype would still apply. */
13367 #ifdef __cplusplus
13368 extern "C"
13369 #endif
13370 char XmuConvertStandardSelection ();
13371 int
13372 main ()
13373 {
13374 return XmuConvertStandardSelection ();
13375 ;
13376 return 0;
13377 }
13378 _ACEOF
13379 rm -f conftest.$ac_objext conftest$ac_exeext
13380 if { (ac_try="$ac_link"
13381 case "(($ac_try" in
13382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13383 *) ac_try_echo=$ac_try;;
13384 esac
13385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13386 $as_echo "$ac_try_echo") >&5
13387 (eval "$ac_link") 2>conftest.er1
13388 ac_status=$?
13389 grep -v '^ *+' conftest.er1 >conftest.err
13390 rm -f conftest.er1
13391 cat conftest.err >&5
13392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); } && {
13394 test -z "$ac_c_werror_flag" ||
13395 test ! -s conftest.err
13396 } && test -s conftest$ac_exeext && {
13397 test "$cross_compiling" = yes ||
13398 $as_test_x conftest$ac_exeext
13399 }; then
13400 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13401 else
13402 $as_echo "$as_me: failed program was:" >&5
13403 sed 's/^/| /' conftest.$ac_ext >&5
13404
13405 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13406 fi
13407
13408 rm -rf conftest.dSYM
13409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13410 conftest$ac_exeext conftest.$ac_ext
13411 LIBS=$ac_check_lib_save_LIBS
13412 fi
13413 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13414 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13415 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
13416 cat >>confdefs.h <<_ACEOF
13417 #define HAVE_LIBXMU 1
13418 _ACEOF
13419
13420 LIBS="-lXmu $LIBS"
13421
13422 fi
13423
13424 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13425 fi
13426
13427
13428 LIBXMU=-lXmu
13429 case "$machine" in
13430 ## These machines don't supply Xmu.
13431 hpux* | aix4-2 )
13432 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
13433 ;;
13434 esac
13435
13436
13437 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13438 if test "${HAVE_X11}" = "yes"; then
13439 if test "${USE_X_TOOLKIT}" != "none"; then
13440
13441 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13442 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13443 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13444 $as_echo_n "(cached) " >&6
13445 else
13446 ac_check_lib_save_LIBS=$LIBS
13447 LIBS="-lXext $LIBS"
13448 cat >conftest.$ac_ext <<_ACEOF
13449 /* confdefs.h. */
13450 _ACEOF
13451 cat confdefs.h >>conftest.$ac_ext
13452 cat >>conftest.$ac_ext <<_ACEOF
13453 /* end confdefs.h. */
13454
13455 /* Override any GCC internal prototype to avoid an error.
13456 Use char because int might match the return type of a GCC
13457 builtin and then its argument prototype would still apply. */
13458 #ifdef __cplusplus
13459 extern "C"
13460 #endif
13461 char XShapeQueryExtension ();
13462 int
13463 main ()
13464 {
13465 return XShapeQueryExtension ();
13466 ;
13467 return 0;
13468 }
13469 _ACEOF
13470 rm -f conftest.$ac_objext conftest$ac_exeext
13471 if { (ac_try="$ac_link"
13472 case "(($ac_try" in
13473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13474 *) ac_try_echo=$ac_try;;
13475 esac
13476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13477 $as_echo "$ac_try_echo") >&5
13478 (eval "$ac_link") 2>conftest.er1
13479 ac_status=$?
13480 grep -v '^ *+' conftest.er1 >conftest.err
13481 rm -f conftest.er1
13482 cat conftest.err >&5
13483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); } && {
13485 test -z "$ac_c_werror_flag" ||
13486 test ! -s conftest.err
13487 } && test -s conftest$ac_exeext && {
13488 test "$cross_compiling" = yes ||
13489 $as_test_x conftest$ac_exeext
13490 }; then
13491 ac_cv_lib_Xext_XShapeQueryExtension=yes
13492 else
13493 $as_echo "$as_me: failed program was:" >&5
13494 sed 's/^/| /' conftest.$ac_ext >&5
13495
13496 ac_cv_lib_Xext_XShapeQueryExtension=no
13497 fi
13498
13499 rm -rf conftest.dSYM
13500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13501 conftest$ac_exeext conftest.$ac_ext
13502 LIBS=$ac_check_lib_save_LIBS
13503 fi
13504 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13505 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13506 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13507 cat >>confdefs.h <<_ACEOF
13508 #define HAVE_LIBXEXT 1
13509 _ACEOF
13510
13511 LIBS="-lXext $LIBS"
13512
13513 fi
13514
13515 fi
13516 fi
13517
13518 LIBXP=
13519 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13520 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13521 $as_echo_n "checking for Motif version 2.1... " >&6; }
13522 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13523 $as_echo_n "(cached) " >&6
13524 else
13525 cat >conftest.$ac_ext <<_ACEOF
13526 /* confdefs.h. */
13527 _ACEOF
13528 cat confdefs.h >>conftest.$ac_ext
13529 cat >>conftest.$ac_ext <<_ACEOF
13530 /* end confdefs.h. */
13531 #include <Xm/Xm.h>
13532 int
13533 main ()
13534 {
13535 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13536 int x = 5;
13537 #else
13538 Motif version prior to 2.1.
13539 #endif
13540 ;
13541 return 0;
13542 }
13543 _ACEOF
13544 rm -f conftest.$ac_objext
13545 if { (ac_try="$ac_compile"
13546 case "(($ac_try" in
13547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13548 *) ac_try_echo=$ac_try;;
13549 esac
13550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13551 $as_echo "$ac_try_echo") >&5
13552 (eval "$ac_compile") 2>conftest.er1
13553 ac_status=$?
13554 grep -v '^ *+' conftest.er1 >conftest.err
13555 rm -f conftest.er1
13556 cat conftest.err >&5
13557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); } && {
13559 test -z "$ac_c_werror_flag" ||
13560 test ! -s conftest.err
13561 } && test -s conftest.$ac_objext; then
13562 emacs_cv_motif_version_2_1=yes
13563 else
13564 $as_echo "$as_me: failed program was:" >&5
13565 sed 's/^/| /' conftest.$ac_ext >&5
13566
13567 emacs_cv_motif_version_2_1=no
13568 fi
13569
13570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13571 fi
13572 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13573 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13574 if test $emacs_cv_motif_version_2_1 = yes; then
13575 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13576 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13577 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13578 $as_echo_n "(cached) " >&6
13579 else
13580 ac_check_lib_save_LIBS=$LIBS
13581 LIBS="-lXp $LIBS"
13582 cat >conftest.$ac_ext <<_ACEOF
13583 /* confdefs.h. */
13584 _ACEOF
13585 cat confdefs.h >>conftest.$ac_ext
13586 cat >>conftest.$ac_ext <<_ACEOF
13587 /* end confdefs.h. */
13588
13589 /* Override any GCC internal prototype to avoid an error.
13590 Use char because int might match the return type of a GCC
13591 builtin and then its argument prototype would still apply. */
13592 #ifdef __cplusplus
13593 extern "C"
13594 #endif
13595 char XpCreateContext ();
13596 int
13597 main ()
13598 {
13599 return XpCreateContext ();
13600 ;
13601 return 0;
13602 }
13603 _ACEOF
13604 rm -f conftest.$ac_objext conftest$ac_exeext
13605 if { (ac_try="$ac_link"
13606 case "(($ac_try" in
13607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13608 *) ac_try_echo=$ac_try;;
13609 esac
13610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13611 $as_echo "$ac_try_echo") >&5
13612 (eval "$ac_link") 2>conftest.er1
13613 ac_status=$?
13614 grep -v '^ *+' conftest.er1 >conftest.err
13615 rm -f conftest.er1
13616 cat conftest.err >&5
13617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); } && {
13619 test -z "$ac_c_werror_flag" ||
13620 test ! -s conftest.err
13621 } && test -s conftest$ac_exeext && {
13622 test "$cross_compiling" = yes ||
13623 $as_test_x conftest$ac_exeext
13624 }; then
13625 ac_cv_lib_Xp_XpCreateContext=yes
13626 else
13627 $as_echo "$as_me: failed program was:" >&5
13628 sed 's/^/| /' conftest.$ac_ext >&5
13629
13630 ac_cv_lib_Xp_XpCreateContext=no
13631 fi
13632
13633 rm -rf conftest.dSYM
13634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13635 conftest$ac_exeext conftest.$ac_ext
13636 LIBS=$ac_check_lib_save_LIBS
13637 fi
13638 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13639 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13640 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13641 LIBXP=-lXp
13642 fi
13643
13644 else
13645 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13646 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13647 if test "${emacs_cv_lesstif+set}" = set; then
13648 $as_echo_n "(cached) " >&6
13649 else
13650 # We put this in CFLAGS temporarily to precede other -I options
13651 # that might be in CFLAGS temporarily.
13652 # We put this in CPPFLAGS where it precedes the other -I options.
13653 OLD_CPPFLAGS=$CPPFLAGS
13654 OLD_CFLAGS=$CFLAGS
13655 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13656 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13657 cat >conftest.$ac_ext <<_ACEOF
13658 /* confdefs.h. */
13659 _ACEOF
13660 cat confdefs.h >>conftest.$ac_ext
13661 cat >>conftest.$ac_ext <<_ACEOF
13662 /* end confdefs.h. */
13663 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13664 int
13665 main ()
13666 {
13667 int x = 5;
13668 ;
13669 return 0;
13670 }
13671 _ACEOF
13672 rm -f conftest.$ac_objext
13673 if { (ac_try="$ac_compile"
13674 case "(($ac_try" in
13675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13676 *) ac_try_echo=$ac_try;;
13677 esac
13678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13679 $as_echo "$ac_try_echo") >&5
13680 (eval "$ac_compile") 2>conftest.er1
13681 ac_status=$?
13682 grep -v '^ *+' conftest.er1 >conftest.err
13683 rm -f conftest.er1
13684 cat conftest.err >&5
13685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); } && {
13687 test -z "$ac_c_werror_flag" ||
13688 test ! -s conftest.err
13689 } && test -s conftest.$ac_objext; then
13690 emacs_cv_lesstif=yes
13691 else
13692 $as_echo "$as_me: failed program was:" >&5
13693 sed 's/^/| /' conftest.$ac_ext >&5
13694
13695 emacs_cv_lesstif=no
13696 fi
13697
13698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13699 fi
13700 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13701 $as_echo "$emacs_cv_lesstif" >&6; }
13702 if test $emacs_cv_lesstif = yes; then
13703 # Make sure this -I option remains in CPPFLAGS after it is set
13704 # back to REAL_CPPFLAGS.
13705 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13706 # have those other -I options anyway. Ultimately, having this
13707 # directory ultimately in CPPFLAGS will be enough.
13708 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13709 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13710 else
13711 CFLAGS=$OLD_CFLAGS
13712 CPPFLAGS=$OLD_CPPFLAGS
13713 fi
13714 fi
13715 fi
13716
13717
13718
13719 USE_TOOLKIT_SCROLL_BARS=no
13720 if test "${with_toolkit_scroll_bars}" != "no"; then
13721 if test "${USE_X_TOOLKIT}" != "none"; then
13722 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13723 cat >>confdefs.h <<\_ACEOF
13724 #define USE_TOOLKIT_SCROLL_BARS 1
13725 _ACEOF
13726
13727 HAVE_XAW3D=no
13728 USE_TOOLKIT_SCROLL_BARS=yes
13729 elif test "${HAVE_XAW3D}" = "yes"; then
13730 cat >>confdefs.h <<\_ACEOF
13731 #define USE_TOOLKIT_SCROLL_BARS 1
13732 _ACEOF
13733
13734 USE_TOOLKIT_SCROLL_BARS=yes
13735 fi
13736 elif test "${HAVE_GTK}" = "yes"; then
13737 cat >>confdefs.h <<\_ACEOF
13738 #define USE_TOOLKIT_SCROLL_BARS 1
13739 _ACEOF
13740
13741 USE_TOOLKIT_SCROLL_BARS=yes
13742 elif test "${HAVE_NS}" = "yes"; then
13743 cat >>confdefs.h <<\_ACEOF
13744 #define USE_TOOLKIT_SCROLL_BARS 1
13745 _ACEOF
13746
13747 USE_TOOLKIT_SCROLL_BARS=yes
13748 fi
13749 fi
13750
13751 cat >conftest.$ac_ext <<_ACEOF
13752 /* confdefs.h. */
13753 _ACEOF
13754 cat confdefs.h >>conftest.$ac_ext
13755 cat >>conftest.$ac_ext <<_ACEOF
13756 /* end confdefs.h. */
13757
13758 #include <X11/Xlib.h>
13759 #include <X11/Xresource.h>
13760 int
13761 main ()
13762 {
13763 XIMProc callback;
13764 ;
13765 return 0;
13766 }
13767 _ACEOF
13768 rm -f conftest.$ac_objext
13769 if { (ac_try="$ac_compile"
13770 case "(($ac_try" in
13771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13772 *) ac_try_echo=$ac_try;;
13773 esac
13774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13775 $as_echo "$ac_try_echo") >&5
13776 (eval "$ac_compile") 2>conftest.er1
13777 ac_status=$?
13778 grep -v '^ *+' conftest.er1 >conftest.err
13779 rm -f conftest.er1
13780 cat conftest.err >&5
13781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); } && {
13783 test -z "$ac_c_werror_flag" ||
13784 test ! -s conftest.err
13785 } && test -s conftest.$ac_objext; then
13786 HAVE_XIM=yes
13787
13788 cat >>confdefs.h <<\_ACEOF
13789 #define HAVE_XIM 1
13790 _ACEOF
13791
13792 else
13793 $as_echo "$as_me: failed program was:" >&5
13794 sed 's/^/| /' conftest.$ac_ext >&5
13795
13796 HAVE_XIM=no
13797 fi
13798
13799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13800
13801
13802 if test "${with_xim}" != "no"; then
13803
13804 cat >>confdefs.h <<\_ACEOF
13805 #define USE_XIM 1
13806 _ACEOF
13807
13808 fi
13809
13810
13811 if test "${HAVE_XIM}" != "no"; then
13812 late_CFLAGS=$CFLAGS
13813 if test "$GCC" = yes; then
13814 CFLAGS="$CFLAGS --pedantic-errors"
13815 fi
13816 cat >conftest.$ac_ext <<_ACEOF
13817 /* confdefs.h. */
13818 _ACEOF
13819 cat confdefs.h >>conftest.$ac_ext
13820 cat >>conftest.$ac_ext <<_ACEOF
13821 /* end confdefs.h. */
13822
13823 #include <X11/Xlib.h>
13824 #include <X11/Xresource.h>
13825 int
13826 main ()
13827 {
13828 Display *display;
13829 XrmDatabase db;
13830 char *res_name;
13831 char *res_class;
13832 XIMProc callback;
13833 XPointer *client_data;
13834 #ifndef __GNUC__
13835 /* If we're not using GCC, it's probably not XFree86, and this is
13836 probably right, but we can't use something like --pedantic-errors. */
13837 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13838 char*, XIMProc, XPointer*);
13839 #endif
13840 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13841 client_data);
13842 ;
13843 return 0;
13844 }
13845 _ACEOF
13846 rm -f conftest.$ac_objext
13847 if { (ac_try="$ac_compile"
13848 case "(($ac_try" in
13849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13850 *) ac_try_echo=$ac_try;;
13851 esac
13852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13853 $as_echo "$ac_try_echo") >&5
13854 (eval "$ac_compile") 2>conftest.er1
13855 ac_status=$?
13856 grep -v '^ *+' conftest.er1 >conftest.err
13857 rm -f conftest.er1
13858 cat conftest.err >&5
13859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); } && {
13861 test -z "$ac_c_werror_flag" ||
13862 test ! -s conftest.err
13863 } && test -s conftest.$ac_objext; then
13864 emacs_cv_arg6_star=yes
13865 else
13866 $as_echo "$as_me: failed program was:" >&5
13867 sed 's/^/| /' conftest.$ac_ext >&5
13868
13869
13870 fi
13871
13872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13873
13874 if test "$emacs_cv_arg6_star" = yes; then
13875 cat >>confdefs.h <<\_ACEOF
13876 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13877 _ACEOF
13878
13879 else
13880 cat >>confdefs.h <<\_ACEOF
13881 #define XRegisterIMInstantiateCallback_arg6 XPointer
13882 _ACEOF
13883
13884 fi
13885 CFLAGS=$late_CFLAGS
13886 fi
13887
13888 ### Start of font-backend (under any platform) section.
13889 # (nothing here yet -- this is a placeholder)
13890 ### End of font-backend (under any platform) section.
13891
13892 ### Start of font-backend (under X11) section.
13893 if test "${HAVE_X11}" = "yes"; then
13894
13895 succeeded=no
13896
13897 # Extract the first word of "pkg-config", so it can be a program name with args.
13898 set dummy pkg-config; ac_word=$2
13899 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13900 $as_echo_n "checking for $ac_word... " >&6; }
13901 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13902 $as_echo_n "(cached) " >&6
13903 else
13904 case $PKG_CONFIG in
13905 [\\/]* | ?:[\\/]*)
13906 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13907 ;;
13908 *)
13909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13910 for as_dir in $PATH
13911 do
13912 IFS=$as_save_IFS
13913 test -z "$as_dir" && as_dir=.
13914 for ac_exec_ext in '' $ac_executable_extensions; do
13915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13916 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13917 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13918 break 2
13919 fi
13920 done
13921 done
13922 IFS=$as_save_IFS
13923
13924 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13925 ;;
13926 esac
13927 fi
13928 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13929 if test -n "$PKG_CONFIG"; then
13930 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13931 $as_echo "$PKG_CONFIG" >&6; }
13932 else
13933 { $as_echo "$as_me:$LINENO: result: no" >&5
13934 $as_echo "no" >&6; }
13935 fi
13936
13937
13938
13939 if test "$PKG_CONFIG" = "no" ; then
13940 HAVE_FC=no
13941 else
13942 PKG_CONFIG_MIN_VERSION=0.9.0
13943 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13944 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13945 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13946
13947 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13948 { $as_echo "$as_me:$LINENO: result: yes" >&5
13949 $as_echo "yes" >&6; }
13950 succeeded=yes
13951
13952 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13953 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13954 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13955 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13956 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13957
13958 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13959 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13960 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13961 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13962 $as_echo "$FONTCONFIG_LIBS" >&6; }
13963 else
13964 { $as_echo "$as_me:$LINENO: result: no" >&5
13965 $as_echo "no" >&6; }
13966 FONTCONFIG_CFLAGS=""
13967 FONTCONFIG_LIBS=""
13968 ## If we have a custom action on failure, don't print errors, but
13969 ## do set a variable so people can do so.
13970 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13971
13972 fi
13973
13974
13975
13976 else
13977 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13978 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13979 fi
13980 fi
13981
13982 if test $succeeded = yes; then
13983 HAVE_FC=yes
13984 else
13985 HAVE_FC=no
13986 fi
13987
13988
13989 ## Use -lXft if available, unless `--with-xft=no'.
13990 HAVE_XFT=maybe
13991 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
13992 with_xft="no";
13993 fi
13994 if test "x${with_xft}" != "xno"; then
13995
13996
13997 succeeded=no
13998
13999 # Extract the first word of "pkg-config", so it can be a program name with args.
14000 set dummy pkg-config; ac_word=$2
14001 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14002 $as_echo_n "checking for $ac_word... " >&6; }
14003 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14004 $as_echo_n "(cached) " >&6
14005 else
14006 case $PKG_CONFIG in
14007 [\\/]* | ?:[\\/]*)
14008 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14009 ;;
14010 *)
14011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14012 for as_dir in $PATH
14013 do
14014 IFS=$as_save_IFS
14015 test -z "$as_dir" && as_dir=.
14016 for ac_exec_ext in '' $ac_executable_extensions; do
14017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14018 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14019 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14020 break 2
14021 fi
14022 done
14023 done
14024 IFS=$as_save_IFS
14025
14026 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14027 ;;
14028 esac
14029 fi
14030 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14031 if test -n "$PKG_CONFIG"; then
14032 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14033 $as_echo "$PKG_CONFIG" >&6; }
14034 else
14035 { $as_echo "$as_me:$LINENO: result: no" >&5
14036 $as_echo "no" >&6; }
14037 fi
14038
14039
14040
14041 if test "$PKG_CONFIG" = "no" ; then
14042 HAVE_XFT=no
14043 else
14044 PKG_CONFIG_MIN_VERSION=0.9.0
14045 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14046 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
14047 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
14048
14049 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
14050 { $as_echo "$as_me:$LINENO: result: yes" >&5
14051 $as_echo "yes" >&6; }
14052 succeeded=yes
14053
14054 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
14055 $as_echo_n "checking XFT_CFLAGS... " >&6; }
14056 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
14057 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
14058 $as_echo "$XFT_CFLAGS" >&6; }
14059
14060 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
14061 $as_echo_n "checking XFT_LIBS... " >&6; }
14062 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
14063 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
14064 $as_echo "$XFT_LIBS" >&6; }
14065 else
14066 { $as_echo "$as_me:$LINENO: result: no" >&5
14067 $as_echo "no" >&6; }
14068 XFT_CFLAGS=""
14069 XFT_LIBS=""
14070 ## If we have a custom action on failure, don't print errors, but
14071 ## do set a variable so people can do so.
14072 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
14073
14074 fi
14075
14076
14077
14078 else
14079 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14080 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14081 fi
14082 fi
14083
14084 if test $succeeded = yes; then
14085 :
14086 else
14087 HAVE_XFT=no
14088 fi
14089
14090 ## Because xftfont.c uses XRenderQueryExtension, we also
14091 ## need to link to -lXrender.
14092 HAVE_XRENDER=no
14093 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
14094 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
14095 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
14096 $as_echo_n "(cached) " >&6
14097 else
14098 ac_check_lib_save_LIBS=$LIBS
14099 LIBS="-lXrender $LIBS"
14100 cat >conftest.$ac_ext <<_ACEOF
14101 /* confdefs.h. */
14102 _ACEOF
14103 cat confdefs.h >>conftest.$ac_ext
14104 cat >>conftest.$ac_ext <<_ACEOF
14105 /* end confdefs.h. */
14106
14107 /* Override any GCC internal prototype to avoid an error.
14108 Use char because int might match the return type of a GCC
14109 builtin and then its argument prototype would still apply. */
14110 #ifdef __cplusplus
14111 extern "C"
14112 #endif
14113 char XRenderQueryExtension ();
14114 int
14115 main ()
14116 {
14117 return XRenderQueryExtension ();
14118 ;
14119 return 0;
14120 }
14121 _ACEOF
14122 rm -f conftest.$ac_objext conftest$ac_exeext
14123 if { (ac_try="$ac_link"
14124 case "(($ac_try" in
14125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14126 *) ac_try_echo=$ac_try;;
14127 esac
14128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14129 $as_echo "$ac_try_echo") >&5
14130 (eval "$ac_link") 2>conftest.er1
14131 ac_status=$?
14132 grep -v '^ *+' conftest.er1 >conftest.err
14133 rm -f conftest.er1
14134 cat conftest.err >&5
14135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); } && {
14137 test -z "$ac_c_werror_flag" ||
14138 test ! -s conftest.err
14139 } && test -s conftest$ac_exeext && {
14140 test "$cross_compiling" = yes ||
14141 $as_test_x conftest$ac_exeext
14142 }; then
14143 ac_cv_lib_Xrender_XRenderQueryExtension=yes
14144 else
14145 $as_echo "$as_me: failed program was:" >&5
14146 sed 's/^/| /' conftest.$ac_ext >&5
14147
14148 ac_cv_lib_Xrender_XRenderQueryExtension=no
14149 fi
14150
14151 rm -rf conftest.dSYM
14152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14153 conftest$ac_exeext conftest.$ac_ext
14154 LIBS=$ac_check_lib_save_LIBS
14155 fi
14156 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
14157 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
14158 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
14159 HAVE_XRENDER=yes
14160 fi
14161
14162 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
14163 OLD_CPPFLAGS="$CPPFLAGS"
14164 OLD_CFLAGS="$CFLAGS"
14165 OLD_LIBS="$LIBS"
14166 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
14167 CFLAGS="$CFLAGS $XFT_CFLAGS"
14168 XFT_LIBS="-lXrender $XFT_LIBS"
14169 LIBS="$XFT_LIBS $LIBS"
14170 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14171 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14172 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14173 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14174 $as_echo_n "(cached) " >&6
14175 fi
14176 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14177 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14178 else
14179 # Is the header compilable?
14180 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
14181 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
14182 cat >conftest.$ac_ext <<_ACEOF
14183 /* confdefs.h. */
14184 _ACEOF
14185 cat confdefs.h >>conftest.$ac_ext
14186 cat >>conftest.$ac_ext <<_ACEOF
14187 /* end confdefs.h. */
14188 $ac_includes_default
14189 #include <X11/Xft/Xft.h>
14190 _ACEOF
14191 rm -f conftest.$ac_objext
14192 if { (ac_try="$ac_compile"
14193 case "(($ac_try" in
14194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14195 *) ac_try_echo=$ac_try;;
14196 esac
14197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14198 $as_echo "$ac_try_echo") >&5
14199 (eval "$ac_compile") 2>conftest.er1
14200 ac_status=$?
14201 grep -v '^ *+' conftest.er1 >conftest.err
14202 rm -f conftest.er1
14203 cat conftest.err >&5
14204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); } && {
14206 test -z "$ac_c_werror_flag" ||
14207 test ! -s conftest.err
14208 } && test -s conftest.$ac_objext; then
14209 ac_header_compiler=yes
14210 else
14211 $as_echo "$as_me: failed program was:" >&5
14212 sed 's/^/| /' conftest.$ac_ext >&5
14213
14214 ac_header_compiler=no
14215 fi
14216
14217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14218 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14219 $as_echo "$ac_header_compiler" >&6; }
14220
14221 # Is the header present?
14222 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
14223 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
14224 cat >conftest.$ac_ext <<_ACEOF
14225 /* confdefs.h. */
14226 _ACEOF
14227 cat confdefs.h >>conftest.$ac_ext
14228 cat >>conftest.$ac_ext <<_ACEOF
14229 /* end confdefs.h. */
14230 #include <X11/Xft/Xft.h>
14231 _ACEOF
14232 if { (ac_try="$ac_cpp conftest.$ac_ext"
14233 case "(($ac_try" in
14234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14235 *) ac_try_echo=$ac_try;;
14236 esac
14237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14238 $as_echo "$ac_try_echo") >&5
14239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14240 ac_status=$?
14241 grep -v '^ *+' conftest.er1 >conftest.err
14242 rm -f conftest.er1
14243 cat conftest.err >&5
14244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); } >/dev/null && {
14246 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14247 test ! -s conftest.err
14248 }; then
14249 ac_header_preproc=yes
14250 else
14251 $as_echo "$as_me: failed program was:" >&5
14252 sed 's/^/| /' conftest.$ac_ext >&5
14253
14254 ac_header_preproc=no
14255 fi
14256
14257 rm -f conftest.err conftest.$ac_ext
14258 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14259 $as_echo "$ac_header_preproc" >&6; }
14260
14261 # So? What about this header?
14262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14263 yes:no: )
14264 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
14265 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14266 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
14267 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
14268 ac_header_preproc=yes
14269 ;;
14270 no:yes:* )
14271 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
14272 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
14273 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
14274 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
14275 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
14276 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
14277 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
14278 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
14279 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
14280 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
14281 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
14282 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
14283
14284 ;;
14285 esac
14286 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14287 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14288 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14289 $as_echo_n "(cached) " >&6
14290 else
14291 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
14292 fi
14293 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14294 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14295
14296 fi
14297 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
14298 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
14299 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
14300 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
14301 $as_echo_n "(cached) " >&6
14302 else
14303 ac_check_lib_save_LIBS=$LIBS
14304 LIBS="-lXft $XFT_LIBS $LIBS"
14305 cat >conftest.$ac_ext <<_ACEOF
14306 /* confdefs.h. */
14307 _ACEOF
14308 cat confdefs.h >>conftest.$ac_ext
14309 cat >>conftest.$ac_ext <<_ACEOF
14310 /* end confdefs.h. */
14311
14312 /* Override any GCC internal prototype to avoid an error.
14313 Use char because int might match the return type of a GCC
14314 builtin and then its argument prototype would still apply. */
14315 #ifdef __cplusplus
14316 extern "C"
14317 #endif
14318 char XftFontOpen ();
14319 int
14320 main ()
14321 {
14322 return XftFontOpen ();
14323 ;
14324 return 0;
14325 }
14326 _ACEOF
14327 rm -f conftest.$ac_objext conftest$ac_exeext
14328 if { (ac_try="$ac_link"
14329 case "(($ac_try" in
14330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14331 *) ac_try_echo=$ac_try;;
14332 esac
14333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14334 $as_echo "$ac_try_echo") >&5
14335 (eval "$ac_link") 2>conftest.er1
14336 ac_status=$?
14337 grep -v '^ *+' conftest.er1 >conftest.err
14338 rm -f conftest.er1
14339 cat conftest.err >&5
14340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); } && {
14342 test -z "$ac_c_werror_flag" ||
14343 test ! -s conftest.err
14344 } && test -s conftest$ac_exeext && {
14345 test "$cross_compiling" = yes ||
14346 $as_test_x conftest$ac_exeext
14347 }; then
14348 ac_cv_lib_Xft_XftFontOpen=yes
14349 else
14350 $as_echo "$as_me: failed program was:" >&5
14351 sed 's/^/| /' conftest.$ac_ext >&5
14352
14353 ac_cv_lib_Xft_XftFontOpen=no
14354 fi
14355
14356 rm -rf conftest.dSYM
14357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14358 conftest$ac_exeext conftest.$ac_ext
14359 LIBS=$ac_check_lib_save_LIBS
14360 fi
14361 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
14362 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14363 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
14364 HAVE_XFT=yes
14365 fi
14366
14367 fi
14368
14369
14370
14371 if test "${HAVE_XFT}" = "yes"; then
14372
14373 cat >>confdefs.h <<\_ACEOF
14374 #define HAVE_XFT 1
14375 _ACEOF
14376
14377
14378 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
14379 else
14380 CPPFLAGS="$OLD_CPPFLAGS"
14381 CFLAGS="$OLD_CFLAGS"
14382 LIBS="$OLD_LIBS"
14383 fi # "${HAVE_XFT}" = "yes"
14384 fi # "$HAVE_XFT" != no
14385 fi # "x${with_xft}" != "xno"
14386
14387 if test "$HAVE_XFT" != "yes"; then
14388 HAVE_XFT=no
14389 fi
14390
14391
14392 HAVE_FREETYPE=no
14393 ## We used to allow building with FreeType and without Xft.
14394 ## However, the ftx font backend driver is not in good shape.
14395 if test "${HAVE_XFT}" = "yes"; then
14396 HAVE_FREETYPE=yes
14397 FONTCONFIG_CFLAGS=
14398 FONTCONFIG_LIBS=
14399 fi
14400
14401 HAVE_LIBOTF=no
14402 if test "${HAVE_FREETYPE}" = "yes"; then
14403
14404 cat >>confdefs.h <<\_ACEOF
14405 #define HAVE_FREETYPE 1
14406 _ACEOF
14407
14408 if test "${with_libotf}" != "no"; then
14409
14410 succeeded=no
14411
14412 # Extract the first word of "pkg-config", so it can be a program name with args.
14413 set dummy pkg-config; ac_word=$2
14414 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14415 $as_echo_n "checking for $ac_word... " >&6; }
14416 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14417 $as_echo_n "(cached) " >&6
14418 else
14419 case $PKG_CONFIG in
14420 [\\/]* | ?:[\\/]*)
14421 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14422 ;;
14423 *)
14424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14425 for as_dir in $PATH
14426 do
14427 IFS=$as_save_IFS
14428 test -z "$as_dir" && as_dir=.
14429 for ac_exec_ext in '' $ac_executable_extensions; do
14430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14431 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14432 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14433 break 2
14434 fi
14435 done
14436 done
14437 IFS=$as_save_IFS
14438
14439 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14440 ;;
14441 esac
14442 fi
14443 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14444 if test -n "$PKG_CONFIG"; then
14445 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14446 $as_echo "$PKG_CONFIG" >&6; }
14447 else
14448 { $as_echo "$as_me:$LINENO: result: no" >&5
14449 $as_echo "no" >&6; }
14450 fi
14451
14452
14453
14454 if test "$PKG_CONFIG" = "no" ; then
14455 HAVE_LIBOTF=no
14456 else
14457 PKG_CONFIG_MIN_VERSION=0.9.0
14458 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14459 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
14460 $as_echo_n "checking for libotf... " >&6; }
14461
14462 if $PKG_CONFIG --exists "libotf" 2>&5; then
14463 { $as_echo "$as_me:$LINENO: result: yes" >&5
14464 $as_echo "yes" >&6; }
14465 succeeded=yes
14466
14467 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
14468 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14469 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14470 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
14471 $as_echo "$LIBOTF_CFLAGS" >&6; }
14472
14473 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
14474 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
14475 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14476 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
14477 $as_echo "$LIBOTF_LIBS" >&6; }
14478 else
14479 { $as_echo "$as_me:$LINENO: result: no" >&5
14480 $as_echo "no" >&6; }
14481 LIBOTF_CFLAGS=""
14482 LIBOTF_LIBS=""
14483 ## If we have a custom action on failure, don't print errors, but
14484 ## do set a variable so people can do so.
14485 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
14486
14487 fi
14488
14489
14490
14491 else
14492 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14493 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14494 fi
14495 fi
14496
14497 if test $succeeded = yes; then
14498 HAVE_LIBOTF=yes
14499 else
14500 HAVE_LIBOTF=no
14501 fi
14502
14503 if test "$HAVE_LIBOTF" = "yes"; then
14504
14505 cat >>confdefs.h <<\_ACEOF
14506 #define HAVE_LIBOTF 1
14507 _ACEOF
14508
14509 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14510 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14511 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14512 $as_echo_n "(cached) " >&6
14513 else
14514 ac_check_lib_save_LIBS=$LIBS
14515 LIBS="-lotf $LIBS"
14516 cat >conftest.$ac_ext <<_ACEOF
14517 /* confdefs.h. */
14518 _ACEOF
14519 cat confdefs.h >>conftest.$ac_ext
14520 cat >>conftest.$ac_ext <<_ACEOF
14521 /* end confdefs.h. */
14522
14523 /* Override any GCC internal prototype to avoid an error.
14524 Use char because int might match the return type of a GCC
14525 builtin and then its argument prototype would still apply. */
14526 #ifdef __cplusplus
14527 extern "C"
14528 #endif
14529 char OTF_get_variation_glyphs ();
14530 int
14531 main ()
14532 {
14533 return OTF_get_variation_glyphs ();
14534 ;
14535 return 0;
14536 }
14537 _ACEOF
14538 rm -f conftest.$ac_objext conftest$ac_exeext
14539 if { (ac_try="$ac_link"
14540 case "(($ac_try" in
14541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14542 *) ac_try_echo=$ac_try;;
14543 esac
14544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14545 $as_echo "$ac_try_echo") >&5
14546 (eval "$ac_link") 2>conftest.er1
14547 ac_status=$?
14548 grep -v '^ *+' conftest.er1 >conftest.err
14549 rm -f conftest.er1
14550 cat conftest.err >&5
14551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); } && {
14553 test -z "$ac_c_werror_flag" ||
14554 test ! -s conftest.err
14555 } && test -s conftest$ac_exeext && {
14556 test "$cross_compiling" = yes ||
14557 $as_test_x conftest$ac_exeext
14558 }; then
14559 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14560 else
14561 $as_echo "$as_me: failed program was:" >&5
14562 sed 's/^/| /' conftest.$ac_ext >&5
14563
14564 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14565 fi
14566
14567 rm -rf conftest.dSYM
14568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14569 conftest$ac_exeext conftest.$ac_ext
14570 LIBS=$ac_check_lib_save_LIBS
14571 fi
14572 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14573 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14574 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
14575 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14576 else
14577 HAVE_OTF_GET_VARIATION_GLYPHS=no
14578 fi
14579
14580 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14581
14582 cat >>confdefs.h <<\_ACEOF
14583 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14584 _ACEOF
14585
14586 fi
14587 fi
14588 fi
14589 fi
14590
14591 HAVE_M17N_FLT=no
14592 if test "${HAVE_LIBOTF}" = yes; then
14593 if test "${with_m17n_flt}" != "no"; then
14594
14595 succeeded=no
14596
14597 # Extract the first word of "pkg-config", so it can be a program name with args.
14598 set dummy pkg-config; ac_word=$2
14599 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14600 $as_echo_n "checking for $ac_word... " >&6; }
14601 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14602 $as_echo_n "(cached) " >&6
14603 else
14604 case $PKG_CONFIG in
14605 [\\/]* | ?:[\\/]*)
14606 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14607 ;;
14608 *)
14609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14610 for as_dir in $PATH
14611 do
14612 IFS=$as_save_IFS
14613 test -z "$as_dir" && as_dir=.
14614 for ac_exec_ext in '' $ac_executable_extensions; do
14615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14616 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14617 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14618 break 2
14619 fi
14620 done
14621 done
14622 IFS=$as_save_IFS
14623
14624 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14625 ;;
14626 esac
14627 fi
14628 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14629 if test -n "$PKG_CONFIG"; then
14630 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14631 $as_echo "$PKG_CONFIG" >&6; }
14632 else
14633 { $as_echo "$as_me:$LINENO: result: no" >&5
14634 $as_echo "no" >&6; }
14635 fi
14636
14637
14638
14639 if test "$PKG_CONFIG" = "no" ; then
14640 HAVE_M17N_FLT=no
14641 else
14642 PKG_CONFIG_MIN_VERSION=0.9.0
14643 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14644 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14645 $as_echo_n "checking for m17n-flt... " >&6; }
14646
14647 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14648 { $as_echo "$as_me:$LINENO: result: yes" >&5
14649 $as_echo "yes" >&6; }
14650 succeeded=yes
14651
14652 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14653 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14654 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
14655 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14656 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14657
14658 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14659 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14660 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
14661 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14662 $as_echo "$M17N_FLT_LIBS" >&6; }
14663 else
14664 { $as_echo "$as_me:$LINENO: result: no" >&5
14665 $as_echo "no" >&6; }
14666 M17N_FLT_CFLAGS=""
14667 M17N_FLT_LIBS=""
14668 ## If we have a custom action on failure, don't print errors, but
14669 ## do set a variable so people can do so.
14670 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14671
14672 fi
14673
14674
14675
14676 else
14677 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14678 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14679 fi
14680 fi
14681
14682 if test $succeeded = yes; then
14683 HAVE_M17N_FLT=yes
14684 else
14685 HAVE_M17N_FLT=no
14686 fi
14687
14688 if test "$HAVE_M17N_FLT" = "yes"; then
14689
14690 cat >>confdefs.h <<\_ACEOF
14691 #define HAVE_M17N_FLT 1
14692 _ACEOF
14693
14694 fi
14695 fi
14696 fi
14697 else
14698 HAVE_XFT=no
14699 HAVE_FREETYPE=no
14700 HAVE_LIBOTF=no
14701 HAVE_M17N_FLT=no
14702 fi
14703
14704 FONT_OBJ=xfont.o
14705 if test "$HAVE_XFT" = "yes"; then
14706 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14707 elif test "$HAVE_FREETYPE" = "yes"; then
14708 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
14709 fi
14710
14711
14712 ### End of font-backend (under X11) section.
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723 ### Use -lXpm if available, unless `--with-xpm=no'.
14724 HAVE_XPM=no
14725 LIBXPM=
14726 if test "${HAVE_X11}" = "yes"; then
14727 if test "${with_xpm}" != "no"; then
14728 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14729 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14730 $as_echo_n "checking for X11/xpm.h... " >&6; }
14731 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14732 $as_echo_n "(cached) " >&6
14733 fi
14734 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14735 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14736 else
14737 # Is the header compilable?
14738 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14739 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14740 cat >conftest.$ac_ext <<_ACEOF
14741 /* confdefs.h. */
14742 _ACEOF
14743 cat confdefs.h >>conftest.$ac_ext
14744 cat >>conftest.$ac_ext <<_ACEOF
14745 /* end confdefs.h. */
14746 $ac_includes_default
14747 #include <X11/xpm.h>
14748 _ACEOF
14749 rm -f conftest.$ac_objext
14750 if { (ac_try="$ac_compile"
14751 case "(($ac_try" in
14752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753 *) ac_try_echo=$ac_try;;
14754 esac
14755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14756 $as_echo "$ac_try_echo") >&5
14757 (eval "$ac_compile") 2>conftest.er1
14758 ac_status=$?
14759 grep -v '^ *+' conftest.er1 >conftest.err
14760 rm -f conftest.er1
14761 cat conftest.err >&5
14762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); } && {
14764 test -z "$ac_c_werror_flag" ||
14765 test ! -s conftest.err
14766 } && test -s conftest.$ac_objext; then
14767 ac_header_compiler=yes
14768 else
14769 $as_echo "$as_me: failed program was:" >&5
14770 sed 's/^/| /' conftest.$ac_ext >&5
14771
14772 ac_header_compiler=no
14773 fi
14774
14775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14776 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14777 $as_echo "$ac_header_compiler" >&6; }
14778
14779 # Is the header present?
14780 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14781 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14782 cat >conftest.$ac_ext <<_ACEOF
14783 /* confdefs.h. */
14784 _ACEOF
14785 cat confdefs.h >>conftest.$ac_ext
14786 cat >>conftest.$ac_ext <<_ACEOF
14787 /* end confdefs.h. */
14788 #include <X11/xpm.h>
14789 _ACEOF
14790 if { (ac_try="$ac_cpp conftest.$ac_ext"
14791 case "(($ac_try" in
14792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14793 *) ac_try_echo=$ac_try;;
14794 esac
14795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14796 $as_echo "$ac_try_echo") >&5
14797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14798 ac_status=$?
14799 grep -v '^ *+' conftest.er1 >conftest.err
14800 rm -f conftest.er1
14801 cat conftest.err >&5
14802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); } >/dev/null && {
14804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14805 test ! -s conftest.err
14806 }; then
14807 ac_header_preproc=yes
14808 else
14809 $as_echo "$as_me: failed program was:" >&5
14810 sed 's/^/| /' conftest.$ac_ext >&5
14811
14812 ac_header_preproc=no
14813 fi
14814
14815 rm -f conftest.err conftest.$ac_ext
14816 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14817 $as_echo "$ac_header_preproc" >&6; }
14818
14819 # So? What about this header?
14820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14821 yes:no: )
14822 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14823 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14824 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14825 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14826 ac_header_preproc=yes
14827 ;;
14828 no:yes:* )
14829 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14830 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14831 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14832 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14833 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14834 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14835 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14836 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14837 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14838 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14839 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14840 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14841
14842 ;;
14843 esac
14844 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14845 $as_echo_n "checking for X11/xpm.h... " >&6; }
14846 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14847 $as_echo_n "(cached) " >&6
14848 else
14849 ac_cv_header_X11_xpm_h=$ac_header_preproc
14850 fi
14851 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14852 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14853
14854 fi
14855 if test $ac_cv_header_X11_xpm_h = yes; then
14856 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14857 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14858 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14859 $as_echo_n "(cached) " >&6
14860 else
14861 ac_check_lib_save_LIBS=$LIBS
14862 LIBS="-lXpm -lX11 $LIBS"
14863 cat >conftest.$ac_ext <<_ACEOF
14864 /* confdefs.h. */
14865 _ACEOF
14866 cat confdefs.h >>conftest.$ac_ext
14867 cat >>conftest.$ac_ext <<_ACEOF
14868 /* end confdefs.h. */
14869
14870 /* Override any GCC internal prototype to avoid an error.
14871 Use char because int might match the return type of a GCC
14872 builtin and then its argument prototype would still apply. */
14873 #ifdef __cplusplus
14874 extern "C"
14875 #endif
14876 char XpmReadFileToPixmap ();
14877 int
14878 main ()
14879 {
14880 return XpmReadFileToPixmap ();
14881 ;
14882 return 0;
14883 }
14884 _ACEOF
14885 rm -f conftest.$ac_objext conftest$ac_exeext
14886 if { (ac_try="$ac_link"
14887 case "(($ac_try" in
14888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14889 *) ac_try_echo=$ac_try;;
14890 esac
14891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14892 $as_echo "$ac_try_echo") >&5
14893 (eval "$ac_link") 2>conftest.er1
14894 ac_status=$?
14895 grep -v '^ *+' conftest.er1 >conftest.err
14896 rm -f conftest.er1
14897 cat conftest.err >&5
14898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899 (exit $ac_status); } && {
14900 test -z "$ac_c_werror_flag" ||
14901 test ! -s conftest.err
14902 } && test -s conftest$ac_exeext && {
14903 test "$cross_compiling" = yes ||
14904 $as_test_x conftest$ac_exeext
14905 }; then
14906 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14907 else
14908 $as_echo "$as_me: failed program was:" >&5
14909 sed 's/^/| /' conftest.$ac_ext >&5
14910
14911 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14912 fi
14913
14914 rm -rf conftest.dSYM
14915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14916 conftest$ac_exeext conftest.$ac_ext
14917 LIBS=$ac_check_lib_save_LIBS
14918 fi
14919 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14920 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14921 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14922 HAVE_XPM=yes
14923 fi
14924
14925 fi
14926
14927
14928 if test "${HAVE_XPM}" = "yes"; then
14929 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14930 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14931 cat >conftest.$ac_ext <<_ACEOF
14932 /* confdefs.h. */
14933 _ACEOF
14934 cat confdefs.h >>conftest.$ac_ext
14935 cat >>conftest.$ac_ext <<_ACEOF
14936 /* end confdefs.h. */
14937 #include "X11/xpm.h"
14938 #ifndef XpmReturnAllocPixels
14939 no_return_alloc_pixels
14940 #endif
14941
14942 _ACEOF
14943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14944 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14945 HAVE_XPM=no
14946 else
14947 HAVE_XPM=yes
14948 fi
14949 rm -f conftest*
14950
14951
14952 if test "${HAVE_XPM}" = "yes"; then
14953 { $as_echo "$as_me:$LINENO: result: yes" >&5
14954 $as_echo "yes" >&6; }
14955 else
14956 { $as_echo "$as_me:$LINENO: result: no" >&5
14957 $as_echo "no" >&6; }
14958 fi
14959 fi
14960 fi
14961
14962 if test "${HAVE_XPM}" = "yes"; then
14963
14964 cat >>confdefs.h <<\_ACEOF
14965 #define HAVE_XPM 1
14966 _ACEOF
14967
14968 LIBXPM=-lXpm
14969 fi
14970 fi
14971
14972
14973 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14974 HAVE_JPEG=no
14975 LIBJPEG=
14976 if test "${HAVE_X11}" = "yes"; then
14977 if test "${with_jpeg}" != "no"; then
14978 if test "${ac_cv_header_jerror_h+set}" = set; then
14979 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14980 $as_echo_n "checking for jerror.h... " >&6; }
14981 if test "${ac_cv_header_jerror_h+set}" = set; then
14982 $as_echo_n "(cached) " >&6
14983 fi
14984 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14985 $as_echo "$ac_cv_header_jerror_h" >&6; }
14986 else
14987 # Is the header compilable?
14988 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14989 $as_echo_n "checking jerror.h usability... " >&6; }
14990 cat >conftest.$ac_ext <<_ACEOF
14991 /* confdefs.h. */
14992 _ACEOF
14993 cat confdefs.h >>conftest.$ac_ext
14994 cat >>conftest.$ac_ext <<_ACEOF
14995 /* end confdefs.h. */
14996 $ac_includes_default
14997 #include <jerror.h>
14998 _ACEOF
14999 rm -f conftest.$ac_objext
15000 if { (ac_try="$ac_compile"
15001 case "(($ac_try" in
15002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15003 *) ac_try_echo=$ac_try;;
15004 esac
15005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15006 $as_echo "$ac_try_echo") >&5
15007 (eval "$ac_compile") 2>conftest.er1
15008 ac_status=$?
15009 grep -v '^ *+' conftest.er1 >conftest.err
15010 rm -f conftest.er1
15011 cat conftest.err >&5
15012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013 (exit $ac_status); } && {
15014 test -z "$ac_c_werror_flag" ||
15015 test ! -s conftest.err
15016 } && test -s conftest.$ac_objext; then
15017 ac_header_compiler=yes
15018 else
15019 $as_echo "$as_me: failed program was:" >&5
15020 sed 's/^/| /' conftest.$ac_ext >&5
15021
15022 ac_header_compiler=no
15023 fi
15024
15025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15026 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15027 $as_echo "$ac_header_compiler" >&6; }
15028
15029 # Is the header present?
15030 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
15031 $as_echo_n "checking jerror.h presence... " >&6; }
15032 cat >conftest.$ac_ext <<_ACEOF
15033 /* confdefs.h. */
15034 _ACEOF
15035 cat confdefs.h >>conftest.$ac_ext
15036 cat >>conftest.$ac_ext <<_ACEOF
15037 /* end confdefs.h. */
15038 #include <jerror.h>
15039 _ACEOF
15040 if { (ac_try="$ac_cpp conftest.$ac_ext"
15041 case "(($ac_try" in
15042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15043 *) ac_try_echo=$ac_try;;
15044 esac
15045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15046 $as_echo "$ac_try_echo") >&5
15047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15048 ac_status=$?
15049 grep -v '^ *+' conftest.er1 >conftest.err
15050 rm -f conftest.er1
15051 cat conftest.err >&5
15052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); } >/dev/null && {
15054 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15055 test ! -s conftest.err
15056 }; then
15057 ac_header_preproc=yes
15058 else
15059 $as_echo "$as_me: failed program was:" >&5
15060 sed 's/^/| /' conftest.$ac_ext >&5
15061
15062 ac_header_preproc=no
15063 fi
15064
15065 rm -f conftest.err conftest.$ac_ext
15066 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15067 $as_echo "$ac_header_preproc" >&6; }
15068
15069 # So? What about this header?
15070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15071 yes:no: )
15072 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
15073 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15074 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
15075 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
15076 ac_header_preproc=yes
15077 ;;
15078 no:yes:* )
15079 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
15080 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
15081 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
15082 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
15083 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
15084 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
15085 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
15086 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
15087 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
15088 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
15089 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
15090 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
15091
15092 ;;
15093 esac
15094 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
15095 $as_echo_n "checking for jerror.h... " >&6; }
15096 if test "${ac_cv_header_jerror_h+set}" = set; then
15097 $as_echo_n "(cached) " >&6
15098 else
15099 ac_cv_header_jerror_h=$ac_header_preproc
15100 fi
15101 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
15102 $as_echo "$ac_cv_header_jerror_h" >&6; }
15103
15104 fi
15105 if test $ac_cv_header_jerror_h = yes; then
15106 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
15107 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
15108 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
15109 $as_echo_n "(cached) " >&6
15110 else
15111 ac_check_lib_save_LIBS=$LIBS
15112 LIBS="-ljpeg $LIBS"
15113 cat >conftest.$ac_ext <<_ACEOF
15114 /* confdefs.h. */
15115 _ACEOF
15116 cat confdefs.h >>conftest.$ac_ext
15117 cat >>conftest.$ac_ext <<_ACEOF
15118 /* end confdefs.h. */
15119
15120 /* Override any GCC internal prototype to avoid an error.
15121 Use char because int might match the return type of a GCC
15122 builtin and then its argument prototype would still apply. */
15123 #ifdef __cplusplus
15124 extern "C"
15125 #endif
15126 char jpeg_destroy_compress ();
15127 int
15128 main ()
15129 {
15130 return jpeg_destroy_compress ();
15131 ;
15132 return 0;
15133 }
15134 _ACEOF
15135 rm -f conftest.$ac_objext conftest$ac_exeext
15136 if { (ac_try="$ac_link"
15137 case "(($ac_try" in
15138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15139 *) ac_try_echo=$ac_try;;
15140 esac
15141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15142 $as_echo "$ac_try_echo") >&5
15143 (eval "$ac_link") 2>conftest.er1
15144 ac_status=$?
15145 grep -v '^ *+' conftest.er1 >conftest.err
15146 rm -f conftest.er1
15147 cat conftest.err >&5
15148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); } && {
15150 test -z "$ac_c_werror_flag" ||
15151 test ! -s conftest.err
15152 } && test -s conftest$ac_exeext && {
15153 test "$cross_compiling" = yes ||
15154 $as_test_x conftest$ac_exeext
15155 }; then
15156 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
15157 else
15158 $as_echo "$as_me: failed program was:" >&5
15159 sed 's/^/| /' conftest.$ac_ext >&5
15160
15161 ac_cv_lib_jpeg_jpeg_destroy_compress=no
15162 fi
15163
15164 rm -rf conftest.dSYM
15165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15166 conftest$ac_exeext conftest.$ac_ext
15167 LIBS=$ac_check_lib_save_LIBS
15168 fi
15169 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
15170 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
15171 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
15172 HAVE_JPEG=yes
15173 fi
15174
15175 fi
15176
15177
15178 fi
15179
15180
15181 if test "${HAVE_JPEG}" = "yes"; then
15182 cat >>confdefs.h <<\_ACEOF
15183 #define HAVE_JPEG 1
15184 _ACEOF
15185
15186 cat >conftest.$ac_ext <<_ACEOF
15187 /* confdefs.h. */
15188 _ACEOF
15189 cat confdefs.h >>conftest.$ac_ext
15190 cat >>conftest.$ac_ext <<_ACEOF
15191 /* end confdefs.h. */
15192 #include <jpeglib.h>
15193 version=JPEG_LIB_VERSION
15194
15195 _ACEOF
15196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15197 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
15198 cat >>confdefs.h <<\_ACEOF
15199 #define HAVE_JPEG 1
15200 _ACEOF
15201
15202 else
15203 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
15204 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
15205 HAVE_JPEG=no
15206 fi
15207 rm -f conftest*
15208
15209 fi
15210 if test "${HAVE_JPEG}" = "yes"; then
15211 LIBJPEG=-ljpeg
15212 fi
15213 fi
15214
15215
15216 ### Use -lpng if available, unless `--with-png=no'.
15217 HAVE_PNG=no
15218 LIBPNG=
15219 if test "${HAVE_X11}" = "yes"; then
15220 if test "${with_png}" != "no"; then
15221 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
15222 # in /usr/include/libpng.
15223
15224
15225 for ac_header in png.h libpng/png.h
15226 do
15227 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15229 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15230 $as_echo_n "checking for $ac_header... " >&6; }
15231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15232 $as_echo_n "(cached) " >&6
15233 fi
15234 ac_res=`eval 'as_val=${'$as_ac_Header'}
15235 $as_echo "$as_val"'`
15236 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15237 $as_echo "$ac_res" >&6; }
15238 else
15239 # Is the header compilable?
15240 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15241 $as_echo_n "checking $ac_header usability... " >&6; }
15242 cat >conftest.$ac_ext <<_ACEOF
15243 /* confdefs.h. */
15244 _ACEOF
15245 cat confdefs.h >>conftest.$ac_ext
15246 cat >>conftest.$ac_ext <<_ACEOF
15247 /* end confdefs.h. */
15248 $ac_includes_default
15249 #include <$ac_header>
15250 _ACEOF
15251 rm -f conftest.$ac_objext
15252 if { (ac_try="$ac_compile"
15253 case "(($ac_try" in
15254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15255 *) ac_try_echo=$ac_try;;
15256 esac
15257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15258 $as_echo "$ac_try_echo") >&5
15259 (eval "$ac_compile") 2>conftest.er1
15260 ac_status=$?
15261 grep -v '^ *+' conftest.er1 >conftest.err
15262 rm -f conftest.er1
15263 cat conftest.err >&5
15264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); } && {
15266 test -z "$ac_c_werror_flag" ||
15267 test ! -s conftest.err
15268 } && test -s conftest.$ac_objext; then
15269 ac_header_compiler=yes
15270 else
15271 $as_echo "$as_me: failed program was:" >&5
15272 sed 's/^/| /' conftest.$ac_ext >&5
15273
15274 ac_header_compiler=no
15275 fi
15276
15277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15278 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15279 $as_echo "$ac_header_compiler" >&6; }
15280
15281 # Is the header present?
15282 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15283 $as_echo_n "checking $ac_header presence... " >&6; }
15284 cat >conftest.$ac_ext <<_ACEOF
15285 /* confdefs.h. */
15286 _ACEOF
15287 cat confdefs.h >>conftest.$ac_ext
15288 cat >>conftest.$ac_ext <<_ACEOF
15289 /* end confdefs.h. */
15290 #include <$ac_header>
15291 _ACEOF
15292 if { (ac_try="$ac_cpp conftest.$ac_ext"
15293 case "(($ac_try" in
15294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15295 *) ac_try_echo=$ac_try;;
15296 esac
15297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15298 $as_echo "$ac_try_echo") >&5
15299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15300 ac_status=$?
15301 grep -v '^ *+' conftest.er1 >conftest.err
15302 rm -f conftest.er1
15303 cat conftest.err >&5
15304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); } >/dev/null && {
15306 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15307 test ! -s conftest.err
15308 }; then
15309 ac_header_preproc=yes
15310 else
15311 $as_echo "$as_me: failed program was:" >&5
15312 sed 's/^/| /' conftest.$ac_ext >&5
15313
15314 ac_header_preproc=no
15315 fi
15316
15317 rm -f conftest.err conftest.$ac_ext
15318 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15319 $as_echo "$ac_header_preproc" >&6; }
15320
15321 # So? What about this header?
15322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15323 yes:no: )
15324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15325 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15327 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15328 ac_header_preproc=yes
15329 ;;
15330 no:yes:* )
15331 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15332 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15333 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15334 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15335 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15336 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15338 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15339 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15340 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15342 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15343
15344 ;;
15345 esac
15346 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15347 $as_echo_n "checking for $ac_header... " >&6; }
15348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15349 $as_echo_n "(cached) " >&6
15350 else
15351 eval "$as_ac_Header=\$ac_header_preproc"
15352 fi
15353 ac_res=`eval 'as_val=${'$as_ac_Header'}
15354 $as_echo "$as_val"'`
15355 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15356 $as_echo "$ac_res" >&6; }
15357
15358 fi
15359 if test `eval 'as_val=${'$as_ac_Header'}
15360 $as_echo "$as_val"'` = yes; then
15361 cat >>confdefs.h <<_ACEOF
15362 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15363 _ACEOF
15364
15365 fi
15366
15367 done
15368
15369 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
15370 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
15371 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
15372 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
15373 $as_echo_n "(cached) " >&6
15374 else
15375 ac_check_lib_save_LIBS=$LIBS
15376 LIBS="-lpng -lz -lm $LIBS"
15377 cat >conftest.$ac_ext <<_ACEOF
15378 /* confdefs.h. */
15379 _ACEOF
15380 cat confdefs.h >>conftest.$ac_ext
15381 cat >>conftest.$ac_ext <<_ACEOF
15382 /* end confdefs.h. */
15383
15384 /* Override any GCC internal prototype to avoid an error.
15385 Use char because int might match the return type of a GCC
15386 builtin and then its argument prototype would still apply. */
15387 #ifdef __cplusplus
15388 extern "C"
15389 #endif
15390 char png_get_channels ();
15391 int
15392 main ()
15393 {
15394 return png_get_channels ();
15395 ;
15396 return 0;
15397 }
15398 _ACEOF
15399 rm -f conftest.$ac_objext conftest$ac_exeext
15400 if { (ac_try="$ac_link"
15401 case "(($ac_try" in
15402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15403 *) ac_try_echo=$ac_try;;
15404 esac
15405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15406 $as_echo "$ac_try_echo") >&5
15407 (eval "$ac_link") 2>conftest.er1
15408 ac_status=$?
15409 grep -v '^ *+' conftest.er1 >conftest.err
15410 rm -f conftest.er1
15411 cat conftest.err >&5
15412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); } && {
15414 test -z "$ac_c_werror_flag" ||
15415 test ! -s conftest.err
15416 } && test -s conftest$ac_exeext && {
15417 test "$cross_compiling" = yes ||
15418 $as_test_x conftest$ac_exeext
15419 }; then
15420 ac_cv_lib_png_png_get_channels=yes
15421 else
15422 $as_echo "$as_me: failed program was:" >&5
15423 sed 's/^/| /' conftest.$ac_ext >&5
15424
15425 ac_cv_lib_png_png_get_channels=no
15426 fi
15427
15428 rm -rf conftest.dSYM
15429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15430 conftest$ac_exeext conftest.$ac_ext
15431 LIBS=$ac_check_lib_save_LIBS
15432 fi
15433 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
15434 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
15435 if test $ac_cv_lib_png_png_get_channels = yes; then
15436 HAVE_PNG=yes
15437 fi
15438
15439 fi
15440 fi
15441
15442 if test "${HAVE_PNG}" = "yes"; then
15443
15444 cat >>confdefs.h <<\_ACEOF
15445 #define HAVE_PNG 1
15446 _ACEOF
15447
15448 LIBPNG="-lpng -lz -lm"
15449 fi
15450 fi
15451
15452
15453 ### Use -ltiff if available, unless `--with-tiff=no'.
15454 HAVE_TIFF=no
15455 LIBTIFF=
15456 if test "${HAVE_X11}" = "yes"; then
15457 if test "${with_tiff}" != "no"; then
15458 if test "${ac_cv_header_tiffio_h+set}" = set; then
15459 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15460 $as_echo_n "checking for tiffio.h... " >&6; }
15461 if test "${ac_cv_header_tiffio_h+set}" = set; then
15462 $as_echo_n "(cached) " >&6
15463 fi
15464 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15465 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15466 else
15467 # Is the header compilable?
15468 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15469 $as_echo_n "checking tiffio.h usability... " >&6; }
15470 cat >conftest.$ac_ext <<_ACEOF
15471 /* confdefs.h. */
15472 _ACEOF
15473 cat confdefs.h >>conftest.$ac_ext
15474 cat >>conftest.$ac_ext <<_ACEOF
15475 /* end confdefs.h. */
15476 $ac_includes_default
15477 #include <tiffio.h>
15478 _ACEOF
15479 rm -f conftest.$ac_objext
15480 if { (ac_try="$ac_compile"
15481 case "(($ac_try" in
15482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15483 *) ac_try_echo=$ac_try;;
15484 esac
15485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15486 $as_echo "$ac_try_echo") >&5
15487 (eval "$ac_compile") 2>conftest.er1
15488 ac_status=$?
15489 grep -v '^ *+' conftest.er1 >conftest.err
15490 rm -f conftest.er1
15491 cat conftest.err >&5
15492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); } && {
15494 test -z "$ac_c_werror_flag" ||
15495 test ! -s conftest.err
15496 } && test -s conftest.$ac_objext; then
15497 ac_header_compiler=yes
15498 else
15499 $as_echo "$as_me: failed program was:" >&5
15500 sed 's/^/| /' conftest.$ac_ext >&5
15501
15502 ac_header_compiler=no
15503 fi
15504
15505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15506 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15507 $as_echo "$ac_header_compiler" >&6; }
15508
15509 # Is the header present?
15510 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15511 $as_echo_n "checking tiffio.h presence... " >&6; }
15512 cat >conftest.$ac_ext <<_ACEOF
15513 /* confdefs.h. */
15514 _ACEOF
15515 cat confdefs.h >>conftest.$ac_ext
15516 cat >>conftest.$ac_ext <<_ACEOF
15517 /* end confdefs.h. */
15518 #include <tiffio.h>
15519 _ACEOF
15520 if { (ac_try="$ac_cpp conftest.$ac_ext"
15521 case "(($ac_try" in
15522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15523 *) ac_try_echo=$ac_try;;
15524 esac
15525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15526 $as_echo "$ac_try_echo") >&5
15527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15528 ac_status=$?
15529 grep -v '^ *+' conftest.er1 >conftest.err
15530 rm -f conftest.er1
15531 cat conftest.err >&5
15532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); } >/dev/null && {
15534 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15535 test ! -s conftest.err
15536 }; then
15537 ac_header_preproc=yes
15538 else
15539 $as_echo "$as_me: failed program was:" >&5
15540 sed 's/^/| /' conftest.$ac_ext >&5
15541
15542 ac_header_preproc=no
15543 fi
15544
15545 rm -f conftest.err conftest.$ac_ext
15546 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15547 $as_echo "$ac_header_preproc" >&6; }
15548
15549 # So? What about this header?
15550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15551 yes:no: )
15552 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15553 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15554 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15555 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15556 ac_header_preproc=yes
15557 ;;
15558 no:yes:* )
15559 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15560 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15561 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15562 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15563 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15564 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15565 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15566 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15567 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15568 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15569 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15570 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15571
15572 ;;
15573 esac
15574 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15575 $as_echo_n "checking for tiffio.h... " >&6; }
15576 if test "${ac_cv_header_tiffio_h+set}" = set; then
15577 $as_echo_n "(cached) " >&6
15578 else
15579 ac_cv_header_tiffio_h=$ac_header_preproc
15580 fi
15581 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15582 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15583
15584 fi
15585 if test $ac_cv_header_tiffio_h = yes; then
15586 tifflibs="-lz -lm"
15587 # At least one tiff package requires the jpeg library.
15588 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
15589 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15590 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15591 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15592 $as_echo_n "(cached) " >&6
15593 else
15594 ac_check_lib_save_LIBS=$LIBS
15595 LIBS="-ltiff $tifflibs $LIBS"
15596 cat >conftest.$ac_ext <<_ACEOF
15597 /* confdefs.h. */
15598 _ACEOF
15599 cat confdefs.h >>conftest.$ac_ext
15600 cat >>conftest.$ac_ext <<_ACEOF
15601 /* end confdefs.h. */
15602
15603 /* Override any GCC internal prototype to avoid an error.
15604 Use char because int might match the return type of a GCC
15605 builtin and then its argument prototype would still apply. */
15606 #ifdef __cplusplus
15607 extern "C"
15608 #endif
15609 char TIFFGetVersion ();
15610 int
15611 main ()
15612 {
15613 return TIFFGetVersion ();
15614 ;
15615 return 0;
15616 }
15617 _ACEOF
15618 rm -f conftest.$ac_objext conftest$ac_exeext
15619 if { (ac_try="$ac_link"
15620 case "(($ac_try" in
15621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15622 *) ac_try_echo=$ac_try;;
15623 esac
15624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15625 $as_echo "$ac_try_echo") >&5
15626 (eval "$ac_link") 2>conftest.er1
15627 ac_status=$?
15628 grep -v '^ *+' conftest.er1 >conftest.err
15629 rm -f conftest.er1
15630 cat conftest.err >&5
15631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); } && {
15633 test -z "$ac_c_werror_flag" ||
15634 test ! -s conftest.err
15635 } && test -s conftest$ac_exeext && {
15636 test "$cross_compiling" = yes ||
15637 $as_test_x conftest$ac_exeext
15638 }; then
15639 ac_cv_lib_tiff_TIFFGetVersion=yes
15640 else
15641 $as_echo "$as_me: failed program was:" >&5
15642 sed 's/^/| /' conftest.$ac_ext >&5
15643
15644 ac_cv_lib_tiff_TIFFGetVersion=no
15645 fi
15646
15647 rm -rf conftest.dSYM
15648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15649 conftest$ac_exeext conftest.$ac_ext
15650 LIBS=$ac_check_lib_save_LIBS
15651 fi
15652 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15653 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15654 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
15655 HAVE_TIFF=yes
15656 fi
15657
15658 fi
15659
15660
15661 fi
15662
15663 if test "${HAVE_TIFF}" = "yes"; then
15664
15665 cat >>confdefs.h <<\_ACEOF
15666 #define HAVE_TIFF 1
15667 _ACEOF
15668
15669 LIBTIFF=-ltiff
15670 fi
15671 fi
15672
15673
15674 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
15675 HAVE_GIF=no
15676 LIBGIF=
15677 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15678 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15679 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15680 $as_echo_n "checking for gif_lib.h... " >&6; }
15681 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15682 $as_echo_n "(cached) " >&6
15683 fi
15684 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15685 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15686 else
15687 # Is the header compilable?
15688 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15689 $as_echo_n "checking gif_lib.h usability... " >&6; }
15690 cat >conftest.$ac_ext <<_ACEOF
15691 /* confdefs.h. */
15692 _ACEOF
15693 cat confdefs.h >>conftest.$ac_ext
15694 cat >>conftest.$ac_ext <<_ACEOF
15695 /* end confdefs.h. */
15696 $ac_includes_default
15697 #include <gif_lib.h>
15698 _ACEOF
15699 rm -f conftest.$ac_objext
15700 if { (ac_try="$ac_compile"
15701 case "(($ac_try" in
15702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703 *) ac_try_echo=$ac_try;;
15704 esac
15705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15706 $as_echo "$ac_try_echo") >&5
15707 (eval "$ac_compile") 2>conftest.er1
15708 ac_status=$?
15709 grep -v '^ *+' conftest.er1 >conftest.err
15710 rm -f conftest.er1
15711 cat conftest.err >&5
15712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713 (exit $ac_status); } && {
15714 test -z "$ac_c_werror_flag" ||
15715 test ! -s conftest.err
15716 } && test -s conftest.$ac_objext; then
15717 ac_header_compiler=yes
15718 else
15719 $as_echo "$as_me: failed program was:" >&5
15720 sed 's/^/| /' conftest.$ac_ext >&5
15721
15722 ac_header_compiler=no
15723 fi
15724
15725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15726 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15727 $as_echo "$ac_header_compiler" >&6; }
15728
15729 # Is the header present?
15730 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15731 $as_echo_n "checking gif_lib.h presence... " >&6; }
15732 cat >conftest.$ac_ext <<_ACEOF
15733 /* confdefs.h. */
15734 _ACEOF
15735 cat confdefs.h >>conftest.$ac_ext
15736 cat >>conftest.$ac_ext <<_ACEOF
15737 /* end confdefs.h. */
15738 #include <gif_lib.h>
15739 _ACEOF
15740 if { (ac_try="$ac_cpp conftest.$ac_ext"
15741 case "(($ac_try" in
15742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15743 *) ac_try_echo=$ac_try;;
15744 esac
15745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15746 $as_echo "$ac_try_echo") >&5
15747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15748 ac_status=$?
15749 grep -v '^ *+' conftest.er1 >conftest.err
15750 rm -f conftest.er1
15751 cat conftest.err >&5
15752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); } >/dev/null && {
15754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15755 test ! -s conftest.err
15756 }; then
15757 ac_header_preproc=yes
15758 else
15759 $as_echo "$as_me: failed program was:" >&5
15760 sed 's/^/| /' conftest.$ac_ext >&5
15761
15762 ac_header_preproc=no
15763 fi
15764
15765 rm -f conftest.err conftest.$ac_ext
15766 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15767 $as_echo "$ac_header_preproc" >&6; }
15768
15769 # So? What about this header?
15770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15771 yes:no: )
15772 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15773 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15774 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
15775 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
15776 ac_header_preproc=yes
15777 ;;
15778 no:yes:* )
15779 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15780 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15781 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15782 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15783 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15784 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15785 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15786 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15787 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15788 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15789 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15790 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15791
15792 ;;
15793 esac
15794 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15795 $as_echo_n "checking for gif_lib.h... " >&6; }
15796 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15797 $as_echo_n "(cached) " >&6
15798 else
15799 ac_cv_header_gif_lib_h=$ac_header_preproc
15800 fi
15801 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15802 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15803
15804 fi
15805 if test $ac_cv_header_gif_lib_h = yes; then
15806 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15807 # Earlier versions can crash Emacs.
15808 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15809 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15810 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15811 $as_echo_n "(cached) " >&6
15812 else
15813 ac_check_lib_save_LIBS=$LIBS
15814 LIBS="-lgif $LIBS"
15815 cat >conftest.$ac_ext <<_ACEOF
15816 /* confdefs.h. */
15817 _ACEOF
15818 cat confdefs.h >>conftest.$ac_ext
15819 cat >>conftest.$ac_ext <<_ACEOF
15820 /* end confdefs.h. */
15821
15822 /* Override any GCC internal prototype to avoid an error.
15823 Use char because int might match the return type of a GCC
15824 builtin and then its argument prototype would still apply. */
15825 #ifdef __cplusplus
15826 extern "C"
15827 #endif
15828 char EGifPutExtensionLast ();
15829 int
15830 main ()
15831 {
15832 return EGifPutExtensionLast ();
15833 ;
15834 return 0;
15835 }
15836 _ACEOF
15837 rm -f conftest.$ac_objext conftest$ac_exeext
15838 if { (ac_try="$ac_link"
15839 case "(($ac_try" in
15840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15841 *) ac_try_echo=$ac_try;;
15842 esac
15843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15844 $as_echo "$ac_try_echo") >&5
15845 (eval "$ac_link") 2>conftest.er1
15846 ac_status=$?
15847 grep -v '^ *+' conftest.er1 >conftest.err
15848 rm -f conftest.er1
15849 cat conftest.err >&5
15850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); } && {
15852 test -z "$ac_c_werror_flag" ||
15853 test ! -s conftest.err
15854 } && test -s conftest$ac_exeext && {
15855 test "$cross_compiling" = yes ||
15856 $as_test_x conftest$ac_exeext
15857 }; then
15858 ac_cv_lib_gif_EGifPutExtensionLast=yes
15859 else
15860 $as_echo "$as_me: failed program was:" >&5
15861 sed 's/^/| /' conftest.$ac_ext >&5
15862
15863 ac_cv_lib_gif_EGifPutExtensionLast=no
15864 fi
15865
15866 rm -rf conftest.dSYM
15867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15868 conftest$ac_exeext conftest.$ac_ext
15869 LIBS=$ac_check_lib_save_LIBS
15870 fi
15871 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15872 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15873 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15874 HAVE_GIF=yes
15875 else
15876 HAVE_GIF=maybe
15877 fi
15878
15879 fi
15880
15881
15882
15883 if test "$HAVE_GIF" = yes; then
15884 LIBGIF=-lgif
15885 elif test "$HAVE_GIF" = maybe; then
15886 # If gif_lib.h but no libgif, try libungif.
15887 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15888 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15889 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15890 $as_echo_n "(cached) " >&6
15891 else
15892 ac_check_lib_save_LIBS=$LIBS
15893 LIBS="-lungif $LIBS"
15894 cat >conftest.$ac_ext <<_ACEOF
15895 /* confdefs.h. */
15896 _ACEOF
15897 cat confdefs.h >>conftest.$ac_ext
15898 cat >>conftest.$ac_ext <<_ACEOF
15899 /* end confdefs.h. */
15900
15901 /* Override any GCC internal prototype to avoid an error.
15902 Use char because int might match the return type of a GCC
15903 builtin and then its argument prototype would still apply. */
15904 #ifdef __cplusplus
15905 extern "C"
15906 #endif
15907 char EGifPutExtensionLast ();
15908 int
15909 main ()
15910 {
15911 return EGifPutExtensionLast ();
15912 ;
15913 return 0;
15914 }
15915 _ACEOF
15916 rm -f conftest.$ac_objext conftest$ac_exeext
15917 if { (ac_try="$ac_link"
15918 case "(($ac_try" in
15919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15920 *) ac_try_echo=$ac_try;;
15921 esac
15922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15923 $as_echo "$ac_try_echo") >&5
15924 (eval "$ac_link") 2>conftest.er1
15925 ac_status=$?
15926 grep -v '^ *+' conftest.er1 >conftest.err
15927 rm -f conftest.er1
15928 cat conftest.err >&5
15929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930 (exit $ac_status); } && {
15931 test -z "$ac_c_werror_flag" ||
15932 test ! -s conftest.err
15933 } && test -s conftest$ac_exeext && {
15934 test "$cross_compiling" = yes ||
15935 $as_test_x conftest$ac_exeext
15936 }; then
15937 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15938 else
15939 $as_echo "$as_me: failed program was:" >&5
15940 sed 's/^/| /' conftest.$ac_ext >&5
15941
15942 ac_cv_lib_ungif_EGifPutExtensionLast=no
15943 fi
15944
15945 rm -rf conftest.dSYM
15946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15947 conftest$ac_exeext conftest.$ac_ext
15948 LIBS=$ac_check_lib_save_LIBS
15949 fi
15950 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15951 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15952 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15953 HAVE_GIF=yes
15954 else
15955 HAVE_GIF=no
15956 fi
15957
15958 test "$HAVE_GIF" = yes && LIBGIF=-lungif
15959 fi
15960
15961 if test "${HAVE_GIF}" = "yes"; then
15962
15963 cat >>confdefs.h <<\_ACEOF
15964 #define HAVE_GIF 1
15965 _ACEOF
15966
15967 fi
15968 fi
15969
15970
15971 if test "${HAVE_X11}" = "yes"; then
15972 MISSING=""
15973 WITH_NO=""
15974 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15975 MISSING="libXpm" && WITH_NO="--with-xpm=no"
15976 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15977 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
15978 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15979 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
15980 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15981 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
15982 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15983 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15984
15985 if test "X${MISSING}" != X; then
15986 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15987 $MISSING
15988 Maybe some development libraries/packages are missing?
15989 If you don't want to link with them give
15990 $WITH_NO
15991 as options to configure" >&5
15992 $as_echo "$as_me: error: The following required libraries were not found:
15993 $MISSING
15994 Maybe some development libraries/packages are missing?
15995 If you don't want to link with them give
15996 $WITH_NO
15997 as options to configure" >&2;}
15998 { (exit 1); exit 1; }; }
15999 fi
16000 fi
16001
16002 ### Use -lgpm if available, unless `--with-gpm=no'.
16003 HAVE_GPM=no
16004 LIBGPM=
16005 MOUSE_SUPPORT=
16006 if test "${with_gpm}" != "no"; then
16007 if test "${ac_cv_header_gpm_h+set}" = set; then
16008 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
16009 $as_echo_n "checking for gpm.h... " >&6; }
16010 if test "${ac_cv_header_gpm_h+set}" = set; then
16011 $as_echo_n "(cached) " >&6
16012 fi
16013 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
16014 $as_echo "$ac_cv_header_gpm_h" >&6; }
16015 else
16016 # Is the header compilable?
16017 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
16018 $as_echo_n "checking gpm.h usability... " >&6; }
16019 cat >conftest.$ac_ext <<_ACEOF
16020 /* confdefs.h. */
16021 _ACEOF
16022 cat confdefs.h >>conftest.$ac_ext
16023 cat >>conftest.$ac_ext <<_ACEOF
16024 /* end confdefs.h. */
16025 $ac_includes_default
16026 #include <gpm.h>
16027 _ACEOF
16028 rm -f conftest.$ac_objext
16029 if { (ac_try="$ac_compile"
16030 case "(($ac_try" in
16031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16032 *) ac_try_echo=$ac_try;;
16033 esac
16034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16035 $as_echo "$ac_try_echo") >&5
16036 (eval "$ac_compile") 2>conftest.er1
16037 ac_status=$?
16038 grep -v '^ *+' conftest.er1 >conftest.err
16039 rm -f conftest.er1
16040 cat conftest.err >&5
16041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); } && {
16043 test -z "$ac_c_werror_flag" ||
16044 test ! -s conftest.err
16045 } && test -s conftest.$ac_objext; then
16046 ac_header_compiler=yes
16047 else
16048 $as_echo "$as_me: failed program was:" >&5
16049 sed 's/^/| /' conftest.$ac_ext >&5
16050
16051 ac_header_compiler=no
16052 fi
16053
16054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16055 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16056 $as_echo "$ac_header_compiler" >&6; }
16057
16058 # Is the header present?
16059 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
16060 $as_echo_n "checking gpm.h presence... " >&6; }
16061 cat >conftest.$ac_ext <<_ACEOF
16062 /* confdefs.h. */
16063 _ACEOF
16064 cat confdefs.h >>conftest.$ac_ext
16065 cat >>conftest.$ac_ext <<_ACEOF
16066 /* end confdefs.h. */
16067 #include <gpm.h>
16068 _ACEOF
16069 if { (ac_try="$ac_cpp conftest.$ac_ext"
16070 case "(($ac_try" in
16071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16072 *) ac_try_echo=$ac_try;;
16073 esac
16074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16075 $as_echo "$ac_try_echo") >&5
16076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16077 ac_status=$?
16078 grep -v '^ *+' conftest.er1 >conftest.err
16079 rm -f conftest.er1
16080 cat conftest.err >&5
16081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); } >/dev/null && {
16083 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16084 test ! -s conftest.err
16085 }; then
16086 ac_header_preproc=yes
16087 else
16088 $as_echo "$as_me: failed program was:" >&5
16089 sed 's/^/| /' conftest.$ac_ext >&5
16090
16091 ac_header_preproc=no
16092 fi
16093
16094 rm -f conftest.err conftest.$ac_ext
16095 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16096 $as_echo "$ac_header_preproc" >&6; }
16097
16098 # So? What about this header?
16099 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16100 yes:no: )
16101 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
16102 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16103 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
16104 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
16105 ac_header_preproc=yes
16106 ;;
16107 no:yes:* )
16108 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
16109 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
16110 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
16111 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
16112 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
16113 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
16114 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
16115 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
16116 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
16117 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
16118 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
16119 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
16120
16121 ;;
16122 esac
16123 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
16124 $as_echo_n "checking for gpm.h... " >&6; }
16125 if test "${ac_cv_header_gpm_h+set}" = set; then
16126 $as_echo_n "(cached) " >&6
16127 else
16128 ac_cv_header_gpm_h=$ac_header_preproc
16129 fi
16130 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
16131 $as_echo "$ac_cv_header_gpm_h" >&6; }
16132
16133 fi
16134 if test $ac_cv_header_gpm_h = yes; then
16135 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
16136 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
16137 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
16138 $as_echo_n "(cached) " >&6
16139 else
16140 ac_check_lib_save_LIBS=$LIBS
16141 LIBS="-lgpm $LIBS"
16142 cat >conftest.$ac_ext <<_ACEOF
16143 /* confdefs.h. */
16144 _ACEOF
16145 cat confdefs.h >>conftest.$ac_ext
16146 cat >>conftest.$ac_ext <<_ACEOF
16147 /* end confdefs.h. */
16148
16149 /* Override any GCC internal prototype to avoid an error.
16150 Use char because int might match the return type of a GCC
16151 builtin and then its argument prototype would still apply. */
16152 #ifdef __cplusplus
16153 extern "C"
16154 #endif
16155 char Gpm_Open ();
16156 int
16157 main ()
16158 {
16159 return Gpm_Open ();
16160 ;
16161 return 0;
16162 }
16163 _ACEOF
16164 rm -f conftest.$ac_objext conftest$ac_exeext
16165 if { (ac_try="$ac_link"
16166 case "(($ac_try" in
16167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16168 *) ac_try_echo=$ac_try;;
16169 esac
16170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16171 $as_echo "$ac_try_echo") >&5
16172 (eval "$ac_link") 2>conftest.er1
16173 ac_status=$?
16174 grep -v '^ *+' conftest.er1 >conftest.err
16175 rm -f conftest.er1
16176 cat conftest.err >&5
16177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 (exit $ac_status); } && {
16179 test -z "$ac_c_werror_flag" ||
16180 test ! -s conftest.err
16181 } && test -s conftest$ac_exeext && {
16182 test "$cross_compiling" = yes ||
16183 $as_test_x conftest$ac_exeext
16184 }; then
16185 ac_cv_lib_gpm_Gpm_Open=yes
16186 else
16187 $as_echo "$as_me: failed program was:" >&5
16188 sed 's/^/| /' conftest.$ac_ext >&5
16189
16190 ac_cv_lib_gpm_Gpm_Open=no
16191 fi
16192
16193 rm -rf conftest.dSYM
16194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16195 conftest$ac_exeext conftest.$ac_ext
16196 LIBS=$ac_check_lib_save_LIBS
16197 fi
16198 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
16199 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
16200 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
16201 HAVE_GPM=yes
16202 fi
16203
16204 fi
16205
16206
16207
16208 if test "${HAVE_GPM}" = "yes"; then
16209
16210 cat >>confdefs.h <<\_ACEOF
16211 #define HAVE_GPM 1
16212 _ACEOF
16213
16214 LIBGPM=-lgpm
16215 ## May be reset below.
16216 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
16217 fi
16218 fi
16219
16220
16221 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16222 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16223 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16224 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16225 $as_echo_n "(cached) " >&6
16226 fi
16227 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16228 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16229 else
16230 # Is the header compilable?
16231 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
16232 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
16233 cat >conftest.$ac_ext <<_ACEOF
16234 /* confdefs.h. */
16235 _ACEOF
16236 cat confdefs.h >>conftest.$ac_ext
16237 cat >>conftest.$ac_ext <<_ACEOF
16238 /* end confdefs.h. */
16239 $ac_includes_default
16240 #include <malloc/malloc.h>
16241 _ACEOF
16242 rm -f conftest.$ac_objext
16243 if { (ac_try="$ac_compile"
16244 case "(($ac_try" in
16245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16246 *) ac_try_echo=$ac_try;;
16247 esac
16248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16249 $as_echo "$ac_try_echo") >&5
16250 (eval "$ac_compile") 2>conftest.er1
16251 ac_status=$?
16252 grep -v '^ *+' conftest.er1 >conftest.err
16253 rm -f conftest.er1
16254 cat conftest.err >&5
16255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); } && {
16257 test -z "$ac_c_werror_flag" ||
16258 test ! -s conftest.err
16259 } && test -s conftest.$ac_objext; then
16260 ac_header_compiler=yes
16261 else
16262 $as_echo "$as_me: failed program was:" >&5
16263 sed 's/^/| /' conftest.$ac_ext >&5
16264
16265 ac_header_compiler=no
16266 fi
16267
16268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16269 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16270 $as_echo "$ac_header_compiler" >&6; }
16271
16272 # Is the header present?
16273 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
16274 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
16275 cat >conftest.$ac_ext <<_ACEOF
16276 /* confdefs.h. */
16277 _ACEOF
16278 cat confdefs.h >>conftest.$ac_ext
16279 cat >>conftest.$ac_ext <<_ACEOF
16280 /* end confdefs.h. */
16281 #include <malloc/malloc.h>
16282 _ACEOF
16283 if { (ac_try="$ac_cpp conftest.$ac_ext"
16284 case "(($ac_try" in
16285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16286 *) ac_try_echo=$ac_try;;
16287 esac
16288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16289 $as_echo "$ac_try_echo") >&5
16290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16291 ac_status=$?
16292 grep -v '^ *+' conftest.er1 >conftest.err
16293 rm -f conftest.er1
16294 cat conftest.err >&5
16295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); } >/dev/null && {
16297 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16298 test ! -s conftest.err
16299 }; then
16300 ac_header_preproc=yes
16301 else
16302 $as_echo "$as_me: failed program was:" >&5
16303 sed 's/^/| /' conftest.$ac_ext >&5
16304
16305 ac_header_preproc=no
16306 fi
16307
16308 rm -f conftest.err conftest.$ac_ext
16309 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16310 $as_echo "$ac_header_preproc" >&6; }
16311
16312 # So? What about this header?
16313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16314 yes:no: )
16315 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
16316 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16317 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
16318 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
16319 ac_header_preproc=yes
16320 ;;
16321 no:yes:* )
16322 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
16323 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
16324 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
16325 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
16326 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
16327 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
16328 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
16329 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
16330 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
16331 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
16332 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
16333 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
16334
16335 ;;
16336 esac
16337 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16338 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16339 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16340 $as_echo_n "(cached) " >&6
16341 else
16342 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16343 fi
16344 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16345 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16346
16347 fi
16348 if test $ac_cv_header_malloc_malloc_h = yes; then
16349
16350 cat >>confdefs.h <<\_ACEOF
16351 #define HAVE_MALLOC_MALLOC_H 1
16352 _ACEOF
16353
16354 fi
16355
16356
16357
16358 C_SWITCH_X_SYSTEM=
16359 ### Use NeXTstep API to implement GUI.
16360 if test "${HAVE_NS}" = "yes"; then
16361
16362 cat >>confdefs.h <<\_ACEOF
16363 #define HAVE_NS 1
16364 _ACEOF
16365
16366 if test "${NS_IMPL_COCOA}" = "yes"; then
16367
16368 cat >>confdefs.h <<\_ACEOF
16369 #define NS_IMPL_COCOA 1
16370 _ACEOF
16371
16372 GNU_OBJC_CFLAGS=
16373 fi
16374 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16375
16376 cat >>confdefs.h <<\_ACEOF
16377 #define NS_IMPL_GNUSTEP 1
16378 _ACEOF
16379
16380 # See also .m.o rule in Makefile.in */
16381 # FIXME: are all these flags really needed? Document here why. */
16382 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
16383 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16384 fi
16385 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16386
16387 cat >>confdefs.h <<\_ACEOF
16388 #define NS_HAVE_NSINTEGER 1
16389 _ACEOF
16390
16391 fi
16392 # We also have mouse menus.
16393 HAVE_MENUS=yes
16394 OTHER_FILES=ns-app
16395 fi
16396
16397
16398 ### Use session management (-lSM -lICE) if available
16399 HAVE_X_SM=no
16400 LIBXSM=
16401 if test "${HAVE_X11}" = "yes"; then
16402 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16403 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16404 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16405 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16406 $as_echo_n "(cached) " >&6
16407 fi
16408 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16409 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16410 else
16411 # Is the header compilable?
16412 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16413 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16414 cat >conftest.$ac_ext <<_ACEOF
16415 /* confdefs.h. */
16416 _ACEOF
16417 cat confdefs.h >>conftest.$ac_ext
16418 cat >>conftest.$ac_ext <<_ACEOF
16419 /* end confdefs.h. */
16420 $ac_includes_default
16421 #include <X11/SM/SMlib.h>
16422 _ACEOF
16423 rm -f conftest.$ac_objext
16424 if { (ac_try="$ac_compile"
16425 case "(($ac_try" in
16426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427 *) ac_try_echo=$ac_try;;
16428 esac
16429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16430 $as_echo "$ac_try_echo") >&5
16431 (eval "$ac_compile") 2>conftest.er1
16432 ac_status=$?
16433 grep -v '^ *+' conftest.er1 >conftest.err
16434 rm -f conftest.er1
16435 cat conftest.err >&5
16436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); } && {
16438 test -z "$ac_c_werror_flag" ||
16439 test ! -s conftest.err
16440 } && test -s conftest.$ac_objext; then
16441 ac_header_compiler=yes
16442 else
16443 $as_echo "$as_me: failed program was:" >&5
16444 sed 's/^/| /' conftest.$ac_ext >&5
16445
16446 ac_header_compiler=no
16447 fi
16448
16449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16450 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16451 $as_echo "$ac_header_compiler" >&6; }
16452
16453 # Is the header present?
16454 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16455 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16456 cat >conftest.$ac_ext <<_ACEOF
16457 /* confdefs.h. */
16458 _ACEOF
16459 cat confdefs.h >>conftest.$ac_ext
16460 cat >>conftest.$ac_ext <<_ACEOF
16461 /* end confdefs.h. */
16462 #include <X11/SM/SMlib.h>
16463 _ACEOF
16464 if { (ac_try="$ac_cpp conftest.$ac_ext"
16465 case "(($ac_try" in
16466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16467 *) ac_try_echo=$ac_try;;
16468 esac
16469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16470 $as_echo "$ac_try_echo") >&5
16471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16472 ac_status=$?
16473 grep -v '^ *+' conftest.er1 >conftest.err
16474 rm -f conftest.er1
16475 cat conftest.err >&5
16476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); } >/dev/null && {
16478 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16479 test ! -s conftest.err
16480 }; then
16481 ac_header_preproc=yes
16482 else
16483 $as_echo "$as_me: failed program was:" >&5
16484 sed 's/^/| /' conftest.$ac_ext >&5
16485
16486 ac_header_preproc=no
16487 fi
16488
16489 rm -f conftest.err conftest.$ac_ext
16490 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16491 $as_echo "$ac_header_preproc" >&6; }
16492
16493 # So? What about this header?
16494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16495 yes:no: )
16496 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16497 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16498 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16499 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16500 ac_header_preproc=yes
16501 ;;
16502 no:yes:* )
16503 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16504 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16505 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16506 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16507 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16508 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16509 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16510 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16511 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16512 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16513 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16514 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16515
16516 ;;
16517 esac
16518 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16519 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16520 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16521 $as_echo_n "(cached) " >&6
16522 else
16523 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16524 fi
16525 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16526 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16527
16528 fi
16529 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16530 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16531 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16532 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16533 $as_echo_n "(cached) " >&6
16534 else
16535 ac_check_lib_save_LIBS=$LIBS
16536 LIBS="-lSM -lICE $LIBS"
16537 cat >conftest.$ac_ext <<_ACEOF
16538 /* confdefs.h. */
16539 _ACEOF
16540 cat confdefs.h >>conftest.$ac_ext
16541 cat >>conftest.$ac_ext <<_ACEOF
16542 /* end confdefs.h. */
16543
16544 /* Override any GCC internal prototype to avoid an error.
16545 Use char because int might match the return type of a GCC
16546 builtin and then its argument prototype would still apply. */
16547 #ifdef __cplusplus
16548 extern "C"
16549 #endif
16550 char SmcOpenConnection ();
16551 int
16552 main ()
16553 {
16554 return SmcOpenConnection ();
16555 ;
16556 return 0;
16557 }
16558 _ACEOF
16559 rm -f conftest.$ac_objext conftest$ac_exeext
16560 if { (ac_try="$ac_link"
16561 case "(($ac_try" in
16562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16563 *) ac_try_echo=$ac_try;;
16564 esac
16565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16566 $as_echo "$ac_try_echo") >&5
16567 (eval "$ac_link") 2>conftest.er1
16568 ac_status=$?
16569 grep -v '^ *+' conftest.er1 >conftest.err
16570 rm -f conftest.er1
16571 cat conftest.err >&5
16572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); } && {
16574 test -z "$ac_c_werror_flag" ||
16575 test ! -s conftest.err
16576 } && test -s conftest$ac_exeext && {
16577 test "$cross_compiling" = yes ||
16578 $as_test_x conftest$ac_exeext
16579 }; then
16580 ac_cv_lib_SM_SmcOpenConnection=yes
16581 else
16582 $as_echo "$as_me: failed program was:" >&5
16583 sed 's/^/| /' conftest.$ac_ext >&5
16584
16585 ac_cv_lib_SM_SmcOpenConnection=no
16586 fi
16587
16588 rm -rf conftest.dSYM
16589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16590 conftest$ac_exeext conftest.$ac_ext
16591 LIBS=$ac_check_lib_save_LIBS
16592 fi
16593 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16594 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16595 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
16596 HAVE_X_SM=yes
16597 fi
16598
16599 fi
16600
16601
16602
16603 if test "${HAVE_X_SM}" = "yes"; then
16604
16605 cat >>confdefs.h <<\_ACEOF
16606 #define HAVE_X_SM 1
16607 _ACEOF
16608
16609 LIBXSM="-lSM -lICE"
16610 case "$LIBS" in
16611 *-lSM*) ;;
16612 *) LIBS="$LIBXSM $LIBS" ;;
16613 esac
16614 fi
16615 fi
16616
16617
16618 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16619 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16620 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16621 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16622 $as_echo_n "(cached) " >&6
16623 else
16624 cat >conftest.$ac_ext <<_ACEOF
16625 /* confdefs.h. */
16626 _ACEOF
16627 cat confdefs.h >>conftest.$ac_ext
16628 cat >>conftest.$ac_ext <<_ACEOF
16629 /* end confdefs.h. */
16630 #include <netdb.h>
16631 int
16632 main ()
16633 {
16634 return h_errno;
16635 ;
16636 return 0;
16637 }
16638 _ACEOF
16639 rm -f conftest.$ac_objext conftest$ac_exeext
16640 if { (ac_try="$ac_link"
16641 case "(($ac_try" in
16642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16643 *) ac_try_echo=$ac_try;;
16644 esac
16645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16646 $as_echo "$ac_try_echo") >&5
16647 (eval "$ac_link") 2>conftest.er1
16648 ac_status=$?
16649 grep -v '^ *+' conftest.er1 >conftest.err
16650 rm -f conftest.er1
16651 cat conftest.err >&5
16652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); } && {
16654 test -z "$ac_c_werror_flag" ||
16655 test ! -s conftest.err
16656 } && test -s conftest$ac_exeext && {
16657 test "$cross_compiling" = yes ||
16658 $as_test_x conftest$ac_exeext
16659 }; then
16660 emacs_cv_netdb_declares_h_errno=yes
16661 else
16662 $as_echo "$as_me: failed program was:" >&5
16663 sed 's/^/| /' conftest.$ac_ext >&5
16664
16665 emacs_cv_netdb_declares_h_errno=no
16666 fi
16667
16668 rm -rf conftest.dSYM
16669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16670 conftest$ac_exeext conftest.$ac_ext
16671 fi
16672 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16673 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16674 if test $emacs_cv_netdb_declares_h_errno = yes; then
16675
16676 cat >>confdefs.h <<\_ACEOF
16677 #define HAVE_H_ERRNO 1
16678 _ACEOF
16679
16680 fi
16681
16682 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16683 # for constant arguments. Useless!
16684 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16685 $as_echo_n "checking for working alloca.h... " >&6; }
16686 if test "${ac_cv_working_alloca_h+set}" = set; then
16687 $as_echo_n "(cached) " >&6
16688 else
16689 cat >conftest.$ac_ext <<_ACEOF
16690 /* confdefs.h. */
16691 _ACEOF
16692 cat confdefs.h >>conftest.$ac_ext
16693 cat >>conftest.$ac_ext <<_ACEOF
16694 /* end confdefs.h. */
16695 #include <alloca.h>
16696 int
16697 main ()
16698 {
16699 char *p = (char *) alloca (2 * sizeof (int));
16700 if (p) return 0;
16701 ;
16702 return 0;
16703 }
16704 _ACEOF
16705 rm -f conftest.$ac_objext conftest$ac_exeext
16706 if { (ac_try="$ac_link"
16707 case "(($ac_try" in
16708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16709 *) ac_try_echo=$ac_try;;
16710 esac
16711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16712 $as_echo "$ac_try_echo") >&5
16713 (eval "$ac_link") 2>conftest.er1
16714 ac_status=$?
16715 grep -v '^ *+' conftest.er1 >conftest.err
16716 rm -f conftest.er1
16717 cat conftest.err >&5
16718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); } && {
16720 test -z "$ac_c_werror_flag" ||
16721 test ! -s conftest.err
16722 } && test -s conftest$ac_exeext && {
16723 test "$cross_compiling" = yes ||
16724 $as_test_x conftest$ac_exeext
16725 }; then
16726 ac_cv_working_alloca_h=yes
16727 else
16728 $as_echo "$as_me: failed program was:" >&5
16729 sed 's/^/| /' conftest.$ac_ext >&5
16730
16731 ac_cv_working_alloca_h=no
16732 fi
16733
16734 rm -rf conftest.dSYM
16735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16736 conftest$ac_exeext conftest.$ac_ext
16737 fi
16738 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16739 $as_echo "$ac_cv_working_alloca_h" >&6; }
16740 if test $ac_cv_working_alloca_h = yes; then
16741
16742 cat >>confdefs.h <<\_ACEOF
16743 #define HAVE_ALLOCA_H 1
16744 _ACEOF
16745
16746 fi
16747
16748 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16749 $as_echo_n "checking for alloca... " >&6; }
16750 if test "${ac_cv_func_alloca_works+set}" = set; then
16751 $as_echo_n "(cached) " >&6
16752 else
16753 cat >conftest.$ac_ext <<_ACEOF
16754 /* confdefs.h. */
16755 _ACEOF
16756 cat confdefs.h >>conftest.$ac_ext
16757 cat >>conftest.$ac_ext <<_ACEOF
16758 /* end confdefs.h. */
16759 #ifdef __GNUC__
16760 # define alloca __builtin_alloca
16761 #else
16762 # ifdef _MSC_VER
16763 # include <malloc.h>
16764 # define alloca _alloca
16765 # else
16766 # ifdef HAVE_ALLOCA_H
16767 # include <alloca.h>
16768 # else
16769 # ifdef _AIX
16770 #pragma alloca
16771 # else
16772 # ifndef alloca /* predefined by HP cc +Olibcalls */
16773 char *alloca ();
16774 # endif
16775 # endif
16776 # endif
16777 # endif
16778 #endif
16779
16780 int
16781 main ()
16782 {
16783 char *p = (char *) alloca (1);
16784 if (p) return 0;
16785 ;
16786 return 0;
16787 }
16788 _ACEOF
16789 rm -f conftest.$ac_objext conftest$ac_exeext
16790 if { (ac_try="$ac_link"
16791 case "(($ac_try" in
16792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16793 *) ac_try_echo=$ac_try;;
16794 esac
16795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16796 $as_echo "$ac_try_echo") >&5
16797 (eval "$ac_link") 2>conftest.er1
16798 ac_status=$?
16799 grep -v '^ *+' conftest.er1 >conftest.err
16800 rm -f conftest.er1
16801 cat conftest.err >&5
16802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); } && {
16804 test -z "$ac_c_werror_flag" ||
16805 test ! -s conftest.err
16806 } && test -s conftest$ac_exeext && {
16807 test "$cross_compiling" = yes ||
16808 $as_test_x conftest$ac_exeext
16809 }; then
16810 ac_cv_func_alloca_works=yes
16811 else
16812 $as_echo "$as_me: failed program was:" >&5
16813 sed 's/^/| /' conftest.$ac_ext >&5
16814
16815 ac_cv_func_alloca_works=no
16816 fi
16817
16818 rm -rf conftest.dSYM
16819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16820 conftest$ac_exeext conftest.$ac_ext
16821 fi
16822 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16823 $as_echo "$ac_cv_func_alloca_works" >&6; }
16824
16825 if test $ac_cv_func_alloca_works = yes; then
16826
16827 cat >>confdefs.h <<\_ACEOF
16828 #define HAVE_ALLOCA 1
16829 _ACEOF
16830
16831 else
16832 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16833 # that cause trouble. Some versions do not even contain alloca or
16834 # contain a buggy version. If you still want to use their alloca,
16835 # use ar to extract alloca.o from them instead of compiling alloca.c.
16836
16837 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16838
16839 cat >>confdefs.h <<\_ACEOF
16840 #define C_ALLOCA 1
16841 _ACEOF
16842
16843
16844 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16845 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16846 if test "${ac_cv_os_cray+set}" = set; then
16847 $as_echo_n "(cached) " >&6
16848 else
16849 cat >conftest.$ac_ext <<_ACEOF
16850 /* confdefs.h. */
16851 _ACEOF
16852 cat confdefs.h >>conftest.$ac_ext
16853 cat >>conftest.$ac_ext <<_ACEOF
16854 /* end confdefs.h. */
16855 #if defined CRAY && ! defined CRAY2
16856 webecray
16857 #else
16858 wenotbecray
16859 #endif
16860
16861 _ACEOF
16862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16863 $EGREP "webecray" >/dev/null 2>&1; then
16864 ac_cv_os_cray=yes
16865 else
16866 ac_cv_os_cray=no
16867 fi
16868 rm -f conftest*
16869
16870 fi
16871 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16872 $as_echo "$ac_cv_os_cray" >&6; }
16873 if test $ac_cv_os_cray = yes; then
16874 for ac_func in _getb67 GETB67 getb67; do
16875 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16876 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16877 $as_echo_n "checking for $ac_func... " >&6; }
16878 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16879 $as_echo_n "(cached) " >&6
16880 else
16881 cat >conftest.$ac_ext <<_ACEOF
16882 /* confdefs.h. */
16883 _ACEOF
16884 cat confdefs.h >>conftest.$ac_ext
16885 cat >>conftest.$ac_ext <<_ACEOF
16886 /* end confdefs.h. */
16887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16889 #define $ac_func innocuous_$ac_func
16890
16891 /* System header to define __stub macros and hopefully few prototypes,
16892 which can conflict with char $ac_func (); below.
16893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16894 <limits.h> exists even on freestanding compilers. */
16895
16896 #ifdef __STDC__
16897 # include <limits.h>
16898 #else
16899 # include <assert.h>
16900 #endif
16901
16902 #undef $ac_func
16903
16904 /* Override any GCC internal prototype to avoid an error.
16905 Use char because int might match the return type of a GCC
16906 builtin and then its argument prototype would still apply. */
16907 #ifdef __cplusplus
16908 extern "C"
16909 #endif
16910 char $ac_func ();
16911 /* The GNU C library defines this for functions which it implements
16912 to always fail with ENOSYS. Some functions are actually named
16913 something starting with __ and the normal name is an alias. */
16914 #if defined __stub_$ac_func || defined __stub___$ac_func
16915 choke me
16916 #endif
16917
16918 int
16919 main ()
16920 {
16921 return $ac_func ();
16922 ;
16923 return 0;
16924 }
16925 _ACEOF
16926 rm -f conftest.$ac_objext conftest$ac_exeext
16927 if { (ac_try="$ac_link"
16928 case "(($ac_try" in
16929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16930 *) ac_try_echo=$ac_try;;
16931 esac
16932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16933 $as_echo "$ac_try_echo") >&5
16934 (eval "$ac_link") 2>conftest.er1
16935 ac_status=$?
16936 grep -v '^ *+' conftest.er1 >conftest.err
16937 rm -f conftest.er1
16938 cat conftest.err >&5
16939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940 (exit $ac_status); } && {
16941 test -z "$ac_c_werror_flag" ||
16942 test ! -s conftest.err
16943 } && test -s conftest$ac_exeext && {
16944 test "$cross_compiling" = yes ||
16945 $as_test_x conftest$ac_exeext
16946 }; then
16947 eval "$as_ac_var=yes"
16948 else
16949 $as_echo "$as_me: failed program was:" >&5
16950 sed 's/^/| /' conftest.$ac_ext >&5
16951
16952 eval "$as_ac_var=no"
16953 fi
16954
16955 rm -rf conftest.dSYM
16956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16957 conftest$ac_exeext conftest.$ac_ext
16958 fi
16959 ac_res=`eval 'as_val=${'$as_ac_var'}
16960 $as_echo "$as_val"'`
16961 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16962 $as_echo "$ac_res" >&6; }
16963 if test `eval 'as_val=${'$as_ac_var'}
16964 $as_echo "$as_val"'` = yes; then
16965
16966 cat >>confdefs.h <<_ACEOF
16967 #define CRAY_STACKSEG_END $ac_func
16968 _ACEOF
16969
16970 break
16971 fi
16972
16973 done
16974 fi
16975
16976 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16977 $as_echo_n "checking stack direction for C alloca... " >&6; }
16978 if test "${ac_cv_c_stack_direction+set}" = set; then
16979 $as_echo_n "(cached) " >&6
16980 else
16981 if test "$cross_compiling" = yes; then
16982 ac_cv_c_stack_direction=0
16983 else
16984 cat >conftest.$ac_ext <<_ACEOF
16985 /* confdefs.h. */
16986 _ACEOF
16987 cat confdefs.h >>conftest.$ac_ext
16988 cat >>conftest.$ac_ext <<_ACEOF
16989 /* end confdefs.h. */
16990 $ac_includes_default
16991 int
16992 find_stack_direction ()
16993 {
16994 static char *addr = 0;
16995 auto char dummy;
16996 if (addr == 0)
16997 {
16998 addr = &dummy;
16999 return find_stack_direction ();
17000 }
17001 else
17002 return (&dummy > addr) ? 1 : -1;
17003 }
17004
17005 int
17006 main ()
17007 {
17008 return find_stack_direction () < 0;
17009 }
17010 _ACEOF
17011 rm -f conftest$ac_exeext
17012 if { (ac_try="$ac_link"
17013 case "(($ac_try" in
17014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17015 *) ac_try_echo=$ac_try;;
17016 esac
17017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17018 $as_echo "$ac_try_echo") >&5
17019 (eval "$ac_link") 2>&5
17020 ac_status=$?
17021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17023 { (case "(($ac_try" in
17024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17025 *) ac_try_echo=$ac_try;;
17026 esac
17027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17028 $as_echo "$ac_try_echo") >&5
17029 (eval "$ac_try") 2>&5
17030 ac_status=$?
17031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); }; }; then
17033 ac_cv_c_stack_direction=1
17034 else
17035 $as_echo "$as_me: program exited with status $ac_status" >&5
17036 $as_echo "$as_me: failed program was:" >&5
17037 sed 's/^/| /' conftest.$ac_ext >&5
17038
17039 ( exit $ac_status )
17040 ac_cv_c_stack_direction=-1
17041 fi
17042 rm -rf conftest.dSYM
17043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17044 fi
17045
17046
17047 fi
17048 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17049 $as_echo "$ac_cv_c_stack_direction" >&6; }
17050
17051 cat >>confdefs.h <<_ACEOF
17052 #define STACK_DIRECTION $ac_cv_c_stack_direction
17053 _ACEOF
17054
17055
17056 fi
17057
17058
17059 if test x"$ac_cv_func_alloca_works" != xyes; then
17060 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
17061 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
17062 { (exit 1); exit 1; }; }
17063 fi
17064
17065 # fmod, logb, and frexp are found in -lm on most systems.
17066 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
17067
17068 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
17069 $as_echo_n "checking for sqrt in -lm... " >&6; }
17070 if test "${ac_cv_lib_m_sqrt+set}" = set; then
17071 $as_echo_n "(cached) " >&6
17072 else
17073 ac_check_lib_save_LIBS=$LIBS
17074 LIBS="-lm $LIBS"
17075 cat >conftest.$ac_ext <<_ACEOF
17076 /* confdefs.h. */
17077 _ACEOF
17078 cat confdefs.h >>conftest.$ac_ext
17079 cat >>conftest.$ac_ext <<_ACEOF
17080 /* end confdefs.h. */
17081
17082 /* Override any GCC internal prototype to avoid an error.
17083 Use char because int might match the return type of a GCC
17084 builtin and then its argument prototype would still apply. */
17085 #ifdef __cplusplus
17086 extern "C"
17087 #endif
17088 char sqrt ();
17089 int
17090 main ()
17091 {
17092 return sqrt ();
17093 ;
17094 return 0;
17095 }
17096 _ACEOF
17097 rm -f conftest.$ac_objext conftest$ac_exeext
17098 if { (ac_try="$ac_link"
17099 case "(($ac_try" in
17100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17101 *) ac_try_echo=$ac_try;;
17102 esac
17103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17104 $as_echo "$ac_try_echo") >&5
17105 (eval "$ac_link") 2>conftest.er1
17106 ac_status=$?
17107 grep -v '^ *+' conftest.er1 >conftest.err
17108 rm -f conftest.er1
17109 cat conftest.err >&5
17110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111 (exit $ac_status); } && {
17112 test -z "$ac_c_werror_flag" ||
17113 test ! -s conftest.err
17114 } && test -s conftest$ac_exeext && {
17115 test "$cross_compiling" = yes ||
17116 $as_test_x conftest$ac_exeext
17117 }; then
17118 ac_cv_lib_m_sqrt=yes
17119 else
17120 $as_echo "$as_me: failed program was:" >&5
17121 sed 's/^/| /' conftest.$ac_ext >&5
17122
17123 ac_cv_lib_m_sqrt=no
17124 fi
17125
17126 rm -rf conftest.dSYM
17127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17128 conftest$ac_exeext conftest.$ac_ext
17129 LIBS=$ac_check_lib_save_LIBS
17130 fi
17131 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
17132 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
17133 if test $ac_cv_lib_m_sqrt = yes; then
17134 cat >>confdefs.h <<_ACEOF
17135 #define HAVE_LIBM 1
17136 _ACEOF
17137
17138 LIBS="-lm $LIBS"
17139
17140 fi
17141
17142
17143 # Check for mail-locking functions in a "mail" library. Probably this should
17144 # have the same check as for liblockfile below.
17145 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
17146 $as_echo_n "checking for maillock in -lmail... " >&6; }
17147 if test "${ac_cv_lib_mail_maillock+set}" = set; then
17148 $as_echo_n "(cached) " >&6
17149 else
17150 ac_check_lib_save_LIBS=$LIBS
17151 LIBS="-lmail $LIBS"
17152 cat >conftest.$ac_ext <<_ACEOF
17153 /* confdefs.h. */
17154 _ACEOF
17155 cat confdefs.h >>conftest.$ac_ext
17156 cat >>conftest.$ac_ext <<_ACEOF
17157 /* end confdefs.h. */
17158
17159 /* Override any GCC internal prototype to avoid an error.
17160 Use char because int might match the return type of a GCC
17161 builtin and then its argument prototype would still apply. */
17162 #ifdef __cplusplus
17163 extern "C"
17164 #endif
17165 char maillock ();
17166 int
17167 main ()
17168 {
17169 return maillock ();
17170 ;
17171 return 0;
17172 }
17173 _ACEOF
17174 rm -f conftest.$ac_objext conftest$ac_exeext
17175 if { (ac_try="$ac_link"
17176 case "(($ac_try" in
17177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17178 *) ac_try_echo=$ac_try;;
17179 esac
17180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17181 $as_echo "$ac_try_echo") >&5
17182 (eval "$ac_link") 2>conftest.er1
17183 ac_status=$?
17184 grep -v '^ *+' conftest.er1 >conftest.err
17185 rm -f conftest.er1
17186 cat conftest.err >&5
17187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); } && {
17189 test -z "$ac_c_werror_flag" ||
17190 test ! -s conftest.err
17191 } && test -s conftest$ac_exeext && {
17192 test "$cross_compiling" = yes ||
17193 $as_test_x conftest$ac_exeext
17194 }; then
17195 ac_cv_lib_mail_maillock=yes
17196 else
17197 $as_echo "$as_me: failed program was:" >&5
17198 sed 's/^/| /' conftest.$ac_ext >&5
17199
17200 ac_cv_lib_mail_maillock=no
17201 fi
17202
17203 rm -rf conftest.dSYM
17204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17205 conftest$ac_exeext conftest.$ac_ext
17206 LIBS=$ac_check_lib_save_LIBS
17207 fi
17208 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
17209 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
17210 if test $ac_cv_lib_mail_maillock = yes; then
17211 have_mail=yes
17212 else
17213 have_mail=no
17214 fi
17215
17216 if test $have_mail = yes; then
17217 LIBS_MAIL=-lmail
17218 LIBS="$LIBS_MAIL $LIBS"
17219
17220 cat >>confdefs.h <<\_ACEOF
17221 #define HAVE_LIBMAIL 1
17222 _ACEOF
17223
17224 else
17225 LIBS_MAIL=
17226 fi
17227 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
17228 $as_echo_n "checking for maillock in -llockfile... " >&6; }
17229 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
17230 $as_echo_n "(cached) " >&6
17231 else
17232 ac_check_lib_save_LIBS=$LIBS
17233 LIBS="-llockfile $LIBS"
17234 cat >conftest.$ac_ext <<_ACEOF
17235 /* confdefs.h. */
17236 _ACEOF
17237 cat confdefs.h >>conftest.$ac_ext
17238 cat >>conftest.$ac_ext <<_ACEOF
17239 /* end confdefs.h. */
17240
17241 /* Override any GCC internal prototype to avoid an error.
17242 Use char because int might match the return type of a GCC
17243 builtin and then its argument prototype would still apply. */
17244 #ifdef __cplusplus
17245 extern "C"
17246 #endif
17247 char maillock ();
17248 int
17249 main ()
17250 {
17251 return maillock ();
17252 ;
17253 return 0;
17254 }
17255 _ACEOF
17256 rm -f conftest.$ac_objext conftest$ac_exeext
17257 if { (ac_try="$ac_link"
17258 case "(($ac_try" in
17259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17260 *) ac_try_echo=$ac_try;;
17261 esac
17262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17263 $as_echo "$ac_try_echo") >&5
17264 (eval "$ac_link") 2>conftest.er1
17265 ac_status=$?
17266 grep -v '^ *+' conftest.er1 >conftest.err
17267 rm -f conftest.er1
17268 cat conftest.err >&5
17269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); } && {
17271 test -z "$ac_c_werror_flag" ||
17272 test ! -s conftest.err
17273 } && test -s conftest$ac_exeext && {
17274 test "$cross_compiling" = yes ||
17275 $as_test_x conftest$ac_exeext
17276 }; then
17277 ac_cv_lib_lockfile_maillock=yes
17278 else
17279 $as_echo "$as_me: failed program was:" >&5
17280 sed 's/^/| /' conftest.$ac_ext >&5
17281
17282 ac_cv_lib_lockfile_maillock=no
17283 fi
17284
17285 rm -rf conftest.dSYM
17286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17287 conftest$ac_exeext conftest.$ac_ext
17288 LIBS=$ac_check_lib_save_LIBS
17289 fi
17290 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
17291 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
17292 if test $ac_cv_lib_lockfile_maillock = yes; then
17293 have_lockfile=yes
17294 else
17295 have_lockfile=no
17296 fi
17297
17298 if test $have_lockfile = yes; then
17299 LIBS_MAIL=-llockfile
17300 LIBS="$LIBS_MAIL $LIBS"
17301
17302 cat >>confdefs.h <<\_ACEOF
17303 #define HAVE_LIBLOCKFILE 1
17304 _ACEOF
17305
17306 else
17307 # If we have the shared liblockfile, assume we must use it for mail
17308 # locking (e.g. Debian). If we couldn't link against liblockfile
17309 # (no liblockfile.a installed), ensure that we don't need to.
17310 # Extract the first word of "liblockfile.so", so it can be a program name with args.
17311 set dummy liblockfile.so; ac_word=$2
17312 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17313 $as_echo_n "checking for $ac_word... " >&6; }
17314 if test "${ac_cv_prog_liblockfile+set}" = set; then
17315 $as_echo_n "(cached) " >&6
17316 else
17317 if test -n "$liblockfile"; then
17318 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
17319 else
17320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17321 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
17322 for as_dir in $as_dummy
17323 do
17324 IFS=$as_save_IFS
17325 test -z "$as_dir" && as_dir=.
17326 for ac_exec_ext in '' $ac_executable_extensions; do
17327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17328 ac_cv_prog_liblockfile="yes"
17329 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17330 break 2
17331 fi
17332 done
17333 done
17334 IFS=$as_save_IFS
17335
17336 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
17337 fi
17338 fi
17339 liblockfile=$ac_cv_prog_liblockfile
17340 if test -n "$liblockfile"; then
17341 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
17342 $as_echo "$liblockfile" >&6; }
17343 else
17344 { $as_echo "$as_me:$LINENO: result: no" >&5
17345 $as_echo "no" >&6; }
17346 fi
17347
17348
17349 if test $ac_cv_prog_liblockfile = yes; then
17350 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
17351 This probably means that movemail could lose mail.
17352 There may be a \`development' package to install containing liblockfile." >&5
17353 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
17354 This probably means that movemail could lose mail.
17355 There may be a \`development' package to install containing liblockfile." >&2;}
17356 { (exit 1); exit 1; }; }
17357 fi
17358 fi
17359
17360 for ac_func in touchlock
17361 do
17362 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17363 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17364 $as_echo_n "checking for $ac_func... " >&6; }
17365 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17366 $as_echo_n "(cached) " >&6
17367 else
17368 cat >conftest.$ac_ext <<_ACEOF
17369 /* confdefs.h. */
17370 _ACEOF
17371 cat confdefs.h >>conftest.$ac_ext
17372 cat >>conftest.$ac_ext <<_ACEOF
17373 /* end confdefs.h. */
17374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17376 #define $ac_func innocuous_$ac_func
17377
17378 /* System header to define __stub macros and hopefully few prototypes,
17379 which can conflict with char $ac_func (); below.
17380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17381 <limits.h> exists even on freestanding compilers. */
17382
17383 #ifdef __STDC__
17384 # include <limits.h>
17385 #else
17386 # include <assert.h>
17387 #endif
17388
17389 #undef $ac_func
17390
17391 /* Override any GCC internal prototype to avoid an error.
17392 Use char because int might match the return type of a GCC
17393 builtin and then its argument prototype would still apply. */
17394 #ifdef __cplusplus
17395 extern "C"
17396 #endif
17397 char $ac_func ();
17398 /* The GNU C library defines this for functions which it implements
17399 to always fail with ENOSYS. Some functions are actually named
17400 something starting with __ and the normal name is an alias. */
17401 #if defined __stub_$ac_func || defined __stub___$ac_func
17402 choke me
17403 #endif
17404
17405 int
17406 main ()
17407 {
17408 return $ac_func ();
17409 ;
17410 return 0;
17411 }
17412 _ACEOF
17413 rm -f conftest.$ac_objext conftest$ac_exeext
17414 if { (ac_try="$ac_link"
17415 case "(($ac_try" in
17416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17417 *) ac_try_echo=$ac_try;;
17418 esac
17419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17420 $as_echo "$ac_try_echo") >&5
17421 (eval "$ac_link") 2>conftest.er1
17422 ac_status=$?
17423 grep -v '^ *+' conftest.er1 >conftest.err
17424 rm -f conftest.er1
17425 cat conftest.err >&5
17426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); } && {
17428 test -z "$ac_c_werror_flag" ||
17429 test ! -s conftest.err
17430 } && test -s conftest$ac_exeext && {
17431 test "$cross_compiling" = yes ||
17432 $as_test_x conftest$ac_exeext
17433 }; then
17434 eval "$as_ac_var=yes"
17435 else
17436 $as_echo "$as_me: failed program was:" >&5
17437 sed 's/^/| /' conftest.$ac_ext >&5
17438
17439 eval "$as_ac_var=no"
17440 fi
17441
17442 rm -rf conftest.dSYM
17443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17444 conftest$ac_exeext conftest.$ac_ext
17445 fi
17446 ac_res=`eval 'as_val=${'$as_ac_var'}
17447 $as_echo "$as_val"'`
17448 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17449 $as_echo "$ac_res" >&6; }
17450 if test `eval 'as_val=${'$as_ac_var'}
17451 $as_echo "$as_val"'` = yes; then
17452 cat >>confdefs.h <<_ACEOF
17453 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17454 _ACEOF
17455
17456 fi
17457 done
17458
17459
17460 for ac_header in maillock.h
17461 do
17462 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17464 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17465 $as_echo_n "checking for $ac_header... " >&6; }
17466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17467 $as_echo_n "(cached) " >&6
17468 fi
17469 ac_res=`eval 'as_val=${'$as_ac_Header'}
17470 $as_echo "$as_val"'`
17471 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17472 $as_echo "$ac_res" >&6; }
17473 else
17474 # Is the header compilable?
17475 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17476 $as_echo_n "checking $ac_header usability... " >&6; }
17477 cat >conftest.$ac_ext <<_ACEOF
17478 /* confdefs.h. */
17479 _ACEOF
17480 cat confdefs.h >>conftest.$ac_ext
17481 cat >>conftest.$ac_ext <<_ACEOF
17482 /* end confdefs.h. */
17483 $ac_includes_default
17484 #include <$ac_header>
17485 _ACEOF
17486 rm -f conftest.$ac_objext
17487 if { (ac_try="$ac_compile"
17488 case "(($ac_try" in
17489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17490 *) ac_try_echo=$ac_try;;
17491 esac
17492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17493 $as_echo "$ac_try_echo") >&5
17494 (eval "$ac_compile") 2>conftest.er1
17495 ac_status=$?
17496 grep -v '^ *+' conftest.er1 >conftest.err
17497 rm -f conftest.er1
17498 cat conftest.err >&5
17499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); } && {
17501 test -z "$ac_c_werror_flag" ||
17502 test ! -s conftest.err
17503 } && test -s conftest.$ac_objext; then
17504 ac_header_compiler=yes
17505 else
17506 $as_echo "$as_me: failed program was:" >&5
17507 sed 's/^/| /' conftest.$ac_ext >&5
17508
17509 ac_header_compiler=no
17510 fi
17511
17512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17513 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17514 $as_echo "$ac_header_compiler" >&6; }
17515
17516 # Is the header present?
17517 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17518 $as_echo_n "checking $ac_header presence... " >&6; }
17519 cat >conftest.$ac_ext <<_ACEOF
17520 /* confdefs.h. */
17521 _ACEOF
17522 cat confdefs.h >>conftest.$ac_ext
17523 cat >>conftest.$ac_ext <<_ACEOF
17524 /* end confdefs.h. */
17525 #include <$ac_header>
17526 _ACEOF
17527 if { (ac_try="$ac_cpp conftest.$ac_ext"
17528 case "(($ac_try" in
17529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17530 *) ac_try_echo=$ac_try;;
17531 esac
17532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17533 $as_echo "$ac_try_echo") >&5
17534 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17535 ac_status=$?
17536 grep -v '^ *+' conftest.er1 >conftest.err
17537 rm -f conftest.er1
17538 cat conftest.err >&5
17539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); } >/dev/null && {
17541 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17542 test ! -s conftest.err
17543 }; then
17544 ac_header_preproc=yes
17545 else
17546 $as_echo "$as_me: failed program was:" >&5
17547 sed 's/^/| /' conftest.$ac_ext >&5
17548
17549 ac_header_preproc=no
17550 fi
17551
17552 rm -f conftest.err conftest.$ac_ext
17553 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17554 $as_echo "$ac_header_preproc" >&6; }
17555
17556 # So? What about this header?
17557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17558 yes:no: )
17559 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17560 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17561 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17562 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17563 ac_header_preproc=yes
17564 ;;
17565 no:yes:* )
17566 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17567 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17568 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17569 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17570 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17571 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17572 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17573 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17574 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17575 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17576 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17577 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17578
17579 ;;
17580 esac
17581 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17582 $as_echo_n "checking for $ac_header... " >&6; }
17583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17584 $as_echo_n "(cached) " >&6
17585 else
17586 eval "$as_ac_Header=\$ac_header_preproc"
17587 fi
17588 ac_res=`eval 'as_val=${'$as_ac_Header'}
17589 $as_echo "$as_val"'`
17590 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17591 $as_echo "$ac_res" >&6; }
17592
17593 fi
17594 if test `eval 'as_val=${'$as_ac_Header'}
17595 $as_echo "$as_val"'` = yes; then
17596 cat >>confdefs.h <<_ACEOF
17597 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17598 _ACEOF
17599
17600 fi
17601
17602 done
17603
17604
17605
17606 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
17607 ## interlock access to the mail spool. The alternative is a lock file named
17608 ## /usr/spool/mail/$USER.lock.
17609 mail_lock=no
17610 case "$opsys" in
17611 aix4-2) mail_lock="lockf" ;;
17612
17613 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
17614
17615 ## On GNU/Linux systems, both methods are used by various mail programs.
17616 ## I assume most people are using newer mailers that have heard of flock.
17617 ## Change this if you need to.
17618 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
17619 ## configure gets the right answers, and that means *NOT* using flock.
17620 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
17621 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
17622 ## Debian maintainer hasn't provided a clean fix for Emacs.
17623 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
17624 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
17625 ## correct logic. -- fx
17626 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
17627 ## liblockfile is a Free Software replacement for libmail, used on
17628 ## Debian systems and elsewhere. -rfr.
17629 gnu-*)
17630 mail_lock="flock"
17631 if test $have_mail = yes || test $have_lockfile = yes; then
17632 test $ac_cv_header_maillock_h = yes && mail_lock=no
17633 fi
17634 ;;
17635 esac
17636
17637 BLESSMAIL_TARGET=
17638 case "$mail_lock" in
17639 flock)
17640 cat >>confdefs.h <<\_ACEOF
17641 #define MAIL_USE_FLOCK 1
17642 _ACEOF
17643 ;;
17644
17645 lockf)
17646 cat >>confdefs.h <<\_ACEOF
17647 #define MAIL_USE_LOCKF 1
17648 _ACEOF
17649 ;;
17650
17651 *) BLESSMAIL_TARGET="need-blessmail" ;;
17652 esac
17653
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 for ac_func in gethostname getdomainname dup2 \
17730 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17731 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17732 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17733 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17734 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17735 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17736 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17737 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17738 cfmakeraw cfsetspeed isnan copysign
17739 do
17740 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17741 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17742 $as_echo_n "checking for $ac_func... " >&6; }
17743 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17744 $as_echo_n "(cached) " >&6
17745 else
17746 cat >conftest.$ac_ext <<_ACEOF
17747 /* confdefs.h. */
17748 _ACEOF
17749 cat confdefs.h >>conftest.$ac_ext
17750 cat >>conftest.$ac_ext <<_ACEOF
17751 /* end confdefs.h. */
17752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17754 #define $ac_func innocuous_$ac_func
17755
17756 /* System header to define __stub macros and hopefully few prototypes,
17757 which can conflict with char $ac_func (); below.
17758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17759 <limits.h> exists even on freestanding compilers. */
17760
17761 #ifdef __STDC__
17762 # include <limits.h>
17763 #else
17764 # include <assert.h>
17765 #endif
17766
17767 #undef $ac_func
17768
17769 /* Override any GCC internal prototype to avoid an error.
17770 Use char because int might match the return type of a GCC
17771 builtin and then its argument prototype would still apply. */
17772 #ifdef __cplusplus
17773 extern "C"
17774 #endif
17775 char $ac_func ();
17776 /* The GNU C library defines this for functions which it implements
17777 to always fail with ENOSYS. Some functions are actually named
17778 something starting with __ and the normal name is an alias. */
17779 #if defined __stub_$ac_func || defined __stub___$ac_func
17780 choke me
17781 #endif
17782
17783 int
17784 main ()
17785 {
17786 return $ac_func ();
17787 ;
17788 return 0;
17789 }
17790 _ACEOF
17791 rm -f conftest.$ac_objext conftest$ac_exeext
17792 if { (ac_try="$ac_link"
17793 case "(($ac_try" in
17794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17795 *) ac_try_echo=$ac_try;;
17796 esac
17797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17798 $as_echo "$ac_try_echo") >&5
17799 (eval "$ac_link") 2>conftest.er1
17800 ac_status=$?
17801 grep -v '^ *+' conftest.er1 >conftest.err
17802 rm -f conftest.er1
17803 cat conftest.err >&5
17804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); } && {
17806 test -z "$ac_c_werror_flag" ||
17807 test ! -s conftest.err
17808 } && test -s conftest$ac_exeext && {
17809 test "$cross_compiling" = yes ||
17810 $as_test_x conftest$ac_exeext
17811 }; then
17812 eval "$as_ac_var=yes"
17813 else
17814 $as_echo "$as_me: failed program was:" >&5
17815 sed 's/^/| /' conftest.$ac_ext >&5
17816
17817 eval "$as_ac_var=no"
17818 fi
17819
17820 rm -rf conftest.dSYM
17821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17822 conftest$ac_exeext conftest.$ac_ext
17823 fi
17824 ac_res=`eval 'as_val=${'$as_ac_var'}
17825 $as_echo "$as_val"'`
17826 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17827 $as_echo "$ac_res" >&6; }
17828 if test `eval 'as_val=${'$as_ac_var'}
17829 $as_echo "$as_val"'` = yes; then
17830 cat >>confdefs.h <<_ACEOF
17831 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17832 _ACEOF
17833
17834 fi
17835 done
17836
17837
17838
17839 for ac_header in sys/un.h
17840 do
17841 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17843 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17844 $as_echo_n "checking for $ac_header... " >&6; }
17845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17846 $as_echo_n "(cached) " >&6
17847 fi
17848 ac_res=`eval 'as_val=${'$as_ac_Header'}
17849 $as_echo "$as_val"'`
17850 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17851 $as_echo "$ac_res" >&6; }
17852 else
17853 # Is the header compilable?
17854 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17855 $as_echo_n "checking $ac_header usability... " >&6; }
17856 cat >conftest.$ac_ext <<_ACEOF
17857 /* confdefs.h. */
17858 _ACEOF
17859 cat confdefs.h >>conftest.$ac_ext
17860 cat >>conftest.$ac_ext <<_ACEOF
17861 /* end confdefs.h. */
17862 $ac_includes_default
17863 #include <$ac_header>
17864 _ACEOF
17865 rm -f conftest.$ac_objext
17866 if { (ac_try="$ac_compile"
17867 case "(($ac_try" in
17868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17869 *) ac_try_echo=$ac_try;;
17870 esac
17871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17872 $as_echo "$ac_try_echo") >&5
17873 (eval "$ac_compile") 2>conftest.er1
17874 ac_status=$?
17875 grep -v '^ *+' conftest.er1 >conftest.err
17876 rm -f conftest.er1
17877 cat conftest.err >&5
17878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879 (exit $ac_status); } && {
17880 test -z "$ac_c_werror_flag" ||
17881 test ! -s conftest.err
17882 } && test -s conftest.$ac_objext; then
17883 ac_header_compiler=yes
17884 else
17885 $as_echo "$as_me: failed program was:" >&5
17886 sed 's/^/| /' conftest.$ac_ext >&5
17887
17888 ac_header_compiler=no
17889 fi
17890
17891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17892 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17893 $as_echo "$ac_header_compiler" >&6; }
17894
17895 # Is the header present?
17896 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17897 $as_echo_n "checking $ac_header presence... " >&6; }
17898 cat >conftest.$ac_ext <<_ACEOF
17899 /* confdefs.h. */
17900 _ACEOF
17901 cat confdefs.h >>conftest.$ac_ext
17902 cat >>conftest.$ac_ext <<_ACEOF
17903 /* end confdefs.h. */
17904 #include <$ac_header>
17905 _ACEOF
17906 if { (ac_try="$ac_cpp conftest.$ac_ext"
17907 case "(($ac_try" in
17908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17909 *) ac_try_echo=$ac_try;;
17910 esac
17911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17912 $as_echo "$ac_try_echo") >&5
17913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17914 ac_status=$?
17915 grep -v '^ *+' conftest.er1 >conftest.err
17916 rm -f conftest.er1
17917 cat conftest.err >&5
17918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); } >/dev/null && {
17920 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17921 test ! -s conftest.err
17922 }; then
17923 ac_header_preproc=yes
17924 else
17925 $as_echo "$as_me: failed program was:" >&5
17926 sed 's/^/| /' conftest.$ac_ext >&5
17927
17928 ac_header_preproc=no
17929 fi
17930
17931 rm -f conftest.err conftest.$ac_ext
17932 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17933 $as_echo "$ac_header_preproc" >&6; }
17934
17935 # So? What about this header?
17936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17937 yes:no: )
17938 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17939 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17940 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17941 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17942 ac_header_preproc=yes
17943 ;;
17944 no:yes:* )
17945 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17946 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17947 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17948 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17949 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17950 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17951 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17952 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17953 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17954 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17955 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17956 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17957
17958 ;;
17959 esac
17960 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17961 $as_echo_n "checking for $ac_header... " >&6; }
17962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17963 $as_echo_n "(cached) " >&6
17964 else
17965 eval "$as_ac_Header=\$ac_header_preproc"
17966 fi
17967 ac_res=`eval 'as_val=${'$as_ac_Header'}
17968 $as_echo "$as_val"'`
17969 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17970 $as_echo "$ac_res" >&6; }
17971
17972 fi
17973 if test `eval 'as_val=${'$as_ac_Header'}
17974 $as_echo "$as_val"'` = yes; then
17975 cat >>confdefs.h <<_ACEOF
17976 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17977 _ACEOF
17978
17979 fi
17980
17981 done
17982
17983
17984
17985
17986
17987
17988 for ac_header in $ac_header_list
17989 do
17990 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17992 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17993 $as_echo_n "checking for $ac_header... " >&6; }
17994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17995 $as_echo_n "(cached) " >&6
17996 fi
17997 ac_res=`eval 'as_val=${'$as_ac_Header'}
17998 $as_echo "$as_val"'`
17999 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18000 $as_echo "$ac_res" >&6; }
18001 else
18002 # Is the header compilable?
18003 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18004 $as_echo_n "checking $ac_header usability... " >&6; }
18005 cat >conftest.$ac_ext <<_ACEOF
18006 /* confdefs.h. */
18007 _ACEOF
18008 cat confdefs.h >>conftest.$ac_ext
18009 cat >>conftest.$ac_ext <<_ACEOF
18010 /* end confdefs.h. */
18011 $ac_includes_default
18012 #include <$ac_header>
18013 _ACEOF
18014 rm -f conftest.$ac_objext
18015 if { (ac_try="$ac_compile"
18016 case "(($ac_try" in
18017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18018 *) ac_try_echo=$ac_try;;
18019 esac
18020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18021 $as_echo "$ac_try_echo") >&5
18022 (eval "$ac_compile") 2>conftest.er1
18023 ac_status=$?
18024 grep -v '^ *+' conftest.er1 >conftest.err
18025 rm -f conftest.er1
18026 cat conftest.err >&5
18027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028 (exit $ac_status); } && {
18029 test -z "$ac_c_werror_flag" ||
18030 test ! -s conftest.err
18031 } && test -s conftest.$ac_objext; then
18032 ac_header_compiler=yes
18033 else
18034 $as_echo "$as_me: failed program was:" >&5
18035 sed 's/^/| /' conftest.$ac_ext >&5
18036
18037 ac_header_compiler=no
18038 fi
18039
18040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18041 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18042 $as_echo "$ac_header_compiler" >&6; }
18043
18044 # Is the header present?
18045 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18046 $as_echo_n "checking $ac_header presence... " >&6; }
18047 cat >conftest.$ac_ext <<_ACEOF
18048 /* confdefs.h. */
18049 _ACEOF
18050 cat confdefs.h >>conftest.$ac_ext
18051 cat >>conftest.$ac_ext <<_ACEOF
18052 /* end confdefs.h. */
18053 #include <$ac_header>
18054 _ACEOF
18055 if { (ac_try="$ac_cpp conftest.$ac_ext"
18056 case "(($ac_try" in
18057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18058 *) ac_try_echo=$ac_try;;
18059 esac
18060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18061 $as_echo "$ac_try_echo") >&5
18062 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18063 ac_status=$?
18064 grep -v '^ *+' conftest.er1 >conftest.err
18065 rm -f conftest.er1
18066 cat conftest.err >&5
18067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); } >/dev/null && {
18069 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18070 test ! -s conftest.err
18071 }; then
18072 ac_header_preproc=yes
18073 else
18074 $as_echo "$as_me: failed program was:" >&5
18075 sed 's/^/| /' conftest.$ac_ext >&5
18076
18077 ac_header_preproc=no
18078 fi
18079
18080 rm -f conftest.err conftest.$ac_ext
18081 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18082 $as_echo "$ac_header_preproc" >&6; }
18083
18084 # So? What about this header?
18085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18086 yes:no: )
18087 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18088 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18089 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18090 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18091 ac_header_preproc=yes
18092 ;;
18093 no:yes:* )
18094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18095 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18097 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18098 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18099 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18100 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18101 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18102 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18103 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18104 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18105 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18106
18107 ;;
18108 esac
18109 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18110 $as_echo_n "checking for $ac_header... " >&6; }
18111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18112 $as_echo_n "(cached) " >&6
18113 else
18114 eval "$as_ac_Header=\$ac_header_preproc"
18115 fi
18116 ac_res=`eval 'as_val=${'$as_ac_Header'}
18117 $as_echo "$as_val"'`
18118 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18119 $as_echo "$ac_res" >&6; }
18120
18121 fi
18122 if test `eval 'as_val=${'$as_ac_Header'}
18123 $as_echo "$as_val"'` = yes; then
18124 cat >>confdefs.h <<_ACEOF
18125 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18126 _ACEOF
18127
18128 fi
18129
18130 done
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140 for ac_func in $ac_func_list
18141 do
18142 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18143 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18144 $as_echo_n "checking for $ac_func... " >&6; }
18145 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18146 $as_echo_n "(cached) " >&6
18147 else
18148 cat >conftest.$ac_ext <<_ACEOF
18149 /* confdefs.h. */
18150 _ACEOF
18151 cat confdefs.h >>conftest.$ac_ext
18152 cat >>conftest.$ac_ext <<_ACEOF
18153 /* end confdefs.h. */
18154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18156 #define $ac_func innocuous_$ac_func
18157
18158 /* System header to define __stub macros and hopefully few prototypes,
18159 which can conflict with char $ac_func (); below.
18160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18161 <limits.h> exists even on freestanding compilers. */
18162
18163 #ifdef __STDC__
18164 # include <limits.h>
18165 #else
18166 # include <assert.h>
18167 #endif
18168
18169 #undef $ac_func
18170
18171 /* Override any GCC internal prototype to avoid an error.
18172 Use char because int might match the return type of a GCC
18173 builtin and then its argument prototype would still apply. */
18174 #ifdef __cplusplus
18175 extern "C"
18176 #endif
18177 char $ac_func ();
18178 /* The GNU C library defines this for functions which it implements
18179 to always fail with ENOSYS. Some functions are actually named
18180 something starting with __ and the normal name is an alias. */
18181 #if defined __stub_$ac_func || defined __stub___$ac_func
18182 choke me
18183 #endif
18184
18185 int
18186 main ()
18187 {
18188 return $ac_func ();
18189 ;
18190 return 0;
18191 }
18192 _ACEOF
18193 rm -f conftest.$ac_objext conftest$ac_exeext
18194 if { (ac_try="$ac_link"
18195 case "(($ac_try" in
18196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18197 *) ac_try_echo=$ac_try;;
18198 esac
18199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18200 $as_echo "$ac_try_echo") >&5
18201 (eval "$ac_link") 2>conftest.er1
18202 ac_status=$?
18203 grep -v '^ *+' conftest.er1 >conftest.err
18204 rm -f conftest.er1
18205 cat conftest.err >&5
18206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207 (exit $ac_status); } && {
18208 test -z "$ac_c_werror_flag" ||
18209 test ! -s conftest.err
18210 } && test -s conftest$ac_exeext && {
18211 test "$cross_compiling" = yes ||
18212 $as_test_x conftest$ac_exeext
18213 }; then
18214 eval "$as_ac_var=yes"
18215 else
18216 $as_echo "$as_me: failed program was:" >&5
18217 sed 's/^/| /' conftest.$ac_ext >&5
18218
18219 eval "$as_ac_var=no"
18220 fi
18221
18222 rm -rf conftest.dSYM
18223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18224 conftest$ac_exeext conftest.$ac_ext
18225 fi
18226 ac_res=`eval 'as_val=${'$as_ac_var'}
18227 $as_echo "$as_val"'`
18228 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18229 $as_echo "$ac_res" >&6; }
18230 if test `eval 'as_val=${'$as_ac_var'}
18231 $as_echo "$as_val"'` = yes; then
18232 cat >>confdefs.h <<_ACEOF
18233 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18234 _ACEOF
18235
18236 fi
18237 done
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
18256 $as_echo_n "checking for working mktime... " >&6; }
18257 if test "${ac_cv_func_working_mktime+set}" = set; then
18258 $as_echo_n "(cached) " >&6
18259 else
18260 if test "$cross_compiling" = yes; then
18261 ac_cv_func_working_mktime=no
18262 else
18263 cat >conftest.$ac_ext <<_ACEOF
18264 /* confdefs.h. */
18265 _ACEOF
18266 cat confdefs.h >>conftest.$ac_ext
18267 cat >>conftest.$ac_ext <<_ACEOF
18268 /* end confdefs.h. */
18269 /* Test program from Paul Eggert and Tony Leneis. */
18270 #ifdef TIME_WITH_SYS_TIME
18271 # include <sys/time.h>
18272 # include <time.h>
18273 #else
18274 # ifdef HAVE_SYS_TIME_H
18275 # include <sys/time.h>
18276 # else
18277 # include <time.h>
18278 # endif
18279 #endif
18280
18281 #include <limits.h>
18282 #include <stdlib.h>
18283
18284 #ifdef HAVE_UNISTD_H
18285 # include <unistd.h>
18286 #endif
18287
18288 #ifndef HAVE_ALARM
18289 # define alarm(X) /* empty */
18290 #endif
18291
18292 /* Work around redefinition to rpl_putenv by other config tests. */
18293 #undef putenv
18294
18295 static time_t time_t_max;
18296 static time_t time_t_min;
18297
18298 /* Values we'll use to set the TZ environment variable. */
18299 static char *tz_strings[] = {
18300 (char *) 0, "TZ=GMT0", "TZ=JST-9",
18301 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
18302 };
18303 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
18304
18305 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
18306 Based on a problem report from Andreas Jaeger. */
18307 static int
18308 spring_forward_gap ()
18309 {
18310 /* glibc (up to about 1998-10-07) failed this test. */
18311 struct tm tm;
18312
18313 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18314 instead of "TZ=America/Vancouver" in order to detect the bug even
18315 on systems that don't support the Olson extension, or don't have the
18316 full zoneinfo tables installed. */
18317 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
18318
18319 tm.tm_year = 98;
18320 tm.tm_mon = 3;
18321 tm.tm_mday = 5;
18322 tm.tm_hour = 2;
18323 tm.tm_min = 0;
18324 tm.tm_sec = 0;
18325 tm.tm_isdst = -1;
18326 return mktime (&tm) != (time_t) -1;
18327 }
18328
18329 static int
18330 mktime_test1 (now)
18331 time_t now;
18332 {
18333 struct tm *lt;
18334 return ! (lt = localtime (&now)) || mktime (lt) == now;
18335 }
18336
18337 static int
18338 mktime_test (now)
18339 time_t now;
18340 {
18341 return (mktime_test1 (now)
18342 && mktime_test1 ((time_t) (time_t_max - now))
18343 && mktime_test1 ((time_t) (time_t_min + now)));
18344 }
18345
18346 static int
18347 irix_6_4_bug ()
18348 {
18349 /* Based on code from Ariel Faigon. */
18350 struct tm tm;
18351 tm.tm_year = 96;
18352 tm.tm_mon = 3;
18353 tm.tm_mday = 0;
18354 tm.tm_hour = 0;
18355 tm.tm_min = 0;
18356 tm.tm_sec = 0;
18357 tm.tm_isdst = -1;
18358 mktime (&tm);
18359 return tm.tm_mon == 2 && tm.tm_mday == 31;
18360 }
18361
18362 static int
18363 bigtime_test (j)
18364 int j;
18365 {
18366 struct tm tm;
18367 time_t now;
18368 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
18369 now = mktime (&tm);
18370 if (now != (time_t) -1)
18371 {
18372 struct tm *lt = localtime (&now);
18373 if (! (lt
18374 && lt->tm_year == tm.tm_year
18375 && lt->tm_mon == tm.tm_mon
18376 && lt->tm_mday == tm.tm_mday
18377 && lt->tm_hour == tm.tm_hour
18378 && lt->tm_min == tm.tm_min
18379 && lt->tm_sec == tm.tm_sec
18380 && lt->tm_yday == tm.tm_yday
18381 && lt->tm_wday == tm.tm_wday
18382 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
18383 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
18384 return 0;
18385 }
18386 return 1;
18387 }
18388
18389 static int
18390 year_2050_test ()
18391 {
18392 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
18393 ignoring leap seconds. */
18394 unsigned long int answer = 2527315200UL;
18395
18396 struct tm tm;
18397 time_t t;
18398 tm.tm_year = 2050 - 1900;
18399 tm.tm_mon = 2 - 1;
18400 tm.tm_mday = 1;
18401 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
18402 tm.tm_isdst = -1;
18403
18404 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18405 instead of "TZ=America/Vancouver" in order to detect the bug even
18406 on systems that don't support the Olson extension, or don't have the
18407 full zoneinfo tables installed. */
18408 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
18409
18410 t = mktime (&tm);
18411
18412 /* Check that the result is either a failure, or close enough
18413 to the correct answer that we can assume the discrepancy is
18414 due to leap seconds. */
18415 return (t == (time_t) -1
18416 || (0 < t && answer - 120 <= t && t <= answer + 120));
18417 }
18418
18419 int
18420 main ()
18421 {
18422 time_t t, delta;
18423 int i, j;
18424
18425 /* This test makes some buggy mktime implementations loop.
18426 Give up after 60 seconds; a mktime slower than that
18427 isn't worth using anyway. */
18428 alarm (60);
18429
18430 for (;;)
18431 {
18432 t = (time_t_max << 1) + 1;
18433 if (t <= time_t_max)
18434 break;
18435 time_t_max = t;
18436 }
18437 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
18438
18439 delta = time_t_max / 997; /* a suitable prime number */
18440 for (i = 0; i < N_STRINGS; i++)
18441 {
18442 if (tz_strings[i])
18443 putenv (tz_strings[i]);
18444
18445 for (t = 0; t <= time_t_max - delta; t += delta)
18446 if (! mktime_test (t))
18447 return 1;
18448 if (! (mktime_test ((time_t) 1)
18449 && mktime_test ((time_t) (60 * 60))
18450 && mktime_test ((time_t) (60 * 60 * 24))))
18451 return 1;
18452
18453 for (j = 1; ; j <<= 1)
18454 if (! bigtime_test (j))
18455 return 1;
18456 else if (INT_MAX / 2 < j)
18457 break;
18458 if (! bigtime_test (INT_MAX))
18459 return 1;
18460 }
18461 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18462 }
18463 _ACEOF
18464 rm -f conftest$ac_exeext
18465 if { (ac_try="$ac_link"
18466 case "(($ac_try" in
18467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18468 *) ac_try_echo=$ac_try;;
18469 esac
18470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18471 $as_echo "$ac_try_echo") >&5
18472 (eval "$ac_link") 2>&5
18473 ac_status=$?
18474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18476 { (case "(($ac_try" in
18477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18478 *) ac_try_echo=$ac_try;;
18479 esac
18480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18481 $as_echo "$ac_try_echo") >&5
18482 (eval "$ac_try") 2>&5
18483 ac_status=$?
18484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485 (exit $ac_status); }; }; then
18486 ac_cv_func_working_mktime=yes
18487 else
18488 $as_echo "$as_me: program exited with status $ac_status" >&5
18489 $as_echo "$as_me: failed program was:" >&5
18490 sed 's/^/| /' conftest.$ac_ext >&5
18491
18492 ( exit $ac_status )
18493 ac_cv_func_working_mktime=no
18494 fi
18495 rm -rf conftest.dSYM
18496 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18497 fi
18498
18499
18500 fi
18501 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
18502 $as_echo "$ac_cv_func_working_mktime" >&6; }
18503 if test $ac_cv_func_working_mktime = no; then
18504 case " $LIBOBJS " in
18505 *" mktime.$ac_objext "* ) ;;
18506 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
18507 ;;
18508 esac
18509
18510 fi
18511
18512 if test "$ac_cv_func_working_mktime" = no; then
18513
18514 cat >>confdefs.h <<\_ACEOF
18515 #define BROKEN_MKTIME 1
18516 _ACEOF
18517
18518 fi
18519
18520 ac_have_func=no # yes means we've found a way to get the load average.
18521
18522 # Make sure getloadavg.c is where it belongs, at configure-time.
18523 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
18524 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
18525 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
18526 { (exit 1); exit 1; }; }
18527
18528 ac_save_LIBS=$LIBS
18529
18530 # Check for getloadavg, but be sure not to touch the cache variable.
18531 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
18532 $as_echo_n "checking for getloadavg... " >&6; }
18533 if test "${ac_cv_func_getloadavg+set}" = set; then
18534 $as_echo_n "(cached) " >&6
18535 else
18536 cat >conftest.$ac_ext <<_ACEOF
18537 /* confdefs.h. */
18538 _ACEOF
18539 cat confdefs.h >>conftest.$ac_ext
18540 cat >>conftest.$ac_ext <<_ACEOF
18541 /* end confdefs.h. */
18542 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18544 #define getloadavg innocuous_getloadavg
18545
18546 /* System header to define __stub macros and hopefully few prototypes,
18547 which can conflict with char getloadavg (); below.
18548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18549 <limits.h> exists even on freestanding compilers. */
18550
18551 #ifdef __STDC__
18552 # include <limits.h>
18553 #else
18554 # include <assert.h>
18555 #endif
18556
18557 #undef getloadavg
18558
18559 /* Override any GCC internal prototype to avoid an error.
18560 Use char because int might match the return type of a GCC
18561 builtin and then its argument prototype would still apply. */
18562 #ifdef __cplusplus
18563 extern "C"
18564 #endif
18565 char getloadavg ();
18566 /* The GNU C library defines this for functions which it implements
18567 to always fail with ENOSYS. Some functions are actually named
18568 something starting with __ and the normal name is an alias. */
18569 #if defined __stub_getloadavg || defined __stub___getloadavg
18570 choke me
18571 #endif
18572
18573 int
18574 main ()
18575 {
18576 return getloadavg ();
18577 ;
18578 return 0;
18579 }
18580 _ACEOF
18581 rm -f conftest.$ac_objext conftest$ac_exeext
18582 if { (ac_try="$ac_link"
18583 case "(($ac_try" in
18584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18585 *) ac_try_echo=$ac_try;;
18586 esac
18587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18588 $as_echo "$ac_try_echo") >&5
18589 (eval "$ac_link") 2>conftest.er1
18590 ac_status=$?
18591 grep -v '^ *+' conftest.er1 >conftest.err
18592 rm -f conftest.er1
18593 cat conftest.err >&5
18594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595 (exit $ac_status); } && {
18596 test -z "$ac_c_werror_flag" ||
18597 test ! -s conftest.err
18598 } && test -s conftest$ac_exeext && {
18599 test "$cross_compiling" = yes ||
18600 $as_test_x conftest$ac_exeext
18601 }; then
18602 ac_cv_func_getloadavg=yes
18603 else
18604 $as_echo "$as_me: failed program was:" >&5
18605 sed 's/^/| /' conftest.$ac_ext >&5
18606
18607 ac_cv_func_getloadavg=no
18608 fi
18609
18610 rm -rf conftest.dSYM
18611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18612 conftest$ac_exeext conftest.$ac_ext
18613 fi
18614 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
18615 $as_echo "$ac_cv_func_getloadavg" >&6; }
18616 if test $ac_cv_func_getloadavg = yes; then
18617 exit 0
18618 else
18619 exit 1
18620 fi
18621 ) && ac_have_func=yes
18622
18623 # On HPUX9, an unprivileged user can get load averages through this function.
18624
18625 for ac_func in pstat_getdynamic
18626 do
18627 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18628 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18629 $as_echo_n "checking for $ac_func... " >&6; }
18630 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18631 $as_echo_n "(cached) " >&6
18632 else
18633 cat >conftest.$ac_ext <<_ACEOF
18634 /* confdefs.h. */
18635 _ACEOF
18636 cat confdefs.h >>conftest.$ac_ext
18637 cat >>conftest.$ac_ext <<_ACEOF
18638 /* end confdefs.h. */
18639 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18641 #define $ac_func innocuous_$ac_func
18642
18643 /* System header to define __stub macros and hopefully few prototypes,
18644 which can conflict with char $ac_func (); below.
18645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18646 <limits.h> exists even on freestanding compilers. */
18647
18648 #ifdef __STDC__
18649 # include <limits.h>
18650 #else
18651 # include <assert.h>
18652 #endif
18653
18654 #undef $ac_func
18655
18656 /* Override any GCC internal prototype to avoid an error.
18657 Use char because int might match the return type of a GCC
18658 builtin and then its argument prototype would still apply. */
18659 #ifdef __cplusplus
18660 extern "C"
18661 #endif
18662 char $ac_func ();
18663 /* The GNU C library defines this for functions which it implements
18664 to always fail with ENOSYS. Some functions are actually named
18665 something starting with __ and the normal name is an alias. */
18666 #if defined __stub_$ac_func || defined __stub___$ac_func
18667 choke me
18668 #endif
18669
18670 int
18671 main ()
18672 {
18673 return $ac_func ();
18674 ;
18675 return 0;
18676 }
18677 _ACEOF
18678 rm -f conftest.$ac_objext conftest$ac_exeext
18679 if { (ac_try="$ac_link"
18680 case "(($ac_try" in
18681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18682 *) ac_try_echo=$ac_try;;
18683 esac
18684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18685 $as_echo "$ac_try_echo") >&5
18686 (eval "$ac_link") 2>conftest.er1
18687 ac_status=$?
18688 grep -v '^ *+' conftest.er1 >conftest.err
18689 rm -f conftest.er1
18690 cat conftest.err >&5
18691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692 (exit $ac_status); } && {
18693 test -z "$ac_c_werror_flag" ||
18694 test ! -s conftest.err
18695 } && test -s conftest$ac_exeext && {
18696 test "$cross_compiling" = yes ||
18697 $as_test_x conftest$ac_exeext
18698 }; then
18699 eval "$as_ac_var=yes"
18700 else
18701 $as_echo "$as_me: failed program was:" >&5
18702 sed 's/^/| /' conftest.$ac_ext >&5
18703
18704 eval "$as_ac_var=no"
18705 fi
18706
18707 rm -rf conftest.dSYM
18708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18709 conftest$ac_exeext conftest.$ac_ext
18710 fi
18711 ac_res=`eval 'as_val=${'$as_ac_var'}
18712 $as_echo "$as_val"'`
18713 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18714 $as_echo "$ac_res" >&6; }
18715 if test `eval 'as_val=${'$as_ac_var'}
18716 $as_echo "$as_val"'` = yes; then
18717 cat >>confdefs.h <<_ACEOF
18718 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18719 _ACEOF
18720
18721 fi
18722 done
18723
18724
18725 # Solaris has libkstat which does not require root.
18726
18727 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
18728 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18729 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18730 $as_echo_n "(cached) " >&6
18731 else
18732 ac_check_lib_save_LIBS=$LIBS
18733 LIBS="-lkstat $LIBS"
18734 cat >conftest.$ac_ext <<_ACEOF
18735 /* confdefs.h. */
18736 _ACEOF
18737 cat confdefs.h >>conftest.$ac_ext
18738 cat >>conftest.$ac_ext <<_ACEOF
18739 /* end confdefs.h. */
18740
18741 /* Override any GCC internal prototype to avoid an error.
18742 Use char because int might match the return type of a GCC
18743 builtin and then its argument prototype would still apply. */
18744 #ifdef __cplusplus
18745 extern "C"
18746 #endif
18747 char kstat_open ();
18748 int
18749 main ()
18750 {
18751 return kstat_open ();
18752 ;
18753 return 0;
18754 }
18755 _ACEOF
18756 rm -f conftest.$ac_objext conftest$ac_exeext
18757 if { (ac_try="$ac_link"
18758 case "(($ac_try" in
18759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18760 *) ac_try_echo=$ac_try;;
18761 esac
18762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18763 $as_echo "$ac_try_echo") >&5
18764 (eval "$ac_link") 2>conftest.er1
18765 ac_status=$?
18766 grep -v '^ *+' conftest.er1 >conftest.err
18767 rm -f conftest.er1
18768 cat conftest.err >&5
18769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); } && {
18771 test -z "$ac_c_werror_flag" ||
18772 test ! -s conftest.err
18773 } && test -s conftest$ac_exeext && {
18774 test "$cross_compiling" = yes ||
18775 $as_test_x conftest$ac_exeext
18776 }; then
18777 ac_cv_lib_kstat_kstat_open=yes
18778 else
18779 $as_echo "$as_me: failed program was:" >&5
18780 sed 's/^/| /' conftest.$ac_ext >&5
18781
18782 ac_cv_lib_kstat_kstat_open=no
18783 fi
18784
18785 rm -rf conftest.dSYM
18786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18787 conftest$ac_exeext conftest.$ac_ext
18788 LIBS=$ac_check_lib_save_LIBS
18789 fi
18790 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
18791 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18792 if test $ac_cv_lib_kstat_kstat_open = yes; then
18793 cat >>confdefs.h <<_ACEOF
18794 #define HAVE_LIBKSTAT 1
18795 _ACEOF
18796
18797 LIBS="-lkstat $LIBS"
18798
18799 fi
18800
18801 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18802
18803 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18804 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18805 # to get the right answer into the cache.
18806 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18807 if test $ac_have_func = no; then
18808 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18809 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18810 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18811 $as_echo_n "(cached) " >&6
18812 else
18813 ac_check_lib_save_LIBS=$LIBS
18814 LIBS="-lelf $LIBS"
18815 cat >conftest.$ac_ext <<_ACEOF
18816 /* confdefs.h. */
18817 _ACEOF
18818 cat confdefs.h >>conftest.$ac_ext
18819 cat >>conftest.$ac_ext <<_ACEOF
18820 /* end confdefs.h. */
18821
18822 /* Override any GCC internal prototype to avoid an error.
18823 Use char because int might match the return type of a GCC
18824 builtin and then its argument prototype would still apply. */
18825 #ifdef __cplusplus
18826 extern "C"
18827 #endif
18828 char elf_begin ();
18829 int
18830 main ()
18831 {
18832 return elf_begin ();
18833 ;
18834 return 0;
18835 }
18836 _ACEOF
18837 rm -f conftest.$ac_objext conftest$ac_exeext
18838 if { (ac_try="$ac_link"
18839 case "(($ac_try" in
18840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18841 *) ac_try_echo=$ac_try;;
18842 esac
18843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18844 $as_echo "$ac_try_echo") >&5
18845 (eval "$ac_link") 2>conftest.er1
18846 ac_status=$?
18847 grep -v '^ *+' conftest.er1 >conftest.err
18848 rm -f conftest.er1
18849 cat conftest.err >&5
18850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); } && {
18852 test -z "$ac_c_werror_flag" ||
18853 test ! -s conftest.err
18854 } && test -s conftest$ac_exeext && {
18855 test "$cross_compiling" = yes ||
18856 $as_test_x conftest$ac_exeext
18857 }; then
18858 ac_cv_lib_elf_elf_begin=yes
18859 else
18860 $as_echo "$as_me: failed program was:" >&5
18861 sed 's/^/| /' conftest.$ac_ext >&5
18862
18863 ac_cv_lib_elf_elf_begin=no
18864 fi
18865
18866 rm -rf conftest.dSYM
18867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18868 conftest$ac_exeext conftest.$ac_ext
18869 LIBS=$ac_check_lib_save_LIBS
18870 fi
18871 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18872 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18873 if test $ac_cv_lib_elf_elf_begin = yes; then
18874 LIBS="-lelf $LIBS"
18875 fi
18876
18877 fi
18878 if test $ac_have_func = no; then
18879 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
18880 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18881 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18882 $as_echo_n "(cached) " >&6
18883 else
18884 ac_check_lib_save_LIBS=$LIBS
18885 LIBS="-lkvm $LIBS"
18886 cat >conftest.$ac_ext <<_ACEOF
18887 /* confdefs.h. */
18888 _ACEOF
18889 cat confdefs.h >>conftest.$ac_ext
18890 cat >>conftest.$ac_ext <<_ACEOF
18891 /* end confdefs.h. */
18892
18893 /* Override any GCC internal prototype to avoid an error.
18894 Use char because int might match the return type of a GCC
18895 builtin and then its argument prototype would still apply. */
18896 #ifdef __cplusplus
18897 extern "C"
18898 #endif
18899 char kvm_open ();
18900 int
18901 main ()
18902 {
18903 return kvm_open ();
18904 ;
18905 return 0;
18906 }
18907 _ACEOF
18908 rm -f conftest.$ac_objext conftest$ac_exeext
18909 if { (ac_try="$ac_link"
18910 case "(($ac_try" in
18911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18912 *) ac_try_echo=$ac_try;;
18913 esac
18914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18915 $as_echo "$ac_try_echo") >&5
18916 (eval "$ac_link") 2>conftest.er1
18917 ac_status=$?
18918 grep -v '^ *+' conftest.er1 >conftest.err
18919 rm -f conftest.er1
18920 cat conftest.err >&5
18921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); } && {
18923 test -z "$ac_c_werror_flag" ||
18924 test ! -s conftest.err
18925 } && test -s conftest$ac_exeext && {
18926 test "$cross_compiling" = yes ||
18927 $as_test_x conftest$ac_exeext
18928 }; then
18929 ac_cv_lib_kvm_kvm_open=yes
18930 else
18931 $as_echo "$as_me: failed program was:" >&5
18932 sed 's/^/| /' conftest.$ac_ext >&5
18933
18934 ac_cv_lib_kvm_kvm_open=no
18935 fi
18936
18937 rm -rf conftest.dSYM
18938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18939 conftest$ac_exeext conftest.$ac_ext
18940 LIBS=$ac_check_lib_save_LIBS
18941 fi
18942 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
18943 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18944 if test $ac_cv_lib_kvm_kvm_open = yes; then
18945 LIBS="-lkvm $LIBS"
18946 fi
18947
18948 # Check for the 4.4BSD definition of getloadavg.
18949 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18950 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18951 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18952 $as_echo_n "(cached) " >&6
18953 else
18954 ac_check_lib_save_LIBS=$LIBS
18955 LIBS="-lutil $LIBS"
18956 cat >conftest.$ac_ext <<_ACEOF
18957 /* confdefs.h. */
18958 _ACEOF
18959 cat confdefs.h >>conftest.$ac_ext
18960 cat >>conftest.$ac_ext <<_ACEOF
18961 /* end confdefs.h. */
18962
18963 /* Override any GCC internal prototype to avoid an error.
18964 Use char because int might match the return type of a GCC
18965 builtin and then its argument prototype would still apply. */
18966 #ifdef __cplusplus
18967 extern "C"
18968 #endif
18969 char getloadavg ();
18970 int
18971 main ()
18972 {
18973 return getloadavg ();
18974 ;
18975 return 0;
18976 }
18977 _ACEOF
18978 rm -f conftest.$ac_objext conftest$ac_exeext
18979 if { (ac_try="$ac_link"
18980 case "(($ac_try" in
18981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18982 *) ac_try_echo=$ac_try;;
18983 esac
18984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18985 $as_echo "$ac_try_echo") >&5
18986 (eval "$ac_link") 2>conftest.er1
18987 ac_status=$?
18988 grep -v '^ *+' conftest.er1 >conftest.err
18989 rm -f conftest.er1
18990 cat conftest.err >&5
18991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992 (exit $ac_status); } && {
18993 test -z "$ac_c_werror_flag" ||
18994 test ! -s conftest.err
18995 } && test -s conftest$ac_exeext && {
18996 test "$cross_compiling" = yes ||
18997 $as_test_x conftest$ac_exeext
18998 }; then
18999 ac_cv_lib_util_getloadavg=yes
19000 else
19001 $as_echo "$as_me: failed program was:" >&5
19002 sed 's/^/| /' conftest.$ac_ext >&5
19003
19004 ac_cv_lib_util_getloadavg=no
19005 fi
19006
19007 rm -rf conftest.dSYM
19008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19009 conftest$ac_exeext conftest.$ac_ext
19010 LIBS=$ac_check_lib_save_LIBS
19011 fi
19012 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
19013 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
19014 if test $ac_cv_lib_util_getloadavg = yes; then
19015 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
19016 fi
19017
19018 fi
19019
19020 if test $ac_have_func = no; then
19021 # There is a commonly available library for RS/6000 AIX.
19022 # Since it is not a standard part of AIX, it might be installed locally.
19023 ac_getloadavg_LIBS=$LIBS
19024 LIBS="-L/usr/local/lib $LIBS"
19025 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
19026 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
19027 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
19028 $as_echo_n "(cached) " >&6
19029 else
19030 ac_check_lib_save_LIBS=$LIBS
19031 LIBS="-lgetloadavg $LIBS"
19032 cat >conftest.$ac_ext <<_ACEOF
19033 /* confdefs.h. */
19034 _ACEOF
19035 cat confdefs.h >>conftest.$ac_ext
19036 cat >>conftest.$ac_ext <<_ACEOF
19037 /* end confdefs.h. */
19038
19039 /* Override any GCC internal prototype to avoid an error.
19040 Use char because int might match the return type of a GCC
19041 builtin and then its argument prototype would still apply. */
19042 #ifdef __cplusplus
19043 extern "C"
19044 #endif
19045 char getloadavg ();
19046 int
19047 main ()
19048 {
19049 return getloadavg ();
19050 ;
19051 return 0;
19052 }
19053 _ACEOF
19054 rm -f conftest.$ac_objext conftest$ac_exeext
19055 if { (ac_try="$ac_link"
19056 case "(($ac_try" in
19057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19058 *) ac_try_echo=$ac_try;;
19059 esac
19060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19061 $as_echo "$ac_try_echo") >&5
19062 (eval "$ac_link") 2>conftest.er1
19063 ac_status=$?
19064 grep -v '^ *+' conftest.er1 >conftest.err
19065 rm -f conftest.er1
19066 cat conftest.err >&5
19067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); } && {
19069 test -z "$ac_c_werror_flag" ||
19070 test ! -s conftest.err
19071 } && test -s conftest$ac_exeext && {
19072 test "$cross_compiling" = yes ||
19073 $as_test_x conftest$ac_exeext
19074 }; then
19075 ac_cv_lib_getloadavg_getloadavg=yes
19076 else
19077 $as_echo "$as_me: failed program was:" >&5
19078 sed 's/^/| /' conftest.$ac_ext >&5
19079
19080 ac_cv_lib_getloadavg_getloadavg=no
19081 fi
19082
19083 rm -rf conftest.dSYM
19084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19085 conftest$ac_exeext conftest.$ac_ext
19086 LIBS=$ac_check_lib_save_LIBS
19087 fi
19088 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
19089 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
19090 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
19091 LIBS="-lgetloadavg $LIBS"
19092 else
19093 LIBS=$ac_getloadavg_LIBS
19094 fi
19095
19096 fi
19097
19098 # Make sure it is really in the library, if we think we found it,
19099 # otherwise set up the replacement function.
19100
19101 for ac_func in getloadavg
19102 do
19103 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19104 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19105 $as_echo_n "checking for $ac_func... " >&6; }
19106 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19107 $as_echo_n "(cached) " >&6
19108 else
19109 cat >conftest.$ac_ext <<_ACEOF
19110 /* confdefs.h. */
19111 _ACEOF
19112 cat confdefs.h >>conftest.$ac_ext
19113 cat >>conftest.$ac_ext <<_ACEOF
19114 /* end confdefs.h. */
19115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19117 #define $ac_func innocuous_$ac_func
19118
19119 /* System header to define __stub macros and hopefully few prototypes,
19120 which can conflict with char $ac_func (); below.
19121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19122 <limits.h> exists even on freestanding compilers. */
19123
19124 #ifdef __STDC__
19125 # include <limits.h>
19126 #else
19127 # include <assert.h>
19128 #endif
19129
19130 #undef $ac_func
19131
19132 /* Override any GCC internal prototype to avoid an error.
19133 Use char because int might match the return type of a GCC
19134 builtin and then its argument prototype would still apply. */
19135 #ifdef __cplusplus
19136 extern "C"
19137 #endif
19138 char $ac_func ();
19139 /* The GNU C library defines this for functions which it implements
19140 to always fail with ENOSYS. Some functions are actually named
19141 something starting with __ and the normal name is an alias. */
19142 #if defined __stub_$ac_func || defined __stub___$ac_func
19143 choke me
19144 #endif
19145
19146 int
19147 main ()
19148 {
19149 return $ac_func ();
19150 ;
19151 return 0;
19152 }
19153 _ACEOF
19154 rm -f conftest.$ac_objext conftest$ac_exeext
19155 if { (ac_try="$ac_link"
19156 case "(($ac_try" in
19157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19158 *) ac_try_echo=$ac_try;;
19159 esac
19160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19161 $as_echo "$ac_try_echo") >&5
19162 (eval "$ac_link") 2>conftest.er1
19163 ac_status=$?
19164 grep -v '^ *+' conftest.er1 >conftest.err
19165 rm -f conftest.er1
19166 cat conftest.err >&5
19167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168 (exit $ac_status); } && {
19169 test -z "$ac_c_werror_flag" ||
19170 test ! -s conftest.err
19171 } && test -s conftest$ac_exeext && {
19172 test "$cross_compiling" = yes ||
19173 $as_test_x conftest$ac_exeext
19174 }; then
19175 eval "$as_ac_var=yes"
19176 else
19177 $as_echo "$as_me: failed program was:" >&5
19178 sed 's/^/| /' conftest.$ac_ext >&5
19179
19180 eval "$as_ac_var=no"
19181 fi
19182
19183 rm -rf conftest.dSYM
19184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19185 conftest$ac_exeext conftest.$ac_ext
19186 fi
19187 ac_res=`eval 'as_val=${'$as_ac_var'}
19188 $as_echo "$as_val"'`
19189 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19190 $as_echo "$ac_res" >&6; }
19191 if test `eval 'as_val=${'$as_ac_var'}
19192 $as_echo "$as_val"'` = yes; then
19193 cat >>confdefs.h <<_ACEOF
19194 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19195 _ACEOF
19196
19197 else
19198 case " $LIBOBJS " in
19199 *" getloadavg.$ac_objext "* ) ;;
19200 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
19201 ;;
19202 esac
19203
19204
19205 cat >>confdefs.h <<\_ACEOF
19206 #define C_GETLOADAVG 1
19207 _ACEOF
19208
19209 # Figure out what our getloadavg.c needs.
19210 ac_have_func=no
19211 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19212 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19213 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
19214 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19215 $as_echo_n "(cached) " >&6
19216 fi
19217 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19218 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19219 else
19220 # Is the header compilable?
19221 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
19222 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
19223 cat >conftest.$ac_ext <<_ACEOF
19224 /* confdefs.h. */
19225 _ACEOF
19226 cat confdefs.h >>conftest.$ac_ext
19227 cat >>conftest.$ac_ext <<_ACEOF
19228 /* end confdefs.h. */
19229 $ac_includes_default
19230 #include <sys/dg_sys_info.h>
19231 _ACEOF
19232 rm -f conftest.$ac_objext
19233 if { (ac_try="$ac_compile"
19234 case "(($ac_try" in
19235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19236 *) ac_try_echo=$ac_try;;
19237 esac
19238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19239 $as_echo "$ac_try_echo") >&5
19240 (eval "$ac_compile") 2>conftest.er1
19241 ac_status=$?
19242 grep -v '^ *+' conftest.er1 >conftest.err
19243 rm -f conftest.er1
19244 cat conftest.err >&5
19245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 (exit $ac_status); } && {
19247 test -z "$ac_c_werror_flag" ||
19248 test ! -s conftest.err
19249 } && test -s conftest.$ac_objext; then
19250 ac_header_compiler=yes
19251 else
19252 $as_echo "$as_me: failed program was:" >&5
19253 sed 's/^/| /' conftest.$ac_ext >&5
19254
19255 ac_header_compiler=no
19256 fi
19257
19258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19259 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19260 $as_echo "$ac_header_compiler" >&6; }
19261
19262 # Is the header present?
19263 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
19264 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
19265 cat >conftest.$ac_ext <<_ACEOF
19266 /* confdefs.h. */
19267 _ACEOF
19268 cat confdefs.h >>conftest.$ac_ext
19269 cat >>conftest.$ac_ext <<_ACEOF
19270 /* end confdefs.h. */
19271 #include <sys/dg_sys_info.h>
19272 _ACEOF
19273 if { (ac_try="$ac_cpp conftest.$ac_ext"
19274 case "(($ac_try" in
19275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19276 *) ac_try_echo=$ac_try;;
19277 esac
19278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19279 $as_echo "$ac_try_echo") >&5
19280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19281 ac_status=$?
19282 grep -v '^ *+' conftest.er1 >conftest.err
19283 rm -f conftest.er1
19284 cat conftest.err >&5
19285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286 (exit $ac_status); } >/dev/null && {
19287 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19288 test ! -s conftest.err
19289 }; then
19290 ac_header_preproc=yes
19291 else
19292 $as_echo "$as_me: failed program was:" >&5
19293 sed 's/^/| /' conftest.$ac_ext >&5
19294
19295 ac_header_preproc=no
19296 fi
19297
19298 rm -f conftest.err conftest.$ac_ext
19299 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19300 $as_echo "$ac_header_preproc" >&6; }
19301
19302 # So? What about this header?
19303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19304 yes:no: )
19305 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
19306 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19307 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
19308 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
19309 ac_header_preproc=yes
19310 ;;
19311 no:yes:* )
19312 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
19313 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
19314 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
19315 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
19316 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
19317 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
19318 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
19319 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
19320 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
19321 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
19322 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
19323 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
19324
19325 ;;
19326 esac
19327 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19328 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
19329 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19330 $as_echo_n "(cached) " >&6
19331 else
19332 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
19333 fi
19334 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19335 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19336
19337 fi
19338 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
19339 ac_have_func=yes
19340
19341 cat >>confdefs.h <<\_ACEOF
19342 #define DGUX 1
19343 _ACEOF
19344
19345
19346 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
19347 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19348 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
19349 $as_echo_n "(cached) " >&6
19350 else
19351 ac_check_lib_save_LIBS=$LIBS
19352 LIBS="-ldgc $LIBS"
19353 cat >conftest.$ac_ext <<_ACEOF
19354 /* confdefs.h. */
19355 _ACEOF
19356 cat confdefs.h >>conftest.$ac_ext
19357 cat >>conftest.$ac_ext <<_ACEOF
19358 /* end confdefs.h. */
19359
19360 /* Override any GCC internal prototype to avoid an error.
19361 Use char because int might match the return type of a GCC
19362 builtin and then its argument prototype would still apply. */
19363 #ifdef __cplusplus
19364 extern "C"
19365 #endif
19366 char dg_sys_info ();
19367 int
19368 main ()
19369 {
19370 return dg_sys_info ();
19371 ;
19372 return 0;
19373 }
19374 _ACEOF
19375 rm -f conftest.$ac_objext conftest$ac_exeext
19376 if { (ac_try="$ac_link"
19377 case "(($ac_try" in
19378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19379 *) ac_try_echo=$ac_try;;
19380 esac
19381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19382 $as_echo "$ac_try_echo") >&5
19383 (eval "$ac_link") 2>conftest.er1
19384 ac_status=$?
19385 grep -v '^ *+' conftest.er1 >conftest.err
19386 rm -f conftest.er1
19387 cat conftest.err >&5
19388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); } && {
19390 test -z "$ac_c_werror_flag" ||
19391 test ! -s conftest.err
19392 } && test -s conftest$ac_exeext && {
19393 test "$cross_compiling" = yes ||
19394 $as_test_x conftest$ac_exeext
19395 }; then
19396 ac_cv_lib_dgc_dg_sys_info=yes
19397 else
19398 $as_echo "$as_me: failed program was:" >&5
19399 sed 's/^/| /' conftest.$ac_ext >&5
19400
19401 ac_cv_lib_dgc_dg_sys_info=no
19402 fi
19403
19404 rm -rf conftest.dSYM
19405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19406 conftest$ac_exeext conftest.$ac_ext
19407 LIBS=$ac_check_lib_save_LIBS
19408 fi
19409 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19410 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19411 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
19412 cat >>confdefs.h <<_ACEOF
19413 #define HAVE_LIBDGC 1
19414 _ACEOF
19415
19416 LIBS="-ldgc $LIBS"
19417
19418 fi
19419
19420 fi
19421
19422
19423
19424 if test "${ac_cv_header_locale_h+set}" = set; then
19425 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19426 $as_echo_n "checking for locale.h... " >&6; }
19427 if test "${ac_cv_header_locale_h+set}" = set; then
19428 $as_echo_n "(cached) " >&6
19429 fi
19430 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19431 $as_echo "$ac_cv_header_locale_h" >&6; }
19432 else
19433 # Is the header compilable?
19434 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
19435 $as_echo_n "checking locale.h usability... " >&6; }
19436 cat >conftest.$ac_ext <<_ACEOF
19437 /* confdefs.h. */
19438 _ACEOF
19439 cat confdefs.h >>conftest.$ac_ext
19440 cat >>conftest.$ac_ext <<_ACEOF
19441 /* end confdefs.h. */
19442 $ac_includes_default
19443 #include <locale.h>
19444 _ACEOF
19445 rm -f conftest.$ac_objext
19446 if { (ac_try="$ac_compile"
19447 case "(($ac_try" in
19448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19449 *) ac_try_echo=$ac_try;;
19450 esac
19451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19452 $as_echo "$ac_try_echo") >&5
19453 (eval "$ac_compile") 2>conftest.er1
19454 ac_status=$?
19455 grep -v '^ *+' conftest.er1 >conftest.err
19456 rm -f conftest.er1
19457 cat conftest.err >&5
19458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); } && {
19460 test -z "$ac_c_werror_flag" ||
19461 test ! -s conftest.err
19462 } && test -s conftest.$ac_objext; then
19463 ac_header_compiler=yes
19464 else
19465 $as_echo "$as_me: failed program was:" >&5
19466 sed 's/^/| /' conftest.$ac_ext >&5
19467
19468 ac_header_compiler=no
19469 fi
19470
19471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19472 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19473 $as_echo "$ac_header_compiler" >&6; }
19474
19475 # Is the header present?
19476 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
19477 $as_echo_n "checking locale.h presence... " >&6; }
19478 cat >conftest.$ac_ext <<_ACEOF
19479 /* confdefs.h. */
19480 _ACEOF
19481 cat confdefs.h >>conftest.$ac_ext
19482 cat >>conftest.$ac_ext <<_ACEOF
19483 /* end confdefs.h. */
19484 #include <locale.h>
19485 _ACEOF
19486 if { (ac_try="$ac_cpp conftest.$ac_ext"
19487 case "(($ac_try" in
19488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19489 *) ac_try_echo=$ac_try;;
19490 esac
19491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19492 $as_echo "$ac_try_echo") >&5
19493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19494 ac_status=$?
19495 grep -v '^ *+' conftest.er1 >conftest.err
19496 rm -f conftest.er1
19497 cat conftest.err >&5
19498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); } >/dev/null && {
19500 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19501 test ! -s conftest.err
19502 }; then
19503 ac_header_preproc=yes
19504 else
19505 $as_echo "$as_me: failed program was:" >&5
19506 sed 's/^/| /' conftest.$ac_ext >&5
19507
19508 ac_header_preproc=no
19509 fi
19510
19511 rm -f conftest.err conftest.$ac_ext
19512 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19513 $as_echo "$ac_header_preproc" >&6; }
19514
19515 # So? What about this header?
19516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19517 yes:no: )
19518 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
19519 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19520 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
19521 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
19522 ac_header_preproc=yes
19523 ;;
19524 no:yes:* )
19525 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
19526 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
19527 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
19528 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
19529 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
19530 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
19531 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
19532 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
19533 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
19534 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
19535 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
19536 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
19537
19538 ;;
19539 esac
19540 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19541 $as_echo_n "checking for locale.h... " >&6; }
19542 if test "${ac_cv_header_locale_h+set}" = set; then
19543 $as_echo_n "(cached) " >&6
19544 else
19545 ac_cv_header_locale_h=$ac_header_preproc
19546 fi
19547 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19548 $as_echo "$ac_cv_header_locale_h" >&6; }
19549
19550 fi
19551
19552
19553
19554 for ac_func in setlocale
19555 do
19556 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19557 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19558 $as_echo_n "checking for $ac_func... " >&6; }
19559 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19560 $as_echo_n "(cached) " >&6
19561 else
19562 cat >conftest.$ac_ext <<_ACEOF
19563 /* confdefs.h. */
19564 _ACEOF
19565 cat confdefs.h >>conftest.$ac_ext
19566 cat >>conftest.$ac_ext <<_ACEOF
19567 /* end confdefs.h. */
19568 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19570 #define $ac_func innocuous_$ac_func
19571
19572 /* System header to define __stub macros and hopefully few prototypes,
19573 which can conflict with char $ac_func (); below.
19574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19575 <limits.h> exists even on freestanding compilers. */
19576
19577 #ifdef __STDC__
19578 # include <limits.h>
19579 #else
19580 # include <assert.h>
19581 #endif
19582
19583 #undef $ac_func
19584
19585 /* Override any GCC internal prototype to avoid an error.
19586 Use char because int might match the return type of a GCC
19587 builtin and then its argument prototype would still apply. */
19588 #ifdef __cplusplus
19589 extern "C"
19590 #endif
19591 char $ac_func ();
19592 /* The GNU C library defines this for functions which it implements
19593 to always fail with ENOSYS. Some functions are actually named
19594 something starting with __ and the normal name is an alias. */
19595 #if defined __stub_$ac_func || defined __stub___$ac_func
19596 choke me
19597 #endif
19598
19599 int
19600 main ()
19601 {
19602 return $ac_func ();
19603 ;
19604 return 0;
19605 }
19606 _ACEOF
19607 rm -f conftest.$ac_objext conftest$ac_exeext
19608 if { (ac_try="$ac_link"
19609 case "(($ac_try" in
19610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19611 *) ac_try_echo=$ac_try;;
19612 esac
19613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19614 $as_echo "$ac_try_echo") >&5
19615 (eval "$ac_link") 2>conftest.er1
19616 ac_status=$?
19617 grep -v '^ *+' conftest.er1 >conftest.err
19618 rm -f conftest.er1
19619 cat conftest.err >&5
19620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); } && {
19622 test -z "$ac_c_werror_flag" ||
19623 test ! -s conftest.err
19624 } && test -s conftest$ac_exeext && {
19625 test "$cross_compiling" = yes ||
19626 $as_test_x conftest$ac_exeext
19627 }; then
19628 eval "$as_ac_var=yes"
19629 else
19630 $as_echo "$as_me: failed program was:" >&5
19631 sed 's/^/| /' conftest.$ac_ext >&5
19632
19633 eval "$as_ac_var=no"
19634 fi
19635
19636 rm -rf conftest.dSYM
19637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19638 conftest$ac_exeext conftest.$ac_ext
19639 fi
19640 ac_res=`eval 'as_val=${'$as_ac_var'}
19641 $as_echo "$as_val"'`
19642 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19643 $as_echo "$ac_res" >&6; }
19644 if test `eval 'as_val=${'$as_ac_var'}
19645 $as_echo "$as_val"'` = yes; then
19646 cat >>confdefs.h <<_ACEOF
19647 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19648 _ACEOF
19649
19650 fi
19651 done
19652
19653
19654 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19655 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19656 # Irix 4.0.5F has the header but not the library.
19657 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19658 ac_have_func=yes
19659
19660 cat >>confdefs.h <<\_ACEOF
19661 #define SVR4 1
19662 _ACEOF
19663
19664 fi
19665
19666 if test $ac_have_func = no; then
19667 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19668 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19669 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19670 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19671 $as_echo_n "(cached) " >&6
19672 fi
19673 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19674 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19675 else
19676 # Is the header compilable?
19677 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
19678 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
19679 cat >conftest.$ac_ext <<_ACEOF
19680 /* confdefs.h. */
19681 _ACEOF
19682 cat confdefs.h >>conftest.$ac_ext
19683 cat >>conftest.$ac_ext <<_ACEOF
19684 /* end confdefs.h. */
19685 $ac_includes_default
19686 #include <inq_stats/cpustats.h>
19687 _ACEOF
19688 rm -f conftest.$ac_objext
19689 if { (ac_try="$ac_compile"
19690 case "(($ac_try" in
19691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19692 *) ac_try_echo=$ac_try;;
19693 esac
19694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19695 $as_echo "$ac_try_echo") >&5
19696 (eval "$ac_compile") 2>conftest.er1
19697 ac_status=$?
19698 grep -v '^ *+' conftest.er1 >conftest.err
19699 rm -f conftest.er1
19700 cat conftest.err >&5
19701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); } && {
19703 test -z "$ac_c_werror_flag" ||
19704 test ! -s conftest.err
19705 } && test -s conftest.$ac_objext; then
19706 ac_header_compiler=yes
19707 else
19708 $as_echo "$as_me: failed program was:" >&5
19709 sed 's/^/| /' conftest.$ac_ext >&5
19710
19711 ac_header_compiler=no
19712 fi
19713
19714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19715 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19716 $as_echo "$ac_header_compiler" >&6; }
19717
19718 # Is the header present?
19719 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
19720 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
19721 cat >conftest.$ac_ext <<_ACEOF
19722 /* confdefs.h. */
19723 _ACEOF
19724 cat confdefs.h >>conftest.$ac_ext
19725 cat >>conftest.$ac_ext <<_ACEOF
19726 /* end confdefs.h. */
19727 #include <inq_stats/cpustats.h>
19728 _ACEOF
19729 if { (ac_try="$ac_cpp conftest.$ac_ext"
19730 case "(($ac_try" in
19731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19732 *) ac_try_echo=$ac_try;;
19733 esac
19734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19735 $as_echo "$ac_try_echo") >&5
19736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19737 ac_status=$?
19738 grep -v '^ *+' conftest.er1 >conftest.err
19739 rm -f conftest.er1
19740 cat conftest.err >&5
19741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); } >/dev/null && {
19743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19744 test ! -s conftest.err
19745 }; then
19746 ac_header_preproc=yes
19747 else
19748 $as_echo "$as_me: failed program was:" >&5
19749 sed 's/^/| /' conftest.$ac_ext >&5
19750
19751 ac_header_preproc=no
19752 fi
19753
19754 rm -f conftest.err conftest.$ac_ext
19755 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19756 $as_echo "$ac_header_preproc" >&6; }
19757
19758 # So? What about this header?
19759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19760 yes:no: )
19761 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19762 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19763 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
19764 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
19765 ac_header_preproc=yes
19766 ;;
19767 no:yes:* )
19768 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
19769 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
19770 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
19771 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
19772 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
19773 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
19774 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19775 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19776 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19777 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
19778 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
19779 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19780
19781 ;;
19782 esac
19783 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19784 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19785 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19786 $as_echo_n "(cached) " >&6
19787 else
19788 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19789 fi
19790 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19791 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19792
19793 fi
19794 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19795 ac_have_func=yes
19796
19797 cat >>confdefs.h <<\_ACEOF
19798 #define UMAX 1
19799 _ACEOF
19800
19801
19802 cat >>confdefs.h <<\_ACEOF
19803 #define UMAX4_3 1
19804 _ACEOF
19805
19806 fi
19807
19808
19809 fi
19810
19811 if test $ac_have_func = no; then
19812 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19813 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19814 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19815 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19816 $as_echo_n "(cached) " >&6
19817 fi
19818 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19819 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19820 else
19821 # Is the header compilable?
19822 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19823 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
19824 cat >conftest.$ac_ext <<_ACEOF
19825 /* confdefs.h. */
19826 _ACEOF
19827 cat confdefs.h >>conftest.$ac_ext
19828 cat >>conftest.$ac_ext <<_ACEOF
19829 /* end confdefs.h. */
19830 $ac_includes_default
19831 #include <sys/cpustats.h>
19832 _ACEOF
19833 rm -f conftest.$ac_objext
19834 if { (ac_try="$ac_compile"
19835 case "(($ac_try" in
19836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19837 *) ac_try_echo=$ac_try;;
19838 esac
19839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19840 $as_echo "$ac_try_echo") >&5
19841 (eval "$ac_compile") 2>conftest.er1
19842 ac_status=$?
19843 grep -v '^ *+' conftest.er1 >conftest.err
19844 rm -f conftest.er1
19845 cat conftest.err >&5
19846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); } && {
19848 test -z "$ac_c_werror_flag" ||
19849 test ! -s conftest.err
19850 } && test -s conftest.$ac_objext; then
19851 ac_header_compiler=yes
19852 else
19853 $as_echo "$as_me: failed program was:" >&5
19854 sed 's/^/| /' conftest.$ac_ext >&5
19855
19856 ac_header_compiler=no
19857 fi
19858
19859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19860 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19861 $as_echo "$ac_header_compiler" >&6; }
19862
19863 # Is the header present?
19864 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19865 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
19866 cat >conftest.$ac_ext <<_ACEOF
19867 /* confdefs.h. */
19868 _ACEOF
19869 cat confdefs.h >>conftest.$ac_ext
19870 cat >>conftest.$ac_ext <<_ACEOF
19871 /* end confdefs.h. */
19872 #include <sys/cpustats.h>
19873 _ACEOF
19874 if { (ac_try="$ac_cpp conftest.$ac_ext"
19875 case "(($ac_try" in
19876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19877 *) ac_try_echo=$ac_try;;
19878 esac
19879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19880 $as_echo "$ac_try_echo") >&5
19881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19882 ac_status=$?
19883 grep -v '^ *+' conftest.er1 >conftest.err
19884 rm -f conftest.er1
19885 cat conftest.err >&5
19886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); } >/dev/null && {
19888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19889 test ! -s conftest.err
19890 }; then
19891 ac_header_preproc=yes
19892 else
19893 $as_echo "$as_me: failed program was:" >&5
19894 sed 's/^/| /' conftest.$ac_ext >&5
19895
19896 ac_header_preproc=no
19897 fi
19898
19899 rm -f conftest.err conftest.$ac_ext
19900 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19901 $as_echo "$ac_header_preproc" >&6; }
19902
19903 # So? What about this header?
19904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19905 yes:no: )
19906 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19907 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19908 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19909 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19910 ac_header_preproc=yes
19911 ;;
19912 no:yes:* )
19913 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19914 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19915 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19916 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19917 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19918 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19919 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19920 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19921 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19922 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19923 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19924 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19925
19926 ;;
19927 esac
19928 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19929 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19930 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19931 $as_echo_n "(cached) " >&6
19932 else
19933 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19934 fi
19935 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19936 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19937
19938 fi
19939 if test $ac_cv_header_sys_cpustats_h = yes; then
19940 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19941 #define UMAX 1
19942 _ACEOF
19943
19944 fi
19945
19946
19947 fi
19948
19949 if test $ac_have_func = no; then
19950
19951 for ac_header in mach/mach.h
19952 do
19953 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19955 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19956 $as_echo_n "checking for $ac_header... " >&6; }
19957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19958 $as_echo_n "(cached) " >&6
19959 fi
19960 ac_res=`eval 'as_val=${'$as_ac_Header'}
19961 $as_echo "$as_val"'`
19962 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19963 $as_echo "$ac_res" >&6; }
19964 else
19965 # Is the header compilable?
19966 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19967 $as_echo_n "checking $ac_header usability... " >&6; }
19968 cat >conftest.$ac_ext <<_ACEOF
19969 /* confdefs.h. */
19970 _ACEOF
19971 cat confdefs.h >>conftest.$ac_ext
19972 cat >>conftest.$ac_ext <<_ACEOF
19973 /* end confdefs.h. */
19974 $ac_includes_default
19975 #include <$ac_header>
19976 _ACEOF
19977 rm -f conftest.$ac_objext
19978 if { (ac_try="$ac_compile"
19979 case "(($ac_try" in
19980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19981 *) ac_try_echo=$ac_try;;
19982 esac
19983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19984 $as_echo "$ac_try_echo") >&5
19985 (eval "$ac_compile") 2>conftest.er1
19986 ac_status=$?
19987 grep -v '^ *+' conftest.er1 >conftest.err
19988 rm -f conftest.er1
19989 cat conftest.err >&5
19990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991 (exit $ac_status); } && {
19992 test -z "$ac_c_werror_flag" ||
19993 test ! -s conftest.err
19994 } && test -s conftest.$ac_objext; then
19995 ac_header_compiler=yes
19996 else
19997 $as_echo "$as_me: failed program was:" >&5
19998 sed 's/^/| /' conftest.$ac_ext >&5
19999
20000 ac_header_compiler=no
20001 fi
20002
20003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20004 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20005 $as_echo "$ac_header_compiler" >&6; }
20006
20007 # Is the header present?
20008 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20009 $as_echo_n "checking $ac_header presence... " >&6; }
20010 cat >conftest.$ac_ext <<_ACEOF
20011 /* confdefs.h. */
20012 _ACEOF
20013 cat confdefs.h >>conftest.$ac_ext
20014 cat >>conftest.$ac_ext <<_ACEOF
20015 /* end confdefs.h. */
20016 #include <$ac_header>
20017 _ACEOF
20018 if { (ac_try="$ac_cpp conftest.$ac_ext"
20019 case "(($ac_try" in
20020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20021 *) ac_try_echo=$ac_try;;
20022 esac
20023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20024 $as_echo "$ac_try_echo") >&5
20025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20026 ac_status=$?
20027 grep -v '^ *+' conftest.er1 >conftest.err
20028 rm -f conftest.er1
20029 cat conftest.err >&5
20030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031 (exit $ac_status); } >/dev/null && {
20032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20033 test ! -s conftest.err
20034 }; then
20035 ac_header_preproc=yes
20036 else
20037 $as_echo "$as_me: failed program was:" >&5
20038 sed 's/^/| /' conftest.$ac_ext >&5
20039
20040 ac_header_preproc=no
20041 fi
20042
20043 rm -f conftest.err conftest.$ac_ext
20044 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20045 $as_echo "$ac_header_preproc" >&6; }
20046
20047 # So? What about this header?
20048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20049 yes:no: )
20050 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20051 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20052 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20053 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20054 ac_header_preproc=yes
20055 ;;
20056 no:yes:* )
20057 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20058 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20059 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20060 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20061 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20062 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20063 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20064 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20066 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20068 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20069
20070 ;;
20071 esac
20072 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20073 $as_echo_n "checking for $ac_header... " >&6; }
20074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20075 $as_echo_n "(cached) " >&6
20076 else
20077 eval "$as_ac_Header=\$ac_header_preproc"
20078 fi
20079 ac_res=`eval 'as_val=${'$as_ac_Header'}
20080 $as_echo "$as_val"'`
20081 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20082 $as_echo "$ac_res" >&6; }
20083
20084 fi
20085 if test `eval 'as_val=${'$as_ac_Header'}
20086 $as_echo "$as_val"'` = yes; then
20087 cat >>confdefs.h <<_ACEOF
20088 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20089 _ACEOF
20090
20091 fi
20092
20093 done
20094
20095 fi
20096
20097
20098 for ac_header in nlist.h
20099 do
20100 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20102 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20103 $as_echo_n "checking for $ac_header... " >&6; }
20104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20105 $as_echo_n "(cached) " >&6
20106 fi
20107 ac_res=`eval 'as_val=${'$as_ac_Header'}
20108 $as_echo "$as_val"'`
20109 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20110 $as_echo "$ac_res" >&6; }
20111 else
20112 # Is the header compilable?
20113 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20114 $as_echo_n "checking $ac_header usability... " >&6; }
20115 cat >conftest.$ac_ext <<_ACEOF
20116 /* confdefs.h. */
20117 _ACEOF
20118 cat confdefs.h >>conftest.$ac_ext
20119 cat >>conftest.$ac_ext <<_ACEOF
20120 /* end confdefs.h. */
20121 $ac_includes_default
20122 #include <$ac_header>
20123 _ACEOF
20124 rm -f conftest.$ac_objext
20125 if { (ac_try="$ac_compile"
20126 case "(($ac_try" in
20127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20128 *) ac_try_echo=$ac_try;;
20129 esac
20130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20131 $as_echo "$ac_try_echo") >&5
20132 (eval "$ac_compile") 2>conftest.er1
20133 ac_status=$?
20134 grep -v '^ *+' conftest.er1 >conftest.err
20135 rm -f conftest.er1
20136 cat conftest.err >&5
20137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); } && {
20139 test -z "$ac_c_werror_flag" ||
20140 test ! -s conftest.err
20141 } && test -s conftest.$ac_objext; then
20142 ac_header_compiler=yes
20143 else
20144 $as_echo "$as_me: failed program was:" >&5
20145 sed 's/^/| /' conftest.$ac_ext >&5
20146
20147 ac_header_compiler=no
20148 fi
20149
20150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20151 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20152 $as_echo "$ac_header_compiler" >&6; }
20153
20154 # Is the header present?
20155 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20156 $as_echo_n "checking $ac_header presence... " >&6; }
20157 cat >conftest.$ac_ext <<_ACEOF
20158 /* confdefs.h. */
20159 _ACEOF
20160 cat confdefs.h >>conftest.$ac_ext
20161 cat >>conftest.$ac_ext <<_ACEOF
20162 /* end confdefs.h. */
20163 #include <$ac_header>
20164 _ACEOF
20165 if { (ac_try="$ac_cpp conftest.$ac_ext"
20166 case "(($ac_try" in
20167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20168 *) ac_try_echo=$ac_try;;
20169 esac
20170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20171 $as_echo "$ac_try_echo") >&5
20172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20173 ac_status=$?
20174 grep -v '^ *+' conftest.er1 >conftest.err
20175 rm -f conftest.er1
20176 cat conftest.err >&5
20177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178 (exit $ac_status); } >/dev/null && {
20179 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20180 test ! -s conftest.err
20181 }; then
20182 ac_header_preproc=yes
20183 else
20184 $as_echo "$as_me: failed program was:" >&5
20185 sed 's/^/| /' conftest.$ac_ext >&5
20186
20187 ac_header_preproc=no
20188 fi
20189
20190 rm -f conftest.err conftest.$ac_ext
20191 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20192 $as_echo "$ac_header_preproc" >&6; }
20193
20194 # So? What about this header?
20195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20196 yes:no: )
20197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20198 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20199 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20200 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20201 ac_header_preproc=yes
20202 ;;
20203 no:yes:* )
20204 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20205 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20206 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20207 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20208 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20209 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20210 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20211 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20212 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20213 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20214 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20215 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20216
20217 ;;
20218 esac
20219 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20220 $as_echo_n "checking for $ac_header... " >&6; }
20221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20222 $as_echo_n "(cached) " >&6
20223 else
20224 eval "$as_ac_Header=\$ac_header_preproc"
20225 fi
20226 ac_res=`eval 'as_val=${'$as_ac_Header'}
20227 $as_echo "$as_val"'`
20228 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20229 $as_echo "$ac_res" >&6; }
20230
20231 fi
20232 if test `eval 'as_val=${'$as_ac_Header'}
20233 $as_echo "$as_val"'` = yes; then
20234 cat >>confdefs.h <<_ACEOF
20235 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20236 _ACEOF
20237 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
20238 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
20239 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
20240 $as_echo_n "(cached) " >&6
20241 else
20242 cat >conftest.$ac_ext <<_ACEOF
20243 /* confdefs.h. */
20244 _ACEOF
20245 cat confdefs.h >>conftest.$ac_ext
20246 cat >>conftest.$ac_ext <<_ACEOF
20247 /* end confdefs.h. */
20248 #include <nlist.h>
20249
20250 int
20251 main ()
20252 {
20253 static struct nlist ac_aggr;
20254 if (ac_aggr.n_un.n_name)
20255 return 0;
20256 ;
20257 return 0;
20258 }
20259 _ACEOF
20260 rm -f conftest.$ac_objext
20261 if { (ac_try="$ac_compile"
20262 case "(($ac_try" in
20263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20264 *) ac_try_echo=$ac_try;;
20265 esac
20266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20267 $as_echo "$ac_try_echo") >&5
20268 (eval "$ac_compile") 2>conftest.er1
20269 ac_status=$?
20270 grep -v '^ *+' conftest.er1 >conftest.err
20271 rm -f conftest.er1
20272 cat conftest.err >&5
20273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274 (exit $ac_status); } && {
20275 test -z "$ac_c_werror_flag" ||
20276 test ! -s conftest.err
20277 } && test -s conftest.$ac_objext; then
20278 ac_cv_member_struct_nlist_n_un_n_name=yes
20279 else
20280 $as_echo "$as_me: failed program was:" >&5
20281 sed 's/^/| /' conftest.$ac_ext >&5
20282
20283 cat >conftest.$ac_ext <<_ACEOF
20284 /* confdefs.h. */
20285 _ACEOF
20286 cat confdefs.h >>conftest.$ac_ext
20287 cat >>conftest.$ac_ext <<_ACEOF
20288 /* end confdefs.h. */
20289 #include <nlist.h>
20290
20291 int
20292 main ()
20293 {
20294 static struct nlist ac_aggr;
20295 if (sizeof ac_aggr.n_un.n_name)
20296 return 0;
20297 ;
20298 return 0;
20299 }
20300 _ACEOF
20301 rm -f conftest.$ac_objext
20302 if { (ac_try="$ac_compile"
20303 case "(($ac_try" in
20304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20305 *) ac_try_echo=$ac_try;;
20306 esac
20307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20308 $as_echo "$ac_try_echo") >&5
20309 (eval "$ac_compile") 2>conftest.er1
20310 ac_status=$?
20311 grep -v '^ *+' conftest.er1 >conftest.err
20312 rm -f conftest.er1
20313 cat conftest.err >&5
20314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 (exit $ac_status); } && {
20316 test -z "$ac_c_werror_flag" ||
20317 test ! -s conftest.err
20318 } && test -s conftest.$ac_objext; then
20319 ac_cv_member_struct_nlist_n_un_n_name=yes
20320 else
20321 $as_echo "$as_me: failed program was:" >&5
20322 sed 's/^/| /' conftest.$ac_ext >&5
20323
20324 ac_cv_member_struct_nlist_n_un_n_name=no
20325 fi
20326
20327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20328 fi
20329
20330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20331 fi
20332 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
20333 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
20334 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
20335
20336 cat >>confdefs.h <<_ACEOF
20337 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20338 _ACEOF
20339
20340
20341 cat >>confdefs.h <<\_ACEOF
20342 #define NLIST_NAME_UNION 1
20343 _ACEOF
20344
20345 fi
20346
20347
20348 fi
20349
20350 done
20351
20352 fi
20353 done
20354
20355
20356 # Some definitions of getloadavg require that the program be installed setgid.
20357 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
20358 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
20359 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
20360 $as_echo_n "(cached) " >&6
20361 else
20362 cat >conftest.$ac_ext <<_ACEOF
20363 /* confdefs.h. */
20364 _ACEOF
20365 cat confdefs.h >>conftest.$ac_ext
20366 cat >>conftest.$ac_ext <<_ACEOF
20367 /* end confdefs.h. */
20368 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
20369 #ifdef LDAV_PRIVILEGED
20370 Yowza Am I SETGID yet
20371 #endif
20372 _ACEOF
20373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20374 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
20375 ac_cv_func_getloadavg_setgid=yes
20376 else
20377 ac_cv_func_getloadavg_setgid=no
20378 fi
20379 rm -f conftest*
20380
20381 fi
20382 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
20383 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
20384 if test $ac_cv_func_getloadavg_setgid = yes; then
20385 NEED_SETGID=true
20386
20387 cat >>confdefs.h <<\_ACEOF
20388 #define GETLOADAVG_PRIVILEGED 1
20389 _ACEOF
20390
20391 else
20392 NEED_SETGID=false
20393 fi
20394
20395 if test $ac_cv_func_getloadavg_setgid = yes; then
20396 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
20397 $as_echo_n "checking group of /dev/kmem... " >&6; }
20398 if test "${ac_cv_group_kmem+set}" = set; then
20399 $as_echo_n "(cached) " >&6
20400 else
20401 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
20402 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
20403 # If we got an error (system does not support symlinks), try without -L.
20404 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
20405 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
20406 | sed -ne 's/[ ][ ]*/ /g;
20407 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
20408 / /s/.* //;p;'`
20409
20410 fi
20411 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
20412 $as_echo "$ac_cv_group_kmem" >&6; }
20413 KMEM_GROUP=$ac_cv_group_kmem
20414 fi
20415 if test "x$ac_save_LIBS" = x; then
20416 GETLOADAVG_LIBS=$LIBS
20417 else
20418 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
20419 fi
20420 LIBS=$ac_save_LIBS
20421
20422
20423
20424 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
20425 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
20426 if test "${ac_cv_sys_largefile_source+set}" = set; then
20427 $as_echo_n "(cached) " >&6
20428 else
20429 while :; do
20430 cat >conftest.$ac_ext <<_ACEOF
20431 /* confdefs.h. */
20432 _ACEOF
20433 cat confdefs.h >>conftest.$ac_ext
20434 cat >>conftest.$ac_ext <<_ACEOF
20435 /* end confdefs.h. */
20436 #include <sys/types.h> /* for off_t */
20437 #include <stdio.h>
20438 int
20439 main ()
20440 {
20441 int (*fp) (FILE *, off_t, int) = fseeko;
20442 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20443 ;
20444 return 0;
20445 }
20446 _ACEOF
20447 rm -f conftest.$ac_objext conftest$ac_exeext
20448 if { (ac_try="$ac_link"
20449 case "(($ac_try" in
20450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20451 *) ac_try_echo=$ac_try;;
20452 esac
20453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20454 $as_echo "$ac_try_echo") >&5
20455 (eval "$ac_link") 2>conftest.er1
20456 ac_status=$?
20457 grep -v '^ *+' conftest.er1 >conftest.err
20458 rm -f conftest.er1
20459 cat conftest.err >&5
20460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461 (exit $ac_status); } && {
20462 test -z "$ac_c_werror_flag" ||
20463 test ! -s conftest.err
20464 } && test -s conftest$ac_exeext && {
20465 test "$cross_compiling" = yes ||
20466 $as_test_x conftest$ac_exeext
20467 }; then
20468 ac_cv_sys_largefile_source=no; break
20469 else
20470 $as_echo "$as_me: failed program was:" >&5
20471 sed 's/^/| /' conftest.$ac_ext >&5
20472
20473
20474 fi
20475
20476 rm -rf conftest.dSYM
20477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20478 conftest$ac_exeext conftest.$ac_ext
20479 cat >conftest.$ac_ext <<_ACEOF
20480 /* confdefs.h. */
20481 _ACEOF
20482 cat confdefs.h >>conftest.$ac_ext
20483 cat >>conftest.$ac_ext <<_ACEOF
20484 /* end confdefs.h. */
20485 #define _LARGEFILE_SOURCE 1
20486 #include <sys/types.h> /* for off_t */
20487 #include <stdio.h>
20488 int
20489 main ()
20490 {
20491 int (*fp) (FILE *, off_t, int) = fseeko;
20492 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20493 ;
20494 return 0;
20495 }
20496 _ACEOF
20497 rm -f conftest.$ac_objext conftest$ac_exeext
20498 if { (ac_try="$ac_link"
20499 case "(($ac_try" in
20500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20501 *) ac_try_echo=$ac_try;;
20502 esac
20503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20504 $as_echo "$ac_try_echo") >&5
20505 (eval "$ac_link") 2>conftest.er1
20506 ac_status=$?
20507 grep -v '^ *+' conftest.er1 >conftest.err
20508 rm -f conftest.er1
20509 cat conftest.err >&5
20510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); } && {
20512 test -z "$ac_c_werror_flag" ||
20513 test ! -s conftest.err
20514 } && test -s conftest$ac_exeext && {
20515 test "$cross_compiling" = yes ||
20516 $as_test_x conftest$ac_exeext
20517 }; then
20518 ac_cv_sys_largefile_source=1; break
20519 else
20520 $as_echo "$as_me: failed program was:" >&5
20521 sed 's/^/| /' conftest.$ac_ext >&5
20522
20523
20524 fi
20525
20526 rm -rf conftest.dSYM
20527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20528 conftest$ac_exeext conftest.$ac_ext
20529 ac_cv_sys_largefile_source=unknown
20530 break
20531 done
20532 fi
20533 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20534 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20535 case $ac_cv_sys_largefile_source in #(
20536 no | unknown) ;;
20537 *)
20538 cat >>confdefs.h <<_ACEOF
20539 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20540 _ACEOF
20541 ;;
20542 esac
20543 rm -rf conftest*
20544
20545 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20546 # in glibc 2.1.3, but that breaks too many other things.
20547 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20548 if test $ac_cv_sys_largefile_source != unknown; then
20549
20550 cat >>confdefs.h <<\_ACEOF
20551 #define HAVE_FSEEKO 1
20552 _ACEOF
20553
20554 fi
20555
20556
20557 # Configure getopt.
20558 # getopt.m4 serial 10
20559
20560 # The getopt module assume you want GNU getopt, with getopt_long etc,
20561 # rather than vanilla POSIX getopt. This means your your code should
20562 # always include <getopt.h> for the getopt prototypes.
20563
20564
20565
20566
20567
20568
20569
20570
20571
20572
20573
20574 # Prerequisites of lib/getopt*.
20575
20576
20577
20578
20579 GETOPT_H=
20580
20581 for ac_header in getopt.h
20582 do
20583 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20585 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20586 $as_echo_n "checking for $ac_header... " >&6; }
20587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20588 $as_echo_n "(cached) " >&6
20589 fi
20590 ac_res=`eval 'as_val=${'$as_ac_Header'}
20591 $as_echo "$as_val"'`
20592 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20593 $as_echo "$ac_res" >&6; }
20594 else
20595 # Is the header compilable?
20596 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20597 $as_echo_n "checking $ac_header usability... " >&6; }
20598 cat >conftest.$ac_ext <<_ACEOF
20599 /* confdefs.h. */
20600 _ACEOF
20601 cat confdefs.h >>conftest.$ac_ext
20602 cat >>conftest.$ac_ext <<_ACEOF
20603 /* end confdefs.h. */
20604 $ac_includes_default
20605 #include <$ac_header>
20606 _ACEOF
20607 rm -f conftest.$ac_objext
20608 if { (ac_try="$ac_compile"
20609 case "(($ac_try" in
20610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20611 *) ac_try_echo=$ac_try;;
20612 esac
20613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20614 $as_echo "$ac_try_echo") >&5
20615 (eval "$ac_compile") 2>conftest.er1
20616 ac_status=$?
20617 grep -v '^ *+' conftest.er1 >conftest.err
20618 rm -f conftest.er1
20619 cat conftest.err >&5
20620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); } && {
20622 test -z "$ac_c_werror_flag" ||
20623 test ! -s conftest.err
20624 } && test -s conftest.$ac_objext; then
20625 ac_header_compiler=yes
20626 else
20627 $as_echo "$as_me: failed program was:" >&5
20628 sed 's/^/| /' conftest.$ac_ext >&5
20629
20630 ac_header_compiler=no
20631 fi
20632
20633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20634 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20635 $as_echo "$ac_header_compiler" >&6; }
20636
20637 # Is the header present?
20638 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20639 $as_echo_n "checking $ac_header presence... " >&6; }
20640 cat >conftest.$ac_ext <<_ACEOF
20641 /* confdefs.h. */
20642 _ACEOF
20643 cat confdefs.h >>conftest.$ac_ext
20644 cat >>conftest.$ac_ext <<_ACEOF
20645 /* end confdefs.h. */
20646 #include <$ac_header>
20647 _ACEOF
20648 if { (ac_try="$ac_cpp conftest.$ac_ext"
20649 case "(($ac_try" in
20650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20651 *) ac_try_echo=$ac_try;;
20652 esac
20653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20654 $as_echo "$ac_try_echo") >&5
20655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20656 ac_status=$?
20657 grep -v '^ *+' conftest.er1 >conftest.err
20658 rm -f conftest.er1
20659 cat conftest.err >&5
20660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661 (exit $ac_status); } >/dev/null && {
20662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20663 test ! -s conftest.err
20664 }; then
20665 ac_header_preproc=yes
20666 else
20667 $as_echo "$as_me: failed program was:" >&5
20668 sed 's/^/| /' conftest.$ac_ext >&5
20669
20670 ac_header_preproc=no
20671 fi
20672
20673 rm -f conftest.err conftest.$ac_ext
20674 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20675 $as_echo "$ac_header_preproc" >&6; }
20676
20677 # So? What about this header?
20678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20679 yes:no: )
20680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20681 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20683 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20684 ac_header_preproc=yes
20685 ;;
20686 no:yes:* )
20687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20688 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20690 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20692 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20694 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20696 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20698 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20699
20700 ;;
20701 esac
20702 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20703 $as_echo_n "checking for $ac_header... " >&6; }
20704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20705 $as_echo_n "(cached) " >&6
20706 else
20707 eval "$as_ac_Header=\$ac_header_preproc"
20708 fi
20709 ac_res=`eval 'as_val=${'$as_ac_Header'}
20710 $as_echo "$as_val"'`
20711 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20712 $as_echo "$ac_res" >&6; }
20713
20714 fi
20715 if test `eval 'as_val=${'$as_ac_Header'}
20716 $as_echo "$as_val"'` = yes; then
20717 cat >>confdefs.h <<_ACEOF
20718 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20719 _ACEOF
20720
20721 else
20722 GETOPT_H=getopt.h
20723 fi
20724
20725 done
20726
20727 if test -z "$GETOPT_H"; then
20728
20729 for ac_func in getopt_long_only
20730 do
20731 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20732 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20733 $as_echo_n "checking for $ac_func... " >&6; }
20734 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20735 $as_echo_n "(cached) " >&6
20736 else
20737 cat >conftest.$ac_ext <<_ACEOF
20738 /* confdefs.h. */
20739 _ACEOF
20740 cat confdefs.h >>conftest.$ac_ext
20741 cat >>conftest.$ac_ext <<_ACEOF
20742 /* end confdefs.h. */
20743 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20745 #define $ac_func innocuous_$ac_func
20746
20747 /* System header to define __stub macros and hopefully few prototypes,
20748 which can conflict with char $ac_func (); below.
20749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20750 <limits.h> exists even on freestanding compilers. */
20751
20752 #ifdef __STDC__
20753 # include <limits.h>
20754 #else
20755 # include <assert.h>
20756 #endif
20757
20758 #undef $ac_func
20759
20760 /* Override any GCC internal prototype to avoid an error.
20761 Use char because int might match the return type of a GCC
20762 builtin and then its argument prototype would still apply. */
20763 #ifdef __cplusplus
20764 extern "C"
20765 #endif
20766 char $ac_func ();
20767 /* The GNU C library defines this for functions which it implements
20768 to always fail with ENOSYS. Some functions are actually named
20769 something starting with __ and the normal name is an alias. */
20770 #if defined __stub_$ac_func || defined __stub___$ac_func
20771 choke me
20772 #endif
20773
20774 int
20775 main ()
20776 {
20777 return $ac_func ();
20778 ;
20779 return 0;
20780 }
20781 _ACEOF
20782 rm -f conftest.$ac_objext conftest$ac_exeext
20783 if { (ac_try="$ac_link"
20784 case "(($ac_try" in
20785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20786 *) ac_try_echo=$ac_try;;
20787 esac
20788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20789 $as_echo "$ac_try_echo") >&5
20790 (eval "$ac_link") 2>conftest.er1
20791 ac_status=$?
20792 grep -v '^ *+' conftest.er1 >conftest.err
20793 rm -f conftest.er1
20794 cat conftest.err >&5
20795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796 (exit $ac_status); } && {
20797 test -z "$ac_c_werror_flag" ||
20798 test ! -s conftest.err
20799 } && test -s conftest$ac_exeext && {
20800 test "$cross_compiling" = yes ||
20801 $as_test_x conftest$ac_exeext
20802 }; then
20803 eval "$as_ac_var=yes"
20804 else
20805 $as_echo "$as_me: failed program was:" >&5
20806 sed 's/^/| /' conftest.$ac_ext >&5
20807
20808 eval "$as_ac_var=no"
20809 fi
20810
20811 rm -rf conftest.dSYM
20812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20813 conftest$ac_exeext conftest.$ac_ext
20814 fi
20815 ac_res=`eval 'as_val=${'$as_ac_var'}
20816 $as_echo "$as_val"'`
20817 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20818 $as_echo "$ac_res" >&6; }
20819 if test `eval 'as_val=${'$as_ac_var'}
20820 $as_echo "$as_val"'` = yes; then
20821 cat >>confdefs.h <<_ACEOF
20822 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20823 _ACEOF
20824
20825 else
20826 GETOPT_H=getopt.h
20827 fi
20828 done
20829
20830 fi
20831
20832 if test -z "$GETOPT_H"; then
20833 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
20834 $as_echo_n "checking whether optreset is declared... " >&6; }
20835 if test "${ac_cv_have_decl_optreset+set}" = set; then
20836 $as_echo_n "(cached) " >&6
20837 else
20838 cat >conftest.$ac_ext <<_ACEOF
20839 /* confdefs.h. */
20840 _ACEOF
20841 cat confdefs.h >>conftest.$ac_ext
20842 cat >>conftest.$ac_ext <<_ACEOF
20843 /* end confdefs.h. */
20844 #include <getopt.h>
20845
20846 int
20847 main ()
20848 {
20849 #ifndef optreset
20850 (void) optreset;
20851 #endif
20852
20853 ;
20854 return 0;
20855 }
20856 _ACEOF
20857 rm -f conftest.$ac_objext
20858 if { (ac_try="$ac_compile"
20859 case "(($ac_try" in
20860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20861 *) ac_try_echo=$ac_try;;
20862 esac
20863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20864 $as_echo "$ac_try_echo") >&5
20865 (eval "$ac_compile") 2>conftest.er1
20866 ac_status=$?
20867 grep -v '^ *+' conftest.er1 >conftest.err
20868 rm -f conftest.er1
20869 cat conftest.err >&5
20870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871 (exit $ac_status); } && {
20872 test -z "$ac_c_werror_flag" ||
20873 test ! -s conftest.err
20874 } && test -s conftest.$ac_objext; then
20875 ac_cv_have_decl_optreset=yes
20876 else
20877 $as_echo "$as_me: failed program was:" >&5
20878 sed 's/^/| /' conftest.$ac_ext >&5
20879
20880 ac_cv_have_decl_optreset=no
20881 fi
20882
20883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20884 fi
20885 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20886 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20887 if test $ac_cv_have_decl_optreset = yes; then
20888 GETOPT_H=getopt.h
20889 fi
20890
20891 fi
20892
20893 if test -z "$GETOPT_H"; then
20894 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
20895 $as_echo_n "checking for working GNU getopt function... " >&6; }
20896 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20897 $as_echo_n "(cached) " >&6
20898 else
20899 if test "$cross_compiling" = yes; then
20900 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
20901 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
20902 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20903 $as_echo_n "(cached) " >&6
20904 else
20905 cat >conftest.$ac_ext <<_ACEOF
20906 /* confdefs.h. */
20907 _ACEOF
20908 cat confdefs.h >>conftest.$ac_ext
20909 cat >>conftest.$ac_ext <<_ACEOF
20910 /* end confdefs.h. */
20911 #include <getopt.h>
20912
20913 int
20914 main ()
20915 {
20916 #ifndef getopt_clip
20917 (void) getopt_clip;
20918 #endif
20919
20920 ;
20921 return 0;
20922 }
20923 _ACEOF
20924 rm -f conftest.$ac_objext
20925 if { (ac_try="$ac_compile"
20926 case "(($ac_try" in
20927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20928 *) ac_try_echo=$ac_try;;
20929 esac
20930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20931 $as_echo "$ac_try_echo") >&5
20932 (eval "$ac_compile") 2>conftest.er1
20933 ac_status=$?
20934 grep -v '^ *+' conftest.er1 >conftest.err
20935 rm -f conftest.er1
20936 cat conftest.err >&5
20937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938 (exit $ac_status); } && {
20939 test -z "$ac_c_werror_flag" ||
20940 test ! -s conftest.err
20941 } && test -s conftest.$ac_objext; then
20942 ac_cv_have_decl_getopt_clip=yes
20943 else
20944 $as_echo "$as_me: failed program was:" >&5
20945 sed 's/^/| /' conftest.$ac_ext >&5
20946
20947 ac_cv_have_decl_getopt_clip=no
20948 fi
20949
20950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20951 fi
20952 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20953 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20954 if test $ac_cv_have_decl_getopt_clip = yes; then
20955 gl_cv_func_gnu_getopt=no
20956 else
20957 gl_cv_func_gnu_getopt=yes
20958 fi
20959
20960 else
20961 cat >conftest.$ac_ext <<_ACEOF
20962 /* confdefs.h. */
20963 _ACEOF
20964 cat confdefs.h >>conftest.$ac_ext
20965 cat >>conftest.$ac_ext <<_ACEOF
20966 /* end confdefs.h. */
20967 #include <getopt.h>
20968 int
20969 main ()
20970 {
20971
20972 char *myargv[3];
20973 myargv[0] = "conftest";
20974 myargv[1] = "-+";
20975 myargv[2] = 0;
20976 return getopt (2, myargv, "+a") != '?';
20977
20978 ;
20979 return 0;
20980 }
20981 _ACEOF
20982 rm -f conftest$ac_exeext
20983 if { (ac_try="$ac_link"
20984 case "(($ac_try" in
20985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20986 *) ac_try_echo=$ac_try;;
20987 esac
20988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20989 $as_echo "$ac_try_echo") >&5
20990 (eval "$ac_link") 2>&5
20991 ac_status=$?
20992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20994 { (case "(($ac_try" in
20995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20996 *) ac_try_echo=$ac_try;;
20997 esac
20998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20999 $as_echo "$ac_try_echo") >&5
21000 (eval "$ac_try") 2>&5
21001 ac_status=$?
21002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003 (exit $ac_status); }; }; then
21004 gl_cv_func_gnu_getopt=yes
21005 else
21006 $as_echo "$as_me: program exited with status $ac_status" >&5
21007 $as_echo "$as_me: failed program was:" >&5
21008 sed 's/^/| /' conftest.$ac_ext >&5
21009
21010 ( exit $ac_status )
21011 gl_cv_func_gnu_getopt=no
21012 fi
21013 rm -rf conftest.dSYM
21014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21015 fi
21016
21017
21018 fi
21019 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
21020 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
21021 if test "$gl_cv_func_gnu_getopt" = "no"; then
21022 GETOPT_H=getopt.h
21023 fi
21024 fi
21025
21026
21027
21028 if test -n "$GETOPT_H"; then
21029
21030
21031 GETOPT_H=getopt.h
21032
21033 cat >>confdefs.h <<\_ACEOF
21034 #define __GETOPT_PREFIX rpl_
21035 _ACEOF
21036
21037
21038
21039 :
21040 GETOPTOBJS='getopt.o getopt1.o'
21041
21042 fi
21043
21044
21045
21046
21047 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
21048 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
21049 if test "${ac_cv_func_getpgrp_void+set}" = set; then
21050 $as_echo_n "(cached) " >&6
21051 else
21052 # Use it with a single arg.
21053 cat >conftest.$ac_ext <<_ACEOF
21054 /* confdefs.h. */
21055 _ACEOF
21056 cat confdefs.h >>conftest.$ac_ext
21057 cat >>conftest.$ac_ext <<_ACEOF
21058 /* end confdefs.h. */
21059 $ac_includes_default
21060 int
21061 main ()
21062 {
21063 getpgrp (0);
21064 ;
21065 return 0;
21066 }
21067 _ACEOF
21068 rm -f conftest.$ac_objext
21069 if { (ac_try="$ac_compile"
21070 case "(($ac_try" in
21071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21072 *) ac_try_echo=$ac_try;;
21073 esac
21074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21075 $as_echo "$ac_try_echo") >&5
21076 (eval "$ac_compile") 2>conftest.er1
21077 ac_status=$?
21078 grep -v '^ *+' conftest.er1 >conftest.err
21079 rm -f conftest.er1
21080 cat conftest.err >&5
21081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); } && {
21083 test -z "$ac_c_werror_flag" ||
21084 test ! -s conftest.err
21085 } && test -s conftest.$ac_objext; then
21086 ac_cv_func_getpgrp_void=no
21087 else
21088 $as_echo "$as_me: failed program was:" >&5
21089 sed 's/^/| /' conftest.$ac_ext >&5
21090
21091 ac_cv_func_getpgrp_void=yes
21092 fi
21093
21094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21095
21096 fi
21097 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
21098 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
21099 if test $ac_cv_func_getpgrp_void = yes; then
21100
21101 cat >>confdefs.h <<\_ACEOF
21102 #define GETPGRP_VOID 1
21103 _ACEOF
21104
21105 fi
21106
21107
21108
21109 for ac_func in strftime
21110 do
21111 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21112 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21113 $as_echo_n "checking for $ac_func... " >&6; }
21114 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21115 $as_echo_n "(cached) " >&6
21116 else
21117 cat >conftest.$ac_ext <<_ACEOF
21118 /* confdefs.h. */
21119 _ACEOF
21120 cat confdefs.h >>conftest.$ac_ext
21121 cat >>conftest.$ac_ext <<_ACEOF
21122 /* end confdefs.h. */
21123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21125 #define $ac_func innocuous_$ac_func
21126
21127 /* System header to define __stub macros and hopefully few prototypes,
21128 which can conflict with char $ac_func (); below.
21129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21130 <limits.h> exists even on freestanding compilers. */
21131
21132 #ifdef __STDC__
21133 # include <limits.h>
21134 #else
21135 # include <assert.h>
21136 #endif
21137
21138 #undef $ac_func
21139
21140 /* Override any GCC internal prototype to avoid an error.
21141 Use char because int might match the return type of a GCC
21142 builtin and then its argument prototype would still apply. */
21143 #ifdef __cplusplus
21144 extern "C"
21145 #endif
21146 char $ac_func ();
21147 /* The GNU C library defines this for functions which it implements
21148 to always fail with ENOSYS. Some functions are actually named
21149 something starting with __ and the normal name is an alias. */
21150 #if defined __stub_$ac_func || defined __stub___$ac_func
21151 choke me
21152 #endif
21153
21154 int
21155 main ()
21156 {
21157 return $ac_func ();
21158 ;
21159 return 0;
21160 }
21161 _ACEOF
21162 rm -f conftest.$ac_objext conftest$ac_exeext
21163 if { (ac_try="$ac_link"
21164 case "(($ac_try" in
21165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21166 *) ac_try_echo=$ac_try;;
21167 esac
21168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21169 $as_echo "$ac_try_echo") >&5
21170 (eval "$ac_link") 2>conftest.er1
21171 ac_status=$?
21172 grep -v '^ *+' conftest.er1 >conftest.err
21173 rm -f conftest.er1
21174 cat conftest.err >&5
21175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176 (exit $ac_status); } && {
21177 test -z "$ac_c_werror_flag" ||
21178 test ! -s conftest.err
21179 } && test -s conftest$ac_exeext && {
21180 test "$cross_compiling" = yes ||
21181 $as_test_x conftest$ac_exeext
21182 }; then
21183 eval "$as_ac_var=yes"
21184 else
21185 $as_echo "$as_me: failed program was:" >&5
21186 sed 's/^/| /' conftest.$ac_ext >&5
21187
21188 eval "$as_ac_var=no"
21189 fi
21190
21191 rm -rf conftest.dSYM
21192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21193 conftest$ac_exeext conftest.$ac_ext
21194 fi
21195 ac_res=`eval 'as_val=${'$as_ac_var'}
21196 $as_echo "$as_val"'`
21197 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21198 $as_echo "$ac_res" >&6; }
21199 if test `eval 'as_val=${'$as_ac_var'}
21200 $as_echo "$as_val"'` = yes; then
21201 cat >>confdefs.h <<_ACEOF
21202 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21203 _ACEOF
21204
21205 else
21206 # strftime is in -lintl on SCO UNIX.
21207 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
21208 $as_echo_n "checking for strftime in -lintl... " >&6; }
21209 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21210 $as_echo_n "(cached) " >&6
21211 else
21212 ac_check_lib_save_LIBS=$LIBS
21213 LIBS="-lintl $LIBS"
21214 cat >conftest.$ac_ext <<_ACEOF
21215 /* confdefs.h. */
21216 _ACEOF
21217 cat confdefs.h >>conftest.$ac_ext
21218 cat >>conftest.$ac_ext <<_ACEOF
21219 /* end confdefs.h. */
21220
21221 /* Override any GCC internal prototype to avoid an error.
21222 Use char because int might match the return type of a GCC
21223 builtin and then its argument prototype would still apply. */
21224 #ifdef __cplusplus
21225 extern "C"
21226 #endif
21227 char strftime ();
21228 int
21229 main ()
21230 {
21231 return strftime ();
21232 ;
21233 return 0;
21234 }
21235 _ACEOF
21236 rm -f conftest.$ac_objext conftest$ac_exeext
21237 if { (ac_try="$ac_link"
21238 case "(($ac_try" in
21239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21240 *) ac_try_echo=$ac_try;;
21241 esac
21242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21243 $as_echo "$ac_try_echo") >&5
21244 (eval "$ac_link") 2>conftest.er1
21245 ac_status=$?
21246 grep -v '^ *+' conftest.er1 >conftest.err
21247 rm -f conftest.er1
21248 cat conftest.err >&5
21249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); } && {
21251 test -z "$ac_c_werror_flag" ||
21252 test ! -s conftest.err
21253 } && test -s conftest$ac_exeext && {
21254 test "$cross_compiling" = yes ||
21255 $as_test_x conftest$ac_exeext
21256 }; then
21257 ac_cv_lib_intl_strftime=yes
21258 else
21259 $as_echo "$as_me: failed program was:" >&5
21260 sed 's/^/| /' conftest.$ac_ext >&5
21261
21262 ac_cv_lib_intl_strftime=no
21263 fi
21264
21265 rm -rf conftest.dSYM
21266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21267 conftest$ac_exeext conftest.$ac_ext
21268 LIBS=$ac_check_lib_save_LIBS
21269 fi
21270 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
21271 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
21272 if test $ac_cv_lib_intl_strftime = yes; then
21273 cat >>confdefs.h <<\_ACEOF
21274 #define HAVE_STRFTIME 1
21275 _ACEOF
21276
21277 LIBS="-lintl $LIBS"
21278 fi
21279
21280 fi
21281 done
21282
21283
21284 # UNIX98 PTYs.
21285
21286 for ac_func in grantpt
21287 do
21288 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21289 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21290 $as_echo_n "checking for $ac_func... " >&6; }
21291 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21292 $as_echo_n "(cached) " >&6
21293 else
21294 cat >conftest.$ac_ext <<_ACEOF
21295 /* confdefs.h. */
21296 _ACEOF
21297 cat confdefs.h >>conftest.$ac_ext
21298 cat >>conftest.$ac_ext <<_ACEOF
21299 /* end confdefs.h. */
21300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21302 #define $ac_func innocuous_$ac_func
21303
21304 /* System header to define __stub macros and hopefully few prototypes,
21305 which can conflict with char $ac_func (); below.
21306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21307 <limits.h> exists even on freestanding compilers. */
21308
21309 #ifdef __STDC__
21310 # include <limits.h>
21311 #else
21312 # include <assert.h>
21313 #endif
21314
21315 #undef $ac_func
21316
21317 /* Override any GCC internal prototype to avoid an error.
21318 Use char because int might match the return type of a GCC
21319 builtin and then its argument prototype would still apply. */
21320 #ifdef __cplusplus
21321 extern "C"
21322 #endif
21323 char $ac_func ();
21324 /* The GNU C library defines this for functions which it implements
21325 to always fail with ENOSYS. Some functions are actually named
21326 something starting with __ and the normal name is an alias. */
21327 #if defined __stub_$ac_func || defined __stub___$ac_func
21328 choke me
21329 #endif
21330
21331 int
21332 main ()
21333 {
21334 return $ac_func ();
21335 ;
21336 return 0;
21337 }
21338 _ACEOF
21339 rm -f conftest.$ac_objext conftest$ac_exeext
21340 if { (ac_try="$ac_link"
21341 case "(($ac_try" in
21342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21343 *) ac_try_echo=$ac_try;;
21344 esac
21345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21346 $as_echo "$ac_try_echo") >&5
21347 (eval "$ac_link") 2>conftest.er1
21348 ac_status=$?
21349 grep -v '^ *+' conftest.er1 >conftest.err
21350 rm -f conftest.er1
21351 cat conftest.err >&5
21352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21353 (exit $ac_status); } && {
21354 test -z "$ac_c_werror_flag" ||
21355 test ! -s conftest.err
21356 } && test -s conftest$ac_exeext && {
21357 test "$cross_compiling" = yes ||
21358 $as_test_x conftest$ac_exeext
21359 }; then
21360 eval "$as_ac_var=yes"
21361 else
21362 $as_echo "$as_me: failed program was:" >&5
21363 sed 's/^/| /' conftest.$ac_ext >&5
21364
21365 eval "$as_ac_var=no"
21366 fi
21367
21368 rm -rf conftest.dSYM
21369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21370 conftest$ac_exeext conftest.$ac_ext
21371 fi
21372 ac_res=`eval 'as_val=${'$as_ac_var'}
21373 $as_echo "$as_val"'`
21374 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21375 $as_echo "$ac_res" >&6; }
21376 if test `eval 'as_val=${'$as_ac_var'}
21377 $as_echo "$as_val"'` = yes; then
21378 cat >>confdefs.h <<_ACEOF
21379 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21380 _ACEOF
21381
21382 fi
21383 done
21384
21385
21386 # PTY-related GNU extensions.
21387
21388 for ac_func in getpt
21389 do
21390 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21391 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21392 $as_echo_n "checking for $ac_func... " >&6; }
21393 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21394 $as_echo_n "(cached) " >&6
21395 else
21396 cat >conftest.$ac_ext <<_ACEOF
21397 /* confdefs.h. */
21398 _ACEOF
21399 cat confdefs.h >>conftest.$ac_ext
21400 cat >>conftest.$ac_ext <<_ACEOF
21401 /* end confdefs.h. */
21402 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21404 #define $ac_func innocuous_$ac_func
21405
21406 /* System header to define __stub macros and hopefully few prototypes,
21407 which can conflict with char $ac_func (); below.
21408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21409 <limits.h> exists even on freestanding compilers. */
21410
21411 #ifdef __STDC__
21412 # include <limits.h>
21413 #else
21414 # include <assert.h>
21415 #endif
21416
21417 #undef $ac_func
21418
21419 /* Override any GCC internal prototype to avoid an error.
21420 Use char because int might match the return type of a GCC
21421 builtin and then its argument prototype would still apply. */
21422 #ifdef __cplusplus
21423 extern "C"
21424 #endif
21425 char $ac_func ();
21426 /* The GNU C library defines this for functions which it implements
21427 to always fail with ENOSYS. Some functions are actually named
21428 something starting with __ and the normal name is an alias. */
21429 #if defined __stub_$ac_func || defined __stub___$ac_func
21430 choke me
21431 #endif
21432
21433 int
21434 main ()
21435 {
21436 return $ac_func ();
21437 ;
21438 return 0;
21439 }
21440 _ACEOF
21441 rm -f conftest.$ac_objext conftest$ac_exeext
21442 if { (ac_try="$ac_link"
21443 case "(($ac_try" in
21444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21445 *) ac_try_echo=$ac_try;;
21446 esac
21447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21448 $as_echo "$ac_try_echo") >&5
21449 (eval "$ac_link") 2>conftest.er1
21450 ac_status=$?
21451 grep -v '^ *+' conftest.er1 >conftest.err
21452 rm -f conftest.er1
21453 cat conftest.err >&5
21454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455 (exit $ac_status); } && {
21456 test -z "$ac_c_werror_flag" ||
21457 test ! -s conftest.err
21458 } && test -s conftest$ac_exeext && {
21459 test "$cross_compiling" = yes ||
21460 $as_test_x conftest$ac_exeext
21461 }; then
21462 eval "$as_ac_var=yes"
21463 else
21464 $as_echo "$as_me: failed program was:" >&5
21465 sed 's/^/| /' conftest.$ac_ext >&5
21466
21467 eval "$as_ac_var=no"
21468 fi
21469
21470 rm -rf conftest.dSYM
21471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21472 conftest$ac_exeext conftest.$ac_ext
21473 fi
21474 ac_res=`eval 'as_val=${'$as_ac_var'}
21475 $as_echo "$as_val"'`
21476 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21477 $as_echo "$ac_res" >&6; }
21478 if test `eval 'as_val=${'$as_ac_var'}
21479 $as_echo "$as_val"'` = yes; then
21480 cat >>confdefs.h <<_ACEOF
21481 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21482 _ACEOF
21483
21484 fi
21485 done
21486
21487
21488 # Check this now, so that we will NOT find the above functions in ncurses.
21489 # That is because we have not set up to link ncurses in lib-src.
21490 # It's better to believe a function is not available
21491 # than to expect to find it in ncurses.
21492 # Also we need tputs and friends to be able to build at all.
21493 have_tputs_et_al=true
21494 { $as_echo "$as_me:$LINENO: checking for library containing tputs" >&5
21495 $as_echo_n "checking for library containing tputs... " >&6; }
21496 if test "${ac_cv_search_tputs+set}" = set; then
21497 $as_echo_n "(cached) " >&6
21498 else
21499 ac_func_search_save_LIBS=$LIBS
21500 cat >conftest.$ac_ext <<_ACEOF
21501 /* confdefs.h. */
21502 _ACEOF
21503 cat confdefs.h >>conftest.$ac_ext
21504 cat >>conftest.$ac_ext <<_ACEOF
21505 /* end confdefs.h. */
21506
21507 /* Override any GCC internal prototype to avoid an error.
21508 Use char because int might match the return type of a GCC
21509 builtin and then its argument prototype would still apply. */
21510 #ifdef __cplusplus
21511 extern "C"
21512 #endif
21513 char tputs ();
21514 int
21515 main ()
21516 {
21517 return tputs ();
21518 ;
21519 return 0;
21520 }
21521 _ACEOF
21522 for ac_lib in '' ncurses terminfo termcap; do
21523 if test -z "$ac_lib"; then
21524 ac_res="none required"
21525 else
21526 ac_res=-l$ac_lib
21527 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21528 fi
21529 rm -f conftest.$ac_objext conftest$ac_exeext
21530 if { (ac_try="$ac_link"
21531 case "(($ac_try" in
21532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21533 *) ac_try_echo=$ac_try;;
21534 esac
21535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21536 $as_echo "$ac_try_echo") >&5
21537 (eval "$ac_link") 2>conftest.er1
21538 ac_status=$?
21539 grep -v '^ *+' conftest.er1 >conftest.err
21540 rm -f conftest.er1
21541 cat conftest.err >&5
21542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21543 (exit $ac_status); } && {
21544 test -z "$ac_c_werror_flag" ||
21545 test ! -s conftest.err
21546 } && test -s conftest$ac_exeext && {
21547 test "$cross_compiling" = yes ||
21548 $as_test_x conftest$ac_exeext
21549 }; then
21550 ac_cv_search_tputs=$ac_res
21551 else
21552 $as_echo "$as_me: failed program was:" >&5
21553 sed 's/^/| /' conftest.$ac_ext >&5
21554
21555
21556 fi
21557
21558 rm -rf conftest.dSYM
21559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21560 conftest$ac_exeext
21561 if test "${ac_cv_search_tputs+set}" = set; then
21562 break
21563 fi
21564 done
21565 if test "${ac_cv_search_tputs+set}" = set; then
21566 :
21567 else
21568 ac_cv_search_tputs=no
21569 fi
21570 rm conftest.$ac_ext
21571 LIBS=$ac_func_search_save_LIBS
21572 fi
21573 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tputs" >&5
21574 $as_echo "$ac_cv_search_tputs" >&6; }
21575 ac_res=$ac_cv_search_tputs
21576 if test "$ac_res" != no; then
21577 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21578
21579 else
21580 have_tputs_et_al=false
21581 fi
21582
21583 if test "$have_tputs_et_al" != true; then
21584 { { $as_echo "$as_me:$LINENO: error: I couldn't find termcap functions (tputs and friends).
21585 Maybe some development libraries/packages are missing? Try installing
21586 libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21587 $as_echo "$as_me: error: I couldn't find termcap functions (tputs and friends).
21588 Maybe some development libraries/packages are missing? Try installing
21589 libncurses-dev(el), libterminfo-dev(el) or similar." >&2;}
21590 { (exit 1); exit 1; }; }
21591 fi
21592 # Must define this when any termcap library is found.
21593
21594 cat >>confdefs.h <<\_ACEOF
21595 #define HAVE_LIBNCURSES 1
21596 _ACEOF
21597
21598 ## FIXME This was the cpp logic, but I am not sure it is right.
21599 ## The above test has not necessarily found libncurses.
21600 HAVE_LIBNCURSES=yes
21601
21602 ## Use terminfo instead of termcap?
21603 ## Note only system files NOT using terminfo are:
21604 ## bsd-common, freebsd < 40000, ms-w32, msdos, netbsd, and
21605 ## darwin|gnu without ncurses.
21606 TERMINFO=no
21607 LIBS_TERMCAP=
21608 case "$opsys" in
21609 ## cygwin: Fewer environment variables to go wrong, more terminal types.
21610 ## hpux10-20: Use the system provided termcap(3) library.
21611 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
21612 ## is necessary. Otherwise Emacs dumps core when run -nw.
21613 aix4-2|cygwin|hpux*|irix6-5|openbsd|usg5-4|sol2*|unixware) TERMINFO=yes ;;
21614
21615 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
21616 ## The ncurses library has been moved out of the System framework in
21617 ## Mac OS X 10.2. So if configure detects it, set the command-line
21618 ## option to use it.
21619 darwin|gnu*)
21620 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
21621 if test "x$HAVE_LIBNCURSES" = "xyes"; then
21622 TERMINFO=yes
21623 LIBS_TERMCAP="-lncurses"
21624 fi
21625 ;;
21626
21627 freebsd)
21628 { $as_echo "$as_me:$LINENO: checking whether FreeBSD is new enough to use terminfo" >&5
21629 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
21630 if test "${emacs_cv_freebsd_terminfo+set}" = set; then
21631 $as_echo_n "(cached) " >&6
21632 else
21633 cat >conftest.$ac_ext <<_ACEOF
21634 /* confdefs.h. */
21635 _ACEOF
21636 cat confdefs.h >>conftest.$ac_ext
21637 cat >>conftest.$ac_ext <<_ACEOF
21638 /* end confdefs.h. */
21639 #include <osreldate.h>
21640 int
21641 main ()
21642 {
21643 #if __FreeBSD_version < 400000
21644 fail;
21645 #endif
21646
21647 ;
21648 return 0;
21649 }
21650 _ACEOF
21651 rm -f conftest.$ac_objext conftest$ac_exeext
21652 if { (ac_try="$ac_link"
21653 case "(($ac_try" in
21654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21655 *) ac_try_echo=$ac_try;;
21656 esac
21657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21658 $as_echo "$ac_try_echo") >&5
21659 (eval "$ac_link") 2>conftest.er1
21660 ac_status=$?
21661 grep -v '^ *+' conftest.er1 >conftest.err
21662 rm -f conftest.er1
21663 cat conftest.err >&5
21664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665 (exit $ac_status); } && {
21666 test -z "$ac_c_werror_flag" ||
21667 test ! -s conftest.err
21668 } && test -s conftest$ac_exeext && {
21669 test "$cross_compiling" = yes ||
21670 $as_test_x conftest$ac_exeext
21671 }; then
21672 emacs_cv_freebsd_terminfo=yes
21673 else
21674 $as_echo "$as_me: failed program was:" >&5
21675 sed 's/^/| /' conftest.$ac_ext >&5
21676
21677 emacs_cv_freebsd_terminfo=no
21678 fi
21679
21680 rm -rf conftest.dSYM
21681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21682 conftest$ac_exeext conftest.$ac_ext
21683 fi
21684
21685
21686 { $as_echo "$as_me:$LINENO: result: $emacs_cv_freebsd_terminfo" >&5
21687 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
21688
21689 if test $emacs_cv_freebsd_terminfo = yes; then
21690 TERMINFO=yes
21691 LIBS_TERMCAP="-lncurses"
21692 else
21693 LIBS_TERMCAP="-ltermcap"
21694 fi
21695 ;;
21696
21697 esac
21698
21699 case "$opsys" in
21700 ## hpux: Make sure we get select from libc rather than from libcurses
21701 ## because libcurses on HPUX 10.10 has a broken version of select.
21702 ## We used to use -lc -lcurses, but this may be cleaner.
21703 hpux*|netbsd) LIBS_TERMCAP="-ltermcap" ;;
21704
21705 openbsd) LIBS_TERMCAP="-lncurses" ;;
21706
21707 ## Must use system termcap, if we use any termcap. It does special things.
21708 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
21709 esac
21710
21711 TERMCAP_OBJ=tparam.o
21712 if test $TERMINFO = yes; then
21713
21714 cat >>confdefs.h <<\_ACEOF
21715 #define TERMINFO 1
21716 _ACEOF
21717
21718
21719 ## Default used to be -ltermcap. Add a case above if need something else.
21720 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
21721
21722 TERMCAP_OBJ=terminfo.o
21723 fi
21724
21725
21726
21727
21728 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21729 resolv=no
21730 cat >conftest.$ac_ext <<_ACEOF
21731 /* confdefs.h. */
21732 _ACEOF
21733 cat confdefs.h >>conftest.$ac_ext
21734 cat >>conftest.$ac_ext <<_ACEOF
21735 /* end confdefs.h. */
21736 #include <netinet/in.h>
21737 #include <arpa/nameser.h>
21738 #include <resolv.h>
21739 int
21740 main ()
21741 {
21742 return res_init();
21743 ;
21744 return 0;
21745 }
21746 _ACEOF
21747 rm -f conftest.$ac_objext conftest$ac_exeext
21748 if { (ac_try="$ac_link"
21749 case "(($ac_try" in
21750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21751 *) ac_try_echo=$ac_try;;
21752 esac
21753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21754 $as_echo "$ac_try_echo") >&5
21755 (eval "$ac_link") 2>conftest.er1
21756 ac_status=$?
21757 grep -v '^ *+' conftest.er1 >conftest.err
21758 rm -f conftest.er1
21759 cat conftest.err >&5
21760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21761 (exit $ac_status); } && {
21762 test -z "$ac_c_werror_flag" ||
21763 test ! -s conftest.err
21764 } && test -s conftest$ac_exeext && {
21765 test "$cross_compiling" = yes ||
21766 $as_test_x conftest$ac_exeext
21767 }; then
21768 have_res_init=yes
21769 else
21770 $as_echo "$as_me: failed program was:" >&5
21771 sed 's/^/| /' conftest.$ac_ext >&5
21772
21773 have_res_init=no
21774 fi
21775
21776 rm -rf conftest.dSYM
21777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21778 conftest$ac_exeext conftest.$ac_ext
21779 if test "$have_res_init" = no; then
21780 OLIBS="$LIBS"
21781 LIBS="$LIBS -lresolv"
21782 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
21783 $as_echo_n "checking for res_init with -lresolv... " >&6; }
21784 cat >conftest.$ac_ext <<_ACEOF
21785 /* confdefs.h. */
21786 _ACEOF
21787 cat confdefs.h >>conftest.$ac_ext
21788 cat >>conftest.$ac_ext <<_ACEOF
21789 /* end confdefs.h. */
21790 #include <netinet/in.h>
21791 #include <arpa/nameser.h>
21792 #include <resolv.h>
21793 int
21794 main ()
21795 {
21796 return res_init();
21797 ;
21798 return 0;
21799 }
21800 _ACEOF
21801 rm -f conftest.$ac_objext conftest$ac_exeext
21802 if { (ac_try="$ac_link"
21803 case "(($ac_try" in
21804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21805 *) ac_try_echo=$ac_try;;
21806 esac
21807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21808 $as_echo "$ac_try_echo") >&5
21809 (eval "$ac_link") 2>conftest.er1
21810 ac_status=$?
21811 grep -v '^ *+' conftest.er1 >conftest.err
21812 rm -f conftest.er1
21813 cat conftest.err >&5
21814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815 (exit $ac_status); } && {
21816 test -z "$ac_c_werror_flag" ||
21817 test ! -s conftest.err
21818 } && test -s conftest$ac_exeext && {
21819 test "$cross_compiling" = yes ||
21820 $as_test_x conftest$ac_exeext
21821 }; then
21822 have_res_init=yes
21823 else
21824 $as_echo "$as_me: failed program was:" >&5
21825 sed 's/^/| /' conftest.$ac_ext >&5
21826
21827 have_res_init=no
21828 fi
21829
21830 rm -rf conftest.dSYM
21831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21832 conftest$ac_exeext conftest.$ac_ext
21833 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
21834 $as_echo "$have_res_init" >&6; }
21835 if test "$have_res_init" = yes ; then
21836 resolv=yes
21837 fi
21838 LIBS="$OLIBS"
21839 fi
21840
21841 if test "$have_res_init" = yes; then
21842
21843 cat >>confdefs.h <<\_ACEOF
21844 #define HAVE_RES_INIT 1
21845 _ACEOF
21846
21847 fi
21848
21849 # Do we need the Hesiod library to provide the support routines?
21850 LIBHESIOD=
21851 if test "$with_hesiod" != no ; then
21852 # Don't set $LIBS here -- see comments above. FIXME which comments?
21853 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
21854 $as_echo_n "checking for res_send... " >&6; }
21855 if test "${ac_cv_func_res_send+set}" = set; then
21856 $as_echo_n "(cached) " >&6
21857 else
21858 cat >conftest.$ac_ext <<_ACEOF
21859 /* confdefs.h. */
21860 _ACEOF
21861 cat confdefs.h >>conftest.$ac_ext
21862 cat >>conftest.$ac_ext <<_ACEOF
21863 /* end confdefs.h. */
21864 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21866 #define res_send innocuous_res_send
21867
21868 /* System header to define __stub macros and hopefully few prototypes,
21869 which can conflict with char res_send (); below.
21870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21871 <limits.h> exists even on freestanding compilers. */
21872
21873 #ifdef __STDC__
21874 # include <limits.h>
21875 #else
21876 # include <assert.h>
21877 #endif
21878
21879 #undef res_send
21880
21881 /* Override any GCC internal prototype to avoid an error.
21882 Use char because int might match the return type of a GCC
21883 builtin and then its argument prototype would still apply. */
21884 #ifdef __cplusplus
21885 extern "C"
21886 #endif
21887 char res_send ();
21888 /* The GNU C library defines this for functions which it implements
21889 to always fail with ENOSYS. Some functions are actually named
21890 something starting with __ and the normal name is an alias. */
21891 #if defined __stub_res_send || defined __stub___res_send
21892 choke me
21893 #endif
21894
21895 int
21896 main ()
21897 {
21898 return res_send ();
21899 ;
21900 return 0;
21901 }
21902 _ACEOF
21903 rm -f conftest.$ac_objext conftest$ac_exeext
21904 if { (ac_try="$ac_link"
21905 case "(($ac_try" in
21906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21907 *) ac_try_echo=$ac_try;;
21908 esac
21909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21910 $as_echo "$ac_try_echo") >&5
21911 (eval "$ac_link") 2>conftest.er1
21912 ac_status=$?
21913 grep -v '^ *+' conftest.er1 >conftest.err
21914 rm -f conftest.er1
21915 cat conftest.err >&5
21916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917 (exit $ac_status); } && {
21918 test -z "$ac_c_werror_flag" ||
21919 test ! -s conftest.err
21920 } && test -s conftest$ac_exeext && {
21921 test "$cross_compiling" = yes ||
21922 $as_test_x conftest$ac_exeext
21923 }; then
21924 ac_cv_func_res_send=yes
21925 else
21926 $as_echo "$as_me: failed program was:" >&5
21927 sed 's/^/| /' conftest.$ac_ext >&5
21928
21929 ac_cv_func_res_send=no
21930 fi
21931
21932 rm -rf conftest.dSYM
21933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21934 conftest$ac_exeext conftest.$ac_ext
21935 fi
21936 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
21937 $as_echo "$ac_cv_func_res_send" >&6; }
21938 if test $ac_cv_func_res_send = yes; then
21939 :
21940 else
21941 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
21942 $as_echo_n "checking for __res_send... " >&6; }
21943 if test "${ac_cv_func___res_send+set}" = set; then
21944 $as_echo_n "(cached) " >&6
21945 else
21946 cat >conftest.$ac_ext <<_ACEOF
21947 /* confdefs.h. */
21948 _ACEOF
21949 cat confdefs.h >>conftest.$ac_ext
21950 cat >>conftest.$ac_ext <<_ACEOF
21951 /* end confdefs.h. */
21952 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21954 #define __res_send innocuous___res_send
21955
21956 /* System header to define __stub macros and hopefully few prototypes,
21957 which can conflict with char __res_send (); below.
21958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21959 <limits.h> exists even on freestanding compilers. */
21960
21961 #ifdef __STDC__
21962 # include <limits.h>
21963 #else
21964 # include <assert.h>
21965 #endif
21966
21967 #undef __res_send
21968
21969 /* Override any GCC internal prototype to avoid an error.
21970 Use char because int might match the return type of a GCC
21971 builtin and then its argument prototype would still apply. */
21972 #ifdef __cplusplus
21973 extern "C"
21974 #endif
21975 char __res_send ();
21976 /* The GNU C library defines this for functions which it implements
21977 to always fail with ENOSYS. Some functions are actually named
21978 something starting with __ and the normal name is an alias. */
21979 #if defined __stub___res_send || defined __stub_____res_send
21980 choke me
21981 #endif
21982
21983 int
21984 main ()
21985 {
21986 return __res_send ();
21987 ;
21988 return 0;
21989 }
21990 _ACEOF
21991 rm -f conftest.$ac_objext conftest$ac_exeext
21992 if { (ac_try="$ac_link"
21993 case "(($ac_try" in
21994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21995 *) ac_try_echo=$ac_try;;
21996 esac
21997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21998 $as_echo "$ac_try_echo") >&5
21999 (eval "$ac_link") 2>conftest.er1
22000 ac_status=$?
22001 grep -v '^ *+' conftest.er1 >conftest.err
22002 rm -f conftest.er1
22003 cat conftest.err >&5
22004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005 (exit $ac_status); } && {
22006 test -z "$ac_c_werror_flag" ||
22007 test ! -s conftest.err
22008 } && test -s conftest$ac_exeext && {
22009 test "$cross_compiling" = yes ||
22010 $as_test_x conftest$ac_exeext
22011 }; then
22012 ac_cv_func___res_send=yes
22013 else
22014 $as_echo "$as_me: failed program was:" >&5
22015 sed 's/^/| /' conftest.$ac_ext >&5
22016
22017 ac_cv_func___res_send=no
22018 fi
22019
22020 rm -rf conftest.dSYM
22021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22022 conftest$ac_exeext conftest.$ac_ext
22023 fi
22024 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
22025 $as_echo "$ac_cv_func___res_send" >&6; }
22026 if test $ac_cv_func___res_send = yes; then
22027 :
22028 else
22029 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
22030 $as_echo_n "checking for res_send in -lresolv... " >&6; }
22031 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
22032 $as_echo_n "(cached) " >&6
22033 else
22034 ac_check_lib_save_LIBS=$LIBS
22035 LIBS="-lresolv $LIBS"
22036 cat >conftest.$ac_ext <<_ACEOF
22037 /* confdefs.h. */
22038 _ACEOF
22039 cat confdefs.h >>conftest.$ac_ext
22040 cat >>conftest.$ac_ext <<_ACEOF
22041 /* end confdefs.h. */
22042
22043 /* Override any GCC internal prototype to avoid an error.
22044 Use char because int might match the return type of a GCC
22045 builtin and then its argument prototype would still apply. */
22046 #ifdef __cplusplus
22047 extern "C"
22048 #endif
22049 char res_send ();
22050 int
22051 main ()
22052 {
22053 return res_send ();
22054 ;
22055 return 0;
22056 }
22057 _ACEOF
22058 rm -f conftest.$ac_objext conftest$ac_exeext
22059 if { (ac_try="$ac_link"
22060 case "(($ac_try" in
22061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22062 *) ac_try_echo=$ac_try;;
22063 esac
22064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22065 $as_echo "$ac_try_echo") >&5
22066 (eval "$ac_link") 2>conftest.er1
22067 ac_status=$?
22068 grep -v '^ *+' conftest.er1 >conftest.err
22069 rm -f conftest.er1
22070 cat conftest.err >&5
22071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22072 (exit $ac_status); } && {
22073 test -z "$ac_c_werror_flag" ||
22074 test ! -s conftest.err
22075 } && test -s conftest$ac_exeext && {
22076 test "$cross_compiling" = yes ||
22077 $as_test_x conftest$ac_exeext
22078 }; then
22079 ac_cv_lib_resolv_res_send=yes
22080 else
22081 $as_echo "$as_me: failed program was:" >&5
22082 sed 's/^/| /' conftest.$ac_ext >&5
22083
22084 ac_cv_lib_resolv_res_send=no
22085 fi
22086
22087 rm -rf conftest.dSYM
22088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22089 conftest$ac_exeext conftest.$ac_ext
22090 LIBS=$ac_check_lib_save_LIBS
22091 fi
22092 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
22093 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
22094 if test $ac_cv_lib_resolv_res_send = yes; then
22095 resolv=yes
22096 else
22097 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
22098 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
22099 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
22100 $as_echo_n "(cached) " >&6
22101 else
22102 ac_check_lib_save_LIBS=$LIBS
22103 LIBS="-lresolv $LIBS"
22104 cat >conftest.$ac_ext <<_ACEOF
22105 /* confdefs.h. */
22106 _ACEOF
22107 cat confdefs.h >>conftest.$ac_ext
22108 cat >>conftest.$ac_ext <<_ACEOF
22109 /* end confdefs.h. */
22110
22111 /* Override any GCC internal prototype to avoid an error.
22112 Use char because int might match the return type of a GCC
22113 builtin and then its argument prototype would still apply. */
22114 #ifdef __cplusplus
22115 extern "C"
22116 #endif
22117 char __res_send ();
22118 int
22119 main ()
22120 {
22121 return __res_send ();
22122 ;
22123 return 0;
22124 }
22125 _ACEOF
22126 rm -f conftest.$ac_objext conftest$ac_exeext
22127 if { (ac_try="$ac_link"
22128 case "(($ac_try" in
22129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22130 *) ac_try_echo=$ac_try;;
22131 esac
22132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22133 $as_echo "$ac_try_echo") >&5
22134 (eval "$ac_link") 2>conftest.er1
22135 ac_status=$?
22136 grep -v '^ *+' conftest.er1 >conftest.err
22137 rm -f conftest.er1
22138 cat conftest.err >&5
22139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140 (exit $ac_status); } && {
22141 test -z "$ac_c_werror_flag" ||
22142 test ! -s conftest.err
22143 } && test -s conftest$ac_exeext && {
22144 test "$cross_compiling" = yes ||
22145 $as_test_x conftest$ac_exeext
22146 }; then
22147 ac_cv_lib_resolv___res_send=yes
22148 else
22149 $as_echo "$as_me: failed program was:" >&5
22150 sed 's/^/| /' conftest.$ac_ext >&5
22151
22152 ac_cv_lib_resolv___res_send=no
22153 fi
22154
22155 rm -rf conftest.dSYM
22156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22157 conftest$ac_exeext conftest.$ac_ext
22158 LIBS=$ac_check_lib_save_LIBS
22159 fi
22160 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
22161 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
22162 if test $ac_cv_lib_resolv___res_send = yes; then
22163 resolv=yes
22164 fi
22165
22166 fi
22167
22168 fi
22169
22170 fi
22171
22172 if test "$resolv" = yes ; then
22173 RESOLVLIB=-lresolv
22174 else
22175 RESOLVLIB=
22176 fi
22177 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
22178 $as_echo_n "checking for hes_getmailhost... " >&6; }
22179 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
22180 $as_echo_n "(cached) " >&6
22181 else
22182 cat >conftest.$ac_ext <<_ACEOF
22183 /* confdefs.h. */
22184 _ACEOF
22185 cat confdefs.h >>conftest.$ac_ext
22186 cat >>conftest.$ac_ext <<_ACEOF
22187 /* end confdefs.h. */
22188 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
22189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22190 #define hes_getmailhost innocuous_hes_getmailhost
22191
22192 /* System header to define __stub macros and hopefully few prototypes,
22193 which can conflict with char hes_getmailhost (); below.
22194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22195 <limits.h> exists even on freestanding compilers. */
22196
22197 #ifdef __STDC__
22198 # include <limits.h>
22199 #else
22200 # include <assert.h>
22201 #endif
22202
22203 #undef hes_getmailhost
22204
22205 /* Override any GCC internal prototype to avoid an error.
22206 Use char because int might match the return type of a GCC
22207 builtin and then its argument prototype would still apply. */
22208 #ifdef __cplusplus
22209 extern "C"
22210 #endif
22211 char hes_getmailhost ();
22212 /* The GNU C library defines this for functions which it implements
22213 to always fail with ENOSYS. Some functions are actually named
22214 something starting with __ and the normal name is an alias. */
22215 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
22216 choke me
22217 #endif
22218
22219 int
22220 main ()
22221 {
22222 return hes_getmailhost ();
22223 ;
22224 return 0;
22225 }
22226 _ACEOF
22227 rm -f conftest.$ac_objext conftest$ac_exeext
22228 if { (ac_try="$ac_link"
22229 case "(($ac_try" in
22230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22231 *) ac_try_echo=$ac_try;;
22232 esac
22233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22234 $as_echo "$ac_try_echo") >&5
22235 (eval "$ac_link") 2>conftest.er1
22236 ac_status=$?
22237 grep -v '^ *+' conftest.er1 >conftest.err
22238 rm -f conftest.er1
22239 cat conftest.err >&5
22240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22241 (exit $ac_status); } && {
22242 test -z "$ac_c_werror_flag" ||
22243 test ! -s conftest.err
22244 } && test -s conftest$ac_exeext && {
22245 test "$cross_compiling" = yes ||
22246 $as_test_x conftest$ac_exeext
22247 }; then
22248 ac_cv_func_hes_getmailhost=yes
22249 else
22250 $as_echo "$as_me: failed program was:" >&5
22251 sed 's/^/| /' conftest.$ac_ext >&5
22252
22253 ac_cv_func_hes_getmailhost=no
22254 fi
22255
22256 rm -rf conftest.dSYM
22257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22258 conftest$ac_exeext conftest.$ac_ext
22259 fi
22260 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
22261 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
22262 if test $ac_cv_func_hes_getmailhost = yes; then
22263 :
22264 else
22265 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
22266 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
22267 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
22268 $as_echo_n "(cached) " >&6
22269 else
22270 ac_check_lib_save_LIBS=$LIBS
22271 LIBS="-lhesiod $RESOLVLIB $LIBS"
22272 cat >conftest.$ac_ext <<_ACEOF
22273 /* confdefs.h. */
22274 _ACEOF
22275 cat confdefs.h >>conftest.$ac_ext
22276 cat >>conftest.$ac_ext <<_ACEOF
22277 /* end confdefs.h. */
22278
22279 /* Override any GCC internal prototype to avoid an error.
22280 Use char because int might match the return type of a GCC
22281 builtin and then its argument prototype would still apply. */
22282 #ifdef __cplusplus
22283 extern "C"
22284 #endif
22285 char hes_getmailhost ();
22286 int
22287 main ()
22288 {
22289 return hes_getmailhost ();
22290 ;
22291 return 0;
22292 }
22293 _ACEOF
22294 rm -f conftest.$ac_objext conftest$ac_exeext
22295 if { (ac_try="$ac_link"
22296 case "(($ac_try" in
22297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22298 *) ac_try_echo=$ac_try;;
22299 esac
22300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22301 $as_echo "$ac_try_echo") >&5
22302 (eval "$ac_link") 2>conftest.er1
22303 ac_status=$?
22304 grep -v '^ *+' conftest.er1 >conftest.err
22305 rm -f conftest.er1
22306 cat conftest.err >&5
22307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22308 (exit $ac_status); } && {
22309 test -z "$ac_c_werror_flag" ||
22310 test ! -s conftest.err
22311 } && test -s conftest$ac_exeext && {
22312 test "$cross_compiling" = yes ||
22313 $as_test_x conftest$ac_exeext
22314 }; then
22315 ac_cv_lib_hesiod_hes_getmailhost=yes
22316 else
22317 $as_echo "$as_me: failed program was:" >&5
22318 sed 's/^/| /' conftest.$ac_ext >&5
22319
22320 ac_cv_lib_hesiod_hes_getmailhost=no
22321 fi
22322
22323 rm -rf conftest.dSYM
22324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22325 conftest$ac_exeext conftest.$ac_ext
22326 LIBS=$ac_check_lib_save_LIBS
22327 fi
22328 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
22329 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
22330 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
22331 hesiod=yes
22332 else
22333 :
22334 fi
22335
22336 fi
22337
22338
22339 if test x"$hesiod" = xyes; then
22340
22341 cat >>confdefs.h <<\_ACEOF
22342 #define HAVE_LIBHESIOD 1
22343 _ACEOF
22344
22345 LIBHESIOD=-lhesiod
22346 fi
22347 fi
22348
22349
22350 # Do we need libresolv (due to res_init or Hesiod)?
22351 if test "$resolv" = yes ; then
22352
22353 cat >>confdefs.h <<\_ACEOF
22354 #define HAVE_LIBRESOLV 1
22355 _ACEOF
22356
22357 LIBRESOLV=-lresolv
22358 else
22359 LIBRESOLV=
22360 fi
22361
22362
22363 # These tell us which Kerberos-related libraries to use.
22364 COM_ERRLIB=
22365 CRYPTOLIB=
22366 KRB5LIB=
22367 DESLIB=
22368 KRB4LIB=
22369
22370 if test "${with_kerberos}" != no; then
22371 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
22372 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
22373 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
22374 $as_echo_n "(cached) " >&6
22375 else
22376 ac_check_lib_save_LIBS=$LIBS
22377 LIBS="-lcom_err $LIBS"
22378 cat >conftest.$ac_ext <<_ACEOF
22379 /* confdefs.h. */
22380 _ACEOF
22381 cat confdefs.h >>conftest.$ac_ext
22382 cat >>conftest.$ac_ext <<_ACEOF
22383 /* end confdefs.h. */
22384
22385 /* Override any GCC internal prototype to avoid an error.
22386 Use char because int might match the return type of a GCC
22387 builtin and then its argument prototype would still apply. */
22388 #ifdef __cplusplus
22389 extern "C"
22390 #endif
22391 char com_err ();
22392 int
22393 main ()
22394 {
22395 return com_err ();
22396 ;
22397 return 0;
22398 }
22399 _ACEOF
22400 rm -f conftest.$ac_objext conftest$ac_exeext
22401 if { (ac_try="$ac_link"
22402 case "(($ac_try" in
22403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22404 *) ac_try_echo=$ac_try;;
22405 esac
22406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22407 $as_echo "$ac_try_echo") >&5
22408 (eval "$ac_link") 2>conftest.er1
22409 ac_status=$?
22410 grep -v '^ *+' conftest.er1 >conftest.err
22411 rm -f conftest.er1
22412 cat conftest.err >&5
22413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414 (exit $ac_status); } && {
22415 test -z "$ac_c_werror_flag" ||
22416 test ! -s conftest.err
22417 } && test -s conftest$ac_exeext && {
22418 test "$cross_compiling" = yes ||
22419 $as_test_x conftest$ac_exeext
22420 }; then
22421 ac_cv_lib_com_err_com_err=yes
22422 else
22423 $as_echo "$as_me: failed program was:" >&5
22424 sed 's/^/| /' conftest.$ac_ext >&5
22425
22426 ac_cv_lib_com_err_com_err=no
22427 fi
22428
22429 rm -rf conftest.dSYM
22430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22431 conftest$ac_exeext conftest.$ac_ext
22432 LIBS=$ac_check_lib_save_LIBS
22433 fi
22434 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
22435 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
22436 if test $ac_cv_lib_com_err_com_err = yes; then
22437 have_com_err=yes
22438 else
22439 have_com_err=no
22440 fi
22441
22442 if test $have_com_err = yes; then
22443 COM_ERRLIB=-lcom_err
22444 LIBS="$COM_ERRLIB $LIBS"
22445
22446 cat >>confdefs.h <<\_ACEOF
22447 #define HAVE_LIBCOM_ERR 1
22448 _ACEOF
22449
22450 fi
22451 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
22452 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
22453 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
22454 $as_echo_n "(cached) " >&6
22455 else
22456 ac_check_lib_save_LIBS=$LIBS
22457 LIBS="-lcrypto $LIBS"
22458 cat >conftest.$ac_ext <<_ACEOF
22459 /* confdefs.h. */
22460 _ACEOF
22461 cat confdefs.h >>conftest.$ac_ext
22462 cat >>conftest.$ac_ext <<_ACEOF
22463 /* end confdefs.h. */
22464
22465 /* Override any GCC internal prototype to avoid an error.
22466 Use char because int might match the return type of a GCC
22467 builtin and then its argument prototype would still apply. */
22468 #ifdef __cplusplus
22469 extern "C"
22470 #endif
22471 char mit_des_cbc_encrypt ();
22472 int
22473 main ()
22474 {
22475 return mit_des_cbc_encrypt ();
22476 ;
22477 return 0;
22478 }
22479 _ACEOF
22480 rm -f conftest.$ac_objext conftest$ac_exeext
22481 if { (ac_try="$ac_link"
22482 case "(($ac_try" in
22483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22484 *) ac_try_echo=$ac_try;;
22485 esac
22486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22487 $as_echo "$ac_try_echo") >&5
22488 (eval "$ac_link") 2>conftest.er1
22489 ac_status=$?
22490 grep -v '^ *+' conftest.er1 >conftest.err
22491 rm -f conftest.er1
22492 cat conftest.err >&5
22493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494 (exit $ac_status); } && {
22495 test -z "$ac_c_werror_flag" ||
22496 test ! -s conftest.err
22497 } && test -s conftest$ac_exeext && {
22498 test "$cross_compiling" = yes ||
22499 $as_test_x conftest$ac_exeext
22500 }; then
22501 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22502 else
22503 $as_echo "$as_me: failed program was:" >&5
22504 sed 's/^/| /' conftest.$ac_ext >&5
22505
22506 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22507 fi
22508
22509 rm -rf conftest.dSYM
22510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22511 conftest$ac_exeext conftest.$ac_ext
22512 LIBS=$ac_check_lib_save_LIBS
22513 fi
22514 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22515 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22516 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
22517 have_crypto=yes
22518 else
22519 have_crypto=no
22520 fi
22521
22522 if test $have_crypto = yes; then
22523 CRYPTOLIB=-lcrypto
22524 LIBS="$CRYPTOLIB $LIBS"
22525
22526 cat >>confdefs.h <<\_ACEOF
22527 #define HAVE_LIBCRYPTO 1
22528 _ACEOF
22529
22530 fi
22531 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
22532 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
22533 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
22534 $as_echo_n "(cached) " >&6
22535 else
22536 ac_check_lib_save_LIBS=$LIBS
22537 LIBS="-lk5crypto $LIBS"
22538 cat >conftest.$ac_ext <<_ACEOF
22539 /* confdefs.h. */
22540 _ACEOF
22541 cat confdefs.h >>conftest.$ac_ext
22542 cat >>conftest.$ac_ext <<_ACEOF
22543 /* end confdefs.h. */
22544
22545 /* Override any GCC internal prototype to avoid an error.
22546 Use char because int might match the return type of a GCC
22547 builtin and then its argument prototype would still apply. */
22548 #ifdef __cplusplus
22549 extern "C"
22550 #endif
22551 char mit_des_cbc_encrypt ();
22552 int
22553 main ()
22554 {
22555 return mit_des_cbc_encrypt ();
22556 ;
22557 return 0;
22558 }
22559 _ACEOF
22560 rm -f conftest.$ac_objext conftest$ac_exeext
22561 if { (ac_try="$ac_link"
22562 case "(($ac_try" in
22563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22564 *) ac_try_echo=$ac_try;;
22565 esac
22566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22567 $as_echo "$ac_try_echo") >&5
22568 (eval "$ac_link") 2>conftest.er1
22569 ac_status=$?
22570 grep -v '^ *+' conftest.er1 >conftest.err
22571 rm -f conftest.er1
22572 cat conftest.err >&5
22573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574 (exit $ac_status); } && {
22575 test -z "$ac_c_werror_flag" ||
22576 test ! -s conftest.err
22577 } && test -s conftest$ac_exeext && {
22578 test "$cross_compiling" = yes ||
22579 $as_test_x conftest$ac_exeext
22580 }; then
22581 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22582 else
22583 $as_echo "$as_me: failed program was:" >&5
22584 sed 's/^/| /' conftest.$ac_ext >&5
22585
22586 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22587 fi
22588
22589 rm -rf conftest.dSYM
22590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22591 conftest$ac_exeext conftest.$ac_ext
22592 LIBS=$ac_check_lib_save_LIBS
22593 fi
22594 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22595 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22596 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
22597 have_k5crypto=yes
22598 else
22599 have_k5crypto=no
22600 fi
22601
22602 if test $have_k5crypto = yes; then
22603 CRYPTOLIB=-lk5crypto
22604 LIBS="$CRYPTOLIB $LIBS"
22605
22606 cat >>confdefs.h <<\_ACEOF
22607 #define HAVE_LIBK5CRYPTO 1
22608 _ACEOF
22609
22610 fi
22611 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
22612 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
22613 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22614 $as_echo_n "(cached) " >&6
22615 else
22616 ac_check_lib_save_LIBS=$LIBS
22617 LIBS="-lkrb5 $LIBS"
22618 cat >conftest.$ac_ext <<_ACEOF
22619 /* confdefs.h. */
22620 _ACEOF
22621 cat confdefs.h >>conftest.$ac_ext
22622 cat >>conftest.$ac_ext <<_ACEOF
22623 /* end confdefs.h. */
22624
22625 /* Override any GCC internal prototype to avoid an error.
22626 Use char because int might match the return type of a GCC
22627 builtin and then its argument prototype would still apply. */
22628 #ifdef __cplusplus
22629 extern "C"
22630 #endif
22631 char krb5_init_context ();
22632 int
22633 main ()
22634 {
22635 return krb5_init_context ();
22636 ;
22637 return 0;
22638 }
22639 _ACEOF
22640 rm -f conftest.$ac_objext conftest$ac_exeext
22641 if { (ac_try="$ac_link"
22642 case "(($ac_try" in
22643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22644 *) ac_try_echo=$ac_try;;
22645 esac
22646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22647 $as_echo "$ac_try_echo") >&5
22648 (eval "$ac_link") 2>conftest.er1
22649 ac_status=$?
22650 grep -v '^ *+' conftest.er1 >conftest.err
22651 rm -f conftest.er1
22652 cat conftest.err >&5
22653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22654 (exit $ac_status); } && {
22655 test -z "$ac_c_werror_flag" ||
22656 test ! -s conftest.err
22657 } && test -s conftest$ac_exeext && {
22658 test "$cross_compiling" = yes ||
22659 $as_test_x conftest$ac_exeext
22660 }; then
22661 ac_cv_lib_krb5_krb5_init_context=yes
22662 else
22663 $as_echo "$as_me: failed program was:" >&5
22664 sed 's/^/| /' conftest.$ac_ext >&5
22665
22666 ac_cv_lib_krb5_krb5_init_context=no
22667 fi
22668
22669 rm -rf conftest.dSYM
22670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22671 conftest$ac_exeext conftest.$ac_ext
22672 LIBS=$ac_check_lib_save_LIBS
22673 fi
22674 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
22675 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22676 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
22677 have_krb5=yes
22678 else
22679 have_krb5=no
22680 fi
22681
22682 if test $have_krb5=yes; then
22683 KRB5LIB=-lkrb5
22684 LIBS="$KRB5LIB $LIBS"
22685
22686 cat >>confdefs.h <<\_ACEOF
22687 #define HAVE_LIBKRB5 1
22688 _ACEOF
22689
22690 fi
22691 if test "${with_kerberos5}" = no; then
22692 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
22693 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
22694 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22695 $as_echo_n "(cached) " >&6
22696 else
22697 ac_check_lib_save_LIBS=$LIBS
22698 LIBS="-ldes425 $LIBS"
22699 cat >conftest.$ac_ext <<_ACEOF
22700 /* confdefs.h. */
22701 _ACEOF
22702 cat confdefs.h >>conftest.$ac_ext
22703 cat >>conftest.$ac_ext <<_ACEOF
22704 /* end confdefs.h. */
22705
22706 /* Override any GCC internal prototype to avoid an error.
22707 Use char because int might match the return type of a GCC
22708 builtin and then its argument prototype would still apply. */
22709 #ifdef __cplusplus
22710 extern "C"
22711 #endif
22712 char des_cbc_encrypt ();
22713 int
22714 main ()
22715 {
22716 return des_cbc_encrypt ();
22717 ;
22718 return 0;
22719 }
22720 _ACEOF
22721 rm -f conftest.$ac_objext conftest$ac_exeext
22722 if { (ac_try="$ac_link"
22723 case "(($ac_try" in
22724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22725 *) ac_try_echo=$ac_try;;
22726 esac
22727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22728 $as_echo "$ac_try_echo") >&5
22729 (eval "$ac_link") 2>conftest.er1
22730 ac_status=$?
22731 grep -v '^ *+' conftest.er1 >conftest.err
22732 rm -f conftest.er1
22733 cat conftest.err >&5
22734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22735 (exit $ac_status); } && {
22736 test -z "$ac_c_werror_flag" ||
22737 test ! -s conftest.err
22738 } && test -s conftest$ac_exeext && {
22739 test "$cross_compiling" = yes ||
22740 $as_test_x conftest$ac_exeext
22741 }; then
22742 ac_cv_lib_des425_des_cbc_encrypt=yes
22743 else
22744 $as_echo "$as_me: failed program was:" >&5
22745 sed 's/^/| /' conftest.$ac_ext >&5
22746
22747 ac_cv_lib_des425_des_cbc_encrypt=no
22748 fi
22749
22750 rm -rf conftest.dSYM
22751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22752 conftest$ac_exeext conftest.$ac_ext
22753 LIBS=$ac_check_lib_save_LIBS
22754 fi
22755 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22756 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22757 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
22758 have_des425=yes
22759 else
22760 have_des425=no
22761 fi
22762
22763 if test $have_des425 = yes; then
22764 DESLIB=-ldes425
22765 LIBS="$DESLIB $LIBS"
22766
22767 cat >>confdefs.h <<\_ACEOF
22768 #define HAVE_LIBDES425 1
22769 _ACEOF
22770
22771 else
22772 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
22773 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
22774 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22775 $as_echo_n "(cached) " >&6
22776 else
22777 ac_check_lib_save_LIBS=$LIBS
22778 LIBS="-ldes $LIBS"
22779 cat >conftest.$ac_ext <<_ACEOF
22780 /* confdefs.h. */
22781 _ACEOF
22782 cat confdefs.h >>conftest.$ac_ext
22783 cat >>conftest.$ac_ext <<_ACEOF
22784 /* end confdefs.h. */
22785
22786 /* Override any GCC internal prototype to avoid an error.
22787 Use char because int might match the return type of a GCC
22788 builtin and then its argument prototype would still apply. */
22789 #ifdef __cplusplus
22790 extern "C"
22791 #endif
22792 char des_cbc_encrypt ();
22793 int
22794 main ()
22795 {
22796 return des_cbc_encrypt ();
22797 ;
22798 return 0;
22799 }
22800 _ACEOF
22801 rm -f conftest.$ac_objext conftest$ac_exeext
22802 if { (ac_try="$ac_link"
22803 case "(($ac_try" in
22804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22805 *) ac_try_echo=$ac_try;;
22806 esac
22807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22808 $as_echo "$ac_try_echo") >&5
22809 (eval "$ac_link") 2>conftest.er1
22810 ac_status=$?
22811 grep -v '^ *+' conftest.er1 >conftest.err
22812 rm -f conftest.er1
22813 cat conftest.err >&5
22814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22815 (exit $ac_status); } && {
22816 test -z "$ac_c_werror_flag" ||
22817 test ! -s conftest.err
22818 } && test -s conftest$ac_exeext && {
22819 test "$cross_compiling" = yes ||
22820 $as_test_x conftest$ac_exeext
22821 }; then
22822 ac_cv_lib_des_des_cbc_encrypt=yes
22823 else
22824 $as_echo "$as_me: failed program was:" >&5
22825 sed 's/^/| /' conftest.$ac_ext >&5
22826
22827 ac_cv_lib_des_des_cbc_encrypt=no
22828 fi
22829
22830 rm -rf conftest.dSYM
22831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22832 conftest$ac_exeext conftest.$ac_ext
22833 LIBS=$ac_check_lib_save_LIBS
22834 fi
22835 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
22836 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22837 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
22838 have_des=yes
22839 else
22840 have_des=no
22841 fi
22842
22843 if test $have_des = yes; then
22844 DESLIB=-ldes
22845 LIBS="$DESLIB $LIBS"
22846
22847 cat >>confdefs.h <<\_ACEOF
22848 #define HAVE_LIBDES 1
22849 _ACEOF
22850
22851 fi
22852 fi
22853 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
22854 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
22855 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22856 $as_echo_n "(cached) " >&6
22857 else
22858 ac_check_lib_save_LIBS=$LIBS
22859 LIBS="-lkrb4 $LIBS"
22860 cat >conftest.$ac_ext <<_ACEOF
22861 /* confdefs.h. */
22862 _ACEOF
22863 cat confdefs.h >>conftest.$ac_ext
22864 cat >>conftest.$ac_ext <<_ACEOF
22865 /* end confdefs.h. */
22866
22867 /* Override any GCC internal prototype to avoid an error.
22868 Use char because int might match the return type of a GCC
22869 builtin and then its argument prototype would still apply. */
22870 #ifdef __cplusplus
22871 extern "C"
22872 #endif
22873 char krb_get_cred ();
22874 int
22875 main ()
22876 {
22877 return krb_get_cred ();
22878 ;
22879 return 0;
22880 }
22881 _ACEOF
22882 rm -f conftest.$ac_objext conftest$ac_exeext
22883 if { (ac_try="$ac_link"
22884 case "(($ac_try" in
22885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22886 *) ac_try_echo=$ac_try;;
22887 esac
22888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22889 $as_echo "$ac_try_echo") >&5
22890 (eval "$ac_link") 2>conftest.er1
22891 ac_status=$?
22892 grep -v '^ *+' conftest.er1 >conftest.err
22893 rm -f conftest.er1
22894 cat conftest.err >&5
22895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22896 (exit $ac_status); } && {
22897 test -z "$ac_c_werror_flag" ||
22898 test ! -s conftest.err
22899 } && test -s conftest$ac_exeext && {
22900 test "$cross_compiling" = yes ||
22901 $as_test_x conftest$ac_exeext
22902 }; then
22903 ac_cv_lib_krb4_krb_get_cred=yes
22904 else
22905 $as_echo "$as_me: failed program was:" >&5
22906 sed 's/^/| /' conftest.$ac_ext >&5
22907
22908 ac_cv_lib_krb4_krb_get_cred=no
22909 fi
22910
22911 rm -rf conftest.dSYM
22912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22913 conftest$ac_exeext conftest.$ac_ext
22914 LIBS=$ac_check_lib_save_LIBS
22915 fi
22916 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
22917 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22918 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22919 have_krb4=yes
22920 else
22921 have_krb4=no
22922 fi
22923
22924 if test $have_krb4 = yes; then
22925 KRB4LIB=-lkrb4
22926 LIBS="$KRB4LIB $LIBS"
22927
22928 cat >>confdefs.h <<\_ACEOF
22929 #define HAVE_LIBKRB4 1
22930 _ACEOF
22931
22932 else
22933 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
22934 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
22935 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22936 $as_echo_n "(cached) " >&6
22937 else
22938 ac_check_lib_save_LIBS=$LIBS
22939 LIBS="-lkrb $LIBS"
22940 cat >conftest.$ac_ext <<_ACEOF
22941 /* confdefs.h. */
22942 _ACEOF
22943 cat confdefs.h >>conftest.$ac_ext
22944 cat >>conftest.$ac_ext <<_ACEOF
22945 /* end confdefs.h. */
22946
22947 /* Override any GCC internal prototype to avoid an error.
22948 Use char because int might match the return type of a GCC
22949 builtin and then its argument prototype would still apply. */
22950 #ifdef __cplusplus
22951 extern "C"
22952 #endif
22953 char krb_get_cred ();
22954 int
22955 main ()
22956 {
22957 return krb_get_cred ();
22958 ;
22959 return 0;
22960 }
22961 _ACEOF
22962 rm -f conftest.$ac_objext conftest$ac_exeext
22963 if { (ac_try="$ac_link"
22964 case "(($ac_try" in
22965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22966 *) ac_try_echo=$ac_try;;
22967 esac
22968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22969 $as_echo "$ac_try_echo") >&5
22970 (eval "$ac_link") 2>conftest.er1
22971 ac_status=$?
22972 grep -v '^ *+' conftest.er1 >conftest.err
22973 rm -f conftest.er1
22974 cat conftest.err >&5
22975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976 (exit $ac_status); } && {
22977 test -z "$ac_c_werror_flag" ||
22978 test ! -s conftest.err
22979 } && test -s conftest$ac_exeext && {
22980 test "$cross_compiling" = yes ||
22981 $as_test_x conftest$ac_exeext
22982 }; then
22983 ac_cv_lib_krb_krb_get_cred=yes
22984 else
22985 $as_echo "$as_me: failed program was:" >&5
22986 sed 's/^/| /' conftest.$ac_ext >&5
22987
22988 ac_cv_lib_krb_krb_get_cred=no
22989 fi
22990
22991 rm -rf conftest.dSYM
22992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22993 conftest$ac_exeext conftest.$ac_ext
22994 LIBS=$ac_check_lib_save_LIBS
22995 fi
22996 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
22997 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22998 if test $ac_cv_lib_krb_krb_get_cred = yes; then
22999 have_krb=yes
23000 else
23001 have_krb=no
23002 fi
23003
23004 if test $have_krb = yes; then
23005 KRB4LIB=-lkrb
23006 LIBS="$KRB4LIB $LIBS"
23007
23008 cat >>confdefs.h <<\_ACEOF
23009 #define HAVE_LIBKRB 1
23010 _ACEOF
23011
23012 fi
23013 fi
23014 fi
23015
23016 if test "${with_kerberos5}" != no; then
23017
23018 for ac_header in krb5.h
23019 do
23020 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23022 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23023 $as_echo_n "checking for $ac_header... " >&6; }
23024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23025 $as_echo_n "(cached) " >&6
23026 fi
23027 ac_res=`eval 'as_val=${'$as_ac_Header'}
23028 $as_echo "$as_val"'`
23029 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23030 $as_echo "$ac_res" >&6; }
23031 else
23032 # Is the header compilable?
23033 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23034 $as_echo_n "checking $ac_header usability... " >&6; }
23035 cat >conftest.$ac_ext <<_ACEOF
23036 /* confdefs.h. */
23037 _ACEOF
23038 cat confdefs.h >>conftest.$ac_ext
23039 cat >>conftest.$ac_ext <<_ACEOF
23040 /* end confdefs.h. */
23041 $ac_includes_default
23042 #include <$ac_header>
23043 _ACEOF
23044 rm -f conftest.$ac_objext
23045 if { (ac_try="$ac_compile"
23046 case "(($ac_try" in
23047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23048 *) ac_try_echo=$ac_try;;
23049 esac
23050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23051 $as_echo "$ac_try_echo") >&5
23052 (eval "$ac_compile") 2>conftest.er1
23053 ac_status=$?
23054 grep -v '^ *+' conftest.er1 >conftest.err
23055 rm -f conftest.er1
23056 cat conftest.err >&5
23057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23058 (exit $ac_status); } && {
23059 test -z "$ac_c_werror_flag" ||
23060 test ! -s conftest.err
23061 } && test -s conftest.$ac_objext; then
23062 ac_header_compiler=yes
23063 else
23064 $as_echo "$as_me: failed program was:" >&5
23065 sed 's/^/| /' conftest.$ac_ext >&5
23066
23067 ac_header_compiler=no
23068 fi
23069
23070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23071 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23072 $as_echo "$ac_header_compiler" >&6; }
23073
23074 # Is the header present?
23075 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23076 $as_echo_n "checking $ac_header presence... " >&6; }
23077 cat >conftest.$ac_ext <<_ACEOF
23078 /* confdefs.h. */
23079 _ACEOF
23080 cat confdefs.h >>conftest.$ac_ext
23081 cat >>conftest.$ac_ext <<_ACEOF
23082 /* end confdefs.h. */
23083 #include <$ac_header>
23084 _ACEOF
23085 if { (ac_try="$ac_cpp conftest.$ac_ext"
23086 case "(($ac_try" in
23087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23088 *) ac_try_echo=$ac_try;;
23089 esac
23090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23091 $as_echo "$ac_try_echo") >&5
23092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23093 ac_status=$?
23094 grep -v '^ *+' conftest.er1 >conftest.err
23095 rm -f conftest.er1
23096 cat conftest.err >&5
23097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23098 (exit $ac_status); } >/dev/null && {
23099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23100 test ! -s conftest.err
23101 }; then
23102 ac_header_preproc=yes
23103 else
23104 $as_echo "$as_me: failed program was:" >&5
23105 sed 's/^/| /' conftest.$ac_ext >&5
23106
23107 ac_header_preproc=no
23108 fi
23109
23110 rm -f conftest.err conftest.$ac_ext
23111 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23112 $as_echo "$ac_header_preproc" >&6; }
23113
23114 # So? What about this header?
23115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23116 yes:no: )
23117 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23118 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23119 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23120 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23121 ac_header_preproc=yes
23122 ;;
23123 no:yes:* )
23124 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23125 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23126 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23127 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23128 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23129 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23130 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23131 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23132 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23133 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23135 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23136
23137 ;;
23138 esac
23139 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23140 $as_echo_n "checking for $ac_header... " >&6; }
23141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23142 $as_echo_n "(cached) " >&6
23143 else
23144 eval "$as_ac_Header=\$ac_header_preproc"
23145 fi
23146 ac_res=`eval 'as_val=${'$as_ac_Header'}
23147 $as_echo "$as_val"'`
23148 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23149 $as_echo "$ac_res" >&6; }
23150
23151 fi
23152 if test `eval 'as_val=${'$as_ac_Header'}
23153 $as_echo "$as_val"'` = yes; then
23154 cat >>confdefs.h <<_ACEOF
23155 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23156 _ACEOF
23157 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
23158 $as_echo_n "checking for krb5_error.text... " >&6; }
23159 if test "${ac_cv_member_krb5_error_text+set}" = set; then
23160 $as_echo_n "(cached) " >&6
23161 else
23162 cat >conftest.$ac_ext <<_ACEOF
23163 /* confdefs.h. */
23164 _ACEOF
23165 cat confdefs.h >>conftest.$ac_ext
23166 cat >>conftest.$ac_ext <<_ACEOF
23167 /* end confdefs.h. */
23168 #include <krb5.h>
23169
23170 int
23171 main ()
23172 {
23173 static krb5_error ac_aggr;
23174 if (ac_aggr.text)
23175 return 0;
23176 ;
23177 return 0;
23178 }
23179 _ACEOF
23180 rm -f conftest.$ac_objext
23181 if { (ac_try="$ac_compile"
23182 case "(($ac_try" in
23183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23184 *) ac_try_echo=$ac_try;;
23185 esac
23186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23187 $as_echo "$ac_try_echo") >&5
23188 (eval "$ac_compile") 2>conftest.er1
23189 ac_status=$?
23190 grep -v '^ *+' conftest.er1 >conftest.err
23191 rm -f conftest.er1
23192 cat conftest.err >&5
23193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194 (exit $ac_status); } && {
23195 test -z "$ac_c_werror_flag" ||
23196 test ! -s conftest.err
23197 } && test -s conftest.$ac_objext; then
23198 ac_cv_member_krb5_error_text=yes
23199 else
23200 $as_echo "$as_me: failed program was:" >&5
23201 sed 's/^/| /' conftest.$ac_ext >&5
23202
23203 cat >conftest.$ac_ext <<_ACEOF
23204 /* confdefs.h. */
23205 _ACEOF
23206 cat confdefs.h >>conftest.$ac_ext
23207 cat >>conftest.$ac_ext <<_ACEOF
23208 /* end confdefs.h. */
23209 #include <krb5.h>
23210
23211 int
23212 main ()
23213 {
23214 static krb5_error ac_aggr;
23215 if (sizeof ac_aggr.text)
23216 return 0;
23217 ;
23218 return 0;
23219 }
23220 _ACEOF
23221 rm -f conftest.$ac_objext
23222 if { (ac_try="$ac_compile"
23223 case "(($ac_try" in
23224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23225 *) ac_try_echo=$ac_try;;
23226 esac
23227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23228 $as_echo "$ac_try_echo") >&5
23229 (eval "$ac_compile") 2>conftest.er1
23230 ac_status=$?
23231 grep -v '^ *+' conftest.er1 >conftest.err
23232 rm -f conftest.er1
23233 cat conftest.err >&5
23234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23235 (exit $ac_status); } && {
23236 test -z "$ac_c_werror_flag" ||
23237 test ! -s conftest.err
23238 } && test -s conftest.$ac_objext; then
23239 ac_cv_member_krb5_error_text=yes
23240 else
23241 $as_echo "$as_me: failed program was:" >&5
23242 sed 's/^/| /' conftest.$ac_ext >&5
23243
23244 ac_cv_member_krb5_error_text=no
23245 fi
23246
23247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23248 fi
23249
23250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23251 fi
23252 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
23253 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
23254 if test $ac_cv_member_krb5_error_text = yes; then
23255
23256 cat >>confdefs.h <<_ACEOF
23257 #define HAVE_KRB5_ERROR_TEXT 1
23258 _ACEOF
23259
23260
23261 fi
23262 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
23263 $as_echo_n "checking for krb5_error.e_text... " >&6; }
23264 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
23265 $as_echo_n "(cached) " >&6
23266 else
23267 cat >conftest.$ac_ext <<_ACEOF
23268 /* confdefs.h. */
23269 _ACEOF
23270 cat confdefs.h >>conftest.$ac_ext
23271 cat >>conftest.$ac_ext <<_ACEOF
23272 /* end confdefs.h. */
23273 #include <krb5.h>
23274
23275 int
23276 main ()
23277 {
23278 static krb5_error ac_aggr;
23279 if (ac_aggr.e_text)
23280 return 0;
23281 ;
23282 return 0;
23283 }
23284 _ACEOF
23285 rm -f conftest.$ac_objext
23286 if { (ac_try="$ac_compile"
23287 case "(($ac_try" in
23288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23289 *) ac_try_echo=$ac_try;;
23290 esac
23291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23292 $as_echo "$ac_try_echo") >&5
23293 (eval "$ac_compile") 2>conftest.er1
23294 ac_status=$?
23295 grep -v '^ *+' conftest.er1 >conftest.err
23296 rm -f conftest.er1
23297 cat conftest.err >&5
23298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23299 (exit $ac_status); } && {
23300 test -z "$ac_c_werror_flag" ||
23301 test ! -s conftest.err
23302 } && test -s conftest.$ac_objext; then
23303 ac_cv_member_krb5_error_e_text=yes
23304 else
23305 $as_echo "$as_me: failed program was:" >&5
23306 sed 's/^/| /' conftest.$ac_ext >&5
23307
23308 cat >conftest.$ac_ext <<_ACEOF
23309 /* confdefs.h. */
23310 _ACEOF
23311 cat confdefs.h >>conftest.$ac_ext
23312 cat >>conftest.$ac_ext <<_ACEOF
23313 /* end confdefs.h. */
23314 #include <krb5.h>
23315
23316 int
23317 main ()
23318 {
23319 static krb5_error ac_aggr;
23320 if (sizeof ac_aggr.e_text)
23321 return 0;
23322 ;
23323 return 0;
23324 }
23325 _ACEOF
23326 rm -f conftest.$ac_objext
23327 if { (ac_try="$ac_compile"
23328 case "(($ac_try" in
23329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23330 *) ac_try_echo=$ac_try;;
23331 esac
23332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23333 $as_echo "$ac_try_echo") >&5
23334 (eval "$ac_compile") 2>conftest.er1
23335 ac_status=$?
23336 grep -v '^ *+' conftest.er1 >conftest.err
23337 rm -f conftest.er1
23338 cat conftest.err >&5
23339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23340 (exit $ac_status); } && {
23341 test -z "$ac_c_werror_flag" ||
23342 test ! -s conftest.err
23343 } && test -s conftest.$ac_objext; then
23344 ac_cv_member_krb5_error_e_text=yes
23345 else
23346 $as_echo "$as_me: failed program was:" >&5
23347 sed 's/^/| /' conftest.$ac_ext >&5
23348
23349 ac_cv_member_krb5_error_e_text=no
23350 fi
23351
23352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23353 fi
23354
23355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23356 fi
23357 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
23358 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
23359 if test $ac_cv_member_krb5_error_e_text = yes; then
23360
23361 cat >>confdefs.h <<_ACEOF
23362 #define HAVE_KRB5_ERROR_E_TEXT 1
23363 _ACEOF
23364
23365
23366 fi
23367
23368 fi
23369
23370 done
23371
23372 else
23373
23374 for ac_header in des.h
23375 do
23376 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23378 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23379 $as_echo_n "checking for $ac_header... " >&6; }
23380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23381 $as_echo_n "(cached) " >&6
23382 fi
23383 ac_res=`eval 'as_val=${'$as_ac_Header'}
23384 $as_echo "$as_val"'`
23385 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23386 $as_echo "$ac_res" >&6; }
23387 else
23388 # Is the header compilable?
23389 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23390 $as_echo_n "checking $ac_header usability... " >&6; }
23391 cat >conftest.$ac_ext <<_ACEOF
23392 /* confdefs.h. */
23393 _ACEOF
23394 cat confdefs.h >>conftest.$ac_ext
23395 cat >>conftest.$ac_ext <<_ACEOF
23396 /* end confdefs.h. */
23397 $ac_includes_default
23398 #include <$ac_header>
23399 _ACEOF
23400 rm -f conftest.$ac_objext
23401 if { (ac_try="$ac_compile"
23402 case "(($ac_try" in
23403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23404 *) ac_try_echo=$ac_try;;
23405 esac
23406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23407 $as_echo "$ac_try_echo") >&5
23408 (eval "$ac_compile") 2>conftest.er1
23409 ac_status=$?
23410 grep -v '^ *+' conftest.er1 >conftest.err
23411 rm -f conftest.er1
23412 cat conftest.err >&5
23413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414 (exit $ac_status); } && {
23415 test -z "$ac_c_werror_flag" ||
23416 test ! -s conftest.err
23417 } && test -s conftest.$ac_objext; then
23418 ac_header_compiler=yes
23419 else
23420 $as_echo "$as_me: failed program was:" >&5
23421 sed 's/^/| /' conftest.$ac_ext >&5
23422
23423 ac_header_compiler=no
23424 fi
23425
23426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23427 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23428 $as_echo "$ac_header_compiler" >&6; }
23429
23430 # Is the header present?
23431 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23432 $as_echo_n "checking $ac_header presence... " >&6; }
23433 cat >conftest.$ac_ext <<_ACEOF
23434 /* confdefs.h. */
23435 _ACEOF
23436 cat confdefs.h >>conftest.$ac_ext
23437 cat >>conftest.$ac_ext <<_ACEOF
23438 /* end confdefs.h. */
23439 #include <$ac_header>
23440 _ACEOF
23441 if { (ac_try="$ac_cpp conftest.$ac_ext"
23442 case "(($ac_try" in
23443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23444 *) ac_try_echo=$ac_try;;
23445 esac
23446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23447 $as_echo "$ac_try_echo") >&5
23448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23449 ac_status=$?
23450 grep -v '^ *+' conftest.er1 >conftest.err
23451 rm -f conftest.er1
23452 cat conftest.err >&5
23453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23454 (exit $ac_status); } >/dev/null && {
23455 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23456 test ! -s conftest.err
23457 }; then
23458 ac_header_preproc=yes
23459 else
23460 $as_echo "$as_me: failed program was:" >&5
23461 sed 's/^/| /' conftest.$ac_ext >&5
23462
23463 ac_header_preproc=no
23464 fi
23465
23466 rm -f conftest.err conftest.$ac_ext
23467 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23468 $as_echo "$ac_header_preproc" >&6; }
23469
23470 # So? What about this header?
23471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23472 yes:no: )
23473 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23474 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23475 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23476 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23477 ac_header_preproc=yes
23478 ;;
23479 no:yes:* )
23480 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23481 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23482 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23483 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23484 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23485 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23486 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23487 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23488 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23489 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23490 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23491 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23492
23493 ;;
23494 esac
23495 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23496 $as_echo_n "checking for $ac_header... " >&6; }
23497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23498 $as_echo_n "(cached) " >&6
23499 else
23500 eval "$as_ac_Header=\$ac_header_preproc"
23501 fi
23502 ac_res=`eval 'as_val=${'$as_ac_Header'}
23503 $as_echo "$as_val"'`
23504 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23505 $as_echo "$ac_res" >&6; }
23506
23507 fi
23508 if test `eval 'as_val=${'$as_ac_Header'}
23509 $as_echo "$as_val"'` = yes; then
23510 cat >>confdefs.h <<_ACEOF
23511 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23512 _ACEOF
23513
23514 else
23515
23516 for ac_header in kerberosIV/des.h
23517 do
23518 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23520 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23521 $as_echo_n "checking for $ac_header... " >&6; }
23522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23523 $as_echo_n "(cached) " >&6
23524 fi
23525 ac_res=`eval 'as_val=${'$as_ac_Header'}
23526 $as_echo "$as_val"'`
23527 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23528 $as_echo "$ac_res" >&6; }
23529 else
23530 # Is the header compilable?
23531 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23532 $as_echo_n "checking $ac_header usability... " >&6; }
23533 cat >conftest.$ac_ext <<_ACEOF
23534 /* confdefs.h. */
23535 _ACEOF
23536 cat confdefs.h >>conftest.$ac_ext
23537 cat >>conftest.$ac_ext <<_ACEOF
23538 /* end confdefs.h. */
23539 $ac_includes_default
23540 #include <$ac_header>
23541 _ACEOF
23542 rm -f conftest.$ac_objext
23543 if { (ac_try="$ac_compile"
23544 case "(($ac_try" in
23545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23546 *) ac_try_echo=$ac_try;;
23547 esac
23548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23549 $as_echo "$ac_try_echo") >&5
23550 (eval "$ac_compile") 2>conftest.er1
23551 ac_status=$?
23552 grep -v '^ *+' conftest.er1 >conftest.err
23553 rm -f conftest.er1
23554 cat conftest.err >&5
23555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23556 (exit $ac_status); } && {
23557 test -z "$ac_c_werror_flag" ||
23558 test ! -s conftest.err
23559 } && test -s conftest.$ac_objext; then
23560 ac_header_compiler=yes
23561 else
23562 $as_echo "$as_me: failed program was:" >&5
23563 sed 's/^/| /' conftest.$ac_ext >&5
23564
23565 ac_header_compiler=no
23566 fi
23567
23568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23569 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23570 $as_echo "$ac_header_compiler" >&6; }
23571
23572 # Is the header present?
23573 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23574 $as_echo_n "checking $ac_header presence... " >&6; }
23575 cat >conftest.$ac_ext <<_ACEOF
23576 /* confdefs.h. */
23577 _ACEOF
23578 cat confdefs.h >>conftest.$ac_ext
23579 cat >>conftest.$ac_ext <<_ACEOF
23580 /* end confdefs.h. */
23581 #include <$ac_header>
23582 _ACEOF
23583 if { (ac_try="$ac_cpp conftest.$ac_ext"
23584 case "(($ac_try" in
23585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23586 *) ac_try_echo=$ac_try;;
23587 esac
23588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23589 $as_echo "$ac_try_echo") >&5
23590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23591 ac_status=$?
23592 grep -v '^ *+' conftest.er1 >conftest.err
23593 rm -f conftest.er1
23594 cat conftest.err >&5
23595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23596 (exit $ac_status); } >/dev/null && {
23597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23598 test ! -s conftest.err
23599 }; then
23600 ac_header_preproc=yes
23601 else
23602 $as_echo "$as_me: failed program was:" >&5
23603 sed 's/^/| /' conftest.$ac_ext >&5
23604
23605 ac_header_preproc=no
23606 fi
23607
23608 rm -f conftest.err conftest.$ac_ext
23609 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23610 $as_echo "$ac_header_preproc" >&6; }
23611
23612 # So? What about this header?
23613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23614 yes:no: )
23615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23616 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23618 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23619 ac_header_preproc=yes
23620 ;;
23621 no:yes:* )
23622 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23623 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23624 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23625 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23626 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23627 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23628 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23629 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23630 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23631 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23632 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23633 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23634
23635 ;;
23636 esac
23637 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23638 $as_echo_n "checking for $ac_header... " >&6; }
23639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23640 $as_echo_n "(cached) " >&6
23641 else
23642 eval "$as_ac_Header=\$ac_header_preproc"
23643 fi
23644 ac_res=`eval 'as_val=${'$as_ac_Header'}
23645 $as_echo "$as_val"'`
23646 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23647 $as_echo "$ac_res" >&6; }
23648
23649 fi
23650 if test `eval 'as_val=${'$as_ac_Header'}
23651 $as_echo "$as_val"'` = yes; then
23652 cat >>confdefs.h <<_ACEOF
23653 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23654 _ACEOF
23655
23656 else
23657
23658 for ac_header in kerberos/des.h
23659 do
23660 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23662 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23663 $as_echo_n "checking for $ac_header... " >&6; }
23664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23665 $as_echo_n "(cached) " >&6
23666 fi
23667 ac_res=`eval 'as_val=${'$as_ac_Header'}
23668 $as_echo "$as_val"'`
23669 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23670 $as_echo "$ac_res" >&6; }
23671 else
23672 # Is the header compilable?
23673 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23674 $as_echo_n "checking $ac_header usability... " >&6; }
23675 cat >conftest.$ac_ext <<_ACEOF
23676 /* confdefs.h. */
23677 _ACEOF
23678 cat confdefs.h >>conftest.$ac_ext
23679 cat >>conftest.$ac_ext <<_ACEOF
23680 /* end confdefs.h. */
23681 $ac_includes_default
23682 #include <$ac_header>
23683 _ACEOF
23684 rm -f conftest.$ac_objext
23685 if { (ac_try="$ac_compile"
23686 case "(($ac_try" in
23687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23688 *) ac_try_echo=$ac_try;;
23689 esac
23690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23691 $as_echo "$ac_try_echo") >&5
23692 (eval "$ac_compile") 2>conftest.er1
23693 ac_status=$?
23694 grep -v '^ *+' conftest.er1 >conftest.err
23695 rm -f conftest.er1
23696 cat conftest.err >&5
23697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23698 (exit $ac_status); } && {
23699 test -z "$ac_c_werror_flag" ||
23700 test ! -s conftest.err
23701 } && test -s conftest.$ac_objext; then
23702 ac_header_compiler=yes
23703 else
23704 $as_echo "$as_me: failed program was:" >&5
23705 sed 's/^/| /' conftest.$ac_ext >&5
23706
23707 ac_header_compiler=no
23708 fi
23709
23710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23711 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23712 $as_echo "$ac_header_compiler" >&6; }
23713
23714 # Is the header present?
23715 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23716 $as_echo_n "checking $ac_header presence... " >&6; }
23717 cat >conftest.$ac_ext <<_ACEOF
23718 /* confdefs.h. */
23719 _ACEOF
23720 cat confdefs.h >>conftest.$ac_ext
23721 cat >>conftest.$ac_ext <<_ACEOF
23722 /* end confdefs.h. */
23723 #include <$ac_header>
23724 _ACEOF
23725 if { (ac_try="$ac_cpp conftest.$ac_ext"
23726 case "(($ac_try" in
23727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23728 *) ac_try_echo=$ac_try;;
23729 esac
23730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23731 $as_echo "$ac_try_echo") >&5
23732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23733 ac_status=$?
23734 grep -v '^ *+' conftest.er1 >conftest.err
23735 rm -f conftest.er1
23736 cat conftest.err >&5
23737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23738 (exit $ac_status); } >/dev/null && {
23739 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23740 test ! -s conftest.err
23741 }; then
23742 ac_header_preproc=yes
23743 else
23744 $as_echo "$as_me: failed program was:" >&5
23745 sed 's/^/| /' conftest.$ac_ext >&5
23746
23747 ac_header_preproc=no
23748 fi
23749
23750 rm -f conftest.err conftest.$ac_ext
23751 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23752 $as_echo "$ac_header_preproc" >&6; }
23753
23754 # So? What about this header?
23755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23756 yes:no: )
23757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23758 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23760 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23761 ac_header_preproc=yes
23762 ;;
23763 no:yes:* )
23764 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23765 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23766 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23767 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23768 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23769 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23771 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23773 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23775 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23776
23777 ;;
23778 esac
23779 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23780 $as_echo_n "checking for $ac_header... " >&6; }
23781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23782 $as_echo_n "(cached) " >&6
23783 else
23784 eval "$as_ac_Header=\$ac_header_preproc"
23785 fi
23786 ac_res=`eval 'as_val=${'$as_ac_Header'}
23787 $as_echo "$as_val"'`
23788 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23789 $as_echo "$ac_res" >&6; }
23790
23791 fi
23792 if test `eval 'as_val=${'$as_ac_Header'}
23793 $as_echo "$as_val"'` = yes; then
23794 cat >>confdefs.h <<_ACEOF
23795 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23796 _ACEOF
23797
23798 fi
23799
23800 done
23801
23802 fi
23803
23804 done
23805
23806 fi
23807
23808 done
23809
23810
23811 for ac_header in krb.h
23812 do
23813 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23815 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23816 $as_echo_n "checking for $ac_header... " >&6; }
23817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23818 $as_echo_n "(cached) " >&6
23819 fi
23820 ac_res=`eval 'as_val=${'$as_ac_Header'}
23821 $as_echo "$as_val"'`
23822 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23823 $as_echo "$ac_res" >&6; }
23824 else
23825 # Is the header compilable?
23826 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23827 $as_echo_n "checking $ac_header usability... " >&6; }
23828 cat >conftest.$ac_ext <<_ACEOF
23829 /* confdefs.h. */
23830 _ACEOF
23831 cat confdefs.h >>conftest.$ac_ext
23832 cat >>conftest.$ac_ext <<_ACEOF
23833 /* end confdefs.h. */
23834 $ac_includes_default
23835 #include <$ac_header>
23836 _ACEOF
23837 rm -f conftest.$ac_objext
23838 if { (ac_try="$ac_compile"
23839 case "(($ac_try" in
23840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23841 *) ac_try_echo=$ac_try;;
23842 esac
23843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23844 $as_echo "$ac_try_echo") >&5
23845 (eval "$ac_compile") 2>conftest.er1
23846 ac_status=$?
23847 grep -v '^ *+' conftest.er1 >conftest.err
23848 rm -f conftest.er1
23849 cat conftest.err >&5
23850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23851 (exit $ac_status); } && {
23852 test -z "$ac_c_werror_flag" ||
23853 test ! -s conftest.err
23854 } && test -s conftest.$ac_objext; then
23855 ac_header_compiler=yes
23856 else
23857 $as_echo "$as_me: failed program was:" >&5
23858 sed 's/^/| /' conftest.$ac_ext >&5
23859
23860 ac_header_compiler=no
23861 fi
23862
23863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23864 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23865 $as_echo "$ac_header_compiler" >&6; }
23866
23867 # Is the header present?
23868 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23869 $as_echo_n "checking $ac_header presence... " >&6; }
23870 cat >conftest.$ac_ext <<_ACEOF
23871 /* confdefs.h. */
23872 _ACEOF
23873 cat confdefs.h >>conftest.$ac_ext
23874 cat >>conftest.$ac_ext <<_ACEOF
23875 /* end confdefs.h. */
23876 #include <$ac_header>
23877 _ACEOF
23878 if { (ac_try="$ac_cpp conftest.$ac_ext"
23879 case "(($ac_try" in
23880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23881 *) ac_try_echo=$ac_try;;
23882 esac
23883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23884 $as_echo "$ac_try_echo") >&5
23885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23886 ac_status=$?
23887 grep -v '^ *+' conftest.er1 >conftest.err
23888 rm -f conftest.er1
23889 cat conftest.err >&5
23890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23891 (exit $ac_status); } >/dev/null && {
23892 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23893 test ! -s conftest.err
23894 }; then
23895 ac_header_preproc=yes
23896 else
23897 $as_echo "$as_me: failed program was:" >&5
23898 sed 's/^/| /' conftest.$ac_ext >&5
23899
23900 ac_header_preproc=no
23901 fi
23902
23903 rm -f conftest.err conftest.$ac_ext
23904 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23905 $as_echo "$ac_header_preproc" >&6; }
23906
23907 # So? What about this header?
23908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23909 yes:no: )
23910 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23911 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23912 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23913 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23914 ac_header_preproc=yes
23915 ;;
23916 no:yes:* )
23917 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23918 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23919 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23920 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23921 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23922 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23923 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23924 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23925 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23926 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23927 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23928 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23929
23930 ;;
23931 esac
23932 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23933 $as_echo_n "checking for $ac_header... " >&6; }
23934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23935 $as_echo_n "(cached) " >&6
23936 else
23937 eval "$as_ac_Header=\$ac_header_preproc"
23938 fi
23939 ac_res=`eval 'as_val=${'$as_ac_Header'}
23940 $as_echo "$as_val"'`
23941 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23942 $as_echo "$ac_res" >&6; }
23943
23944 fi
23945 if test `eval 'as_val=${'$as_ac_Header'}
23946 $as_echo "$as_val"'` = yes; then
23947 cat >>confdefs.h <<_ACEOF
23948 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23949 _ACEOF
23950
23951 else
23952
23953 for ac_header in kerberosIV/krb.h
23954 do
23955 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23957 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23958 $as_echo_n "checking for $ac_header... " >&6; }
23959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23960 $as_echo_n "(cached) " >&6
23961 fi
23962 ac_res=`eval 'as_val=${'$as_ac_Header'}
23963 $as_echo "$as_val"'`
23964 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23965 $as_echo "$ac_res" >&6; }
23966 else
23967 # Is the header compilable?
23968 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23969 $as_echo_n "checking $ac_header usability... " >&6; }
23970 cat >conftest.$ac_ext <<_ACEOF
23971 /* confdefs.h. */
23972 _ACEOF
23973 cat confdefs.h >>conftest.$ac_ext
23974 cat >>conftest.$ac_ext <<_ACEOF
23975 /* end confdefs.h. */
23976 $ac_includes_default
23977 #include <$ac_header>
23978 _ACEOF
23979 rm -f conftest.$ac_objext
23980 if { (ac_try="$ac_compile"
23981 case "(($ac_try" in
23982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23983 *) ac_try_echo=$ac_try;;
23984 esac
23985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23986 $as_echo "$ac_try_echo") >&5
23987 (eval "$ac_compile") 2>conftest.er1
23988 ac_status=$?
23989 grep -v '^ *+' conftest.er1 >conftest.err
23990 rm -f conftest.er1
23991 cat conftest.err >&5
23992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23993 (exit $ac_status); } && {
23994 test -z "$ac_c_werror_flag" ||
23995 test ! -s conftest.err
23996 } && test -s conftest.$ac_objext; then
23997 ac_header_compiler=yes
23998 else
23999 $as_echo "$as_me: failed program was:" >&5
24000 sed 's/^/| /' conftest.$ac_ext >&5
24001
24002 ac_header_compiler=no
24003 fi
24004
24005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24006 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24007 $as_echo "$ac_header_compiler" >&6; }
24008
24009 # Is the header present?
24010 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24011 $as_echo_n "checking $ac_header presence... " >&6; }
24012 cat >conftest.$ac_ext <<_ACEOF
24013 /* confdefs.h. */
24014 _ACEOF
24015 cat confdefs.h >>conftest.$ac_ext
24016 cat >>conftest.$ac_ext <<_ACEOF
24017 /* end confdefs.h. */
24018 #include <$ac_header>
24019 _ACEOF
24020 if { (ac_try="$ac_cpp conftest.$ac_ext"
24021 case "(($ac_try" in
24022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24023 *) ac_try_echo=$ac_try;;
24024 esac
24025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24026 $as_echo "$ac_try_echo") >&5
24027 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24028 ac_status=$?
24029 grep -v '^ *+' conftest.er1 >conftest.err
24030 rm -f conftest.er1
24031 cat conftest.err >&5
24032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24033 (exit $ac_status); } >/dev/null && {
24034 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24035 test ! -s conftest.err
24036 }; then
24037 ac_header_preproc=yes
24038 else
24039 $as_echo "$as_me: failed program was:" >&5
24040 sed 's/^/| /' conftest.$ac_ext >&5
24041
24042 ac_header_preproc=no
24043 fi
24044
24045 rm -f conftest.err conftest.$ac_ext
24046 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24047 $as_echo "$ac_header_preproc" >&6; }
24048
24049 # So? What about this header?
24050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24051 yes:no: )
24052 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24053 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24054 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24055 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24056 ac_header_preproc=yes
24057 ;;
24058 no:yes:* )
24059 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24060 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24061 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24062 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24063 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24064 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24066 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24068 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24069 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24070 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24071
24072 ;;
24073 esac
24074 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24075 $as_echo_n "checking for $ac_header... " >&6; }
24076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24077 $as_echo_n "(cached) " >&6
24078 else
24079 eval "$as_ac_Header=\$ac_header_preproc"
24080 fi
24081 ac_res=`eval 'as_val=${'$as_ac_Header'}
24082 $as_echo "$as_val"'`
24083 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24084 $as_echo "$ac_res" >&6; }
24085
24086 fi
24087 if test `eval 'as_val=${'$as_ac_Header'}
24088 $as_echo "$as_val"'` = yes; then
24089 cat >>confdefs.h <<_ACEOF
24090 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24091 _ACEOF
24092
24093 else
24094
24095 for ac_header in kerberos/krb.h
24096 do
24097 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24099 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24100 $as_echo_n "checking for $ac_header... " >&6; }
24101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24102 $as_echo_n "(cached) " >&6
24103 fi
24104 ac_res=`eval 'as_val=${'$as_ac_Header'}
24105 $as_echo "$as_val"'`
24106 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24107 $as_echo "$ac_res" >&6; }
24108 else
24109 # Is the header compilable?
24110 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24111 $as_echo_n "checking $ac_header usability... " >&6; }
24112 cat >conftest.$ac_ext <<_ACEOF
24113 /* confdefs.h. */
24114 _ACEOF
24115 cat confdefs.h >>conftest.$ac_ext
24116 cat >>conftest.$ac_ext <<_ACEOF
24117 /* end confdefs.h. */
24118 $ac_includes_default
24119 #include <$ac_header>
24120 _ACEOF
24121 rm -f conftest.$ac_objext
24122 if { (ac_try="$ac_compile"
24123 case "(($ac_try" in
24124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24125 *) ac_try_echo=$ac_try;;
24126 esac
24127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24128 $as_echo "$ac_try_echo") >&5
24129 (eval "$ac_compile") 2>conftest.er1
24130 ac_status=$?
24131 grep -v '^ *+' conftest.er1 >conftest.err
24132 rm -f conftest.er1
24133 cat conftest.err >&5
24134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24135 (exit $ac_status); } && {
24136 test -z "$ac_c_werror_flag" ||
24137 test ! -s conftest.err
24138 } && test -s conftest.$ac_objext; then
24139 ac_header_compiler=yes
24140 else
24141 $as_echo "$as_me: failed program was:" >&5
24142 sed 's/^/| /' conftest.$ac_ext >&5
24143
24144 ac_header_compiler=no
24145 fi
24146
24147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24148 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24149 $as_echo "$ac_header_compiler" >&6; }
24150
24151 # Is the header present?
24152 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24153 $as_echo_n "checking $ac_header presence... " >&6; }
24154 cat >conftest.$ac_ext <<_ACEOF
24155 /* confdefs.h. */
24156 _ACEOF
24157 cat confdefs.h >>conftest.$ac_ext
24158 cat >>conftest.$ac_ext <<_ACEOF
24159 /* end confdefs.h. */
24160 #include <$ac_header>
24161 _ACEOF
24162 if { (ac_try="$ac_cpp conftest.$ac_ext"
24163 case "(($ac_try" in
24164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24165 *) ac_try_echo=$ac_try;;
24166 esac
24167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24168 $as_echo "$ac_try_echo") >&5
24169 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24170 ac_status=$?
24171 grep -v '^ *+' conftest.er1 >conftest.err
24172 rm -f conftest.er1
24173 cat conftest.err >&5
24174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24175 (exit $ac_status); } >/dev/null && {
24176 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24177 test ! -s conftest.err
24178 }; then
24179 ac_header_preproc=yes
24180 else
24181 $as_echo "$as_me: failed program was:" >&5
24182 sed 's/^/| /' conftest.$ac_ext >&5
24183
24184 ac_header_preproc=no
24185 fi
24186
24187 rm -f conftest.err conftest.$ac_ext
24188 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24189 $as_echo "$ac_header_preproc" >&6; }
24190
24191 # So? What about this header?
24192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24193 yes:no: )
24194 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24195 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24196 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24197 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24198 ac_header_preproc=yes
24199 ;;
24200 no:yes:* )
24201 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24202 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24203 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24204 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24205 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24206 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24208 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24210 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24212 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24213
24214 ;;
24215 esac
24216 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24217 $as_echo_n "checking for $ac_header... " >&6; }
24218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24219 $as_echo_n "(cached) " >&6
24220 else
24221 eval "$as_ac_Header=\$ac_header_preproc"
24222 fi
24223 ac_res=`eval 'as_val=${'$as_ac_Header'}
24224 $as_echo "$as_val"'`
24225 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24226 $as_echo "$ac_res" >&6; }
24227
24228 fi
24229 if test `eval 'as_val=${'$as_ac_Header'}
24230 $as_echo "$as_val"'` = yes; then
24231 cat >>confdefs.h <<_ACEOF
24232 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24233 _ACEOF
24234
24235 fi
24236
24237 done
24238
24239 fi
24240
24241 done
24242
24243 fi
24244
24245 done
24246
24247 fi
24248
24249 for ac_header in com_err.h
24250 do
24251 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24253 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24254 $as_echo_n "checking for $ac_header... " >&6; }
24255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24256 $as_echo_n "(cached) " >&6
24257 fi
24258 ac_res=`eval 'as_val=${'$as_ac_Header'}
24259 $as_echo "$as_val"'`
24260 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24261 $as_echo "$ac_res" >&6; }
24262 else
24263 # Is the header compilable?
24264 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24265 $as_echo_n "checking $ac_header usability... " >&6; }
24266 cat >conftest.$ac_ext <<_ACEOF
24267 /* confdefs.h. */
24268 _ACEOF
24269 cat confdefs.h >>conftest.$ac_ext
24270 cat >>conftest.$ac_ext <<_ACEOF
24271 /* end confdefs.h. */
24272 $ac_includes_default
24273 #include <$ac_header>
24274 _ACEOF
24275 rm -f conftest.$ac_objext
24276 if { (ac_try="$ac_compile"
24277 case "(($ac_try" in
24278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24279 *) ac_try_echo=$ac_try;;
24280 esac
24281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24282 $as_echo "$ac_try_echo") >&5
24283 (eval "$ac_compile") 2>conftest.er1
24284 ac_status=$?
24285 grep -v '^ *+' conftest.er1 >conftest.err
24286 rm -f conftest.er1
24287 cat conftest.err >&5
24288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24289 (exit $ac_status); } && {
24290 test -z "$ac_c_werror_flag" ||
24291 test ! -s conftest.err
24292 } && test -s conftest.$ac_objext; then
24293 ac_header_compiler=yes
24294 else
24295 $as_echo "$as_me: failed program was:" >&5
24296 sed 's/^/| /' conftest.$ac_ext >&5
24297
24298 ac_header_compiler=no
24299 fi
24300
24301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24302 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24303 $as_echo "$ac_header_compiler" >&6; }
24304
24305 # Is the header present?
24306 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24307 $as_echo_n "checking $ac_header presence... " >&6; }
24308 cat >conftest.$ac_ext <<_ACEOF
24309 /* confdefs.h. */
24310 _ACEOF
24311 cat confdefs.h >>conftest.$ac_ext
24312 cat >>conftest.$ac_ext <<_ACEOF
24313 /* end confdefs.h. */
24314 #include <$ac_header>
24315 _ACEOF
24316 if { (ac_try="$ac_cpp conftest.$ac_ext"
24317 case "(($ac_try" in
24318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24319 *) ac_try_echo=$ac_try;;
24320 esac
24321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24322 $as_echo "$ac_try_echo") >&5
24323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24324 ac_status=$?
24325 grep -v '^ *+' conftest.er1 >conftest.err
24326 rm -f conftest.er1
24327 cat conftest.err >&5
24328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24329 (exit $ac_status); } >/dev/null && {
24330 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24331 test ! -s conftest.err
24332 }; then
24333 ac_header_preproc=yes
24334 else
24335 $as_echo "$as_me: failed program was:" >&5
24336 sed 's/^/| /' conftest.$ac_ext >&5
24337
24338 ac_header_preproc=no
24339 fi
24340
24341 rm -f conftest.err conftest.$ac_ext
24342 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24343 $as_echo "$ac_header_preproc" >&6; }
24344
24345 # So? What about this header?
24346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24347 yes:no: )
24348 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24349 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24350 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24351 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24352 ac_header_preproc=yes
24353 ;;
24354 no:yes:* )
24355 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24356 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24357 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24358 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24359 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24360 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24361 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24362 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24363 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24364 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24366 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24367
24368 ;;
24369 esac
24370 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24371 $as_echo_n "checking for $ac_header... " >&6; }
24372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24373 $as_echo_n "(cached) " >&6
24374 else
24375 eval "$as_ac_Header=\$ac_header_preproc"
24376 fi
24377 ac_res=`eval 'as_val=${'$as_ac_Header'}
24378 $as_echo "$as_val"'`
24379 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24380 $as_echo "$ac_res" >&6; }
24381
24382 fi
24383 if test `eval 'as_val=${'$as_ac_Header'}
24384 $as_echo "$as_val"'` = yes; then
24385 cat >>confdefs.h <<_ACEOF
24386 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24387 _ACEOF
24388
24389 fi
24390
24391 done
24392
24393 fi
24394
24395
24396
24397
24398
24399
24400
24401 # Solaris requires -lintl if you want strerror (which calls dgettext)
24402 # to return localized messages.
24403
24404 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
24405 $as_echo_n "checking for dgettext in -lintl... " >&6; }
24406 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
24407 $as_echo_n "(cached) " >&6
24408 else
24409 ac_check_lib_save_LIBS=$LIBS
24410 LIBS="-lintl $LIBS"
24411 cat >conftest.$ac_ext <<_ACEOF
24412 /* confdefs.h. */
24413 _ACEOF
24414 cat confdefs.h >>conftest.$ac_ext
24415 cat >>conftest.$ac_ext <<_ACEOF
24416 /* end confdefs.h. */
24417
24418 /* Override any GCC internal prototype to avoid an error.
24419 Use char because int might match the return type of a GCC
24420 builtin and then its argument prototype would still apply. */
24421 #ifdef __cplusplus
24422 extern "C"
24423 #endif
24424 char dgettext ();
24425 int
24426 main ()
24427 {
24428 return dgettext ();
24429 ;
24430 return 0;
24431 }
24432 _ACEOF
24433 rm -f conftest.$ac_objext conftest$ac_exeext
24434 if { (ac_try="$ac_link"
24435 case "(($ac_try" in
24436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24437 *) ac_try_echo=$ac_try;;
24438 esac
24439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24440 $as_echo "$ac_try_echo") >&5
24441 (eval "$ac_link") 2>conftest.er1
24442 ac_status=$?
24443 grep -v '^ *+' conftest.er1 >conftest.err
24444 rm -f conftest.er1
24445 cat conftest.err >&5
24446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24447 (exit $ac_status); } && {
24448 test -z "$ac_c_werror_flag" ||
24449 test ! -s conftest.err
24450 } && test -s conftest$ac_exeext && {
24451 test "$cross_compiling" = yes ||
24452 $as_test_x conftest$ac_exeext
24453 }; then
24454 ac_cv_lib_intl_dgettext=yes
24455 else
24456 $as_echo "$as_me: failed program was:" >&5
24457 sed 's/^/| /' conftest.$ac_ext >&5
24458
24459 ac_cv_lib_intl_dgettext=no
24460 fi
24461
24462 rm -rf conftest.dSYM
24463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24464 conftest$ac_exeext conftest.$ac_ext
24465 LIBS=$ac_check_lib_save_LIBS
24466 fi
24467 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
24468 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
24469 if test $ac_cv_lib_intl_dgettext = yes; then
24470 cat >>confdefs.h <<_ACEOF
24471 #define HAVE_LIBINTL 1
24472 _ACEOF
24473
24474 LIBS="-lintl $LIBS"
24475
24476 fi
24477
24478
24479 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
24480 $as_echo_n "checking whether localtime caches TZ... " >&6; }
24481 if test "${emacs_cv_localtime_cache+set}" = set; then
24482 $as_echo_n "(cached) " >&6
24483 else
24484 if test x$ac_cv_func_tzset = xyes; then
24485 if test "$cross_compiling" = yes; then
24486 # If we have tzset, assume the worst when cross-compiling.
24487 emacs_cv_localtime_cache=yes
24488 else
24489 cat >conftest.$ac_ext <<_ACEOF
24490 /* confdefs.h. */
24491 _ACEOF
24492 cat confdefs.h >>conftest.$ac_ext
24493 cat >>conftest.$ac_ext <<_ACEOF
24494 /* end confdefs.h. */
24495 #include <time.h>
24496 extern char **environ;
24497 unset_TZ ()
24498 {
24499 char **from, **to;
24500 for (to = from = environ; (*to = *from); from++)
24501 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
24502 to++;
24503 }
24504 char TZ_GMT0[] = "TZ=GMT0";
24505 char TZ_PST8[] = "TZ=PST8";
24506 main()
24507 {
24508 time_t now = time ((time_t *) 0);
24509 int hour_GMT0, hour_unset;
24510 if (putenv (TZ_GMT0) != 0)
24511 exit (1);
24512 hour_GMT0 = localtime (&now)->tm_hour;
24513 unset_TZ ();
24514 hour_unset = localtime (&now)->tm_hour;
24515 if (putenv (TZ_PST8) != 0)
24516 exit (1);
24517 if (localtime (&now)->tm_hour == hour_GMT0)
24518 exit (1);
24519 unset_TZ ();
24520 if (localtime (&now)->tm_hour != hour_unset)
24521 exit (1);
24522 exit (0);
24523 }
24524 _ACEOF
24525 rm -f conftest$ac_exeext
24526 if { (ac_try="$ac_link"
24527 case "(($ac_try" in
24528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24529 *) ac_try_echo=$ac_try;;
24530 esac
24531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24532 $as_echo "$ac_try_echo") >&5
24533 (eval "$ac_link") 2>&5
24534 ac_status=$?
24535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24536 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24537 { (case "(($ac_try" in
24538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24539 *) ac_try_echo=$ac_try;;
24540 esac
24541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24542 $as_echo "$ac_try_echo") >&5
24543 (eval "$ac_try") 2>&5
24544 ac_status=$?
24545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24546 (exit $ac_status); }; }; then
24547 emacs_cv_localtime_cache=no
24548 else
24549 $as_echo "$as_me: program exited with status $ac_status" >&5
24550 $as_echo "$as_me: failed program was:" >&5
24551 sed 's/^/| /' conftest.$ac_ext >&5
24552
24553 ( exit $ac_status )
24554 emacs_cv_localtime_cache=yes
24555 fi
24556 rm -rf conftest.dSYM
24557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24558 fi
24559
24560
24561 else
24562 # If we lack tzset, report that localtime does not cache TZ,
24563 # since we can't invalidate the cache if we don't have tzset.
24564 emacs_cv_localtime_cache=no
24565 fi
24566 fi
24567 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
24568 $as_echo "$emacs_cv_localtime_cache" >&6; }
24569 if test $emacs_cv_localtime_cache = yes; then
24570
24571 cat >>confdefs.h <<\_ACEOF
24572 #define LOCALTIME_CACHE 1
24573 _ACEOF
24574
24575 fi
24576
24577 if test "x$HAVE_TIMEVAL" = xyes; then
24578
24579 for ac_func in gettimeofday
24580 do
24581 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24582 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24583 $as_echo_n "checking for $ac_func... " >&6; }
24584 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24585 $as_echo_n "(cached) " >&6
24586 else
24587 cat >conftest.$ac_ext <<_ACEOF
24588 /* confdefs.h. */
24589 _ACEOF
24590 cat confdefs.h >>conftest.$ac_ext
24591 cat >>conftest.$ac_ext <<_ACEOF
24592 /* end confdefs.h. */
24593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24595 #define $ac_func innocuous_$ac_func
24596
24597 /* System header to define __stub macros and hopefully few prototypes,
24598 which can conflict with char $ac_func (); below.
24599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24600 <limits.h> exists even on freestanding compilers. */
24601
24602 #ifdef __STDC__
24603 # include <limits.h>
24604 #else
24605 # include <assert.h>
24606 #endif
24607
24608 #undef $ac_func
24609
24610 /* Override any GCC internal prototype to avoid an error.
24611 Use char because int might match the return type of a GCC
24612 builtin and then its argument prototype would still apply. */
24613 #ifdef __cplusplus
24614 extern "C"
24615 #endif
24616 char $ac_func ();
24617 /* The GNU C library defines this for functions which it implements
24618 to always fail with ENOSYS. Some functions are actually named
24619 something starting with __ and the normal name is an alias. */
24620 #if defined __stub_$ac_func || defined __stub___$ac_func
24621 choke me
24622 #endif
24623
24624 int
24625 main ()
24626 {
24627 return $ac_func ();
24628 ;
24629 return 0;
24630 }
24631 _ACEOF
24632 rm -f conftest.$ac_objext conftest$ac_exeext
24633 if { (ac_try="$ac_link"
24634 case "(($ac_try" in
24635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24636 *) ac_try_echo=$ac_try;;
24637 esac
24638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24639 $as_echo "$ac_try_echo") >&5
24640 (eval "$ac_link") 2>conftest.er1
24641 ac_status=$?
24642 grep -v '^ *+' conftest.er1 >conftest.err
24643 rm -f conftest.er1
24644 cat conftest.err >&5
24645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24646 (exit $ac_status); } && {
24647 test -z "$ac_c_werror_flag" ||
24648 test ! -s conftest.err
24649 } && test -s conftest$ac_exeext && {
24650 test "$cross_compiling" = yes ||
24651 $as_test_x conftest$ac_exeext
24652 }; then
24653 eval "$as_ac_var=yes"
24654 else
24655 $as_echo "$as_me: failed program was:" >&5
24656 sed 's/^/| /' conftest.$ac_ext >&5
24657
24658 eval "$as_ac_var=no"
24659 fi
24660
24661 rm -rf conftest.dSYM
24662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24663 conftest$ac_exeext conftest.$ac_ext
24664 fi
24665 ac_res=`eval 'as_val=${'$as_ac_var'}
24666 $as_echo "$as_val"'`
24667 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24668 $as_echo "$ac_res" >&6; }
24669 if test `eval 'as_val=${'$as_ac_var'}
24670 $as_echo "$as_val"'` = yes; then
24671 cat >>confdefs.h <<_ACEOF
24672 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24673 _ACEOF
24674
24675 fi
24676 done
24677
24678 if test $ac_cv_func_gettimeofday = yes; then
24679 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
24680 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
24681 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24682 $as_echo_n "(cached) " >&6
24683 else
24684 cat >conftest.$ac_ext <<_ACEOF
24685 /* confdefs.h. */
24686 _ACEOF
24687 cat confdefs.h >>conftest.$ac_ext
24688 cat >>conftest.$ac_ext <<_ACEOF
24689 /* end confdefs.h. */
24690
24691 #ifdef TIME_WITH_SYS_TIME
24692 #include <sys/time.h>
24693 #include <time.h>
24694 #else
24695 #ifdef HAVE_SYS_TIME_H
24696 #include <sys/time.h>
24697 #else
24698 #include <time.h>
24699 #endif
24700 #endif
24701 int
24702 main ()
24703 {
24704 struct timeval time;
24705 gettimeofday (&time, 0);
24706 ;
24707 return 0;
24708 }
24709 _ACEOF
24710 rm -f conftest.$ac_objext
24711 if { (ac_try="$ac_compile"
24712 case "(($ac_try" in
24713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24714 *) ac_try_echo=$ac_try;;
24715 esac
24716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24717 $as_echo "$ac_try_echo") >&5
24718 (eval "$ac_compile") 2>conftest.er1
24719 ac_status=$?
24720 grep -v '^ *+' conftest.er1 >conftest.err
24721 rm -f conftest.er1
24722 cat conftest.err >&5
24723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24724 (exit $ac_status); } && {
24725 test -z "$ac_c_werror_flag" ||
24726 test ! -s conftest.err
24727 } && test -s conftest.$ac_objext; then
24728 emacs_cv_gettimeofday_two_arguments=yes
24729 else
24730 $as_echo "$as_me: failed program was:" >&5
24731 sed 's/^/| /' conftest.$ac_ext >&5
24732
24733 emacs_cv_gettimeofday_two_arguments=no
24734 fi
24735
24736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24737 fi
24738 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
24739 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24740 if test $emacs_cv_gettimeofday_two_arguments = no; then
24741
24742 cat >>confdefs.h <<\_ACEOF
24743 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24744 _ACEOF
24745
24746 fi
24747 fi
24748 fi
24749
24750 ok_so_far=yes
24751 { $as_echo "$as_me:$LINENO: checking for socket" >&5
24752 $as_echo_n "checking for socket... " >&6; }
24753 if test "${ac_cv_func_socket+set}" = set; then
24754 $as_echo_n "(cached) " >&6
24755 else
24756 cat >conftest.$ac_ext <<_ACEOF
24757 /* confdefs.h. */
24758 _ACEOF
24759 cat confdefs.h >>conftest.$ac_ext
24760 cat >>conftest.$ac_ext <<_ACEOF
24761 /* end confdefs.h. */
24762 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24764 #define socket innocuous_socket
24765
24766 /* System header to define __stub macros and hopefully few prototypes,
24767 which can conflict with char socket (); below.
24768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24769 <limits.h> exists even on freestanding compilers. */
24770
24771 #ifdef __STDC__
24772 # include <limits.h>
24773 #else
24774 # include <assert.h>
24775 #endif
24776
24777 #undef socket
24778
24779 /* Override any GCC internal prototype to avoid an error.
24780 Use char because int might match the return type of a GCC
24781 builtin and then its argument prototype would still apply. */
24782 #ifdef __cplusplus
24783 extern "C"
24784 #endif
24785 char socket ();
24786 /* The GNU C library defines this for functions which it implements
24787 to always fail with ENOSYS. Some functions are actually named
24788 something starting with __ and the normal name is an alias. */
24789 #if defined __stub_socket || defined __stub___socket
24790 choke me
24791 #endif
24792
24793 int
24794 main ()
24795 {
24796 return socket ();
24797 ;
24798 return 0;
24799 }
24800 _ACEOF
24801 rm -f conftest.$ac_objext conftest$ac_exeext
24802 if { (ac_try="$ac_link"
24803 case "(($ac_try" in
24804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24805 *) ac_try_echo=$ac_try;;
24806 esac
24807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24808 $as_echo "$ac_try_echo") >&5
24809 (eval "$ac_link") 2>conftest.er1
24810 ac_status=$?
24811 grep -v '^ *+' conftest.er1 >conftest.err
24812 rm -f conftest.er1
24813 cat conftest.err >&5
24814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24815 (exit $ac_status); } && {
24816 test -z "$ac_c_werror_flag" ||
24817 test ! -s conftest.err
24818 } && test -s conftest$ac_exeext && {
24819 test "$cross_compiling" = yes ||
24820 $as_test_x conftest$ac_exeext
24821 }; then
24822 ac_cv_func_socket=yes
24823 else
24824 $as_echo "$as_me: failed program was:" >&5
24825 sed 's/^/| /' conftest.$ac_ext >&5
24826
24827 ac_cv_func_socket=no
24828 fi
24829
24830 rm -rf conftest.dSYM
24831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24832 conftest$ac_exeext conftest.$ac_ext
24833 fi
24834 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24835 $as_echo "$ac_cv_func_socket" >&6; }
24836 if test $ac_cv_func_socket = yes; then
24837 :
24838 else
24839 ok_so_far=no
24840 fi
24841
24842 if test $ok_so_far = yes; then
24843 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24844 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24845 $as_echo_n "checking for netinet/in.h... " >&6; }
24846 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24847 $as_echo_n "(cached) " >&6
24848 fi
24849 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24850 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24851 else
24852 # Is the header compilable?
24853 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
24854 $as_echo_n "checking netinet/in.h usability... " >&6; }
24855 cat >conftest.$ac_ext <<_ACEOF
24856 /* confdefs.h. */
24857 _ACEOF
24858 cat confdefs.h >>conftest.$ac_ext
24859 cat >>conftest.$ac_ext <<_ACEOF
24860 /* end confdefs.h. */
24861 $ac_includes_default
24862 #include <netinet/in.h>
24863 _ACEOF
24864 rm -f conftest.$ac_objext
24865 if { (ac_try="$ac_compile"
24866 case "(($ac_try" in
24867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24868 *) ac_try_echo=$ac_try;;
24869 esac
24870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24871 $as_echo "$ac_try_echo") >&5
24872 (eval "$ac_compile") 2>conftest.er1
24873 ac_status=$?
24874 grep -v '^ *+' conftest.er1 >conftest.err
24875 rm -f conftest.er1
24876 cat conftest.err >&5
24877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24878 (exit $ac_status); } && {
24879 test -z "$ac_c_werror_flag" ||
24880 test ! -s conftest.err
24881 } && test -s conftest.$ac_objext; then
24882 ac_header_compiler=yes
24883 else
24884 $as_echo "$as_me: failed program was:" >&5
24885 sed 's/^/| /' conftest.$ac_ext >&5
24886
24887 ac_header_compiler=no
24888 fi
24889
24890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24891 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24892 $as_echo "$ac_header_compiler" >&6; }
24893
24894 # Is the header present?
24895 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
24896 $as_echo_n "checking netinet/in.h presence... " >&6; }
24897 cat >conftest.$ac_ext <<_ACEOF
24898 /* confdefs.h. */
24899 _ACEOF
24900 cat confdefs.h >>conftest.$ac_ext
24901 cat >>conftest.$ac_ext <<_ACEOF
24902 /* end confdefs.h. */
24903 #include <netinet/in.h>
24904 _ACEOF
24905 if { (ac_try="$ac_cpp conftest.$ac_ext"
24906 case "(($ac_try" in
24907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24908 *) ac_try_echo=$ac_try;;
24909 esac
24910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24911 $as_echo "$ac_try_echo") >&5
24912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24913 ac_status=$?
24914 grep -v '^ *+' conftest.er1 >conftest.err
24915 rm -f conftest.er1
24916 cat conftest.err >&5
24917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24918 (exit $ac_status); } >/dev/null && {
24919 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24920 test ! -s conftest.err
24921 }; then
24922 ac_header_preproc=yes
24923 else
24924 $as_echo "$as_me: failed program was:" >&5
24925 sed 's/^/| /' conftest.$ac_ext >&5
24926
24927 ac_header_preproc=no
24928 fi
24929
24930 rm -f conftest.err conftest.$ac_ext
24931 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24932 $as_echo "$ac_header_preproc" >&6; }
24933
24934 # So? What about this header?
24935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24936 yes:no: )
24937 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
24938 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24939 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
24940 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
24941 ac_header_preproc=yes
24942 ;;
24943 no:yes:* )
24944 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
24945 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
24946 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
24947 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
24948 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
24949 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
24950 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
24951 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
24952 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
24953 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
24954 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
24955 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
24956
24957 ;;
24958 esac
24959 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24960 $as_echo_n "checking for netinet/in.h... " >&6; }
24961 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24962 $as_echo_n "(cached) " >&6
24963 else
24964 ac_cv_header_netinet_in_h=$ac_header_preproc
24965 fi
24966 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24967 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24968
24969 fi
24970 if test $ac_cv_header_netinet_in_h = yes; then
24971 :
24972 else
24973 ok_so_far=no
24974 fi
24975
24976
24977 fi
24978 if test $ok_so_far = yes; then
24979 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24980 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24981 $as_echo_n "checking for arpa/inet.h... " >&6; }
24982 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24983 $as_echo_n "(cached) " >&6
24984 fi
24985 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24986 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24987 else
24988 # Is the header compilable?
24989 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
24990 $as_echo_n "checking arpa/inet.h usability... " >&6; }
24991 cat >conftest.$ac_ext <<_ACEOF
24992 /* confdefs.h. */
24993 _ACEOF
24994 cat confdefs.h >>conftest.$ac_ext
24995 cat >>conftest.$ac_ext <<_ACEOF
24996 /* end confdefs.h. */
24997 $ac_includes_default
24998 #include <arpa/inet.h>
24999 _ACEOF
25000 rm -f conftest.$ac_objext
25001 if { (ac_try="$ac_compile"
25002 case "(($ac_try" in
25003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25004 *) ac_try_echo=$ac_try;;
25005 esac
25006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25007 $as_echo "$ac_try_echo") >&5
25008 (eval "$ac_compile") 2>conftest.er1
25009 ac_status=$?
25010 grep -v '^ *+' conftest.er1 >conftest.err
25011 rm -f conftest.er1
25012 cat conftest.err >&5
25013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25014 (exit $ac_status); } && {
25015 test -z "$ac_c_werror_flag" ||
25016 test ! -s conftest.err
25017 } && test -s conftest.$ac_objext; then
25018 ac_header_compiler=yes
25019 else
25020 $as_echo "$as_me: failed program was:" >&5
25021 sed 's/^/| /' conftest.$ac_ext >&5
25022
25023 ac_header_compiler=no
25024 fi
25025
25026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25027 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25028 $as_echo "$ac_header_compiler" >&6; }
25029
25030 # Is the header present?
25031 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
25032 $as_echo_n "checking arpa/inet.h presence... " >&6; }
25033 cat >conftest.$ac_ext <<_ACEOF
25034 /* confdefs.h. */
25035 _ACEOF
25036 cat confdefs.h >>conftest.$ac_ext
25037 cat >>conftest.$ac_ext <<_ACEOF
25038 /* end confdefs.h. */
25039 #include <arpa/inet.h>
25040 _ACEOF
25041 if { (ac_try="$ac_cpp conftest.$ac_ext"
25042 case "(($ac_try" in
25043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25044 *) ac_try_echo=$ac_try;;
25045 esac
25046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25047 $as_echo "$ac_try_echo") >&5
25048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25049 ac_status=$?
25050 grep -v '^ *+' conftest.er1 >conftest.err
25051 rm -f conftest.er1
25052 cat conftest.err >&5
25053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25054 (exit $ac_status); } >/dev/null && {
25055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25056 test ! -s conftest.err
25057 }; then
25058 ac_header_preproc=yes
25059 else
25060 $as_echo "$as_me: failed program was:" >&5
25061 sed 's/^/| /' conftest.$ac_ext >&5
25062
25063 ac_header_preproc=no
25064 fi
25065
25066 rm -f conftest.err conftest.$ac_ext
25067 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25068 $as_echo "$ac_header_preproc" >&6; }
25069
25070 # So? What about this header?
25071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25072 yes:no: )
25073 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
25074 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25075 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
25076 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
25077 ac_header_preproc=yes
25078 ;;
25079 no:yes:* )
25080 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
25081 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
25082 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
25083 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
25084 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
25085 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
25086 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
25087 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
25088 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
25089 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
25090 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
25091 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
25092
25093 ;;
25094 esac
25095 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
25096 $as_echo_n "checking for arpa/inet.h... " >&6; }
25097 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
25098 $as_echo_n "(cached) " >&6
25099 else
25100 ac_cv_header_arpa_inet_h=$ac_header_preproc
25101 fi
25102 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
25103 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
25104
25105 fi
25106 if test $ac_cv_header_arpa_inet_h = yes; then
25107 :
25108 else
25109 ok_so_far=no
25110 fi
25111
25112
25113 fi
25114 if test $ok_so_far = yes; then
25115
25116 cat >>confdefs.h <<\_ACEOF
25117 #define HAVE_INET_SOCKETS 1
25118 _ACEOF
25119
25120 fi
25121
25122
25123 for ac_header in sys/ioctl.h
25124 do
25125 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25127 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25128 $as_echo_n "checking for $ac_header... " >&6; }
25129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25130 $as_echo_n "(cached) " >&6
25131 fi
25132 ac_res=`eval 'as_val=${'$as_ac_Header'}
25133 $as_echo "$as_val"'`
25134 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25135 $as_echo "$ac_res" >&6; }
25136 else
25137 # Is the header compilable?
25138 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25139 $as_echo_n "checking $ac_header usability... " >&6; }
25140 cat >conftest.$ac_ext <<_ACEOF
25141 /* confdefs.h. */
25142 _ACEOF
25143 cat confdefs.h >>conftest.$ac_ext
25144 cat >>conftest.$ac_ext <<_ACEOF
25145 /* end confdefs.h. */
25146 $ac_includes_default
25147 #include <$ac_header>
25148 _ACEOF
25149 rm -f conftest.$ac_objext
25150 if { (ac_try="$ac_compile"
25151 case "(($ac_try" in
25152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25153 *) ac_try_echo=$ac_try;;
25154 esac
25155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25156 $as_echo "$ac_try_echo") >&5
25157 (eval "$ac_compile") 2>conftest.er1
25158 ac_status=$?
25159 grep -v '^ *+' conftest.er1 >conftest.err
25160 rm -f conftest.er1
25161 cat conftest.err >&5
25162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25163 (exit $ac_status); } && {
25164 test -z "$ac_c_werror_flag" ||
25165 test ! -s conftest.err
25166 } && test -s conftest.$ac_objext; then
25167 ac_header_compiler=yes
25168 else
25169 $as_echo "$as_me: failed program was:" >&5
25170 sed 's/^/| /' conftest.$ac_ext >&5
25171
25172 ac_header_compiler=no
25173 fi
25174
25175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25176 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25177 $as_echo "$ac_header_compiler" >&6; }
25178
25179 # Is the header present?
25180 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25181 $as_echo_n "checking $ac_header presence... " >&6; }
25182 cat >conftest.$ac_ext <<_ACEOF
25183 /* confdefs.h. */
25184 _ACEOF
25185 cat confdefs.h >>conftest.$ac_ext
25186 cat >>conftest.$ac_ext <<_ACEOF
25187 /* end confdefs.h. */
25188 #include <$ac_header>
25189 _ACEOF
25190 if { (ac_try="$ac_cpp conftest.$ac_ext"
25191 case "(($ac_try" in
25192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25193 *) ac_try_echo=$ac_try;;
25194 esac
25195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25196 $as_echo "$ac_try_echo") >&5
25197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25198 ac_status=$?
25199 grep -v '^ *+' conftest.er1 >conftest.err
25200 rm -f conftest.er1
25201 cat conftest.err >&5
25202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25203 (exit $ac_status); } >/dev/null && {
25204 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25205 test ! -s conftest.err
25206 }; then
25207 ac_header_preproc=yes
25208 else
25209 $as_echo "$as_me: failed program was:" >&5
25210 sed 's/^/| /' conftest.$ac_ext >&5
25211
25212 ac_header_preproc=no
25213 fi
25214
25215 rm -f conftest.err conftest.$ac_ext
25216 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25217 $as_echo "$ac_header_preproc" >&6; }
25218
25219 # So? What about this header?
25220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25221 yes:no: )
25222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25223 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25225 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25226 ac_header_preproc=yes
25227 ;;
25228 no:yes:* )
25229 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25230 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25231 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25232 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25233 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25234 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25235 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25236 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25238 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25239 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25240 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25241
25242 ;;
25243 esac
25244 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25245 $as_echo_n "checking for $ac_header... " >&6; }
25246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25247 $as_echo_n "(cached) " >&6
25248 else
25249 eval "$as_ac_Header=\$ac_header_preproc"
25250 fi
25251 ac_res=`eval 'as_val=${'$as_ac_Header'}
25252 $as_echo "$as_val"'`
25253 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25254 $as_echo "$ac_res" >&6; }
25255
25256 fi
25257 if test `eval 'as_val=${'$as_ac_Header'}
25258 $as_echo "$as_val"'` = yes; then
25259 cat >>confdefs.h <<_ACEOF
25260 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25261 _ACEOF
25262
25263 fi
25264
25265 done
25266
25267
25268 if test -f /usr/lpp/X11/bin/smt.exp; then
25269
25270 cat >>confdefs.h <<\_ACEOF
25271 #define HAVE_AIX_SMT_EXP 1
25272 _ACEOF
25273
25274 fi
25275
25276 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
25277 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
25278 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
25279 { $as_echo "$as_me:$LINENO: result: yes" >&5
25280 $as_echo "yes" >&6; }
25281
25282 cat >>confdefs.h <<\_ACEOF
25283 #define HAVE_DEV_PTMX 1
25284 _ACEOF
25285
25286 else
25287 { $as_echo "$as_me:$LINENO: result: no" >&5
25288 $as_echo "no" >&6; }
25289 fi
25290
25291 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
25292 $as_echo_n "checking for pid_t... " >&6; }
25293 if test "${ac_cv_type_pid_t+set}" = set; then
25294 $as_echo_n "(cached) " >&6
25295 else
25296 ac_cv_type_pid_t=no
25297 cat >conftest.$ac_ext <<_ACEOF
25298 /* confdefs.h. */
25299 _ACEOF
25300 cat confdefs.h >>conftest.$ac_ext
25301 cat >>conftest.$ac_ext <<_ACEOF
25302 /* end confdefs.h. */
25303 $ac_includes_default
25304 int
25305 main ()
25306 {
25307 if (sizeof (pid_t))
25308 return 0;
25309 ;
25310 return 0;
25311 }
25312 _ACEOF
25313 rm -f conftest.$ac_objext
25314 if { (ac_try="$ac_compile"
25315 case "(($ac_try" in
25316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25317 *) ac_try_echo=$ac_try;;
25318 esac
25319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25320 $as_echo "$ac_try_echo") >&5
25321 (eval "$ac_compile") 2>conftest.er1
25322 ac_status=$?
25323 grep -v '^ *+' conftest.er1 >conftest.err
25324 rm -f conftest.er1
25325 cat conftest.err >&5
25326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25327 (exit $ac_status); } && {
25328 test -z "$ac_c_werror_flag" ||
25329 test ! -s conftest.err
25330 } && test -s conftest.$ac_objext; then
25331 cat >conftest.$ac_ext <<_ACEOF
25332 /* confdefs.h. */
25333 _ACEOF
25334 cat confdefs.h >>conftest.$ac_ext
25335 cat >>conftest.$ac_ext <<_ACEOF
25336 /* end confdefs.h. */
25337 $ac_includes_default
25338 int
25339 main ()
25340 {
25341 if (sizeof ((pid_t)))
25342 return 0;
25343 ;
25344 return 0;
25345 }
25346 _ACEOF
25347 rm -f conftest.$ac_objext
25348 if { (ac_try="$ac_compile"
25349 case "(($ac_try" in
25350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25351 *) ac_try_echo=$ac_try;;
25352 esac
25353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25354 $as_echo "$ac_try_echo") >&5
25355 (eval "$ac_compile") 2>conftest.er1
25356 ac_status=$?
25357 grep -v '^ *+' conftest.er1 >conftest.err
25358 rm -f conftest.er1
25359 cat conftest.err >&5
25360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25361 (exit $ac_status); } && {
25362 test -z "$ac_c_werror_flag" ||
25363 test ! -s conftest.err
25364 } && test -s conftest.$ac_objext; then
25365 :
25366 else
25367 $as_echo "$as_me: failed program was:" >&5
25368 sed 's/^/| /' conftest.$ac_ext >&5
25369
25370 ac_cv_type_pid_t=yes
25371 fi
25372
25373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25374 else
25375 $as_echo "$as_me: failed program was:" >&5
25376 sed 's/^/| /' conftest.$ac_ext >&5
25377
25378
25379 fi
25380
25381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25382 fi
25383 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25384 $as_echo "$ac_cv_type_pid_t" >&6; }
25385 if test $ac_cv_type_pid_t = yes; then
25386 :
25387 else
25388
25389 cat >>confdefs.h <<_ACEOF
25390 #define pid_t int
25391 _ACEOF
25392
25393 fi
25394
25395
25396 for ac_header in vfork.h
25397 do
25398 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25400 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25401 $as_echo_n "checking for $ac_header... " >&6; }
25402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25403 $as_echo_n "(cached) " >&6
25404 fi
25405 ac_res=`eval 'as_val=${'$as_ac_Header'}
25406 $as_echo "$as_val"'`
25407 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25408 $as_echo "$ac_res" >&6; }
25409 else
25410 # Is the header compilable?
25411 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25412 $as_echo_n "checking $ac_header usability... " >&6; }
25413 cat >conftest.$ac_ext <<_ACEOF
25414 /* confdefs.h. */
25415 _ACEOF
25416 cat confdefs.h >>conftest.$ac_ext
25417 cat >>conftest.$ac_ext <<_ACEOF
25418 /* end confdefs.h. */
25419 $ac_includes_default
25420 #include <$ac_header>
25421 _ACEOF
25422 rm -f conftest.$ac_objext
25423 if { (ac_try="$ac_compile"
25424 case "(($ac_try" in
25425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25426 *) ac_try_echo=$ac_try;;
25427 esac
25428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25429 $as_echo "$ac_try_echo") >&5
25430 (eval "$ac_compile") 2>conftest.er1
25431 ac_status=$?
25432 grep -v '^ *+' conftest.er1 >conftest.err
25433 rm -f conftest.er1
25434 cat conftest.err >&5
25435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25436 (exit $ac_status); } && {
25437 test -z "$ac_c_werror_flag" ||
25438 test ! -s conftest.err
25439 } && test -s conftest.$ac_objext; then
25440 ac_header_compiler=yes
25441 else
25442 $as_echo "$as_me: failed program was:" >&5
25443 sed 's/^/| /' conftest.$ac_ext >&5
25444
25445 ac_header_compiler=no
25446 fi
25447
25448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25449 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25450 $as_echo "$ac_header_compiler" >&6; }
25451
25452 # Is the header present?
25453 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25454 $as_echo_n "checking $ac_header presence... " >&6; }
25455 cat >conftest.$ac_ext <<_ACEOF
25456 /* confdefs.h. */
25457 _ACEOF
25458 cat confdefs.h >>conftest.$ac_ext
25459 cat >>conftest.$ac_ext <<_ACEOF
25460 /* end confdefs.h. */
25461 #include <$ac_header>
25462 _ACEOF
25463 if { (ac_try="$ac_cpp conftest.$ac_ext"
25464 case "(($ac_try" in
25465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25466 *) ac_try_echo=$ac_try;;
25467 esac
25468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25469 $as_echo "$ac_try_echo") >&5
25470 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25471 ac_status=$?
25472 grep -v '^ *+' conftest.er1 >conftest.err
25473 rm -f conftest.er1
25474 cat conftest.err >&5
25475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25476 (exit $ac_status); } >/dev/null && {
25477 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25478 test ! -s conftest.err
25479 }; then
25480 ac_header_preproc=yes
25481 else
25482 $as_echo "$as_me: failed program was:" >&5
25483 sed 's/^/| /' conftest.$ac_ext >&5
25484
25485 ac_header_preproc=no
25486 fi
25487
25488 rm -f conftest.err conftest.$ac_ext
25489 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25490 $as_echo "$ac_header_preproc" >&6; }
25491
25492 # So? What about this header?
25493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25494 yes:no: )
25495 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25496 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25497 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25498 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25499 ac_header_preproc=yes
25500 ;;
25501 no:yes:* )
25502 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25503 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25504 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25505 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25506 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25507 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25508 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25509 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25510 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25511 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25512 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25513 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25514
25515 ;;
25516 esac
25517 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25518 $as_echo_n "checking for $ac_header... " >&6; }
25519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25520 $as_echo_n "(cached) " >&6
25521 else
25522 eval "$as_ac_Header=\$ac_header_preproc"
25523 fi
25524 ac_res=`eval 'as_val=${'$as_ac_Header'}
25525 $as_echo "$as_val"'`
25526 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25527 $as_echo "$ac_res" >&6; }
25528
25529 fi
25530 if test `eval 'as_val=${'$as_ac_Header'}
25531 $as_echo "$as_val"'` = yes; then
25532 cat >>confdefs.h <<_ACEOF
25533 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25534 _ACEOF
25535
25536 fi
25537
25538 done
25539
25540
25541
25542 for ac_func in fork vfork
25543 do
25544 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25545 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25546 $as_echo_n "checking for $ac_func... " >&6; }
25547 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25548 $as_echo_n "(cached) " >&6
25549 else
25550 cat >conftest.$ac_ext <<_ACEOF
25551 /* confdefs.h. */
25552 _ACEOF
25553 cat confdefs.h >>conftest.$ac_ext
25554 cat >>conftest.$ac_ext <<_ACEOF
25555 /* end confdefs.h. */
25556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25558 #define $ac_func innocuous_$ac_func
25559
25560 /* System header to define __stub macros and hopefully few prototypes,
25561 which can conflict with char $ac_func (); below.
25562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25563 <limits.h> exists even on freestanding compilers. */
25564
25565 #ifdef __STDC__
25566 # include <limits.h>
25567 #else
25568 # include <assert.h>
25569 #endif
25570
25571 #undef $ac_func
25572
25573 /* Override any GCC internal prototype to avoid an error.
25574 Use char because int might match the return type of a GCC
25575 builtin and then its argument prototype would still apply. */
25576 #ifdef __cplusplus
25577 extern "C"
25578 #endif
25579 char $ac_func ();
25580 /* The GNU C library defines this for functions which it implements
25581 to always fail with ENOSYS. Some functions are actually named
25582 something starting with __ and the normal name is an alias. */
25583 #if defined __stub_$ac_func || defined __stub___$ac_func
25584 choke me
25585 #endif
25586
25587 int
25588 main ()
25589 {
25590 return $ac_func ();
25591 ;
25592 return 0;
25593 }
25594 _ACEOF
25595 rm -f conftest.$ac_objext conftest$ac_exeext
25596 if { (ac_try="$ac_link"
25597 case "(($ac_try" in
25598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25599 *) ac_try_echo=$ac_try;;
25600 esac
25601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25602 $as_echo "$ac_try_echo") >&5
25603 (eval "$ac_link") 2>conftest.er1
25604 ac_status=$?
25605 grep -v '^ *+' conftest.er1 >conftest.err
25606 rm -f conftest.er1
25607 cat conftest.err >&5
25608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25609 (exit $ac_status); } && {
25610 test -z "$ac_c_werror_flag" ||
25611 test ! -s conftest.err
25612 } && test -s conftest$ac_exeext && {
25613 test "$cross_compiling" = yes ||
25614 $as_test_x conftest$ac_exeext
25615 }; then
25616 eval "$as_ac_var=yes"
25617 else
25618 $as_echo "$as_me: failed program was:" >&5
25619 sed 's/^/| /' conftest.$ac_ext >&5
25620
25621 eval "$as_ac_var=no"
25622 fi
25623
25624 rm -rf conftest.dSYM
25625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25626 conftest$ac_exeext conftest.$ac_ext
25627 fi
25628 ac_res=`eval 'as_val=${'$as_ac_var'}
25629 $as_echo "$as_val"'`
25630 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25631 $as_echo "$ac_res" >&6; }
25632 if test `eval 'as_val=${'$as_ac_var'}
25633 $as_echo "$as_val"'` = yes; then
25634 cat >>confdefs.h <<_ACEOF
25635 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25636 _ACEOF
25637
25638 fi
25639 done
25640
25641 if test "x$ac_cv_func_fork" = xyes; then
25642 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
25643 $as_echo_n "checking for working fork... " >&6; }
25644 if test "${ac_cv_func_fork_works+set}" = set; then
25645 $as_echo_n "(cached) " >&6
25646 else
25647 if test "$cross_compiling" = yes; then
25648 ac_cv_func_fork_works=cross
25649 else
25650 cat >conftest.$ac_ext <<_ACEOF
25651 /* confdefs.h. */
25652 _ACEOF
25653 cat confdefs.h >>conftest.$ac_ext
25654 cat >>conftest.$ac_ext <<_ACEOF
25655 /* end confdefs.h. */
25656 $ac_includes_default
25657 int
25658 main ()
25659 {
25660
25661 /* By Ruediger Kuhlmann. */
25662 return fork () < 0;
25663
25664 ;
25665 return 0;
25666 }
25667 _ACEOF
25668 rm -f conftest$ac_exeext
25669 if { (ac_try="$ac_link"
25670 case "(($ac_try" in
25671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25672 *) ac_try_echo=$ac_try;;
25673 esac
25674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25675 $as_echo "$ac_try_echo") >&5
25676 (eval "$ac_link") 2>&5
25677 ac_status=$?
25678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25679 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25680 { (case "(($ac_try" in
25681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25682 *) ac_try_echo=$ac_try;;
25683 esac
25684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25685 $as_echo "$ac_try_echo") >&5
25686 (eval "$ac_try") 2>&5
25687 ac_status=$?
25688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25689 (exit $ac_status); }; }; then
25690 ac_cv_func_fork_works=yes
25691 else
25692 $as_echo "$as_me: program exited with status $ac_status" >&5
25693 $as_echo "$as_me: failed program was:" >&5
25694 sed 's/^/| /' conftest.$ac_ext >&5
25695
25696 ( exit $ac_status )
25697 ac_cv_func_fork_works=no
25698 fi
25699 rm -rf conftest.dSYM
25700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25701 fi
25702
25703
25704 fi
25705 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25706 $as_echo "$ac_cv_func_fork_works" >&6; }
25707
25708 else
25709 ac_cv_func_fork_works=$ac_cv_func_fork
25710 fi
25711 if test "x$ac_cv_func_fork_works" = xcross; then
25712 case $host in
25713 *-*-amigaos* | *-*-msdosdjgpp*)
25714 # Override, as these systems have only a dummy fork() stub
25715 ac_cv_func_fork_works=no
25716 ;;
25717 *)
25718 ac_cv_func_fork_works=yes
25719 ;;
25720 esac
25721 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25722 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25723 fi
25724 ac_cv_func_vfork_works=$ac_cv_func_vfork
25725 if test "x$ac_cv_func_vfork" = xyes; then
25726 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
25727 $as_echo_n "checking for working vfork... " >&6; }
25728 if test "${ac_cv_func_vfork_works+set}" = set; then
25729 $as_echo_n "(cached) " >&6
25730 else
25731 if test "$cross_compiling" = yes; then
25732 ac_cv_func_vfork_works=cross
25733 else
25734 cat >conftest.$ac_ext <<_ACEOF
25735 /* confdefs.h. */
25736 _ACEOF
25737 cat confdefs.h >>conftest.$ac_ext
25738 cat >>conftest.$ac_ext <<_ACEOF
25739 /* end confdefs.h. */
25740 /* Thanks to Paul Eggert for this test. */
25741 $ac_includes_default
25742 #include <sys/wait.h>
25743 #ifdef HAVE_VFORK_H
25744 # include <vfork.h>
25745 #endif
25746 /* On some sparc systems, changes by the child to local and incoming
25747 argument registers are propagated back to the parent. The compiler
25748 is told about this with #include <vfork.h>, but some compilers
25749 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25750 static variable whose address is put into a register that is
25751 clobbered by the vfork. */
25752 static void
25753 #ifdef __cplusplus
25754 sparc_address_test (int arg)
25755 # else
25756 sparc_address_test (arg) int arg;
25757 #endif
25758 {
25759 static pid_t child;
25760 if (!child) {
25761 child = vfork ();
25762 if (child < 0) {
25763 perror ("vfork");
25764 _exit(2);
25765 }
25766 if (!child) {
25767 arg = getpid();
25768 write(-1, "", 0);
25769 _exit (arg);
25770 }
25771 }
25772 }
25773
25774 int
25775 main ()
25776 {
25777 pid_t parent = getpid ();
25778 pid_t child;
25779
25780 sparc_address_test (0);
25781
25782 child = vfork ();
25783
25784 if (child == 0) {
25785 /* Here is another test for sparc vfork register problems. This
25786 test uses lots of local variables, at least as many local
25787 variables as main has allocated so far including compiler
25788 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25789 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25790 reuse the register of parent for one of the local variables,
25791 since it will think that parent can't possibly be used any more
25792 in this routine. Assigning to the local variable will thus
25793 munge parent in the parent process. */
25794 pid_t
25795 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25796 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25797 /* Convince the compiler that p..p7 are live; otherwise, it might
25798 use the same hardware register for all 8 local variables. */
25799 if (p != p1 || p != p2 || p != p3 || p != p4
25800 || p != p5 || p != p6 || p != p7)
25801 _exit(1);
25802
25803 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25804 from child file descriptors. If the child closes a descriptor
25805 before it execs or exits, this munges the parent's descriptor
25806 as well. Test for this by closing stdout in the child. */
25807 _exit(close(fileno(stdout)) != 0);
25808 } else {
25809 int status;
25810 struct stat st;
25811
25812 while (wait(&status) != child)
25813 ;
25814 return (
25815 /* Was there some problem with vforking? */
25816 child < 0
25817
25818 /* Did the child fail? (This shouldn't happen.) */
25819 || status
25820
25821 /* Did the vfork/compiler bug occur? */
25822 || parent != getpid()
25823
25824 /* Did the file descriptor bug occur? */
25825 || fstat(fileno(stdout), &st) != 0
25826 );
25827 }
25828 }
25829 _ACEOF
25830 rm -f conftest$ac_exeext
25831 if { (ac_try="$ac_link"
25832 case "(($ac_try" in
25833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25834 *) ac_try_echo=$ac_try;;
25835 esac
25836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25837 $as_echo "$ac_try_echo") >&5
25838 (eval "$ac_link") 2>&5
25839 ac_status=$?
25840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25841 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25842 { (case "(($ac_try" in
25843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25844 *) ac_try_echo=$ac_try;;
25845 esac
25846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25847 $as_echo "$ac_try_echo") >&5
25848 (eval "$ac_try") 2>&5
25849 ac_status=$?
25850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25851 (exit $ac_status); }; }; then
25852 ac_cv_func_vfork_works=yes
25853 else
25854 $as_echo "$as_me: program exited with status $ac_status" >&5
25855 $as_echo "$as_me: failed program was:" >&5
25856 sed 's/^/| /' conftest.$ac_ext >&5
25857
25858 ( exit $ac_status )
25859 ac_cv_func_vfork_works=no
25860 fi
25861 rm -rf conftest.dSYM
25862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25863 fi
25864
25865
25866 fi
25867 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25868 $as_echo "$ac_cv_func_vfork_works" >&6; }
25869
25870 fi;
25871 if test "x$ac_cv_func_fork_works" = xcross; then
25872 ac_cv_func_vfork_works=$ac_cv_func_vfork
25873 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25874 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25875 fi
25876
25877 if test "x$ac_cv_func_vfork_works" = xyes; then
25878
25879 cat >>confdefs.h <<\_ACEOF
25880 #define HAVE_WORKING_VFORK 1
25881 _ACEOF
25882
25883 else
25884
25885 cat >>confdefs.h <<\_ACEOF
25886 #define vfork fork
25887 _ACEOF
25888
25889 fi
25890 if test "x$ac_cv_func_fork_works" = xyes; then
25891
25892 cat >>confdefs.h <<\_ACEOF
25893 #define HAVE_WORKING_FORK 1
25894 _ACEOF
25895
25896 fi
25897
25898
25899 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
25900 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
25901 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25902 $as_echo_n "(cached) " >&6
25903 else
25904 cat >conftest.$ac_ext <<_ACEOF
25905 /* confdefs.h. */
25906 _ACEOF
25907 cat confdefs.h >>conftest.$ac_ext
25908 cat >>conftest.$ac_ext <<_ACEOF
25909 /* end confdefs.h. */
25910 #include <langinfo.h>
25911 int
25912 main ()
25913 {
25914 char* cs = nl_langinfo(CODESET);
25915 ;
25916 return 0;
25917 }
25918 _ACEOF
25919 rm -f conftest.$ac_objext conftest$ac_exeext
25920 if { (ac_try="$ac_link"
25921 case "(($ac_try" in
25922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25923 *) ac_try_echo=$ac_try;;
25924 esac
25925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25926 $as_echo "$ac_try_echo") >&5
25927 (eval "$ac_link") 2>conftest.er1
25928 ac_status=$?
25929 grep -v '^ *+' conftest.er1 >conftest.err
25930 rm -f conftest.er1
25931 cat conftest.err >&5
25932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25933 (exit $ac_status); } && {
25934 test -z "$ac_c_werror_flag" ||
25935 test ! -s conftest.err
25936 } && test -s conftest$ac_exeext && {
25937 test "$cross_compiling" = yes ||
25938 $as_test_x conftest$ac_exeext
25939 }; then
25940 emacs_cv_langinfo_codeset=yes
25941 else
25942 $as_echo "$as_me: failed program was:" >&5
25943 sed 's/^/| /' conftest.$ac_ext >&5
25944
25945 emacs_cv_langinfo_codeset=no
25946 fi
25947
25948 rm -rf conftest.dSYM
25949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25950 conftest$ac_exeext conftest.$ac_ext
25951
25952 fi
25953 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
25954 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25955 if test $emacs_cv_langinfo_codeset = yes; then
25956
25957 cat >>confdefs.h <<\_ACEOF
25958 #define HAVE_LANGINFO_CODESET 1
25959 _ACEOF
25960
25961 fi
25962
25963 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
25964 $as_echo_n "checking for size_t... " >&6; }
25965 if test "${ac_cv_type_size_t+set}" = set; then
25966 $as_echo_n "(cached) " >&6
25967 else
25968 ac_cv_type_size_t=no
25969 cat >conftest.$ac_ext <<_ACEOF
25970 /* confdefs.h. */
25971 _ACEOF
25972 cat confdefs.h >>conftest.$ac_ext
25973 cat >>conftest.$ac_ext <<_ACEOF
25974 /* end confdefs.h. */
25975 $ac_includes_default
25976 int
25977 main ()
25978 {
25979 if (sizeof (size_t))
25980 return 0;
25981 ;
25982 return 0;
25983 }
25984 _ACEOF
25985 rm -f conftest.$ac_objext
25986 if { (ac_try="$ac_compile"
25987 case "(($ac_try" in
25988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25989 *) ac_try_echo=$ac_try;;
25990 esac
25991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25992 $as_echo "$ac_try_echo") >&5
25993 (eval "$ac_compile") 2>conftest.er1
25994 ac_status=$?
25995 grep -v '^ *+' conftest.er1 >conftest.err
25996 rm -f conftest.er1
25997 cat conftest.err >&5
25998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25999 (exit $ac_status); } && {
26000 test -z "$ac_c_werror_flag" ||
26001 test ! -s conftest.err
26002 } && test -s conftest.$ac_objext; then
26003 cat >conftest.$ac_ext <<_ACEOF
26004 /* confdefs.h. */
26005 _ACEOF
26006 cat confdefs.h >>conftest.$ac_ext
26007 cat >>conftest.$ac_ext <<_ACEOF
26008 /* end confdefs.h. */
26009 $ac_includes_default
26010 int
26011 main ()
26012 {
26013 if (sizeof ((size_t)))
26014 return 0;
26015 ;
26016 return 0;
26017 }
26018 _ACEOF
26019 rm -f conftest.$ac_objext
26020 if { (ac_try="$ac_compile"
26021 case "(($ac_try" in
26022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26023 *) ac_try_echo=$ac_try;;
26024 esac
26025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26026 $as_echo "$ac_try_echo") >&5
26027 (eval "$ac_compile") 2>conftest.er1
26028 ac_status=$?
26029 grep -v '^ *+' conftest.er1 >conftest.err
26030 rm -f conftest.er1
26031 cat conftest.err >&5
26032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26033 (exit $ac_status); } && {
26034 test -z "$ac_c_werror_flag" ||
26035 test ! -s conftest.err
26036 } && test -s conftest.$ac_objext; then
26037 :
26038 else
26039 $as_echo "$as_me: failed program was:" >&5
26040 sed 's/^/| /' conftest.$ac_ext >&5
26041
26042 ac_cv_type_size_t=yes
26043 fi
26044
26045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26046 else
26047 $as_echo "$as_me: failed program was:" >&5
26048 sed 's/^/| /' conftest.$ac_ext >&5
26049
26050
26051 fi
26052
26053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26054 fi
26055 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26056 $as_echo "$ac_cv_type_size_t" >&6; }
26057 if test $ac_cv_type_size_t = yes; then
26058
26059 cat >>confdefs.h <<_ACEOF
26060 #define HAVE_SIZE_T 1
26061 _ACEOF
26062
26063
26064 fi
26065
26066
26067 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
26068 $as_echo_n "checking for mbstate_t... " >&6; }
26069 if test "${ac_cv_type_mbstate_t+set}" = set; then
26070 $as_echo_n "(cached) " >&6
26071 else
26072 cat >conftest.$ac_ext <<_ACEOF
26073 /* confdefs.h. */
26074 _ACEOF
26075 cat confdefs.h >>conftest.$ac_ext
26076 cat >>conftest.$ac_ext <<_ACEOF
26077 /* end confdefs.h. */
26078 $ac_includes_default
26079 # include <wchar.h>
26080 int
26081 main ()
26082 {
26083 mbstate_t x; return sizeof x;
26084 ;
26085 return 0;
26086 }
26087 _ACEOF
26088 rm -f conftest.$ac_objext
26089 if { (ac_try="$ac_compile"
26090 case "(($ac_try" in
26091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26092 *) ac_try_echo=$ac_try;;
26093 esac
26094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26095 $as_echo "$ac_try_echo") >&5
26096 (eval "$ac_compile") 2>conftest.er1
26097 ac_status=$?
26098 grep -v '^ *+' conftest.er1 >conftest.err
26099 rm -f conftest.er1
26100 cat conftest.err >&5
26101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26102 (exit $ac_status); } && {
26103 test -z "$ac_c_werror_flag" ||
26104 test ! -s conftest.err
26105 } && test -s conftest.$ac_objext; then
26106 ac_cv_type_mbstate_t=yes
26107 else
26108 $as_echo "$as_me: failed program was:" >&5
26109 sed 's/^/| /' conftest.$ac_ext >&5
26110
26111 ac_cv_type_mbstate_t=no
26112 fi
26113
26114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26115 fi
26116 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
26117 $as_echo "$ac_cv_type_mbstate_t" >&6; }
26118 if test $ac_cv_type_mbstate_t = yes; then
26119
26120 cat >>confdefs.h <<\_ACEOF
26121 #define HAVE_MBSTATE_T 1
26122 _ACEOF
26123
26124 else
26125
26126 cat >>confdefs.h <<\_ACEOF
26127 #define mbstate_t int
26128 _ACEOF
26129
26130 fi
26131
26132 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
26133 $as_echo_n "checking for C restrict keyword... " >&6; }
26134 if test "${emacs_cv_c_restrict+set}" = set; then
26135 $as_echo_n "(cached) " >&6
26136 else
26137 cat >conftest.$ac_ext <<_ACEOF
26138 /* confdefs.h. */
26139 _ACEOF
26140 cat confdefs.h >>conftest.$ac_ext
26141 cat >>conftest.$ac_ext <<_ACEOF
26142 /* end confdefs.h. */
26143 void fred (int *restrict x);
26144 int
26145 main ()
26146 {
26147
26148 ;
26149 return 0;
26150 }
26151 _ACEOF
26152 rm -f conftest.$ac_objext
26153 if { (ac_try="$ac_compile"
26154 case "(($ac_try" in
26155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26156 *) ac_try_echo=$ac_try;;
26157 esac
26158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26159 $as_echo "$ac_try_echo") >&5
26160 (eval "$ac_compile") 2>conftest.er1
26161 ac_status=$?
26162 grep -v '^ *+' conftest.er1 >conftest.err
26163 rm -f conftest.er1
26164 cat conftest.err >&5
26165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26166 (exit $ac_status); } && {
26167 test -z "$ac_c_werror_flag" ||
26168 test ! -s conftest.err
26169 } && test -s conftest.$ac_objext; then
26170 emacs_cv_c_restrict=yes
26171 else
26172 $as_echo "$as_me: failed program was:" >&5
26173 sed 's/^/| /' conftest.$ac_ext >&5
26174
26175 cat >conftest.$ac_ext <<_ACEOF
26176 /* confdefs.h. */
26177 _ACEOF
26178 cat confdefs.h >>conftest.$ac_ext
26179 cat >>conftest.$ac_ext <<_ACEOF
26180 /* end confdefs.h. */
26181 void fred (int *__restrict x);
26182 int
26183 main ()
26184 {
26185
26186 ;
26187 return 0;
26188 }
26189 _ACEOF
26190 rm -f conftest.$ac_objext
26191 if { (ac_try="$ac_compile"
26192 case "(($ac_try" in
26193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26194 *) ac_try_echo=$ac_try;;
26195 esac
26196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26197 $as_echo "$ac_try_echo") >&5
26198 (eval "$ac_compile") 2>conftest.er1
26199 ac_status=$?
26200 grep -v '^ *+' conftest.er1 >conftest.err
26201 rm -f conftest.er1
26202 cat conftest.err >&5
26203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26204 (exit $ac_status); } && {
26205 test -z "$ac_c_werror_flag" ||
26206 test ! -s conftest.err
26207 } && test -s conftest.$ac_objext; then
26208 emacs_cv_c_restrict=__restrict
26209 else
26210 $as_echo "$as_me: failed program was:" >&5
26211 sed 's/^/| /' conftest.$ac_ext >&5
26212
26213 emacs_cv_c_restrict=no
26214 fi
26215
26216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26217 fi
26218
26219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26220 fi
26221 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
26222 $as_echo "$emacs_cv_c_restrict" >&6; }
26223 case "$emacs_cv_c_restrict" in
26224 yes) emacs_restrict=restrict;;
26225 no) emacs_restrict="";;
26226 *) emacs_restrict="$emacs_cv_c_restrict";;
26227 esac
26228 if test "$emacs_restrict" != __restrict; then
26229
26230 cat >>confdefs.h <<_ACEOF
26231 #define __restrict $emacs_restrict
26232 _ACEOF
26233
26234 fi
26235
26236 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
26237 $as_echo_n "checking for C restricted array declarations... " >&6; }
26238 if test "${emacs_cv_c_restrict_arr+set}" = set; then
26239 $as_echo_n "(cached) " >&6
26240 else
26241 cat >conftest.$ac_ext <<_ACEOF
26242 /* confdefs.h. */
26243 _ACEOF
26244 cat confdefs.h >>conftest.$ac_ext
26245 cat >>conftest.$ac_ext <<_ACEOF
26246 /* end confdefs.h. */
26247 void fred (int x[__restrict]);
26248 int
26249 main ()
26250 {
26251
26252 ;
26253 return 0;
26254 }
26255 _ACEOF
26256 rm -f conftest.$ac_objext
26257 if { (ac_try="$ac_compile"
26258 case "(($ac_try" in
26259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26260 *) ac_try_echo=$ac_try;;
26261 esac
26262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26263 $as_echo "$ac_try_echo") >&5
26264 (eval "$ac_compile") 2>conftest.er1
26265 ac_status=$?
26266 grep -v '^ *+' conftest.er1 >conftest.err
26267 rm -f conftest.er1
26268 cat conftest.err >&5
26269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26270 (exit $ac_status); } && {
26271 test -z "$ac_c_werror_flag" ||
26272 test ! -s conftest.err
26273 } && test -s conftest.$ac_objext; then
26274 emacs_cv_c_restrict_arr=yes
26275 else
26276 $as_echo "$as_me: failed program was:" >&5
26277 sed 's/^/| /' conftest.$ac_ext >&5
26278
26279 emacs_cv_c_restrict_arr=no
26280 fi
26281
26282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26283 fi
26284 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
26285 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
26286 if test "$emacs_cv_c_restrict_arr" = yes; then
26287
26288 cat >>confdefs.h <<\_ACEOF
26289 #define __restrict_arr __restrict
26290 _ACEOF
26291
26292 fi
26293
26294
26295
26296 # Set up the CFLAGS for real compilation, so we can substitute it.
26297 CFLAGS="$REAL_CFLAGS"
26298 CPPFLAGS="$REAL_CPPFLAGS"
26299
26300 ## Hack to detect a buggy GCC version.
26301 if test "x$GCC" = xyes \
26302 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
26303 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
26304 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
26305 { { $as_echo "$as_me:$LINENO: error: GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." >&5
26306 $as_echo "$as_me: error: GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." >&2;}
26307 { (exit 1); exit 1; }; }
26308 fi
26309
26310 #### Find out which version of Emacs this is.
26311 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
26312 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
26313 if test x"${version}" = x; then
26314 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
26315 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
26316 { (exit 1); exit 1; }; }
26317 fi
26318 if test x"${version}" != x"$PACKAGE_VERSION"; then
26319 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
26320 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
26321 fi
26322
26323 ### Specify what sort of things we'll be editing into Makefile and config.h.
26324 ### Use configuration here uncanonicalized to avoid exceeding size limits.
26325
26326
26327 ## Unused?
26328
26329
26330
26331
26332
26333
26334
26335
26336
26337
26338
26339
26340
26341
26342
26343
26344
26345
26346
26347
26348
26349 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
26350 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
26351 ## end of LIBX_BASE, but nothing ever set it.
26352
26353
26354
26355
26356 ## Used in lwlib/Makefile.in.
26357
26358
26359
26360
26361
26362
26363
26364
26365
26366
26367
26368
26369
26370
26371 cat >>confdefs.h <<_ACEOF
26372 #define EMACS_CONFIGURATION "${canonical}"
26373 _ACEOF
26374
26375
26376 cat >>confdefs.h <<_ACEOF
26377 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
26378 _ACEOF
26379
26380
26381 cat >>confdefs.h <<_ACEOF
26382 #define config_machfile "${machfile}"
26383 _ACEOF
26384
26385
26386 cat >>confdefs.h <<_ACEOF
26387 #define config_opsysfile "${opsysfile}"
26388 _ACEOF
26389
26390
26391 XMENU_OBJ=
26392 XOBJ=
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 fi
26402
26403
26404
26405 WIDGET_OBJ=
26406 MOTIF_LIBW=
26407 if test "${USE_X_TOOLKIT}" != "none" ; then
26408 WIDGET_OBJ=widget.o
26409
26410 cat >>confdefs.h <<\_ACEOF
26411 #define USE_X_TOOLKIT 1
26412 _ACEOF
26413
26414 if test "${USE_X_TOOLKIT}" = "LUCID"; then
26415
26416 cat >>confdefs.h <<\_ACEOF
26417 #define USE_LUCID 1
26418 _ACEOF
26419
26420 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
26421
26422 cat >>confdefs.h <<\_ACEOF
26423 #define USE_MOTIF 1
26424 _ACEOF
26425
26426 MOTIF_LIBW=-lXm
26427 case "$opsys" in
26428 gnu-linux)
26429 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
26430 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
26431 ;;
26432
26433 unixware)
26434 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
26435 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
26436 MOTIF_LIBW="MOTIF_LIBW -lXimp"
26437 ;;
26438
26439 aix4-2)
26440 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
26441 MOTIF_LIBW="$MOTIF_LIBW -li18n"
26442 ;;
26443 esac
26444 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
26445 fi
26446 fi
26447
26448
26449 TOOLKIT_LIBW=
26450 case "$USE_X_TOOLKIT" in
26451 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
26452 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
26453 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
26454 esac
26455
26456
26457 if test "$USE_X_TOOLKIT" = "none"; then
26458 LIBXT_OTHER="\$(LIBXSM)"
26459 else
26460 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
26461 fi
26462
26463
26464 ## The X Menu stuff is present in the X10 distribution, but missing
26465 ## from X11. If we have X10, just use the installed library;
26466 ## otherwise, use our own copy.
26467 if test "${HAVE_X11}" = "yes" ; then
26468
26469 cat >>confdefs.h <<\_ACEOF
26470 #define HAVE_X11 1
26471 _ACEOF
26472
26473
26474 if test "$USE_X_TOOLKIT" = "none"; then
26475 OLDXMENU="\${oldXMenudir}libXMenu11.a"
26476 else
26477 OLDXMENU="\${lwlibdir}liblw.a"
26478 fi
26479 LIBXMENU="\$(OLDXMENU)"
26480 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
26481 else
26482 OLDXMENU=
26483 LIBXMENU="-lXMenu"
26484 LIBX_OTHER=
26485 fi
26486
26487 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
26488 OLDXMENU=
26489 LIBXMENU=
26490 fi
26491
26492
26493
26494
26495
26496 if test "${HAVE_MENUS}" = "yes" ; then
26497
26498 cat >>confdefs.h <<\_ACEOF
26499 #define HAVE_MENUS 1
26500 _ACEOF
26501
26502 fi
26503 if test "${GNU_MALLOC}" = "yes" ; then
26504
26505 cat >>confdefs.h <<\_ACEOF
26506 #define GNU_MALLOC 1
26507 _ACEOF
26508
26509 fi
26510 if test "${REL_ALLOC}" = "yes" ; then
26511
26512 cat >>confdefs.h <<\_ACEOF
26513 #define REL_ALLOC 1
26514 _ACEOF
26515
26516 fi
26517
26518
26519 if test "$opsys" = "cygwin"; then
26520 CYGWIN_OBJ="sheap.o"
26521 ## Cygwin differs because of its unexec().
26522 PRE_ALLOC_OBJ=
26523 POST_ALLOC_OBJ="lastfile.o vm-limit.o"
26524 else
26525 CYGWIN_OBJ=
26526 PRE_ALLOC_OBJ=lastfile.o
26527 POST_ALLOC_OBJ="\$(vmlimitobj)"
26528 fi
26529
26530
26531
26532
26533
26534 case "$opsys" in
26535 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
26536
26537 darwin)
26538 ## The -headerpad option tells ld (see man page) to leave room at the
26539 ## end of the header for adding load commands. Needed for dumping.
26540 ## 0x690 is the total size of 30 segment load commands (at 56
26541 ## each); under Cocoa 31 commands are required.
26542 if test "$HAVE_NS" = "yes"; then
26543 libs_nsgui="-framework AppKit"
26544 headerpad_extra=6C8
26545 else
26546 libs_nsgui=
26547 headerpad_extra=690
26548 fi
26549 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
26550 ;;
26551
26552 *) LD_SWITCH_SYSTEM_TEMACS= ;;
26553 esac
26554
26555
26556
26557 ## This exists because src/Makefile.in did some extra fiddling around
26558 ## with LD_SWITCH_SYSTEM. The cpp logic was:
26559 ## #ifndef LD_SWITCH_SYSTEM
26560 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
26561 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
26562 ## not using gcc, darwin system not on an alpha (ie darwin, since
26563 ## darwin + alpha does not occur).
26564 ## Note that unlike L_S_S, this is not used in ac_link.
26565 if test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
26566 test "$opsys" = "darwin"; then
26567 LD_SWITCH_SYSTEM_EXTRA="-X"
26568 else
26569 LD_SWITCH_SYSTEM_EXTRA=
26570 fi
26571
26572
26573
26574 LIB_GCC=
26575 if test "x$GCC" = "xyes"; then
26576
26577 case "$opsys" in
26578 ## cygwin: don't link against static libgcc.
26579 cygwin|freebsd|netbsd|openbsd) LIB_GCC= ;;
26580
26581 gnu-*)
26582 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
26583 ## build on ARM EABI under GNU/Linux. (Bug#5518)
26584 ## Note that m/arm.h never bothered to undefine LIB_GCC first.
26585 if test "$machine" = "arm"; then
26586 LIB_GCC="-lgcc_s"
26587 else
26588 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
26589 ## immediately undefine it again and redefine it to empty.
26590 ## Was the C_SWITCH_X_SITE part really necessary?
26591 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
26592 LIB_GCC=
26593 fi
26594 ;;
26595
26596 ## Ask GCC where to find libgcc.a.
26597 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
26598 esac
26599 fi
26600
26601
26602 TOOLTIP_SUPPORT=
26603 WINDOW_SUPPORT=
26604 ## If we're using X11/GNUstep, define some consequences.
26605 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
26606
26607 cat >>confdefs.h <<\_ACEOF
26608 #define HAVE_WINDOW_SYSTEM 1
26609 _ACEOF
26610
26611
26612 cat >>confdefs.h <<\_ACEOF
26613 #define HAVE_MOUSE 1
26614 _ACEOF
26615
26616 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
26617 TOOLTIP_SUPPORT="\${lispsource}mouse.elc"
26618
26619 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
26620 test "$HAVE_X_WINDOWS" = "yes" && \
26621 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
26622
26623 fi
26624
26625
26626
26627
26628
26629
26630
26631
26632
26633 #### Report on what we decided to do.
26634 #### Report GTK as a toolkit, even if it doesn't use Xt.
26635 #### It makes printing result more understandable as using GTK sets
26636 #### toolkit_scroll_bars to yes by default.
26637 if test "${HAVE_GTK}" = "yes"; then
26638 USE_X_TOOLKIT=GTK
26639 fi
26640
26641 echo "
26642 Configured for \`${canonical}'.
26643
26644 Where should the build process find the source code? ${srcdir}
26645 What operating system and machine description files should Emacs use?
26646 \`${opsysfile}' and \`${machfile}'
26647 What compiler should emacs be built with? ${CC} ${CFLAGS}
26648 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
26649 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
26650 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
26651 What window system should Emacs use? ${window_system}
26652 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
26653
26654 if test -n "${x_includes}"; then
26655 echo " Where do we find X Windows header files? ${x_includes}"
26656 else
26657 echo " Where do we find X Windows header files? Standard dirs"
26658 fi
26659 if test -n "${x_libraries}"; then
26660 echo " Where do we find X Windows libraries? ${x_libraries}"
26661 else
26662 echo " Where do we find X Windows libraries? Standard dirs"
26663 fi
26664
26665 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
26666 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
26667 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
26668 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
26669 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
26670 echo " Does Emacs use -lpng? ${HAVE_PNG}"
26671 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
26672 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
26673 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
26674 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
26675 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
26676
26677 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
26678 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
26679 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
26680 echo " Does Emacs use -lxft? ${HAVE_XFT}"
26681
26682 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26683 echo
26684
26685 if test $USE_XASSERTS = yes; then
26686 echo " Compiling with asserts turned on."
26687 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
26688 fi
26689
26690 echo
26691
26692 if test "$HAVE_NS" = "yes"; then
26693 echo
26694 echo "You must run \"make install\" in order to test the built application.
26695 The installed application will go to nextstep/Emacs.app and can be
26696 run or moved from there."
26697 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26698 echo "The application will be fully self-contained."
26699 else
26700 echo "The lisp resources for the application will be installed under ${prefix}.
26701 You may need to run \"make install\" with sudo. The application will fail
26702 to run if these resources are not installed."
26703 fi
26704 echo
26705 fi
26706
26707 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
26708 echo "D-Bus integration has been tested for GNU/Linux only."
26709 echo
26710 fi
26711
26712
26713 # Remove any trailing slashes in these variables.
26714 test "${prefix}" != NONE &&
26715 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26716 test "${exec_prefix}" != NONE &&
26717 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26718
26719 # Now get this: Some word that is part of the ${srcdir} directory name
26720 # or the ${configuration} value might, just might, happen to be an
26721 # identifier like `sun4' or `i386' or something, and be predefined by
26722 # the C preprocessor to some helpful value like 1, or maybe the empty
26723 # string. Needless to say consequent macro substitutions are less
26724 # than conducive to the makefile finding the correct directory.
26725 cpp_undefs="`echo $srcdir $configuration $canonical unix mktime register X11 |
26726 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
26727 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
26728
26729 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
26730 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
26731 ## from Makefile.c can correctly provide the arg `-traditional' to the
26732 ## C preprocessor.
26733
26734 cat >conftest.$ac_ext <<_ACEOF
26735 /* confdefs.h. */
26736 _ACEOF
26737 cat confdefs.h >>conftest.$ac_ext
26738 cat >>conftest.$ac_ext <<_ACEOF
26739 /* end confdefs.h. */
26740 yes..yes
26741 _ACEOF
26742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26743 $EGREP "yes..yes" >/dev/null 2>&1; then
26744 CPP_NEED_TRADITIONAL=no
26745 else
26746 CPP_NEED_TRADITIONAL=yes
26747 fi
26748 rm -f conftest*
26749
26750
26751 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"
26752
26753 ac_config_commands="$ac_config_commands default"
26754
26755 cat >confcache <<\_ACEOF
26756 # This file is a shell script that caches the results of configure
26757 # tests run on this system so they can be shared between configure
26758 # scripts and configure runs, see configure's option --config-cache.
26759 # It is not useful on other systems. If it contains results you don't
26760 # want to keep, you may remove or edit it.
26761 #
26762 # config.status only pays attention to the cache file if you give it
26763 # the --recheck option to rerun configure.
26764 #
26765 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26766 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26767 # following values.
26768
26769 _ACEOF
26770
26771 # The following way of writing the cache mishandles newlines in values,
26772 # but we know of no workaround that is simple, portable, and efficient.
26773 # So, we kill variables containing newlines.
26774 # Ultrix sh set writes to stderr and can't be redirected directly,
26775 # and sets the high bit in the cache file unless we assign to the vars.
26776 (
26777 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26778 eval ac_val=\$$ac_var
26779 case $ac_val in #(
26780 *${as_nl}*)
26781 case $ac_var in #(
26782 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26783 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26784 esac
26785 case $ac_var in #(
26786 _ | IFS | as_nl) ;; #(
26787 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26788 *) $as_unset $ac_var ;;
26789 esac ;;
26790 esac
26791 done
26792
26793 (set) 2>&1 |
26794 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26795 *${as_nl}ac_space=\ *)
26796 # `set' does not quote correctly, so add quotes (double-quote
26797 # substitution turns \\\\ into \\, and sed turns \\ into \).
26798 sed -n \
26799 "s/'/'\\\\''/g;
26800 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26801 ;; #(
26802 *)
26803 # `set' quotes correctly as required by POSIX, so do not add quotes.
26804 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26805 ;;
26806 esac |
26807 sort
26808 ) |
26809 sed '
26810 /^ac_cv_env_/b end
26811 t clear
26812 :clear
26813 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26814 t end
26815 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26816 :end' >>confcache
26817 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26818 if test -w "$cache_file"; then
26819 test "x$cache_file" != "x/dev/null" &&
26820 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26821 $as_echo "$as_me: updating cache $cache_file" >&6;}
26822 cat confcache >$cache_file
26823 else
26824 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26825 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26826 fi
26827 fi
26828 rm -f confcache
26829
26830 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26831 # Let make expand exec_prefix.
26832 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26833
26834 DEFS=-DHAVE_CONFIG_H
26835
26836 ac_libobjs=
26837 ac_ltlibobjs=
26838 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26839 # 1. Remove the extension, and $U if already installed.
26840 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26841 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26842 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26843 # will be set to the directory where LIBOBJS objects are built.
26844 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26845 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26846 done
26847 LIBOBJS=$ac_libobjs
26848
26849 LTLIBOBJS=$ac_ltlibobjs
26850
26851
26852
26853 : ${CONFIG_STATUS=./config.status}
26854 ac_write_fail=0
26855 ac_clean_files_save=$ac_clean_files
26856 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26857 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26858 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26859 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26860 #! $SHELL
26861 # Generated by $as_me.
26862 # Run this file to recreate the current configuration.
26863 # Compiler output produced by configure, useful for debugging
26864 # configure, is in config.log if it exists.
26865
26866 debug=false
26867 ac_cs_recheck=false
26868 ac_cs_silent=false
26869 SHELL=\${CONFIG_SHELL-$SHELL}
26870 _ACEOF
26871
26872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26873 ## --------------------- ##
26874 ## M4sh Initialization. ##
26875 ## --------------------- ##
26876
26877 # Be more Bourne compatible
26878 DUALCASE=1; export DUALCASE # for MKS sh
26879 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26880 emulate sh
26881 NULLCMD=:
26882 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26883 # is contrary to our usage. Disable this feature.
26884 alias -g '${1+"$@"}'='"$@"'
26885 setopt NO_GLOB_SUBST
26886 else
26887 case `(set -o) 2>/dev/null` in
26888 *posix*) set -o posix ;;
26889 esac
26890
26891 fi
26892
26893
26894
26895
26896 # PATH needs CR
26897 # Avoid depending upon Character Ranges.
26898 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26899 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26900 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26901 as_cr_digits='0123456789'
26902 as_cr_alnum=$as_cr_Letters$as_cr_digits
26903
26904 as_nl='
26905 '
26906 export as_nl
26907 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26908 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26909 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26910 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26911 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26912 as_echo='printf %s\n'
26913 as_echo_n='printf %s'
26914 else
26915 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26916 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26917 as_echo_n='/usr/ucb/echo -n'
26918 else
26919 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26920 as_echo_n_body='eval
26921 arg=$1;
26922 case $arg in
26923 *"$as_nl"*)
26924 expr "X$arg" : "X\\(.*\\)$as_nl";
26925 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26926 esac;
26927 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26928 '
26929 export as_echo_n_body
26930 as_echo_n='sh -c $as_echo_n_body as_echo'
26931 fi
26932 export as_echo_body
26933 as_echo='sh -c $as_echo_body as_echo'
26934 fi
26935
26936 # The user is always right.
26937 if test "${PATH_SEPARATOR+set}" != set; then
26938 PATH_SEPARATOR=:
26939 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26940 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26941 PATH_SEPARATOR=';'
26942 }
26943 fi
26944
26945 # Support unset when possible.
26946 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26947 as_unset=unset
26948 else
26949 as_unset=false
26950 fi
26951
26952
26953 # IFS
26954 # We need space, tab and new line, in precisely that order. Quoting is
26955 # there to prevent editors from complaining about space-tab.
26956 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26957 # splitting by setting IFS to empty value.)
26958 IFS=" "" $as_nl"
26959
26960 # Find who we are. Look in the path if we contain no directory separator.
26961 case $0 in
26962 *[\\/]* ) as_myself=$0 ;;
26963 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26964 for as_dir in $PATH
26965 do
26966 IFS=$as_save_IFS
26967 test -z "$as_dir" && as_dir=.
26968 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26969 done
26970 IFS=$as_save_IFS
26971
26972 ;;
26973 esac
26974 # We did not find ourselves, most probably we were run as `sh COMMAND'
26975 # in which case we are not to be found in the path.
26976 if test "x$as_myself" = x; then
26977 as_myself=$0
26978 fi
26979 if test ! -f "$as_myself"; then
26980 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26981 { (exit 1); exit 1; }
26982 fi
26983
26984 # Work around bugs in pre-3.0 UWIN ksh.
26985 for as_var in ENV MAIL MAILPATH
26986 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26987 done
26988 PS1='$ '
26989 PS2='> '
26990 PS4='+ '
26991
26992 # NLS nuisances.
26993 LC_ALL=C
26994 export LC_ALL
26995 LANGUAGE=C
26996 export LANGUAGE
26997
26998 # Required to use basename.
26999 if expr a : '\(a\)' >/dev/null 2>&1 &&
27000 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27001 as_expr=expr
27002 else
27003 as_expr=false
27004 fi
27005
27006 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27007 as_basename=basename
27008 else
27009 as_basename=false
27010 fi
27011
27012
27013 # Name of the executable.
27014 as_me=`$as_basename -- "$0" ||
27015 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27016 X"$0" : 'X\(//\)$' \| \
27017 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27018 $as_echo X/"$0" |
27019 sed '/^.*\/\([^/][^/]*\)\/*$/{
27020 s//\1/
27021 q
27022 }
27023 /^X\/\(\/\/\)$/{
27024 s//\1/
27025 q
27026 }
27027 /^X\/\(\/\).*/{
27028 s//\1/
27029 q
27030 }
27031 s/.*/./; q'`
27032
27033 # CDPATH.
27034 $as_unset CDPATH
27035
27036
27037
27038 as_lineno_1=$LINENO
27039 as_lineno_2=$LINENO
27040 test "x$as_lineno_1" != "x$as_lineno_2" &&
27041 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27042
27043 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27044 # uniformly replaced by the line number. The first 'sed' inserts a
27045 # line-number line after each line using $LINENO; the second 'sed'
27046 # does the real work. The second script uses 'N' to pair each
27047 # line-number line with the line containing $LINENO, and appends
27048 # trailing '-' during substitution so that $LINENO is not a special
27049 # case at line end.
27050 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27051 # scripts with optimization help from Paolo Bonzini. Blame Lee
27052 # E. McMahon (1931-1989) for sed's syntax. :-)
27053 sed -n '
27054 p
27055 /[$]LINENO/=
27056 ' <$as_myself |
27057 sed '
27058 s/[$]LINENO.*/&-/
27059 t lineno
27060 b
27061 :lineno
27062 N
27063 :loop
27064 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27065 t loop
27066 s/-\n.*//
27067 ' >$as_me.lineno &&
27068 chmod +x "$as_me.lineno" ||
27069 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27070 { (exit 1); exit 1; }; }
27071
27072 # Don't try to exec as it changes $[0], causing all sort of problems
27073 # (the dirname of $[0] is not the place where we might find the
27074 # original and so on. Autoconf is especially sensitive to this).
27075 . "./$as_me.lineno"
27076 # Exit status is that of the last command.
27077 exit
27078 }
27079
27080
27081 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27082 as_dirname=dirname
27083 else
27084 as_dirname=false
27085 fi
27086
27087 ECHO_C= ECHO_N= ECHO_T=
27088 case `echo -n x` in
27089 -n*)
27090 case `echo 'x\c'` in
27091 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27092 *) ECHO_C='\c';;
27093 esac;;
27094 *)
27095 ECHO_N='-n';;
27096 esac
27097 if expr a : '\(a\)' >/dev/null 2>&1 &&
27098 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27099 as_expr=expr
27100 else
27101 as_expr=false
27102 fi
27103
27104 rm -f conf$$ conf$$.exe conf$$.file
27105 if test -d conf$$.dir; then
27106 rm -f conf$$.dir/conf$$.file
27107 else
27108 rm -f conf$$.dir
27109 mkdir conf$$.dir 2>/dev/null
27110 fi
27111 if (echo >conf$$.file) 2>/dev/null; then
27112 if ln -s conf$$.file conf$$ 2>/dev/null; then
27113 as_ln_s='ln -s'
27114 # ... but there are two gotchas:
27115 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27116 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27117 # In both cases, we have to default to `cp -p'.
27118 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27119 as_ln_s='cp -p'
27120 elif ln conf$$.file conf$$ 2>/dev/null; then
27121 as_ln_s=ln
27122 else
27123 as_ln_s='cp -p'
27124 fi
27125 else
27126 as_ln_s='cp -p'
27127 fi
27128 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27129 rmdir conf$$.dir 2>/dev/null
27130
27131 if mkdir -p . 2>/dev/null; then
27132 as_mkdir_p=:
27133 else
27134 test -d ./-p && rmdir ./-p
27135 as_mkdir_p=false
27136 fi
27137
27138 if test -x / >/dev/null 2>&1; then
27139 as_test_x='test -x'
27140 else
27141 if ls -dL / >/dev/null 2>&1; then
27142 as_ls_L_option=L
27143 else
27144 as_ls_L_option=
27145 fi
27146 as_test_x='
27147 eval sh -c '\''
27148 if test -d "$1"; then
27149 test -d "$1/.";
27150 else
27151 case $1 in
27152 -*)set "./$1";;
27153 esac;
27154 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27155 ???[sx]*):;;*)false;;esac;fi
27156 '\'' sh
27157 '
27158 fi
27159 as_executable_p=$as_test_x
27160
27161 # Sed expression to map a string onto a valid CPP name.
27162 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27163
27164 # Sed expression to map a string onto a valid variable name.
27165 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27166
27167
27168 exec 6>&1
27169
27170 # Save the log message, to keep $[0] and so on meaningful, and to
27171 # report actual input values of CONFIG_FILES etc. instead of their
27172 # values after options handling.
27173 ac_log="
27174 This file was extended by emacs $as_me 24.0.50, which was
27175 generated by GNU Autoconf 2.62. Invocation command line was
27176
27177 CONFIG_FILES = $CONFIG_FILES
27178 CONFIG_HEADERS = $CONFIG_HEADERS
27179 CONFIG_LINKS = $CONFIG_LINKS
27180 CONFIG_COMMANDS = $CONFIG_COMMANDS
27181 $ $0 $@
27182
27183 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27184 "
27185
27186 _ACEOF
27187
27188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27189 # Files that config.status was made for.
27190 config_files="$ac_config_files"
27191 config_headers="$ac_config_headers"
27192 config_commands="$ac_config_commands"
27193
27194 _ACEOF
27195
27196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27197 ac_cs_usage="\
27198 \`$as_me' instantiates files from templates according to the
27199 current configuration.
27200
27201 Usage: $0 [OPTIONS] [FILE]...
27202
27203 -h, --help print this help, then exit
27204 -V, --version print version number and configuration settings, then exit
27205 -q, --quiet do not print progress messages
27206 -d, --debug don't remove temporary files
27207 --recheck update $as_me by reconfiguring in the same conditions
27208 --file=FILE[:TEMPLATE]
27209 instantiate the configuration file FILE
27210 --header=FILE[:TEMPLATE]
27211 instantiate the configuration header FILE
27212
27213 Configuration files:
27214 $config_files
27215
27216 Configuration headers:
27217 $config_headers
27218
27219 Configuration commands:
27220 $config_commands
27221
27222 Report bugs to <bug-autoconf@gnu.org>."
27223
27224 _ACEOF
27225 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27226 ac_cs_version="\\
27227 emacs config.status 24.0.50
27228 configured by $0, generated by GNU Autoconf 2.62,
27229 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27230
27231 Copyright (C) 2008 Free Software Foundation, Inc.
27232 This config.status script is free software; the Free Software Foundation
27233 gives unlimited permission to copy, distribute and modify it."
27234
27235 ac_pwd='$ac_pwd'
27236 srcdir='$srcdir'
27237 INSTALL='$INSTALL'
27238 test -n "\$AWK" || AWK=awk
27239 _ACEOF
27240
27241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27242 # The default lists apply if the user does not specify any file.
27243 ac_need_defaults=:
27244 while test $# != 0
27245 do
27246 case $1 in
27247 --*=*)
27248 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27249 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27250 ac_shift=:
27251 ;;
27252 *)
27253 ac_option=$1
27254 ac_optarg=$2
27255 ac_shift=shift
27256 ;;
27257 esac
27258
27259 case $ac_option in
27260 # Handling of the options.
27261 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27262 ac_cs_recheck=: ;;
27263 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27264 $as_echo "$ac_cs_version"; exit ;;
27265 --debug | --debu | --deb | --de | --d | -d )
27266 debug=: ;;
27267 --file | --fil | --fi | --f )
27268 $ac_shift
27269 case $ac_optarg in
27270 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27271 esac
27272 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
27273 ac_need_defaults=false;;
27274 --header | --heade | --head | --hea )
27275 $ac_shift
27276 case $ac_optarg in
27277 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27278 esac
27279 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
27280 ac_need_defaults=false;;
27281 --he | --h)
27282 # Conflict between --help and --header
27283 { $as_echo "$as_me: error: ambiguous option: $1
27284 Try \`$0 --help' for more information." >&2
27285 { (exit 1); exit 1; }; };;
27286 --help | --hel | -h )
27287 $as_echo "$ac_cs_usage"; exit ;;
27288 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27289 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27290 ac_cs_silent=: ;;
27291
27292 # This is an error.
27293 -*) { $as_echo "$as_me: error: unrecognized option: $1
27294 Try \`$0 --help' for more information." >&2
27295 { (exit 1); exit 1; }; } ;;
27296
27297 *) ac_config_targets="$ac_config_targets $1"
27298 ac_need_defaults=false ;;
27299
27300 esac
27301 shift
27302 done
27303
27304 ac_configure_extra_args=
27305
27306 if $ac_cs_silent; then
27307 exec 6>/dev/null
27308 ac_configure_extra_args="$ac_configure_extra_args --silent"
27309 fi
27310
27311 _ACEOF
27312 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27313 if \$ac_cs_recheck; then
27314 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27315 shift
27316 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27317 CONFIG_SHELL='$SHELL'
27318 export CONFIG_SHELL
27319 exec "\$@"
27320 fi
27321
27322 _ACEOF
27323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27324 exec 5>>config.log
27325 {
27326 echo
27327 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27328 ## Running $as_me. ##
27329 _ASBOX
27330 $as_echo "$ac_log"
27331 } >&5
27332
27333 _ACEOF
27334 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27335 #
27336 # INIT-COMMANDS
27337 #
27338 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
27339
27340 _ACEOF
27341
27342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27343
27344 # Handling of arguments.
27345 for ac_config_target in $ac_config_targets
27346 do
27347 case $ac_config_target in
27348 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
27349 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27350 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
27351 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
27352 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
27353 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
27354 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
27355 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
27356 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
27357 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
27358 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
27359 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
27360 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27361
27362 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27363 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27364 { (exit 1); exit 1; }; };;
27365 esac
27366 done
27367
27368
27369 # If the user did not use the arguments to specify the items to instantiate,
27370 # then the envvar interface is used. Set only those that are not.
27371 # We use the long form for the default assignment because of an extremely
27372 # bizarre bug on SunOS 4.1.3.
27373 if $ac_need_defaults; then
27374 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27375 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27376 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27377 fi
27378
27379 # Have a temporary directory for convenience. Make it in the build tree
27380 # simply because there is no reason against having it here, and in addition,
27381 # creating and moving files from /tmp can sometimes cause problems.
27382 # Hook for its removal unless debugging.
27383 # Note that there is a small window in which the directory will not be cleaned:
27384 # after its creation but before its name has been assigned to `$tmp'.
27385 $debug ||
27386 {
27387 tmp=
27388 trap 'exit_status=$?
27389 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27390 ' 0
27391 trap '{ (exit 1); exit 1; }' 1 2 13 15
27392 }
27393 # Create a (secure) tmp directory for tmp files.
27394
27395 {
27396 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27397 test -n "$tmp" && test -d "$tmp"
27398 } ||
27399 {
27400 tmp=./conf$$-$RANDOM
27401 (umask 077 && mkdir "$tmp")
27402 } ||
27403 {
27404 $as_echo "$as_me: cannot create a temporary directory in ." >&2
27405 { (exit 1); exit 1; }
27406 }
27407
27408 # Set up the scripts for CONFIG_FILES section.
27409 # No need to generate them if there are no CONFIG_FILES.
27410 # This happens for instance with `./config.status config.h'.
27411 if test -n "$CONFIG_FILES"; then
27412
27413
27414 ac_cr=' '
27415 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27416 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27417 ac_cs_awk_cr='\\r'
27418 else
27419 ac_cs_awk_cr=$ac_cr
27420 fi
27421
27422 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27423 _ACEOF
27424
27425
27426 {
27427 echo "cat >conf$$subs.awk <<_ACEOF" &&
27428 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27429 echo "_ACEOF"
27430 } >conf$$subs.sh ||
27431 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27432 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27433 { (exit 1); exit 1; }; }
27434 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27435 ac_delim='%!_!# '
27436 for ac_last_try in false false false false false :; do
27437 . ./conf$$subs.sh ||
27438 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27439 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27440 { (exit 1); exit 1; }; }
27441
27442 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
27443 break
27444 elif $ac_last_try; then
27445 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27446 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27447 { (exit 1); exit 1; }; }
27448 else
27449 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27450 fi
27451 done
27452 rm -f conf$$subs.sh
27453
27454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27455 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27456 _ACEOF
27457 sed -n '
27458 h
27459 s/^/S["/; s/!.*/"]=/
27460 p
27461 g
27462 s/^[^!]*!//
27463 :repl
27464 t repl
27465 s/'"$ac_delim"'$//
27466 t delim
27467 :nl
27468 h
27469 s/\(.\{148\}\).*/\1/
27470 t more1
27471 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27472 p
27473 n
27474 b repl
27475 :more1
27476 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27477 p
27478 g
27479 s/.\{148\}//
27480 t nl
27481 :delim
27482 h
27483 s/\(.\{148\}\).*/\1/
27484 t more2
27485 s/["\\]/\\&/g; s/^/"/; s/$/"/
27486 p
27487 b
27488 :more2
27489 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27490 p
27491 g
27492 s/.\{148\}//
27493 t delim
27494 ' <conf$$subs.awk | sed '
27495 /^[^""]/{
27496 N
27497 s/\n//
27498 }
27499 ' >>$CONFIG_STATUS || ac_write_fail=1
27500 rm -f conf$$subs.awk
27501 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27502 _ACAWK
27503 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27504 for (key in S) S_is_set[key] = 1
27505 FS = "\a"
27506
27507 }
27508 {
27509 line = $ 0
27510 nfields = split(line, field, "@")
27511 substed = 0
27512 len = length(field[1])
27513 for (i = 2; i < nfields; i++) {
27514 key = field[i]
27515 keylen = length(key)
27516 if (S_is_set[key]) {
27517 value = S[key]
27518 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27519 len += length(value) + length(field[++i])
27520 substed = 1
27521 } else
27522 len += 1 + keylen
27523 }
27524
27525 print line
27526 }
27527
27528 _ACAWK
27529 _ACEOF
27530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27531 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27532 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27533 else
27534 cat
27535 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27536 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
27537 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
27538 { (exit 1); exit 1; }; }
27539 _ACEOF
27540
27541 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27542 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27543 # trailing colons and then remove the whole line if VPATH becomes empty
27544 # (actually we leave an empty line to preserve line numbers).
27545 if test "x$srcdir" = x.; then
27546 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27547 s/:*\$(srcdir):*/:/
27548 s/:*\${srcdir}:*/:/
27549 s/:*@srcdir@:*/:/
27550 s/^\([^=]*=[ ]*\):*/\1/
27551 s/:*$//
27552 s/^[^=]*=[ ]*$//
27553 }'
27554 fi
27555
27556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27557 fi # test -n "$CONFIG_FILES"
27558
27559 # Set up the scripts for CONFIG_HEADERS section.
27560 # No need to generate them if there are no CONFIG_HEADERS.
27561 # This happens for instance with `./config.status Makefile'.
27562 if test -n "$CONFIG_HEADERS"; then
27563 cat >"$tmp/defines.awk" <<\_ACAWK ||
27564 BEGIN {
27565 _ACEOF
27566
27567 # Transform confdefs.h into an awk script `defines.awk', embedded as
27568 # here-document in config.status, that substitutes the proper values into
27569 # config.h.in to produce config.h.
27570
27571 # Create a delimiter string that does not exist in confdefs.h, to ease
27572 # handling of long lines.
27573 ac_delim='%!_!# '
27574 for ac_last_try in false false :; do
27575 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27576 if test -z "$ac_t"; then
27577 break
27578 elif $ac_last_try; then
27579 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
27580 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
27581 { (exit 1); exit 1; }; }
27582 else
27583 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27584 fi
27585 done
27586
27587 # For the awk script, D is an array of macro values keyed by name,
27588 # likewise P contains macro parameters if any. Preserve backslash
27589 # newline sequences.
27590
27591 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27592 sed -n '
27593 s/.\{148\}/&'"$ac_delim"'/g
27594 t rset
27595 :rset
27596 s/^[ ]*#[ ]*define[ ][ ]*/ /
27597 t def
27598 d
27599 :def
27600 s/\\$//
27601 t bsnl
27602 s/["\\]/\\&/g
27603 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27604 D["\1"]=" \3"/p
27605 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27606 d
27607 :bsnl
27608 s/["\\]/\\&/g
27609 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27610 D["\1"]=" \3\\\\\\n"\\/p
27611 t cont
27612 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27613 t cont
27614 d
27615 :cont
27616 n
27617 s/.\{148\}/&'"$ac_delim"'/g
27618 t clear
27619 :clear
27620 s/\\$//
27621 t bsnlc
27622 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27623 d
27624 :bsnlc
27625 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27626 b cont
27627 ' <confdefs.h | sed '
27628 s/'"$ac_delim"'/"\\\
27629 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27630
27631 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27632 for (key in D) D_is_set[key] = 1
27633 FS = "\a"
27634 }
27635 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27636 line = \$ 0
27637 split(line, arg, " ")
27638 if (arg[1] == "#") {
27639 defundef = arg[2]
27640 mac1 = arg[3]
27641 } else {
27642 defundef = substr(arg[1], 2)
27643 mac1 = arg[2]
27644 }
27645 split(mac1, mac2, "(") #)
27646 macro = mac2[1]
27647 if (D_is_set[macro]) {
27648 # Preserve the white space surrounding the "#".
27649 prefix = substr(line, 1, index(line, defundef) - 1)
27650 print prefix "define", macro P[macro] D[macro]
27651 next
27652 } else {
27653 # Replace #undef with comments. This is necessary, for example,
27654 # in the case of _POSIX_SOURCE, which is predefined and required
27655 # on some systems where configure will not decide to define it.
27656 if (defundef == "undef") {
27657 print "/*", line, "*/"
27658 next
27659 }
27660 }
27661 }
27662 { print }
27663 _ACAWK
27664 _ACEOF
27665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27666 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27667 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27668 { (exit 1); exit 1; }; }
27669 fi # test -n "$CONFIG_HEADERS"
27670
27671
27672 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27673 shift
27674 for ac_tag
27675 do
27676 case $ac_tag in
27677 :[FHLC]) ac_mode=$ac_tag; continue;;
27678 esac
27679 case $ac_mode$ac_tag in
27680 :[FHL]*:*);;
27681 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27682 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27683 { (exit 1); exit 1; }; };;
27684 :[FH]-) ac_tag=-:-;;
27685 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27686 esac
27687 ac_save_IFS=$IFS
27688 IFS=:
27689 set x $ac_tag
27690 IFS=$ac_save_IFS
27691 shift
27692 ac_file=$1
27693 shift
27694
27695 case $ac_mode in
27696 :L) ac_source=$1;;
27697 :[FH])
27698 ac_file_inputs=
27699 for ac_f
27700 do
27701 case $ac_f in
27702 -) ac_f="$tmp/stdin";;
27703 *) # Look for the file first in the build tree, then in the source tree
27704 # (if the path is not absolute). The absolute path cannot be DOS-style,
27705 # because $ac_f cannot contain `:'.
27706 test -f "$ac_f" ||
27707 case $ac_f in
27708 [\\/$]*) false;;
27709 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27710 esac ||
27711 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27712 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27713 { (exit 1); exit 1; }; };;
27714 esac
27715 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27716 ac_file_inputs="$ac_file_inputs '$ac_f'"
27717 done
27718
27719 # Let's still pretend it is `configure' which instantiates (i.e., don't
27720 # use $as_me), people would be surprised to read:
27721 # /* config.h. Generated by config.status. */
27722 configure_input='Generated from '`
27723 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27724 `' by configure.'
27725 if test x"$ac_file" != x-; then
27726 configure_input="$ac_file. $configure_input"
27727 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27728 $as_echo "$as_me: creating $ac_file" >&6;}
27729 fi
27730 # Neutralize special characters interpreted by sed in replacement strings.
27731 case $configure_input in #(
27732 *\&* | *\|* | *\\* )
27733 ac_sed_conf_input=`$as_echo "$configure_input" |
27734 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27735 *) ac_sed_conf_input=$configure_input;;
27736 esac
27737
27738 case $ac_tag in
27739 *:-:* | *:-) cat >"$tmp/stdin" \
27740 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27741 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27742 { (exit 1); exit 1; }; } ;;
27743 esac
27744 ;;
27745 esac
27746
27747 ac_dir=`$as_dirname -- "$ac_file" ||
27748 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27749 X"$ac_file" : 'X\(//\)[^/]' \| \
27750 X"$ac_file" : 'X\(//\)$' \| \
27751 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27752 $as_echo X"$ac_file" |
27753 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27754 s//\1/
27755 q
27756 }
27757 /^X\(\/\/\)[^/].*/{
27758 s//\1/
27759 q
27760 }
27761 /^X\(\/\/\)$/{
27762 s//\1/
27763 q
27764 }
27765 /^X\(\/\).*/{
27766 s//\1/
27767 q
27768 }
27769 s/.*/./; q'`
27770 { as_dir="$ac_dir"
27771 case $as_dir in #(
27772 -*) as_dir=./$as_dir;;
27773 esac
27774 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27775 as_dirs=
27776 while :; do
27777 case $as_dir in #(
27778 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27779 *) as_qdir=$as_dir;;
27780 esac
27781 as_dirs="'$as_qdir' $as_dirs"
27782 as_dir=`$as_dirname -- "$as_dir" ||
27783 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27784 X"$as_dir" : 'X\(//\)[^/]' \| \
27785 X"$as_dir" : 'X\(//\)$' \| \
27786 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27787 $as_echo X"$as_dir" |
27788 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27789 s//\1/
27790 q
27791 }
27792 /^X\(\/\/\)[^/].*/{
27793 s//\1/
27794 q
27795 }
27796 /^X\(\/\/\)$/{
27797 s//\1/
27798 q
27799 }
27800 /^X\(\/\).*/{
27801 s//\1/
27802 q
27803 }
27804 s/.*/./; q'`
27805 test -d "$as_dir" && break
27806 done
27807 test -z "$as_dirs" || eval "mkdir $as_dirs"
27808 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27809 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27810 { (exit 1); exit 1; }; }; }
27811 ac_builddir=.
27812
27813 case "$ac_dir" in
27814 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27815 *)
27816 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27817 # A ".." for each directory in $ac_dir_suffix.
27818 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27819 case $ac_top_builddir_sub in
27820 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27821 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27822 esac ;;
27823 esac
27824 ac_abs_top_builddir=$ac_pwd
27825 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27826 # for backward compatibility:
27827 ac_top_builddir=$ac_top_build_prefix
27828
27829 case $srcdir in
27830 .) # We are building in place.
27831 ac_srcdir=.
27832 ac_top_srcdir=$ac_top_builddir_sub
27833 ac_abs_top_srcdir=$ac_pwd ;;
27834 [\\/]* | ?:[\\/]* ) # Absolute name.
27835 ac_srcdir=$srcdir$ac_dir_suffix;
27836 ac_top_srcdir=$srcdir
27837 ac_abs_top_srcdir=$srcdir ;;
27838 *) # Relative name.
27839 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27840 ac_top_srcdir=$ac_top_build_prefix$srcdir
27841 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27842 esac
27843 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27844
27845
27846 case $ac_mode in
27847 :F)
27848 #
27849 # CONFIG_FILE
27850 #
27851
27852 case $INSTALL in
27853 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27854 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27855 esac
27856 _ACEOF
27857
27858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27859 # If the template does not know about datarootdir, expand it.
27860 # FIXME: This hack should be removed a few years after 2.60.
27861 ac_datarootdir_hack=; ac_datarootdir_seen=
27862
27863 ac_sed_dataroot='
27864 /datarootdir/ {
27865 p
27866 q
27867 }
27868 /@datadir@/p
27869 /@docdir@/p
27870 /@infodir@/p
27871 /@localedir@/p
27872 /@mandir@/p
27873 '
27874 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27875 *datarootdir*) ac_datarootdir_seen=yes;;
27876 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27877 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27878 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27879 _ACEOF
27880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27881 ac_datarootdir_hack='
27882 s&@datadir@&$datadir&g
27883 s&@docdir@&$docdir&g
27884 s&@infodir@&$infodir&g
27885 s&@localedir@&$localedir&g
27886 s&@mandir@&$mandir&g
27887 s&\\\${datarootdir}&$datarootdir&g' ;;
27888 esac
27889 _ACEOF
27890
27891 # Neutralize VPATH when `$srcdir' = `.'.
27892 # Shell code in configure.ac might set extrasub.
27893 # FIXME: do we really want to maintain this feature?
27894 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27895 ac_sed_extra="$ac_vpsub
27896 $extrasub
27897 _ACEOF
27898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27899 :t
27900 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27901 s|@configure_input@|$ac_sed_conf_input|;t t
27902 s&@top_builddir@&$ac_top_builddir_sub&;t t
27903 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27904 s&@srcdir@&$ac_srcdir&;t t
27905 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27906 s&@top_srcdir@&$ac_top_srcdir&;t t
27907 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27908 s&@builddir@&$ac_builddir&;t t
27909 s&@abs_builddir@&$ac_abs_builddir&;t t
27910 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27911 s&@INSTALL@&$ac_INSTALL&;t t
27912 $ac_datarootdir_hack
27913 "
27914 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
27915 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27916 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27917 { (exit 1); exit 1; }; }
27918
27919 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27920 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27921 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27922 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27923 which seems to be undefined. Please make sure it is defined." >&5
27924 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27925 which seems to be undefined. Please make sure it is defined." >&2;}
27926
27927 rm -f "$tmp/stdin"
27928 case $ac_file in
27929 -) cat "$tmp/out" && rm -f "$tmp/out";;
27930 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27931 esac \
27932 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27933 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27934 { (exit 1); exit 1; }; }
27935 ;;
27936 :H)
27937 #
27938 # CONFIG_HEADER
27939 #
27940 if test x"$ac_file" != x-; then
27941 {
27942 $as_echo "/* $configure_input */" \
27943 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27944 } >"$tmp/config.h" \
27945 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27946 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27947 { (exit 1); exit 1; }; }
27948 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27949 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27950 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27951 else
27952 rm -f "$ac_file"
27953 mv "$tmp/config.h" "$ac_file" \
27954 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27955 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27956 { (exit 1); exit 1; }; }
27957 fi
27958 else
27959 $as_echo "/* $configure_input */" \
27960 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27961 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27962 $as_echo "$as_me: error: could not create -" >&2;}
27963 { (exit 1); exit 1; }; }
27964 fi
27965 ;;
27966
27967 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
27968 $as_echo "$as_me: executing $ac_file commands" >&6;}
27969 ;;
27970 esac
27971
27972
27973 case $ac_file$ac_mode in
27974 "default":C)
27975
27976 ### Make the necessary directories, if they don't exist.
27977 for dir in etc lisp ; do
27978 test -d ${dir} || mkdir ${dir}
27979 done
27980
27981 # Build src/Makefile from ${srcdir}/src/Makefile.c
27982 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
27983 # This must be done after src/config.h is built, since we rely on that file.
27984
27985 echo creating src/epaths.h
27986 ${MAKE-make} epaths-force
27987
27988 # As of 2000-11-19, newest development versions of GNU cpp preprocess
27989 # `..' to `. .' unless invoked with -traditional
27990
27991 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
27992 CPPFLAGS="$CPPFLAGS -traditional"
27993 fi
27994
27995 echo creating src/Makefile
27996 ( cd src
27997 rm -f junk.c junk1.c junk2.c
27998 sed -e '/start of cpp stuff/q' \
27999 < Makefile.c > junk1.c
28000 sed -e '1,/start of cpp stuff/d'\
28001 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
28002 < Makefile.c > junk.c
28003 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
28004 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
28005 cat junk1.c junk2.c > Makefile.new
28006 rm -f junk.c junk1.c junk2.c
28007 chmod 444 Makefile.new
28008 mv -f Makefile.new Makefile
28009 )
28010
28011 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
28012 echo creating src/.gdbinit
28013 echo source $srcdir/src/.gdbinit > src/.gdbinit
28014 fi
28015
28016 ;;
28017
28018 esac
28019 done # for ac_tag
28020
28021
28022 { (exit 0); exit 0; }
28023 _ACEOF
28024 chmod +x $CONFIG_STATUS
28025 ac_clean_files=$ac_clean_files_save
28026
28027 test $ac_write_fail = 0 ||
28028 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
28029 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
28030 { (exit 1); exit 1; }; }
28031
28032
28033 # configure is writing to config.log, and then calls config.status.
28034 # config.status does its own redirection, appending to config.log.
28035 # Unfortunately, on DOS this fails, as config.log is still kept open
28036 # by configure, so config.status won't be able to write to it; its
28037 # output is simply discarded. So we exec the FD to /dev/null,
28038 # effectively closing config.log, so it can be properly (re)opened and
28039 # appended to by config.status. When coming back to configure, we
28040 # need to make the FD available again.
28041 if test "$no_create" != yes; then
28042 ac_cs_success=:
28043 ac_config_status_args=
28044 test "$silent" = yes &&
28045 ac_config_status_args="$ac_config_status_args --quiet"
28046 exec 5>/dev/null
28047 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28048 exec 5>>config.log
28049 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28050 # would make configure fail if this is the last instruction.
28051 $ac_cs_success || { (exit 1); exit 1; }
28052 fi
28053 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28054 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
28055 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
28056 fi
28057
28058