]> code.delx.au - gnu-emacs/blob - configure
Remove unused output variable LIB_SRC_EXTRA_INSTALLABLES.
[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_OBJ
721 NS_SUPPORT
722 LIB_STANDARD
723 HAVE_XSERVER
724 RSVG_CFLAGS
725 RSVG_LIBS
726 GTK_CFLAGS
727 GTK_LIBS
728 GTK_OBJ
729 DBUS_CFLAGS
730 DBUS_LIBS
731 DBUS_OBJ
732 GCONF_CFLAGS
733 GCONF_LIBS
734 LIBSELINUX_LIBS
735 LIBXTR6
736 LIBXMU
737 FONTCONFIG_CFLAGS
738 FONTCONFIG_LIBS
739 XFT_CFLAGS
740 XFT_LIBS
741 LIBOTF_CFLAGS
742 LIBOTF_LIBS
743 M17N_FLT_CFLAGS
744 M17N_FLT_LIBS
745 FONT_OBJ
746 FREETYPE_CFLAGS
747 FREETYPE_LIBS
748 LIBXPM
749 LIBJPEG
750 LIBPNG
751 LIBTIFF
752 LIBGIF
753 LIBGPM
754 GPM_MOUSE_SUPPORT
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_MAKEFILES
800 GNUSTEP_SYSTEM_HEADERS
801 GNUSTEP_SYSTEM_LIBRARIES
802 GNU_OBJC_CFLAGS
803 LIB_SRC_EXTRA_INSTALLABLES
804 OTHER_FILES
805 XMENU_OBJ
806 XOBJ
807 WIDGET_OBJ
808 TOOLKIT_LIBW
809 LIBXT_OTHER
810 OLDXMENU
811 LIBXMENU
812 LIBX_OTHER
813 CYGWIN_OBJ
814 PRE_ALLOC_OBJ
815 POST_ALLOC_OBJ
816 LD_SWITCH_SYSTEM_TEMACS
817 LD_SWITCH_SYSTEM_EXTRA
818 LTLIBOBJS'
819 ac_subst_files=''
820 ac_user_opts='
821 enable_option_checking
822 with_pop
823 with_kerberos
824 with_kerberos5
825 with_hesiod
826 with_mmdf
827 with_mail_unlink
828 with_mailhost
829 with_sound
830 with_sync_input
831 with_x_toolkit
832 with_xpm
833 with_jpeg
834 with_tiff
835 with_gif
836 with_png
837 with_rsvg
838 with_xft
839 with_libotf
840 with_m17n_flt
841 with_toolkit_scroll_bars
842 with_xaw3d
843 with_xim
844 with_ns
845 with_gpm
846 with_dbus
847 with_gconf
848 with_selinux
849 with_makeinfo
850 with_gtk
851 with_gcc
852 with_pkg_config_prog
853 with_crt_dir
854 with_gnustep_conf
855 enable_ns_self_contained
856 enable_asserts
857 enable_maintainer_mode
858 enable_locallisppath
859 enable_checking
860 enable_profiling
861 enable_autodepend
862 enable_largefile
863 with_x
864 '
865 ac_precious_vars='build_alias
866 host_alias
867 target_alias
868 CC
869 CFLAGS
870 LDFLAGS
871 LIBS
872 CPPFLAGS
873 CPP
874 XMKMF'
875
876
877 # Initialize some variables set by options.
878 ac_init_help=
879 ac_init_version=false
880 ac_unrecognized_opts=
881 ac_unrecognized_sep=
882 # The variables have the same names as the options, with
883 # dashes changed to underlines.
884 cache_file=/dev/null
885 exec_prefix=NONE
886 no_create=
887 no_recursion=
888 prefix=NONE
889 program_prefix=NONE
890 program_suffix=NONE
891 program_transform_name=s,x,x,
892 silent=
893 site=
894 srcdir=
895 verbose=
896 x_includes=NONE
897 x_libraries=NONE
898
899 # Installation directory options.
900 # These are left unexpanded so users can "make install exec_prefix=/foo"
901 # and all the variables that are supposed to be based on exec_prefix
902 # by default will actually change.
903 # Use braces instead of parens because sh, perl, etc. also accept them.
904 # (The list follows the same order as the GNU Coding Standards.)
905 bindir='${exec_prefix}/bin'
906 sbindir='${exec_prefix}/sbin'
907 libexecdir='${exec_prefix}/libexec'
908 datarootdir='${prefix}/share'
909 datadir='${datarootdir}'
910 sysconfdir='${prefix}/etc'
911 sharedstatedir='${prefix}/com'
912 localstatedir='${prefix}/var'
913 includedir='${prefix}/include'
914 oldincludedir='/usr/include'
915 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
916 infodir='${datarootdir}/info'
917 htmldir='${docdir}'
918 dvidir='${docdir}'
919 pdfdir='${docdir}'
920 psdir='${docdir}'
921 libdir='${exec_prefix}/lib'
922 localedir='${datarootdir}/locale'
923 mandir='${datarootdir}/man'
924
925 ac_prev=
926 ac_dashdash=
927 for ac_option
928 do
929 # If the previous option needs an argument, assign it.
930 if test -n "$ac_prev"; then
931 eval $ac_prev=\$ac_option
932 ac_prev=
933 continue
934 fi
935
936 case $ac_option in
937 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
938 *) ac_optarg=yes ;;
939 esac
940
941 # Accept the important Cygnus configure options, so we can diagnose typos.
942
943 case $ac_dashdash$ac_option in
944 --)
945 ac_dashdash=yes ;;
946
947 -bindir | --bindir | --bindi | --bind | --bin | --bi)
948 ac_prev=bindir ;;
949 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
950 bindir=$ac_optarg ;;
951
952 -build | --build | --buil | --bui | --bu)
953 ac_prev=build_alias ;;
954 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
955 build_alias=$ac_optarg ;;
956
957 -cache-file | --cache-file | --cache-fil | --cache-fi \
958 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
959 ac_prev=cache_file ;;
960 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
961 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
962 cache_file=$ac_optarg ;;
963
964 --config-cache | -C)
965 cache_file=config.cache ;;
966
967 -datadir | --datadir | --datadi | --datad)
968 ac_prev=datadir ;;
969 -datadir=* | --datadir=* | --datadi=* | --datad=*)
970 datadir=$ac_optarg ;;
971
972 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
973 | --dataroo | --dataro | --datar)
974 ac_prev=datarootdir ;;
975 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
976 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
977 datarootdir=$ac_optarg ;;
978
979 -disable-* | --disable-*)
980 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
981 # Reject names that are not valid shell variable names.
982 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
983 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
984 { (exit 1); exit 1; }; }
985 ac_useropt_orig=$ac_useropt
986 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
987 case $ac_user_opts in
988 *"
989 "enable_$ac_useropt"
990 "*) ;;
991 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
992 ac_unrecognized_sep=', ';;
993 esac
994 eval enable_$ac_useropt=no ;;
995
996 -docdir | --docdir | --docdi | --doc | --do)
997 ac_prev=docdir ;;
998 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
999 docdir=$ac_optarg ;;
1000
1001 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1002 ac_prev=dvidir ;;
1003 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1004 dvidir=$ac_optarg ;;
1005
1006 -enable-* | --enable-*)
1007 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1008 # Reject names that are not valid shell variable names.
1009 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1010 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1011 { (exit 1); exit 1; }; }
1012 ac_useropt_orig=$ac_useropt
1013 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1014 case $ac_user_opts in
1015 *"
1016 "enable_$ac_useropt"
1017 "*) ;;
1018 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1019 ac_unrecognized_sep=', ';;
1020 esac
1021 eval enable_$ac_useropt=\$ac_optarg ;;
1022
1023 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1024 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1025 | --exec | --exe | --ex)
1026 ac_prev=exec_prefix ;;
1027 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1028 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1029 | --exec=* | --exe=* | --ex=*)
1030 exec_prefix=$ac_optarg ;;
1031
1032 -gas | --gas | --ga | --g)
1033 # Obsolete; use --with-gas.
1034 with_gas=yes ;;
1035
1036 -help | --help | --hel | --he | -h)
1037 ac_init_help=long ;;
1038 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1039 ac_init_help=recursive ;;
1040 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1041 ac_init_help=short ;;
1042
1043 -host | --host | --hos | --ho)
1044 ac_prev=host_alias ;;
1045 -host=* | --host=* | --hos=* | --ho=*)
1046 host_alias=$ac_optarg ;;
1047
1048 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1049 ac_prev=htmldir ;;
1050 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1051 | --ht=*)
1052 htmldir=$ac_optarg ;;
1053
1054 -includedir | --includedir | --includedi | --included | --include \
1055 | --includ | --inclu | --incl | --inc)
1056 ac_prev=includedir ;;
1057 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1058 | --includ=* | --inclu=* | --incl=* | --inc=*)
1059 includedir=$ac_optarg ;;
1060
1061 -infodir | --infodir | --infodi | --infod | --info | --inf)
1062 ac_prev=infodir ;;
1063 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1064 infodir=$ac_optarg ;;
1065
1066 -libdir | --libdir | --libdi | --libd)
1067 ac_prev=libdir ;;
1068 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1069 libdir=$ac_optarg ;;
1070
1071 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1072 | --libexe | --libex | --libe)
1073 ac_prev=libexecdir ;;
1074 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1075 | --libexe=* | --libex=* | --libe=*)
1076 libexecdir=$ac_optarg ;;
1077
1078 -localedir | --localedir | --localedi | --localed | --locale)
1079 ac_prev=localedir ;;
1080 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1081 localedir=$ac_optarg ;;
1082
1083 -localstatedir | --localstatedir | --localstatedi | --localstated \
1084 | --localstate | --localstat | --localsta | --localst | --locals)
1085 ac_prev=localstatedir ;;
1086 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1087 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1088 localstatedir=$ac_optarg ;;
1089
1090 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1091 ac_prev=mandir ;;
1092 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1093 mandir=$ac_optarg ;;
1094
1095 -nfp | --nfp | --nf)
1096 # Obsolete; use --without-fp.
1097 with_fp=no ;;
1098
1099 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1100 | --no-cr | --no-c | -n)
1101 no_create=yes ;;
1102
1103 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1104 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1105 no_recursion=yes ;;
1106
1107 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1108 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1109 | --oldin | --oldi | --old | --ol | --o)
1110 ac_prev=oldincludedir ;;
1111 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1112 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1113 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1114 oldincludedir=$ac_optarg ;;
1115
1116 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1117 ac_prev=prefix ;;
1118 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1119 prefix=$ac_optarg ;;
1120
1121 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1122 | --program-pre | --program-pr | --program-p)
1123 ac_prev=program_prefix ;;
1124 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1125 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1126 program_prefix=$ac_optarg ;;
1127
1128 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1129 | --program-suf | --program-su | --program-s)
1130 ac_prev=program_suffix ;;
1131 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1132 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1133 program_suffix=$ac_optarg ;;
1134
1135 -program-transform-name | --program-transform-name \
1136 | --program-transform-nam | --program-transform-na \
1137 | --program-transform-n | --program-transform- \
1138 | --program-transform | --program-transfor \
1139 | --program-transfo | --program-transf \
1140 | --program-trans | --program-tran \
1141 | --progr-tra | --program-tr | --program-t)
1142 ac_prev=program_transform_name ;;
1143 -program-transform-name=* | --program-transform-name=* \
1144 | --program-transform-nam=* | --program-transform-na=* \
1145 | --program-transform-n=* | --program-transform-=* \
1146 | --program-transform=* | --program-transfor=* \
1147 | --program-transfo=* | --program-transf=* \
1148 | --program-trans=* | --program-tran=* \
1149 | --progr-tra=* | --program-tr=* | --program-t=*)
1150 program_transform_name=$ac_optarg ;;
1151
1152 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1153 ac_prev=pdfdir ;;
1154 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1155 pdfdir=$ac_optarg ;;
1156
1157 -psdir | --psdir | --psdi | --psd | --ps)
1158 ac_prev=psdir ;;
1159 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1160 psdir=$ac_optarg ;;
1161
1162 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1163 | -silent | --silent | --silen | --sile | --sil)
1164 silent=yes ;;
1165
1166 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1167 ac_prev=sbindir ;;
1168 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1169 | --sbi=* | --sb=*)
1170 sbindir=$ac_optarg ;;
1171
1172 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1173 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1174 | --sharedst | --shareds | --shared | --share | --shar \
1175 | --sha | --sh)
1176 ac_prev=sharedstatedir ;;
1177 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1178 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1179 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1180 | --sha=* | --sh=*)
1181 sharedstatedir=$ac_optarg ;;
1182
1183 -site | --site | --sit)
1184 ac_prev=site ;;
1185 -site=* | --site=* | --sit=*)
1186 site=$ac_optarg ;;
1187
1188 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1189 ac_prev=srcdir ;;
1190 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1191 srcdir=$ac_optarg ;;
1192
1193 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1194 | --syscon | --sysco | --sysc | --sys | --sy)
1195 ac_prev=sysconfdir ;;
1196 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1197 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1198 sysconfdir=$ac_optarg ;;
1199
1200 -target | --target | --targe | --targ | --tar | --ta | --t)
1201 ac_prev=target_alias ;;
1202 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1203 target_alias=$ac_optarg ;;
1204
1205 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1206 verbose=yes ;;
1207
1208 -version | --version | --versio | --versi | --vers | -V)
1209 ac_init_version=: ;;
1210
1211 -with-* | --with-*)
1212 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1215 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1216 { (exit 1); exit 1; }; }
1217 ac_useropt_orig=$ac_useropt
1218 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219 case $ac_user_opts in
1220 *"
1221 "with_$ac_useropt"
1222 "*) ;;
1223 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1224 ac_unrecognized_sep=', ';;
1225 esac
1226 eval with_$ac_useropt=\$ac_optarg ;;
1227
1228 -without-* | --without-*)
1229 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1230 # Reject names that are not valid shell variable names.
1231 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1233 { (exit 1); exit 1; }; }
1234 ac_useropt_orig=$ac_useropt
1235 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1236 case $ac_user_opts in
1237 *"
1238 "with_$ac_useropt"
1239 "*) ;;
1240 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1241 ac_unrecognized_sep=', ';;
1242 esac
1243 eval with_$ac_useropt=no ;;
1244
1245 --x)
1246 # Obsolete; use --with-x.
1247 with_x=yes ;;
1248
1249 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1250 | --x-incl | --x-inc | --x-in | --x-i)
1251 ac_prev=x_includes ;;
1252 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1253 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1254 x_includes=$ac_optarg ;;
1255
1256 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1257 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1258 ac_prev=x_libraries ;;
1259 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1260 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1261 x_libraries=$ac_optarg ;;
1262
1263 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1264 Try \`$0 --help' for more information." >&2
1265 { (exit 1); exit 1; }; }
1266 ;;
1267
1268 *=*)
1269 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1270 # Reject names that are not valid shell variable names.
1271 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1272 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1273 { (exit 1); exit 1; }; }
1274 eval $ac_envvar=\$ac_optarg
1275 export $ac_envvar ;;
1276
1277 *)
1278 # FIXME: should be removed in autoconf 3.0.
1279 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1280 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1281 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1282 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1283 ;;
1284
1285 esac
1286 done
1287
1288 if test -n "$ac_prev"; then
1289 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1290 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1291 { (exit 1); exit 1; }; }
1292 fi
1293
1294 if test -n "$ac_unrecognized_opts"; then
1295 case $enable_option_checking in
1296 no) ;;
1297 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1298 { (exit 1); exit 1; }; } ;;
1299 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1300 esac
1301 fi
1302
1303 # Check all directory arguments for consistency.
1304 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1305 datadir sysconfdir sharedstatedir localstatedir includedir \
1306 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1307 libdir localedir mandir
1308 do
1309 eval ac_val=\$$ac_var
1310 # Remove trailing slashes.
1311 case $ac_val in
1312 */ )
1313 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1314 eval $ac_var=\$ac_val;;
1315 esac
1316 # Be sure to have absolute directory names.
1317 case $ac_val in
1318 [\\/$]* | ?:[\\/]* ) continue;;
1319 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1320 esac
1321 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1322 { (exit 1); exit 1; }; }
1323 done
1324
1325 # There might be people who depend on the old broken behavior: `$host'
1326 # used to hold the argument of --host etc.
1327 # FIXME: To remove some day.
1328 build=$build_alias
1329 host=$host_alias
1330 target=$target_alias
1331
1332 # FIXME: To remove some day.
1333 if test "x$host_alias" != x; then
1334 if test "x$build_alias" = x; then
1335 cross_compiling=maybe
1336 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1337 If a cross compiler is detected then cross compile mode will be used." >&2
1338 elif test "x$build_alias" != "x$host_alias"; then
1339 cross_compiling=yes
1340 fi
1341 fi
1342
1343 ac_tool_prefix=
1344 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1345
1346 test "$silent" = yes && exec 6>/dev/null
1347
1348
1349 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1350 ac_ls_di=`ls -di .` &&
1351 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1352 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1353 { (exit 1); exit 1; }; }
1354 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1355 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1356 { (exit 1); exit 1; }; }
1357
1358
1359 # Find the source files, if location was not specified.
1360 if test -z "$srcdir"; then
1361 ac_srcdir_defaulted=yes
1362 # Try the directory containing this script, then the parent directory.
1363 ac_confdir=`$as_dirname -- "$as_myself" ||
1364 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1365 X"$as_myself" : 'X\(//\)[^/]' \| \
1366 X"$as_myself" : 'X\(//\)$' \| \
1367 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1368 $as_echo X"$as_myself" |
1369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1370 s//\1/
1371 q
1372 }
1373 /^X\(\/\/\)[^/].*/{
1374 s//\1/
1375 q
1376 }
1377 /^X\(\/\/\)$/{
1378 s//\1/
1379 q
1380 }
1381 /^X\(\/\).*/{
1382 s//\1/
1383 q
1384 }
1385 s/.*/./; q'`
1386 srcdir=$ac_confdir
1387 if test ! -r "$srcdir/$ac_unique_file"; then
1388 srcdir=..
1389 fi
1390 else
1391 ac_srcdir_defaulted=no
1392 fi
1393 if test ! -r "$srcdir/$ac_unique_file"; then
1394 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1395 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1396 { (exit 1); exit 1; }; }
1397 fi
1398 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1399 ac_abs_confdir=`(
1400 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1401 { (exit 1); exit 1; }; }
1402 pwd)`
1403 # When building in place, set srcdir=.
1404 if test "$ac_abs_confdir" = "$ac_pwd"; then
1405 srcdir=.
1406 fi
1407 # Remove unnecessary trailing slashes from srcdir.
1408 # Double slashes in file names in object file debugging info
1409 # mess up M-x gdb in Emacs.
1410 case $srcdir in
1411 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1412 esac
1413 for ac_var in $ac_precious_vars; do
1414 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1415 eval ac_env_${ac_var}_value=\$${ac_var}
1416 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1417 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1418 done
1419
1420 #
1421 # Report the --help message.
1422 #
1423 if test "$ac_init_help" = "long"; then
1424 # Omit some internal or obsolete options to make the list less imposing.
1425 # This message is too long to be a string in the A/UX 3.1 sh.
1426 cat <<_ACEOF
1427 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1428
1429 Usage: $0 [OPTION]... [VAR=VALUE]...
1430
1431 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1432 VAR=VALUE. See below for descriptions of some of the useful variables.
1433
1434 Defaults for the options are specified in brackets.
1435
1436 Configuration:
1437 -h, --help display this help and exit
1438 --help=short display options specific to this package
1439 --help=recursive display the short help of all the included packages
1440 -V, --version display version information and exit
1441 -q, --quiet, --silent do not print \`checking...' messages
1442 --cache-file=FILE cache test results in FILE [disabled]
1443 -C, --config-cache alias for \`--cache-file=config.cache'
1444 -n, --no-create do not create output files
1445 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1446
1447 Installation directories:
1448 --prefix=PREFIX install architecture-independent files in PREFIX
1449 [$ac_default_prefix]
1450 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1451 [PREFIX]
1452
1453 By default, \`make install' will install all the files in
1454 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1455 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1456 for instance \`--prefix=\$HOME'.
1457
1458 For better control, use the options below.
1459
1460 Fine tuning of the installation directories:
1461 --bindir=DIR user executables [EPREFIX/bin]
1462 --sbindir=DIR system admin executables [EPREFIX/sbin]
1463 --libexecdir=DIR program executables [EPREFIX/libexec]
1464 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1465 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1466 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1467 --libdir=DIR object code libraries [EPREFIX/lib]
1468 --includedir=DIR C header files [PREFIX/include]
1469 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1470 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1471 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1472 --infodir=DIR info documentation [DATAROOTDIR/info]
1473 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1474 --mandir=DIR man documentation [DATAROOTDIR/man]
1475 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1476 --htmldir=DIR html documentation [DOCDIR]
1477 --dvidir=DIR dvi documentation [DOCDIR]
1478 --pdfdir=DIR pdf documentation [DOCDIR]
1479 --psdir=DIR ps documentation [DOCDIR]
1480 _ACEOF
1481
1482 cat <<\_ACEOF
1483
1484 Program names:
1485 --program-prefix=PREFIX prepend PREFIX to installed program names
1486 --program-suffix=SUFFIX append SUFFIX to installed program names
1487 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1488
1489 X features:
1490 --x-includes=DIR X include files are in DIR
1491 --x-libraries=DIR X library files are in DIR
1492
1493 System types:
1494 --build=BUILD configure for building on BUILD [guessed]
1495 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1496 _ACEOF
1497 fi
1498
1499 if test -n "$ac_init_help"; then
1500 case $ac_init_help in
1501 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1502 esac
1503 cat <<\_ACEOF
1504
1505 Optional Features:
1506 --disable-option-checking ignore unrecognized --enable/--with options
1507 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1508 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1509 --disable-ns-self-contained
1510 disable self contained build under NeXTstep
1511 --enable-asserts compile code with asserts enabled
1512 --enable-maintainer-mode
1513 enable make rules and dependencies not useful (and
1514 sometimes confusing) to the casual installer
1515 --enable-locallisppath=PATH
1516 directories Emacs should search for lisp files
1517 specific to this site
1518 --enable-checking[=LIST]
1519 enable expensive run-time checks. With LIST, enable
1520 only specific categories of checks. Categories are:
1521 all,yes,no. Flags are: stringbytes, stringoverrun,
1522 stringfreelist, xmallocoverrun, conslist
1523 --enable-profiling build emacs with profiling support. This might not
1524 work on all platforms
1525 --enable-autodepend automatically generate dependencies to .h-files.
1526 Requires GNU Make and Gcc. Enabled if GNU Make and
1527 Gcc is found
1528 --disable-largefile omit support for large files
1529
1530 Optional Packages:
1531 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1532 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1533 --without-pop don't support POP mail retrieval with movemail
1534 --with-kerberos support Kerberos-authenticated POP
1535 --with-kerberos5 support Kerberos version 5 authenticated POP
1536 --with-hesiod support Hesiod to get the POP server host
1537 --with-mmdf support MMDF mailboxes
1538 --with-mail-unlink unlink, rather than empty, mail spool after reading
1539 --with-mailhost=HOSTNAME
1540 string giving default POP mail host
1541 --without-sound don't compile with sound support
1542 --without-sync-input process async input synchronously
1543 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, lucid or
1544 athena, motif, no)
1545 --without-xpm don't compile with XPM image support
1546 --without-jpeg don't compile with JPEG image support
1547 --without-tiff don't compile with TIFF image support
1548 --without-gif don't compile with GIF image support
1549 --without-png don't compile with PNG image support
1550 --without-rsvg don't compile with SVG image support
1551 --without-xft don't use XFT for anti aliased fonts
1552 --without-libotf don't use libotf for OpenType font support
1553 --without-m17n-flt don't use m17n-flt for text shaping
1554 --without-toolkit-scroll-bars
1555 don't use Motif or Xaw3d scroll bars
1556 --without-xaw3d don't use Xaw3d
1557 --without-xim don't use X11 XIM
1558 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1559 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1560 console
1561 --without-dbus don't compile with D-Bus support
1562 --without-gconf don't compile with GConf support
1563 --without-selinux don't compile with SELinux support
1564 --without-makeinfo don't require makeinfo for building manuals
1565
1566 --with-pkg-config-prog=PATH
1567 path to pkg-config for finding GTK and librsvg
1568 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1569 /usr/lib, or /usr/lib64 on some platforms.
1570 --with-gnustep-conf=PATH
1571 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1572 or /etc/GNUstep/GNUstep.conf
1573 --with-x use the X Window System
1574
1575 Some influential environment variables:
1576 CC C compiler command
1577 CFLAGS C compiler flags
1578 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1579 nonstandard directory <lib dir>
1580 LIBS libraries to pass to the linker, e.g. -l<library>
1581 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1582 you have headers in a nonstandard directory <include dir>
1583 CPP C preprocessor
1584 XMKMF Path to xmkmf, Makefile generator for X Window System
1585
1586 Use these variables to override the choices made by `configure' or to help
1587 it to find libraries and programs with nonstandard names/locations.
1588
1589 _ACEOF
1590 ac_status=$?
1591 fi
1592
1593 if test "$ac_init_help" = "recursive"; then
1594 # If there are subdirs, report their specific --help.
1595 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1596 test -d "$ac_dir" ||
1597 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1598 continue
1599 ac_builddir=.
1600
1601 case "$ac_dir" in
1602 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1603 *)
1604 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1605 # A ".." for each directory in $ac_dir_suffix.
1606 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1607 case $ac_top_builddir_sub in
1608 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1609 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1610 esac ;;
1611 esac
1612 ac_abs_top_builddir=$ac_pwd
1613 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1614 # for backward compatibility:
1615 ac_top_builddir=$ac_top_build_prefix
1616
1617 case $srcdir in
1618 .) # We are building in place.
1619 ac_srcdir=.
1620 ac_top_srcdir=$ac_top_builddir_sub
1621 ac_abs_top_srcdir=$ac_pwd ;;
1622 [\\/]* | ?:[\\/]* ) # Absolute name.
1623 ac_srcdir=$srcdir$ac_dir_suffix;
1624 ac_top_srcdir=$srcdir
1625 ac_abs_top_srcdir=$srcdir ;;
1626 *) # Relative name.
1627 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1628 ac_top_srcdir=$ac_top_build_prefix$srcdir
1629 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1630 esac
1631 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1632
1633 cd "$ac_dir" || { ac_status=$?; continue; }
1634 # Check for guested configure.
1635 if test -f "$ac_srcdir/configure.gnu"; then
1636 echo &&
1637 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1638 elif test -f "$ac_srcdir/configure"; then
1639 echo &&
1640 $SHELL "$ac_srcdir/configure" --help=recursive
1641 else
1642 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1643 fi || ac_status=$?
1644 cd "$ac_pwd" || { ac_status=$?; break; }
1645 done
1646 fi
1647
1648 test -n "$ac_init_help" && exit $ac_status
1649 if $ac_init_version; then
1650 cat <<\_ACEOF
1651 emacs configure 24.0.50
1652 generated by GNU Autoconf 2.62
1653
1654 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1655 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1656 This configure script is free software; the Free Software Foundation
1657 gives unlimited permission to copy, distribute and modify it.
1658 _ACEOF
1659 exit
1660 fi
1661 cat >config.log <<_ACEOF
1662 This file contains any messages produced by compilers while
1663 running configure, to aid debugging if configure makes a mistake.
1664
1665 It was created by emacs $as_me 24.0.50, which was
1666 generated by GNU Autoconf 2.62. Invocation command line was
1667
1668 $ $0 $@
1669
1670 _ACEOF
1671 exec 5>>config.log
1672 {
1673 cat <<_ASUNAME
1674 ## --------- ##
1675 ## Platform. ##
1676 ## --------- ##
1677
1678 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1679 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1680 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1681 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1682 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1683
1684 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1685 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1686
1687 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1688 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1689 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1690 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1691 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1692 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1693 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1694
1695 _ASUNAME
1696
1697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1698 for as_dir in $PATH
1699 do
1700 IFS=$as_save_IFS
1701 test -z "$as_dir" && as_dir=.
1702 $as_echo "PATH: $as_dir"
1703 done
1704 IFS=$as_save_IFS
1705
1706 } >&5
1707
1708 cat >&5 <<_ACEOF
1709
1710
1711 ## ----------- ##
1712 ## Core tests. ##
1713 ## ----------- ##
1714
1715 _ACEOF
1716
1717
1718 # Keep a trace of the command line.
1719 # Strip out --no-create and --no-recursion so they do not pile up.
1720 # Strip out --silent because we don't want to record it for future runs.
1721 # Also quote any args containing shell meta-characters.
1722 # Make two passes to allow for proper duplicate-argument suppression.
1723 ac_configure_args=
1724 ac_configure_args0=
1725 ac_configure_args1=
1726 ac_must_keep_next=false
1727 for ac_pass in 1 2
1728 do
1729 for ac_arg
1730 do
1731 case $ac_arg in
1732 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1733 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1734 | -silent | --silent | --silen | --sile | --sil)
1735 continue ;;
1736 *\'*)
1737 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1738 esac
1739 case $ac_pass in
1740 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1741 2)
1742 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1743 if test $ac_must_keep_next = true; then
1744 ac_must_keep_next=false # Got value, back to normal.
1745 else
1746 case $ac_arg in
1747 *=* | --config-cache | -C | -disable-* | --disable-* \
1748 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1749 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1750 | -with-* | --with-* | -without-* | --without-* | --x)
1751 case "$ac_configure_args0 " in
1752 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1753 esac
1754 ;;
1755 -* ) ac_must_keep_next=true ;;
1756 esac
1757 fi
1758 ac_configure_args="$ac_configure_args '$ac_arg'"
1759 ;;
1760 esac
1761 done
1762 done
1763 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1764 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1765
1766 # When interrupted or exit'd, cleanup temporary files, and complete
1767 # config.log. We remove comments because anyway the quotes in there
1768 # would cause problems or look ugly.
1769 # WARNING: Use '\'' to represent an apostrophe within the trap.
1770 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1771 trap 'exit_status=$?
1772 # Save into config.log some information that might help in debugging.
1773 {
1774 echo
1775
1776 cat <<\_ASBOX
1777 ## ---------------- ##
1778 ## Cache variables. ##
1779 ## ---------------- ##
1780 _ASBOX
1781 echo
1782 # The following way of writing the cache mishandles newlines in values,
1783 (
1784 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1785 eval ac_val=\$$ac_var
1786 case $ac_val in #(
1787 *${as_nl}*)
1788 case $ac_var in #(
1789 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1790 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1791 esac
1792 case $ac_var in #(
1793 _ | IFS | as_nl) ;; #(
1794 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1795 *) $as_unset $ac_var ;;
1796 esac ;;
1797 esac
1798 done
1799 (set) 2>&1 |
1800 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1801 *${as_nl}ac_space=\ *)
1802 sed -n \
1803 "s/'\''/'\''\\\\'\'''\''/g;
1804 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1805 ;; #(
1806 *)
1807 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1808 ;;
1809 esac |
1810 sort
1811 )
1812 echo
1813
1814 cat <<\_ASBOX
1815 ## ----------------- ##
1816 ## Output variables. ##
1817 ## ----------------- ##
1818 _ASBOX
1819 echo
1820 for ac_var in $ac_subst_vars
1821 do
1822 eval ac_val=\$$ac_var
1823 case $ac_val in
1824 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1825 esac
1826 $as_echo "$ac_var='\''$ac_val'\''"
1827 done | sort
1828 echo
1829
1830 if test -n "$ac_subst_files"; then
1831 cat <<\_ASBOX
1832 ## ------------------- ##
1833 ## File substitutions. ##
1834 ## ------------------- ##
1835 _ASBOX
1836 echo
1837 for ac_var in $ac_subst_files
1838 do
1839 eval ac_val=\$$ac_var
1840 case $ac_val in
1841 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1842 esac
1843 $as_echo "$ac_var='\''$ac_val'\''"
1844 done | sort
1845 echo
1846 fi
1847
1848 if test -s confdefs.h; then
1849 cat <<\_ASBOX
1850 ## ----------- ##
1851 ## confdefs.h. ##
1852 ## ----------- ##
1853 _ASBOX
1854 echo
1855 cat confdefs.h
1856 echo
1857 fi
1858 test "$ac_signal" != 0 &&
1859 $as_echo "$as_me: caught signal $ac_signal"
1860 $as_echo "$as_me: exit $exit_status"
1861 } >&5
1862 rm -f core *.core core.conftest.* &&
1863 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1864 exit $exit_status
1865 ' 0
1866 for ac_signal in 1 2 13 15; do
1867 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1868 done
1869 ac_signal=0
1870
1871 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1872 rm -f -r conftest* confdefs.h
1873
1874 # Predefined preprocessor variables.
1875
1876 cat >>confdefs.h <<_ACEOF
1877 #define PACKAGE_NAME "$PACKAGE_NAME"
1878 _ACEOF
1879
1880
1881 cat >>confdefs.h <<_ACEOF
1882 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1883 _ACEOF
1884
1885
1886 cat >>confdefs.h <<_ACEOF
1887 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1888 _ACEOF
1889
1890
1891 cat >>confdefs.h <<_ACEOF
1892 #define PACKAGE_STRING "$PACKAGE_STRING"
1893 _ACEOF
1894
1895
1896 cat >>confdefs.h <<_ACEOF
1897 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1898 _ACEOF
1899
1900
1901 # Let the site file select an alternate cache file if it wants to.
1902 # Prefer an explicitly selected file to automatically selected ones.
1903 ac_site_file1=NONE
1904 ac_site_file2=NONE
1905 if test -n "$CONFIG_SITE"; then
1906 ac_site_file1=$CONFIG_SITE
1907 elif test "x$prefix" != xNONE; then
1908 ac_site_file1=$prefix/share/config.site
1909 ac_site_file2=$prefix/etc/config.site
1910 else
1911 ac_site_file1=$ac_default_prefix/share/config.site
1912 ac_site_file2=$ac_default_prefix/etc/config.site
1913 fi
1914 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1915 do
1916 test "x$ac_site_file" = xNONE && continue
1917 if test -r "$ac_site_file"; then
1918 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1919 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1920 sed 's/^/| /' "$ac_site_file" >&5
1921 . "$ac_site_file"
1922 fi
1923 done
1924
1925 if test -r "$cache_file"; then
1926 # Some versions of bash will fail to source /dev/null (special
1927 # files actually), so we avoid doing that.
1928 if test -f "$cache_file"; then
1929 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1930 $as_echo "$as_me: loading cache $cache_file" >&6;}
1931 case $cache_file in
1932 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1933 *) . "./$cache_file";;
1934 esac
1935 fi
1936 else
1937 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1938 $as_echo "$as_me: creating cache $cache_file" >&6;}
1939 >$cache_file
1940 fi
1941
1942 ac_header_list="$ac_header_list sys/time.h"
1943 ac_header_list="$ac_header_list unistd.h"
1944 ac_func_list="$ac_func_list alarm"
1945 # Check that the precious variables saved in the cache have kept the same
1946 # value.
1947 ac_cache_corrupted=false
1948 for ac_var in $ac_precious_vars; do
1949 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1950 eval ac_new_set=\$ac_env_${ac_var}_set
1951 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1952 eval ac_new_val=\$ac_env_${ac_var}_value
1953 case $ac_old_set,$ac_new_set in
1954 set,)
1955 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1956 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1957 ac_cache_corrupted=: ;;
1958 ,set)
1959 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1960 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1961 ac_cache_corrupted=: ;;
1962 ,);;
1963 *)
1964 if test "x$ac_old_val" != "x$ac_new_val"; then
1965 # differences in whitespace do not lead to failure.
1966 ac_old_val_w=`echo x $ac_old_val`
1967 ac_new_val_w=`echo x $ac_new_val`
1968 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1969 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1970 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1971 ac_cache_corrupted=:
1972 else
1973 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1974 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1975 eval $ac_var=\$ac_old_val
1976 fi
1977 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1978 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1979 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1980 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1981 fi;;
1982 esac
1983 # Pass precious variables to config.status.
1984 if test "$ac_new_set" = set; then
1985 case $ac_new_val in
1986 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1987 *) ac_arg=$ac_var=$ac_new_val ;;
1988 esac
1989 case " $ac_configure_args " in
1990 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1991 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1992 esac
1993 fi
1994 done
1995 if $ac_cache_corrupted; then
1996 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1997 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1998 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1999 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2000 { (exit 1); exit 1; }; }
2001 fi
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027 ac_ext=c
2028 ac_cpp='$CPP $CPPFLAGS'
2029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2032
2033
2034 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2035
2036
2037
2038 test "$program_prefix" != NONE &&
2039 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2040 # Use a double $ so make ignores it.
2041 test "$program_suffix" != NONE &&
2042 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2043 # Double any \ or $.
2044 # By default was `s,x,x', remove it if useless.
2045 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2046 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2047
2048
2049 lispdir='${datadir}/emacs/${version}/lisp'
2050 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2051 '${datadir}/emacs/site-lisp'
2052 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2053 etcdir='${datadir}/emacs/${version}/etc'
2054 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2055 docdir='${datadir}/emacs/${version}/etc'
2056 gamedir='${localstatedir}/games/emacs'
2057
2058 gameuser=games
2059
2060
2061
2062
2063 # Check whether --with-pop was given.
2064 if test "${with_pop+set}" = set; then
2065 withval=$with_pop;
2066 else
2067 with_pop=yes
2068 fi
2069
2070 if test "$with_pop" = yes; then
2071 cat >>confdefs.h <<\_ACEOF
2072 #define MAIL_USE_POP 1
2073 _ACEOF
2074
2075 fi
2076
2077
2078
2079 # Check whether --with-kerberos was given.
2080 if test "${with_kerberos+set}" = set; then
2081 withval=$with_kerberos;
2082 else
2083 with_kerberos=no
2084 fi
2085
2086 if test "$with_kerberos" != no; then
2087 cat >>confdefs.h <<\_ACEOF
2088 #define KERBEROS 1
2089 _ACEOF
2090
2091 fi
2092
2093
2094
2095 # Check whether --with-kerberos5 was given.
2096 if test "${with_kerberos5+set}" = set; then
2097 withval=$with_kerberos5;
2098 else
2099 with_kerberos5=no
2100 fi
2101
2102 if test "${with_kerberos5}" != no; then
2103 if test "${with_kerberos}" = no; then
2104 with_kerberos=yes
2105 cat >>confdefs.h <<\_ACEOF
2106 #define KERBEROS 1
2107 _ACEOF
2108
2109 fi
2110
2111 cat >>confdefs.h <<\_ACEOF
2112 #define KERBEROS5 1
2113 _ACEOF
2114
2115 fi
2116
2117
2118 # Check whether --with-hesiod was given.
2119 if test "${with_hesiod+set}" = set; then
2120 withval=$with_hesiod;
2121 else
2122 with_hesiod=no
2123 fi
2124
2125 if test "$with_hesiod" != no; then
2126
2127 cat >>confdefs.h <<\_ACEOF
2128 #define HESIOD 1
2129 _ACEOF
2130
2131 fi
2132
2133
2134 # Check whether --with-mmdf was given.
2135 if test "${with_mmdf+set}" = set; then
2136 withval=$with_mmdf;
2137 else
2138 with_mmdf=no
2139 fi
2140
2141 if test "$with_mmdf" != no; then
2142
2143 cat >>confdefs.h <<\_ACEOF
2144 #define MAIL_USE_MMDF 1
2145 _ACEOF
2146
2147 fi
2148
2149
2150 # Check whether --with-mail-unlink was given.
2151 if test "${with_mail_unlink+set}" = set; then
2152 withval=$with_mail_unlink;
2153 else
2154 with_mail_unlink=no
2155 fi
2156
2157 if test "$with_mail_unlink" != no; then
2158
2159 cat >>confdefs.h <<\_ACEOF
2160 #define MAIL_UNLINK_SPOOL 1
2161 _ACEOF
2162
2163 fi
2164
2165
2166 # Check whether --with-mailhost was given.
2167 if test "${with_mailhost+set}" = set; then
2168 withval=$with_mailhost;
2169 cat >>confdefs.h <<_ACEOF
2170 #define MAILHOST "$withval"
2171 _ACEOF
2172
2173 fi
2174
2175
2176
2177 # Check whether --with-sound was given.
2178 if test "${with_sound+set}" = set; then
2179 withval=$with_sound;
2180 else
2181 with_sound=yes
2182 fi
2183
2184
2185
2186 # Check whether --with-sync-input was given.
2187 if test "${with_sync_input+set}" = set; then
2188 withval=$with_sync_input;
2189 else
2190 with_sync_input=yes
2191 fi
2192
2193 if test "$with_sync_input" = yes; then
2194
2195 cat >>confdefs.h <<\_ACEOF
2196 #define SYNC_INPUT 1
2197 _ACEOF
2198
2199 fi
2200
2201
2202 # Check whether --with-x-toolkit was given.
2203 if test "${with_x_toolkit+set}" = set; then
2204 withval=$with_x_toolkit; case "${withval}" in
2205 y | ye | yes ) val=gtk ;;
2206 n | no ) val=no ;;
2207 l | lu | luc | luci | lucid ) val=lucid ;;
2208 a | at | ath | athe | athen | athena ) val=athena ;;
2209 m | mo | mot | moti | motif ) val=motif ;;
2210 g | gt | gtk ) val=gtk ;;
2211 * )
2212 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2213 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2214 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2215 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2216 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2217 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2218 { (exit 1); exit 1; }; }
2219 ;;
2220 esac
2221 with_x_toolkit=$val
2222
2223 fi
2224
2225
2226
2227 # Check whether --with-xpm was given.
2228 if test "${with_xpm+set}" = set; then
2229 withval=$with_xpm;
2230 else
2231 with_xpm=yes
2232 fi
2233
2234
2235 # Check whether --with-jpeg was given.
2236 if test "${with_jpeg+set}" = set; then
2237 withval=$with_jpeg;
2238 else
2239 with_jpeg=yes
2240 fi
2241
2242
2243 # Check whether --with-tiff was given.
2244 if test "${with_tiff+set}" = set; then
2245 withval=$with_tiff;
2246 else
2247 with_tiff=yes
2248 fi
2249
2250
2251 # Check whether --with-gif was given.
2252 if test "${with_gif+set}" = set; then
2253 withval=$with_gif;
2254 else
2255 with_gif=yes
2256 fi
2257
2258
2259 # Check whether --with-png was given.
2260 if test "${with_png+set}" = set; then
2261 withval=$with_png;
2262 else
2263 with_png=yes
2264 fi
2265
2266
2267 # Check whether --with-rsvg was given.
2268 if test "${with_rsvg+set}" = set; then
2269 withval=$with_rsvg;
2270 else
2271 with_rsvg=yes
2272 fi
2273
2274
2275
2276 # Check whether --with-xft was given.
2277 if test "${with_xft+set}" = set; then
2278 withval=$with_xft;
2279 else
2280 with_xft=yes
2281 fi
2282
2283
2284 # Check whether --with-libotf was given.
2285 if test "${with_libotf+set}" = set; then
2286 withval=$with_libotf;
2287 else
2288 with_libotf=yes
2289 fi
2290
2291
2292 # Check whether --with-m17n-flt was given.
2293 if test "${with_m17n_flt+set}" = set; then
2294 withval=$with_m17n_flt;
2295 else
2296 with_m17n_flt=yes
2297 fi
2298
2299
2300
2301 # Check whether --with-toolkit-scroll-bars was given.
2302 if test "${with_toolkit_scroll_bars+set}" = set; then
2303 withval=$with_toolkit_scroll_bars;
2304 else
2305 with_toolkit_scroll_bars=yes
2306 fi
2307
2308
2309 # Check whether --with-xaw3d was given.
2310 if test "${with_xaw3d+set}" = set; then
2311 withval=$with_xaw3d;
2312 else
2313 with_xaw3d=yes
2314 fi
2315
2316
2317 # Check whether --with-xim was given.
2318 if test "${with_xim+set}" = set; then
2319 withval=$with_xim;
2320 else
2321 with_xim=yes
2322 fi
2323
2324
2325 # Check whether --with-ns was given.
2326 if test "${with_ns+set}" = set; then
2327 withval=$with_ns;
2328 else
2329 with_ns=no
2330 fi
2331
2332
2333
2334 # Check whether --with-gpm was given.
2335 if test "${with_gpm+set}" = set; then
2336 withval=$with_gpm;
2337 else
2338 with_gpm=yes
2339 fi
2340
2341
2342 # Check whether --with-dbus was given.
2343 if test "${with_dbus+set}" = set; then
2344 withval=$with_dbus;
2345 else
2346 with_dbus=yes
2347 fi
2348
2349
2350 # Check whether --with-gconf was given.
2351 if test "${with_gconf+set}" = set; then
2352 withval=$with_gconf;
2353 else
2354 with_gconf=yes
2355 fi
2356
2357
2358 # Check whether --with-selinux was given.
2359 if test "${with_selinux+set}" = set; then
2360 withval=$with_selinux;
2361 else
2362 with_selinux=yes
2363 fi
2364
2365
2366 ## For the times when you want to build Emacs but don't have
2367 ## a suitable makeinfo, and can live without the manuals.
2368
2369 # Check whether --with-makeinfo was given.
2370 if test "${with_makeinfo+set}" = set; then
2371 withval=$with_makeinfo;
2372 else
2373 with_makeinfo=yes
2374 fi
2375
2376
2377
2378 # Check whether --with-gtk was given.
2379 if test "${with_gtk+set}" = set; then
2380 withval=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2381 specify a toolkit." >&5
2382 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2383 specify a toolkit." >&2;}
2384 { (exit 1); exit 1; }; }
2385 fi
2386
2387
2388
2389 # Check whether --with-gcc was given.
2390 if test "${with_gcc+set}" = set; then
2391 withval=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2392 variable to specify a compiler." >&5
2393 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2394 variable to specify a compiler." >&2;}
2395 { (exit 1); exit 1; }; }
2396 fi
2397
2398
2399
2400 # Check whether --with-pkg-config-prog was given.
2401 if test "${with_pkg_config_prog+set}" = set; then
2402 withval=$with_pkg_config_prog;
2403 fi
2404
2405 if test "X${with_pkg_config_prog}" != X; then
2406 if test "${with_pkg_config_prog}" != yes; then
2407 PKG_CONFIG="${with_pkg_config_prog}"
2408 fi
2409 fi
2410
2411 CRT_DIR=
2412
2413 # Check whether --with-crt-dir was given.
2414 if test "${with_crt_dir+set}" = set; then
2415 withval=$with_crt_dir;
2416 fi
2417
2418 CRT_DIR="${with_crt_dir}"
2419
2420
2421 # Check whether --with-gnustep-conf was given.
2422 if test "${with_gnustep_conf+set}" = set; then
2423 withval=$with_gnustep_conf;
2424 fi
2425
2426 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2427 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2428 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2429 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2430
2431 # Check whether --enable-ns-self-contained was given.
2432 if test "${enable_ns_self_contained+set}" = set; then
2433 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2434 else
2435 EN_NS_SELF_CONTAINED=yes
2436 fi
2437
2438
2439 # Check whether --enable-asserts was given.
2440 if test "${enable_asserts+set}" = set; then
2441 enableval=$enable_asserts; USE_XASSERTS=$enableval
2442 else
2443 USE_XASSERTS=no
2444 fi
2445
2446
2447 # Check whether --enable-maintainer-mode was given.
2448 if test "${enable_maintainer_mode+set}" = set; then
2449 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2450 else
2451 USE_MAINTAINER_MODE=no
2452 fi
2453
2454 if test $USE_MAINTAINER_MODE = yes; then
2455 MAINT=
2456 else
2457 MAINT=#
2458 fi
2459
2460
2461 # Check whether --enable-locallisppath was given.
2462 if test "${enable_locallisppath+set}" = set; then
2463 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2464 locallisppath=
2465 elif test "${enableval}" != "yes"; then
2466 locallisppath=${enableval}
2467 fi
2468 fi
2469
2470
2471 # Check whether --enable-checking was given.
2472 if test "${enable_checking+set}" = set; then
2473 enableval=$enable_checking; ac_checking_flags="${enableval}"
2474 fi
2475
2476 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2477 for check in $ac_checking_flags
2478 do
2479 case $check in
2480 # these set all the flags to specific states
2481 yes) ac_enable_checking=1 ;;
2482 no) ac_enable_checking= ;
2483 ac_gc_check_stringbytes= ;
2484 ac_gc_check_string_overrun= ;
2485 ac_gc_check_string_free_list= ;
2486 ac_xmalloc_overrun= ;
2487 ac_gc_check_cons_list= ;;
2488 all) ac_enable_checking=1 ;
2489 ac_gc_check_stringbytes=1 ;
2490 ac_gc_check_string_overrun=1 ;
2491 ac_gc_check_string_free_list=1 ;
2492 ac_xmalloc_overrun=1 ;
2493 ac_gc_check_cons_list=1 ;;
2494 # these enable particular checks
2495 stringbytes) ac_gc_check_stringbytes=1 ;;
2496 stringoverrun) ac_gc_check_string_overrun=1 ;;
2497 stringfreelist) ac_gc_check_string_free_list=1 ;;
2498 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2499 conslist) ac_gc_check_cons_list=1 ;;
2500 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2501 $as_echo "$as_me: error: unknown check category $check" >&2;}
2502 { (exit 1); exit 1; }; } ;;
2503 esac
2504 done
2505 IFS="$ac_save_IFS"
2506
2507 if test x$ac_enable_checking != x ; then
2508
2509 cat >>confdefs.h <<\_ACEOF
2510 #define ENABLE_CHECKING 1
2511 _ACEOF
2512
2513 fi
2514 if test x$ac_gc_check_stringbytes != x ; then
2515
2516 cat >>confdefs.h <<\_ACEOF
2517 #define GC_CHECK_STRING_BYTES 1
2518 _ACEOF
2519
2520 fi
2521 if test x$ac_gc_check_stringoverrun != x ; then
2522
2523 cat >>confdefs.h <<\_ACEOF
2524 #define GC_CHECK_STRING_OVERRUN 1
2525 _ACEOF
2526
2527 fi
2528 if test x$ac_gc_check_string_free_list != x ; then
2529
2530 cat >>confdefs.h <<\_ACEOF
2531 #define GC_CHECK_STRING_FREE_LIST 1
2532 _ACEOF
2533
2534 fi
2535 if test x$ac_xmalloc_overrun != x ; then
2536
2537 cat >>confdefs.h <<\_ACEOF
2538 #define XMALLOC_OVERRUN_CHECK 1
2539 _ACEOF
2540
2541 fi
2542 if test x$ac_gc_check_cons_list != x ; then
2543
2544 cat >>confdefs.h <<\_ACEOF
2545 #define GC_CHECK_CONS_LIST 1
2546 _ACEOF
2547
2548 fi
2549
2550 # Check whether --enable-profiling was given.
2551 if test "${enable_profiling+set}" = set; then
2552 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2553 fi
2554
2555 if test x$ac_enable_profiling != x ; then
2556 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2557 PROFILING_LDFLAGS="-pg"
2558 else
2559 PROFILING_CFLAGS=
2560 PROFILING_LDFLAGS=
2561 fi
2562
2563 # Check whether --enable-autodepend was given.
2564 if test "${enable_autodepend+set}" = set; then
2565 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2566 else
2567 ac_enable_autodepend=yes
2568 fi
2569
2570
2571 #### Make srcdir absolute, if it isn't already. It's important to
2572 #### avoid running the path through pwd unnecessarily, since pwd can
2573 #### give you automounter prefixes, which can go away. We do all this
2574 #### so Emacs can find its files when run uninstalled.
2575 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2576 unset CDPATH
2577 case "${srcdir}" in
2578 /* ) ;;
2579 . )
2580 ## We may be able to use the $PWD environment variable to make this
2581 ## absolute. But sometimes PWD is inaccurate.
2582 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2583 ## but that tested only for a well-formed and valid PWD,
2584 ## it did not object when PWD was well-formed and valid but just wrong.
2585 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2586 then
2587 srcdir="$PWD"
2588 else
2589 srcdir="`(cd ${srcdir}; pwd)`"
2590 fi
2591 ;;
2592 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2593 esac
2594
2595 #### Check if the source directory already has a configured system in it.
2596 if test `pwd` != `(cd ${srcdir} && pwd)` \
2597 && test -f "${srcdir}/src/config.h" ; then
2598 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2599 as a build directory right now; it has been configured in its own
2600 right. To configure in another directory as well, you MUST
2601 use GNU make. If you do not have GNU make, then you must
2602 now do \`make distclean' in ${srcdir},
2603 and then run $0 again." >&5
2604 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2605 as a build directory right now; it has been configured in its own
2606 right. To configure in another directory as well, you MUST
2607 use GNU make. If you do not have GNU make, then you must
2608 now do \`make distclean' in ${srcdir},
2609 and then run $0 again." >&2;}
2610 fi
2611
2612 #### Given the configuration name, set machfile and opsysfile to the
2613 #### names of the m/*.h and s/*.h files we should use.
2614
2615 ### Canonicalize the configuration name.
2616
2617 ac_aux_dir=
2618 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2619 if test -f "$ac_dir/install-sh"; then
2620 ac_aux_dir=$ac_dir
2621 ac_install_sh="$ac_aux_dir/install-sh -c"
2622 break
2623 elif test -f "$ac_dir/install.sh"; then
2624 ac_aux_dir=$ac_dir
2625 ac_install_sh="$ac_aux_dir/install.sh -c"
2626 break
2627 elif test -f "$ac_dir/shtool"; then
2628 ac_aux_dir=$ac_dir
2629 ac_install_sh="$ac_aux_dir/shtool install -c"
2630 break
2631 fi
2632 done
2633 if test -z "$ac_aux_dir"; then
2634 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2635 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2636 { (exit 1); exit 1; }; }
2637 fi
2638
2639 # These three variables are undocumented and unsupported,
2640 # and are intended to be withdrawn in a future Autoconf release.
2641 # They can cause serious problems if a builder's source tree is in a directory
2642 # whose full name contains unusual characters.
2643 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2644 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2645 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2646
2647
2648 # Make sure we can run config.sub.
2649 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2650 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2651 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2652 { (exit 1); exit 1; }; }
2653
2654 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2655 $as_echo_n "checking build system type... " >&6; }
2656 if test "${ac_cv_build+set}" = set; then
2657 $as_echo_n "(cached) " >&6
2658 else
2659 ac_build_alias=$build_alias
2660 test "x$ac_build_alias" = x &&
2661 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2662 test "x$ac_build_alias" = x &&
2663 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2664 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2665 { (exit 1); exit 1; }; }
2666 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2667 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2668 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2669 { (exit 1); exit 1; }; }
2670
2671 fi
2672 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2673 $as_echo "$ac_cv_build" >&6; }
2674 case $ac_cv_build in
2675 *-*-*) ;;
2676 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2677 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2678 { (exit 1); exit 1; }; };;
2679 esac
2680 build=$ac_cv_build
2681 ac_save_IFS=$IFS; IFS='-'
2682 set x $ac_cv_build
2683 shift
2684 build_cpu=$1
2685 build_vendor=$2
2686 shift; shift
2687 # Remember, the first character of IFS is used to create $*,
2688 # except with old shells:
2689 build_os=$*
2690 IFS=$ac_save_IFS
2691 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2692
2693
2694 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2695 $as_echo_n "checking host system type... " >&6; }
2696 if test "${ac_cv_host+set}" = set; then
2697 $as_echo_n "(cached) " >&6
2698 else
2699 if test "x$host_alias" = x; then
2700 ac_cv_host=$ac_cv_build
2701 else
2702 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2703 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2704 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2705 { (exit 1); exit 1; }; }
2706 fi
2707
2708 fi
2709 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2710 $as_echo "$ac_cv_host" >&6; }
2711 case $ac_cv_host in
2712 *-*-*) ;;
2713 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2714 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2715 { (exit 1); exit 1; }; };;
2716 esac
2717 host=$ac_cv_host
2718 ac_save_IFS=$IFS; IFS='-'
2719 set x $ac_cv_host
2720 shift
2721 host_cpu=$1
2722 host_vendor=$2
2723 shift; shift
2724 # Remember, the first character of IFS is used to create $*,
2725 # except with old shells:
2726 host_os=$*
2727 IFS=$ac_save_IFS
2728 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2729
2730
2731 canonical=$host
2732 configuration=${host_alias-${build_alias-$host}}
2733
2734
2735
2736 ### If you add support for a new configuration, add code to this
2737 ### switch statement to recognize your configuration name and select
2738 ### the appropriate operating system and machine description files.
2739
2740 ### You would hope that you could choose an m/*.h file pretty much
2741 ### based on the machine portion of the configuration name, and an s-
2742 ### file based on the operating system portion. However, it turns out
2743 ### that each m/*.h file is pretty manufacturer-specific - for
2744 ### example mips.h is MIPS
2745 ### So we basically have to have a special case for each
2746 ### configuration name.
2747 ###
2748 ### As far as handling version numbers on operating systems is
2749 ### concerned, make sure things will fail in a fixable way. If
2750 ### /etc/MACHINES doesn't say anything about version numbers, be
2751 ### prepared to handle anything reasonably. If version numbers
2752 ### matter, be sure /etc/MACHINES says something about it.
2753 ###
2754 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2755 ### "System V Release 4"; he writes, "The old convention encouraged
2756 ### confusion between `system' and `release' levels'."
2757
2758 machine='' opsys='' unported=no
2759 case "${canonical}" in
2760
2761 ## FreeBSD ports
2762 *-*-freebsd* )
2763 opsys=freebsd
2764 case "${canonical}" in
2765 alpha*-*-freebsd*) machine=alpha ;;
2766 arm*-*-freebsd*) machine=arm ;;
2767 ia64-*-freebsd*) machine=ia64 ;;
2768 sparc-*-freebsd*) machine=sparc ;;
2769 sparc64-*-freebsd*) machine=sparc ;;
2770 powerpc-*-freebsd*) machine=macppc ;;
2771 i[3456]86-*-freebsd*) machine=intel386 ;;
2772 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2773 esac
2774 ;;
2775
2776 ## FreeBSD kernel + glibc based userland
2777 *-*-kfreebsd*gnu* )
2778 opsys=gnu-kfreebsd
2779 case "${canonical}" in
2780 alpha*-*-kfreebsd*) machine=alpha ;;
2781 ia64-*-kfreebsd*) machine=ia64 ;;
2782 sparc-*-kfreebsd*) machine=sparc ;;
2783 sparc64-*-kfreebsd*) machine=sparc ;;
2784 powerpc-*-kfreebsd*) machine=macppc ;;
2785 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2786 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2787 esac
2788 ;;
2789
2790 ## NetBSD ports
2791 *-*-netbsd* )
2792 opsys=netbsd
2793 case "${canonical}" in
2794 alpha*-*-netbsd*) machine=alpha ;;
2795 i[3456]86-*-netbsd*) machine=intel386 ;;
2796 mips-*-netbsd*) machine=mips ;;
2797 mipsel-*-netbsd*) machine=mips ;;
2798 mipseb-*-netbsd*) machine=mips ;;
2799 powerpc-*-netbsd*) machine=macppc ;;
2800 sparc*-*-netbsd*) machine=sparc ;;
2801 vax-*-netbsd*) machine=vax ;;
2802 arm-*-netbsd*) machine=arm ;;
2803 x86_64-*-netbsd*) machine=amdx86-64 ;;
2804 hppa-*-netbsd*) machine=hp800 ;;
2805 m68k-*-netbsd*) machine=m68k ;;
2806 esac
2807 ;;
2808
2809 ## OpenBSD ports
2810 *-*-openbsd* )
2811 opsys=openbsd
2812 case "${canonical}" in
2813 alpha*-*-openbsd*) machine=alpha ;;
2814 arm-*-openbsd*) machine=arm ;;
2815 i386-*-openbsd*) machine=intel386 ;;
2816 powerpc-*-openbsd*) machine=macppc ;;
2817 sparc*-*-openbsd*) machine=sparc ;;
2818 vax-*-openbsd*) machine=vax ;;
2819 x86_64-*-openbsd*) machine=amdx86-64 ;;
2820 hppa-*-openbsd*) machine=hp800 ;;
2821 esac
2822 ;;
2823
2824 alpha*-*-linux-gnu* )
2825 machine=alpha opsys=gnu-linux
2826 ;;
2827
2828 arm*-*-linux-gnu* )
2829 machine=arm opsys=gnu-linux
2830 ;;
2831
2832 ## Apple Darwin / Mac OS X
2833 *-apple-darwin* )
2834 case "${canonical}" in
2835 i[3456]86-* ) machine=intel386 ;;
2836 powerpc-* ) machine=macppc ;;
2837 x86_64-* ) machine=amdx86-64 ;;
2838 * ) unported=yes ;;
2839 esac
2840 opsys=darwin
2841 # Define CPP as follows to make autoconf work correctly.
2842 CPP="${CC-cc} -E -no-cpp-precomp"
2843 # Use fink packages if available.
2844 if test -d /sw/include && test -d /sw/lib; then
2845 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2846 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2847 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2848 fi
2849 ;;
2850
2851 ## HP 9000 series 700 and 800, running HP/UX
2852 hppa*-hp-hpux10.2* )
2853 machine=hp800 opsys=hpux10-20
2854 ;;
2855 hppa*-hp-hpux1[1-9]* )
2856 machine=hp800 opsys=hpux11
2857 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2858 ;;
2859
2860 hppa*-*-linux-gnu* )
2861 machine=hp800 opsys=gnu-linux
2862 ;;
2863
2864 ## IBM machines
2865 s390-*-linux-gnu* )
2866 machine=ibms390 opsys=gnu-linux
2867 ;;
2868 s390x-*-linux-gnu* )
2869 machine=ibms390x opsys=gnu-linux
2870 ;;
2871 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2872 machine=ibmrs6000 opsys=aix4-2
2873 ;;
2874 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2875 machine=ibmrs6000 opsys=aix4-2
2876 ;;
2877 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2878 machine=ibmrs6000 opsys=aix4-2
2879 ;;
2880 rs6000-ibm-aix6* | powerpc-ibm-aix6* )
2881 machine=ibmrs6000 opsys=aix4-2
2882 ;;
2883
2884 ## Macintosh PowerPC
2885 powerpc*-*-linux-gnu* )
2886 machine=macppc opsys=gnu-linux
2887 ;;
2888
2889 ## Silicon Graphics machines
2890 ## Iris 4D
2891 mips-sgi-irix6.5 )
2892 machine=iris4d opsys=irix6-5
2893 # Without defining _LANGUAGE_C, things get masked out in the headers
2894 # so that, for instance, grepping for `free' in stdlib.h fails and
2895 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2896 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2897 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2898 ;;
2899
2900 ## Suns
2901 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2902 machine=sparc opsys=gnu-linux
2903 ;;
2904
2905 *-sun-solaris* \
2906 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
2907 | x86_64-*-solaris2* | x86_64-*-sunos5*)
2908 case "${canonical}" in
2909 i[3456]86-*-* ) machine=intel386 ;;
2910 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2911 sparc* ) machine=sparc ;;
2912 * ) unported=yes ;;
2913 esac
2914 case "${canonical}" in
2915 *-sunos5.6* | *-solaris2.6* )
2916 opsys=sol2-6
2917 NON_GNU_CPP=/usr/ccs/lib/cpp
2918 RANLIB="ar -ts"
2919 ;;
2920 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
2921 opsys=sol2-6
2922 emacs_check_sunpro_c=yes
2923 NON_GNU_CPP=/usr/ccs/lib/cpp
2924 ;;
2925 *-sunos5* | *-solaris* )
2926 opsys=sol2-10
2927 emacs_check_sunpro_c=yes
2928 NON_GNU_CPP=/usr/ccs/lib/cpp
2929 ;;
2930 esac
2931 ## Watch out for a compiler that we know will not work.
2932 case "${canonical}" in
2933 *-solaris* | *-sunos5* )
2934 if [ "x$CC" = x/usr/ucb/cc ]; then
2935 ## /usr/ucb/cc doesn't work;
2936 ## we should find some other compiler that does work.
2937 unset CC
2938 fi
2939 ;;
2940 *) ;;
2941 esac
2942 ;;
2943
2944 ## IA-64
2945 ia64*-*-linux* )
2946 machine=ia64 opsys=gnu-linux
2947 ;;
2948
2949 ## Intel 386 machines where we don't care about the manufacturer
2950 i[3456]86-*-* )
2951 machine=intel386
2952 case "${canonical}" in
2953 *-cygwin ) opsys=cygwin ;;
2954 *-darwin* ) opsys=darwin
2955 CPP="${CC-cc} -E -no-cpp-precomp"
2956 ;;
2957 *-linux-gnu* ) opsys=gnu-linux ;;
2958 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2959 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2960 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2961 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2962 esac
2963 ;;
2964
2965 ## m68k Linux-based GNU system
2966 m68k-*-linux-gnu* )
2967 machine=m68k opsys=gnu-linux
2968 ;;
2969
2970 ## Mips Linux-based GNU system
2971 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
2972 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
2973 machine=mips opsys=gnu-linux
2974 ;;
2975
2976 ## AMD x86-64 Linux-based GNU system
2977 x86_64-*-linux-gnu* )
2978 machine=amdx86-64 opsys=gnu-linux
2979 ;;
2980
2981 ## Tensilica Xtensa Linux-based GNU system
2982 xtensa*-*-linux-gnu* )
2983 machine=xtensa opsys=gnu-linux
2984 ;;
2985
2986 ## SuperH Linux-based GNU system
2987 sh[34]*-*-linux-gnu* )
2988 machine=sh3 opsys=gnu-linux
2989 ;;
2990
2991 * )
2992 unported=yes
2993 ;;
2994 esac
2995
2996 ### If the code above didn't choose an operating system, just choose
2997 ### an operating system based on the configuration name. You really
2998 ### only want to use this when you have no idea what the right
2999 ### operating system is; if you know what operating systems a machine
3000 ### runs, it's cleaner to make it explicit in the case statement
3001 ### above.
3002 if test x"${opsys}" = x; then
3003 case "${canonical}" in
3004 *-gnu* ) opsys=gnu ;;
3005 * )
3006 unported=yes
3007 ;;
3008 esac
3009 fi
3010
3011
3012
3013 if test $unported = yes; then
3014 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3015 Check \`etc/MACHINES' for recognized configuration names." >&5
3016 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3017 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3018 { (exit 1); exit 1; }; }
3019 fi
3020
3021 machfile="m/${machine}.h"
3022 opsysfile="s/${opsys}.h"
3023
3024
3025 #### Choose a compiler.
3026 test -n "$CC" && cc_specified=yes
3027
3028 # Save the value of CFLAGS that the user specified.
3029 SPECIFIED_CFLAGS="$CFLAGS"
3030
3031 ac_ext=c
3032 ac_cpp='$CPP $CPPFLAGS'
3033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3036 if test -n "$ac_tool_prefix"; then
3037 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3038 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3039 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3040 $as_echo_n "checking for $ac_word... " >&6; }
3041 if test "${ac_cv_prog_CC+set}" = set; then
3042 $as_echo_n "(cached) " >&6
3043 else
3044 if test -n "$CC"; then
3045 ac_cv_prog_CC="$CC" # Let the user override the test.
3046 else
3047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 for as_dir in $PATH
3049 do
3050 IFS=$as_save_IFS
3051 test -z "$as_dir" && as_dir=.
3052 for ac_exec_ext in '' $ac_executable_extensions; do
3053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3054 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3055 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3056 break 2
3057 fi
3058 done
3059 done
3060 IFS=$as_save_IFS
3061
3062 fi
3063 fi
3064 CC=$ac_cv_prog_CC
3065 if test -n "$CC"; then
3066 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3067 $as_echo "$CC" >&6; }
3068 else
3069 { $as_echo "$as_me:$LINENO: result: no" >&5
3070 $as_echo "no" >&6; }
3071 fi
3072
3073
3074 fi
3075 if test -z "$ac_cv_prog_CC"; then
3076 ac_ct_CC=$CC
3077 # Extract the first word of "gcc", so it can be a program name with args.
3078 set dummy gcc; ac_word=$2
3079 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3080 $as_echo_n "checking for $ac_word... " >&6; }
3081 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3082 $as_echo_n "(cached) " >&6
3083 else
3084 if test -n "$ac_ct_CC"; then
3085 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3086 else
3087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088 for as_dir in $PATH
3089 do
3090 IFS=$as_save_IFS
3091 test -z "$as_dir" && as_dir=.
3092 for ac_exec_ext in '' $ac_executable_extensions; do
3093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3094 ac_cv_prog_ac_ct_CC="gcc"
3095 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3096 break 2
3097 fi
3098 done
3099 done
3100 IFS=$as_save_IFS
3101
3102 fi
3103 fi
3104 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3105 if test -n "$ac_ct_CC"; then
3106 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3107 $as_echo "$ac_ct_CC" >&6; }
3108 else
3109 { $as_echo "$as_me:$LINENO: result: no" >&5
3110 $as_echo "no" >&6; }
3111 fi
3112
3113 if test "x$ac_ct_CC" = x; then
3114 CC=""
3115 else
3116 case $cross_compiling:$ac_tool_warned in
3117 yes:)
3118 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3119 whose name does not start with the host triplet. If you think this
3120 configuration is useful to you, please write to autoconf@gnu.org." >&5
3121 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3122 whose name does not start with the host triplet. If you think this
3123 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3124 ac_tool_warned=yes ;;
3125 esac
3126 CC=$ac_ct_CC
3127 fi
3128 else
3129 CC="$ac_cv_prog_CC"
3130 fi
3131
3132 if test -z "$CC"; then
3133 if test -n "$ac_tool_prefix"; then
3134 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3135 set dummy ${ac_tool_prefix}cc; ac_word=$2
3136 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3137 $as_echo_n "checking for $ac_word... " >&6; }
3138 if test "${ac_cv_prog_CC+set}" = set; then
3139 $as_echo_n "(cached) " >&6
3140 else
3141 if test -n "$CC"; then
3142 ac_cv_prog_CC="$CC" # Let the user override the test.
3143 else
3144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145 for as_dir in $PATH
3146 do
3147 IFS=$as_save_IFS
3148 test -z "$as_dir" && as_dir=.
3149 for ac_exec_ext in '' $ac_executable_extensions; do
3150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3151 ac_cv_prog_CC="${ac_tool_prefix}cc"
3152 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3153 break 2
3154 fi
3155 done
3156 done
3157 IFS=$as_save_IFS
3158
3159 fi
3160 fi
3161 CC=$ac_cv_prog_CC
3162 if test -n "$CC"; then
3163 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3164 $as_echo "$CC" >&6; }
3165 else
3166 { $as_echo "$as_me:$LINENO: result: no" >&5
3167 $as_echo "no" >&6; }
3168 fi
3169
3170
3171 fi
3172 fi
3173 if test -z "$CC"; then
3174 # Extract the first word of "cc", so it can be a program name with args.
3175 set dummy cc; ac_word=$2
3176 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3177 $as_echo_n "checking for $ac_word... " >&6; }
3178 if test "${ac_cv_prog_CC+set}" = set; then
3179 $as_echo_n "(cached) " >&6
3180 else
3181 if test -n "$CC"; then
3182 ac_cv_prog_CC="$CC" # Let the user override the test.
3183 else
3184 ac_prog_rejected=no
3185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186 for as_dir in $PATH
3187 do
3188 IFS=$as_save_IFS
3189 test -z "$as_dir" && as_dir=.
3190 for ac_exec_ext in '' $ac_executable_extensions; do
3191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3192 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3193 ac_prog_rejected=yes
3194 continue
3195 fi
3196 ac_cv_prog_CC="cc"
3197 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3198 break 2
3199 fi
3200 done
3201 done
3202 IFS=$as_save_IFS
3203
3204 if test $ac_prog_rejected = yes; then
3205 # We found a bogon in the path, so make sure we never use it.
3206 set dummy $ac_cv_prog_CC
3207 shift
3208 if test $# != 0; then
3209 # We chose a different compiler from the bogus one.
3210 # However, it has the same basename, so the bogon will be chosen
3211 # first if we set CC to just the basename; use the full file name.
3212 shift
3213 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3214 fi
3215 fi
3216 fi
3217 fi
3218 CC=$ac_cv_prog_CC
3219 if test -n "$CC"; then
3220 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3221 $as_echo "$CC" >&6; }
3222 else
3223 { $as_echo "$as_me:$LINENO: result: no" >&5
3224 $as_echo "no" >&6; }
3225 fi
3226
3227
3228 fi
3229 if test -z "$CC"; then
3230 if test -n "$ac_tool_prefix"; then
3231 for ac_prog in cl.exe
3232 do
3233 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3234 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3235 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3236 $as_echo_n "checking for $ac_word... " >&6; }
3237 if test "${ac_cv_prog_CC+set}" = set; then
3238 $as_echo_n "(cached) " >&6
3239 else
3240 if test -n "$CC"; then
3241 ac_cv_prog_CC="$CC" # Let the user override the test.
3242 else
3243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244 for as_dir in $PATH
3245 do
3246 IFS=$as_save_IFS
3247 test -z "$as_dir" && as_dir=.
3248 for ac_exec_ext in '' $ac_executable_extensions; do
3249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3250 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3251 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3252 break 2
3253 fi
3254 done
3255 done
3256 IFS=$as_save_IFS
3257
3258 fi
3259 fi
3260 CC=$ac_cv_prog_CC
3261 if test -n "$CC"; then
3262 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3263 $as_echo "$CC" >&6; }
3264 else
3265 { $as_echo "$as_me:$LINENO: result: no" >&5
3266 $as_echo "no" >&6; }
3267 fi
3268
3269
3270 test -n "$CC" && break
3271 done
3272 fi
3273 if test -z "$CC"; then
3274 ac_ct_CC=$CC
3275 for ac_prog in cl.exe
3276 do
3277 # Extract the first word of "$ac_prog", so it can be a program name with args.
3278 set dummy $ac_prog; ac_word=$2
3279 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3280 $as_echo_n "checking for $ac_word... " >&6; }
3281 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3282 $as_echo_n "(cached) " >&6
3283 else
3284 if test -n "$ac_ct_CC"; then
3285 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3286 else
3287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 for as_dir in $PATH
3289 do
3290 IFS=$as_save_IFS
3291 test -z "$as_dir" && as_dir=.
3292 for ac_exec_ext in '' $ac_executable_extensions; do
3293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3294 ac_cv_prog_ac_ct_CC="$ac_prog"
3295 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3296 break 2
3297 fi
3298 done
3299 done
3300 IFS=$as_save_IFS
3301
3302 fi
3303 fi
3304 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3305 if test -n "$ac_ct_CC"; then
3306 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3307 $as_echo "$ac_ct_CC" >&6; }
3308 else
3309 { $as_echo "$as_me:$LINENO: result: no" >&5
3310 $as_echo "no" >&6; }
3311 fi
3312
3313
3314 test -n "$ac_ct_CC" && break
3315 done
3316
3317 if test "x$ac_ct_CC" = x; then
3318 CC=""
3319 else
3320 case $cross_compiling:$ac_tool_warned in
3321 yes:)
3322 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3323 whose name does not start with the host triplet. If you think this
3324 configuration is useful to you, please write to autoconf@gnu.org." >&5
3325 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3326 whose name does not start with the host triplet. If you think this
3327 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3328 ac_tool_warned=yes ;;
3329 esac
3330 CC=$ac_ct_CC
3331 fi
3332 fi
3333
3334 fi
3335
3336
3337 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3338 See \`config.log' for more details." >&5
3339 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3340 See \`config.log' for more details." >&2;}
3341 { (exit 1); exit 1; }; }
3342
3343 # Provide some information about the compiler.
3344 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3345 set X $ac_compile
3346 ac_compiler=$2
3347 { (ac_try="$ac_compiler --version >&5"
3348 case "(($ac_try" in
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3351 esac
3352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3353 $as_echo "$ac_try_echo") >&5
3354 (eval "$ac_compiler --version >&5") 2>&5
3355 ac_status=$?
3356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }
3358 { (ac_try="$ac_compiler -v >&5"
3359 case "(($ac_try" in
3360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361 *) ac_try_echo=$ac_try;;
3362 esac
3363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3364 $as_echo "$ac_try_echo") >&5
3365 (eval "$ac_compiler -v >&5") 2>&5
3366 ac_status=$?
3367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); }
3369 { (ac_try="$ac_compiler -V >&5"
3370 case "(($ac_try" in
3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3373 esac
3374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3375 $as_echo "$ac_try_echo") >&5
3376 (eval "$ac_compiler -V >&5") 2>&5
3377 ac_status=$?
3378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); }
3380
3381 cat >conftest.$ac_ext <<_ACEOF
3382 /* confdefs.h. */
3383 _ACEOF
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h. */
3387
3388 int
3389 main ()
3390 {
3391
3392 ;
3393 return 0;
3394 }
3395 _ACEOF
3396 ac_clean_files_save=$ac_clean_files
3397 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3398 # Try to create an executable without -o first, disregard a.out.
3399 # It will help us diagnose broken compilers, and finding out an intuition
3400 # of exeext.
3401 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3402 $as_echo_n "checking for C compiler default output file name... " >&6; }
3403 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3404
3405 # The possible output files:
3406 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3407
3408 ac_rmfiles=
3409 for ac_file in $ac_files
3410 do
3411 case $ac_file in
3412 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3413 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3414 esac
3415 done
3416 rm -f $ac_rmfiles
3417
3418 if { (ac_try="$ac_link_default"
3419 case "(($ac_try" in
3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421 *) ac_try_echo=$ac_try;;
3422 esac
3423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3424 $as_echo "$ac_try_echo") >&5
3425 (eval "$ac_link_default") 2>&5
3426 ac_status=$?
3427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); }; then
3429 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3430 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3431 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3432 # so that the user can short-circuit this test for compilers unknown to
3433 # Autoconf.
3434 for ac_file in $ac_files ''
3435 do
3436 test -f "$ac_file" || continue
3437 case $ac_file in
3438 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3439 ;;
3440 [ab].out )
3441 # We found the default executable, but exeext='' is most
3442 # certainly right.
3443 break;;
3444 *.* )
3445 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3446 then :; else
3447 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3448 fi
3449 # We set ac_cv_exeext here because the later test for it is not
3450 # safe: cross compilers may not add the suffix if given an `-o'
3451 # argument, so we may need to know it at that point already.
3452 # Even if this section looks crufty: it has the advantage of
3453 # actually working.
3454 break;;
3455 * )
3456 break;;
3457 esac
3458 done
3459 test "$ac_cv_exeext" = no && ac_cv_exeext=
3460
3461 else
3462 ac_file=''
3463 fi
3464
3465 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3466 $as_echo "$ac_file" >&6; }
3467 if test -z "$ac_file"; then
3468 $as_echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.$ac_ext >&5
3470
3471 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3472 See \`config.log' for more details." >&5
3473 $as_echo "$as_me: error: C compiler cannot create executables
3474 See \`config.log' for more details." >&2;}
3475 { (exit 77); exit 77; }; }
3476 fi
3477
3478 ac_exeext=$ac_cv_exeext
3479
3480 # Check that the compiler produces executables we can run. If not, either
3481 # the compiler is broken, or we cross compile.
3482 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3483 $as_echo_n "checking whether the C compiler works... " >&6; }
3484 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3485 # If not cross compiling, check that we can run a simple program.
3486 if test "$cross_compiling" != yes; then
3487 if { ac_try='./$ac_file'
3488 { (case "(($ac_try" in
3489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490 *) ac_try_echo=$ac_try;;
3491 esac
3492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3493 $as_echo "$ac_try_echo") >&5
3494 (eval "$ac_try") 2>&5
3495 ac_status=$?
3496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); }; }; then
3498 cross_compiling=no
3499 else
3500 if test "$cross_compiling" = maybe; then
3501 cross_compiling=yes
3502 else
3503 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3504 If you meant to cross compile, use \`--host'.
3505 See \`config.log' for more details." >&5
3506 $as_echo "$as_me: error: cannot run C compiled programs.
3507 If you meant to cross compile, use \`--host'.
3508 See \`config.log' for more details." >&2;}
3509 { (exit 1); exit 1; }; }
3510 fi
3511 fi
3512 fi
3513 { $as_echo "$as_me:$LINENO: result: yes" >&5
3514 $as_echo "yes" >&6; }
3515
3516 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3517 ac_clean_files=$ac_clean_files_save
3518 # Check that the compiler produces executables we can run. If not, either
3519 # the compiler is broken, or we cross compile.
3520 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3521 $as_echo_n "checking whether we are cross compiling... " >&6; }
3522 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3523 $as_echo "$cross_compiling" >&6; }
3524
3525 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3526 $as_echo_n "checking for suffix of executables... " >&6; }
3527 if { (ac_try="$ac_link"
3528 case "(($ac_try" in
3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530 *) ac_try_echo=$ac_try;;
3531 esac
3532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3533 $as_echo "$ac_try_echo") >&5
3534 (eval "$ac_link") 2>&5
3535 ac_status=$?
3536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); }; then
3538 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3539 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3540 # work properly (i.e., refer to `conftest.exe'), while it won't with
3541 # `rm'.
3542 for ac_file in conftest.exe conftest conftest.*; do
3543 test -f "$ac_file" || continue
3544 case $ac_file in
3545 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3546 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3547 break;;
3548 * ) break;;
3549 esac
3550 done
3551 else
3552 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3553 See \`config.log' for more details." >&5
3554 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3555 See \`config.log' for more details." >&2;}
3556 { (exit 1); exit 1; }; }
3557 fi
3558
3559 rm -f conftest$ac_cv_exeext
3560 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3561 $as_echo "$ac_cv_exeext" >&6; }
3562
3563 rm -f conftest.$ac_ext
3564 EXEEXT=$ac_cv_exeext
3565 ac_exeext=$EXEEXT
3566 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3567 $as_echo_n "checking for suffix of object files... " >&6; }
3568 if test "${ac_cv_objext+set}" = set; then
3569 $as_echo_n "(cached) " >&6
3570 else
3571 cat >conftest.$ac_ext <<_ACEOF
3572 /* confdefs.h. */
3573 _ACEOF
3574 cat confdefs.h >>conftest.$ac_ext
3575 cat >>conftest.$ac_ext <<_ACEOF
3576 /* end confdefs.h. */
3577
3578 int
3579 main ()
3580 {
3581
3582 ;
3583 return 0;
3584 }
3585 _ACEOF
3586 rm -f conftest.o conftest.obj
3587 if { (ac_try="$ac_compile"
3588 case "(($ac_try" in
3589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590 *) ac_try_echo=$ac_try;;
3591 esac
3592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3593 $as_echo "$ac_try_echo") >&5
3594 (eval "$ac_compile") 2>&5
3595 ac_status=$?
3596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); }; then
3598 for ac_file in conftest.o conftest.obj conftest.*; do
3599 test -f "$ac_file" || continue;
3600 case $ac_file in
3601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3602 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3603 break;;
3604 esac
3605 done
3606 else
3607 $as_echo "$as_me: failed program was:" >&5
3608 sed 's/^/| /' conftest.$ac_ext >&5
3609
3610 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3611 See \`config.log' for more details." >&5
3612 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3613 See \`config.log' for more details." >&2;}
3614 { (exit 1); exit 1; }; }
3615 fi
3616
3617 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3618 fi
3619 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3620 $as_echo "$ac_cv_objext" >&6; }
3621 OBJEXT=$ac_cv_objext
3622 ac_objext=$OBJEXT
3623 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3624 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3625 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3626 $as_echo_n "(cached) " >&6
3627 else
3628 cat >conftest.$ac_ext <<_ACEOF
3629 /* confdefs.h. */
3630 _ACEOF
3631 cat confdefs.h >>conftest.$ac_ext
3632 cat >>conftest.$ac_ext <<_ACEOF
3633 /* end confdefs.h. */
3634
3635 int
3636 main ()
3637 {
3638 #ifndef __GNUC__
3639 choke me
3640 #endif
3641
3642 ;
3643 return 0;
3644 }
3645 _ACEOF
3646 rm -f conftest.$ac_objext
3647 if { (ac_try="$ac_compile"
3648 case "(($ac_try" in
3649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650 *) ac_try_echo=$ac_try;;
3651 esac
3652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3653 $as_echo "$ac_try_echo") >&5
3654 (eval "$ac_compile") 2>conftest.er1
3655 ac_status=$?
3656 grep -v '^ *+' conftest.er1 >conftest.err
3657 rm -f conftest.er1
3658 cat conftest.err >&5
3659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); } && {
3661 test -z "$ac_c_werror_flag" ||
3662 test ! -s conftest.err
3663 } && test -s conftest.$ac_objext; then
3664 ac_compiler_gnu=yes
3665 else
3666 $as_echo "$as_me: failed program was:" >&5
3667 sed 's/^/| /' conftest.$ac_ext >&5
3668
3669 ac_compiler_gnu=no
3670 fi
3671
3672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3673 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3674
3675 fi
3676 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3677 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3678 if test $ac_compiler_gnu = yes; then
3679 GCC=yes
3680 else
3681 GCC=
3682 fi
3683 ac_test_CFLAGS=${CFLAGS+set}
3684 ac_save_CFLAGS=$CFLAGS
3685 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3686 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3687 if test "${ac_cv_prog_cc_g+set}" = set; then
3688 $as_echo_n "(cached) " >&6
3689 else
3690 ac_save_c_werror_flag=$ac_c_werror_flag
3691 ac_c_werror_flag=yes
3692 ac_cv_prog_cc_g=no
3693 CFLAGS="-g"
3694 cat >conftest.$ac_ext <<_ACEOF
3695 /* confdefs.h. */
3696 _ACEOF
3697 cat confdefs.h >>conftest.$ac_ext
3698 cat >>conftest.$ac_ext <<_ACEOF
3699 /* end confdefs.h. */
3700
3701 int
3702 main ()
3703 {
3704
3705 ;
3706 return 0;
3707 }
3708 _ACEOF
3709 rm -f conftest.$ac_objext
3710 if { (ac_try="$ac_compile"
3711 case "(($ac_try" in
3712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713 *) ac_try_echo=$ac_try;;
3714 esac
3715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3716 $as_echo "$ac_try_echo") >&5
3717 (eval "$ac_compile") 2>conftest.er1
3718 ac_status=$?
3719 grep -v '^ *+' conftest.er1 >conftest.err
3720 rm -f conftest.er1
3721 cat conftest.err >&5
3722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); } && {
3724 test -z "$ac_c_werror_flag" ||
3725 test ! -s conftest.err
3726 } && test -s conftest.$ac_objext; then
3727 ac_cv_prog_cc_g=yes
3728 else
3729 $as_echo "$as_me: failed program was:" >&5
3730 sed 's/^/| /' conftest.$ac_ext >&5
3731
3732 CFLAGS=""
3733 cat >conftest.$ac_ext <<_ACEOF
3734 /* confdefs.h. */
3735 _ACEOF
3736 cat confdefs.h >>conftest.$ac_ext
3737 cat >>conftest.$ac_ext <<_ACEOF
3738 /* end confdefs.h. */
3739
3740 int
3741 main ()
3742 {
3743
3744 ;
3745 return 0;
3746 }
3747 _ACEOF
3748 rm -f conftest.$ac_objext
3749 if { (ac_try="$ac_compile"
3750 case "(($ac_try" in
3751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3752 *) ac_try_echo=$ac_try;;
3753 esac
3754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3755 $as_echo "$ac_try_echo") >&5
3756 (eval "$ac_compile") 2>conftest.er1
3757 ac_status=$?
3758 grep -v '^ *+' conftest.er1 >conftest.err
3759 rm -f conftest.er1
3760 cat conftest.err >&5
3761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); } && {
3763 test -z "$ac_c_werror_flag" ||
3764 test ! -s conftest.err
3765 } && test -s conftest.$ac_objext; then
3766 :
3767 else
3768 $as_echo "$as_me: failed program was:" >&5
3769 sed 's/^/| /' conftest.$ac_ext >&5
3770
3771 ac_c_werror_flag=$ac_save_c_werror_flag
3772 CFLAGS="-g"
3773 cat >conftest.$ac_ext <<_ACEOF
3774 /* confdefs.h. */
3775 _ACEOF
3776 cat confdefs.h >>conftest.$ac_ext
3777 cat >>conftest.$ac_ext <<_ACEOF
3778 /* end confdefs.h. */
3779
3780 int
3781 main ()
3782 {
3783
3784 ;
3785 return 0;
3786 }
3787 _ACEOF
3788 rm -f conftest.$ac_objext
3789 if { (ac_try="$ac_compile"
3790 case "(($ac_try" in
3791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792 *) ac_try_echo=$ac_try;;
3793 esac
3794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3795 $as_echo "$ac_try_echo") >&5
3796 (eval "$ac_compile") 2>conftest.er1
3797 ac_status=$?
3798 grep -v '^ *+' conftest.er1 >conftest.err
3799 rm -f conftest.er1
3800 cat conftest.err >&5
3801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); } && {
3803 test -z "$ac_c_werror_flag" ||
3804 test ! -s conftest.err
3805 } && test -s conftest.$ac_objext; then
3806 ac_cv_prog_cc_g=yes
3807 else
3808 $as_echo "$as_me: failed program was:" >&5
3809 sed 's/^/| /' conftest.$ac_ext >&5
3810
3811
3812 fi
3813
3814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3815 fi
3816
3817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3818 fi
3819
3820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3821 ac_c_werror_flag=$ac_save_c_werror_flag
3822 fi
3823 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3824 $as_echo "$ac_cv_prog_cc_g" >&6; }
3825 if test "$ac_test_CFLAGS" = set; then
3826 CFLAGS=$ac_save_CFLAGS
3827 elif test $ac_cv_prog_cc_g = yes; then
3828 if test "$GCC" = yes; then
3829 CFLAGS="-g -O2"
3830 else
3831 CFLAGS="-g"
3832 fi
3833 else
3834 if test "$GCC" = yes; then
3835 CFLAGS="-O2"
3836 else
3837 CFLAGS=
3838 fi
3839 fi
3840 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3841 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3842 if test "${ac_cv_prog_cc_c89+set}" = set; then
3843 $as_echo_n "(cached) " >&6
3844 else
3845 ac_cv_prog_cc_c89=no
3846 ac_save_CC=$CC
3847 cat >conftest.$ac_ext <<_ACEOF
3848 /* confdefs.h. */
3849 _ACEOF
3850 cat confdefs.h >>conftest.$ac_ext
3851 cat >>conftest.$ac_ext <<_ACEOF
3852 /* end confdefs.h. */
3853 #include <stdarg.h>
3854 #include <stdio.h>
3855 #include <sys/types.h>
3856 #include <sys/stat.h>
3857 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3858 struct buf { int x; };
3859 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3860 static char *e (p, i)
3861 char **p;
3862 int i;
3863 {
3864 return p[i];
3865 }
3866 static char *f (char * (*g) (char **, int), char **p, ...)
3867 {
3868 char *s;
3869 va_list v;
3870 va_start (v,p);
3871 s = g (p, va_arg (v,int));
3872 va_end (v);
3873 return s;
3874 }
3875
3876 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3877 function prototypes and stuff, but not '\xHH' hex character constants.
3878 These don't provoke an error unfortunately, instead are silently treated
3879 as 'x'. The following induces an error, until -std is added to get
3880 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3881 array size at least. It's necessary to write '\x00'==0 to get something
3882 that's true only with -std. */
3883 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3884
3885 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3886 inside strings and character constants. */
3887 #define FOO(x) 'x'
3888 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3889
3890 int test (int i, double x);
3891 struct s1 {int (*f) (int a);};
3892 struct s2 {int (*f) (double a);};
3893 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3894 int argc;
3895 char **argv;
3896 int
3897 main ()
3898 {
3899 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3900 ;
3901 return 0;
3902 }
3903 _ACEOF
3904 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3905 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3906 do
3907 CC="$ac_save_CC $ac_arg"
3908 rm -f conftest.$ac_objext
3909 if { (ac_try="$ac_compile"
3910 case "(($ac_try" in
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3913 esac
3914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3915 $as_echo "$ac_try_echo") >&5
3916 (eval "$ac_compile") 2>conftest.er1
3917 ac_status=$?
3918 grep -v '^ *+' conftest.er1 >conftest.err
3919 rm -f conftest.er1
3920 cat conftest.err >&5
3921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); } && {
3923 test -z "$ac_c_werror_flag" ||
3924 test ! -s conftest.err
3925 } && test -s conftest.$ac_objext; then
3926 ac_cv_prog_cc_c89=$ac_arg
3927 else
3928 $as_echo "$as_me: failed program was:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3930
3931
3932 fi
3933
3934 rm -f core conftest.err conftest.$ac_objext
3935 test "x$ac_cv_prog_cc_c89" != "xno" && break
3936 done
3937 rm -f conftest.$ac_ext
3938 CC=$ac_save_CC
3939
3940 fi
3941 # AC_CACHE_VAL
3942 case "x$ac_cv_prog_cc_c89" in
3943 x)
3944 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3945 $as_echo "none needed" >&6; } ;;
3946 xno)
3947 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3948 $as_echo "unsupported" >&6; } ;;
3949 *)
3950 CC="$CC $ac_cv_prog_cc_c89"
3951 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3952 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3953 esac
3954
3955
3956 ac_ext=c
3957 ac_cpp='$CPP $CPPFLAGS'
3958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3961
3962
3963 # On Suns, sometimes $CPP names a directory.
3964 if test -n "$CPP" && test -d "$CPP"; then
3965 CPP=
3966 fi
3967
3968 ## If not using gcc, and on Solaris, and no CPP specified, see if
3969 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3970 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3971 test x"$CPP" = x; then
3972 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3973 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
3974
3975 if test "${emacs_cv_sunpro_c+set}" = set; then
3976 $as_echo_n "(cached) " >&6
3977 else
3978 cat >conftest.$ac_ext <<_ACEOF
3979 /* confdefs.h. */
3980 _ACEOF
3981 cat confdefs.h >>conftest.$ac_ext
3982 cat >>conftest.$ac_ext <<_ACEOF
3983 /* end confdefs.h. */
3984
3985 int
3986 main ()
3987 {
3988 #ifndef __SUNPRO_C
3989 fail;
3990 #endif
3991
3992 ;
3993 return 0;
3994 }
3995 _ACEOF
3996 rm -f conftest.$ac_objext conftest$ac_exeext
3997 if { (ac_try="$ac_link"
3998 case "(($ac_try" in
3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000 *) ac_try_echo=$ac_try;;
4001 esac
4002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4003 $as_echo "$ac_try_echo") >&5
4004 (eval "$ac_link") 2>conftest.er1
4005 ac_status=$?
4006 grep -v '^ *+' conftest.er1 >conftest.err
4007 rm -f conftest.er1
4008 cat conftest.err >&5
4009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); } && {
4011 test -z "$ac_c_werror_flag" ||
4012 test ! -s conftest.err
4013 } && test -s conftest$ac_exeext && {
4014 test "$cross_compiling" = yes ||
4015 $as_test_x conftest$ac_exeext
4016 }; then
4017 emacs_cv_sunpro_c=yes
4018 else
4019 $as_echo "$as_me: failed program was:" >&5
4020 sed 's/^/| /' conftest.$ac_ext >&5
4021
4022 emacs_cv_sunpro_c=no
4023 fi
4024
4025 rm -rf conftest.dSYM
4026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4027 conftest$ac_exeext conftest.$ac_ext
4028 fi
4029
4030 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4031 $as_echo "$emacs_cv_sunpro_c" >&6; }
4032
4033 if test x"$emacs_cv_sunpro_c" = xyes; then
4034 NON_GNU_CPP="$CC -E -Xs"
4035 fi
4036 fi
4037
4038 #### Some systems specify a CPP to use unless we are using GCC.
4039 #### Now that we know whether we are using GCC, we can decide whether
4040 #### to use that one.
4041 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4042 then
4043 CPP="$NON_GNU_CPP"
4044 fi
4045
4046 #### Some systems specify a CC to use unless we are using GCC.
4047 #### Now that we know whether we are using GCC, we can decide whether
4048 #### to use that one.
4049 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4050 test x$cc_specified != xyes
4051 then
4052 CC="$NON_GNU_CC"
4053 fi
4054
4055 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4056 then
4057 CC="$CC $GCC_TEST_OPTIONS"
4058 fi
4059
4060 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4061 then
4062 CC="$CC $NON_GCC_TEST_OPTIONS"
4063 fi
4064
4065 ac_ext=c
4066 ac_cpp='$CPP $CPPFLAGS'
4067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4070 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4071 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4072 # On Suns, sometimes $CPP names a directory.
4073 if test -n "$CPP" && test -d "$CPP"; then
4074 CPP=
4075 fi
4076 if test -z "$CPP"; then
4077 if test "${ac_cv_prog_CPP+set}" = set; then
4078 $as_echo_n "(cached) " >&6
4079 else
4080 # Double quotes because CPP needs to be expanded
4081 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4082 do
4083 ac_preproc_ok=false
4084 for ac_c_preproc_warn_flag in '' yes
4085 do
4086 # Use a header file that comes with gcc, so configuring glibc
4087 # with a fresh cross-compiler works.
4088 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4089 # <limits.h> exists even on freestanding compilers.
4090 # On the NeXT, cc -E runs the code through the compiler's parser,
4091 # not just through cpp. "Syntax error" is here to catch this case.
4092 cat >conftest.$ac_ext <<_ACEOF
4093 /* confdefs.h. */
4094 _ACEOF
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>conftest.$ac_ext <<_ACEOF
4097 /* end confdefs.h. */
4098 #ifdef __STDC__
4099 # include <limits.h>
4100 #else
4101 # include <assert.h>
4102 #endif
4103 Syntax error
4104 _ACEOF
4105 if { (ac_try="$ac_cpp conftest.$ac_ext"
4106 case "(($ac_try" in
4107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4108 *) ac_try_echo=$ac_try;;
4109 esac
4110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4111 $as_echo "$ac_try_echo") >&5
4112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4113 ac_status=$?
4114 grep -v '^ *+' conftest.er1 >conftest.err
4115 rm -f conftest.er1
4116 cat conftest.err >&5
4117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); } >/dev/null && {
4119 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4120 test ! -s conftest.err
4121 }; then
4122 :
4123 else
4124 $as_echo "$as_me: failed program was:" >&5
4125 sed 's/^/| /' conftest.$ac_ext >&5
4126
4127 # Broken: fails on valid input.
4128 continue
4129 fi
4130
4131 rm -f conftest.err conftest.$ac_ext
4132
4133 # OK, works on sane cases. Now check whether nonexistent headers
4134 # can be detected and how.
4135 cat >conftest.$ac_ext <<_ACEOF
4136 /* confdefs.h. */
4137 _ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h. */
4141 #include <ac_nonexistent.h>
4142 _ACEOF
4143 if { (ac_try="$ac_cpp conftest.$ac_ext"
4144 case "(($ac_try" in
4145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4146 *) ac_try_echo=$ac_try;;
4147 esac
4148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4149 $as_echo "$ac_try_echo") >&5
4150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4151 ac_status=$?
4152 grep -v '^ *+' conftest.er1 >conftest.err
4153 rm -f conftest.er1
4154 cat conftest.err >&5
4155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); } >/dev/null && {
4157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4158 test ! -s conftest.err
4159 }; then
4160 # Broken: success on invalid input.
4161 continue
4162 else
4163 $as_echo "$as_me: failed program was:" >&5
4164 sed 's/^/| /' conftest.$ac_ext >&5
4165
4166 # Passes both tests.
4167 ac_preproc_ok=:
4168 break
4169 fi
4170
4171 rm -f conftest.err conftest.$ac_ext
4172
4173 done
4174 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4175 rm -f conftest.err conftest.$ac_ext
4176 if $ac_preproc_ok; then
4177 break
4178 fi
4179
4180 done
4181 ac_cv_prog_CPP=$CPP
4182
4183 fi
4184 CPP=$ac_cv_prog_CPP
4185 else
4186 ac_cv_prog_CPP=$CPP
4187 fi
4188 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4189 $as_echo "$CPP" >&6; }
4190 ac_preproc_ok=false
4191 for ac_c_preproc_warn_flag in '' yes
4192 do
4193 # Use a header file that comes with gcc, so configuring glibc
4194 # with a fresh cross-compiler works.
4195 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4196 # <limits.h> exists even on freestanding compilers.
4197 # On the NeXT, cc -E runs the code through the compiler's parser,
4198 # not just through cpp. "Syntax error" is here to catch this case.
4199 cat >conftest.$ac_ext <<_ACEOF
4200 /* confdefs.h. */
4201 _ACEOF
4202 cat confdefs.h >>conftest.$ac_ext
4203 cat >>conftest.$ac_ext <<_ACEOF
4204 /* end confdefs.h. */
4205 #ifdef __STDC__
4206 # include <limits.h>
4207 #else
4208 # include <assert.h>
4209 #endif
4210 Syntax error
4211 _ACEOF
4212 if { (ac_try="$ac_cpp conftest.$ac_ext"
4213 case "(($ac_try" in
4214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215 *) ac_try_echo=$ac_try;;
4216 esac
4217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4218 $as_echo "$ac_try_echo") >&5
4219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4220 ac_status=$?
4221 grep -v '^ *+' conftest.er1 >conftest.err
4222 rm -f conftest.er1
4223 cat conftest.err >&5
4224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } >/dev/null && {
4226 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4227 test ! -s conftest.err
4228 }; then
4229 :
4230 else
4231 $as_echo "$as_me: failed program was:" >&5
4232 sed 's/^/| /' conftest.$ac_ext >&5
4233
4234 # Broken: fails on valid input.
4235 continue
4236 fi
4237
4238 rm -f conftest.err conftest.$ac_ext
4239
4240 # OK, works on sane cases. Now check whether nonexistent headers
4241 # can be detected and how.
4242 cat >conftest.$ac_ext <<_ACEOF
4243 /* confdefs.h. */
4244 _ACEOF
4245 cat confdefs.h >>conftest.$ac_ext
4246 cat >>conftest.$ac_ext <<_ACEOF
4247 /* end confdefs.h. */
4248 #include <ac_nonexistent.h>
4249 _ACEOF
4250 if { (ac_try="$ac_cpp conftest.$ac_ext"
4251 case "(($ac_try" in
4252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253 *) ac_try_echo=$ac_try;;
4254 esac
4255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4256 $as_echo "$ac_try_echo") >&5
4257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4258 ac_status=$?
4259 grep -v '^ *+' conftest.er1 >conftest.err
4260 rm -f conftest.er1
4261 cat conftest.err >&5
4262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); } >/dev/null && {
4264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4265 test ! -s conftest.err
4266 }; then
4267 # Broken: success on invalid input.
4268 continue
4269 else
4270 $as_echo "$as_me: failed program was:" >&5
4271 sed 's/^/| /' conftest.$ac_ext >&5
4272
4273 # Passes both tests.
4274 ac_preproc_ok=:
4275 break
4276 fi
4277
4278 rm -f conftest.err conftest.$ac_ext
4279
4280 done
4281 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4282 rm -f conftest.err conftest.$ac_ext
4283 if $ac_preproc_ok; then
4284 :
4285 else
4286 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4287 See \`config.log' for more details." >&5
4288 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4289 See \`config.log' for more details." >&2;}
4290 { (exit 1); exit 1; }; }
4291 fi
4292
4293 ac_ext=c
4294 ac_cpp='$CPP $CPPFLAGS'
4295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4298
4299
4300 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4301 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4302 if test "${ac_cv_path_GREP+set}" = set; then
4303 $as_echo_n "(cached) " >&6
4304 else
4305 if test -z "$GREP"; then
4306 ac_path_GREP_found=false
4307 # Loop through the user's path and test for each of PROGNAME-LIST
4308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4310 do
4311 IFS=$as_save_IFS
4312 test -z "$as_dir" && as_dir=.
4313 for ac_prog in grep ggrep; do
4314 for ac_exec_ext in '' $ac_executable_extensions; do
4315 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4316 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4317 # Check for GNU ac_path_GREP and select it if it is found.
4318 # Check for GNU $ac_path_GREP
4319 case `"$ac_path_GREP" --version 2>&1` in
4320 *GNU*)
4321 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4322 *)
4323 ac_count=0
4324 $as_echo_n 0123456789 >"conftest.in"
4325 while :
4326 do
4327 cat "conftest.in" "conftest.in" >"conftest.tmp"
4328 mv "conftest.tmp" "conftest.in"
4329 cp "conftest.in" "conftest.nl"
4330 $as_echo 'GREP' >> "conftest.nl"
4331 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4332 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4333 ac_count=`expr $ac_count + 1`
4334 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4335 # Best one so far, save it but keep looking for a better one
4336 ac_cv_path_GREP="$ac_path_GREP"
4337 ac_path_GREP_max=$ac_count
4338 fi
4339 # 10*(2^10) chars as input seems more than enough
4340 test $ac_count -gt 10 && break
4341 done
4342 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4343 esac
4344
4345 $ac_path_GREP_found && break 3
4346 done
4347 done
4348 done
4349 IFS=$as_save_IFS
4350 if test -z "$ac_cv_path_GREP"; then
4351 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4352 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4353 { (exit 1); exit 1; }; }
4354 fi
4355 else
4356 ac_cv_path_GREP=$GREP
4357 fi
4358
4359 fi
4360 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4361 $as_echo "$ac_cv_path_GREP" >&6; }
4362 GREP="$ac_cv_path_GREP"
4363
4364
4365 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4366 $as_echo_n "checking for egrep... " >&6; }
4367 if test "${ac_cv_path_EGREP+set}" = set; then
4368 $as_echo_n "(cached) " >&6
4369 else
4370 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4371 then ac_cv_path_EGREP="$GREP -E"
4372 else
4373 if test -z "$EGREP"; then
4374 ac_path_EGREP_found=false
4375 # Loop through the user's path and test for each of PROGNAME-LIST
4376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4378 do
4379 IFS=$as_save_IFS
4380 test -z "$as_dir" && as_dir=.
4381 for ac_prog in egrep; do
4382 for ac_exec_ext in '' $ac_executable_extensions; do
4383 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4384 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4385 # Check for GNU ac_path_EGREP and select it if it is found.
4386 # Check for GNU $ac_path_EGREP
4387 case `"$ac_path_EGREP" --version 2>&1` in
4388 *GNU*)
4389 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4390 *)
4391 ac_count=0
4392 $as_echo_n 0123456789 >"conftest.in"
4393 while :
4394 do
4395 cat "conftest.in" "conftest.in" >"conftest.tmp"
4396 mv "conftest.tmp" "conftest.in"
4397 cp "conftest.in" "conftest.nl"
4398 $as_echo 'EGREP' >> "conftest.nl"
4399 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4400 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4401 ac_count=`expr $ac_count + 1`
4402 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4403 # Best one so far, save it but keep looking for a better one
4404 ac_cv_path_EGREP="$ac_path_EGREP"
4405 ac_path_EGREP_max=$ac_count
4406 fi
4407 # 10*(2^10) chars as input seems more than enough
4408 test $ac_count -gt 10 && break
4409 done
4410 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4411 esac
4412
4413 $ac_path_EGREP_found && break 3
4414 done
4415 done
4416 done
4417 IFS=$as_save_IFS
4418 if test -z "$ac_cv_path_EGREP"; then
4419 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4420 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4421 { (exit 1); exit 1; }; }
4422 fi
4423 else
4424 ac_cv_path_EGREP=$EGREP
4425 fi
4426
4427 fi
4428 fi
4429 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4430 $as_echo "$ac_cv_path_EGREP" >&6; }
4431 EGREP="$ac_cv_path_EGREP"
4432
4433
4434 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4435 $as_echo_n "checking for ANSI C header files... " >&6; }
4436 if test "${ac_cv_header_stdc+set}" = set; then
4437 $as_echo_n "(cached) " >&6
4438 else
4439 cat >conftest.$ac_ext <<_ACEOF
4440 /* confdefs.h. */
4441 _ACEOF
4442 cat confdefs.h >>conftest.$ac_ext
4443 cat >>conftest.$ac_ext <<_ACEOF
4444 /* end confdefs.h. */
4445 #include <stdlib.h>
4446 #include <stdarg.h>
4447 #include <string.h>
4448 #include <float.h>
4449
4450 int
4451 main ()
4452 {
4453
4454 ;
4455 return 0;
4456 }
4457 _ACEOF
4458 rm -f conftest.$ac_objext
4459 if { (ac_try="$ac_compile"
4460 case "(($ac_try" in
4461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4462 *) ac_try_echo=$ac_try;;
4463 esac
4464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4465 $as_echo "$ac_try_echo") >&5
4466 (eval "$ac_compile") 2>conftest.er1
4467 ac_status=$?
4468 grep -v '^ *+' conftest.er1 >conftest.err
4469 rm -f conftest.er1
4470 cat conftest.err >&5
4471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); } && {
4473 test -z "$ac_c_werror_flag" ||
4474 test ! -s conftest.err
4475 } && test -s conftest.$ac_objext; then
4476 ac_cv_header_stdc=yes
4477 else
4478 $as_echo "$as_me: failed program was:" >&5
4479 sed 's/^/| /' conftest.$ac_ext >&5
4480
4481 ac_cv_header_stdc=no
4482 fi
4483
4484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4485
4486 if test $ac_cv_header_stdc = yes; then
4487 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4488 cat >conftest.$ac_ext <<_ACEOF
4489 /* confdefs.h. */
4490 _ACEOF
4491 cat confdefs.h >>conftest.$ac_ext
4492 cat >>conftest.$ac_ext <<_ACEOF
4493 /* end confdefs.h. */
4494 #include <string.h>
4495
4496 _ACEOF
4497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4498 $EGREP "memchr" >/dev/null 2>&1; then
4499 :
4500 else
4501 ac_cv_header_stdc=no
4502 fi
4503 rm -f conftest*
4504
4505 fi
4506
4507 if test $ac_cv_header_stdc = yes; then
4508 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4509 cat >conftest.$ac_ext <<_ACEOF
4510 /* confdefs.h. */
4511 _ACEOF
4512 cat confdefs.h >>conftest.$ac_ext
4513 cat >>conftest.$ac_ext <<_ACEOF
4514 /* end confdefs.h. */
4515 #include <stdlib.h>
4516
4517 _ACEOF
4518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4519 $EGREP "free" >/dev/null 2>&1; then
4520 :
4521 else
4522 ac_cv_header_stdc=no
4523 fi
4524 rm -f conftest*
4525
4526 fi
4527
4528 if test $ac_cv_header_stdc = yes; then
4529 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4530 if test "$cross_compiling" = yes; then
4531 :
4532 else
4533 cat >conftest.$ac_ext <<_ACEOF
4534 /* confdefs.h. */
4535 _ACEOF
4536 cat confdefs.h >>conftest.$ac_ext
4537 cat >>conftest.$ac_ext <<_ACEOF
4538 /* end confdefs.h. */
4539 #include <ctype.h>
4540 #include <stdlib.h>
4541 #if ((' ' & 0x0FF) == 0x020)
4542 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4543 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4544 #else
4545 # define ISLOWER(c) \
4546 (('a' <= (c) && (c) <= 'i') \
4547 || ('j' <= (c) && (c) <= 'r') \
4548 || ('s' <= (c) && (c) <= 'z'))
4549 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4550 #endif
4551
4552 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4553 int
4554 main ()
4555 {
4556 int i;
4557 for (i = 0; i < 256; i++)
4558 if (XOR (islower (i), ISLOWER (i))
4559 || toupper (i) != TOUPPER (i))
4560 return 2;
4561 return 0;
4562 }
4563 _ACEOF
4564 rm -f conftest$ac_exeext
4565 if { (ac_try="$ac_link"
4566 case "(($ac_try" in
4567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4568 *) ac_try_echo=$ac_try;;
4569 esac
4570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4571 $as_echo "$ac_try_echo") >&5
4572 (eval "$ac_link") 2>&5
4573 ac_status=$?
4574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4576 { (case "(($ac_try" in
4577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578 *) ac_try_echo=$ac_try;;
4579 esac
4580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4581 $as_echo "$ac_try_echo") >&5
4582 (eval "$ac_try") 2>&5
4583 ac_status=$?
4584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); }; }; then
4586 :
4587 else
4588 $as_echo "$as_me: program exited with status $ac_status" >&5
4589 $as_echo "$as_me: failed program was:" >&5
4590 sed 's/^/| /' conftest.$ac_ext >&5
4591
4592 ( exit $ac_status )
4593 ac_cv_header_stdc=no
4594 fi
4595 rm -rf conftest.dSYM
4596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4597 fi
4598
4599
4600 fi
4601 fi
4602 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4603 $as_echo "$ac_cv_header_stdc" >&6; }
4604 if test $ac_cv_header_stdc = yes; then
4605
4606 cat >>confdefs.h <<\_ACEOF
4607 #define STDC_HEADERS 1
4608 _ACEOF
4609
4610 fi
4611
4612 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4623 inttypes.h stdint.h unistd.h
4624 do
4625 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4626 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4627 $as_echo_n "checking for $ac_header... " >&6; }
4628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4629 $as_echo_n "(cached) " >&6
4630 else
4631 cat >conftest.$ac_ext <<_ACEOF
4632 /* confdefs.h. */
4633 _ACEOF
4634 cat confdefs.h >>conftest.$ac_ext
4635 cat >>conftest.$ac_ext <<_ACEOF
4636 /* end confdefs.h. */
4637 $ac_includes_default
4638
4639 #include <$ac_header>
4640 _ACEOF
4641 rm -f conftest.$ac_objext
4642 if { (ac_try="$ac_compile"
4643 case "(($ac_try" in
4644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4645 *) ac_try_echo=$ac_try;;
4646 esac
4647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4648 $as_echo "$ac_try_echo") >&5
4649 (eval "$ac_compile") 2>conftest.er1
4650 ac_status=$?
4651 grep -v '^ *+' conftest.er1 >conftest.err
4652 rm -f conftest.er1
4653 cat conftest.err >&5
4654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); } && {
4656 test -z "$ac_c_werror_flag" ||
4657 test ! -s conftest.err
4658 } && test -s conftest.$ac_objext; then
4659 eval "$as_ac_Header=yes"
4660 else
4661 $as_echo "$as_me: failed program was:" >&5
4662 sed 's/^/| /' conftest.$ac_ext >&5
4663
4664 eval "$as_ac_Header=no"
4665 fi
4666
4667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4668 fi
4669 ac_res=`eval 'as_val=${'$as_ac_Header'}
4670 $as_echo "$as_val"'`
4671 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4672 $as_echo "$ac_res" >&6; }
4673 if test `eval 'as_val=${'$as_ac_Header'}
4674 $as_echo "$as_val"'` = yes; then
4675 cat >>confdefs.h <<_ACEOF
4676 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4677 _ACEOF
4678
4679 fi
4680
4681 done
4682
4683
4684
4685 if test "${ac_cv_header_minix_config_h+set}" = set; then
4686 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4687 $as_echo_n "checking for minix/config.h... " >&6; }
4688 if test "${ac_cv_header_minix_config_h+set}" = set; then
4689 $as_echo_n "(cached) " >&6
4690 fi
4691 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4692 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4693 else
4694 # Is the header compilable?
4695 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4696 $as_echo_n "checking minix/config.h usability... " >&6; }
4697 cat >conftest.$ac_ext <<_ACEOF
4698 /* confdefs.h. */
4699 _ACEOF
4700 cat confdefs.h >>conftest.$ac_ext
4701 cat >>conftest.$ac_ext <<_ACEOF
4702 /* end confdefs.h. */
4703 $ac_includes_default
4704 #include <minix/config.h>
4705 _ACEOF
4706 rm -f conftest.$ac_objext
4707 if { (ac_try="$ac_compile"
4708 case "(($ac_try" in
4709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4710 *) ac_try_echo=$ac_try;;
4711 esac
4712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4713 $as_echo "$ac_try_echo") >&5
4714 (eval "$ac_compile") 2>conftest.er1
4715 ac_status=$?
4716 grep -v '^ *+' conftest.er1 >conftest.err
4717 rm -f conftest.er1
4718 cat conftest.err >&5
4719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } && {
4721 test -z "$ac_c_werror_flag" ||
4722 test ! -s conftest.err
4723 } && test -s conftest.$ac_objext; then
4724 ac_header_compiler=yes
4725 else
4726 $as_echo "$as_me: failed program was:" >&5
4727 sed 's/^/| /' conftest.$ac_ext >&5
4728
4729 ac_header_compiler=no
4730 fi
4731
4732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4733 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4734 $as_echo "$ac_header_compiler" >&6; }
4735
4736 # Is the header present?
4737 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4738 $as_echo_n "checking minix/config.h presence... " >&6; }
4739 cat >conftest.$ac_ext <<_ACEOF
4740 /* confdefs.h. */
4741 _ACEOF
4742 cat confdefs.h >>conftest.$ac_ext
4743 cat >>conftest.$ac_ext <<_ACEOF
4744 /* end confdefs.h. */
4745 #include <minix/config.h>
4746 _ACEOF
4747 if { (ac_try="$ac_cpp conftest.$ac_ext"
4748 case "(($ac_try" in
4749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4750 *) ac_try_echo=$ac_try;;
4751 esac
4752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4753 $as_echo "$ac_try_echo") >&5
4754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4755 ac_status=$?
4756 grep -v '^ *+' conftest.er1 >conftest.err
4757 rm -f conftest.er1
4758 cat conftest.err >&5
4759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); } >/dev/null && {
4761 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4762 test ! -s conftest.err
4763 }; then
4764 ac_header_preproc=yes
4765 else
4766 $as_echo "$as_me: failed program was:" >&5
4767 sed 's/^/| /' conftest.$ac_ext >&5
4768
4769 ac_header_preproc=no
4770 fi
4771
4772 rm -f conftest.err conftest.$ac_ext
4773 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4774 $as_echo "$ac_header_preproc" >&6; }
4775
4776 # So? What about this header?
4777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4778 yes:no: )
4779 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4780 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4781 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4782 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4783 ac_header_preproc=yes
4784 ;;
4785 no:yes:* )
4786 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4787 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4788 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4789 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4790 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4791 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4792 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4793 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4794 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4795 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4796 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4797 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4798
4799 ;;
4800 esac
4801 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4802 $as_echo_n "checking for minix/config.h... " >&6; }
4803 if test "${ac_cv_header_minix_config_h+set}" = set; then
4804 $as_echo_n "(cached) " >&6
4805 else
4806 ac_cv_header_minix_config_h=$ac_header_preproc
4807 fi
4808 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4809 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4810
4811 fi
4812 if test $ac_cv_header_minix_config_h = yes; then
4813 MINIX=yes
4814 else
4815 MINIX=
4816 fi
4817
4818
4819 if test "$MINIX" = yes; then
4820
4821 cat >>confdefs.h <<\_ACEOF
4822 #define _POSIX_SOURCE 1
4823 _ACEOF
4824
4825
4826 cat >>confdefs.h <<\_ACEOF
4827 #define _POSIX_1_SOURCE 2
4828 _ACEOF
4829
4830
4831 cat >>confdefs.h <<\_ACEOF
4832 #define _MINIX 1
4833 _ACEOF
4834
4835 fi
4836
4837
4838
4839 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4840 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4841 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4842 $as_echo_n "(cached) " >&6
4843 else
4844 cat >conftest.$ac_ext <<_ACEOF
4845 /* confdefs.h. */
4846 _ACEOF
4847 cat confdefs.h >>conftest.$ac_ext
4848 cat >>conftest.$ac_ext <<_ACEOF
4849 /* end confdefs.h. */
4850
4851 # define __EXTENSIONS__ 1
4852 $ac_includes_default
4853 int
4854 main ()
4855 {
4856
4857 ;
4858 return 0;
4859 }
4860 _ACEOF
4861 rm -f conftest.$ac_objext
4862 if { (ac_try="$ac_compile"
4863 case "(($ac_try" in
4864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4865 *) ac_try_echo=$ac_try;;
4866 esac
4867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4868 $as_echo "$ac_try_echo") >&5
4869 (eval "$ac_compile") 2>conftest.er1
4870 ac_status=$?
4871 grep -v '^ *+' conftest.er1 >conftest.err
4872 rm -f conftest.er1
4873 cat conftest.err >&5
4874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); } && {
4876 test -z "$ac_c_werror_flag" ||
4877 test ! -s conftest.err
4878 } && test -s conftest.$ac_objext; then
4879 ac_cv_safe_to_define___extensions__=yes
4880 else
4881 $as_echo "$as_me: failed program was:" >&5
4882 sed 's/^/| /' conftest.$ac_ext >&5
4883
4884 ac_cv_safe_to_define___extensions__=no
4885 fi
4886
4887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4888 fi
4889 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4890 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4891 test $ac_cv_safe_to_define___extensions__ = yes &&
4892 cat >>confdefs.h <<\_ACEOF
4893 #define __EXTENSIONS__ 1
4894 _ACEOF
4895
4896 cat >>confdefs.h <<\_ACEOF
4897 #define _ALL_SOURCE 1
4898 _ACEOF
4899
4900 cat >>confdefs.h <<\_ACEOF
4901 #define _GNU_SOURCE 1
4902 _ACEOF
4903
4904 cat >>confdefs.h <<\_ACEOF
4905 #define _POSIX_PTHREAD_SEMANTICS 1
4906 _ACEOF
4907
4908 cat >>confdefs.h <<\_ACEOF
4909 #define _TANDEM_SOURCE 1
4910 _ACEOF
4911
4912
4913
4914 ### Use -Wno-pointer-sign if the compiler supports it
4915 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4916 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4917 SAVE_CFLAGS="$CFLAGS"
4918 CFLAGS="$CFLAGS -Wno-pointer-sign"
4919 cat >conftest.$ac_ext <<_ACEOF
4920 /* confdefs.h. */
4921 _ACEOF
4922 cat confdefs.h >>conftest.$ac_ext
4923 cat >>conftest.$ac_ext <<_ACEOF
4924 /* end confdefs.h. */
4925
4926 int
4927 main ()
4928 {
4929
4930 ;
4931 return 0;
4932 }
4933 _ACEOF
4934 rm -f conftest.$ac_objext
4935 if { (ac_try="$ac_compile"
4936 case "(($ac_try" in
4937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4938 *) ac_try_echo=$ac_try;;
4939 esac
4940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4941 $as_echo "$ac_try_echo") >&5
4942 (eval "$ac_compile") 2>conftest.er1
4943 ac_status=$?
4944 grep -v '^ *+' conftest.er1 >conftest.err
4945 rm -f conftest.er1
4946 cat conftest.err >&5
4947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); } && {
4949 test -z "$ac_c_werror_flag" ||
4950 test ! -s conftest.err
4951 } && test -s conftest.$ac_objext; then
4952 has_option=yes
4953 else
4954 $as_echo "$as_me: failed program was:" >&5
4955 sed 's/^/| /' conftest.$ac_ext >&5
4956
4957 has_option=no
4958 fi
4959
4960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4961 if test $has_option = yes; then
4962 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4963 fi
4964 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4965 $as_echo "$has_option" >&6; }
4966 CFLAGS="$SAVE_CFLAGS"
4967 unset has_option
4968 unset SAVE_CFLAGS
4969
4970 ### Use -Wdeclaration-after-statement if the compiler supports it
4971 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4972 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4973 SAVE_CFLAGS="$CFLAGS"
4974 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4975 cat >conftest.$ac_ext <<_ACEOF
4976 /* confdefs.h. */
4977 _ACEOF
4978 cat confdefs.h >>conftest.$ac_ext
4979 cat >>conftest.$ac_ext <<_ACEOF
4980 /* end confdefs.h. */
4981
4982 int
4983 main ()
4984 {
4985
4986 ;
4987 return 0;
4988 }
4989 _ACEOF
4990 rm -f conftest.$ac_objext
4991 if { (ac_try="$ac_compile"
4992 case "(($ac_try" in
4993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4994 *) ac_try_echo=$ac_try;;
4995 esac
4996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4997 $as_echo "$ac_try_echo") >&5
4998 (eval "$ac_compile") 2>conftest.er1
4999 ac_status=$?
5000 grep -v '^ *+' conftest.er1 >conftest.err
5001 rm -f conftest.er1
5002 cat conftest.err >&5
5003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); } && {
5005 test -z "$ac_c_werror_flag" ||
5006 test ! -s conftest.err
5007 } && test -s conftest.$ac_objext; then
5008 has_option=yes
5009 else
5010 $as_echo "$as_me: failed program was:" >&5
5011 sed 's/^/| /' conftest.$ac_ext >&5
5012
5013 has_option=no
5014 fi
5015
5016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5017 if test $has_option = yes; then
5018 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5019 fi
5020 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
5021 $as_echo "$has_option" >&6; }
5022 CFLAGS="$SAVE_CFLAGS"
5023 unset has_option
5024 unset SAVE_CFLAGS
5025
5026 #### Some other nice autoconf tests.
5027
5028 ac_ext=c
5029 ac_cpp='$CPP $CPPFLAGS'
5030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5033 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5034 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5035 # On Suns, sometimes $CPP names a directory.
5036 if test -n "$CPP" && test -d "$CPP"; then
5037 CPP=
5038 fi
5039 if test -z "$CPP"; then
5040 if test "${ac_cv_prog_CPP+set}" = set; then
5041 $as_echo_n "(cached) " >&6
5042 else
5043 # Double quotes because CPP needs to be expanded
5044 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5045 do
5046 ac_preproc_ok=false
5047 for ac_c_preproc_warn_flag in '' yes
5048 do
5049 # Use a header file that comes with gcc, so configuring glibc
5050 # with a fresh cross-compiler works.
5051 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5052 # <limits.h> exists even on freestanding compilers.
5053 # On the NeXT, cc -E runs the code through the compiler's parser,
5054 # not just through cpp. "Syntax error" is here to catch this case.
5055 cat >conftest.$ac_ext <<_ACEOF
5056 /* confdefs.h. */
5057 _ACEOF
5058 cat confdefs.h >>conftest.$ac_ext
5059 cat >>conftest.$ac_ext <<_ACEOF
5060 /* end confdefs.h. */
5061 #ifdef __STDC__
5062 # include <limits.h>
5063 #else
5064 # include <assert.h>
5065 #endif
5066 Syntax error
5067 _ACEOF
5068 if { (ac_try="$ac_cpp conftest.$ac_ext"
5069 case "(($ac_try" in
5070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5071 *) ac_try_echo=$ac_try;;
5072 esac
5073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5074 $as_echo "$ac_try_echo") >&5
5075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5076 ac_status=$?
5077 grep -v '^ *+' conftest.er1 >conftest.err
5078 rm -f conftest.er1
5079 cat conftest.err >&5
5080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); } >/dev/null && {
5082 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5083 test ! -s conftest.err
5084 }; then
5085 :
5086 else
5087 $as_echo "$as_me: failed program was:" >&5
5088 sed 's/^/| /' conftest.$ac_ext >&5
5089
5090 # Broken: fails on valid input.
5091 continue
5092 fi
5093
5094 rm -f conftest.err conftest.$ac_ext
5095
5096 # OK, works on sane cases. Now check whether nonexistent headers
5097 # can be detected and how.
5098 cat >conftest.$ac_ext <<_ACEOF
5099 /* confdefs.h. */
5100 _ACEOF
5101 cat confdefs.h >>conftest.$ac_ext
5102 cat >>conftest.$ac_ext <<_ACEOF
5103 /* end confdefs.h. */
5104 #include <ac_nonexistent.h>
5105 _ACEOF
5106 if { (ac_try="$ac_cpp conftest.$ac_ext"
5107 case "(($ac_try" in
5108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5109 *) ac_try_echo=$ac_try;;
5110 esac
5111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5112 $as_echo "$ac_try_echo") >&5
5113 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5114 ac_status=$?
5115 grep -v '^ *+' conftest.er1 >conftest.err
5116 rm -f conftest.er1
5117 cat conftest.err >&5
5118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); } >/dev/null && {
5120 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5121 test ! -s conftest.err
5122 }; then
5123 # Broken: success on invalid input.
5124 continue
5125 else
5126 $as_echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.$ac_ext >&5
5128
5129 # Passes both tests.
5130 ac_preproc_ok=:
5131 break
5132 fi
5133
5134 rm -f conftest.err conftest.$ac_ext
5135
5136 done
5137 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5138 rm -f conftest.err conftest.$ac_ext
5139 if $ac_preproc_ok; then
5140 break
5141 fi
5142
5143 done
5144 ac_cv_prog_CPP=$CPP
5145
5146 fi
5147 CPP=$ac_cv_prog_CPP
5148 else
5149 ac_cv_prog_CPP=$CPP
5150 fi
5151 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5152 $as_echo "$CPP" >&6; }
5153 ac_preproc_ok=false
5154 for ac_c_preproc_warn_flag in '' yes
5155 do
5156 # Use a header file that comes with gcc, so configuring glibc
5157 # with a fresh cross-compiler works.
5158 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5159 # <limits.h> exists even on freestanding compilers.
5160 # On the NeXT, cc -E runs the code through the compiler's parser,
5161 # not just through cpp. "Syntax error" is here to catch this case.
5162 cat >conftest.$ac_ext <<_ACEOF
5163 /* confdefs.h. */
5164 _ACEOF
5165 cat confdefs.h >>conftest.$ac_ext
5166 cat >>conftest.$ac_ext <<_ACEOF
5167 /* end confdefs.h. */
5168 #ifdef __STDC__
5169 # include <limits.h>
5170 #else
5171 # include <assert.h>
5172 #endif
5173 Syntax error
5174 _ACEOF
5175 if { (ac_try="$ac_cpp conftest.$ac_ext"
5176 case "(($ac_try" in
5177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5178 *) ac_try_echo=$ac_try;;
5179 esac
5180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5181 $as_echo "$ac_try_echo") >&5
5182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5183 ac_status=$?
5184 grep -v '^ *+' conftest.er1 >conftest.err
5185 rm -f conftest.er1
5186 cat conftest.err >&5
5187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); } >/dev/null && {
5189 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5190 test ! -s conftest.err
5191 }; then
5192 :
5193 else
5194 $as_echo "$as_me: failed program was:" >&5
5195 sed 's/^/| /' conftest.$ac_ext >&5
5196
5197 # Broken: fails on valid input.
5198 continue
5199 fi
5200
5201 rm -f conftest.err conftest.$ac_ext
5202
5203 # OK, works on sane cases. Now check whether nonexistent headers
5204 # can be detected and how.
5205 cat >conftest.$ac_ext <<_ACEOF
5206 /* confdefs.h. */
5207 _ACEOF
5208 cat confdefs.h >>conftest.$ac_ext
5209 cat >>conftest.$ac_ext <<_ACEOF
5210 /* end confdefs.h. */
5211 #include <ac_nonexistent.h>
5212 _ACEOF
5213 if { (ac_try="$ac_cpp conftest.$ac_ext"
5214 case "(($ac_try" in
5215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5216 *) ac_try_echo=$ac_try;;
5217 esac
5218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5219 $as_echo "$ac_try_echo") >&5
5220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5221 ac_status=$?
5222 grep -v '^ *+' conftest.er1 >conftest.err
5223 rm -f conftest.er1
5224 cat conftest.err >&5
5225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226 (exit $ac_status); } >/dev/null && {
5227 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5228 test ! -s conftest.err
5229 }; then
5230 # Broken: success on invalid input.
5231 continue
5232 else
5233 $as_echo "$as_me: failed program was:" >&5
5234 sed 's/^/| /' conftest.$ac_ext >&5
5235
5236 # Passes both tests.
5237 ac_preproc_ok=:
5238 break
5239 fi
5240
5241 rm -f conftest.err conftest.$ac_ext
5242
5243 done
5244 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5245 rm -f conftest.err conftest.$ac_ext
5246 if $ac_preproc_ok; then
5247 :
5248 else
5249 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5250 See \`config.log' for more details." >&5
5251 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5252 See \`config.log' for more details." >&2;}
5253 { (exit 1); exit 1; }; }
5254 fi
5255
5256 ac_ext=c
5257 ac_cpp='$CPP $CPPFLAGS'
5258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5261
5262 # Find a good install program. We prefer a C program (faster),
5263 # so one script is as good as another. But avoid the broken or
5264 # incompatible versions:
5265 # SysV /etc/install, /usr/sbin/install
5266 # SunOS /usr/etc/install
5267 # IRIX /sbin/install
5268 # AIX /bin/install
5269 # AmigaOS /C/install, which installs bootblocks on floppy discs
5270 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5271 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5272 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5273 # OS/2's system install, which has a completely different semantic
5274 # ./install, which can be erroneously created by make from ./install.sh.
5275 # Reject install programs that cannot install multiple files.
5276 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5277 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5278 if test -z "$INSTALL"; then
5279 if test "${ac_cv_path_install+set}" = set; then
5280 $as_echo_n "(cached) " >&6
5281 else
5282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283 for as_dir in $PATH
5284 do
5285 IFS=$as_save_IFS
5286 test -z "$as_dir" && as_dir=.
5287 # Account for people who put trailing slashes in PATH elements.
5288 case $as_dir/ in
5289 ./ | .// | /cC/* | \
5290 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5291 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5292 /usr/ucb/* ) ;;
5293 *)
5294 # OSF1 and SCO ODT 3.0 have their own names for install.
5295 # Don't use installbsd from OSF since it installs stuff as root
5296 # by default.
5297 for ac_prog in ginstall scoinst install; do
5298 for ac_exec_ext in '' $ac_executable_extensions; do
5299 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5300 if test $ac_prog = install &&
5301 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5302 # AIX install. It has an incompatible calling convention.
5303 :
5304 elif test $ac_prog = install &&
5305 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5306 # program-specific install script used by HP pwplus--don't use.
5307 :
5308 else
5309 rm -rf conftest.one conftest.two conftest.dir
5310 echo one > conftest.one
5311 echo two > conftest.two
5312 mkdir conftest.dir
5313 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5314 test -s conftest.one && test -s conftest.two &&
5315 test -s conftest.dir/conftest.one &&
5316 test -s conftest.dir/conftest.two
5317 then
5318 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5319 break 3
5320 fi
5321 fi
5322 fi
5323 done
5324 done
5325 ;;
5326 esac
5327
5328 done
5329 IFS=$as_save_IFS
5330
5331 rm -rf conftest.one conftest.two conftest.dir
5332
5333 fi
5334 if test "${ac_cv_path_install+set}" = set; then
5335 INSTALL=$ac_cv_path_install
5336 else
5337 # As a last resort, use the slow shell script. Don't cache a
5338 # value for INSTALL within a source directory, because that will
5339 # break other packages using the cache if that directory is
5340 # removed, or if the value is a relative name.
5341 INSTALL=$ac_install_sh
5342 fi
5343 fi
5344 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5345 $as_echo "$INSTALL" >&6; }
5346
5347 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5348 # It thinks the first close brace ends the variable substitution.
5349 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5350
5351 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5352
5353 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5354
5355 if test "x$RANLIB" = x; then
5356 if test -n "$ac_tool_prefix"; then
5357 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5358 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5359 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5360 $as_echo_n "checking for $ac_word... " >&6; }
5361 if test "${ac_cv_prog_RANLIB+set}" = set; then
5362 $as_echo_n "(cached) " >&6
5363 else
5364 if test -n "$RANLIB"; then
5365 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5366 else
5367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5368 for as_dir in $PATH
5369 do
5370 IFS=$as_save_IFS
5371 test -z "$as_dir" && as_dir=.
5372 for ac_exec_ext in '' $ac_executable_extensions; do
5373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5374 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5375 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5376 break 2
5377 fi
5378 done
5379 done
5380 IFS=$as_save_IFS
5381
5382 fi
5383 fi
5384 RANLIB=$ac_cv_prog_RANLIB
5385 if test -n "$RANLIB"; then
5386 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5387 $as_echo "$RANLIB" >&6; }
5388 else
5389 { $as_echo "$as_me:$LINENO: result: no" >&5
5390 $as_echo "no" >&6; }
5391 fi
5392
5393
5394 fi
5395 if test -z "$ac_cv_prog_RANLIB"; then
5396 ac_ct_RANLIB=$RANLIB
5397 # Extract the first word of "ranlib", so it can be a program name with args.
5398 set dummy ranlib; ac_word=$2
5399 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5400 $as_echo_n "checking for $ac_word... " >&6; }
5401 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5402 $as_echo_n "(cached) " >&6
5403 else
5404 if test -n "$ac_ct_RANLIB"; then
5405 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5406 else
5407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408 for as_dir in $PATH
5409 do
5410 IFS=$as_save_IFS
5411 test -z "$as_dir" && as_dir=.
5412 for ac_exec_ext in '' $ac_executable_extensions; do
5413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5414 ac_cv_prog_ac_ct_RANLIB="ranlib"
5415 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5416 break 2
5417 fi
5418 done
5419 done
5420 IFS=$as_save_IFS
5421
5422 fi
5423 fi
5424 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5425 if test -n "$ac_ct_RANLIB"; then
5426 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5427 $as_echo "$ac_ct_RANLIB" >&6; }
5428 else
5429 { $as_echo "$as_me:$LINENO: result: no" >&5
5430 $as_echo "no" >&6; }
5431 fi
5432
5433 if test "x$ac_ct_RANLIB" = x; then
5434 RANLIB=":"
5435 else
5436 case $cross_compiling:$ac_tool_warned in
5437 yes:)
5438 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5439 whose name does not start with the host triplet. If you think this
5440 configuration is useful to you, please write to autoconf@gnu.org." >&5
5441 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5442 whose name does not start with the host triplet. If you think this
5443 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5444 ac_tool_warned=yes ;;
5445 esac
5446 RANLIB=$ac_ct_RANLIB
5447 fi
5448 else
5449 RANLIB="$ac_cv_prog_RANLIB"
5450 fi
5451
5452 fi
5453
5454 ## Although we're running on an amd64 kernel, we're actually compiling for
5455 ## the x86 architecture. The user should probably have provided an
5456 ## explicit --build to `configure', but if everything else than the kernel
5457 ## is running in i386 mode, we can help them out.
5458 if test "$machine" = "amdx86-64"; then
5459 { $as_echo "$as_me:$LINENO: checking whether i386 is declared" >&5
5460 $as_echo_n "checking whether i386 is declared... " >&6; }
5461 if test "${ac_cv_have_decl_i386+set}" = set; then
5462 $as_echo_n "(cached) " >&6
5463 else
5464 cat >conftest.$ac_ext <<_ACEOF
5465 /* confdefs.h. */
5466 _ACEOF
5467 cat confdefs.h >>conftest.$ac_ext
5468 cat >>conftest.$ac_ext <<_ACEOF
5469 /* end confdefs.h. */
5470 $ac_includes_default
5471 int
5472 main ()
5473 {
5474 #ifndef i386
5475 (void) i386;
5476 #endif
5477
5478 ;
5479 return 0;
5480 }
5481 _ACEOF
5482 rm -f conftest.$ac_objext
5483 if { (ac_try="$ac_compile"
5484 case "(($ac_try" in
5485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486 *) ac_try_echo=$ac_try;;
5487 esac
5488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5489 $as_echo "$ac_try_echo") >&5
5490 (eval "$ac_compile") 2>conftest.er1
5491 ac_status=$?
5492 grep -v '^ *+' conftest.er1 >conftest.err
5493 rm -f conftest.er1
5494 cat conftest.err >&5
5495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); } && {
5497 test -z "$ac_c_werror_flag" ||
5498 test ! -s conftest.err
5499 } && test -s conftest.$ac_objext; then
5500 ac_cv_have_decl_i386=yes
5501 else
5502 $as_echo "$as_me: failed program was:" >&5
5503 sed 's/^/| /' conftest.$ac_ext >&5
5504
5505 ac_cv_have_decl_i386=no
5506 fi
5507
5508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5509 fi
5510 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_i386" >&5
5511 $as_echo "$ac_cv_have_decl_i386" >&6; }
5512
5513 if test "$ac_cv_have_decl_i386" = "yes"; then
5514 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5515 machine=intel386
5516 machfile="m/${machine}.h"
5517 fi
5518 fi
5519
5520 # Extract the first word of "install-info", so it can be a program name with args.
5521 set dummy install-info; ac_word=$2
5522 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5523 $as_echo_n "checking for $ac_word... " >&6; }
5524 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5525 $as_echo_n "(cached) " >&6
5526 else
5527 case $INSTALL_INFO in
5528 [\\/]* | ?:[\\/]*)
5529 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5530 ;;
5531 *)
5532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533 for as_dir in $PATH
5534 do
5535 IFS=$as_save_IFS
5536 test -z "$as_dir" && as_dir=.
5537 for ac_exec_ext in '' $ac_executable_extensions; do
5538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5539 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5540 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5541 break 2
5542 fi
5543 done
5544 done
5545 IFS=$as_save_IFS
5546
5547 ;;
5548 esac
5549 fi
5550 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5551 if test -n "$INSTALL_INFO"; then
5552 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5553 $as_echo "$INSTALL_INFO" >&6; }
5554 else
5555 { $as_echo "$as_me:$LINENO: result: no" >&5
5556 $as_echo "no" >&6; }
5557 fi
5558
5559
5560 # Extract the first word of "install-info", so it can be a program name with args.
5561 set dummy install-info; ac_word=$2
5562 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5563 $as_echo_n "checking for $ac_word... " >&6; }
5564 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5565 $as_echo_n "(cached) " >&6
5566 else
5567 case $INSTALL_INFO in
5568 [\\/]* | ?:[\\/]*)
5569 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5570 ;;
5571 *)
5572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573 for as_dir in /usr/sbin
5574 do
5575 IFS=$as_save_IFS
5576 test -z "$as_dir" && as_dir=.
5577 for ac_exec_ext in '' $ac_executable_extensions; do
5578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5579 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5580 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5581 break 2
5582 fi
5583 done
5584 done
5585 IFS=$as_save_IFS
5586
5587 ;;
5588 esac
5589 fi
5590 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5591 if test -n "$INSTALL_INFO"; then
5592 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5593 $as_echo "$INSTALL_INFO" >&6; }
5594 else
5595 { $as_echo "$as_me:$LINENO: result: no" >&5
5596 $as_echo "no" >&6; }
5597 fi
5598
5599
5600 # Extract the first word of "install-info", so it can be a program name with args.
5601 set dummy install-info; ac_word=$2
5602 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5603 $as_echo_n "checking for $ac_word... " >&6; }
5604 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5605 $as_echo_n "(cached) " >&6
5606 else
5607 case $INSTALL_INFO in
5608 [\\/]* | ?:[\\/]*)
5609 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5610 ;;
5611 *)
5612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613 for as_dir in /sbin
5614 do
5615 IFS=$as_save_IFS
5616 test -z "$as_dir" && as_dir=.
5617 for ac_exec_ext in '' $ac_executable_extensions; do
5618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5619 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5620 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5621 break 2
5622 fi
5623 done
5624 done
5625 IFS=$as_save_IFS
5626
5627 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5628 ;;
5629 esac
5630 fi
5631 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5632 if test -n "$INSTALL_INFO"; then
5633 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5634 $as_echo "$INSTALL_INFO" >&6; }
5635 else
5636 { $as_echo "$as_me:$LINENO: result: no" >&5
5637 $as_echo "no" >&6; }
5638 fi
5639
5640
5641 # Extract the first word of "gzip", so it can be a program name with args.
5642 set dummy gzip; ac_word=$2
5643 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5644 $as_echo_n "checking for $ac_word... " >&6; }
5645 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5646 $as_echo_n "(cached) " >&6
5647 else
5648 case $GZIP_PROG in
5649 [\\/]* | ?:[\\/]*)
5650 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5651 ;;
5652 *)
5653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654 for as_dir in $PATH
5655 do
5656 IFS=$as_save_IFS
5657 test -z "$as_dir" && as_dir=.
5658 for ac_exec_ext in '' $ac_executable_extensions; do
5659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5660 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5661 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5662 break 2
5663 fi
5664 done
5665 done
5666 IFS=$as_save_IFS
5667
5668 ;;
5669 esac
5670 fi
5671 GZIP_PROG=$ac_cv_path_GZIP_PROG
5672 if test -n "$GZIP_PROG"; then
5673 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5674 $as_echo "$GZIP_PROG" >&6; }
5675 else
5676 { $as_echo "$as_me:$LINENO: result: no" >&5
5677 $as_echo "no" >&6; }
5678 fi
5679
5680
5681
5682
5683 ## Need makeinfo >= 4.6 (?) to build the manuals.
5684 # Extract the first word of "makeinfo", so it can be a program name with args.
5685 set dummy makeinfo; ac_word=$2
5686 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5687 $as_echo_n "checking for $ac_word... " >&6; }
5688 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5689 $as_echo_n "(cached) " >&6
5690 else
5691 case $MAKEINFO in
5692 [\\/]* | ?:[\\/]*)
5693 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5694 ;;
5695 *)
5696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697 for as_dir in $PATH
5698 do
5699 IFS=$as_save_IFS
5700 test -z "$as_dir" && as_dir=.
5701 for ac_exec_ext in '' $ac_executable_extensions; do
5702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5703 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5704 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5705 break 2
5706 fi
5707 done
5708 done
5709 IFS=$as_save_IFS
5710
5711 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5712 ;;
5713 esac
5714 fi
5715 MAKEINFO=$ac_cv_path_MAKEINFO
5716 if test -n "$MAKEINFO"; then
5717 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5718 $as_echo "$MAKEINFO" >&6; }
5719 else
5720 { $as_echo "$as_me:$LINENO: result: no" >&5
5721 $as_echo "no" >&6; }
5722 fi
5723
5724
5725 if test "$MAKEINFO" != "no" && \
5726 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
5727 MAKEINFO=no
5728 fi
5729
5730 ## Makeinfo is unusual. For a released Emacs, the manuals are
5731 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5732 ## therefore in the category of "special tools" not normally required, which
5733 ## configure does not have to check for (eg autoconf itself).
5734 ## In a Bazaar checkout on the other hand, the manuals are not included.
5735 ## So makeinfo is a requirement to build from Bazaar, and configure
5736 ## should test for it as it does for any other build requirement.
5737 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5738 ## with pre-built manuals, from a Bazaar checkout.
5739 if test "$MAKEINFO" = "no"; then
5740 if test "x${with_makeinfo}" = "xno"; then
5741 MAKEINFO=off
5742 elif test ! -e $srcdir/info/emacs; then
5743 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5744 source tree does not seem to have pre-built manuals in the \`info' directory.
5745 Either install a suitable version of makeinfo, or re-run configure
5746 with the \`--without-makeinfo' option to build without the manuals. " >&5
5747 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5748 source tree does not seem to have pre-built manuals in the \`info' directory.
5749 Either install a suitable version of makeinfo, or re-run configure
5750 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5751 { (exit 1); exit 1; }; }
5752 fi
5753 fi
5754
5755
5756 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5757 then
5758 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5759 fi
5760
5761 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5762 then
5763 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5764 fi
5765
5766
5767 late_LDFLAGS=$LDFLAGS
5768 if test "$GCC" = yes; then
5769 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5770 else
5771 LDFLAGS="$LDFLAGS -znocombreloc"
5772 fi
5773
5774 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5775 $as_echo_n "checking for -znocombreloc... " >&6; }
5776 cat >conftest.$ac_ext <<_ACEOF
5777 main(){return 0;}
5778 _ACEOF
5779 rm -f conftest.$ac_objext conftest$ac_exeext
5780 if { (ac_try="$ac_link"
5781 case "(($ac_try" in
5782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5783 *) ac_try_echo=$ac_try;;
5784 esac
5785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5786 $as_echo "$ac_try_echo") >&5
5787 (eval "$ac_link") 2>conftest.er1
5788 ac_status=$?
5789 grep -v '^ *+' conftest.er1 >conftest.err
5790 rm -f conftest.er1
5791 cat conftest.err >&5
5792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); } && {
5794 test -z "$ac_c_werror_flag" ||
5795 test ! -s conftest.err
5796 } && test -s conftest$ac_exeext && {
5797 test "$cross_compiling" = yes ||
5798 $as_test_x conftest$ac_exeext
5799 }; then
5800 { $as_echo "$as_me:$LINENO: result: yes" >&5
5801 $as_echo "yes" >&6; }
5802 else
5803 $as_echo "$as_me: failed program was:" >&5
5804 sed 's/^/| /' conftest.$ac_ext >&5
5805
5806 LDFLAGS=$late_LDFLAGS
5807 { $as_echo "$as_me:$LINENO: result: no" >&5
5808 $as_echo "no" >&6; }
5809 fi
5810
5811 rm -rf conftest.dSYM
5812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5813 conftest$ac_exeext conftest.$ac_ext
5814
5815 #### Extract some information from the operating system and machine files.
5816
5817 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5818 - which libraries the lib-src programs will want, and
5819 - whether the GNU malloc routines are usable..." >&5
5820 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5821 - which libraries the lib-src programs will want, and
5822 - whether the GNU malloc routines are usable..." >&6;}
5823
5824 ### First figure out CFLAGS (which we use for running the compiler here)
5825 ### and REAL_CFLAGS (which we use for real compilation).
5826 ### The two are the same except on a few systems, where they are made
5827 ### different to work around various lossages. For example,
5828 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5829 ### as implying static linking.
5830
5831 ### If the CFLAGS env var is specified, we use that value
5832 ### instead of the default.
5833
5834 ### It's not important that this name contain the PID; you can't run
5835 ### two configures in the same directory and have anything work
5836 ### anyway.
5837 tempcname="conftest.c"
5838
5839 echo '
5840 #include "'${srcdir}'/src/'${opsysfile}'"
5841 #include "'${srcdir}'/src/'${machfile}'"
5842
5843 configure___ LIBX=-lX11
5844
5845 configure___ unexec=UNEXEC
5846
5847 #ifdef SYSTEM_MALLOC
5848 configure___ system_malloc=yes
5849 #else
5850 configure___ system_malloc=no
5851 #endif
5852
5853 #ifdef USE_MMAP_FOR_BUFFERS
5854 configure___ use_mmap_for_buffers=yes
5855 #else
5856 configure___ use_mmap_for_buffers=no
5857 #endif
5858
5859 #ifndef C_OPTIMIZE_SWITCH
5860 #ifdef __GNUC__
5861 #define C_OPTIMIZE_SWITCH -O2
5862 #else
5863 #define C_OPTIMIZE_SWITCH -O
5864 #endif
5865 #endif
5866
5867 #ifndef C_WARNINGS_SWITCH
5868 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5869 #endif
5870
5871 #ifdef THIS_IS_CONFIGURE
5872
5873 /* Get the CFLAGS for tests in configure. */
5874 #ifdef __GNUC__
5875 configure___ CFLAGS=-g C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5876 #else
5877 configure___ CFLAGS='${SPECIFIED_CFLAGS}'
5878 #endif
5879
5880 #else /* not THIS_IS_CONFIGURE */
5881
5882 /* Get the CFLAGS for real compilation. */
5883 #ifdef __GNUC__
5884 configure___ REAL_CFLAGS=-g C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5885 #else
5886 configure___ REAL_CFLAGS='${SPECIFIED_CFLAGS}'
5887 #endif
5888
5889 #endif /* not THIS_IS_CONFIGURE */
5890 ' > ${tempcname}
5891
5892 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5893
5894 # The value of CPP is a quoted variable reference, so we need to do this
5895 # to get its actual value...
5896 CPP=`eval "echo $CPP"`
5897 eval `${CPP} -Isrc ${tempcname} \
5898 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5899 if test "x$SPECIFIED_CFLAGS" = x; then
5900 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5901 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5902 else
5903 REAL_CFLAGS="$CFLAGS"
5904 fi
5905 rm ${tempcname}
5906
5907
5908 LD_SWITCH_SYSTEM=
5909 case "$opsys" in
5910 freebsd)
5911 ## Let `ld' find image libs and similar things in /usr/local/lib.
5912 ## The system compiler, GCC, has apparently been modified to not
5913 ## look there, contrary to what a stock GCC would do.
5914 LD_SWITCH_SYSTEM=-L/usr/local/lib
5915 ;;
5916
5917 gnu-linux)
5918 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5919 test "$machine" = "mips" && LD_SWITCH_SYSTEM="-G 0"
5920 ;;
5921
5922 netbsd)
5923 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5924 ;;
5925
5926 openbsd)
5927 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5928 ## otherwise Emacs dumps core on elf systems.
5929 LD_SWITCH_SYSTEM="-Z"
5930 ;;
5931 esac
5932
5933
5934 ac_link="$ac_link $LD_SWITCH_SYSTEM"
5935
5936 ## This is fun. Some settings of LD_SWITCH_SYSTEM reference
5937 ## LD_SWITCH_X_SITE_AUX, which has not been defined yet. When using
5938 ## cpp, it was expanded to null. Thus LD_SWITCH_SYSTEM had different
5939 ## values in configure and the Makefiles. How helpful.
5940 ## FIXME why not use LD_SWITCH_SYSTEM_TEMACS (or somesuch) instead?
5941 case "$opsys" in
5942 gnu-linux)
5943 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
5944 LD_SWITCH_SYSTEM="$LD_SWITCH_SYSTEM \$(LD_SWITCH_X_SITE_AUX)" ;;
5945
5946 netbsd|openbsd)
5947 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5948 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5949 esac
5950
5951
5952 C_SWITCH_MACHINE=
5953 if test "$machine" = "alpha"; then
5954 { $as_echo "$as_me:$LINENO: checking whether __ELF__ is declared" >&5
5955 $as_echo_n "checking whether __ELF__ is declared... " >&6; }
5956 if test "${ac_cv_have_decl___ELF__+set}" = set; then
5957 $as_echo_n "(cached) " >&6
5958 else
5959 cat >conftest.$ac_ext <<_ACEOF
5960 /* confdefs.h. */
5961 _ACEOF
5962 cat confdefs.h >>conftest.$ac_ext
5963 cat >>conftest.$ac_ext <<_ACEOF
5964 /* end confdefs.h. */
5965 $ac_includes_default
5966 int
5967 main ()
5968 {
5969 #ifndef __ELF__
5970 (void) __ELF__;
5971 #endif
5972
5973 ;
5974 return 0;
5975 }
5976 _ACEOF
5977 rm -f conftest.$ac_objext
5978 if { (ac_try="$ac_compile"
5979 case "(($ac_try" in
5980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5981 *) ac_try_echo=$ac_try;;
5982 esac
5983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5984 $as_echo "$ac_try_echo") >&5
5985 (eval "$ac_compile") 2>conftest.er1
5986 ac_status=$?
5987 grep -v '^ *+' conftest.er1 >conftest.err
5988 rm -f conftest.er1
5989 cat conftest.err >&5
5990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } && {
5992 test -z "$ac_c_werror_flag" ||
5993 test ! -s conftest.err
5994 } && test -s conftest.$ac_objext; then
5995 ac_cv_have_decl___ELF__=yes
5996 else
5997 $as_echo "$as_me: failed program was:" >&5
5998 sed 's/^/| /' conftest.$ac_ext >&5
5999
6000 ac_cv_have_decl___ELF__=no
6001 fi
6002
6003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6004 fi
6005 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___ELF__" >&5
6006 $as_echo "$ac_cv_have_decl___ELF__" >&6; }
6007
6008 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6009 ## With ELF, make sure that all common symbols get allocated to in the
6010 ## data section. Otherwise, the dump of temacs may miss variables in
6011 ## the shared library that have been initialized. For example, with
6012 ## GNU libc, __malloc_initialized would normally be resolved to the
6013 ## shared library's .bss section, which is fatal.
6014 if test "x$GCC" = "xyes"; then
6015 C_SWITCH_MACHINE="-fno-common"
6016 else
6017 { { $as_echo "$as_me:$LINENO: error: What gives? Fix me if DEC Unix supports ELF now." >&5
6018 $as_echo "$as_me: error: What gives? Fix me if DEC Unix supports ELF now." >&2;}
6019 { (exit 1); exit 1; }; }
6020 fi
6021 fi
6022 fi
6023
6024
6025
6026 C_SWITCH_SYSTEM=
6027 ## Some programs in src produce warnings saying certain subprograms
6028 ## are too complex and need a MAXMEM value greater than 2000 for
6029 ## additional optimization. --nils@exp-math.uni-essen.de
6030 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6031 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6032 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6033 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6034
6035
6036
6037 LIBS_SYSTEM=
6038 case "$opsys" in
6039 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6040 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6041
6042 freebsd) LIBS_SYSTEM="-lutil" ;;
6043
6044 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6045
6046 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
6047
6048 ## Motif needs -lgen.
6049 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6050 esac
6051
6052
6053
6054 ### Make sure subsequent tests use flags consistent with the build flags.
6055
6056 if test x"${OVERRIDE_CPPFLAGS}" != x; then
6057 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
6058 else
6059 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6060 fi
6061
6062
6063
6064 # Check whether --enable-largefile was given.
6065 if test "${enable_largefile+set}" = set; then
6066 enableval=$enable_largefile;
6067 fi
6068
6069 if test "$enable_largefile" != no; then
6070
6071 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
6072 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6073 if test "${ac_cv_sys_largefile_CC+set}" = set; then
6074 $as_echo_n "(cached) " >&6
6075 else
6076 ac_cv_sys_largefile_CC=no
6077 if test "$GCC" != yes; then
6078 ac_save_CC=$CC
6079 while :; do
6080 # IRIX 6.2 and later do not support large files by default,
6081 # so use the C compiler's -n32 option if that helps.
6082 cat >conftest.$ac_ext <<_ACEOF
6083 /* confdefs.h. */
6084 _ACEOF
6085 cat confdefs.h >>conftest.$ac_ext
6086 cat >>conftest.$ac_ext <<_ACEOF
6087 /* end confdefs.h. */
6088 #include <sys/types.h>
6089 /* Check that off_t can represent 2**63 - 1 correctly.
6090 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6091 since some C++ compilers masquerading as C compilers
6092 incorrectly reject 9223372036854775807. */
6093 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6094 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6095 && LARGE_OFF_T % 2147483647 == 1)
6096 ? 1 : -1];
6097 int
6098 main ()
6099 {
6100
6101 ;
6102 return 0;
6103 }
6104 _ACEOF
6105 rm -f conftest.$ac_objext
6106 if { (ac_try="$ac_compile"
6107 case "(($ac_try" in
6108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6109 *) ac_try_echo=$ac_try;;
6110 esac
6111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6112 $as_echo "$ac_try_echo") >&5
6113 (eval "$ac_compile") 2>conftest.er1
6114 ac_status=$?
6115 grep -v '^ *+' conftest.er1 >conftest.err
6116 rm -f conftest.er1
6117 cat conftest.err >&5
6118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); } && {
6120 test -z "$ac_c_werror_flag" ||
6121 test ! -s conftest.err
6122 } && test -s conftest.$ac_objext; then
6123 break
6124 else
6125 $as_echo "$as_me: failed program was:" >&5
6126 sed 's/^/| /' conftest.$ac_ext >&5
6127
6128
6129 fi
6130
6131 rm -f core conftest.err conftest.$ac_objext
6132 CC="$CC -n32"
6133 rm -f conftest.$ac_objext
6134 if { (ac_try="$ac_compile"
6135 case "(($ac_try" in
6136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6137 *) ac_try_echo=$ac_try;;
6138 esac
6139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6140 $as_echo "$ac_try_echo") >&5
6141 (eval "$ac_compile") 2>conftest.er1
6142 ac_status=$?
6143 grep -v '^ *+' conftest.er1 >conftest.err
6144 rm -f conftest.er1
6145 cat conftest.err >&5
6146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); } && {
6148 test -z "$ac_c_werror_flag" ||
6149 test ! -s conftest.err
6150 } && test -s conftest.$ac_objext; then
6151 ac_cv_sys_largefile_CC=' -n32'; break
6152 else
6153 $as_echo "$as_me: failed program was:" >&5
6154 sed 's/^/| /' conftest.$ac_ext >&5
6155
6156
6157 fi
6158
6159 rm -f core conftest.err conftest.$ac_objext
6160 break
6161 done
6162 CC=$ac_save_CC
6163 rm -f conftest.$ac_ext
6164 fi
6165 fi
6166 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6167 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6168 if test "$ac_cv_sys_largefile_CC" != no; then
6169 CC=$CC$ac_cv_sys_largefile_CC
6170 fi
6171
6172 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6173 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6174 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6175 $as_echo_n "(cached) " >&6
6176 else
6177 while :; do
6178 cat >conftest.$ac_ext <<_ACEOF
6179 /* confdefs.h. */
6180 _ACEOF
6181 cat confdefs.h >>conftest.$ac_ext
6182 cat >>conftest.$ac_ext <<_ACEOF
6183 /* end confdefs.h. */
6184 #include <sys/types.h>
6185 /* Check that off_t can represent 2**63 - 1 correctly.
6186 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6187 since some C++ compilers masquerading as C compilers
6188 incorrectly reject 9223372036854775807. */
6189 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6190 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6191 && LARGE_OFF_T % 2147483647 == 1)
6192 ? 1 : -1];
6193 int
6194 main ()
6195 {
6196
6197 ;
6198 return 0;
6199 }
6200 _ACEOF
6201 rm -f conftest.$ac_objext
6202 if { (ac_try="$ac_compile"
6203 case "(($ac_try" in
6204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6205 *) ac_try_echo=$ac_try;;
6206 esac
6207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6208 $as_echo "$ac_try_echo") >&5
6209 (eval "$ac_compile") 2>conftest.er1
6210 ac_status=$?
6211 grep -v '^ *+' conftest.er1 >conftest.err
6212 rm -f conftest.er1
6213 cat conftest.err >&5
6214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); } && {
6216 test -z "$ac_c_werror_flag" ||
6217 test ! -s conftest.err
6218 } && test -s conftest.$ac_objext; then
6219 ac_cv_sys_file_offset_bits=no; break
6220 else
6221 $as_echo "$as_me: failed program was:" >&5
6222 sed 's/^/| /' conftest.$ac_ext >&5
6223
6224
6225 fi
6226
6227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6228 cat >conftest.$ac_ext <<_ACEOF
6229 /* confdefs.h. */
6230 _ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h. */
6234 #define _FILE_OFFSET_BITS 64
6235 #include <sys/types.h>
6236 /* Check that off_t can represent 2**63 - 1 correctly.
6237 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6238 since some C++ compilers masquerading as C compilers
6239 incorrectly reject 9223372036854775807. */
6240 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6241 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6242 && LARGE_OFF_T % 2147483647 == 1)
6243 ? 1 : -1];
6244 int
6245 main ()
6246 {
6247
6248 ;
6249 return 0;
6250 }
6251 _ACEOF
6252 rm -f conftest.$ac_objext
6253 if { (ac_try="$ac_compile"
6254 case "(($ac_try" in
6255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6256 *) ac_try_echo=$ac_try;;
6257 esac
6258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6259 $as_echo "$ac_try_echo") >&5
6260 (eval "$ac_compile") 2>conftest.er1
6261 ac_status=$?
6262 grep -v '^ *+' conftest.er1 >conftest.err
6263 rm -f conftest.er1
6264 cat conftest.err >&5
6265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); } && {
6267 test -z "$ac_c_werror_flag" ||
6268 test ! -s conftest.err
6269 } && test -s conftest.$ac_objext; then
6270 ac_cv_sys_file_offset_bits=64; break
6271 else
6272 $as_echo "$as_me: failed program was:" >&5
6273 sed 's/^/| /' conftest.$ac_ext >&5
6274
6275
6276 fi
6277
6278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6279 ac_cv_sys_file_offset_bits=unknown
6280 break
6281 done
6282 fi
6283 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6284 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6285 case $ac_cv_sys_file_offset_bits in #(
6286 no | unknown) ;;
6287 *)
6288 cat >>confdefs.h <<_ACEOF
6289 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6290 _ACEOF
6291 ;;
6292 esac
6293 rm -rf conftest*
6294 if test $ac_cv_sys_file_offset_bits = unknown; then
6295 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6296 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6297 if test "${ac_cv_sys_large_files+set}" = set; then
6298 $as_echo_n "(cached) " >&6
6299 else
6300 while :; do
6301 cat >conftest.$ac_ext <<_ACEOF
6302 /* confdefs.h. */
6303 _ACEOF
6304 cat confdefs.h >>conftest.$ac_ext
6305 cat >>conftest.$ac_ext <<_ACEOF
6306 /* end confdefs.h. */
6307 #include <sys/types.h>
6308 /* Check that off_t can represent 2**63 - 1 correctly.
6309 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6310 since some C++ compilers masquerading as C compilers
6311 incorrectly reject 9223372036854775807. */
6312 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6313 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6314 && LARGE_OFF_T % 2147483647 == 1)
6315 ? 1 : -1];
6316 int
6317 main ()
6318 {
6319
6320 ;
6321 return 0;
6322 }
6323 _ACEOF
6324 rm -f conftest.$ac_objext
6325 if { (ac_try="$ac_compile"
6326 case "(($ac_try" in
6327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6328 *) ac_try_echo=$ac_try;;
6329 esac
6330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6331 $as_echo "$ac_try_echo") >&5
6332 (eval "$ac_compile") 2>conftest.er1
6333 ac_status=$?
6334 grep -v '^ *+' conftest.er1 >conftest.err
6335 rm -f conftest.er1
6336 cat conftest.err >&5
6337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); } && {
6339 test -z "$ac_c_werror_flag" ||
6340 test ! -s conftest.err
6341 } && test -s conftest.$ac_objext; then
6342 ac_cv_sys_large_files=no; break
6343 else
6344 $as_echo "$as_me: failed program was:" >&5
6345 sed 's/^/| /' conftest.$ac_ext >&5
6346
6347
6348 fi
6349
6350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6351 cat >conftest.$ac_ext <<_ACEOF
6352 /* confdefs.h. */
6353 _ACEOF
6354 cat confdefs.h >>conftest.$ac_ext
6355 cat >>conftest.$ac_ext <<_ACEOF
6356 /* end confdefs.h. */
6357 #define _LARGE_FILES 1
6358 #include <sys/types.h>
6359 /* Check that off_t can represent 2**63 - 1 correctly.
6360 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6361 since some C++ compilers masquerading as C compilers
6362 incorrectly reject 9223372036854775807. */
6363 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6364 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6365 && LARGE_OFF_T % 2147483647 == 1)
6366 ? 1 : -1];
6367 int
6368 main ()
6369 {
6370
6371 ;
6372 return 0;
6373 }
6374 _ACEOF
6375 rm -f conftest.$ac_objext
6376 if { (ac_try="$ac_compile"
6377 case "(($ac_try" in
6378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6379 *) ac_try_echo=$ac_try;;
6380 esac
6381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6382 $as_echo "$ac_try_echo") >&5
6383 (eval "$ac_compile") 2>conftest.er1
6384 ac_status=$?
6385 grep -v '^ *+' conftest.er1 >conftest.err
6386 rm -f conftest.er1
6387 cat conftest.err >&5
6388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); } && {
6390 test -z "$ac_c_werror_flag" ||
6391 test ! -s conftest.err
6392 } && test -s conftest.$ac_objext; then
6393 ac_cv_sys_large_files=1; break
6394 else
6395 $as_echo "$as_me: failed program was:" >&5
6396 sed 's/^/| /' conftest.$ac_ext >&5
6397
6398
6399 fi
6400
6401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6402 ac_cv_sys_large_files=unknown
6403 break
6404 done
6405 fi
6406 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6407 $as_echo "$ac_cv_sys_large_files" >&6; }
6408 case $ac_cv_sys_large_files in #(
6409 no | unknown) ;;
6410 *)
6411 cat >>confdefs.h <<_ACEOF
6412 #define _LARGE_FILES $ac_cv_sys_large_files
6413 _ACEOF
6414 ;;
6415 esac
6416 rm -rf conftest*
6417 fi
6418 fi
6419
6420
6421
6422 ## If user specified a crt-dir, use that unconditionally.
6423 if test "X$CRT_DIR" = "X"; then
6424
6425 case "$canonical" in
6426 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
6427 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6428 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6429 ## For anything else (eg /usr/lib32), it is up the user to specify
6430 ## the location (bug#5655).
6431 ## Test for crtn.o, not just the directory, because sometimes the
6432 ## directory exists but does not have the relevant files (bug#1287).
6433 ## FIXME better to test for binary compatibility somehow.
6434 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
6435 ;;
6436
6437 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
6438 esac
6439
6440 case "$opsys" in
6441 hpux10-20) CRT_DIR=/lib ;;
6442 esac
6443
6444 ## Default is /usr/lib.
6445 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
6446
6447 else
6448
6449 ## Some platforms don't use any of these files, so it is not
6450 ## appropriate to put this test outside the if block.
6451 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
6452 { { $as_echo "$as_me:$LINENO: error: crt*.o not found in specified location." >&5
6453 $as_echo "$as_me: error: crt*.o not found in specified location." >&2;}
6454 { (exit 1); exit 1; }; }
6455
6456 fi
6457
6458
6459
6460 LIB_MATH=-lm
6461 LIB_STANDARD=
6462 START_FILES=
6463
6464 case $opsys in
6465 cygwin )
6466 LIB_MATH=
6467 START_FILES='ecrt0.o'
6468 ;;
6469 darwin )
6470 ## Adding -lm confuses the dynamic linker, so omit it.
6471 LIB_MATH=
6472 START_FILES='pre-crt0.o'
6473 ;;
6474 freebsd )
6475 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6476 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6477 ;;
6478 gnu-linux | gnu-kfreebsd )
6479 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
6480 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
6481 ;;
6482 hpux10-20 | hpux11 )
6483 LIB_STANDARD=-lc
6484 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
6485 ;;
6486 netbsd | openbsd )
6487 if test -f $(CRT_DIR)/crti.o; then
6488 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6489 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6490 else
6491 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
6492 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
6493 fi
6494 ;;
6495 esac
6496
6497
6498
6499
6500
6501
6502
6503 if test "${with_sound}" != "no"; then
6504 # Sound support for GNU/Linux and the free BSDs.
6505
6506
6507
6508 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6509 do
6510 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6512 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6513 $as_echo_n "checking for $ac_header... " >&6; }
6514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6515 $as_echo_n "(cached) " >&6
6516 fi
6517 ac_res=`eval 'as_val=${'$as_ac_Header'}
6518 $as_echo "$as_val"'`
6519 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6520 $as_echo "$ac_res" >&6; }
6521 else
6522 # Is the header compilable?
6523 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6524 $as_echo_n "checking $ac_header usability... " >&6; }
6525 cat >conftest.$ac_ext <<_ACEOF
6526 /* confdefs.h. */
6527 _ACEOF
6528 cat confdefs.h >>conftest.$ac_ext
6529 cat >>conftest.$ac_ext <<_ACEOF
6530 /* end confdefs.h. */
6531 $ac_includes_default
6532 #include <$ac_header>
6533 _ACEOF
6534 rm -f conftest.$ac_objext
6535 if { (ac_try="$ac_compile"
6536 case "(($ac_try" in
6537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6538 *) ac_try_echo=$ac_try;;
6539 esac
6540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6541 $as_echo "$ac_try_echo") >&5
6542 (eval "$ac_compile") 2>conftest.er1
6543 ac_status=$?
6544 grep -v '^ *+' conftest.er1 >conftest.err
6545 rm -f conftest.er1
6546 cat conftest.err >&5
6547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); } && {
6549 test -z "$ac_c_werror_flag" ||
6550 test ! -s conftest.err
6551 } && test -s conftest.$ac_objext; then
6552 ac_header_compiler=yes
6553 else
6554 $as_echo "$as_me: failed program was:" >&5
6555 sed 's/^/| /' conftest.$ac_ext >&5
6556
6557 ac_header_compiler=no
6558 fi
6559
6560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6561 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6562 $as_echo "$ac_header_compiler" >&6; }
6563
6564 # Is the header present?
6565 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6566 $as_echo_n "checking $ac_header presence... " >&6; }
6567 cat >conftest.$ac_ext <<_ACEOF
6568 /* confdefs.h. */
6569 _ACEOF
6570 cat confdefs.h >>conftest.$ac_ext
6571 cat >>conftest.$ac_ext <<_ACEOF
6572 /* end confdefs.h. */
6573 #include <$ac_header>
6574 _ACEOF
6575 if { (ac_try="$ac_cpp conftest.$ac_ext"
6576 case "(($ac_try" in
6577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6578 *) ac_try_echo=$ac_try;;
6579 esac
6580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6581 $as_echo "$ac_try_echo") >&5
6582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6583 ac_status=$?
6584 grep -v '^ *+' conftest.er1 >conftest.err
6585 rm -f conftest.er1
6586 cat conftest.err >&5
6587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); } >/dev/null && {
6589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6590 test ! -s conftest.err
6591 }; then
6592 ac_header_preproc=yes
6593 else
6594 $as_echo "$as_me: failed program was:" >&5
6595 sed 's/^/| /' conftest.$ac_ext >&5
6596
6597 ac_header_preproc=no
6598 fi
6599
6600 rm -f conftest.err conftest.$ac_ext
6601 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6602 $as_echo "$ac_header_preproc" >&6; }
6603
6604 # So? What about this header?
6605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6606 yes:no: )
6607 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6608 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6609 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6610 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6611 ac_header_preproc=yes
6612 ;;
6613 no:yes:* )
6614 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6615 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6616 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6617 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6618 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6619 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6620 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6621 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6622 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6623 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6624 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6625 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6626
6627 ;;
6628 esac
6629 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6630 $as_echo_n "checking for $ac_header... " >&6; }
6631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6632 $as_echo_n "(cached) " >&6
6633 else
6634 eval "$as_ac_Header=\$ac_header_preproc"
6635 fi
6636 ac_res=`eval 'as_val=${'$as_ac_Header'}
6637 $as_echo "$as_val"'`
6638 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6639 $as_echo "$ac_res" >&6; }
6640
6641 fi
6642 if test `eval 'as_val=${'$as_ac_Header'}
6643 $as_echo "$as_val"'` = yes; then
6644 cat >>confdefs.h <<_ACEOF
6645 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6646 _ACEOF
6647
6648 fi
6649
6650 done
6651
6652 # Emulation library used on NetBSD.
6653 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6654 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6655 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6656 $as_echo_n "(cached) " >&6
6657 else
6658 ac_check_lib_save_LIBS=$LIBS
6659 LIBS="-lossaudio $LIBS"
6660 cat >conftest.$ac_ext <<_ACEOF
6661 /* confdefs.h. */
6662 _ACEOF
6663 cat confdefs.h >>conftest.$ac_ext
6664 cat >>conftest.$ac_ext <<_ACEOF
6665 /* end confdefs.h. */
6666
6667 /* Override any GCC internal prototype to avoid an error.
6668 Use char because int might match the return type of a GCC
6669 builtin and then its argument prototype would still apply. */
6670 #ifdef __cplusplus
6671 extern "C"
6672 #endif
6673 char _oss_ioctl ();
6674 int
6675 main ()
6676 {
6677 return _oss_ioctl ();
6678 ;
6679 return 0;
6680 }
6681 _ACEOF
6682 rm -f conftest.$ac_objext conftest$ac_exeext
6683 if { (ac_try="$ac_link"
6684 case "(($ac_try" in
6685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6686 *) ac_try_echo=$ac_try;;
6687 esac
6688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6689 $as_echo "$ac_try_echo") >&5
6690 (eval "$ac_link") 2>conftest.er1
6691 ac_status=$?
6692 grep -v '^ *+' conftest.er1 >conftest.err
6693 rm -f conftest.er1
6694 cat conftest.err >&5
6695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); } && {
6697 test -z "$ac_c_werror_flag" ||
6698 test ! -s conftest.err
6699 } && test -s conftest$ac_exeext && {
6700 test "$cross_compiling" = yes ||
6701 $as_test_x conftest$ac_exeext
6702 }; then
6703 ac_cv_lib_ossaudio__oss_ioctl=yes
6704 else
6705 $as_echo "$as_me: failed program was:" >&5
6706 sed 's/^/| /' conftest.$ac_ext >&5
6707
6708 ac_cv_lib_ossaudio__oss_ioctl=no
6709 fi
6710
6711 rm -rf conftest.dSYM
6712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6713 conftest$ac_exeext conftest.$ac_ext
6714 LIBS=$ac_check_lib_save_LIBS
6715 fi
6716 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6717 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6718 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6719 LIBSOUND=-lossaudio
6720 else
6721 LIBSOUND=
6722 fi
6723
6724
6725
6726 ALSA_REQUIRED=1.0.0
6727 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6728
6729 succeeded=no
6730
6731 # Extract the first word of "pkg-config", so it can be a program name with args.
6732 set dummy pkg-config; ac_word=$2
6733 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6734 $as_echo_n "checking for $ac_word... " >&6; }
6735 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6736 $as_echo_n "(cached) " >&6
6737 else
6738 case $PKG_CONFIG in
6739 [\\/]* | ?:[\\/]*)
6740 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6741 ;;
6742 *)
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744 for as_dir in $PATH
6745 do
6746 IFS=$as_save_IFS
6747 test -z "$as_dir" && as_dir=.
6748 for ac_exec_ext in '' $ac_executable_extensions; do
6749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6750 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6751 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6752 break 2
6753 fi
6754 done
6755 done
6756 IFS=$as_save_IFS
6757
6758 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6759 ;;
6760 esac
6761 fi
6762 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6763 if test -n "$PKG_CONFIG"; then
6764 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6765 $as_echo "$PKG_CONFIG" >&6; }
6766 else
6767 { $as_echo "$as_me:$LINENO: result: no" >&5
6768 $as_echo "no" >&6; }
6769 fi
6770
6771
6772
6773 if test "$PKG_CONFIG" = "no" ; then
6774 HAVE_ALSA=no
6775 else
6776 PKG_CONFIG_MIN_VERSION=0.9.0
6777 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6778 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6779 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6780
6781 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6782 { $as_echo "$as_me:$LINENO: result: yes" >&5
6783 $as_echo "yes" >&6; }
6784 succeeded=yes
6785
6786 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6787 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6788 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6789 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6790 $as_echo "$ALSA_CFLAGS" >&6; }
6791
6792 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6793 $as_echo_n "checking ALSA_LIBS... " >&6; }
6794 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6795 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6796 $as_echo "$ALSA_LIBS" >&6; }
6797 else
6798 { $as_echo "$as_me:$LINENO: result: no" >&5
6799 $as_echo "no" >&6; }
6800 ALSA_CFLAGS=""
6801 ALSA_LIBS=""
6802 ## If we have a custom action on failure, don't print errors, but
6803 ## do set a variable so people can do so.
6804 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6805
6806 fi
6807
6808
6809
6810 else
6811 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6812 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6813 fi
6814 fi
6815
6816 if test $succeeded = yes; then
6817 HAVE_ALSA=yes
6818 else
6819 HAVE_ALSA=no
6820 fi
6821
6822 if test $HAVE_ALSA = yes; then
6823 SAVE_CFLAGS="$CFLAGS"
6824 SAVE_LDFLAGS="$LDFLAGS"
6825 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6826 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6827 cat >conftest.$ac_ext <<_ACEOF
6828 /* confdefs.h. */
6829 _ACEOF
6830 cat confdefs.h >>conftest.$ac_ext
6831 cat >>conftest.$ac_ext <<_ACEOF
6832 /* end confdefs.h. */
6833 #include <asoundlib.h>
6834 int
6835 main ()
6836 {
6837 snd_lib_error_set_handler (0);
6838 ;
6839 return 0;
6840 }
6841 _ACEOF
6842 rm -f conftest.$ac_objext
6843 if { (ac_try="$ac_compile"
6844 case "(($ac_try" in
6845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6846 *) ac_try_echo=$ac_try;;
6847 esac
6848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6849 $as_echo "$ac_try_echo") >&5
6850 (eval "$ac_compile") 2>conftest.er1
6851 ac_status=$?
6852 grep -v '^ *+' conftest.er1 >conftest.err
6853 rm -f conftest.er1
6854 cat conftest.err >&5
6855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); } && {
6857 test -z "$ac_c_werror_flag" ||
6858 test ! -s conftest.err
6859 } && test -s conftest.$ac_objext; then
6860 emacs_alsa_normal=yes
6861 else
6862 $as_echo "$as_me: failed program was:" >&5
6863 sed 's/^/| /' conftest.$ac_ext >&5
6864
6865 emacs_alsa_normal=no
6866 fi
6867
6868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6869 if test "$emacs_alsa_normal" != yes; then
6870 cat >conftest.$ac_ext <<_ACEOF
6871 /* confdefs.h. */
6872 _ACEOF
6873 cat confdefs.h >>conftest.$ac_ext
6874 cat >>conftest.$ac_ext <<_ACEOF
6875 /* end confdefs.h. */
6876 #include <alsa/asoundlib.h>
6877 int
6878 main ()
6879 {
6880 snd_lib_error_set_handler (0);
6881 ;
6882 return 0;
6883 }
6884 _ACEOF
6885 rm -f conftest.$ac_objext
6886 if { (ac_try="$ac_compile"
6887 case "(($ac_try" in
6888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6889 *) ac_try_echo=$ac_try;;
6890 esac
6891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6892 $as_echo "$ac_try_echo") >&5
6893 (eval "$ac_compile") 2>conftest.er1
6894 ac_status=$?
6895 grep -v '^ *+' conftest.er1 >conftest.err
6896 rm -f conftest.er1
6897 cat conftest.err >&5
6898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); } && {
6900 test -z "$ac_c_werror_flag" ||
6901 test ! -s conftest.err
6902 } && test -s conftest.$ac_objext; then
6903 emacs_alsa_subdir=yes
6904 else
6905 $as_echo "$as_me: failed program was:" >&5
6906 sed 's/^/| /' conftest.$ac_ext >&5
6907
6908 emacs_alsa_subdir=no
6909 fi
6910
6911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6912 if test "$emacs_alsa_subdir" != yes; then
6913 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6914 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6915 { (exit 1); exit 1; }; }
6916 fi
6917 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6918 fi
6919
6920 CFLAGS="$SAVE_CFLAGS"
6921 LDFLAGS="$SAVE_LDFLAGS"
6922 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6923 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6924
6925 cat >>confdefs.h <<\_ACEOF
6926 #define HAVE_ALSA 1
6927 _ACEOF
6928
6929 fi
6930
6931 fi
6932
6933
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 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6959 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6960 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6961 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6962 sys/utsname.h pwd.h utmp.h
6963 do
6964 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6966 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6967 $as_echo_n "checking for $ac_header... " >&6; }
6968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6969 $as_echo_n "(cached) " >&6
6970 fi
6971 ac_res=`eval 'as_val=${'$as_ac_Header'}
6972 $as_echo "$as_val"'`
6973 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6974 $as_echo "$ac_res" >&6; }
6975 else
6976 # Is the header compilable?
6977 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6978 $as_echo_n "checking $ac_header usability... " >&6; }
6979 cat >conftest.$ac_ext <<_ACEOF
6980 /* confdefs.h. */
6981 _ACEOF
6982 cat confdefs.h >>conftest.$ac_ext
6983 cat >>conftest.$ac_ext <<_ACEOF
6984 /* end confdefs.h. */
6985 $ac_includes_default
6986 #include <$ac_header>
6987 _ACEOF
6988 rm -f conftest.$ac_objext
6989 if { (ac_try="$ac_compile"
6990 case "(($ac_try" in
6991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6992 *) ac_try_echo=$ac_try;;
6993 esac
6994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6995 $as_echo "$ac_try_echo") >&5
6996 (eval "$ac_compile") 2>conftest.er1
6997 ac_status=$?
6998 grep -v '^ *+' conftest.er1 >conftest.err
6999 rm -f conftest.er1
7000 cat conftest.err >&5
7001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); } && {
7003 test -z "$ac_c_werror_flag" ||
7004 test ! -s conftest.err
7005 } && test -s conftest.$ac_objext; then
7006 ac_header_compiler=yes
7007 else
7008 $as_echo "$as_me: failed program was:" >&5
7009 sed 's/^/| /' conftest.$ac_ext >&5
7010
7011 ac_header_compiler=no
7012 fi
7013
7014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7015 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7016 $as_echo "$ac_header_compiler" >&6; }
7017
7018 # Is the header present?
7019 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7020 $as_echo_n "checking $ac_header presence... " >&6; }
7021 cat >conftest.$ac_ext <<_ACEOF
7022 /* confdefs.h. */
7023 _ACEOF
7024 cat confdefs.h >>conftest.$ac_ext
7025 cat >>conftest.$ac_ext <<_ACEOF
7026 /* end confdefs.h. */
7027 #include <$ac_header>
7028 _ACEOF
7029 if { (ac_try="$ac_cpp conftest.$ac_ext"
7030 case "(($ac_try" in
7031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7032 *) ac_try_echo=$ac_try;;
7033 esac
7034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7035 $as_echo "$ac_try_echo") >&5
7036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7037 ac_status=$?
7038 grep -v '^ *+' conftest.er1 >conftest.err
7039 rm -f conftest.er1
7040 cat conftest.err >&5
7041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); } >/dev/null && {
7043 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7044 test ! -s conftest.err
7045 }; then
7046 ac_header_preproc=yes
7047 else
7048 $as_echo "$as_me: failed program was:" >&5
7049 sed 's/^/| /' conftest.$ac_ext >&5
7050
7051 ac_header_preproc=no
7052 fi
7053
7054 rm -f conftest.err conftest.$ac_ext
7055 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7056 $as_echo "$ac_header_preproc" >&6; }
7057
7058 # So? What about this header?
7059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7060 yes:no: )
7061 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7062 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7063 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7064 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7065 ac_header_preproc=yes
7066 ;;
7067 no:yes:* )
7068 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7069 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7070 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7071 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7072 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7073 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7074 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7075 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7076 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7077 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7078 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7079 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7080
7081 ;;
7082 esac
7083 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7084 $as_echo_n "checking for $ac_header... " >&6; }
7085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7086 $as_echo_n "(cached) " >&6
7087 else
7088 eval "$as_ac_Header=\$ac_header_preproc"
7089 fi
7090 ac_res=`eval 'as_val=${'$as_ac_Header'}
7091 $as_echo "$as_val"'`
7092 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7093 $as_echo "$ac_res" >&6; }
7094
7095 fi
7096 if test `eval 'as_val=${'$as_ac_Header'}
7097 $as_echo "$as_val"'` = yes; then
7098 cat >>confdefs.h <<_ACEOF
7099 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7100 _ACEOF
7101
7102 fi
7103
7104 done
7105
7106
7107 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
7108 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7109 cat >conftest.$ac_ext <<_ACEOF
7110 /* confdefs.h. */
7111 _ACEOF
7112 cat confdefs.h >>conftest.$ac_ext
7113 cat >>conftest.$ac_ext <<_ACEOF
7114 /* end confdefs.h. */
7115 #include <sys/personality.h>
7116 int
7117 main ()
7118 {
7119 personality (PER_LINUX32)
7120 ;
7121 return 0;
7122 }
7123 _ACEOF
7124 rm -f conftest.$ac_objext
7125 if { (ac_try="$ac_compile"
7126 case "(($ac_try" in
7127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7128 *) ac_try_echo=$ac_try;;
7129 esac
7130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7131 $as_echo "$ac_try_echo") >&5
7132 (eval "$ac_compile") 2>conftest.er1
7133 ac_status=$?
7134 grep -v '^ *+' conftest.er1 >conftest.err
7135 rm -f conftest.er1
7136 cat conftest.err >&5
7137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); } && {
7139 test -z "$ac_c_werror_flag" ||
7140 test ! -s conftest.err
7141 } && test -s conftest.$ac_objext; then
7142 emacs_cv_personality_linux32=yes
7143 else
7144 $as_echo "$as_me: failed program was:" >&5
7145 sed 's/^/| /' conftest.$ac_ext >&5
7146
7147 emacs_cv_personality_linux32=no
7148 fi
7149
7150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7151 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
7152 $as_echo "$emacs_cv_personality_linux32" >&6; }
7153
7154 if test $emacs_cv_personality_linux32 = yes; then
7155
7156 cat >>confdefs.h <<\_ACEOF
7157 #define HAVE_PERSONALITY_LINUX32 1
7158 _ACEOF
7159
7160 fi
7161
7162
7163 for ac_header in term.h
7164 do
7165 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7166 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7167 $as_echo_n "checking for $ac_header... " >&6; }
7168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7169 $as_echo_n "(cached) " >&6
7170 else
7171 cat >conftest.$ac_ext <<_ACEOF
7172 /* confdefs.h. */
7173 _ACEOF
7174 cat confdefs.h >>conftest.$ac_ext
7175 cat >>conftest.$ac_ext <<_ACEOF
7176 /* end confdefs.h. */
7177 #include <$ac_header>
7178 _ACEOF
7179 if { (ac_try="$ac_cpp conftest.$ac_ext"
7180 case "(($ac_try" in
7181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7182 *) ac_try_echo=$ac_try;;
7183 esac
7184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7185 $as_echo "$ac_try_echo") >&5
7186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7187 ac_status=$?
7188 grep -v '^ *+' conftest.er1 >conftest.err
7189 rm -f conftest.er1
7190 cat conftest.err >&5
7191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); } >/dev/null && {
7193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7194 test ! -s conftest.err
7195 }; then
7196 eval "$as_ac_Header=yes"
7197 else
7198 $as_echo "$as_me: failed program was:" >&5
7199 sed 's/^/| /' conftest.$ac_ext >&5
7200
7201 eval "$as_ac_Header=no"
7202 fi
7203
7204 rm -f conftest.err conftest.$ac_ext
7205 fi
7206 ac_res=`eval 'as_val=${'$as_ac_Header'}
7207 $as_echo "$as_val"'`
7208 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7209 $as_echo "$ac_res" >&6; }
7210 if test `eval 'as_val=${'$as_ac_Header'}
7211 $as_echo "$as_val"'` = yes; then
7212 cat >>confdefs.h <<_ACEOF
7213 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7214 _ACEOF
7215
7216 fi
7217
7218 done
7219
7220 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7221 $as_echo_n "checking for ANSI C header files... " >&6; }
7222 if test "${ac_cv_header_stdc+set}" = set; then
7223 $as_echo_n "(cached) " >&6
7224 else
7225 cat >conftest.$ac_ext <<_ACEOF
7226 /* confdefs.h. */
7227 _ACEOF
7228 cat confdefs.h >>conftest.$ac_ext
7229 cat >>conftest.$ac_ext <<_ACEOF
7230 /* end confdefs.h. */
7231 #include <stdlib.h>
7232 #include <stdarg.h>
7233 #include <string.h>
7234 #include <float.h>
7235
7236 int
7237 main ()
7238 {
7239
7240 ;
7241 return 0;
7242 }
7243 _ACEOF
7244 rm -f conftest.$ac_objext
7245 if { (ac_try="$ac_compile"
7246 case "(($ac_try" in
7247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7248 *) ac_try_echo=$ac_try;;
7249 esac
7250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7251 $as_echo "$ac_try_echo") >&5
7252 (eval "$ac_compile") 2>conftest.er1
7253 ac_status=$?
7254 grep -v '^ *+' conftest.er1 >conftest.err
7255 rm -f conftest.er1
7256 cat conftest.err >&5
7257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); } && {
7259 test -z "$ac_c_werror_flag" ||
7260 test ! -s conftest.err
7261 } && test -s conftest.$ac_objext; then
7262 ac_cv_header_stdc=yes
7263 else
7264 $as_echo "$as_me: failed program was:" >&5
7265 sed 's/^/| /' conftest.$ac_ext >&5
7266
7267 ac_cv_header_stdc=no
7268 fi
7269
7270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7271
7272 if test $ac_cv_header_stdc = yes; then
7273 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7274 cat >conftest.$ac_ext <<_ACEOF
7275 /* confdefs.h. */
7276 _ACEOF
7277 cat confdefs.h >>conftest.$ac_ext
7278 cat >>conftest.$ac_ext <<_ACEOF
7279 /* end confdefs.h. */
7280 #include <string.h>
7281
7282 _ACEOF
7283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7284 $EGREP "memchr" >/dev/null 2>&1; then
7285 :
7286 else
7287 ac_cv_header_stdc=no
7288 fi
7289 rm -f conftest*
7290
7291 fi
7292
7293 if test $ac_cv_header_stdc = yes; then
7294 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7295 cat >conftest.$ac_ext <<_ACEOF
7296 /* confdefs.h. */
7297 _ACEOF
7298 cat confdefs.h >>conftest.$ac_ext
7299 cat >>conftest.$ac_ext <<_ACEOF
7300 /* end confdefs.h. */
7301 #include <stdlib.h>
7302
7303 _ACEOF
7304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7305 $EGREP "free" >/dev/null 2>&1; then
7306 :
7307 else
7308 ac_cv_header_stdc=no
7309 fi
7310 rm -f conftest*
7311
7312 fi
7313
7314 if test $ac_cv_header_stdc = yes; then
7315 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7316 if test "$cross_compiling" = yes; then
7317 :
7318 else
7319 cat >conftest.$ac_ext <<_ACEOF
7320 /* confdefs.h. */
7321 _ACEOF
7322 cat confdefs.h >>conftest.$ac_ext
7323 cat >>conftest.$ac_ext <<_ACEOF
7324 /* end confdefs.h. */
7325 #include <ctype.h>
7326 #include <stdlib.h>
7327 #if ((' ' & 0x0FF) == 0x020)
7328 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7329 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7330 #else
7331 # define ISLOWER(c) \
7332 (('a' <= (c) && (c) <= 'i') \
7333 || ('j' <= (c) && (c) <= 'r') \
7334 || ('s' <= (c) && (c) <= 'z'))
7335 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7336 #endif
7337
7338 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7339 int
7340 main ()
7341 {
7342 int i;
7343 for (i = 0; i < 256; i++)
7344 if (XOR (islower (i), ISLOWER (i))
7345 || toupper (i) != TOUPPER (i))
7346 return 2;
7347 return 0;
7348 }
7349 _ACEOF
7350 rm -f conftest$ac_exeext
7351 if { (ac_try="$ac_link"
7352 case "(($ac_try" in
7353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7354 *) ac_try_echo=$ac_try;;
7355 esac
7356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7357 $as_echo "$ac_try_echo") >&5
7358 (eval "$ac_link") 2>&5
7359 ac_status=$?
7360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7362 { (case "(($ac_try" in
7363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7364 *) ac_try_echo=$ac_try;;
7365 esac
7366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7367 $as_echo "$ac_try_echo") >&5
7368 (eval "$ac_try") 2>&5
7369 ac_status=$?
7370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); }; }; then
7372 :
7373 else
7374 $as_echo "$as_me: program exited with status $ac_status" >&5
7375 $as_echo "$as_me: failed program was:" >&5
7376 sed 's/^/| /' conftest.$ac_ext >&5
7377
7378 ( exit $ac_status )
7379 ac_cv_header_stdc=no
7380 fi
7381 rm -rf conftest.dSYM
7382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7383 fi
7384
7385
7386 fi
7387 fi
7388 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7389 $as_echo "$ac_cv_header_stdc" >&6; }
7390 if test $ac_cv_header_stdc = yes; then
7391
7392 cat >>confdefs.h <<\_ACEOF
7393 #define STDC_HEADERS 1
7394 _ACEOF
7395
7396 fi
7397
7398 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7399 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7400 if test "${ac_cv_header_time+set}" = set; then
7401 $as_echo_n "(cached) " >&6
7402 else
7403 cat >conftest.$ac_ext <<_ACEOF
7404 /* confdefs.h. */
7405 _ACEOF
7406 cat confdefs.h >>conftest.$ac_ext
7407 cat >>conftest.$ac_ext <<_ACEOF
7408 /* end confdefs.h. */
7409 #include <sys/types.h>
7410 #include <sys/time.h>
7411 #include <time.h>
7412
7413 int
7414 main ()
7415 {
7416 if ((struct tm *) 0)
7417 return 0;
7418 ;
7419 return 0;
7420 }
7421 _ACEOF
7422 rm -f conftest.$ac_objext
7423 if { (ac_try="$ac_compile"
7424 case "(($ac_try" in
7425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7426 *) ac_try_echo=$ac_try;;
7427 esac
7428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7429 $as_echo "$ac_try_echo") >&5
7430 (eval "$ac_compile") 2>conftest.er1
7431 ac_status=$?
7432 grep -v '^ *+' conftest.er1 >conftest.err
7433 rm -f conftest.er1
7434 cat conftest.err >&5
7435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 (exit $ac_status); } && {
7437 test -z "$ac_c_werror_flag" ||
7438 test ! -s conftest.err
7439 } && test -s conftest.$ac_objext; then
7440 ac_cv_header_time=yes
7441 else
7442 $as_echo "$as_me: failed program was:" >&5
7443 sed 's/^/| /' conftest.$ac_ext >&5
7444
7445 ac_cv_header_time=no
7446 fi
7447
7448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7449 fi
7450 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7451 $as_echo "$ac_cv_header_time" >&6; }
7452 if test $ac_cv_header_time = yes; then
7453
7454 cat >>confdefs.h <<\_ACEOF
7455 #define TIME_WITH_SYS_TIME 1
7456 _ACEOF
7457
7458 fi
7459
7460 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7461 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7462 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7463 $as_echo_n "(cached) " >&6
7464 else
7465 cat >conftest.$ac_ext <<_ACEOF
7466 /* confdefs.h. */
7467 _ACEOF
7468 cat confdefs.h >>conftest.$ac_ext
7469 cat >>conftest.$ac_ext <<_ACEOF
7470 /* end confdefs.h. */
7471 $ac_includes_default
7472 int
7473 main ()
7474 {
7475 #ifndef sys_siglist
7476 (void) sys_siglist;
7477 #endif
7478
7479 ;
7480 return 0;
7481 }
7482 _ACEOF
7483 rm -f conftest.$ac_objext
7484 if { (ac_try="$ac_compile"
7485 case "(($ac_try" in
7486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7487 *) ac_try_echo=$ac_try;;
7488 esac
7489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7490 $as_echo "$ac_try_echo") >&5
7491 (eval "$ac_compile") 2>conftest.er1
7492 ac_status=$?
7493 grep -v '^ *+' conftest.er1 >conftest.err
7494 rm -f conftest.er1
7495 cat conftest.err >&5
7496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); } && {
7498 test -z "$ac_c_werror_flag" ||
7499 test ! -s conftest.err
7500 } && test -s conftest.$ac_objext; then
7501 ac_cv_have_decl_sys_siglist=yes
7502 else
7503 $as_echo "$as_me: failed program was:" >&5
7504 sed 's/^/| /' conftest.$ac_ext >&5
7505
7506 ac_cv_have_decl_sys_siglist=no
7507 fi
7508
7509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7510 fi
7511 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7512 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7513 if test $ac_cv_have_decl_sys_siglist = yes; then
7514
7515 cat >>confdefs.h <<_ACEOF
7516 #define HAVE_DECL_SYS_SIGLIST 1
7517 _ACEOF
7518
7519
7520 else
7521 cat >>confdefs.h <<_ACEOF
7522 #define HAVE_DECL_SYS_SIGLIST 0
7523 _ACEOF
7524
7525
7526 fi
7527
7528
7529 if test $ac_cv_have_decl_sys_siglist != yes; then
7530 # For Tru64, at least:
7531 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7532 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7533 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7534 $as_echo_n "(cached) " >&6
7535 else
7536 cat >conftest.$ac_ext <<_ACEOF
7537 /* confdefs.h. */
7538 _ACEOF
7539 cat confdefs.h >>conftest.$ac_ext
7540 cat >>conftest.$ac_ext <<_ACEOF
7541 /* end confdefs.h. */
7542 $ac_includes_default
7543 int
7544 main ()
7545 {
7546 #ifndef __sys_siglist
7547 (void) __sys_siglist;
7548 #endif
7549
7550 ;
7551 return 0;
7552 }
7553 _ACEOF
7554 rm -f conftest.$ac_objext
7555 if { (ac_try="$ac_compile"
7556 case "(($ac_try" in
7557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7558 *) ac_try_echo=$ac_try;;
7559 esac
7560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7561 $as_echo "$ac_try_echo") >&5
7562 (eval "$ac_compile") 2>conftest.er1
7563 ac_status=$?
7564 grep -v '^ *+' conftest.er1 >conftest.err
7565 rm -f conftest.er1
7566 cat conftest.err >&5
7567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568 (exit $ac_status); } && {
7569 test -z "$ac_c_werror_flag" ||
7570 test ! -s conftest.err
7571 } && test -s conftest.$ac_objext; then
7572 ac_cv_have_decl___sys_siglist=yes
7573 else
7574 $as_echo "$as_me: failed program was:" >&5
7575 sed 's/^/| /' conftest.$ac_ext >&5
7576
7577 ac_cv_have_decl___sys_siglist=no
7578 fi
7579
7580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7581 fi
7582 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7583 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7584 if test $ac_cv_have_decl___sys_siglist = yes; then
7585
7586 cat >>confdefs.h <<_ACEOF
7587 #define HAVE_DECL___SYS_SIGLIST 1
7588 _ACEOF
7589
7590
7591 else
7592 cat >>confdefs.h <<_ACEOF
7593 #define HAVE_DECL___SYS_SIGLIST 0
7594 _ACEOF
7595
7596
7597 fi
7598
7599
7600 if test $ac_cv_have_decl___sys_siglist = yes; then
7601
7602 cat >>confdefs.h <<\_ACEOF
7603 #define sys_siglist __sys_siglist
7604 _ACEOF
7605
7606 fi
7607 fi
7608 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7609 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7610 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7611 $as_echo_n "(cached) " >&6
7612 else
7613 cat >conftest.$ac_ext <<_ACEOF
7614 /* confdefs.h. */
7615 _ACEOF
7616 cat confdefs.h >>conftest.$ac_ext
7617 cat >>conftest.$ac_ext <<_ACEOF
7618 /* end confdefs.h. */
7619 #include <sys/types.h>
7620 #include <sys/wait.h>
7621 #ifndef WEXITSTATUS
7622 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7623 #endif
7624 #ifndef WIFEXITED
7625 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7626 #endif
7627
7628 int
7629 main ()
7630 {
7631 int s;
7632 wait (&s);
7633 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7634 ;
7635 return 0;
7636 }
7637 _ACEOF
7638 rm -f conftest.$ac_objext
7639 if { (ac_try="$ac_compile"
7640 case "(($ac_try" in
7641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7642 *) ac_try_echo=$ac_try;;
7643 esac
7644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7645 $as_echo "$ac_try_echo") >&5
7646 (eval "$ac_compile") 2>conftest.er1
7647 ac_status=$?
7648 grep -v '^ *+' conftest.er1 >conftest.err
7649 rm -f conftest.er1
7650 cat conftest.err >&5
7651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); } && {
7653 test -z "$ac_c_werror_flag" ||
7654 test ! -s conftest.err
7655 } && test -s conftest.$ac_objext; then
7656 ac_cv_header_sys_wait_h=yes
7657 else
7658 $as_echo "$as_me: failed program was:" >&5
7659 sed 's/^/| /' conftest.$ac_ext >&5
7660
7661 ac_cv_header_sys_wait_h=no
7662 fi
7663
7664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7665 fi
7666 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7667 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7668 if test $ac_cv_header_sys_wait_h = yes; then
7669
7670 cat >>confdefs.h <<\_ACEOF
7671 #define HAVE_SYS_WAIT_H 1
7672 _ACEOF
7673
7674 fi
7675
7676
7677 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7678 $as_echo_n "checking for struct utimbuf... " >&6; }
7679 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7680 $as_echo_n "(cached) " >&6
7681 else
7682 cat >conftest.$ac_ext <<_ACEOF
7683 /* confdefs.h. */
7684 _ACEOF
7685 cat confdefs.h >>conftest.$ac_ext
7686 cat >>conftest.$ac_ext <<_ACEOF
7687 /* end confdefs.h. */
7688 #ifdef TIME_WITH_SYS_TIME
7689 #include <sys/time.h>
7690 #include <time.h>
7691 #else
7692 #ifdef HAVE_SYS_TIME_H
7693 #include <sys/time.h>
7694 #else
7695 #include <time.h>
7696 #endif
7697 #endif
7698 #ifdef HAVE_UTIME_H
7699 #include <utime.h>
7700 #endif
7701 int
7702 main ()
7703 {
7704 static struct utimbuf x; x.actime = x.modtime;
7705 ;
7706 return 0;
7707 }
7708 _ACEOF
7709 rm -f conftest.$ac_objext
7710 if { (ac_try="$ac_compile"
7711 case "(($ac_try" in
7712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7713 *) ac_try_echo=$ac_try;;
7714 esac
7715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7716 $as_echo "$ac_try_echo") >&5
7717 (eval "$ac_compile") 2>conftest.er1
7718 ac_status=$?
7719 grep -v '^ *+' conftest.er1 >conftest.err
7720 rm -f conftest.er1
7721 cat conftest.err >&5
7722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); } && {
7724 test -z "$ac_c_werror_flag" ||
7725 test ! -s conftest.err
7726 } && test -s conftest.$ac_objext; then
7727 emacs_cv_struct_utimbuf=yes
7728 else
7729 $as_echo "$as_me: failed program was:" >&5
7730 sed 's/^/| /' conftest.$ac_ext >&5
7731
7732 emacs_cv_struct_utimbuf=no
7733 fi
7734
7735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7736 fi
7737 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7738 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7739 if test $emacs_cv_struct_utimbuf = yes; then
7740
7741 cat >>confdefs.h <<\_ACEOF
7742 #define HAVE_STRUCT_UTIMBUF 1
7743 _ACEOF
7744
7745 fi
7746
7747 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7748 $as_echo_n "checking return type of signal handlers... " >&6; }
7749 if test "${ac_cv_type_signal+set}" = set; then
7750 $as_echo_n "(cached) " >&6
7751 else
7752 cat >conftest.$ac_ext <<_ACEOF
7753 /* confdefs.h. */
7754 _ACEOF
7755 cat confdefs.h >>conftest.$ac_ext
7756 cat >>conftest.$ac_ext <<_ACEOF
7757 /* end confdefs.h. */
7758 #include <sys/types.h>
7759 #include <signal.h>
7760
7761 int
7762 main ()
7763 {
7764 return *(signal (0, 0)) (0) == 1;
7765 ;
7766 return 0;
7767 }
7768 _ACEOF
7769 rm -f conftest.$ac_objext
7770 if { (ac_try="$ac_compile"
7771 case "(($ac_try" in
7772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7773 *) ac_try_echo=$ac_try;;
7774 esac
7775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7776 $as_echo "$ac_try_echo") >&5
7777 (eval "$ac_compile") 2>conftest.er1
7778 ac_status=$?
7779 grep -v '^ *+' conftest.er1 >conftest.err
7780 rm -f conftest.er1
7781 cat conftest.err >&5
7782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); } && {
7784 test -z "$ac_c_werror_flag" ||
7785 test ! -s conftest.err
7786 } && test -s conftest.$ac_objext; then
7787 ac_cv_type_signal=int
7788 else
7789 $as_echo "$as_me: failed program was:" >&5
7790 sed 's/^/| /' conftest.$ac_ext >&5
7791
7792 ac_cv_type_signal=void
7793 fi
7794
7795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7796 fi
7797 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7798 $as_echo "$ac_cv_type_signal" >&6; }
7799
7800 cat >>confdefs.h <<_ACEOF
7801 #define RETSIGTYPE $ac_cv_type_signal
7802 _ACEOF
7803
7804
7805
7806 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7807 $as_echo_n "checking for speed_t... " >&6; }
7808 if test "${emacs_cv_speed_t+set}" = set; then
7809 $as_echo_n "(cached) " >&6
7810 else
7811 cat >conftest.$ac_ext <<_ACEOF
7812 /* confdefs.h. */
7813 _ACEOF
7814 cat confdefs.h >>conftest.$ac_ext
7815 cat >>conftest.$ac_ext <<_ACEOF
7816 /* end confdefs.h. */
7817 #include <termios.h>
7818 int
7819 main ()
7820 {
7821 speed_t x = 1;
7822 ;
7823 return 0;
7824 }
7825 _ACEOF
7826 rm -f conftest.$ac_objext
7827 if { (ac_try="$ac_compile"
7828 case "(($ac_try" in
7829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7830 *) ac_try_echo=$ac_try;;
7831 esac
7832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7833 $as_echo "$ac_try_echo") >&5
7834 (eval "$ac_compile") 2>conftest.er1
7835 ac_status=$?
7836 grep -v '^ *+' conftest.er1 >conftest.err
7837 rm -f conftest.er1
7838 cat conftest.err >&5
7839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); } && {
7841 test -z "$ac_c_werror_flag" ||
7842 test ! -s conftest.err
7843 } && test -s conftest.$ac_objext; then
7844 emacs_cv_speed_t=yes
7845 else
7846 $as_echo "$as_me: failed program was:" >&5
7847 sed 's/^/| /' conftest.$ac_ext >&5
7848
7849 emacs_cv_speed_t=no
7850 fi
7851
7852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7853 fi
7854 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7855 $as_echo "$emacs_cv_speed_t" >&6; }
7856 if test $emacs_cv_speed_t = yes; then
7857
7858 cat >>confdefs.h <<\_ACEOF
7859 #define HAVE_SPEED_T 1
7860 _ACEOF
7861
7862 fi
7863
7864 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7865 $as_echo_n "checking for struct timeval... " >&6; }
7866 if test "${emacs_cv_struct_timeval+set}" = set; then
7867 $as_echo_n "(cached) " >&6
7868 else
7869 cat >conftest.$ac_ext <<_ACEOF
7870 /* confdefs.h. */
7871 _ACEOF
7872 cat confdefs.h >>conftest.$ac_ext
7873 cat >>conftest.$ac_ext <<_ACEOF
7874 /* end confdefs.h. */
7875 #ifdef TIME_WITH_SYS_TIME
7876 #include <sys/time.h>
7877 #include <time.h>
7878 #else
7879 #ifdef HAVE_SYS_TIME_H
7880 #include <sys/time.h>
7881 #else
7882 #include <time.h>
7883 #endif
7884 #endif
7885 int
7886 main ()
7887 {
7888 static struct timeval x; x.tv_sec = x.tv_usec;
7889 ;
7890 return 0;
7891 }
7892 _ACEOF
7893 rm -f conftest.$ac_objext
7894 if { (ac_try="$ac_compile"
7895 case "(($ac_try" in
7896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7897 *) ac_try_echo=$ac_try;;
7898 esac
7899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7900 $as_echo "$ac_try_echo") >&5
7901 (eval "$ac_compile") 2>conftest.er1
7902 ac_status=$?
7903 grep -v '^ *+' conftest.er1 >conftest.err
7904 rm -f conftest.er1
7905 cat conftest.err >&5
7906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); } && {
7908 test -z "$ac_c_werror_flag" ||
7909 test ! -s conftest.err
7910 } && test -s conftest.$ac_objext; then
7911 emacs_cv_struct_timeval=yes
7912 else
7913 $as_echo "$as_me: failed program was:" >&5
7914 sed 's/^/| /' conftest.$ac_ext >&5
7915
7916 emacs_cv_struct_timeval=no
7917 fi
7918
7919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7920 fi
7921 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7922 $as_echo "$emacs_cv_struct_timeval" >&6; }
7923 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7924 if test $emacs_cv_struct_timeval = yes; then
7925
7926 cat >>confdefs.h <<\_ACEOF
7927 #define HAVE_TIMEVAL 1
7928 _ACEOF
7929
7930 fi
7931
7932 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7933 $as_echo_n "checking for struct exception... " >&6; }
7934 if test "${emacs_cv_struct_exception+set}" = set; then
7935 $as_echo_n "(cached) " >&6
7936 else
7937 cat >conftest.$ac_ext <<_ACEOF
7938 /* confdefs.h. */
7939 _ACEOF
7940 cat confdefs.h >>conftest.$ac_ext
7941 cat >>conftest.$ac_ext <<_ACEOF
7942 /* end confdefs.h. */
7943 #include <math.h>
7944 int
7945 main ()
7946 {
7947 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7948 ;
7949 return 0;
7950 }
7951 _ACEOF
7952 rm -f conftest.$ac_objext
7953 if { (ac_try="$ac_compile"
7954 case "(($ac_try" in
7955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7956 *) ac_try_echo=$ac_try;;
7957 esac
7958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7959 $as_echo "$ac_try_echo") >&5
7960 (eval "$ac_compile") 2>conftest.er1
7961 ac_status=$?
7962 grep -v '^ *+' conftest.er1 >conftest.err
7963 rm -f conftest.er1
7964 cat conftest.err >&5
7965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); } && {
7967 test -z "$ac_c_werror_flag" ||
7968 test ! -s conftest.err
7969 } && test -s conftest.$ac_objext; then
7970 emacs_cv_struct_exception=yes
7971 else
7972 $as_echo "$as_me: failed program was:" >&5
7973 sed 's/^/| /' conftest.$ac_ext >&5
7974
7975 emacs_cv_struct_exception=no
7976 fi
7977
7978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7979 fi
7980 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7981 $as_echo "$emacs_cv_struct_exception" >&6; }
7982 HAVE_EXCEPTION=$emacs_cv_struct_exception
7983 if test $emacs_cv_struct_exception != yes; then
7984
7985 cat >>confdefs.h <<\_ACEOF
7986 #define NO_MATHERR 1
7987 _ACEOF
7988
7989 fi
7990
7991
7992 for ac_header in sys/socket.h
7993 do
7994 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7996 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7997 $as_echo_n "checking for $ac_header... " >&6; }
7998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7999 $as_echo_n "(cached) " >&6
8000 fi
8001 ac_res=`eval 'as_val=${'$as_ac_Header'}
8002 $as_echo "$as_val"'`
8003 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8004 $as_echo "$ac_res" >&6; }
8005 else
8006 # Is the header compilable?
8007 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8008 $as_echo_n "checking $ac_header usability... " >&6; }
8009 cat >conftest.$ac_ext <<_ACEOF
8010 /* confdefs.h. */
8011 _ACEOF
8012 cat confdefs.h >>conftest.$ac_ext
8013 cat >>conftest.$ac_ext <<_ACEOF
8014 /* end confdefs.h. */
8015 $ac_includes_default
8016 #include <$ac_header>
8017 _ACEOF
8018 rm -f conftest.$ac_objext
8019 if { (ac_try="$ac_compile"
8020 case "(($ac_try" in
8021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8022 *) ac_try_echo=$ac_try;;
8023 esac
8024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8025 $as_echo "$ac_try_echo") >&5
8026 (eval "$ac_compile") 2>conftest.er1
8027 ac_status=$?
8028 grep -v '^ *+' conftest.er1 >conftest.err
8029 rm -f conftest.er1
8030 cat conftest.err >&5
8031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); } && {
8033 test -z "$ac_c_werror_flag" ||
8034 test ! -s conftest.err
8035 } && test -s conftest.$ac_objext; then
8036 ac_header_compiler=yes
8037 else
8038 $as_echo "$as_me: failed program was:" >&5
8039 sed 's/^/| /' conftest.$ac_ext >&5
8040
8041 ac_header_compiler=no
8042 fi
8043
8044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8045 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8046 $as_echo "$ac_header_compiler" >&6; }
8047
8048 # Is the header present?
8049 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8050 $as_echo_n "checking $ac_header presence... " >&6; }
8051 cat >conftest.$ac_ext <<_ACEOF
8052 /* confdefs.h. */
8053 _ACEOF
8054 cat confdefs.h >>conftest.$ac_ext
8055 cat >>conftest.$ac_ext <<_ACEOF
8056 /* end confdefs.h. */
8057 #include <$ac_header>
8058 _ACEOF
8059 if { (ac_try="$ac_cpp conftest.$ac_ext"
8060 case "(($ac_try" in
8061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8062 *) ac_try_echo=$ac_try;;
8063 esac
8064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8065 $as_echo "$ac_try_echo") >&5
8066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8067 ac_status=$?
8068 grep -v '^ *+' conftest.er1 >conftest.err
8069 rm -f conftest.er1
8070 cat conftest.err >&5
8071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 (exit $ac_status); } >/dev/null && {
8073 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8074 test ! -s conftest.err
8075 }; then
8076 ac_header_preproc=yes
8077 else
8078 $as_echo "$as_me: failed program was:" >&5
8079 sed 's/^/| /' conftest.$ac_ext >&5
8080
8081 ac_header_preproc=no
8082 fi
8083
8084 rm -f conftest.err conftest.$ac_ext
8085 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8086 $as_echo "$ac_header_preproc" >&6; }
8087
8088 # So? What about this header?
8089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8090 yes:no: )
8091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8092 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8094 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8095 ac_header_preproc=yes
8096 ;;
8097 no:yes:* )
8098 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8099 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8100 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8101 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8102 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8103 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8104 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8105 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8107 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8109 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8110
8111 ;;
8112 esac
8113 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8114 $as_echo_n "checking for $ac_header... " >&6; }
8115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8116 $as_echo_n "(cached) " >&6
8117 else
8118 eval "$as_ac_Header=\$ac_header_preproc"
8119 fi
8120 ac_res=`eval 'as_val=${'$as_ac_Header'}
8121 $as_echo "$as_val"'`
8122 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8123 $as_echo "$ac_res" >&6; }
8124
8125 fi
8126 if test `eval 'as_val=${'$as_ac_Header'}
8127 $as_echo "$as_val"'` = yes; then
8128 cat >>confdefs.h <<_ACEOF
8129 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8130 _ACEOF
8131
8132 fi
8133
8134 done
8135
8136
8137 for ac_header in net/if.h
8138 do
8139 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8140 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8141 $as_echo_n "checking for $ac_header... " >&6; }
8142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8143 $as_echo_n "(cached) " >&6
8144 else
8145 cat >conftest.$ac_ext <<_ACEOF
8146 /* confdefs.h. */
8147 _ACEOF
8148 cat confdefs.h >>conftest.$ac_ext
8149 cat >>conftest.$ac_ext <<_ACEOF
8150 /* end confdefs.h. */
8151 $ac_includes_default
8152 #if HAVE_SYS_SOCKET_H
8153 #include <sys/socket.h>
8154 #endif
8155
8156 #include <$ac_header>
8157 _ACEOF
8158 rm -f conftest.$ac_objext
8159 if { (ac_try="$ac_compile"
8160 case "(($ac_try" in
8161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8162 *) ac_try_echo=$ac_try;;
8163 esac
8164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8165 $as_echo "$ac_try_echo") >&5
8166 (eval "$ac_compile") 2>conftest.er1
8167 ac_status=$?
8168 grep -v '^ *+' conftest.er1 >conftest.err
8169 rm -f conftest.er1
8170 cat conftest.err >&5
8171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); } && {
8173 test -z "$ac_c_werror_flag" ||
8174 test ! -s conftest.err
8175 } && test -s conftest.$ac_objext; then
8176 eval "$as_ac_Header=yes"
8177 else
8178 $as_echo "$as_me: failed program was:" >&5
8179 sed 's/^/| /' conftest.$ac_ext >&5
8180
8181 eval "$as_ac_Header=no"
8182 fi
8183
8184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8185 fi
8186 ac_res=`eval 'as_val=${'$as_ac_Header'}
8187 $as_echo "$as_val"'`
8188 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8189 $as_echo "$ac_res" >&6; }
8190 if test `eval 'as_val=${'$as_ac_Header'}
8191 $as_echo "$as_val"'` = yes; then
8192 cat >>confdefs.h <<_ACEOF
8193 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8194 _ACEOF
8195
8196 fi
8197
8198 done
8199
8200
8201 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8202 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8203 if test "${ac_cv_struct_tm+set}" = set; then
8204 $as_echo_n "(cached) " >&6
8205 else
8206 cat >conftest.$ac_ext <<_ACEOF
8207 /* confdefs.h. */
8208 _ACEOF
8209 cat confdefs.h >>conftest.$ac_ext
8210 cat >>conftest.$ac_ext <<_ACEOF
8211 /* end confdefs.h. */
8212 #include <sys/types.h>
8213 #include <time.h>
8214
8215 int
8216 main ()
8217 {
8218 struct tm tm;
8219 int *p = &tm.tm_sec;
8220 return !p;
8221 ;
8222 return 0;
8223 }
8224 _ACEOF
8225 rm -f conftest.$ac_objext
8226 if { (ac_try="$ac_compile"
8227 case "(($ac_try" in
8228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8229 *) ac_try_echo=$ac_try;;
8230 esac
8231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8232 $as_echo "$ac_try_echo") >&5
8233 (eval "$ac_compile") 2>conftest.er1
8234 ac_status=$?
8235 grep -v '^ *+' conftest.er1 >conftest.err
8236 rm -f conftest.er1
8237 cat conftest.err >&5
8238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); } && {
8240 test -z "$ac_c_werror_flag" ||
8241 test ! -s conftest.err
8242 } && test -s conftest.$ac_objext; then
8243 ac_cv_struct_tm=time.h
8244 else
8245 $as_echo "$as_me: failed program was:" >&5
8246 sed 's/^/| /' conftest.$ac_ext >&5
8247
8248 ac_cv_struct_tm=sys/time.h
8249 fi
8250
8251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8252 fi
8253 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8254 $as_echo "$ac_cv_struct_tm" >&6; }
8255 if test $ac_cv_struct_tm = sys/time.h; then
8256
8257 cat >>confdefs.h <<\_ACEOF
8258 #define TM_IN_SYS_TIME 1
8259 _ACEOF
8260
8261 fi
8262
8263 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8264 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8265 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8266 $as_echo_n "(cached) " >&6
8267 else
8268 cat >conftest.$ac_ext <<_ACEOF
8269 /* confdefs.h. */
8270 _ACEOF
8271 cat confdefs.h >>conftest.$ac_ext
8272 cat >>conftest.$ac_ext <<_ACEOF
8273 /* end confdefs.h. */
8274 #include <sys/types.h>
8275 #include <$ac_cv_struct_tm>
8276
8277
8278 int
8279 main ()
8280 {
8281 static struct tm ac_aggr;
8282 if (ac_aggr.tm_zone)
8283 return 0;
8284 ;
8285 return 0;
8286 }
8287 _ACEOF
8288 rm -f conftest.$ac_objext
8289 if { (ac_try="$ac_compile"
8290 case "(($ac_try" in
8291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292 *) ac_try_echo=$ac_try;;
8293 esac
8294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8295 $as_echo "$ac_try_echo") >&5
8296 (eval "$ac_compile") 2>conftest.er1
8297 ac_status=$?
8298 grep -v '^ *+' conftest.er1 >conftest.err
8299 rm -f conftest.er1
8300 cat conftest.err >&5
8301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); } && {
8303 test -z "$ac_c_werror_flag" ||
8304 test ! -s conftest.err
8305 } && test -s conftest.$ac_objext; then
8306 ac_cv_member_struct_tm_tm_zone=yes
8307 else
8308 $as_echo "$as_me: failed program was:" >&5
8309 sed 's/^/| /' conftest.$ac_ext >&5
8310
8311 cat >conftest.$ac_ext <<_ACEOF
8312 /* confdefs.h. */
8313 _ACEOF
8314 cat confdefs.h >>conftest.$ac_ext
8315 cat >>conftest.$ac_ext <<_ACEOF
8316 /* end confdefs.h. */
8317 #include <sys/types.h>
8318 #include <$ac_cv_struct_tm>
8319
8320
8321 int
8322 main ()
8323 {
8324 static struct tm ac_aggr;
8325 if (sizeof ac_aggr.tm_zone)
8326 return 0;
8327 ;
8328 return 0;
8329 }
8330 _ACEOF
8331 rm -f conftest.$ac_objext
8332 if { (ac_try="$ac_compile"
8333 case "(($ac_try" in
8334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8335 *) ac_try_echo=$ac_try;;
8336 esac
8337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8338 $as_echo "$ac_try_echo") >&5
8339 (eval "$ac_compile") 2>conftest.er1
8340 ac_status=$?
8341 grep -v '^ *+' conftest.er1 >conftest.err
8342 rm -f conftest.er1
8343 cat conftest.err >&5
8344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); } && {
8346 test -z "$ac_c_werror_flag" ||
8347 test ! -s conftest.err
8348 } && test -s conftest.$ac_objext; then
8349 ac_cv_member_struct_tm_tm_zone=yes
8350 else
8351 $as_echo "$as_me: failed program was:" >&5
8352 sed 's/^/| /' conftest.$ac_ext >&5
8353
8354 ac_cv_member_struct_tm_tm_zone=no
8355 fi
8356
8357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8358 fi
8359
8360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8361 fi
8362 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8363 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8364 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8365
8366 cat >>confdefs.h <<_ACEOF
8367 #define HAVE_STRUCT_TM_TM_ZONE 1
8368 _ACEOF
8369
8370
8371 fi
8372
8373 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8374
8375 cat >>confdefs.h <<\_ACEOF
8376 #define HAVE_TM_ZONE 1
8377 _ACEOF
8378
8379 else
8380 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8381 $as_echo_n "checking whether tzname is declared... " >&6; }
8382 if test "${ac_cv_have_decl_tzname+set}" = set; then
8383 $as_echo_n "(cached) " >&6
8384 else
8385 cat >conftest.$ac_ext <<_ACEOF
8386 /* confdefs.h. */
8387 _ACEOF
8388 cat confdefs.h >>conftest.$ac_ext
8389 cat >>conftest.$ac_ext <<_ACEOF
8390 /* end confdefs.h. */
8391 #include <time.h>
8392
8393 int
8394 main ()
8395 {
8396 #ifndef tzname
8397 (void) tzname;
8398 #endif
8399
8400 ;
8401 return 0;
8402 }
8403 _ACEOF
8404 rm -f conftest.$ac_objext
8405 if { (ac_try="$ac_compile"
8406 case "(($ac_try" in
8407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8408 *) ac_try_echo=$ac_try;;
8409 esac
8410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8411 $as_echo "$ac_try_echo") >&5
8412 (eval "$ac_compile") 2>conftest.er1
8413 ac_status=$?
8414 grep -v '^ *+' conftest.er1 >conftest.err
8415 rm -f conftest.er1
8416 cat conftest.err >&5
8417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); } && {
8419 test -z "$ac_c_werror_flag" ||
8420 test ! -s conftest.err
8421 } && test -s conftest.$ac_objext; then
8422 ac_cv_have_decl_tzname=yes
8423 else
8424 $as_echo "$as_me: failed program was:" >&5
8425 sed 's/^/| /' conftest.$ac_ext >&5
8426
8427 ac_cv_have_decl_tzname=no
8428 fi
8429
8430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8431 fi
8432 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8433 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8434 if test $ac_cv_have_decl_tzname = yes; then
8435
8436 cat >>confdefs.h <<_ACEOF
8437 #define HAVE_DECL_TZNAME 1
8438 _ACEOF
8439
8440
8441 else
8442 cat >>confdefs.h <<_ACEOF
8443 #define HAVE_DECL_TZNAME 0
8444 _ACEOF
8445
8446
8447 fi
8448
8449
8450 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8451 $as_echo_n "checking for tzname... " >&6; }
8452 if test "${ac_cv_var_tzname+set}" = set; then
8453 $as_echo_n "(cached) " >&6
8454 else
8455 cat >conftest.$ac_ext <<_ACEOF
8456 /* confdefs.h. */
8457 _ACEOF
8458 cat confdefs.h >>conftest.$ac_ext
8459 cat >>conftest.$ac_ext <<_ACEOF
8460 /* end confdefs.h. */
8461 #include <time.h>
8462 #if !HAVE_DECL_TZNAME
8463 extern char *tzname[];
8464 #endif
8465
8466 int
8467 main ()
8468 {
8469 return tzname[0][0];
8470 ;
8471 return 0;
8472 }
8473 _ACEOF
8474 rm -f conftest.$ac_objext conftest$ac_exeext
8475 if { (ac_try="$ac_link"
8476 case "(($ac_try" in
8477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8478 *) ac_try_echo=$ac_try;;
8479 esac
8480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8481 $as_echo "$ac_try_echo") >&5
8482 (eval "$ac_link") 2>conftest.er1
8483 ac_status=$?
8484 grep -v '^ *+' conftest.er1 >conftest.err
8485 rm -f conftest.er1
8486 cat conftest.err >&5
8487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); } && {
8489 test -z "$ac_c_werror_flag" ||
8490 test ! -s conftest.err
8491 } && test -s conftest$ac_exeext && {
8492 test "$cross_compiling" = yes ||
8493 $as_test_x conftest$ac_exeext
8494 }; then
8495 ac_cv_var_tzname=yes
8496 else
8497 $as_echo "$as_me: failed program was:" >&5
8498 sed 's/^/| /' conftest.$ac_ext >&5
8499
8500 ac_cv_var_tzname=no
8501 fi
8502
8503 rm -rf conftest.dSYM
8504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8505 conftest$ac_exeext conftest.$ac_ext
8506 fi
8507 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8508 $as_echo "$ac_cv_var_tzname" >&6; }
8509 if test $ac_cv_var_tzname = yes; then
8510
8511 cat >>confdefs.h <<\_ACEOF
8512 #define HAVE_TZNAME 1
8513 _ACEOF
8514
8515 fi
8516 fi
8517
8518 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8519 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8520 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8521 $as_echo_n "(cached) " >&6
8522 else
8523 cat >conftest.$ac_ext <<_ACEOF
8524 /* confdefs.h. */
8525 _ACEOF
8526 cat confdefs.h >>conftest.$ac_ext
8527 cat >>conftest.$ac_ext <<_ACEOF
8528 /* end confdefs.h. */
8529 #include <time.h>
8530
8531 int
8532 main ()
8533 {
8534 static struct tm ac_aggr;
8535 if (ac_aggr.tm_gmtoff)
8536 return 0;
8537 ;
8538 return 0;
8539 }
8540 _ACEOF
8541 rm -f conftest.$ac_objext
8542 if { (ac_try="$ac_compile"
8543 case "(($ac_try" in
8544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8545 *) ac_try_echo=$ac_try;;
8546 esac
8547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8548 $as_echo "$ac_try_echo") >&5
8549 (eval "$ac_compile") 2>conftest.er1
8550 ac_status=$?
8551 grep -v '^ *+' conftest.er1 >conftest.err
8552 rm -f conftest.er1
8553 cat conftest.err >&5
8554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); } && {
8556 test -z "$ac_c_werror_flag" ||
8557 test ! -s conftest.err
8558 } && test -s conftest.$ac_objext; then
8559 ac_cv_member_struct_tm_tm_gmtoff=yes
8560 else
8561 $as_echo "$as_me: failed program was:" >&5
8562 sed 's/^/| /' conftest.$ac_ext >&5
8563
8564 cat >conftest.$ac_ext <<_ACEOF
8565 /* confdefs.h. */
8566 _ACEOF
8567 cat confdefs.h >>conftest.$ac_ext
8568 cat >>conftest.$ac_ext <<_ACEOF
8569 /* end confdefs.h. */
8570 #include <time.h>
8571
8572 int
8573 main ()
8574 {
8575 static struct tm ac_aggr;
8576 if (sizeof ac_aggr.tm_gmtoff)
8577 return 0;
8578 ;
8579 return 0;
8580 }
8581 _ACEOF
8582 rm -f conftest.$ac_objext
8583 if { (ac_try="$ac_compile"
8584 case "(($ac_try" in
8585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8586 *) ac_try_echo=$ac_try;;
8587 esac
8588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8589 $as_echo "$ac_try_echo") >&5
8590 (eval "$ac_compile") 2>conftest.er1
8591 ac_status=$?
8592 grep -v '^ *+' conftest.er1 >conftest.err
8593 rm -f conftest.er1
8594 cat conftest.err >&5
8595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); } && {
8597 test -z "$ac_c_werror_flag" ||
8598 test ! -s conftest.err
8599 } && test -s conftest.$ac_objext; then
8600 ac_cv_member_struct_tm_tm_gmtoff=yes
8601 else
8602 $as_echo "$as_me: failed program was:" >&5
8603 sed 's/^/| /' conftest.$ac_ext >&5
8604
8605 ac_cv_member_struct_tm_tm_gmtoff=no
8606 fi
8607
8608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8609 fi
8610
8611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8612 fi
8613 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8614 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8615 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8616
8617 cat >>confdefs.h <<\_ACEOF
8618 #define HAVE_TM_GMTOFF 1
8619 _ACEOF
8620
8621 fi
8622
8623 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8624 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8625 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8626 $as_echo_n "(cached) " >&6
8627 else
8628 cat >conftest.$ac_ext <<_ACEOF
8629 /* confdefs.h. */
8630 _ACEOF
8631 cat confdefs.h >>conftest.$ac_ext
8632 cat >>conftest.$ac_ext <<_ACEOF
8633 /* end confdefs.h. */
8634 $ac_includes_default
8635 #if HAVE_SYS_SOCKET_H
8636 #include <sys/socket.h>
8637 #endif
8638 #if HAVE_NET_IF_H
8639 #include <net/if.h>
8640 #endif
8641
8642 int
8643 main ()
8644 {
8645 static struct ifreq ac_aggr;
8646 if (ac_aggr.ifr_flags)
8647 return 0;
8648 ;
8649 return 0;
8650 }
8651 _ACEOF
8652 rm -f conftest.$ac_objext
8653 if { (ac_try="$ac_compile"
8654 case "(($ac_try" in
8655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8656 *) ac_try_echo=$ac_try;;
8657 esac
8658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8659 $as_echo "$ac_try_echo") >&5
8660 (eval "$ac_compile") 2>conftest.er1
8661 ac_status=$?
8662 grep -v '^ *+' conftest.er1 >conftest.err
8663 rm -f conftest.er1
8664 cat conftest.err >&5
8665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666 (exit $ac_status); } && {
8667 test -z "$ac_c_werror_flag" ||
8668 test ! -s conftest.err
8669 } && test -s conftest.$ac_objext; then
8670 ac_cv_member_struct_ifreq_ifr_flags=yes
8671 else
8672 $as_echo "$as_me: failed program was:" >&5
8673 sed 's/^/| /' conftest.$ac_ext >&5
8674
8675 cat >conftest.$ac_ext <<_ACEOF
8676 /* confdefs.h. */
8677 _ACEOF
8678 cat confdefs.h >>conftest.$ac_ext
8679 cat >>conftest.$ac_ext <<_ACEOF
8680 /* end confdefs.h. */
8681 $ac_includes_default
8682 #if HAVE_SYS_SOCKET_H
8683 #include <sys/socket.h>
8684 #endif
8685 #if HAVE_NET_IF_H
8686 #include <net/if.h>
8687 #endif
8688
8689 int
8690 main ()
8691 {
8692 static struct ifreq ac_aggr;
8693 if (sizeof ac_aggr.ifr_flags)
8694 return 0;
8695 ;
8696 return 0;
8697 }
8698 _ACEOF
8699 rm -f conftest.$ac_objext
8700 if { (ac_try="$ac_compile"
8701 case "(($ac_try" in
8702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8703 *) ac_try_echo=$ac_try;;
8704 esac
8705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8706 $as_echo "$ac_try_echo") >&5
8707 (eval "$ac_compile") 2>conftest.er1
8708 ac_status=$?
8709 grep -v '^ *+' conftest.er1 >conftest.err
8710 rm -f conftest.er1
8711 cat conftest.err >&5
8712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); } && {
8714 test -z "$ac_c_werror_flag" ||
8715 test ! -s conftest.err
8716 } && test -s conftest.$ac_objext; then
8717 ac_cv_member_struct_ifreq_ifr_flags=yes
8718 else
8719 $as_echo "$as_me: failed program was:" >&5
8720 sed 's/^/| /' conftest.$ac_ext >&5
8721
8722 ac_cv_member_struct_ifreq_ifr_flags=no
8723 fi
8724
8725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8726 fi
8727
8728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8729 fi
8730 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8731 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8732 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8733
8734 cat >>confdefs.h <<_ACEOF
8735 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8736 _ACEOF
8737
8738
8739 fi
8740 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8741 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8742 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8743 $as_echo_n "(cached) " >&6
8744 else
8745 cat >conftest.$ac_ext <<_ACEOF
8746 /* confdefs.h. */
8747 _ACEOF
8748 cat confdefs.h >>conftest.$ac_ext
8749 cat >>conftest.$ac_ext <<_ACEOF
8750 /* end confdefs.h. */
8751 $ac_includes_default
8752 #if HAVE_SYS_SOCKET_H
8753 #include <sys/socket.h>
8754 #endif
8755 #if HAVE_NET_IF_H
8756 #include <net/if.h>
8757 #endif
8758
8759 int
8760 main ()
8761 {
8762 static struct ifreq ac_aggr;
8763 if (ac_aggr.ifr_hwaddr)
8764 return 0;
8765 ;
8766 return 0;
8767 }
8768 _ACEOF
8769 rm -f conftest.$ac_objext
8770 if { (ac_try="$ac_compile"
8771 case "(($ac_try" in
8772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8773 *) ac_try_echo=$ac_try;;
8774 esac
8775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8776 $as_echo "$ac_try_echo") >&5
8777 (eval "$ac_compile") 2>conftest.er1
8778 ac_status=$?
8779 grep -v '^ *+' conftest.er1 >conftest.err
8780 rm -f conftest.er1
8781 cat conftest.err >&5
8782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783 (exit $ac_status); } && {
8784 test -z "$ac_c_werror_flag" ||
8785 test ! -s conftest.err
8786 } && test -s conftest.$ac_objext; then
8787 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8788 else
8789 $as_echo "$as_me: failed program was:" >&5
8790 sed 's/^/| /' conftest.$ac_ext >&5
8791
8792 cat >conftest.$ac_ext <<_ACEOF
8793 /* confdefs.h. */
8794 _ACEOF
8795 cat confdefs.h >>conftest.$ac_ext
8796 cat >>conftest.$ac_ext <<_ACEOF
8797 /* end confdefs.h. */
8798 $ac_includes_default
8799 #if HAVE_SYS_SOCKET_H
8800 #include <sys/socket.h>
8801 #endif
8802 #if HAVE_NET_IF_H
8803 #include <net/if.h>
8804 #endif
8805
8806 int
8807 main ()
8808 {
8809 static struct ifreq ac_aggr;
8810 if (sizeof ac_aggr.ifr_hwaddr)
8811 return 0;
8812 ;
8813 return 0;
8814 }
8815 _ACEOF
8816 rm -f conftest.$ac_objext
8817 if { (ac_try="$ac_compile"
8818 case "(($ac_try" in
8819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8820 *) ac_try_echo=$ac_try;;
8821 esac
8822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8823 $as_echo "$ac_try_echo") >&5
8824 (eval "$ac_compile") 2>conftest.er1
8825 ac_status=$?
8826 grep -v '^ *+' conftest.er1 >conftest.err
8827 rm -f conftest.er1
8828 cat conftest.err >&5
8829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); } && {
8831 test -z "$ac_c_werror_flag" ||
8832 test ! -s conftest.err
8833 } && test -s conftest.$ac_objext; then
8834 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8835 else
8836 $as_echo "$as_me: failed program was:" >&5
8837 sed 's/^/| /' conftest.$ac_ext >&5
8838
8839 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8840 fi
8841
8842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8843 fi
8844
8845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8846 fi
8847 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8848 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8849 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8850
8851 cat >>confdefs.h <<_ACEOF
8852 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8853 _ACEOF
8854
8855
8856 fi
8857 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8858 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8859 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8860 $as_echo_n "(cached) " >&6
8861 else
8862 cat >conftest.$ac_ext <<_ACEOF
8863 /* confdefs.h. */
8864 _ACEOF
8865 cat confdefs.h >>conftest.$ac_ext
8866 cat >>conftest.$ac_ext <<_ACEOF
8867 /* end confdefs.h. */
8868 $ac_includes_default
8869 #if HAVE_SYS_SOCKET_H
8870 #include <sys/socket.h>
8871 #endif
8872 #if HAVE_NET_IF_H
8873 #include <net/if.h>
8874 #endif
8875
8876 int
8877 main ()
8878 {
8879 static struct ifreq ac_aggr;
8880 if (ac_aggr.ifr_netmask)
8881 return 0;
8882 ;
8883 return 0;
8884 }
8885 _ACEOF
8886 rm -f conftest.$ac_objext
8887 if { (ac_try="$ac_compile"
8888 case "(($ac_try" in
8889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8890 *) ac_try_echo=$ac_try;;
8891 esac
8892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8893 $as_echo "$ac_try_echo") >&5
8894 (eval "$ac_compile") 2>conftest.er1
8895 ac_status=$?
8896 grep -v '^ *+' conftest.er1 >conftest.err
8897 rm -f conftest.er1
8898 cat conftest.err >&5
8899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); } && {
8901 test -z "$ac_c_werror_flag" ||
8902 test ! -s conftest.err
8903 } && test -s conftest.$ac_objext; then
8904 ac_cv_member_struct_ifreq_ifr_netmask=yes
8905 else
8906 $as_echo "$as_me: failed program was:" >&5
8907 sed 's/^/| /' conftest.$ac_ext >&5
8908
8909 cat >conftest.$ac_ext <<_ACEOF
8910 /* confdefs.h. */
8911 _ACEOF
8912 cat confdefs.h >>conftest.$ac_ext
8913 cat >>conftest.$ac_ext <<_ACEOF
8914 /* end confdefs.h. */
8915 $ac_includes_default
8916 #if HAVE_SYS_SOCKET_H
8917 #include <sys/socket.h>
8918 #endif
8919 #if HAVE_NET_IF_H
8920 #include <net/if.h>
8921 #endif
8922
8923 int
8924 main ()
8925 {
8926 static struct ifreq ac_aggr;
8927 if (sizeof ac_aggr.ifr_netmask)
8928 return 0;
8929 ;
8930 return 0;
8931 }
8932 _ACEOF
8933 rm -f conftest.$ac_objext
8934 if { (ac_try="$ac_compile"
8935 case "(($ac_try" in
8936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8937 *) ac_try_echo=$ac_try;;
8938 esac
8939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8940 $as_echo "$ac_try_echo") >&5
8941 (eval "$ac_compile") 2>conftest.er1
8942 ac_status=$?
8943 grep -v '^ *+' conftest.er1 >conftest.err
8944 rm -f conftest.er1
8945 cat conftest.err >&5
8946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); } && {
8948 test -z "$ac_c_werror_flag" ||
8949 test ! -s conftest.err
8950 } && test -s conftest.$ac_objext; then
8951 ac_cv_member_struct_ifreq_ifr_netmask=yes
8952 else
8953 $as_echo "$as_me: failed program was:" >&5
8954 sed 's/^/| /' conftest.$ac_ext >&5
8955
8956 ac_cv_member_struct_ifreq_ifr_netmask=no
8957 fi
8958
8959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8960 fi
8961
8962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8963 fi
8964 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8965 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8966 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8967
8968 cat >>confdefs.h <<_ACEOF
8969 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8970 _ACEOF
8971
8972
8973 fi
8974 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8975 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8976 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8977 $as_echo_n "(cached) " >&6
8978 else
8979 cat >conftest.$ac_ext <<_ACEOF
8980 /* confdefs.h. */
8981 _ACEOF
8982 cat confdefs.h >>conftest.$ac_ext
8983 cat >>conftest.$ac_ext <<_ACEOF
8984 /* end confdefs.h. */
8985 $ac_includes_default
8986 #if HAVE_SYS_SOCKET_H
8987 #include <sys/socket.h>
8988 #endif
8989 #if HAVE_NET_IF_H
8990 #include <net/if.h>
8991 #endif
8992
8993 int
8994 main ()
8995 {
8996 static struct ifreq ac_aggr;
8997 if (ac_aggr.ifr_broadaddr)
8998 return 0;
8999 ;
9000 return 0;
9001 }
9002 _ACEOF
9003 rm -f conftest.$ac_objext
9004 if { (ac_try="$ac_compile"
9005 case "(($ac_try" in
9006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9007 *) ac_try_echo=$ac_try;;
9008 esac
9009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9010 $as_echo "$ac_try_echo") >&5
9011 (eval "$ac_compile") 2>conftest.er1
9012 ac_status=$?
9013 grep -v '^ *+' conftest.er1 >conftest.err
9014 rm -f conftest.er1
9015 cat conftest.err >&5
9016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); } && {
9018 test -z "$ac_c_werror_flag" ||
9019 test ! -s conftest.err
9020 } && test -s conftest.$ac_objext; then
9021 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
9022 else
9023 $as_echo "$as_me: failed program was:" >&5
9024 sed 's/^/| /' conftest.$ac_ext >&5
9025
9026 cat >conftest.$ac_ext <<_ACEOF
9027 /* confdefs.h. */
9028 _ACEOF
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h. */
9032 $ac_includes_default
9033 #if HAVE_SYS_SOCKET_H
9034 #include <sys/socket.h>
9035 #endif
9036 #if HAVE_NET_IF_H
9037 #include <net/if.h>
9038 #endif
9039
9040 int
9041 main ()
9042 {
9043 static struct ifreq ac_aggr;
9044 if (sizeof ac_aggr.ifr_broadaddr)
9045 return 0;
9046 ;
9047 return 0;
9048 }
9049 _ACEOF
9050 rm -f conftest.$ac_objext
9051 if { (ac_try="$ac_compile"
9052 case "(($ac_try" in
9053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9054 *) ac_try_echo=$ac_try;;
9055 esac
9056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9057 $as_echo "$ac_try_echo") >&5
9058 (eval "$ac_compile") 2>conftest.er1
9059 ac_status=$?
9060 grep -v '^ *+' conftest.er1 >conftest.err
9061 rm -f conftest.er1
9062 cat conftest.err >&5
9063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064 (exit $ac_status); } && {
9065 test -z "$ac_c_werror_flag" ||
9066 test ! -s conftest.err
9067 } && test -s conftest.$ac_objext; then
9068 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
9069 else
9070 $as_echo "$as_me: failed program was:" >&5
9071 sed 's/^/| /' conftest.$ac_ext >&5
9072
9073 ac_cv_member_struct_ifreq_ifr_broadaddr=no
9074 fi
9075
9076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9077 fi
9078
9079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9080 fi
9081 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
9082 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
9083 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
9084
9085 cat >>confdefs.h <<_ACEOF
9086 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9087 _ACEOF
9088
9089
9090 fi
9091 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
9092 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
9093 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
9094 $as_echo_n "(cached) " >&6
9095 else
9096 cat >conftest.$ac_ext <<_ACEOF
9097 /* confdefs.h. */
9098 _ACEOF
9099 cat confdefs.h >>conftest.$ac_ext
9100 cat >>conftest.$ac_ext <<_ACEOF
9101 /* end confdefs.h. */
9102 $ac_includes_default
9103 #if HAVE_SYS_SOCKET_H
9104 #include <sys/socket.h>
9105 #endif
9106 #if HAVE_NET_IF_H
9107 #include <net/if.h>
9108 #endif
9109
9110 int
9111 main ()
9112 {
9113 static struct ifreq ac_aggr;
9114 if (ac_aggr.ifr_addr)
9115 return 0;
9116 ;
9117 return 0;
9118 }
9119 _ACEOF
9120 rm -f conftest.$ac_objext
9121 if { (ac_try="$ac_compile"
9122 case "(($ac_try" in
9123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9124 *) ac_try_echo=$ac_try;;
9125 esac
9126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9127 $as_echo "$ac_try_echo") >&5
9128 (eval "$ac_compile") 2>conftest.er1
9129 ac_status=$?
9130 grep -v '^ *+' conftest.er1 >conftest.err
9131 rm -f conftest.er1
9132 cat conftest.err >&5
9133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); } && {
9135 test -z "$ac_c_werror_flag" ||
9136 test ! -s conftest.err
9137 } && test -s conftest.$ac_objext; then
9138 ac_cv_member_struct_ifreq_ifr_addr=yes
9139 else
9140 $as_echo "$as_me: failed program was:" >&5
9141 sed 's/^/| /' conftest.$ac_ext >&5
9142
9143 cat >conftest.$ac_ext <<_ACEOF
9144 /* confdefs.h. */
9145 _ACEOF
9146 cat confdefs.h >>conftest.$ac_ext
9147 cat >>conftest.$ac_ext <<_ACEOF
9148 /* end confdefs.h. */
9149 $ac_includes_default
9150 #if HAVE_SYS_SOCKET_H
9151 #include <sys/socket.h>
9152 #endif
9153 #if HAVE_NET_IF_H
9154 #include <net/if.h>
9155 #endif
9156
9157 int
9158 main ()
9159 {
9160 static struct ifreq ac_aggr;
9161 if (sizeof ac_aggr.ifr_addr)
9162 return 0;
9163 ;
9164 return 0;
9165 }
9166 _ACEOF
9167 rm -f conftest.$ac_objext
9168 if { (ac_try="$ac_compile"
9169 case "(($ac_try" in
9170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9171 *) ac_try_echo=$ac_try;;
9172 esac
9173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9174 $as_echo "$ac_try_echo") >&5
9175 (eval "$ac_compile") 2>conftest.er1
9176 ac_status=$?
9177 grep -v '^ *+' conftest.er1 >conftest.err
9178 rm -f conftest.er1
9179 cat conftest.err >&5
9180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); } && {
9182 test -z "$ac_c_werror_flag" ||
9183 test ! -s conftest.err
9184 } && test -s conftest.$ac_objext; then
9185 ac_cv_member_struct_ifreq_ifr_addr=yes
9186 else
9187 $as_echo "$as_me: failed program was:" >&5
9188 sed 's/^/| /' conftest.$ac_ext >&5
9189
9190 ac_cv_member_struct_ifreq_ifr_addr=no
9191 fi
9192
9193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9194 fi
9195
9196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9197 fi
9198 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
9199 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
9200 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
9201
9202 cat >>confdefs.h <<_ACEOF
9203 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9204 _ACEOF
9205
9206
9207 fi
9208
9209
9210
9211 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
9212 $as_echo_n "checking for function prototypes... " >&6; }
9213 if test "$ac_cv_prog_cc_c89" != no; then
9214 { $as_echo "$as_me:$LINENO: result: yes" >&5
9215 $as_echo "yes" >&6; }
9216
9217 cat >>confdefs.h <<\_ACEOF
9218 #define PROTOTYPES 1
9219 _ACEOF
9220
9221
9222 cat >>confdefs.h <<\_ACEOF
9223 #define __PROTOTYPES 1
9224 _ACEOF
9225
9226 else
9227 { $as_echo "$as_me:$LINENO: result: no" >&5
9228 $as_echo "no" >&6; }
9229 fi
9230
9231 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
9232 $as_echo_n "checking for working volatile... " >&6; }
9233 if test "${ac_cv_c_volatile+set}" = set; then
9234 $as_echo_n "(cached) " >&6
9235 else
9236 cat >conftest.$ac_ext <<_ACEOF
9237 /* confdefs.h. */
9238 _ACEOF
9239 cat confdefs.h >>conftest.$ac_ext
9240 cat >>conftest.$ac_ext <<_ACEOF
9241 /* end confdefs.h. */
9242
9243 int
9244 main ()
9245 {
9246
9247 volatile int x;
9248 int * volatile y = (int *) 0;
9249 return !x && !y;
9250 ;
9251 return 0;
9252 }
9253 _ACEOF
9254 rm -f conftest.$ac_objext
9255 if { (ac_try="$ac_compile"
9256 case "(($ac_try" in
9257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9258 *) ac_try_echo=$ac_try;;
9259 esac
9260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9261 $as_echo "$ac_try_echo") >&5
9262 (eval "$ac_compile") 2>conftest.er1
9263 ac_status=$?
9264 grep -v '^ *+' conftest.er1 >conftest.err
9265 rm -f conftest.er1
9266 cat conftest.err >&5
9267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268 (exit $ac_status); } && {
9269 test -z "$ac_c_werror_flag" ||
9270 test ! -s conftest.err
9271 } && test -s conftest.$ac_objext; then
9272 ac_cv_c_volatile=yes
9273 else
9274 $as_echo "$as_me: failed program was:" >&5
9275 sed 's/^/| /' conftest.$ac_ext >&5
9276
9277 ac_cv_c_volatile=no
9278 fi
9279
9280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9281 fi
9282 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9283 $as_echo "$ac_cv_c_volatile" >&6; }
9284 if test $ac_cv_c_volatile = no; then
9285
9286 cat >>confdefs.h <<\_ACEOF
9287 #define volatile /**/
9288 _ACEOF
9289
9290 fi
9291
9292 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9293 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9294 if test "${ac_cv_c_const+set}" = set; then
9295 $as_echo_n "(cached) " >&6
9296 else
9297 cat >conftest.$ac_ext <<_ACEOF
9298 /* confdefs.h. */
9299 _ACEOF
9300 cat confdefs.h >>conftest.$ac_ext
9301 cat >>conftest.$ac_ext <<_ACEOF
9302 /* end confdefs.h. */
9303
9304 int
9305 main ()
9306 {
9307 /* FIXME: Include the comments suggested by Paul. */
9308 #ifndef __cplusplus
9309 /* Ultrix mips cc rejects this. */
9310 typedef int charset[2];
9311 const charset cs;
9312 /* SunOS 4.1.1 cc rejects this. */
9313 char const *const *pcpcc;
9314 char **ppc;
9315 /* NEC SVR4.0.2 mips cc rejects this. */
9316 struct point {int x, y;};
9317 static struct point const zero = {0,0};
9318 /* AIX XL C 1.02.0.0 rejects this.
9319 It does not let you subtract one const X* pointer from another in
9320 an arm of an if-expression whose if-part is not a constant
9321 expression */
9322 const char *g = "string";
9323 pcpcc = &g + (g ? g-g : 0);
9324 /* HPUX 7.0 cc rejects these. */
9325 ++pcpcc;
9326 ppc = (char**) pcpcc;
9327 pcpcc = (char const *const *) ppc;
9328 { /* SCO 3.2v4 cc rejects this. */
9329 char *t;
9330 char const *s = 0 ? (char *) 0 : (char const *) 0;
9331
9332 *t++ = 0;
9333 if (s) return 0;
9334 }
9335 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9336 int x[] = {25, 17};
9337 const int *foo = &x[0];
9338 ++foo;
9339 }
9340 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9341 typedef const int *iptr;
9342 iptr p = 0;
9343 ++p;
9344 }
9345 { /* AIX XL C 1.02.0.0 rejects this saying
9346 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9347 struct s { int j; const int *ap[3]; };
9348 struct s *b; b->j = 5;
9349 }
9350 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9351 const int foo = 10;
9352 if (!foo) return 0;
9353 }
9354 return !cs[0] && !zero.x;
9355 #endif
9356
9357 ;
9358 return 0;
9359 }
9360 _ACEOF
9361 rm -f conftest.$ac_objext
9362 if { (ac_try="$ac_compile"
9363 case "(($ac_try" in
9364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9365 *) ac_try_echo=$ac_try;;
9366 esac
9367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9368 $as_echo "$ac_try_echo") >&5
9369 (eval "$ac_compile") 2>conftest.er1
9370 ac_status=$?
9371 grep -v '^ *+' conftest.er1 >conftest.err
9372 rm -f conftest.er1
9373 cat conftest.err >&5
9374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); } && {
9376 test -z "$ac_c_werror_flag" ||
9377 test ! -s conftest.err
9378 } && test -s conftest.$ac_objext; then
9379 ac_cv_c_const=yes
9380 else
9381 $as_echo "$as_me: failed program was:" >&5
9382 sed 's/^/| /' conftest.$ac_ext >&5
9383
9384 ac_cv_c_const=no
9385 fi
9386
9387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9388 fi
9389 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9390 $as_echo "$ac_cv_c_const" >&6; }
9391 if test $ac_cv_c_const = no; then
9392
9393 cat >>confdefs.h <<\_ACEOF
9394 #define const /**/
9395 _ACEOF
9396
9397 fi
9398
9399 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9400 $as_echo_n "checking for void * support... " >&6; }
9401 if test "${emacs_cv_void_star+set}" = set; then
9402 $as_echo_n "(cached) " >&6
9403 else
9404 cat >conftest.$ac_ext <<_ACEOF
9405 /* confdefs.h. */
9406 _ACEOF
9407 cat confdefs.h >>conftest.$ac_ext
9408 cat >>conftest.$ac_ext <<_ACEOF
9409 /* end confdefs.h. */
9410
9411 int
9412 main ()
9413 {
9414 void * foo;
9415 ;
9416 return 0;
9417 }
9418 _ACEOF
9419 rm -f conftest.$ac_objext
9420 if { (ac_try="$ac_compile"
9421 case "(($ac_try" in
9422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9423 *) ac_try_echo=$ac_try;;
9424 esac
9425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9426 $as_echo "$ac_try_echo") >&5
9427 (eval "$ac_compile") 2>conftest.er1
9428 ac_status=$?
9429 grep -v '^ *+' conftest.er1 >conftest.err
9430 rm -f conftest.er1
9431 cat conftest.err >&5
9432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 (exit $ac_status); } && {
9434 test -z "$ac_c_werror_flag" ||
9435 test ! -s conftest.err
9436 } && test -s conftest.$ac_objext; then
9437 emacs_cv_void_star=yes
9438 else
9439 $as_echo "$as_me: failed program was:" >&5
9440 sed 's/^/| /' conftest.$ac_ext >&5
9441
9442 emacs_cv_void_star=no
9443 fi
9444
9445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9446 fi
9447 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9448 $as_echo "$emacs_cv_void_star" >&6; }
9449 if test $emacs_cv_void_star = yes; then
9450 cat >>confdefs.h <<\_ACEOF
9451 #define POINTER_TYPE void
9452 _ACEOF
9453
9454 else
9455 cat >>confdefs.h <<\_ACEOF
9456 #define POINTER_TYPE char
9457 _ACEOF
9458
9459 fi
9460
9461
9462
9463
9464
9465 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9466 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9467 set x ${MAKE-make}
9468 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9469 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9470 $as_echo_n "(cached) " >&6
9471 else
9472 cat >conftest.make <<\_ACEOF
9473 SHELL = /bin/sh
9474 all:
9475 @echo '@@@%%%=$(MAKE)=@@@%%%'
9476 _ACEOF
9477 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9478 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9479 *@@@%%%=?*=@@@%%%*)
9480 eval ac_cv_prog_make_${ac_make}_set=yes;;
9481 *)
9482 eval ac_cv_prog_make_${ac_make}_set=no;;
9483 esac
9484 rm -f conftest.make
9485 fi
9486 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9487 { $as_echo "$as_me:$LINENO: result: yes" >&5
9488 $as_echo "yes" >&6; }
9489 SET_MAKE=
9490 else
9491 { $as_echo "$as_me:$LINENO: result: no" >&5
9492 $as_echo "no" >&6; }
9493 SET_MAKE="MAKE=${MAKE-make}"
9494 fi
9495
9496
9497 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9498 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9499 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9500 HAVE_GNU_MAKE=no
9501 testval=`make --version 2>/dev/null | grep 'GNU Make'`
9502 if test "x$testval" != x; then
9503 HAVE_GNU_MAKE=yes
9504 else
9505 ac_enable_autodepend=no
9506 fi
9507 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9508 $as_echo "$HAVE_GNU_MAKE" >&6; }
9509 if test $HAVE_GNU_MAKE = yes; then
9510 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9511 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9512 SAVE_CFLAGS="$CFLAGS"
9513 CFLAGS="$CFLAGS -MMD -MF deps.d"
9514 cat >conftest.$ac_ext <<_ACEOF
9515 /* confdefs.h. */
9516 _ACEOF
9517 cat confdefs.h >>conftest.$ac_ext
9518 cat >>conftest.$ac_ext <<_ACEOF
9519 /* end confdefs.h. */
9520
9521 int
9522 main ()
9523 {
9524
9525 ;
9526 return 0;
9527 }
9528 _ACEOF
9529 rm -f conftest.$ac_objext
9530 if { (ac_try="$ac_compile"
9531 case "(($ac_try" in
9532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9533 *) ac_try_echo=$ac_try;;
9534 esac
9535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9536 $as_echo "$ac_try_echo") >&5
9537 (eval "$ac_compile") 2>conftest.er1
9538 ac_status=$?
9539 grep -v '^ *+' conftest.er1 >conftest.err
9540 rm -f conftest.er1
9541 cat conftest.err >&5
9542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); } && {
9544 test -z "$ac_c_werror_flag" ||
9545 test ! -s conftest.err
9546 } && test -s conftest.$ac_objext; then
9547 :
9548 else
9549 $as_echo "$as_me: failed program was:" >&5
9550 sed 's/^/| /' conftest.$ac_ext >&5
9551
9552 ac_enable_autodepend=no
9553 fi
9554
9555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9556 CFLAGS="$SAVE_CFLAGS"
9557 test -f deps.d || ac_enable_autodepend=no
9558 rm -rf deps.d
9559 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9560 $as_echo "$ac_enable_autodepend" >&6; }
9561 fi
9562 if test $ac_enable_autodepend = yes; then
9563
9564 cat >>confdefs.h <<\_ACEOF
9565 #define AUTO_DEPEND 1
9566 _ACEOF
9567
9568 fi
9569 fi
9570
9571 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9572 $as_echo_n "checking for long file names... " >&6; }
9573 if test "${ac_cv_sys_long_file_names+set}" = set; then
9574 $as_echo_n "(cached) " >&6
9575 else
9576 ac_cv_sys_long_file_names=yes
9577 # Test for long file names in all the places we know might matter:
9578 # . the current directory, where building will happen
9579 # $prefix/lib where we will be installing things
9580 # $exec_prefix/lib likewise
9581 # $TMPDIR if set, where it might want to write temporary files
9582 # /tmp where it might want to write temporary files
9583 # /var/tmp likewise
9584 # /usr/tmp likewise
9585 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9586 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9587 # in the usual case where exec_prefix is '${prefix}'.
9588 case $ac_dir in #(
9589 . | /* | ?:[\\/]*) ;; #(
9590 *) continue;;
9591 esac
9592 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9593 ac_xdir=$ac_dir/cf$$
9594 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9595 ac_tf1=$ac_xdir/conftest9012345
9596 ac_tf2=$ac_xdir/conftest9012346
9597 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9598 ac_cv_sys_long_file_names=no
9599 rm -f -r "$ac_xdir" 2>/dev/null
9600 test $ac_cv_sys_long_file_names = no && break
9601 done
9602 fi
9603 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9604 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9605 if test $ac_cv_sys_long_file_names = yes; then
9606
9607 cat >>confdefs.h <<\_ACEOF
9608 #define HAVE_LONG_FILE_NAMES 1
9609 _ACEOF
9610
9611 fi
9612
9613
9614 #### Choose a window system.
9615
9616 { $as_echo "$as_me:$LINENO: checking for X" >&5
9617 $as_echo_n "checking for X... " >&6; }
9618
9619
9620 # Check whether --with-x was given.
9621 if test "${with_x+set}" = set; then
9622 withval=$with_x;
9623 fi
9624
9625 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9626 if test "x$with_x" = xno; then
9627 # The user explicitly disabled X.
9628 have_x=disabled
9629 else
9630 case $x_includes,$x_libraries in #(
9631 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9632 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9633 { (exit 1); exit 1; }; };; #(
9634 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9635 $as_echo_n "(cached) " >&6
9636 else
9637 # One or both of the vars are not set, and there is no cached value.
9638 ac_x_includes=no ac_x_libraries=no
9639 rm -f -r conftest.dir
9640 if mkdir conftest.dir; then
9641 cd conftest.dir
9642 cat >Imakefile <<'_ACEOF'
9643 incroot:
9644 @echo incroot='${INCROOT}'
9645 usrlibdir:
9646 @echo usrlibdir='${USRLIBDIR}'
9647 libdir:
9648 @echo libdir='${LIBDIR}'
9649 _ACEOF
9650 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9651 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9652 for ac_var in incroot usrlibdir libdir; do
9653 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9654 done
9655 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9656 for ac_extension in a so sl dylib la dll; do
9657 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9658 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9659 ac_im_usrlibdir=$ac_im_libdir; break
9660 fi
9661 done
9662 # Screen out bogus values from the imake configuration. They are
9663 # bogus both because they are the default anyway, and because
9664 # using them would break gcc on systems where it needs fixed includes.
9665 case $ac_im_incroot in
9666 /usr/include) ac_x_includes= ;;
9667 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9668 esac
9669 case $ac_im_usrlibdir in
9670 /usr/lib | /lib) ;;
9671 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9672 esac
9673 fi
9674 cd ..
9675 rm -f -r conftest.dir
9676 fi
9677
9678 # Standard set of common directories for X headers.
9679 # Check X11 before X11Rn because it is often a symlink to the current release.
9680 ac_x_header_dirs='
9681 /usr/X11/include
9682 /usr/X11R6/include
9683 /usr/X11R5/include
9684 /usr/X11R4/include
9685
9686 /usr/include/X11
9687 /usr/include/X11R6
9688 /usr/include/X11R5
9689 /usr/include/X11R4
9690
9691 /usr/local/X11/include
9692 /usr/local/X11R6/include
9693 /usr/local/X11R5/include
9694 /usr/local/X11R4/include
9695
9696 /usr/local/include/X11
9697 /usr/local/include/X11R6
9698 /usr/local/include/X11R5
9699 /usr/local/include/X11R4
9700
9701 /usr/X386/include
9702 /usr/x386/include
9703 /usr/XFree86/include/X11
9704
9705 /usr/include
9706 /usr/local/include
9707 /usr/unsupported/include
9708 /usr/athena/include
9709 /usr/local/x11r5/include
9710 /usr/lpp/Xamples/include
9711
9712 /usr/openwin/include
9713 /usr/openwin/share/include'
9714
9715 if test "$ac_x_includes" = no; then
9716 # Guess where to find include files, by looking for Xlib.h.
9717 # First, try using that file with no special directory specified.
9718 cat >conftest.$ac_ext <<_ACEOF
9719 /* confdefs.h. */
9720 _ACEOF
9721 cat confdefs.h >>conftest.$ac_ext
9722 cat >>conftest.$ac_ext <<_ACEOF
9723 /* end confdefs.h. */
9724 #include <X11/Xlib.h>
9725 _ACEOF
9726 if { (ac_try="$ac_cpp conftest.$ac_ext"
9727 case "(($ac_try" in
9728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9729 *) ac_try_echo=$ac_try;;
9730 esac
9731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9732 $as_echo "$ac_try_echo") >&5
9733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9734 ac_status=$?
9735 grep -v '^ *+' conftest.er1 >conftest.err
9736 rm -f conftest.er1
9737 cat conftest.err >&5
9738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); } >/dev/null && {
9740 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9741 test ! -s conftest.err
9742 }; then
9743 # We can compile using X headers with no special include directory.
9744 ac_x_includes=
9745 else
9746 $as_echo "$as_me: failed program was:" >&5
9747 sed 's/^/| /' conftest.$ac_ext >&5
9748
9749 for ac_dir in $ac_x_header_dirs; do
9750 if test -r "$ac_dir/X11/Xlib.h"; then
9751 ac_x_includes=$ac_dir
9752 break
9753 fi
9754 done
9755 fi
9756
9757 rm -f conftest.err conftest.$ac_ext
9758 fi # $ac_x_includes = no
9759
9760 if test "$ac_x_libraries" = no; then
9761 # Check for the libraries.
9762 # See if we find them without any special options.
9763 # Don't add to $LIBS permanently.
9764 ac_save_LIBS=$LIBS
9765 LIBS="-lX11 $LIBS"
9766 cat >conftest.$ac_ext <<_ACEOF
9767 /* confdefs.h. */
9768 _ACEOF
9769 cat confdefs.h >>conftest.$ac_ext
9770 cat >>conftest.$ac_ext <<_ACEOF
9771 /* end confdefs.h. */
9772 #include <X11/Xlib.h>
9773 int
9774 main ()
9775 {
9776 XrmInitialize ()
9777 ;
9778 return 0;
9779 }
9780 _ACEOF
9781 rm -f conftest.$ac_objext conftest$ac_exeext
9782 if { (ac_try="$ac_link"
9783 case "(($ac_try" in
9784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9785 *) ac_try_echo=$ac_try;;
9786 esac
9787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9788 $as_echo "$ac_try_echo") >&5
9789 (eval "$ac_link") 2>conftest.er1
9790 ac_status=$?
9791 grep -v '^ *+' conftest.er1 >conftest.err
9792 rm -f conftest.er1
9793 cat conftest.err >&5
9794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } && {
9796 test -z "$ac_c_werror_flag" ||
9797 test ! -s conftest.err
9798 } && test -s conftest$ac_exeext && {
9799 test "$cross_compiling" = yes ||
9800 $as_test_x conftest$ac_exeext
9801 }; then
9802 LIBS=$ac_save_LIBS
9803 # We can link X programs with no special library path.
9804 ac_x_libraries=
9805 else
9806 $as_echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.$ac_ext >&5
9808
9809 LIBS=$ac_save_LIBS
9810 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9811 do
9812 # Don't even attempt the hair of trying to link an X program!
9813 for ac_extension in a so sl dylib la dll; do
9814 if test -r "$ac_dir/libX11.$ac_extension"; then
9815 ac_x_libraries=$ac_dir
9816 break 2
9817 fi
9818 done
9819 done
9820 fi
9821
9822 rm -rf conftest.dSYM
9823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9824 conftest$ac_exeext conftest.$ac_ext
9825 fi # $ac_x_libraries = no
9826
9827 case $ac_x_includes,$ac_x_libraries in #(
9828 no,* | *,no | *\'*)
9829 # Didn't find X, or a directory has "'" in its name.
9830 ac_cv_have_x="have_x=no";; #(
9831 *)
9832 # Record where we found X for the cache.
9833 ac_cv_have_x="have_x=yes\
9834 ac_x_includes='$ac_x_includes'\
9835 ac_x_libraries='$ac_x_libraries'"
9836 esac
9837 fi
9838 ;; #(
9839 *) have_x=yes;;
9840 esac
9841 eval "$ac_cv_have_x"
9842 fi # $with_x != no
9843
9844 if test "$have_x" != yes; then
9845 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9846 $as_echo "$have_x" >&6; }
9847 no_x=yes
9848 else
9849 # If each of the values was on the command line, it overrides each guess.
9850 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9851 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9852 # Update the cache value to reflect the command line values.
9853 ac_cv_have_x="have_x=yes\
9854 ac_x_includes='$x_includes'\
9855 ac_x_libraries='$x_libraries'"
9856 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9857 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9858 fi
9859
9860 if test "$no_x" = yes; then
9861 window_system=none
9862 else
9863 window_system=x11
9864 fi
9865
9866 ## Workaround for bug in autoconf <= 2.62.
9867 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9868 ## No need to do anything special for these standard directories.
9869 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9870
9871 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9872
9873 fi
9874
9875 LD_SWITCH_X_SITE_AUX=
9876 LD_SWITCH_X_SITE_AUX_RPATH=
9877 if test "${x_libraries}" != NONE; then
9878 if test -n "${x_libraries}"; then
9879 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9880 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9881 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9882 fi
9883 x_default_search_path=""
9884 x_search_path=${x_libraries}
9885 if test -z "${x_search_path}"; then
9886 x_search_path=/usr/lib
9887 fi
9888 for x_library in `echo ${x_search_path}: | \
9889 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9890 x_search_path="\
9891 ${x_library}/X11/%L/%T/%N%C%S:\
9892 ${x_library}/X11/%l/%T/%N%C%S:\
9893 ${x_library}/X11/%T/%N%C%S:\
9894 ${x_library}/X11/%L/%T/%N%S:\
9895 ${x_library}/X11/%l/%T/%N%S:\
9896 ${x_library}/X11/%T/%N%S"
9897 if test x"${x_default_search_path}" = x; then
9898 x_default_search_path=${x_search_path}
9899 else
9900 x_default_search_path="${x_search_path}:${x_default_search_path}"
9901 fi
9902 done
9903 fi
9904
9905
9906
9907 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9908 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9909 fi
9910
9911 if test x"${x_includes}" = x; then
9912 bitmapdir=/usr/include/X11/bitmaps
9913 else
9914 # accumulate include directories that have X11 bitmap subdirectories
9915 bmd_acc="dummyval"
9916 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9917 if test -d "${bmd}/X11/bitmaps"; then
9918 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9919 fi
9920 if test -d "${bmd}/bitmaps"; then
9921 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9922 fi
9923 done
9924 if test ${bmd_acc} != "dummyval"; then
9925 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9926 fi
9927 fi
9928
9929 HAVE_NS=no
9930 NS_IMPL_COCOA=no
9931 NS_IMPL_GNUSTEP=no
9932 tmp_CPPFLAGS="$CPPFLAGS"
9933 tmp_CFLAGS="$CFLAGS"
9934 CPPFLAGS="$CPPFLAGS -x objective-c"
9935 CFLAGS="$CFLAGS -x objective-c"
9936 if test "${with_ns}" != no; then
9937 if test "${opsys}" = darwin; then
9938 NS_IMPL_COCOA=yes
9939 ns_appdir=`pwd`/nextstep/Emacs.app
9940 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9941 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9942 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9943 elif test -f $GNUSTEP_CONFIG_FILE; then
9944 NS_IMPL_GNUSTEP=yes
9945 ns_appdir=`pwd`/nextstep/Emacs.app
9946 ns_appbindir=`pwd`/nextstep/Emacs.app
9947 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9948 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9949 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9950 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9951 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9952 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9953 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9954 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9955 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9956 LIB_STANDARD=
9957 fi
9958 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9959 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9960 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9961 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9962 $as_echo_n "(cached) " >&6
9963 fi
9964 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9965 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9966 else
9967 # Is the header compilable?
9968 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9969 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9970 cat >conftest.$ac_ext <<_ACEOF
9971 /* confdefs.h. */
9972 _ACEOF
9973 cat confdefs.h >>conftest.$ac_ext
9974 cat >>conftest.$ac_ext <<_ACEOF
9975 /* end confdefs.h. */
9976 $ac_includes_default
9977 #include <AppKit/AppKit.h>
9978 _ACEOF
9979 rm -f conftest.$ac_objext
9980 if { (ac_try="$ac_compile"
9981 case "(($ac_try" in
9982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9983 *) ac_try_echo=$ac_try;;
9984 esac
9985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9986 $as_echo "$ac_try_echo") >&5
9987 (eval "$ac_compile") 2>conftest.er1
9988 ac_status=$?
9989 grep -v '^ *+' conftest.er1 >conftest.err
9990 rm -f conftest.er1
9991 cat conftest.err >&5
9992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); } && {
9994 test -z "$ac_c_werror_flag" ||
9995 test ! -s conftest.err
9996 } && test -s conftest.$ac_objext; then
9997 ac_header_compiler=yes
9998 else
9999 $as_echo "$as_me: failed program was:" >&5
10000 sed 's/^/| /' conftest.$ac_ext >&5
10001
10002 ac_header_compiler=no
10003 fi
10004
10005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10006 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10007 $as_echo "$ac_header_compiler" >&6; }
10008
10009 # Is the header present?
10010 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
10011 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
10012 cat >conftest.$ac_ext <<_ACEOF
10013 /* confdefs.h. */
10014 _ACEOF
10015 cat confdefs.h >>conftest.$ac_ext
10016 cat >>conftest.$ac_ext <<_ACEOF
10017 /* end confdefs.h. */
10018 #include <AppKit/AppKit.h>
10019 _ACEOF
10020 if { (ac_try="$ac_cpp conftest.$ac_ext"
10021 case "(($ac_try" in
10022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10023 *) ac_try_echo=$ac_try;;
10024 esac
10025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10026 $as_echo "$ac_try_echo") >&5
10027 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10028 ac_status=$?
10029 grep -v '^ *+' conftest.er1 >conftest.err
10030 rm -f conftest.er1
10031 cat conftest.err >&5
10032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); } >/dev/null && {
10034 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10035 test ! -s conftest.err
10036 }; then
10037 ac_header_preproc=yes
10038 else
10039 $as_echo "$as_me: failed program was:" >&5
10040 sed 's/^/| /' conftest.$ac_ext >&5
10041
10042 ac_header_preproc=no
10043 fi
10044
10045 rm -f conftest.err conftest.$ac_ext
10046 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10047 $as_echo "$ac_header_preproc" >&6; }
10048
10049 # So? What about this header?
10050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10051 yes:no: )
10052 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
10053 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10054 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
10055 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
10056 ac_header_preproc=yes
10057 ;;
10058 no:yes:* )
10059 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
10060 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
10061 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
10062 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
10063 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
10064 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
10065 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
10066 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
10067 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
10068 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
10069 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
10070 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
10071
10072 ;;
10073 esac
10074 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
10075 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
10076 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
10077 $as_echo_n "(cached) " >&6
10078 else
10079 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
10080 fi
10081 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
10082 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
10083
10084 fi
10085 if test $ac_cv_header_AppKit_AppKit_h = yes; then
10086 HAVE_NS=yes
10087 else
10088 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
10089 files are missing or cannot be compiled." >&5
10090 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
10091 files are missing or cannot be compiled." >&2;}
10092 { (exit 1); exit 1; }; }
10093 fi
10094
10095
10096 NS_HAVE_NSINTEGER=yes
10097 cat >conftest.$ac_ext <<_ACEOF
10098 /* confdefs.h. */
10099 _ACEOF
10100 cat confdefs.h >>conftest.$ac_ext
10101 cat >>conftest.$ac_ext <<_ACEOF
10102 /* end confdefs.h. */
10103 #include <Foundation/NSObjCRuntime.h>
10104 int
10105 main ()
10106 {
10107 NSInteger i;
10108 ;
10109 return 0;
10110 }
10111 _ACEOF
10112 rm -f conftest.$ac_objext
10113 if { (ac_try="$ac_compile"
10114 case "(($ac_try" in
10115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10116 *) ac_try_echo=$ac_try;;
10117 esac
10118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10119 $as_echo "$ac_try_echo") >&5
10120 (eval "$ac_compile") 2>conftest.er1
10121 ac_status=$?
10122 grep -v '^ *+' conftest.er1 >conftest.err
10123 rm -f conftest.er1
10124 cat conftest.err >&5
10125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); } && {
10127 test -z "$ac_c_werror_flag" ||
10128 test ! -s conftest.err
10129 } && test -s conftest.$ac_objext; then
10130 ns_have_nsinteger=yes
10131 else
10132 $as_echo "$as_me: failed program was:" >&5
10133 sed 's/^/| /' conftest.$ac_ext >&5
10134
10135 ns_have_nsinteger=no
10136 fi
10137
10138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10139 if test $ns_have_nsinteger = no; then
10140 NS_HAVE_NSINTEGER=no
10141 fi
10142 fi
10143
10144 NS_OBJ=
10145 NS_SUPPORT=
10146 if test "${HAVE_NS}" = yes; then
10147 window_system=nextstep
10148 with_xft=no
10149 # set up packaging dirs
10150 exec_prefix=${ns_appbindir}
10151 libexecdir=${ns_appbindir}/libexec
10152 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10153 prefix=${ns_appresdir}
10154 fi
10155 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
10156 NS_SUPPORT="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
10157 fi
10158 CFLAGS="$tmp_CFLAGS"
10159 CPPFLAGS="$tmp_CPPFLAGS"
10160
10161
10162
10163
10164 case "${window_system}" in
10165 x11 )
10166 HAVE_X_WINDOWS=yes
10167 HAVE_X11=yes
10168 case "${with_x_toolkit}" in
10169 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10170 motif ) USE_X_TOOLKIT=MOTIF ;;
10171 gtk ) with_gtk=yes
10172 USE_X_TOOLKIT=none ;;
10173 no ) USE_X_TOOLKIT=none ;;
10174 * ) USE_X_TOOLKIT=maybe ;;
10175 esac
10176 ;;
10177 nextstep | none )
10178 HAVE_X_WINDOWS=no
10179 HAVE_X11=no
10180 USE_X_TOOLKIT=none
10181 ;;
10182 esac
10183
10184 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10185 # Extract the first word of "X", so it can be a program name with args.
10186 set dummy X; ac_word=$2
10187 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10188 $as_echo_n "checking for $ac_word... " >&6; }
10189 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
10190 $as_echo_n "(cached) " >&6
10191 else
10192 if test -n "$HAVE_XSERVER"; then
10193 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10194 else
10195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10196 for as_dir in $PATH
10197 do
10198 IFS=$as_save_IFS
10199 test -z "$as_dir" && as_dir=.
10200 for ac_exec_ext in '' $ac_executable_extensions; do
10201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10202 ac_cv_prog_HAVE_XSERVER="true"
10203 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10204 break 2
10205 fi
10206 done
10207 done
10208 IFS=$as_save_IFS
10209
10210 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10211 fi
10212 fi
10213 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10214 if test -n "$HAVE_XSERVER"; then
10215 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
10216 $as_echo "$HAVE_XSERVER" >&6; }
10217 else
10218 { $as_echo "$as_me:$LINENO: result: no" >&5
10219 $as_echo "no" >&6; }
10220 fi
10221
10222
10223 if test "$HAVE_XSERVER" = true ||
10224 test -n "$DISPLAY" ||
10225 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10226 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
10227 were found. You should install the relevant development files for X
10228 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10229 sure you have development files for image handling, i.e.
10230 tiff, gif, jpeg, png and xpm.
10231 If you are sure you want Emacs compiled without X window support, pass
10232 --without-x
10233 to configure." >&5
10234 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
10235 were found. You should install the relevant development files for X
10236 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10237 sure you have development files for image handling, i.e.
10238 tiff, gif, jpeg, png and xpm.
10239 If you are sure you want Emacs compiled without X window support, pass
10240 --without-x
10241 to configure." >&2;}
10242 { (exit 1); exit 1; }; }
10243 fi
10244 fi
10245
10246 ### If we're using X11, we should use the X menu package.
10247 HAVE_MENUS=no
10248 case ${HAVE_X11} in
10249 yes ) HAVE_MENUS=yes ;;
10250 esac
10251
10252 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10253 # Assume not, until told otherwise.
10254 GNU_MALLOC=yes
10255 doug_lea_malloc=yes
10256 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
10257 $as_echo_n "checking for malloc_get_state... " >&6; }
10258 if test "${ac_cv_func_malloc_get_state+set}" = set; then
10259 $as_echo_n "(cached) " >&6
10260 else
10261 cat >conftest.$ac_ext <<_ACEOF
10262 /* confdefs.h. */
10263 _ACEOF
10264 cat confdefs.h >>conftest.$ac_ext
10265 cat >>conftest.$ac_ext <<_ACEOF
10266 /* end confdefs.h. */
10267 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10269 #define malloc_get_state innocuous_malloc_get_state
10270
10271 /* System header to define __stub macros and hopefully few prototypes,
10272 which can conflict with char malloc_get_state (); below.
10273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10274 <limits.h> exists even on freestanding compilers. */
10275
10276 #ifdef __STDC__
10277 # include <limits.h>
10278 #else
10279 # include <assert.h>
10280 #endif
10281
10282 #undef malloc_get_state
10283
10284 /* Override any GCC internal prototype to avoid an error.
10285 Use char because int might match the return type of a GCC
10286 builtin and then its argument prototype would still apply. */
10287 #ifdef __cplusplus
10288 extern "C"
10289 #endif
10290 char malloc_get_state ();
10291 /* The GNU C library defines this for functions which it implements
10292 to always fail with ENOSYS. Some functions are actually named
10293 something starting with __ and the normal name is an alias. */
10294 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10295 choke me
10296 #endif
10297
10298 int
10299 main ()
10300 {
10301 return malloc_get_state ();
10302 ;
10303 return 0;
10304 }
10305 _ACEOF
10306 rm -f conftest.$ac_objext conftest$ac_exeext
10307 if { (ac_try="$ac_link"
10308 case "(($ac_try" in
10309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10310 *) ac_try_echo=$ac_try;;
10311 esac
10312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10313 $as_echo "$ac_try_echo") >&5
10314 (eval "$ac_link") 2>conftest.er1
10315 ac_status=$?
10316 grep -v '^ *+' conftest.er1 >conftest.err
10317 rm -f conftest.er1
10318 cat conftest.err >&5
10319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); } && {
10321 test -z "$ac_c_werror_flag" ||
10322 test ! -s conftest.err
10323 } && test -s conftest$ac_exeext && {
10324 test "$cross_compiling" = yes ||
10325 $as_test_x conftest$ac_exeext
10326 }; then
10327 ac_cv_func_malloc_get_state=yes
10328 else
10329 $as_echo "$as_me: failed program was:" >&5
10330 sed 's/^/| /' conftest.$ac_ext >&5
10331
10332 ac_cv_func_malloc_get_state=no
10333 fi
10334
10335 rm -rf conftest.dSYM
10336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10337 conftest$ac_exeext conftest.$ac_ext
10338 fi
10339 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10340 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10341 if test $ac_cv_func_malloc_get_state = yes; then
10342 :
10343 else
10344 doug_lea_malloc=no
10345 fi
10346
10347 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10348 $as_echo_n "checking for malloc_set_state... " >&6; }
10349 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10350 $as_echo_n "(cached) " >&6
10351 else
10352 cat >conftest.$ac_ext <<_ACEOF
10353 /* confdefs.h. */
10354 _ACEOF
10355 cat confdefs.h >>conftest.$ac_ext
10356 cat >>conftest.$ac_ext <<_ACEOF
10357 /* end confdefs.h. */
10358 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10360 #define malloc_set_state innocuous_malloc_set_state
10361
10362 /* System header to define __stub macros and hopefully few prototypes,
10363 which can conflict with char malloc_set_state (); below.
10364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10365 <limits.h> exists even on freestanding compilers. */
10366
10367 #ifdef __STDC__
10368 # include <limits.h>
10369 #else
10370 # include <assert.h>
10371 #endif
10372
10373 #undef malloc_set_state
10374
10375 /* Override any GCC internal prototype to avoid an error.
10376 Use char because int might match the return type of a GCC
10377 builtin and then its argument prototype would still apply. */
10378 #ifdef __cplusplus
10379 extern "C"
10380 #endif
10381 char malloc_set_state ();
10382 /* The GNU C library defines this for functions which it implements
10383 to always fail with ENOSYS. Some functions are actually named
10384 something starting with __ and the normal name is an alias. */
10385 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10386 choke me
10387 #endif
10388
10389 int
10390 main ()
10391 {
10392 return malloc_set_state ();
10393 ;
10394 return 0;
10395 }
10396 _ACEOF
10397 rm -f conftest.$ac_objext conftest$ac_exeext
10398 if { (ac_try="$ac_link"
10399 case "(($ac_try" in
10400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10401 *) ac_try_echo=$ac_try;;
10402 esac
10403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10404 $as_echo "$ac_try_echo") >&5
10405 (eval "$ac_link") 2>conftest.er1
10406 ac_status=$?
10407 grep -v '^ *+' conftest.er1 >conftest.err
10408 rm -f conftest.er1
10409 cat conftest.err >&5
10410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); } && {
10412 test -z "$ac_c_werror_flag" ||
10413 test ! -s conftest.err
10414 } && test -s conftest$ac_exeext && {
10415 test "$cross_compiling" = yes ||
10416 $as_test_x conftest$ac_exeext
10417 }; then
10418 ac_cv_func_malloc_set_state=yes
10419 else
10420 $as_echo "$as_me: failed program was:" >&5
10421 sed 's/^/| /' conftest.$ac_ext >&5
10422
10423 ac_cv_func_malloc_set_state=no
10424 fi
10425
10426 rm -rf conftest.dSYM
10427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10428 conftest$ac_exeext conftest.$ac_ext
10429 fi
10430 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10431 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10432 if test $ac_cv_func_malloc_set_state = yes; then
10433 :
10434 else
10435 doug_lea_malloc=no
10436 fi
10437
10438 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10439 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10440 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10441 $as_echo_n "(cached) " >&6
10442 else
10443 cat >conftest.$ac_ext <<_ACEOF
10444 /* confdefs.h. */
10445 _ACEOF
10446 cat confdefs.h >>conftest.$ac_ext
10447 cat >>conftest.$ac_ext <<_ACEOF
10448 /* end confdefs.h. */
10449 extern void (* __after_morecore_hook)();
10450 int
10451 main ()
10452 {
10453 __after_morecore_hook = 0
10454 ;
10455 return 0;
10456 }
10457 _ACEOF
10458 rm -f conftest.$ac_objext conftest$ac_exeext
10459 if { (ac_try="$ac_link"
10460 case "(($ac_try" in
10461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10462 *) ac_try_echo=$ac_try;;
10463 esac
10464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10465 $as_echo "$ac_try_echo") >&5
10466 (eval "$ac_link") 2>conftest.er1
10467 ac_status=$?
10468 grep -v '^ *+' conftest.er1 >conftest.err
10469 rm -f conftest.er1
10470 cat conftest.err >&5
10471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); } && {
10473 test -z "$ac_c_werror_flag" ||
10474 test ! -s conftest.err
10475 } && test -s conftest$ac_exeext && {
10476 test "$cross_compiling" = yes ||
10477 $as_test_x conftest$ac_exeext
10478 }; then
10479 emacs_cv_var___after_morecore_hook=yes
10480 else
10481 $as_echo "$as_me: failed program was:" >&5
10482 sed 's/^/| /' conftest.$ac_ext >&5
10483
10484 emacs_cv_var___after_morecore_hook=no
10485 fi
10486
10487 rm -rf conftest.dSYM
10488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10489 conftest$ac_exeext conftest.$ac_ext
10490 fi
10491 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10492 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10493 if test $emacs_cv_var___after_morecore_hook = no; then
10494 doug_lea_malloc=no
10495 fi
10496 if test "${system_malloc}" = "yes"; then
10497 GNU_MALLOC=no
10498 GNU_MALLOC_reason="
10499 (The GNU allocators don't work with this system configuration.)"
10500 fi
10501 if test "$doug_lea_malloc" = "yes" ; then
10502 if test "$GNU_MALLOC" = yes ; then
10503 GNU_MALLOC_reason="
10504 (Using Doug Lea's new malloc from the GNU C Library.)"
10505 fi
10506
10507 cat >>confdefs.h <<\_ACEOF
10508 #define DOUG_LEA_MALLOC 1
10509 _ACEOF
10510
10511 fi
10512
10513 if test x"${REL_ALLOC}" = x; then
10514 REL_ALLOC=${GNU_MALLOC}
10515 fi
10516
10517
10518
10519
10520 for ac_header in stdlib.h unistd.h
10521 do
10522 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10524 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10525 $as_echo_n "checking for $ac_header... " >&6; }
10526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10527 $as_echo_n "(cached) " >&6
10528 fi
10529 ac_res=`eval 'as_val=${'$as_ac_Header'}
10530 $as_echo "$as_val"'`
10531 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10532 $as_echo "$ac_res" >&6; }
10533 else
10534 # Is the header compilable?
10535 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10536 $as_echo_n "checking $ac_header usability... " >&6; }
10537 cat >conftest.$ac_ext <<_ACEOF
10538 /* confdefs.h. */
10539 _ACEOF
10540 cat confdefs.h >>conftest.$ac_ext
10541 cat >>conftest.$ac_ext <<_ACEOF
10542 /* end confdefs.h. */
10543 $ac_includes_default
10544 #include <$ac_header>
10545 _ACEOF
10546 rm -f conftest.$ac_objext
10547 if { (ac_try="$ac_compile"
10548 case "(($ac_try" in
10549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10550 *) ac_try_echo=$ac_try;;
10551 esac
10552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10553 $as_echo "$ac_try_echo") >&5
10554 (eval "$ac_compile") 2>conftest.er1
10555 ac_status=$?
10556 grep -v '^ *+' conftest.er1 >conftest.err
10557 rm -f conftest.er1
10558 cat conftest.err >&5
10559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); } && {
10561 test -z "$ac_c_werror_flag" ||
10562 test ! -s conftest.err
10563 } && test -s conftest.$ac_objext; then
10564 ac_header_compiler=yes
10565 else
10566 $as_echo "$as_me: failed program was:" >&5
10567 sed 's/^/| /' conftest.$ac_ext >&5
10568
10569 ac_header_compiler=no
10570 fi
10571
10572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10573 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10574 $as_echo "$ac_header_compiler" >&6; }
10575
10576 # Is the header present?
10577 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10578 $as_echo_n "checking $ac_header presence... " >&6; }
10579 cat >conftest.$ac_ext <<_ACEOF
10580 /* confdefs.h. */
10581 _ACEOF
10582 cat confdefs.h >>conftest.$ac_ext
10583 cat >>conftest.$ac_ext <<_ACEOF
10584 /* end confdefs.h. */
10585 #include <$ac_header>
10586 _ACEOF
10587 if { (ac_try="$ac_cpp conftest.$ac_ext"
10588 case "(($ac_try" in
10589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10590 *) ac_try_echo=$ac_try;;
10591 esac
10592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10593 $as_echo "$ac_try_echo") >&5
10594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10595 ac_status=$?
10596 grep -v '^ *+' conftest.er1 >conftest.err
10597 rm -f conftest.er1
10598 cat conftest.err >&5
10599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); } >/dev/null && {
10601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10602 test ! -s conftest.err
10603 }; then
10604 ac_header_preproc=yes
10605 else
10606 $as_echo "$as_me: failed program was:" >&5
10607 sed 's/^/| /' conftest.$ac_ext >&5
10608
10609 ac_header_preproc=no
10610 fi
10611
10612 rm -f conftest.err conftest.$ac_ext
10613 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10614 $as_echo "$ac_header_preproc" >&6; }
10615
10616 # So? What about this header?
10617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10618 yes:no: )
10619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10620 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10622 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10623 ac_header_preproc=yes
10624 ;;
10625 no:yes:* )
10626 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10627 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10628 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10629 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10630 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10631 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10632 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10633 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10634 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10635 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10636 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10637 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10638
10639 ;;
10640 esac
10641 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10642 $as_echo_n "checking for $ac_header... " >&6; }
10643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10644 $as_echo_n "(cached) " >&6
10645 else
10646 eval "$as_ac_Header=\$ac_header_preproc"
10647 fi
10648 ac_res=`eval 'as_val=${'$as_ac_Header'}
10649 $as_echo "$as_val"'`
10650 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10651 $as_echo "$ac_res" >&6; }
10652
10653 fi
10654 if test `eval 'as_val=${'$as_ac_Header'}
10655 $as_echo "$as_val"'` = yes; then
10656 cat >>confdefs.h <<_ACEOF
10657 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10658 _ACEOF
10659
10660 fi
10661
10662 done
10663
10664
10665 for ac_func in getpagesize
10666 do
10667 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10668 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10669 $as_echo_n "checking for $ac_func... " >&6; }
10670 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10671 $as_echo_n "(cached) " >&6
10672 else
10673 cat >conftest.$ac_ext <<_ACEOF
10674 /* confdefs.h. */
10675 _ACEOF
10676 cat confdefs.h >>conftest.$ac_ext
10677 cat >>conftest.$ac_ext <<_ACEOF
10678 /* end confdefs.h. */
10679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10681 #define $ac_func innocuous_$ac_func
10682
10683 /* System header to define __stub macros and hopefully few prototypes,
10684 which can conflict with char $ac_func (); below.
10685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10686 <limits.h> exists even on freestanding compilers. */
10687
10688 #ifdef __STDC__
10689 # include <limits.h>
10690 #else
10691 # include <assert.h>
10692 #endif
10693
10694 #undef $ac_func
10695
10696 /* Override any GCC internal prototype to avoid an error.
10697 Use char because int might match the return type of a GCC
10698 builtin and then its argument prototype would still apply. */
10699 #ifdef __cplusplus
10700 extern "C"
10701 #endif
10702 char $ac_func ();
10703 /* The GNU C library defines this for functions which it implements
10704 to always fail with ENOSYS. Some functions are actually named
10705 something starting with __ and the normal name is an alias. */
10706 #if defined __stub_$ac_func || defined __stub___$ac_func
10707 choke me
10708 #endif
10709
10710 int
10711 main ()
10712 {
10713 return $ac_func ();
10714 ;
10715 return 0;
10716 }
10717 _ACEOF
10718 rm -f conftest.$ac_objext conftest$ac_exeext
10719 if { (ac_try="$ac_link"
10720 case "(($ac_try" in
10721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10722 *) ac_try_echo=$ac_try;;
10723 esac
10724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10725 $as_echo "$ac_try_echo") >&5
10726 (eval "$ac_link") 2>conftest.er1
10727 ac_status=$?
10728 grep -v '^ *+' conftest.er1 >conftest.err
10729 rm -f conftest.er1
10730 cat conftest.err >&5
10731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732 (exit $ac_status); } && {
10733 test -z "$ac_c_werror_flag" ||
10734 test ! -s conftest.err
10735 } && test -s conftest$ac_exeext && {
10736 test "$cross_compiling" = yes ||
10737 $as_test_x conftest$ac_exeext
10738 }; then
10739 eval "$as_ac_var=yes"
10740 else
10741 $as_echo "$as_me: failed program was:" >&5
10742 sed 's/^/| /' conftest.$ac_ext >&5
10743
10744 eval "$as_ac_var=no"
10745 fi
10746
10747 rm -rf conftest.dSYM
10748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10749 conftest$ac_exeext conftest.$ac_ext
10750 fi
10751 ac_res=`eval 'as_val=${'$as_ac_var'}
10752 $as_echo "$as_val"'`
10753 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10754 $as_echo "$ac_res" >&6; }
10755 if test `eval 'as_val=${'$as_ac_var'}
10756 $as_echo "$as_val"'` = yes; then
10757 cat >>confdefs.h <<_ACEOF
10758 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10759 _ACEOF
10760
10761 fi
10762 done
10763
10764 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10765 $as_echo_n "checking for working mmap... " >&6; }
10766 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10767 $as_echo_n "(cached) " >&6
10768 else
10769 if test "$cross_compiling" = yes; then
10770 ac_cv_func_mmap_fixed_mapped=no
10771 else
10772 cat >conftest.$ac_ext <<_ACEOF
10773 /* confdefs.h. */
10774 _ACEOF
10775 cat confdefs.h >>conftest.$ac_ext
10776 cat >>conftest.$ac_ext <<_ACEOF
10777 /* end confdefs.h. */
10778 $ac_includes_default
10779 /* malloc might have been renamed as rpl_malloc. */
10780 #undef malloc
10781
10782 /* Thanks to Mike Haertel and Jim Avera for this test.
10783 Here is a matrix of mmap possibilities:
10784 mmap private not fixed
10785 mmap private fixed at somewhere currently unmapped
10786 mmap private fixed at somewhere already mapped
10787 mmap shared not fixed
10788 mmap shared fixed at somewhere currently unmapped
10789 mmap shared fixed at somewhere already mapped
10790 For private mappings, we should verify that changes cannot be read()
10791 back from the file, nor mmap's back from the file at a different
10792 address. (There have been systems where private was not correctly
10793 implemented like the infamous i386 svr4.0, and systems where the
10794 VM page cache was not coherent with the file system buffer cache
10795 like early versions of FreeBSD and possibly contemporary NetBSD.)
10796 For shared mappings, we should conversely verify that changes get
10797 propagated back to all the places they're supposed to be.
10798
10799 Grep wants private fixed already mapped.
10800 The main things grep needs to know about mmap are:
10801 * does it exist and is it safe to write into the mmap'd area
10802 * how to use it (BSD variants) */
10803
10804 #include <fcntl.h>
10805 #include <sys/mman.h>
10806
10807 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10808 char *malloc ();
10809 #endif
10810
10811 /* This mess was copied from the GNU getpagesize.h. */
10812 #ifndef HAVE_GETPAGESIZE
10813 /* Assume that all systems that can run configure have sys/param.h. */
10814 # ifndef HAVE_SYS_PARAM_H
10815 # define HAVE_SYS_PARAM_H 1
10816 # endif
10817
10818 # ifdef _SC_PAGESIZE
10819 # define getpagesize() sysconf(_SC_PAGESIZE)
10820 # else /* no _SC_PAGESIZE */
10821 # ifdef HAVE_SYS_PARAM_H
10822 # include <sys/param.h>
10823 # ifdef EXEC_PAGESIZE
10824 # define getpagesize() EXEC_PAGESIZE
10825 # else /* no EXEC_PAGESIZE */
10826 # ifdef NBPG
10827 # define getpagesize() NBPG * CLSIZE
10828 # ifndef CLSIZE
10829 # define CLSIZE 1
10830 # endif /* no CLSIZE */
10831 # else /* no NBPG */
10832 # ifdef NBPC
10833 # define getpagesize() NBPC
10834 # else /* no NBPC */
10835 # ifdef PAGESIZE
10836 # define getpagesize() PAGESIZE
10837 # endif /* PAGESIZE */
10838 # endif /* no NBPC */
10839 # endif /* no NBPG */
10840 # endif /* no EXEC_PAGESIZE */
10841 # else /* no HAVE_SYS_PARAM_H */
10842 # define getpagesize() 8192 /* punt totally */
10843 # endif /* no HAVE_SYS_PARAM_H */
10844 # endif /* no _SC_PAGESIZE */
10845
10846 #endif /* no HAVE_GETPAGESIZE */
10847
10848 int
10849 main ()
10850 {
10851 char *data, *data2, *data3;
10852 int i, pagesize;
10853 int fd;
10854
10855 pagesize = getpagesize ();
10856
10857 /* First, make a file with some known garbage in it. */
10858 data = (char *) malloc (pagesize);
10859 if (!data)
10860 return 1;
10861 for (i = 0; i < pagesize; ++i)
10862 *(data + i) = rand ();
10863 umask (0);
10864 fd = creat ("conftest.mmap", 0600);
10865 if (fd < 0)
10866 return 1;
10867 if (write (fd, data, pagesize) != pagesize)
10868 return 1;
10869 close (fd);
10870
10871 /* Next, try to mmap the file at a fixed address which already has
10872 something else allocated at it. If we can, also make sure that
10873 we see the same garbage. */
10874 fd = open ("conftest.mmap", O_RDWR);
10875 if (fd < 0)
10876 return 1;
10877 data2 = (char *) malloc (2 * pagesize);
10878 if (!data2)
10879 return 1;
10880 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10881 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10882 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10883 return 1;
10884 for (i = 0; i < pagesize; ++i)
10885 if (*(data + i) != *(data2 + i))
10886 return 1;
10887
10888 /* Finally, make sure that changes to the mapped area do not
10889 percolate back to the file as seen by read(). (This is a bug on
10890 some variants of i386 svr4.0.) */
10891 for (i = 0; i < pagesize; ++i)
10892 *(data2 + i) = *(data2 + i) + 1;
10893 data3 = (char *) malloc (pagesize);
10894 if (!data3)
10895 return 1;
10896 if (read (fd, data3, pagesize) != pagesize)
10897 return 1;
10898 for (i = 0; i < pagesize; ++i)
10899 if (*(data + i) != *(data3 + i))
10900 return 1;
10901 close (fd);
10902 return 0;
10903 }
10904 _ACEOF
10905 rm -f conftest$ac_exeext
10906 if { (ac_try="$ac_link"
10907 case "(($ac_try" in
10908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10909 *) ac_try_echo=$ac_try;;
10910 esac
10911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10912 $as_echo "$ac_try_echo") >&5
10913 (eval "$ac_link") 2>&5
10914 ac_status=$?
10915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10917 { (case "(($ac_try" in
10918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10919 *) ac_try_echo=$ac_try;;
10920 esac
10921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10922 $as_echo "$ac_try_echo") >&5
10923 (eval "$ac_try") 2>&5
10924 ac_status=$?
10925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); }; }; then
10927 ac_cv_func_mmap_fixed_mapped=yes
10928 else
10929 $as_echo "$as_me: program exited with status $ac_status" >&5
10930 $as_echo "$as_me: failed program was:" >&5
10931 sed 's/^/| /' conftest.$ac_ext >&5
10932
10933 ( exit $ac_status )
10934 ac_cv_func_mmap_fixed_mapped=no
10935 fi
10936 rm -rf conftest.dSYM
10937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10938 fi
10939
10940
10941 fi
10942 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10943 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10944 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10945
10946 cat >>confdefs.h <<\_ACEOF
10947 #define HAVE_MMAP 1
10948 _ACEOF
10949
10950 fi
10951 rm -f conftest.mmap
10952
10953 if test $use_mmap_for_buffers = yes; then
10954 REL_ALLOC=no
10955 fi
10956
10957 LIBS="$LIBS_SYSTEM $LIBS"
10958
10959
10960 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10961 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10962 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10963 $as_echo_n "(cached) " >&6
10964 else
10965 ac_check_lib_save_LIBS=$LIBS
10966 LIBS="-ldnet $LIBS"
10967 cat >conftest.$ac_ext <<_ACEOF
10968 /* confdefs.h. */
10969 _ACEOF
10970 cat confdefs.h >>conftest.$ac_ext
10971 cat >>conftest.$ac_ext <<_ACEOF
10972 /* end confdefs.h. */
10973
10974 /* Override any GCC internal prototype to avoid an error.
10975 Use char because int might match the return type of a GCC
10976 builtin and then its argument prototype would still apply. */
10977 #ifdef __cplusplus
10978 extern "C"
10979 #endif
10980 char dnet_ntoa ();
10981 int
10982 main ()
10983 {
10984 return dnet_ntoa ();
10985 ;
10986 return 0;
10987 }
10988 _ACEOF
10989 rm -f conftest.$ac_objext conftest$ac_exeext
10990 if { (ac_try="$ac_link"
10991 case "(($ac_try" in
10992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10993 *) ac_try_echo=$ac_try;;
10994 esac
10995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10996 $as_echo "$ac_try_echo") >&5
10997 (eval "$ac_link") 2>conftest.er1
10998 ac_status=$?
10999 grep -v '^ *+' conftest.er1 >conftest.err
11000 rm -f conftest.er1
11001 cat conftest.err >&5
11002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); } && {
11004 test -z "$ac_c_werror_flag" ||
11005 test ! -s conftest.err
11006 } && test -s conftest$ac_exeext && {
11007 test "$cross_compiling" = yes ||
11008 $as_test_x conftest$ac_exeext
11009 }; then
11010 ac_cv_lib_dnet_dnet_ntoa=yes
11011 else
11012 $as_echo "$as_me: failed program was:" >&5
11013 sed 's/^/| /' conftest.$ac_ext >&5
11014
11015 ac_cv_lib_dnet_dnet_ntoa=no
11016 fi
11017
11018 rm -rf conftest.dSYM
11019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11020 conftest$ac_exeext conftest.$ac_ext
11021 LIBS=$ac_check_lib_save_LIBS
11022 fi
11023 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11024 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
11025 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
11026 cat >>confdefs.h <<_ACEOF
11027 #define HAVE_LIBDNET 1
11028 _ACEOF
11029
11030 LIBS="-ldnet $LIBS"
11031
11032 fi
11033
11034
11035 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
11036 $as_echo_n "checking for main in -lXbsd... " >&6; }
11037 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
11038 $as_echo_n "(cached) " >&6
11039 else
11040 ac_check_lib_save_LIBS=$LIBS
11041 LIBS="-lXbsd $LIBS"
11042 cat >conftest.$ac_ext <<_ACEOF
11043 /* confdefs.h. */
11044 _ACEOF
11045 cat confdefs.h >>conftest.$ac_ext
11046 cat >>conftest.$ac_ext <<_ACEOF
11047 /* end confdefs.h. */
11048
11049
11050 int
11051 main ()
11052 {
11053 return main ();
11054 ;
11055 return 0;
11056 }
11057 _ACEOF
11058 rm -f conftest.$ac_objext conftest$ac_exeext
11059 if { (ac_try="$ac_link"
11060 case "(($ac_try" in
11061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11062 *) ac_try_echo=$ac_try;;
11063 esac
11064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11065 $as_echo "$ac_try_echo") >&5
11066 (eval "$ac_link") 2>conftest.er1
11067 ac_status=$?
11068 grep -v '^ *+' conftest.er1 >conftest.err
11069 rm -f conftest.er1
11070 cat conftest.err >&5
11071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); } && {
11073 test -z "$ac_c_werror_flag" ||
11074 test ! -s conftest.err
11075 } && test -s conftest$ac_exeext && {
11076 test "$cross_compiling" = yes ||
11077 $as_test_x conftest$ac_exeext
11078 }; then
11079 ac_cv_lib_Xbsd_main=yes
11080 else
11081 $as_echo "$as_me: failed program was:" >&5
11082 sed 's/^/| /' conftest.$ac_ext >&5
11083
11084 ac_cv_lib_Xbsd_main=no
11085 fi
11086
11087 rm -rf conftest.dSYM
11088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11089 conftest$ac_exeext conftest.$ac_ext
11090 LIBS=$ac_check_lib_save_LIBS
11091 fi
11092 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
11093 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
11094 if test $ac_cv_lib_Xbsd_main = yes; then
11095 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
11096 fi
11097
11098
11099
11100 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
11101 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
11102 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
11103 $as_echo_n "(cached) " >&6
11104 else
11105 ac_check_lib_save_LIBS=$LIBS
11106 LIBS="-lpthreads $LIBS"
11107 cat >conftest.$ac_ext <<_ACEOF
11108 /* confdefs.h. */
11109 _ACEOF
11110 cat confdefs.h >>conftest.$ac_ext
11111 cat >>conftest.$ac_ext <<_ACEOF
11112 /* end confdefs.h. */
11113
11114 /* Override any GCC internal prototype to avoid an error.
11115 Use char because int might match the return type of a GCC
11116 builtin and then its argument prototype would still apply. */
11117 #ifdef __cplusplus
11118 extern "C"
11119 #endif
11120 char cma_open ();
11121 int
11122 main ()
11123 {
11124 return cma_open ();
11125 ;
11126 return 0;
11127 }
11128 _ACEOF
11129 rm -f conftest.$ac_objext conftest$ac_exeext
11130 if { (ac_try="$ac_link"
11131 case "(($ac_try" in
11132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133 *) ac_try_echo=$ac_try;;
11134 esac
11135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11136 $as_echo "$ac_try_echo") >&5
11137 (eval "$ac_link") 2>conftest.er1
11138 ac_status=$?
11139 grep -v '^ *+' conftest.er1 >conftest.err
11140 rm -f conftest.er1
11141 cat conftest.err >&5
11142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); } && {
11144 test -z "$ac_c_werror_flag" ||
11145 test ! -s conftest.err
11146 } && test -s conftest$ac_exeext && {
11147 test "$cross_compiling" = yes ||
11148 $as_test_x conftest$ac_exeext
11149 }; then
11150 ac_cv_lib_pthreads_cma_open=yes
11151 else
11152 $as_echo "$as_me: failed program was:" >&5
11153 sed 's/^/| /' conftest.$ac_ext >&5
11154
11155 ac_cv_lib_pthreads_cma_open=no
11156 fi
11157
11158 rm -rf conftest.dSYM
11159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11160 conftest$ac_exeext conftest.$ac_ext
11161 LIBS=$ac_check_lib_save_LIBS
11162 fi
11163 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
11164 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
11165 if test $ac_cv_lib_pthreads_cma_open = yes; then
11166 cat >>confdefs.h <<_ACEOF
11167 #define HAVE_LIBPTHREADS 1
11168 _ACEOF
11169
11170 LIBS="-lpthreads $LIBS"
11171
11172 fi
11173
11174
11175 ## Note: when using cpp in s/aix4.2.h, this definition depended on
11176 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
11177 ## the system file was sourced. Hence the value of LIBS_SYSTEM
11178 ## added to LIBS in configure would never contain the pthreads part,
11179 ## but the value used in Makefiles might. FIXME?
11180 ##
11181 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
11182 ## be harmless on older versions of X where it happens to exist.
11183 test "$opsys" = "aix4-2" && \
11184 test $ac_cv_lib_pthreads_cma_open = yes && \
11185 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
11186
11187
11188 case ${host_os} in
11189 aix*)
11190 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
11191 $as_echo_n "checking for -bbigtoc option... " >&6; }
11192 if test "${gdb_cv_bigtoc+set}" = set; then
11193 $as_echo_n "(cached) " >&6
11194 else
11195
11196 case $GCC in
11197 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
11198 *) gdb_cv_bigtoc=-bbigtoc ;;
11199 esac
11200
11201 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
11202 cat >conftest.$ac_ext <<_ACEOF
11203 /* confdefs.h. */
11204 _ACEOF
11205 cat confdefs.h >>conftest.$ac_ext
11206 cat >>conftest.$ac_ext <<_ACEOF
11207 /* end confdefs.h. */
11208
11209 int
11210 main ()
11211 {
11212 int i;
11213 ;
11214 return 0;
11215 }
11216 _ACEOF
11217 rm -f conftest.$ac_objext conftest$ac_exeext
11218 if { (ac_try="$ac_link"
11219 case "(($ac_try" in
11220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11221 *) ac_try_echo=$ac_try;;
11222 esac
11223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11224 $as_echo "$ac_try_echo") >&5
11225 (eval "$ac_link") 2>conftest.er1
11226 ac_status=$?
11227 grep -v '^ *+' conftest.er1 >conftest.err
11228 rm -f conftest.er1
11229 cat conftest.err >&5
11230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); } && {
11232 test -z "$ac_c_werror_flag" ||
11233 test ! -s conftest.err
11234 } && test -s conftest$ac_exeext && {
11235 test "$cross_compiling" = yes ||
11236 $as_test_x conftest$ac_exeext
11237 }; then
11238 :
11239 else
11240 $as_echo "$as_me: failed program was:" >&5
11241 sed 's/^/| /' conftest.$ac_ext >&5
11242
11243 gdb_cv_bigtoc=
11244 fi
11245
11246 rm -rf conftest.dSYM
11247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11248 conftest$ac_exeext conftest.$ac_ext
11249
11250 fi
11251 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
11252 $as_echo "$gdb_cv_bigtoc" >&6; }
11253 ;;
11254 esac
11255
11256 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11257 # used for the tests that follow. We set them back to REAL_CFLAGS and
11258 # REAL_CPPFLAGS later on.
11259
11260 REAL_CPPFLAGS="$CPPFLAGS"
11261
11262 if test "${HAVE_X11}" = "yes"; then
11263 DEFS="$C_SWITCH_X_SITE $DEFS"
11264 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11265 LIBS="$LIBX $LIBS"
11266 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11267 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11268
11269 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11270 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
11271 # but it's more convenient here to set LD_RUN_PATH
11272 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11273 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11274 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11275 export LD_RUN_PATH
11276 fi
11277
11278 if test "${opsys}" = "gnu-linux"; then
11279 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
11280 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11281 cat >conftest.$ac_ext <<_ACEOF
11282 /* confdefs.h. */
11283 _ACEOF
11284 cat confdefs.h >>conftest.$ac_ext
11285 cat >>conftest.$ac_ext <<_ACEOF
11286 /* end confdefs.h. */
11287
11288 int
11289 main ()
11290 {
11291 XOpenDisplay ("foo");
11292 ;
11293 return 0;
11294 }
11295 _ACEOF
11296 rm -f conftest.$ac_objext conftest$ac_exeext
11297 if { (ac_try="$ac_link"
11298 case "(($ac_try" in
11299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11300 *) ac_try_echo=$ac_try;;
11301 esac
11302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11303 $as_echo "$ac_try_echo") >&5
11304 (eval "$ac_link") 2>conftest.er1
11305 ac_status=$?
11306 grep -v '^ *+' conftest.er1 >conftest.err
11307 rm -f conftest.er1
11308 cat conftest.err >&5
11309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); } && {
11311 test -z "$ac_c_werror_flag" ||
11312 test ! -s conftest.err
11313 } && test -s conftest$ac_exeext && {
11314 test "$cross_compiling" = yes ||
11315 $as_test_x conftest$ac_exeext
11316 }; then
11317 xlinux_first_failure=no
11318 else
11319 $as_echo "$as_me: failed program was:" >&5
11320 sed 's/^/| /' conftest.$ac_ext >&5
11321
11322 xlinux_first_failure=yes
11323 fi
11324
11325 rm -rf conftest.dSYM
11326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11327 conftest$ac_exeext conftest.$ac_ext
11328 if test "${xlinux_first_failure}" = "yes"; then
11329 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11330 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
11331 OLD_CPPFLAGS="$CPPFLAGS"
11332 OLD_LIBS="$LIBS"
11333 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
11334 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
11335 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
11336 LIBS="$LIBS -b i486-linuxaout"
11337 cat >conftest.$ac_ext <<_ACEOF
11338 /* confdefs.h. */
11339 _ACEOF
11340 cat confdefs.h >>conftest.$ac_ext
11341 cat >>conftest.$ac_ext <<_ACEOF
11342 /* end confdefs.h. */
11343
11344 int
11345 main ()
11346 {
11347 XOpenDisplay ("foo");
11348 ;
11349 return 0;
11350 }
11351 _ACEOF
11352 rm -f conftest.$ac_objext conftest$ac_exeext
11353 if { (ac_try="$ac_link"
11354 case "(($ac_try" in
11355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11356 *) ac_try_echo=$ac_try;;
11357 esac
11358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11359 $as_echo "$ac_try_echo") >&5
11360 (eval "$ac_link") 2>conftest.er1
11361 ac_status=$?
11362 grep -v '^ *+' conftest.er1 >conftest.err
11363 rm -f conftest.er1
11364 cat conftest.err >&5
11365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); } && {
11367 test -z "$ac_c_werror_flag" ||
11368 test ! -s conftest.err
11369 } && test -s conftest$ac_exeext && {
11370 test "$cross_compiling" = yes ||
11371 $as_test_x conftest$ac_exeext
11372 }; then
11373 xlinux_second_failure=no
11374 else
11375 $as_echo "$as_me: failed program was:" >&5
11376 sed 's/^/| /' conftest.$ac_ext >&5
11377
11378 xlinux_second_failure=yes
11379 fi
11380
11381 rm -rf conftest.dSYM
11382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11383 conftest$ac_exeext conftest.$ac_ext
11384 if test "${xlinux_second_failure}" = "yes"; then
11385 # If we get the same failure with -b, there is no use adding -b.
11386 # So take it out. This plays safe.
11387 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11388 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11389 CPPFLAGS="$OLD_CPPFLAGS"
11390 LIBS="$OLD_LIBS"
11391 { $as_echo "$as_me:$LINENO: result: no" >&5
11392 $as_echo "no" >&6; }
11393 else
11394 { $as_echo "$as_me:$LINENO: result: yes" >&5
11395 $as_echo "yes" >&6; }
11396 fi
11397 else
11398 { $as_echo "$as_me:$LINENO: result: no" >&5
11399 $as_echo "no" >&6; }
11400 fi
11401 fi
11402
11403 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11404 # header files included from there.
11405 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11406 $as_echo_n "checking for Xkb... " >&6; }
11407 cat >conftest.$ac_ext <<_ACEOF
11408 /* confdefs.h. */
11409 _ACEOF
11410 cat confdefs.h >>conftest.$ac_ext
11411 cat >>conftest.$ac_ext <<_ACEOF
11412 /* end confdefs.h. */
11413 #include <X11/Xlib.h>
11414 #include <X11/XKBlib.h>
11415 int
11416 main ()
11417 {
11418 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11419 ;
11420 return 0;
11421 }
11422 _ACEOF
11423 rm -f conftest.$ac_objext conftest$ac_exeext
11424 if { (ac_try="$ac_link"
11425 case "(($ac_try" in
11426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11427 *) ac_try_echo=$ac_try;;
11428 esac
11429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11430 $as_echo "$ac_try_echo") >&5
11431 (eval "$ac_link") 2>conftest.er1
11432 ac_status=$?
11433 grep -v '^ *+' conftest.er1 >conftest.err
11434 rm -f conftest.er1
11435 cat conftest.err >&5
11436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); } && {
11438 test -z "$ac_c_werror_flag" ||
11439 test ! -s conftest.err
11440 } && test -s conftest$ac_exeext && {
11441 test "$cross_compiling" = yes ||
11442 $as_test_x conftest$ac_exeext
11443 }; then
11444 emacs_xkb=yes
11445 else
11446 $as_echo "$as_me: failed program was:" >&5
11447 sed 's/^/| /' conftest.$ac_ext >&5
11448
11449 emacs_xkb=no
11450 fi
11451
11452 rm -rf conftest.dSYM
11453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11454 conftest$ac_exeext conftest.$ac_ext
11455 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11456 $as_echo "$emacs_xkb" >&6; }
11457 if test $emacs_xkb = yes; then
11458
11459 cat >>confdefs.h <<\_ACEOF
11460 #define HAVE_XKBGETKEYBOARD 1
11461 _ACEOF
11462
11463 fi
11464
11465
11466
11467
11468
11469 for ac_func in XrmSetDatabase XScreenResourceString \
11470 XScreenNumberOfScreen XSetWMProtocols
11471 do
11472 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11473 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11474 $as_echo_n "checking for $ac_func... " >&6; }
11475 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11476 $as_echo_n "(cached) " >&6
11477 else
11478 cat >conftest.$ac_ext <<_ACEOF
11479 /* confdefs.h. */
11480 _ACEOF
11481 cat confdefs.h >>conftest.$ac_ext
11482 cat >>conftest.$ac_ext <<_ACEOF
11483 /* end confdefs.h. */
11484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11486 #define $ac_func innocuous_$ac_func
11487
11488 /* System header to define __stub macros and hopefully few prototypes,
11489 which can conflict with char $ac_func (); below.
11490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11491 <limits.h> exists even on freestanding compilers. */
11492
11493 #ifdef __STDC__
11494 # include <limits.h>
11495 #else
11496 # include <assert.h>
11497 #endif
11498
11499 #undef $ac_func
11500
11501 /* Override any GCC internal prototype to avoid an error.
11502 Use char because int might match the return type of a GCC
11503 builtin and then its argument prototype would still apply. */
11504 #ifdef __cplusplus
11505 extern "C"
11506 #endif
11507 char $ac_func ();
11508 /* The GNU C library defines this for functions which it implements
11509 to always fail with ENOSYS. Some functions are actually named
11510 something starting with __ and the normal name is an alias. */
11511 #if defined __stub_$ac_func || defined __stub___$ac_func
11512 choke me
11513 #endif
11514
11515 int
11516 main ()
11517 {
11518 return $ac_func ();
11519 ;
11520 return 0;
11521 }
11522 _ACEOF
11523 rm -f conftest.$ac_objext conftest$ac_exeext
11524 if { (ac_try="$ac_link"
11525 case "(($ac_try" in
11526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11527 *) ac_try_echo=$ac_try;;
11528 esac
11529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11530 $as_echo "$ac_try_echo") >&5
11531 (eval "$ac_link") 2>conftest.er1
11532 ac_status=$?
11533 grep -v '^ *+' conftest.er1 >conftest.err
11534 rm -f conftest.er1
11535 cat conftest.err >&5
11536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); } && {
11538 test -z "$ac_c_werror_flag" ||
11539 test ! -s conftest.err
11540 } && test -s conftest$ac_exeext && {
11541 test "$cross_compiling" = yes ||
11542 $as_test_x conftest$ac_exeext
11543 }; then
11544 eval "$as_ac_var=yes"
11545 else
11546 $as_echo "$as_me: failed program was:" >&5
11547 sed 's/^/| /' conftest.$ac_ext >&5
11548
11549 eval "$as_ac_var=no"
11550 fi
11551
11552 rm -rf conftest.dSYM
11553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11554 conftest$ac_exeext conftest.$ac_ext
11555 fi
11556 ac_res=`eval 'as_val=${'$as_ac_var'}
11557 $as_echo "$as_val"'`
11558 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11559 $as_echo "$ac_res" >&6; }
11560 if test `eval 'as_val=${'$as_ac_var'}
11561 $as_echo "$as_val"'` = yes; then
11562 cat >>confdefs.h <<_ACEOF
11563 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11564 _ACEOF
11565
11566 fi
11567 done
11568
11569 fi
11570
11571 if test "${window_system}" = "x11"; then
11572 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11573 $as_echo_n "checking X11 version 6... " >&6; }
11574 if test "${emacs_cv_x11_version_6+set}" = set; then
11575 $as_echo_n "(cached) " >&6
11576 else
11577 cat >conftest.$ac_ext <<_ACEOF
11578 /* confdefs.h. */
11579 _ACEOF
11580 cat confdefs.h >>conftest.$ac_ext
11581 cat >>conftest.$ac_ext <<_ACEOF
11582 /* end confdefs.h. */
11583 #include <X11/Xlib.h>
11584 int
11585 main ()
11586 {
11587 #if XlibSpecificationRelease < 6
11588 fail;
11589 #endif
11590
11591 ;
11592 return 0;
11593 }
11594 _ACEOF
11595 rm -f conftest.$ac_objext conftest$ac_exeext
11596 if { (ac_try="$ac_link"
11597 case "(($ac_try" in
11598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11599 *) ac_try_echo=$ac_try;;
11600 esac
11601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11602 $as_echo "$ac_try_echo") >&5
11603 (eval "$ac_link") 2>conftest.er1
11604 ac_status=$?
11605 grep -v '^ *+' conftest.er1 >conftest.err
11606 rm -f conftest.er1
11607 cat conftest.err >&5
11608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); } && {
11610 test -z "$ac_c_werror_flag" ||
11611 test ! -s conftest.err
11612 } && test -s conftest$ac_exeext && {
11613 test "$cross_compiling" = yes ||
11614 $as_test_x conftest$ac_exeext
11615 }; then
11616 emacs_cv_x11_version_6=yes
11617 else
11618 $as_echo "$as_me: failed program was:" >&5
11619 sed 's/^/| /' conftest.$ac_ext >&5
11620
11621 emacs_cv_x11_version_6=no
11622 fi
11623
11624 rm -rf conftest.dSYM
11625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11626 conftest$ac_exeext conftest.$ac_ext
11627 fi
11628
11629 if test $emacs_cv_x11_version_6 = yes; then
11630 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11631 $as_echo "6 or newer" >&6; }
11632
11633 cat >>confdefs.h <<\_ACEOF
11634 #define HAVE_X11R6 1
11635 _ACEOF
11636
11637 else
11638 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11639 $as_echo "before 6" >&6; }
11640 fi
11641 fi
11642
11643
11644 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11645 HAVE_RSVG=no
11646 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
11647 if test "${with_rsvg}" != "no"; then
11648 RSVG_REQUIRED=2.11.0
11649 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11650
11651
11652 succeeded=no
11653
11654 # Extract the first word of "pkg-config", so it can be a program name with args.
11655 set dummy pkg-config; ac_word=$2
11656 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11657 $as_echo_n "checking for $ac_word... " >&6; }
11658 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11659 $as_echo_n "(cached) " >&6
11660 else
11661 case $PKG_CONFIG in
11662 [\\/]* | ?:[\\/]*)
11663 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11664 ;;
11665 *)
11666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11667 for as_dir in $PATH
11668 do
11669 IFS=$as_save_IFS
11670 test -z "$as_dir" && as_dir=.
11671 for ac_exec_ext in '' $ac_executable_extensions; do
11672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11673 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11674 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11675 break 2
11676 fi
11677 done
11678 done
11679 IFS=$as_save_IFS
11680
11681 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11682 ;;
11683 esac
11684 fi
11685 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11686 if test -n "$PKG_CONFIG"; then
11687 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11688 $as_echo "$PKG_CONFIG" >&6; }
11689 else
11690 { $as_echo "$as_me:$LINENO: result: no" >&5
11691 $as_echo "no" >&6; }
11692 fi
11693
11694
11695
11696 if test "$PKG_CONFIG" = "no" ; then
11697 :
11698 else
11699 PKG_CONFIG_MIN_VERSION=0.9.0
11700 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11701 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11702 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11703
11704 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11705 { $as_echo "$as_me:$LINENO: result: yes" >&5
11706 $as_echo "yes" >&6; }
11707 succeeded=yes
11708
11709 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11710 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11711 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11712 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11713 $as_echo "$RSVG_CFLAGS" >&6; }
11714
11715 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11716 $as_echo_n "checking RSVG_LIBS... " >&6; }
11717 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11718 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11719 $as_echo "$RSVG_LIBS" >&6; }
11720 else
11721 { $as_echo "$as_me:$LINENO: result: no" >&5
11722 $as_echo "no" >&6; }
11723 RSVG_CFLAGS=""
11724 RSVG_LIBS=""
11725 ## If we have a custom action on failure, don't print errors, but
11726 ## do set a variable so people can do so.
11727 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11728
11729 fi
11730
11731
11732
11733 else
11734 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11735 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11736 fi
11737 fi
11738
11739 if test $succeeded = yes; then
11740 :
11741 else
11742 :
11743 fi
11744
11745
11746
11747
11748 if test ".${RSVG_CFLAGS}" != "."; then
11749 HAVE_RSVG=yes
11750
11751 cat >>confdefs.h <<\_ACEOF
11752 #define HAVE_RSVG 1
11753 _ACEOF
11754
11755 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11756 LIBS="$RSVG_LIBS $LIBS"
11757 fi
11758 fi
11759 fi
11760
11761
11762 HAVE_GTK=no
11763 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11764 GLIB_REQUIRED=2.6
11765 GTK_REQUIRED=2.6
11766 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11767
11768
11769 succeeded=no
11770
11771 # Extract the first word of "pkg-config", so it can be a program name with args.
11772 set dummy pkg-config; ac_word=$2
11773 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11774 $as_echo_n "checking for $ac_word... " >&6; }
11775 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11776 $as_echo_n "(cached) " >&6
11777 else
11778 case $PKG_CONFIG in
11779 [\\/]* | ?:[\\/]*)
11780 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11781 ;;
11782 *)
11783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11784 for as_dir in $PATH
11785 do
11786 IFS=$as_save_IFS
11787 test -z "$as_dir" && as_dir=.
11788 for ac_exec_ext in '' $ac_executable_extensions; do
11789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11790 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11791 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11792 break 2
11793 fi
11794 done
11795 done
11796 IFS=$as_save_IFS
11797
11798 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11799 ;;
11800 esac
11801 fi
11802 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11803 if test -n "$PKG_CONFIG"; then
11804 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11805 $as_echo "$PKG_CONFIG" >&6; }
11806 else
11807 { $as_echo "$as_me:$LINENO: result: no" >&5
11808 $as_echo "no" >&6; }
11809 fi
11810
11811
11812
11813 if test "$PKG_CONFIG" = "no" ; then
11814 pkg_check_gtk=no
11815 else
11816 PKG_CONFIG_MIN_VERSION=0.9.0
11817 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11818 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11819 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11820
11821 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11822 { $as_echo "$as_me:$LINENO: result: yes" >&5
11823 $as_echo "yes" >&6; }
11824 succeeded=yes
11825
11826 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11827 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11828 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11829 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11830 $as_echo "$GTK_CFLAGS" >&6; }
11831
11832 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11833 $as_echo_n "checking GTK_LIBS... " >&6; }
11834 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11835 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11836 $as_echo "$GTK_LIBS" >&6; }
11837 else
11838 { $as_echo "$as_me:$LINENO: result: no" >&5
11839 $as_echo "no" >&6; }
11840 GTK_CFLAGS=""
11841 GTK_LIBS=""
11842 ## If we have a custom action on failure, don't print errors, but
11843 ## do set a variable so people can do so.
11844 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11845
11846 fi
11847
11848
11849
11850 else
11851 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11852 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11853 fi
11854 fi
11855
11856 if test $succeeded = yes; then
11857 pkg_check_gtk=yes
11858 else
11859 pkg_check_gtk=no
11860 fi
11861
11862 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11863 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11864 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11865 { (exit 1); exit 1; }; }
11866 fi
11867 fi
11868
11869
11870 GTK_OBJ=
11871 if test x"$pkg_check_gtk" = xyes; then
11872
11873
11874
11875 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11876 CFLAGS="$CFLAGS $GTK_CFLAGS"
11877 LIBS="$GTK_LIBS $LIBS"
11878 GTK_COMPILES=no
11879
11880 for ac_func in gtk_main
11881 do
11882 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11883 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11884 $as_echo_n "checking for $ac_func... " >&6; }
11885 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11886 $as_echo_n "(cached) " >&6
11887 else
11888 cat >conftest.$ac_ext <<_ACEOF
11889 /* confdefs.h. */
11890 _ACEOF
11891 cat confdefs.h >>conftest.$ac_ext
11892 cat >>conftest.$ac_ext <<_ACEOF
11893 /* end confdefs.h. */
11894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11896 #define $ac_func innocuous_$ac_func
11897
11898 /* System header to define __stub macros and hopefully few prototypes,
11899 which can conflict with char $ac_func (); below.
11900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11901 <limits.h> exists even on freestanding compilers. */
11902
11903 #ifdef __STDC__
11904 # include <limits.h>
11905 #else
11906 # include <assert.h>
11907 #endif
11908
11909 #undef $ac_func
11910
11911 /* Override any GCC internal prototype to avoid an error.
11912 Use char because int might match the return type of a GCC
11913 builtin and then its argument prototype would still apply. */
11914 #ifdef __cplusplus
11915 extern "C"
11916 #endif
11917 char $ac_func ();
11918 /* The GNU C library defines this for functions which it implements
11919 to always fail with ENOSYS. Some functions are actually named
11920 something starting with __ and the normal name is an alias. */
11921 #if defined __stub_$ac_func || defined __stub___$ac_func
11922 choke me
11923 #endif
11924
11925 int
11926 main ()
11927 {
11928 return $ac_func ();
11929 ;
11930 return 0;
11931 }
11932 _ACEOF
11933 rm -f conftest.$ac_objext conftest$ac_exeext
11934 if { (ac_try="$ac_link"
11935 case "(($ac_try" in
11936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11937 *) ac_try_echo=$ac_try;;
11938 esac
11939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11940 $as_echo "$ac_try_echo") >&5
11941 (eval "$ac_link") 2>conftest.er1
11942 ac_status=$?
11943 grep -v '^ *+' conftest.er1 >conftest.err
11944 rm -f conftest.er1
11945 cat conftest.err >&5
11946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); } && {
11948 test -z "$ac_c_werror_flag" ||
11949 test ! -s conftest.err
11950 } && test -s conftest$ac_exeext && {
11951 test "$cross_compiling" = yes ||
11952 $as_test_x conftest$ac_exeext
11953 }; then
11954 eval "$as_ac_var=yes"
11955 else
11956 $as_echo "$as_me: failed program was:" >&5
11957 sed 's/^/| /' conftest.$ac_ext >&5
11958
11959 eval "$as_ac_var=no"
11960 fi
11961
11962 rm -rf conftest.dSYM
11963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11964 conftest$ac_exeext conftest.$ac_ext
11965 fi
11966 ac_res=`eval 'as_val=${'$as_ac_var'}
11967 $as_echo "$as_val"'`
11968 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11969 $as_echo "$ac_res" >&6; }
11970 if test `eval 'as_val=${'$as_ac_var'}
11971 $as_echo "$as_val"'` = yes; then
11972 cat >>confdefs.h <<_ACEOF
11973 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11974 _ACEOF
11975 GTK_COMPILES=yes
11976 fi
11977 done
11978
11979 if test "${GTK_COMPILES}" != "yes"; then
11980 if test "$USE_X_TOOLKIT" != "maybe"; then
11981 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11982 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11983 { (exit 1); exit 1; }; };
11984 fi
11985 else
11986 HAVE_GTK=yes
11987
11988 cat >>confdefs.h <<\_ACEOF
11989 #define USE_GTK 1
11990 _ACEOF
11991
11992 GTK_OBJ=gtkutil.o
11993 USE_X_TOOLKIT=none
11994 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11995 :
11996 else
11997 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11998 closing open displays. This is no problem if you just use
11999 one display, but if you use more than one and close one of them
12000 Emacs may crash." >&5
12001 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
12002 closing open displays. This is no problem if you just use
12003 one display, but if you use more than one and close one of them
12004 Emacs may crash." >&2;}
12005 sleep 3
12006 fi
12007 fi
12008
12009 fi
12010
12011
12012
12013 if test "${HAVE_GTK}" = "yes"; then
12014
12015 if test "$with_toolkit_scroll_bars" != no; then
12016 with_toolkit_scroll_bars=yes
12017 fi
12018
12019 HAVE_GTK_MULTIDISPLAY=no
12020
12021 for ac_func in gdk_display_open
12022 do
12023 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12024 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12025 $as_echo_n "checking for $ac_func... " >&6; }
12026 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12027 $as_echo_n "(cached) " >&6
12028 else
12029 cat >conftest.$ac_ext <<_ACEOF
12030 /* confdefs.h. */
12031 _ACEOF
12032 cat confdefs.h >>conftest.$ac_ext
12033 cat >>conftest.$ac_ext <<_ACEOF
12034 /* end confdefs.h. */
12035 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12037 #define $ac_func innocuous_$ac_func
12038
12039 /* System header to define __stub macros and hopefully few prototypes,
12040 which can conflict with char $ac_func (); below.
12041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12042 <limits.h> exists even on freestanding compilers. */
12043
12044 #ifdef __STDC__
12045 # include <limits.h>
12046 #else
12047 # include <assert.h>
12048 #endif
12049
12050 #undef $ac_func
12051
12052 /* Override any GCC internal prototype to avoid an error.
12053 Use char because int might match the return type of a GCC
12054 builtin and then its argument prototype would still apply. */
12055 #ifdef __cplusplus
12056 extern "C"
12057 #endif
12058 char $ac_func ();
12059 /* The GNU C library defines this for functions which it implements
12060 to always fail with ENOSYS. Some functions are actually named
12061 something starting with __ and the normal name is an alias. */
12062 #if defined __stub_$ac_func || defined __stub___$ac_func
12063 choke me
12064 #endif
12065
12066 int
12067 main ()
12068 {
12069 return $ac_func ();
12070 ;
12071 return 0;
12072 }
12073 _ACEOF
12074 rm -f conftest.$ac_objext conftest$ac_exeext
12075 if { (ac_try="$ac_link"
12076 case "(($ac_try" in
12077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12078 *) ac_try_echo=$ac_try;;
12079 esac
12080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12081 $as_echo "$ac_try_echo") >&5
12082 (eval "$ac_link") 2>conftest.er1
12083 ac_status=$?
12084 grep -v '^ *+' conftest.er1 >conftest.err
12085 rm -f conftest.er1
12086 cat conftest.err >&5
12087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); } && {
12089 test -z "$ac_c_werror_flag" ||
12090 test ! -s conftest.err
12091 } && test -s conftest$ac_exeext && {
12092 test "$cross_compiling" = yes ||
12093 $as_test_x conftest$ac_exeext
12094 }; then
12095 eval "$as_ac_var=yes"
12096 else
12097 $as_echo "$as_me: failed program was:" >&5
12098 sed 's/^/| /' conftest.$ac_ext >&5
12099
12100 eval "$as_ac_var=no"
12101 fi
12102
12103 rm -rf conftest.dSYM
12104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12105 conftest$ac_exeext conftest.$ac_ext
12106 fi
12107 ac_res=`eval 'as_val=${'$as_ac_var'}
12108 $as_echo "$as_val"'`
12109 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12110 $as_echo "$ac_res" >&6; }
12111 if test `eval 'as_val=${'$as_ac_var'}
12112 $as_echo "$as_val"'` = yes; then
12113 cat >>confdefs.h <<_ACEOF
12114 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12115 _ACEOF
12116 HAVE_GTK_MULTIDISPLAY=yes
12117 fi
12118 done
12119
12120 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
12121
12122 cat >>confdefs.h <<\_ACEOF
12123 #define HAVE_GTK_MULTIDISPLAY 1
12124 _ACEOF
12125
12126 fi
12127
12128 HAVE_GTK_FILE_SELECTION=no
12129 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
12130 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
12131 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
12132 $as_echo_n "(cached) " >&6
12133 else
12134 cat >conftest.$ac_ext <<_ACEOF
12135 /* confdefs.h. */
12136 _ACEOF
12137 cat confdefs.h >>conftest.$ac_ext
12138 cat >>conftest.$ac_ext <<_ACEOF
12139 /* end confdefs.h. */
12140 $ac_includes_default
12141 #include <gtk/gtk.h>
12142
12143 int
12144 main ()
12145 {
12146 #ifndef GTK_TYPE_FILE_SELECTION
12147 (void) GTK_TYPE_FILE_SELECTION;
12148 #endif
12149
12150 ;
12151 return 0;
12152 }
12153 _ACEOF
12154 rm -f conftest.$ac_objext
12155 if { (ac_try="$ac_compile"
12156 case "(($ac_try" in
12157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12158 *) ac_try_echo=$ac_try;;
12159 esac
12160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12161 $as_echo "$ac_try_echo") >&5
12162 (eval "$ac_compile") 2>conftest.er1
12163 ac_status=$?
12164 grep -v '^ *+' conftest.er1 >conftest.err
12165 rm -f conftest.er1
12166 cat conftest.err >&5
12167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); } && {
12169 test -z "$ac_c_werror_flag" ||
12170 test ! -s conftest.err
12171 } && test -s conftest.$ac_objext; then
12172 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
12173 else
12174 $as_echo "$as_me: failed program was:" >&5
12175 sed 's/^/| /' conftest.$ac_ext >&5
12176
12177 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
12178 fi
12179
12180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12181 fi
12182 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
12183 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
12184 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
12185 HAVE_GTK_FILE_SELECTION=yes
12186 else
12187 HAVE_GTK_FILE_SELECTION=no
12188 fi
12189
12190 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
12191
12192 for ac_func in gtk_file_selection_new
12193 do
12194 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12195 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12196 $as_echo_n "checking for $ac_func... " >&6; }
12197 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12198 $as_echo_n "(cached) " >&6
12199 else
12200 cat >conftest.$ac_ext <<_ACEOF
12201 /* confdefs.h. */
12202 _ACEOF
12203 cat confdefs.h >>conftest.$ac_ext
12204 cat >>conftest.$ac_ext <<_ACEOF
12205 /* end confdefs.h. */
12206 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12208 #define $ac_func innocuous_$ac_func
12209
12210 /* System header to define __stub macros and hopefully few prototypes,
12211 which can conflict with char $ac_func (); below.
12212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12213 <limits.h> exists even on freestanding compilers. */
12214
12215 #ifdef __STDC__
12216 # include <limits.h>
12217 #else
12218 # include <assert.h>
12219 #endif
12220
12221 #undef $ac_func
12222
12223 /* Override any GCC internal prototype to avoid an error.
12224 Use char because int might match the return type of a GCC
12225 builtin and then its argument prototype would still apply. */
12226 #ifdef __cplusplus
12227 extern "C"
12228 #endif
12229 char $ac_func ();
12230 /* The GNU C library defines this for functions which it implements
12231 to always fail with ENOSYS. Some functions are actually named
12232 something starting with __ and the normal name is an alias. */
12233 #if defined __stub_$ac_func || defined __stub___$ac_func
12234 choke me
12235 #endif
12236
12237 int
12238 main ()
12239 {
12240 return $ac_func ();
12241 ;
12242 return 0;
12243 }
12244 _ACEOF
12245 rm -f conftest.$ac_objext conftest$ac_exeext
12246 if { (ac_try="$ac_link"
12247 case "(($ac_try" in
12248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12249 *) ac_try_echo=$ac_try;;
12250 esac
12251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12252 $as_echo "$ac_try_echo") >&5
12253 (eval "$ac_link") 2>conftest.er1
12254 ac_status=$?
12255 grep -v '^ *+' conftest.er1 >conftest.err
12256 rm -f conftest.er1
12257 cat conftest.err >&5
12258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); } && {
12260 test -z "$ac_c_werror_flag" ||
12261 test ! -s conftest.err
12262 } && test -s conftest$ac_exeext && {
12263 test "$cross_compiling" = yes ||
12264 $as_test_x conftest$ac_exeext
12265 }; then
12266 eval "$as_ac_var=yes"
12267 else
12268 $as_echo "$as_me: failed program was:" >&5
12269 sed 's/^/| /' conftest.$ac_ext >&5
12270
12271 eval "$as_ac_var=no"
12272 fi
12273
12274 rm -rf conftest.dSYM
12275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12276 conftest$ac_exeext conftest.$ac_ext
12277 fi
12278 ac_res=`eval 'as_val=${'$as_ac_var'}
12279 $as_echo "$as_val"'`
12280 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12281 $as_echo "$ac_res" >&6; }
12282 if test `eval 'as_val=${'$as_ac_var'}
12283 $as_echo "$as_val"'` = yes; then
12284 cat >>confdefs.h <<_ACEOF
12285 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12286 _ACEOF
12287 HAVE_GTK_FILE_SELECTION=yes
12288 else
12289 HAVE_GTK_FILE_SELECTION=no
12290 fi
12291 done
12292
12293 fi
12294
12295 HAVE_GTK_FILE_CHOOSER=no
12296 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12297 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12298 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12299 $as_echo_n "(cached) " >&6
12300 else
12301 cat >conftest.$ac_ext <<_ACEOF
12302 /* confdefs.h. */
12303 _ACEOF
12304 cat confdefs.h >>conftest.$ac_ext
12305 cat >>conftest.$ac_ext <<_ACEOF
12306 /* end confdefs.h. */
12307 $ac_includes_default
12308 #include <gtk/gtk.h>
12309
12310 int
12311 main ()
12312 {
12313 #ifndef GTK_TYPE_FILE_CHOOSER
12314 (void) GTK_TYPE_FILE_CHOOSER;
12315 #endif
12316
12317 ;
12318 return 0;
12319 }
12320 _ACEOF
12321 rm -f conftest.$ac_objext
12322 if { (ac_try="$ac_compile"
12323 case "(($ac_try" in
12324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12325 *) ac_try_echo=$ac_try;;
12326 esac
12327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12328 $as_echo "$ac_try_echo") >&5
12329 (eval "$ac_compile") 2>conftest.er1
12330 ac_status=$?
12331 grep -v '^ *+' conftest.er1 >conftest.err
12332 rm -f conftest.er1
12333 cat conftest.err >&5
12334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); } && {
12336 test -z "$ac_c_werror_flag" ||
12337 test ! -s conftest.err
12338 } && test -s conftest.$ac_objext; then
12339 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12340 else
12341 $as_echo "$as_me: failed program was:" >&5
12342 sed 's/^/| /' conftest.$ac_ext >&5
12343
12344 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12345 fi
12346
12347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12348 fi
12349 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12350 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12351 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
12352 HAVE_GTK_FILE_CHOOSER=yes
12353 else
12354 HAVE_GTK_FILE_CHOOSER=no
12355 fi
12356
12357 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12358
12359 for ac_func in gtk_file_chooser_dialog_new
12360 do
12361 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12362 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12363 $as_echo_n "checking for $ac_func... " >&6; }
12364 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12365 $as_echo_n "(cached) " >&6
12366 else
12367 cat >conftest.$ac_ext <<_ACEOF
12368 /* confdefs.h. */
12369 _ACEOF
12370 cat confdefs.h >>conftest.$ac_ext
12371 cat >>conftest.$ac_ext <<_ACEOF
12372 /* end confdefs.h. */
12373 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12375 #define $ac_func innocuous_$ac_func
12376
12377 /* System header to define __stub macros and hopefully few prototypes,
12378 which can conflict with char $ac_func (); below.
12379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12380 <limits.h> exists even on freestanding compilers. */
12381
12382 #ifdef __STDC__
12383 # include <limits.h>
12384 #else
12385 # include <assert.h>
12386 #endif
12387
12388 #undef $ac_func
12389
12390 /* Override any GCC internal prototype to avoid an error.
12391 Use char because int might match the return type of a GCC
12392 builtin and then its argument prototype would still apply. */
12393 #ifdef __cplusplus
12394 extern "C"
12395 #endif
12396 char $ac_func ();
12397 /* The GNU C library defines this for functions which it implements
12398 to always fail with ENOSYS. Some functions are actually named
12399 something starting with __ and the normal name is an alias. */
12400 #if defined __stub_$ac_func || defined __stub___$ac_func
12401 choke me
12402 #endif
12403
12404 int
12405 main ()
12406 {
12407 return $ac_func ();
12408 ;
12409 return 0;
12410 }
12411 _ACEOF
12412 rm -f conftest.$ac_objext conftest$ac_exeext
12413 if { (ac_try="$ac_link"
12414 case "(($ac_try" in
12415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12416 *) ac_try_echo=$ac_try;;
12417 esac
12418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12419 $as_echo "$ac_try_echo") >&5
12420 (eval "$ac_link") 2>conftest.er1
12421 ac_status=$?
12422 grep -v '^ *+' conftest.er1 >conftest.err
12423 rm -f conftest.er1
12424 cat conftest.err >&5
12425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } && {
12427 test -z "$ac_c_werror_flag" ||
12428 test ! -s conftest.err
12429 } && test -s conftest$ac_exeext && {
12430 test "$cross_compiling" = yes ||
12431 $as_test_x conftest$ac_exeext
12432 }; then
12433 eval "$as_ac_var=yes"
12434 else
12435 $as_echo "$as_me: failed program was:" >&5
12436 sed 's/^/| /' conftest.$ac_ext >&5
12437
12438 eval "$as_ac_var=no"
12439 fi
12440
12441 rm -rf conftest.dSYM
12442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12443 conftest$ac_exeext conftest.$ac_ext
12444 fi
12445 ac_res=`eval 'as_val=${'$as_ac_var'}
12446 $as_echo "$as_val"'`
12447 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12448 $as_echo "$ac_res" >&6; }
12449 if test `eval 'as_val=${'$as_ac_var'}
12450 $as_echo "$as_val"'` = yes; then
12451 cat >>confdefs.h <<_ACEOF
12452 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12453 _ACEOF
12454 HAVE_GTK_FILE_CHOOSER=yes
12455 else
12456 HAVE_GTK_FILE_CHOOSER=no
12457 fi
12458 done
12459
12460 fi
12461
12462 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12463 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12464
12465 cat >>confdefs.h <<\_ACEOF
12466 #define HAVE_GTK_FILE_BOTH 1
12467 _ACEOF
12468
12469 fi
12470
12471 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12472 HAVE_GTK_AND_PTHREAD=no
12473
12474 for ac_header in pthread.h
12475 do
12476 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12478 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12479 $as_echo_n "checking for $ac_header... " >&6; }
12480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12481 $as_echo_n "(cached) " >&6
12482 fi
12483 ac_res=`eval 'as_val=${'$as_ac_Header'}
12484 $as_echo "$as_val"'`
12485 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12486 $as_echo "$ac_res" >&6; }
12487 else
12488 # Is the header compilable?
12489 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12490 $as_echo_n "checking $ac_header usability... " >&6; }
12491 cat >conftest.$ac_ext <<_ACEOF
12492 /* confdefs.h. */
12493 _ACEOF
12494 cat confdefs.h >>conftest.$ac_ext
12495 cat >>conftest.$ac_ext <<_ACEOF
12496 /* end confdefs.h. */
12497 $ac_includes_default
12498 #include <$ac_header>
12499 _ACEOF
12500 rm -f conftest.$ac_objext
12501 if { (ac_try="$ac_compile"
12502 case "(($ac_try" in
12503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12504 *) ac_try_echo=$ac_try;;
12505 esac
12506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12507 $as_echo "$ac_try_echo") >&5
12508 (eval "$ac_compile") 2>conftest.er1
12509 ac_status=$?
12510 grep -v '^ *+' conftest.er1 >conftest.err
12511 rm -f conftest.er1
12512 cat conftest.err >&5
12513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); } && {
12515 test -z "$ac_c_werror_flag" ||
12516 test ! -s conftest.err
12517 } && test -s conftest.$ac_objext; then
12518 ac_header_compiler=yes
12519 else
12520 $as_echo "$as_me: failed program was:" >&5
12521 sed 's/^/| /' conftest.$ac_ext >&5
12522
12523 ac_header_compiler=no
12524 fi
12525
12526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12527 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12528 $as_echo "$ac_header_compiler" >&6; }
12529
12530 # Is the header present?
12531 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12532 $as_echo_n "checking $ac_header presence... " >&6; }
12533 cat >conftest.$ac_ext <<_ACEOF
12534 /* confdefs.h. */
12535 _ACEOF
12536 cat confdefs.h >>conftest.$ac_ext
12537 cat >>conftest.$ac_ext <<_ACEOF
12538 /* end confdefs.h. */
12539 #include <$ac_header>
12540 _ACEOF
12541 if { (ac_try="$ac_cpp conftest.$ac_ext"
12542 case "(($ac_try" in
12543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12544 *) ac_try_echo=$ac_try;;
12545 esac
12546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12547 $as_echo "$ac_try_echo") >&5
12548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12549 ac_status=$?
12550 grep -v '^ *+' conftest.er1 >conftest.err
12551 rm -f conftest.er1
12552 cat conftest.err >&5
12553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); } >/dev/null && {
12555 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12556 test ! -s conftest.err
12557 }; then
12558 ac_header_preproc=yes
12559 else
12560 $as_echo "$as_me: failed program was:" >&5
12561 sed 's/^/| /' conftest.$ac_ext >&5
12562
12563 ac_header_preproc=no
12564 fi
12565
12566 rm -f conftest.err conftest.$ac_ext
12567 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12568 $as_echo "$ac_header_preproc" >&6; }
12569
12570 # So? What about this header?
12571 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12572 yes:no: )
12573 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12574 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12575 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12576 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12577 ac_header_preproc=yes
12578 ;;
12579 no:yes:* )
12580 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12581 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12582 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12583 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12584 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12585 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12586 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12587 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12588 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12589 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12590 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12591 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12592
12593 ;;
12594 esac
12595 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12596 $as_echo_n "checking for $ac_header... " >&6; }
12597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12598 $as_echo_n "(cached) " >&6
12599 else
12600 eval "$as_ac_Header=\$ac_header_preproc"
12601 fi
12602 ac_res=`eval 'as_val=${'$as_ac_Header'}
12603 $as_echo "$as_val"'`
12604 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12605 $as_echo "$ac_res" >&6; }
12606
12607 fi
12608 if test `eval 'as_val=${'$as_ac_Header'}
12609 $as_echo "$as_val"'` = yes; then
12610 cat >>confdefs.h <<_ACEOF
12611 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12612 _ACEOF
12613
12614 fi
12615
12616 done
12617
12618 if test "$ac_cv_header_pthread_h"; then
12619 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12620 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12621 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12622 $as_echo_n "(cached) " >&6
12623 else
12624 ac_check_lib_save_LIBS=$LIBS
12625 LIBS="-lpthread $LIBS"
12626 cat >conftest.$ac_ext <<_ACEOF
12627 /* confdefs.h. */
12628 _ACEOF
12629 cat confdefs.h >>conftest.$ac_ext
12630 cat >>conftest.$ac_ext <<_ACEOF
12631 /* end confdefs.h. */
12632
12633 /* Override any GCC internal prototype to avoid an error.
12634 Use char because int might match the return type of a GCC
12635 builtin and then its argument prototype would still apply. */
12636 #ifdef __cplusplus
12637 extern "C"
12638 #endif
12639 char pthread_self ();
12640 int
12641 main ()
12642 {
12643 return pthread_self ();
12644 ;
12645 return 0;
12646 }
12647 _ACEOF
12648 rm -f conftest.$ac_objext conftest$ac_exeext
12649 if { (ac_try="$ac_link"
12650 case "(($ac_try" in
12651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12652 *) ac_try_echo=$ac_try;;
12653 esac
12654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12655 $as_echo "$ac_try_echo") >&5
12656 (eval "$ac_link") 2>conftest.er1
12657 ac_status=$?
12658 grep -v '^ *+' conftest.er1 >conftest.err
12659 rm -f conftest.er1
12660 cat conftest.err >&5
12661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); } && {
12663 test -z "$ac_c_werror_flag" ||
12664 test ! -s conftest.err
12665 } && test -s conftest$ac_exeext && {
12666 test "$cross_compiling" = yes ||
12667 $as_test_x conftest$ac_exeext
12668 }; then
12669 ac_cv_lib_pthread_pthread_self=yes
12670 else
12671 $as_echo "$as_me: failed program was:" >&5
12672 sed 's/^/| /' conftest.$ac_ext >&5
12673
12674 ac_cv_lib_pthread_pthread_self=no
12675 fi
12676
12677 rm -rf conftest.dSYM
12678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12679 conftest$ac_exeext conftest.$ac_ext
12680 LIBS=$ac_check_lib_save_LIBS
12681 fi
12682 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12683 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12684 if test $ac_cv_lib_pthread_pthread_self = yes; then
12685 HAVE_GTK_AND_PTHREAD=yes
12686 fi
12687
12688 fi
12689 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12690 case "${canonical}" in
12691 *-hpux*) ;;
12692 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12693 esac
12694
12695 cat >>confdefs.h <<\_ACEOF
12696 #define HAVE_GTK_AND_PTHREAD 1
12697 _ACEOF
12698
12699 fi
12700 fi
12701 fi
12702
12703 HAVE_DBUS=no
12704 DBUS_OBJ=
12705 if test "${with_dbus}" = "yes"; then
12706
12707 succeeded=no
12708
12709 # Extract the first word of "pkg-config", so it can be a program name with args.
12710 set dummy pkg-config; ac_word=$2
12711 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12712 $as_echo_n "checking for $ac_word... " >&6; }
12713 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12714 $as_echo_n "(cached) " >&6
12715 else
12716 case $PKG_CONFIG in
12717 [\\/]* | ?:[\\/]*)
12718 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12719 ;;
12720 *)
12721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12722 for as_dir in $PATH
12723 do
12724 IFS=$as_save_IFS
12725 test -z "$as_dir" && as_dir=.
12726 for ac_exec_ext in '' $ac_executable_extensions; do
12727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12728 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12729 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12730 break 2
12731 fi
12732 done
12733 done
12734 IFS=$as_save_IFS
12735
12736 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12737 ;;
12738 esac
12739 fi
12740 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12741 if test -n "$PKG_CONFIG"; then
12742 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12743 $as_echo "$PKG_CONFIG" >&6; }
12744 else
12745 { $as_echo "$as_me:$LINENO: result: no" >&5
12746 $as_echo "no" >&6; }
12747 fi
12748
12749
12750
12751 if test "$PKG_CONFIG" = "no" ; then
12752 HAVE_DBUS=no
12753 else
12754 PKG_CONFIG_MIN_VERSION=0.9.0
12755 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12756 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12757 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12758
12759 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12760 { $as_echo "$as_me:$LINENO: result: yes" >&5
12761 $as_echo "yes" >&6; }
12762 succeeded=yes
12763
12764 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12765 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12766 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12767 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12768 $as_echo "$DBUS_CFLAGS" >&6; }
12769
12770 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12771 $as_echo_n "checking DBUS_LIBS... " >&6; }
12772 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12773 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12774 $as_echo "$DBUS_LIBS" >&6; }
12775 else
12776 { $as_echo "$as_me:$LINENO: result: no" >&5
12777 $as_echo "no" >&6; }
12778 DBUS_CFLAGS=""
12779 DBUS_LIBS=""
12780 ## If we have a custom action on failure, don't print errors, but
12781 ## do set a variable so people can do so.
12782 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12783
12784 fi
12785
12786
12787
12788 else
12789 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12790 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12791 fi
12792 fi
12793
12794 if test $succeeded = yes; then
12795 HAVE_DBUS=yes
12796 else
12797 HAVE_DBUS=no
12798 fi
12799
12800 if test "$HAVE_DBUS" = yes; then
12801 LIBS="$LIBS $DBUS_LIBS"
12802
12803 cat >>confdefs.h <<\_ACEOF
12804 #define HAVE_DBUS 1
12805 _ACEOF
12806
12807
12808 for ac_func in dbus_watch_get_unix_fd
12809 do
12810 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12811 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12812 $as_echo_n "checking for $ac_func... " >&6; }
12813 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12814 $as_echo_n "(cached) " >&6
12815 else
12816 cat >conftest.$ac_ext <<_ACEOF
12817 /* confdefs.h. */
12818 _ACEOF
12819 cat confdefs.h >>conftest.$ac_ext
12820 cat >>conftest.$ac_ext <<_ACEOF
12821 /* end confdefs.h. */
12822 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12824 #define $ac_func innocuous_$ac_func
12825
12826 /* System header to define __stub macros and hopefully few prototypes,
12827 which can conflict with char $ac_func (); below.
12828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12829 <limits.h> exists even on freestanding compilers. */
12830
12831 #ifdef __STDC__
12832 # include <limits.h>
12833 #else
12834 # include <assert.h>
12835 #endif
12836
12837 #undef $ac_func
12838
12839 /* Override any GCC internal prototype to avoid an error.
12840 Use char because int might match the return type of a GCC
12841 builtin and then its argument prototype would still apply. */
12842 #ifdef __cplusplus
12843 extern "C"
12844 #endif
12845 char $ac_func ();
12846 /* The GNU C library defines this for functions which it implements
12847 to always fail with ENOSYS. Some functions are actually named
12848 something starting with __ and the normal name is an alias. */
12849 #if defined __stub_$ac_func || defined __stub___$ac_func
12850 choke me
12851 #endif
12852
12853 int
12854 main ()
12855 {
12856 return $ac_func ();
12857 ;
12858 return 0;
12859 }
12860 _ACEOF
12861 rm -f conftest.$ac_objext conftest$ac_exeext
12862 if { (ac_try="$ac_link"
12863 case "(($ac_try" in
12864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12865 *) ac_try_echo=$ac_try;;
12866 esac
12867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12868 $as_echo "$ac_try_echo") >&5
12869 (eval "$ac_link") 2>conftest.er1
12870 ac_status=$?
12871 grep -v '^ *+' conftest.er1 >conftest.err
12872 rm -f conftest.er1
12873 cat conftest.err >&5
12874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875 (exit $ac_status); } && {
12876 test -z "$ac_c_werror_flag" ||
12877 test ! -s conftest.err
12878 } && test -s conftest$ac_exeext && {
12879 test "$cross_compiling" = yes ||
12880 $as_test_x conftest$ac_exeext
12881 }; then
12882 eval "$as_ac_var=yes"
12883 else
12884 $as_echo "$as_me: failed program was:" >&5
12885 sed 's/^/| /' conftest.$ac_ext >&5
12886
12887 eval "$as_ac_var=no"
12888 fi
12889
12890 rm -rf conftest.dSYM
12891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12892 conftest$ac_exeext conftest.$ac_ext
12893 fi
12894 ac_res=`eval 'as_val=${'$as_ac_var'}
12895 $as_echo "$as_val"'`
12896 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12897 $as_echo "$ac_res" >&6; }
12898 if test `eval 'as_val=${'$as_ac_var'}
12899 $as_echo "$as_val"'` = yes; then
12900 cat >>confdefs.h <<_ACEOF
12901 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12902 _ACEOF
12903
12904 fi
12905 done
12906
12907 DBUS_OBJ=dbusbind.o
12908 fi
12909 fi
12910
12911
12912 HAVE_GCONF=no
12913 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12914
12915 succeeded=no
12916
12917 # Extract the first word of "pkg-config", so it can be a program name with args.
12918 set dummy pkg-config; ac_word=$2
12919 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12920 $as_echo_n "checking for $ac_word... " >&6; }
12921 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12922 $as_echo_n "(cached) " >&6
12923 else
12924 case $PKG_CONFIG in
12925 [\\/]* | ?:[\\/]*)
12926 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12927 ;;
12928 *)
12929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12930 for as_dir in $PATH
12931 do
12932 IFS=$as_save_IFS
12933 test -z "$as_dir" && as_dir=.
12934 for ac_exec_ext in '' $ac_executable_extensions; do
12935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12936 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12937 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12938 break 2
12939 fi
12940 done
12941 done
12942 IFS=$as_save_IFS
12943
12944 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12945 ;;
12946 esac
12947 fi
12948 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12949 if test -n "$PKG_CONFIG"; then
12950 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12951 $as_echo "$PKG_CONFIG" >&6; }
12952 else
12953 { $as_echo "$as_me:$LINENO: result: no" >&5
12954 $as_echo "no" >&6; }
12955 fi
12956
12957
12958
12959 if test "$PKG_CONFIG" = "no" ; then
12960 HAVE_GCONF=no
12961 else
12962 PKG_CONFIG_MIN_VERSION=0.9.0
12963 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12964 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
12965 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12966
12967 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
12968 { $as_echo "$as_me:$LINENO: result: yes" >&5
12969 $as_echo "yes" >&6; }
12970 succeeded=yes
12971
12972 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
12973 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
12974 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12975 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
12976 $as_echo "$GCONF_CFLAGS" >&6; }
12977
12978 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
12979 $as_echo_n "checking GCONF_LIBS... " >&6; }
12980 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12981 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
12982 $as_echo "$GCONF_LIBS" >&6; }
12983 else
12984 { $as_echo "$as_me:$LINENO: result: no" >&5
12985 $as_echo "no" >&6; }
12986 GCONF_CFLAGS=""
12987 GCONF_LIBS=""
12988 ## If we have a custom action on failure, don't print errors, but
12989 ## do set a variable so people can do so.
12990 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
12991
12992 fi
12993
12994
12995
12996 else
12997 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12998 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12999 fi
13000 fi
13001
13002 if test $succeeded = yes; then
13003 HAVE_GCONF=yes
13004 else
13005 HAVE_GCONF=no
13006 fi
13007
13008 if test "$HAVE_GCONF" = yes; then
13009
13010 cat >>confdefs.h <<\_ACEOF
13011 #define HAVE_GCONF 1
13012 _ACEOF
13013
13014 fi
13015 fi
13016
13017 HAVE_LIBSELINUX=no
13018 LIBSELINUX_LIBS=
13019 if test "${with_selinux}" = "yes"; then
13020 { $as_echo "$as_me:$LINENO: checking for lgetfilecon in -lselinux" >&5
13021 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
13022 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then
13023 $as_echo_n "(cached) " >&6
13024 else
13025 ac_check_lib_save_LIBS=$LIBS
13026 LIBS="-lselinux $LIBS"
13027 cat >conftest.$ac_ext <<_ACEOF
13028 /* confdefs.h. */
13029 _ACEOF
13030 cat confdefs.h >>conftest.$ac_ext
13031 cat >>conftest.$ac_ext <<_ACEOF
13032 /* end confdefs.h. */
13033
13034 /* Override any GCC internal prototype to avoid an error.
13035 Use char because int might match the return type of a GCC
13036 builtin and then its argument prototype would still apply. */
13037 #ifdef __cplusplus
13038 extern "C"
13039 #endif
13040 char lgetfilecon ();
13041 int
13042 main ()
13043 {
13044 return lgetfilecon ();
13045 ;
13046 return 0;
13047 }
13048 _ACEOF
13049 rm -f conftest.$ac_objext conftest$ac_exeext
13050 if { (ac_try="$ac_link"
13051 case "(($ac_try" in
13052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13053 *) ac_try_echo=$ac_try;;
13054 esac
13055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13056 $as_echo "$ac_try_echo") >&5
13057 (eval "$ac_link") 2>conftest.er1
13058 ac_status=$?
13059 grep -v '^ *+' conftest.er1 >conftest.err
13060 rm -f conftest.er1
13061 cat conftest.err >&5
13062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); } && {
13064 test -z "$ac_c_werror_flag" ||
13065 test ! -s conftest.err
13066 } && test -s conftest$ac_exeext && {
13067 test "$cross_compiling" = yes ||
13068 $as_test_x conftest$ac_exeext
13069 }; then
13070 ac_cv_lib_selinux_lgetfilecon=yes
13071 else
13072 $as_echo "$as_me: failed program was:" >&5
13073 sed 's/^/| /' conftest.$ac_ext >&5
13074
13075 ac_cv_lib_selinux_lgetfilecon=no
13076 fi
13077
13078 rm -rf conftest.dSYM
13079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13080 conftest$ac_exeext conftest.$ac_ext
13081 LIBS=$ac_check_lib_save_LIBS
13082 fi
13083 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_lgetfilecon" >&5
13084 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
13085 if test $ac_cv_lib_selinux_lgetfilecon = yes; then
13086 HAVE_LIBSELINUX=yes
13087 else
13088 HAVE_LIBSELINUX=no
13089 fi
13090
13091 if test "$HAVE_LIBSELINUX" = yes; then
13092
13093 cat >>confdefs.h <<\_ACEOF
13094 #define HAVE_LIBSELINUX 1
13095 _ACEOF
13096
13097 LIBSELINUX_LIBS=-lselinux
13098 fi
13099 fi
13100
13101
13102 HAVE_XAW3D=no
13103 LUCID_LIBW=
13104 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
13105 if test "$with_xaw3d" != no; then
13106 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
13107 $as_echo_n "checking for xaw3d... " >&6; }
13108 if test "${emacs_cv_xaw3d+set}" = set; then
13109 $as_echo_n "(cached) " >&6
13110 else
13111 cat >conftest.$ac_ext <<_ACEOF
13112 /* confdefs.h. */
13113 _ACEOF
13114 cat confdefs.h >>conftest.$ac_ext
13115 cat >>conftest.$ac_ext <<_ACEOF
13116 /* end confdefs.h. */
13117
13118 #include <X11/Intrinsic.h>
13119 #include <X11/Xaw3d/Simple.h>
13120 int
13121 main ()
13122 {
13123
13124 ;
13125 return 0;
13126 }
13127 _ACEOF
13128 rm -f conftest.$ac_objext conftest$ac_exeext
13129 if { (ac_try="$ac_link"
13130 case "(($ac_try" in
13131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13132 *) ac_try_echo=$ac_try;;
13133 esac
13134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13135 $as_echo "$ac_try_echo") >&5
13136 (eval "$ac_link") 2>conftest.er1
13137 ac_status=$?
13138 grep -v '^ *+' conftest.er1 >conftest.err
13139 rm -f conftest.er1
13140 cat conftest.err >&5
13141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); } && {
13143 test -z "$ac_c_werror_flag" ||
13144 test ! -s conftest.err
13145 } && test -s conftest$ac_exeext && {
13146 test "$cross_compiling" = yes ||
13147 $as_test_x conftest$ac_exeext
13148 }; then
13149 emacs_cv_xaw3d=yes
13150 else
13151 $as_echo "$as_me: failed program was:" >&5
13152 sed 's/^/| /' conftest.$ac_ext >&5
13153
13154 emacs_cv_xaw3d=no
13155 fi
13156
13157 rm -rf conftest.dSYM
13158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13159 conftest$ac_exeext conftest.$ac_ext
13160 fi
13161
13162 else
13163 emacs_cv_xaw3d=no
13164 fi
13165 if test $emacs_cv_xaw3d = yes; then
13166 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13167 $as_echo "yes; using Lucid toolkit" >&6; }
13168 USE_X_TOOLKIT=LUCID
13169 HAVE_XAW3D=yes
13170 LUCID_LIBW=-lXaw3d
13171
13172 cat >>confdefs.h <<\_ACEOF
13173 #define HAVE_XAW3D 1
13174 _ACEOF
13175
13176 else
13177 { $as_echo "$as_me:$LINENO: result: no" >&5
13178 $as_echo "no" >&6; }
13179 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
13180 $as_echo_n "checking for libXaw... " >&6; }
13181 if test "${emacs_cv_xaw+set}" = set; then
13182 $as_echo_n "(cached) " >&6
13183 else
13184 cat >conftest.$ac_ext <<_ACEOF
13185 /* confdefs.h. */
13186 _ACEOF
13187 cat confdefs.h >>conftest.$ac_ext
13188 cat >>conftest.$ac_ext <<_ACEOF
13189 /* end confdefs.h. */
13190
13191 #include <X11/Intrinsic.h>
13192 #include <X11/Xaw/Simple.h>
13193 int
13194 main ()
13195 {
13196
13197 ;
13198 return 0;
13199 }
13200 _ACEOF
13201 rm -f conftest.$ac_objext conftest$ac_exeext
13202 if { (ac_try="$ac_link"
13203 case "(($ac_try" in
13204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13205 *) ac_try_echo=$ac_try;;
13206 esac
13207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13208 $as_echo "$ac_try_echo") >&5
13209 (eval "$ac_link") 2>conftest.er1
13210 ac_status=$?
13211 grep -v '^ *+' conftest.er1 >conftest.err
13212 rm -f conftest.er1
13213 cat conftest.err >&5
13214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); } && {
13216 test -z "$ac_c_werror_flag" ||
13217 test ! -s conftest.err
13218 } && test -s conftest$ac_exeext && {
13219 test "$cross_compiling" = yes ||
13220 $as_test_x conftest$ac_exeext
13221 }; then
13222 emacs_cv_xaw=yes
13223 else
13224 $as_echo "$as_me: failed program was:" >&5
13225 sed 's/^/| /' conftest.$ac_ext >&5
13226
13227 emacs_cv_xaw=no
13228 fi
13229
13230 rm -rf conftest.dSYM
13231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13232 conftest$ac_exeext conftest.$ac_ext
13233 fi
13234
13235 if test $emacs_cv_xaw = yes; then
13236 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13237 $as_echo "yes; using Lucid toolkit" >&6; }
13238 USE_X_TOOLKIT=LUCID
13239 LUCID_LIBW=-lXaw
13240 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
13241 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
13242 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
13243 { (exit 1); exit 1; }; }
13244 else
13245 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
13246 $as_echo "no; do not use toolkit by default" >&6; }
13247 USE_X_TOOLKIT=none
13248 fi
13249 fi
13250 fi
13251
13252 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
13253
13254 LIBXTR6=
13255 if test "${USE_X_TOOLKIT}" != "none"; then
13256 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
13257 $as_echo_n "checking X11 toolkit version... " >&6; }
13258 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
13259 $as_echo_n "(cached) " >&6
13260 else
13261 cat >conftest.$ac_ext <<_ACEOF
13262 /* confdefs.h. */
13263 _ACEOF
13264 cat confdefs.h >>conftest.$ac_ext
13265 cat >>conftest.$ac_ext <<_ACEOF
13266 /* end confdefs.h. */
13267 #include <X11/Intrinsic.h>
13268 int
13269 main ()
13270 {
13271 #if XtSpecificationRelease < 6
13272 fail;
13273 #endif
13274
13275 ;
13276 return 0;
13277 }
13278 _ACEOF
13279 rm -f conftest.$ac_objext conftest$ac_exeext
13280 if { (ac_try="$ac_link"
13281 case "(($ac_try" in
13282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13283 *) ac_try_echo=$ac_try;;
13284 esac
13285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13286 $as_echo "$ac_try_echo") >&5
13287 (eval "$ac_link") 2>conftest.er1
13288 ac_status=$?
13289 grep -v '^ *+' conftest.er1 >conftest.err
13290 rm -f conftest.er1
13291 cat conftest.err >&5
13292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); } && {
13294 test -z "$ac_c_werror_flag" ||
13295 test ! -s conftest.err
13296 } && test -s conftest$ac_exeext && {
13297 test "$cross_compiling" = yes ||
13298 $as_test_x conftest$ac_exeext
13299 }; then
13300 emacs_cv_x11_toolkit_version_6=yes
13301 else
13302 $as_echo "$as_me: failed program was:" >&5
13303 sed 's/^/| /' conftest.$ac_ext >&5
13304
13305 emacs_cv_x11_toolkit_version_6=no
13306 fi
13307
13308 rm -rf conftest.dSYM
13309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13310 conftest$ac_exeext conftest.$ac_ext
13311 fi
13312
13313 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
13314 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13315 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
13316 $as_echo "6 or newer" >&6; }
13317
13318 cat >>confdefs.h <<\_ACEOF
13319 #define HAVE_X11XTR6 1
13320 _ACEOF
13321
13322 LIBXTR6="-lSM -lICE"
13323 case "$opsys" in
13324 ## Use libw.a along with X11R6 Xt.
13325 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
13326 esac
13327 else
13328 { $as_echo "$as_me:$LINENO: result: before 6" >&5
13329 $as_echo "before 6" >&6; }
13330 fi
13331
13332 OLDLIBS="$LIBS"
13333 if test x$HAVE_X11XTR6 = xyes; then
13334 LIBS="-lXt -lSM -lICE $LIBS"
13335 else
13336 LIBS="-lXt $LIBS"
13337 fi
13338
13339 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13340 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
13341 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13342 $as_echo_n "(cached) " >&6
13343 else
13344 ac_check_lib_save_LIBS=$LIBS
13345 LIBS="-lXmu $LIBS"
13346 cat >conftest.$ac_ext <<_ACEOF
13347 /* confdefs.h. */
13348 _ACEOF
13349 cat confdefs.h >>conftest.$ac_ext
13350 cat >>conftest.$ac_ext <<_ACEOF
13351 /* end confdefs.h. */
13352
13353 /* Override any GCC internal prototype to avoid an error.
13354 Use char because int might match the return type of a GCC
13355 builtin and then its argument prototype would still apply. */
13356 #ifdef __cplusplus
13357 extern "C"
13358 #endif
13359 char XmuConvertStandardSelection ();
13360 int
13361 main ()
13362 {
13363 return XmuConvertStandardSelection ();
13364 ;
13365 return 0;
13366 }
13367 _ACEOF
13368 rm -f conftest.$ac_objext conftest$ac_exeext
13369 if { (ac_try="$ac_link"
13370 case "(($ac_try" in
13371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13372 *) ac_try_echo=$ac_try;;
13373 esac
13374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13375 $as_echo "$ac_try_echo") >&5
13376 (eval "$ac_link") 2>conftest.er1
13377 ac_status=$?
13378 grep -v '^ *+' conftest.er1 >conftest.err
13379 rm -f conftest.er1
13380 cat conftest.err >&5
13381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); } && {
13383 test -z "$ac_c_werror_flag" ||
13384 test ! -s conftest.err
13385 } && test -s conftest$ac_exeext && {
13386 test "$cross_compiling" = yes ||
13387 $as_test_x conftest$ac_exeext
13388 }; then
13389 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13390 else
13391 $as_echo "$as_me: failed program was:" >&5
13392 sed 's/^/| /' conftest.$ac_ext >&5
13393
13394 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13395 fi
13396
13397 rm -rf conftest.dSYM
13398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13399 conftest$ac_exeext conftest.$ac_ext
13400 LIBS=$ac_check_lib_save_LIBS
13401 fi
13402 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13403 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13404 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
13405 cat >>confdefs.h <<_ACEOF
13406 #define HAVE_LIBXMU 1
13407 _ACEOF
13408
13409 LIBS="-lXmu $LIBS"
13410
13411 fi
13412
13413 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13414 fi
13415
13416
13417 LIBXMU=-lXmu
13418 case "$machine" in
13419 ## These machines don't supply Xmu.
13420 hpux* | aix4-2 )
13421 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
13422 ;;
13423 esac
13424
13425
13426 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13427 if test "${HAVE_X11}" = "yes"; then
13428 if test "${USE_X_TOOLKIT}" != "none"; then
13429
13430 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13431 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13432 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13433 $as_echo_n "(cached) " >&6
13434 else
13435 ac_check_lib_save_LIBS=$LIBS
13436 LIBS="-lXext $LIBS"
13437 cat >conftest.$ac_ext <<_ACEOF
13438 /* confdefs.h. */
13439 _ACEOF
13440 cat confdefs.h >>conftest.$ac_ext
13441 cat >>conftest.$ac_ext <<_ACEOF
13442 /* end confdefs.h. */
13443
13444 /* Override any GCC internal prototype to avoid an error.
13445 Use char because int might match the return type of a GCC
13446 builtin and then its argument prototype would still apply. */
13447 #ifdef __cplusplus
13448 extern "C"
13449 #endif
13450 char XShapeQueryExtension ();
13451 int
13452 main ()
13453 {
13454 return XShapeQueryExtension ();
13455 ;
13456 return 0;
13457 }
13458 _ACEOF
13459 rm -f conftest.$ac_objext conftest$ac_exeext
13460 if { (ac_try="$ac_link"
13461 case "(($ac_try" in
13462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13463 *) ac_try_echo=$ac_try;;
13464 esac
13465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13466 $as_echo "$ac_try_echo") >&5
13467 (eval "$ac_link") 2>conftest.er1
13468 ac_status=$?
13469 grep -v '^ *+' conftest.er1 >conftest.err
13470 rm -f conftest.er1
13471 cat conftest.err >&5
13472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); } && {
13474 test -z "$ac_c_werror_flag" ||
13475 test ! -s conftest.err
13476 } && test -s conftest$ac_exeext && {
13477 test "$cross_compiling" = yes ||
13478 $as_test_x conftest$ac_exeext
13479 }; then
13480 ac_cv_lib_Xext_XShapeQueryExtension=yes
13481 else
13482 $as_echo "$as_me: failed program was:" >&5
13483 sed 's/^/| /' conftest.$ac_ext >&5
13484
13485 ac_cv_lib_Xext_XShapeQueryExtension=no
13486 fi
13487
13488 rm -rf conftest.dSYM
13489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13490 conftest$ac_exeext conftest.$ac_ext
13491 LIBS=$ac_check_lib_save_LIBS
13492 fi
13493 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13494 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13495 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13496 cat >>confdefs.h <<_ACEOF
13497 #define HAVE_LIBXEXT 1
13498 _ACEOF
13499
13500 LIBS="-lXext $LIBS"
13501
13502 fi
13503
13504 fi
13505 fi
13506
13507 LIBXP=
13508 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13509 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13510 $as_echo_n "checking for Motif version 2.1... " >&6; }
13511 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13512 $as_echo_n "(cached) " >&6
13513 else
13514 cat >conftest.$ac_ext <<_ACEOF
13515 /* confdefs.h. */
13516 _ACEOF
13517 cat confdefs.h >>conftest.$ac_ext
13518 cat >>conftest.$ac_ext <<_ACEOF
13519 /* end confdefs.h. */
13520 #include <Xm/Xm.h>
13521 int
13522 main ()
13523 {
13524 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13525 int x = 5;
13526 #else
13527 Motif version prior to 2.1.
13528 #endif
13529 ;
13530 return 0;
13531 }
13532 _ACEOF
13533 rm -f conftest.$ac_objext
13534 if { (ac_try="$ac_compile"
13535 case "(($ac_try" in
13536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13537 *) ac_try_echo=$ac_try;;
13538 esac
13539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13540 $as_echo "$ac_try_echo") >&5
13541 (eval "$ac_compile") 2>conftest.er1
13542 ac_status=$?
13543 grep -v '^ *+' conftest.er1 >conftest.err
13544 rm -f conftest.er1
13545 cat conftest.err >&5
13546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); } && {
13548 test -z "$ac_c_werror_flag" ||
13549 test ! -s conftest.err
13550 } && test -s conftest.$ac_objext; then
13551 emacs_cv_motif_version_2_1=yes
13552 else
13553 $as_echo "$as_me: failed program was:" >&5
13554 sed 's/^/| /' conftest.$ac_ext >&5
13555
13556 emacs_cv_motif_version_2_1=no
13557 fi
13558
13559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13560 fi
13561 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13562 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13563 if test $emacs_cv_motif_version_2_1 = yes; then
13564 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13565 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13566 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13567 $as_echo_n "(cached) " >&6
13568 else
13569 ac_check_lib_save_LIBS=$LIBS
13570 LIBS="-lXp $LIBS"
13571 cat >conftest.$ac_ext <<_ACEOF
13572 /* confdefs.h. */
13573 _ACEOF
13574 cat confdefs.h >>conftest.$ac_ext
13575 cat >>conftest.$ac_ext <<_ACEOF
13576 /* end confdefs.h. */
13577
13578 /* Override any GCC internal prototype to avoid an error.
13579 Use char because int might match the return type of a GCC
13580 builtin and then its argument prototype would still apply. */
13581 #ifdef __cplusplus
13582 extern "C"
13583 #endif
13584 char XpCreateContext ();
13585 int
13586 main ()
13587 {
13588 return XpCreateContext ();
13589 ;
13590 return 0;
13591 }
13592 _ACEOF
13593 rm -f conftest.$ac_objext conftest$ac_exeext
13594 if { (ac_try="$ac_link"
13595 case "(($ac_try" in
13596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13597 *) ac_try_echo=$ac_try;;
13598 esac
13599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13600 $as_echo "$ac_try_echo") >&5
13601 (eval "$ac_link") 2>conftest.er1
13602 ac_status=$?
13603 grep -v '^ *+' conftest.er1 >conftest.err
13604 rm -f conftest.er1
13605 cat conftest.err >&5
13606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); } && {
13608 test -z "$ac_c_werror_flag" ||
13609 test ! -s conftest.err
13610 } && test -s conftest$ac_exeext && {
13611 test "$cross_compiling" = yes ||
13612 $as_test_x conftest$ac_exeext
13613 }; then
13614 ac_cv_lib_Xp_XpCreateContext=yes
13615 else
13616 $as_echo "$as_me: failed program was:" >&5
13617 sed 's/^/| /' conftest.$ac_ext >&5
13618
13619 ac_cv_lib_Xp_XpCreateContext=no
13620 fi
13621
13622 rm -rf conftest.dSYM
13623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13624 conftest$ac_exeext conftest.$ac_ext
13625 LIBS=$ac_check_lib_save_LIBS
13626 fi
13627 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13628 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13629 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13630 LIBXP=-lXp
13631 fi
13632
13633 else
13634 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13635 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13636 if test "${emacs_cv_lesstif+set}" = set; then
13637 $as_echo_n "(cached) " >&6
13638 else
13639 # We put this in CFLAGS temporarily to precede other -I options
13640 # that might be in CFLAGS temporarily.
13641 # We put this in CPPFLAGS where it precedes the other -I options.
13642 OLD_CPPFLAGS=$CPPFLAGS
13643 OLD_CFLAGS=$CFLAGS
13644 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13645 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13646 cat >conftest.$ac_ext <<_ACEOF
13647 /* confdefs.h. */
13648 _ACEOF
13649 cat confdefs.h >>conftest.$ac_ext
13650 cat >>conftest.$ac_ext <<_ACEOF
13651 /* end confdefs.h. */
13652 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13653 int
13654 main ()
13655 {
13656 int x = 5;
13657 ;
13658 return 0;
13659 }
13660 _ACEOF
13661 rm -f conftest.$ac_objext
13662 if { (ac_try="$ac_compile"
13663 case "(($ac_try" in
13664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13665 *) ac_try_echo=$ac_try;;
13666 esac
13667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13668 $as_echo "$ac_try_echo") >&5
13669 (eval "$ac_compile") 2>conftest.er1
13670 ac_status=$?
13671 grep -v '^ *+' conftest.er1 >conftest.err
13672 rm -f conftest.er1
13673 cat conftest.err >&5
13674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); } && {
13676 test -z "$ac_c_werror_flag" ||
13677 test ! -s conftest.err
13678 } && test -s conftest.$ac_objext; then
13679 emacs_cv_lesstif=yes
13680 else
13681 $as_echo "$as_me: failed program was:" >&5
13682 sed 's/^/| /' conftest.$ac_ext >&5
13683
13684 emacs_cv_lesstif=no
13685 fi
13686
13687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13688 fi
13689 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13690 $as_echo "$emacs_cv_lesstif" >&6; }
13691 if test $emacs_cv_lesstif = yes; then
13692 # Make sure this -I option remains in CPPFLAGS after it is set
13693 # back to REAL_CPPFLAGS.
13694 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13695 # have those other -I options anyway. Ultimately, having this
13696 # directory ultimately in CPPFLAGS will be enough.
13697 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13698 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13699 else
13700 CFLAGS=$OLD_CFLAGS
13701 CPPFLAGS=$OLD_CPPFLAGS
13702 fi
13703 fi
13704 fi
13705
13706
13707
13708 USE_TOOLKIT_SCROLL_BARS=no
13709 if test "${with_toolkit_scroll_bars}" != "no"; then
13710 if test "${USE_X_TOOLKIT}" != "none"; then
13711 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13712 cat >>confdefs.h <<\_ACEOF
13713 #define USE_TOOLKIT_SCROLL_BARS 1
13714 _ACEOF
13715
13716 HAVE_XAW3D=no
13717 USE_TOOLKIT_SCROLL_BARS=yes
13718 elif test "${HAVE_XAW3D}" = "yes"; then
13719 cat >>confdefs.h <<\_ACEOF
13720 #define USE_TOOLKIT_SCROLL_BARS 1
13721 _ACEOF
13722
13723 USE_TOOLKIT_SCROLL_BARS=yes
13724 fi
13725 elif test "${HAVE_GTK}" = "yes"; then
13726 cat >>confdefs.h <<\_ACEOF
13727 #define USE_TOOLKIT_SCROLL_BARS 1
13728 _ACEOF
13729
13730 USE_TOOLKIT_SCROLL_BARS=yes
13731 elif test "${HAVE_NS}" = "yes"; then
13732 cat >>confdefs.h <<\_ACEOF
13733 #define USE_TOOLKIT_SCROLL_BARS 1
13734 _ACEOF
13735
13736 USE_TOOLKIT_SCROLL_BARS=yes
13737 fi
13738 fi
13739
13740 cat >conftest.$ac_ext <<_ACEOF
13741 /* confdefs.h. */
13742 _ACEOF
13743 cat confdefs.h >>conftest.$ac_ext
13744 cat >>conftest.$ac_ext <<_ACEOF
13745 /* end confdefs.h. */
13746
13747 #include <X11/Xlib.h>
13748 #include <X11/Xresource.h>
13749 int
13750 main ()
13751 {
13752 XIMProc callback;
13753 ;
13754 return 0;
13755 }
13756 _ACEOF
13757 rm -f conftest.$ac_objext
13758 if { (ac_try="$ac_compile"
13759 case "(($ac_try" in
13760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13761 *) ac_try_echo=$ac_try;;
13762 esac
13763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13764 $as_echo "$ac_try_echo") >&5
13765 (eval "$ac_compile") 2>conftest.er1
13766 ac_status=$?
13767 grep -v '^ *+' conftest.er1 >conftest.err
13768 rm -f conftest.er1
13769 cat conftest.err >&5
13770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); } && {
13772 test -z "$ac_c_werror_flag" ||
13773 test ! -s conftest.err
13774 } && test -s conftest.$ac_objext; then
13775 HAVE_XIM=yes
13776
13777 cat >>confdefs.h <<\_ACEOF
13778 #define HAVE_XIM 1
13779 _ACEOF
13780
13781 else
13782 $as_echo "$as_me: failed program was:" >&5
13783 sed 's/^/| /' conftest.$ac_ext >&5
13784
13785 HAVE_XIM=no
13786 fi
13787
13788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13789
13790
13791 if test "${with_xim}" != "no"; then
13792
13793 cat >>confdefs.h <<\_ACEOF
13794 #define USE_XIM 1
13795 _ACEOF
13796
13797 fi
13798
13799
13800 if test "${HAVE_XIM}" != "no"; then
13801 late_CFLAGS=$CFLAGS
13802 if test "$GCC" = yes; then
13803 CFLAGS="$CFLAGS --pedantic-errors"
13804 fi
13805 cat >conftest.$ac_ext <<_ACEOF
13806 /* confdefs.h. */
13807 _ACEOF
13808 cat confdefs.h >>conftest.$ac_ext
13809 cat >>conftest.$ac_ext <<_ACEOF
13810 /* end confdefs.h. */
13811
13812 #include <X11/Xlib.h>
13813 #include <X11/Xresource.h>
13814 int
13815 main ()
13816 {
13817 Display *display;
13818 XrmDatabase db;
13819 char *res_name;
13820 char *res_class;
13821 XIMProc callback;
13822 XPointer *client_data;
13823 #ifndef __GNUC__
13824 /* If we're not using GCC, it's probably not XFree86, and this is
13825 probably right, but we can't use something like --pedantic-errors. */
13826 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13827 char*, XIMProc, XPointer*);
13828 #endif
13829 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13830 client_data);
13831 ;
13832 return 0;
13833 }
13834 _ACEOF
13835 rm -f conftest.$ac_objext
13836 if { (ac_try="$ac_compile"
13837 case "(($ac_try" in
13838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13839 *) ac_try_echo=$ac_try;;
13840 esac
13841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13842 $as_echo "$ac_try_echo") >&5
13843 (eval "$ac_compile") 2>conftest.er1
13844 ac_status=$?
13845 grep -v '^ *+' conftest.er1 >conftest.err
13846 rm -f conftest.er1
13847 cat conftest.err >&5
13848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); } && {
13850 test -z "$ac_c_werror_flag" ||
13851 test ! -s conftest.err
13852 } && test -s conftest.$ac_objext; then
13853 emacs_cv_arg6_star=yes
13854 else
13855 $as_echo "$as_me: failed program was:" >&5
13856 sed 's/^/| /' conftest.$ac_ext >&5
13857
13858
13859 fi
13860
13861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13862
13863 if test "$emacs_cv_arg6_star" = yes; then
13864 cat >>confdefs.h <<\_ACEOF
13865 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13866 _ACEOF
13867
13868 else
13869 cat >>confdefs.h <<\_ACEOF
13870 #define XRegisterIMInstantiateCallback_arg6 XPointer
13871 _ACEOF
13872
13873 fi
13874 CFLAGS=$late_CFLAGS
13875 fi
13876
13877 ### Start of font-backend (under any platform) section.
13878 # (nothing here yet -- this is a placeholder)
13879 ### End of font-backend (under any platform) section.
13880
13881 ### Start of font-backend (under X11) section.
13882 if test "${HAVE_X11}" = "yes"; then
13883
13884 succeeded=no
13885
13886 # Extract the first word of "pkg-config", so it can be a program name with args.
13887 set dummy pkg-config; ac_word=$2
13888 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13889 $as_echo_n "checking for $ac_word... " >&6; }
13890 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13891 $as_echo_n "(cached) " >&6
13892 else
13893 case $PKG_CONFIG in
13894 [\\/]* | ?:[\\/]*)
13895 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13896 ;;
13897 *)
13898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13899 for as_dir in $PATH
13900 do
13901 IFS=$as_save_IFS
13902 test -z "$as_dir" && as_dir=.
13903 for ac_exec_ext in '' $ac_executable_extensions; do
13904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13905 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13906 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13907 break 2
13908 fi
13909 done
13910 done
13911 IFS=$as_save_IFS
13912
13913 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13914 ;;
13915 esac
13916 fi
13917 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13918 if test -n "$PKG_CONFIG"; then
13919 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13920 $as_echo "$PKG_CONFIG" >&6; }
13921 else
13922 { $as_echo "$as_me:$LINENO: result: no" >&5
13923 $as_echo "no" >&6; }
13924 fi
13925
13926
13927
13928 if test "$PKG_CONFIG" = "no" ; then
13929 HAVE_FC=no
13930 else
13931 PKG_CONFIG_MIN_VERSION=0.9.0
13932 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13933 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13934 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13935
13936 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13937 { $as_echo "$as_me:$LINENO: result: yes" >&5
13938 $as_echo "yes" >&6; }
13939 succeeded=yes
13940
13941 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13942 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13943 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13944 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13945 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13946
13947 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13948 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13949 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13950 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13951 $as_echo "$FONTCONFIG_LIBS" >&6; }
13952 else
13953 { $as_echo "$as_me:$LINENO: result: no" >&5
13954 $as_echo "no" >&6; }
13955 FONTCONFIG_CFLAGS=""
13956 FONTCONFIG_LIBS=""
13957 ## If we have a custom action on failure, don't print errors, but
13958 ## do set a variable so people can do so.
13959 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13960
13961 fi
13962
13963
13964
13965 else
13966 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13967 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13968 fi
13969 fi
13970
13971 if test $succeeded = yes; then
13972 HAVE_FC=yes
13973 else
13974 HAVE_FC=no
13975 fi
13976
13977
13978 ## Use -lXft if available, unless `--with-xft=no'.
13979 HAVE_XFT=maybe
13980 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
13981 with_xft="no";
13982 fi
13983 if test "x${with_xft}" != "xno"; then
13984
13985
13986 succeeded=no
13987
13988 # Extract the first word of "pkg-config", so it can be a program name with args.
13989 set dummy pkg-config; ac_word=$2
13990 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13991 $as_echo_n "checking for $ac_word... " >&6; }
13992 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13993 $as_echo_n "(cached) " >&6
13994 else
13995 case $PKG_CONFIG in
13996 [\\/]* | ?:[\\/]*)
13997 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13998 ;;
13999 *)
14000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14001 for as_dir in $PATH
14002 do
14003 IFS=$as_save_IFS
14004 test -z "$as_dir" && as_dir=.
14005 for ac_exec_ext in '' $ac_executable_extensions; do
14006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14007 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14008 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14009 break 2
14010 fi
14011 done
14012 done
14013 IFS=$as_save_IFS
14014
14015 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14016 ;;
14017 esac
14018 fi
14019 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14020 if test -n "$PKG_CONFIG"; then
14021 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14022 $as_echo "$PKG_CONFIG" >&6; }
14023 else
14024 { $as_echo "$as_me:$LINENO: result: no" >&5
14025 $as_echo "no" >&6; }
14026 fi
14027
14028
14029
14030 if test "$PKG_CONFIG" = "no" ; then
14031 HAVE_XFT=no
14032 else
14033 PKG_CONFIG_MIN_VERSION=0.9.0
14034 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14035 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
14036 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
14037
14038 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
14039 { $as_echo "$as_me:$LINENO: result: yes" >&5
14040 $as_echo "yes" >&6; }
14041 succeeded=yes
14042
14043 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
14044 $as_echo_n "checking XFT_CFLAGS... " >&6; }
14045 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
14046 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
14047 $as_echo "$XFT_CFLAGS" >&6; }
14048
14049 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
14050 $as_echo_n "checking XFT_LIBS... " >&6; }
14051 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
14052 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
14053 $as_echo "$XFT_LIBS" >&6; }
14054 else
14055 { $as_echo "$as_me:$LINENO: result: no" >&5
14056 $as_echo "no" >&6; }
14057 XFT_CFLAGS=""
14058 XFT_LIBS=""
14059 ## If we have a custom action on failure, don't print errors, but
14060 ## do set a variable so people can do so.
14061 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
14062
14063 fi
14064
14065
14066
14067 else
14068 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14069 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14070 fi
14071 fi
14072
14073 if test $succeeded = yes; then
14074 :
14075 else
14076 HAVE_XFT=no
14077 fi
14078
14079 ## Because xftfont.c uses XRenderQueryExtension, we also
14080 ## need to link to -lXrender.
14081 HAVE_XRENDER=no
14082 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
14083 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
14084 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
14085 $as_echo_n "(cached) " >&6
14086 else
14087 ac_check_lib_save_LIBS=$LIBS
14088 LIBS="-lXrender $LIBS"
14089 cat >conftest.$ac_ext <<_ACEOF
14090 /* confdefs.h. */
14091 _ACEOF
14092 cat confdefs.h >>conftest.$ac_ext
14093 cat >>conftest.$ac_ext <<_ACEOF
14094 /* end confdefs.h. */
14095
14096 /* Override any GCC internal prototype to avoid an error.
14097 Use char because int might match the return type of a GCC
14098 builtin and then its argument prototype would still apply. */
14099 #ifdef __cplusplus
14100 extern "C"
14101 #endif
14102 char XRenderQueryExtension ();
14103 int
14104 main ()
14105 {
14106 return XRenderQueryExtension ();
14107 ;
14108 return 0;
14109 }
14110 _ACEOF
14111 rm -f conftest.$ac_objext conftest$ac_exeext
14112 if { (ac_try="$ac_link"
14113 case "(($ac_try" in
14114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14115 *) ac_try_echo=$ac_try;;
14116 esac
14117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14118 $as_echo "$ac_try_echo") >&5
14119 (eval "$ac_link") 2>conftest.er1
14120 ac_status=$?
14121 grep -v '^ *+' conftest.er1 >conftest.err
14122 rm -f conftest.er1
14123 cat conftest.err >&5
14124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); } && {
14126 test -z "$ac_c_werror_flag" ||
14127 test ! -s conftest.err
14128 } && test -s conftest$ac_exeext && {
14129 test "$cross_compiling" = yes ||
14130 $as_test_x conftest$ac_exeext
14131 }; then
14132 ac_cv_lib_Xrender_XRenderQueryExtension=yes
14133 else
14134 $as_echo "$as_me: failed program was:" >&5
14135 sed 's/^/| /' conftest.$ac_ext >&5
14136
14137 ac_cv_lib_Xrender_XRenderQueryExtension=no
14138 fi
14139
14140 rm -rf conftest.dSYM
14141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14142 conftest$ac_exeext conftest.$ac_ext
14143 LIBS=$ac_check_lib_save_LIBS
14144 fi
14145 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
14146 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
14147 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
14148 HAVE_XRENDER=yes
14149 fi
14150
14151 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
14152 OLD_CPPFLAGS="$CPPFLAGS"
14153 OLD_CFLAGS="$CFLAGS"
14154 OLD_LIBS="$LIBS"
14155 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
14156 CFLAGS="$CFLAGS $XFT_CFLAGS"
14157 XFT_LIBS="-lXrender $XFT_LIBS"
14158 LIBS="$XFT_LIBS $LIBS"
14159 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14160 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14161 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14162 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14163 $as_echo_n "(cached) " >&6
14164 fi
14165 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14166 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14167 else
14168 # Is the header compilable?
14169 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
14170 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
14171 cat >conftest.$ac_ext <<_ACEOF
14172 /* confdefs.h. */
14173 _ACEOF
14174 cat confdefs.h >>conftest.$ac_ext
14175 cat >>conftest.$ac_ext <<_ACEOF
14176 /* end confdefs.h. */
14177 $ac_includes_default
14178 #include <X11/Xft/Xft.h>
14179 _ACEOF
14180 rm -f conftest.$ac_objext
14181 if { (ac_try="$ac_compile"
14182 case "(($ac_try" in
14183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14184 *) ac_try_echo=$ac_try;;
14185 esac
14186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14187 $as_echo "$ac_try_echo") >&5
14188 (eval "$ac_compile") 2>conftest.er1
14189 ac_status=$?
14190 grep -v '^ *+' conftest.er1 >conftest.err
14191 rm -f conftest.er1
14192 cat conftest.err >&5
14193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 (exit $ac_status); } && {
14195 test -z "$ac_c_werror_flag" ||
14196 test ! -s conftest.err
14197 } && test -s conftest.$ac_objext; then
14198 ac_header_compiler=yes
14199 else
14200 $as_echo "$as_me: failed program was:" >&5
14201 sed 's/^/| /' conftest.$ac_ext >&5
14202
14203 ac_header_compiler=no
14204 fi
14205
14206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14207 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14208 $as_echo "$ac_header_compiler" >&6; }
14209
14210 # Is the header present?
14211 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
14212 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
14213 cat >conftest.$ac_ext <<_ACEOF
14214 /* confdefs.h. */
14215 _ACEOF
14216 cat confdefs.h >>conftest.$ac_ext
14217 cat >>conftest.$ac_ext <<_ACEOF
14218 /* end confdefs.h. */
14219 #include <X11/Xft/Xft.h>
14220 _ACEOF
14221 if { (ac_try="$ac_cpp conftest.$ac_ext"
14222 case "(($ac_try" in
14223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14224 *) ac_try_echo=$ac_try;;
14225 esac
14226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14227 $as_echo "$ac_try_echo") >&5
14228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14229 ac_status=$?
14230 grep -v '^ *+' conftest.er1 >conftest.err
14231 rm -f conftest.er1
14232 cat conftest.err >&5
14233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); } >/dev/null && {
14235 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14236 test ! -s conftest.err
14237 }; then
14238 ac_header_preproc=yes
14239 else
14240 $as_echo "$as_me: failed program was:" >&5
14241 sed 's/^/| /' conftest.$ac_ext >&5
14242
14243 ac_header_preproc=no
14244 fi
14245
14246 rm -f conftest.err conftest.$ac_ext
14247 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14248 $as_echo "$ac_header_preproc" >&6; }
14249
14250 # So? What about this header?
14251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14252 yes:no: )
14253 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
14254 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14255 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
14256 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
14257 ac_header_preproc=yes
14258 ;;
14259 no:yes:* )
14260 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
14261 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
14262 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
14263 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
14264 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
14265 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
14266 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
14267 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
14268 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
14269 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
14270 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
14271 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
14272
14273 ;;
14274 esac
14275 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14276 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14277 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14278 $as_echo_n "(cached) " >&6
14279 else
14280 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
14281 fi
14282 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14283 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14284
14285 fi
14286 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
14287 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
14288 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
14289 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
14290 $as_echo_n "(cached) " >&6
14291 else
14292 ac_check_lib_save_LIBS=$LIBS
14293 LIBS="-lXft $XFT_LIBS $LIBS"
14294 cat >conftest.$ac_ext <<_ACEOF
14295 /* confdefs.h. */
14296 _ACEOF
14297 cat confdefs.h >>conftest.$ac_ext
14298 cat >>conftest.$ac_ext <<_ACEOF
14299 /* end confdefs.h. */
14300
14301 /* Override any GCC internal prototype to avoid an error.
14302 Use char because int might match the return type of a GCC
14303 builtin and then its argument prototype would still apply. */
14304 #ifdef __cplusplus
14305 extern "C"
14306 #endif
14307 char XftFontOpen ();
14308 int
14309 main ()
14310 {
14311 return XftFontOpen ();
14312 ;
14313 return 0;
14314 }
14315 _ACEOF
14316 rm -f conftest.$ac_objext conftest$ac_exeext
14317 if { (ac_try="$ac_link"
14318 case "(($ac_try" in
14319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14320 *) ac_try_echo=$ac_try;;
14321 esac
14322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14323 $as_echo "$ac_try_echo") >&5
14324 (eval "$ac_link") 2>conftest.er1
14325 ac_status=$?
14326 grep -v '^ *+' conftest.er1 >conftest.err
14327 rm -f conftest.er1
14328 cat conftest.err >&5
14329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); } && {
14331 test -z "$ac_c_werror_flag" ||
14332 test ! -s conftest.err
14333 } && test -s conftest$ac_exeext && {
14334 test "$cross_compiling" = yes ||
14335 $as_test_x conftest$ac_exeext
14336 }; then
14337 ac_cv_lib_Xft_XftFontOpen=yes
14338 else
14339 $as_echo "$as_me: failed program was:" >&5
14340 sed 's/^/| /' conftest.$ac_ext >&5
14341
14342 ac_cv_lib_Xft_XftFontOpen=no
14343 fi
14344
14345 rm -rf conftest.dSYM
14346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14347 conftest$ac_exeext conftest.$ac_ext
14348 LIBS=$ac_check_lib_save_LIBS
14349 fi
14350 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
14351 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14352 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
14353 HAVE_XFT=yes
14354 fi
14355
14356 fi
14357
14358
14359
14360 if test "${HAVE_XFT}" = "yes"; then
14361
14362 cat >>confdefs.h <<\_ACEOF
14363 #define HAVE_XFT 1
14364 _ACEOF
14365
14366
14367 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
14368 else
14369 CPPFLAGS="$OLD_CPPFLAGS"
14370 CFLAGS="$OLD_CFLAGS"
14371 LIBS="$OLD_LIBS"
14372 fi # "${HAVE_XFT}" = "yes"
14373 fi # "$HAVE_XFT" != no
14374 fi # "x${with_xft}" != "xno"
14375
14376 if test "$HAVE_XFT" != "yes"; then
14377 HAVE_XFT=no
14378 fi
14379
14380
14381 HAVE_FREETYPE=no
14382 ## We used to allow building with FreeType and without Xft.
14383 ## However, the ftx font backend driver is not in good shape.
14384 if test "${HAVE_XFT}" = "yes"; then
14385 HAVE_FREETYPE=yes
14386 FONTCONFIG_CFLAGS=
14387 FONTCONFIG_LIBS=
14388 fi
14389
14390 HAVE_LIBOTF=no
14391 if test "${HAVE_FREETYPE}" = "yes"; then
14392
14393 cat >>confdefs.h <<\_ACEOF
14394 #define HAVE_FREETYPE 1
14395 _ACEOF
14396
14397 if test "${with_libotf}" != "no"; then
14398
14399 succeeded=no
14400
14401 # Extract the first word of "pkg-config", so it can be a program name with args.
14402 set dummy pkg-config; ac_word=$2
14403 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14404 $as_echo_n "checking for $ac_word... " >&6; }
14405 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14406 $as_echo_n "(cached) " >&6
14407 else
14408 case $PKG_CONFIG in
14409 [\\/]* | ?:[\\/]*)
14410 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14411 ;;
14412 *)
14413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14414 for as_dir in $PATH
14415 do
14416 IFS=$as_save_IFS
14417 test -z "$as_dir" && as_dir=.
14418 for ac_exec_ext in '' $ac_executable_extensions; do
14419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14420 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14421 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14422 break 2
14423 fi
14424 done
14425 done
14426 IFS=$as_save_IFS
14427
14428 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14429 ;;
14430 esac
14431 fi
14432 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14433 if test -n "$PKG_CONFIG"; then
14434 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14435 $as_echo "$PKG_CONFIG" >&6; }
14436 else
14437 { $as_echo "$as_me:$LINENO: result: no" >&5
14438 $as_echo "no" >&6; }
14439 fi
14440
14441
14442
14443 if test "$PKG_CONFIG" = "no" ; then
14444 HAVE_LIBOTF=no
14445 else
14446 PKG_CONFIG_MIN_VERSION=0.9.0
14447 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14448 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
14449 $as_echo_n "checking for libotf... " >&6; }
14450
14451 if $PKG_CONFIG --exists "libotf" 2>&5; then
14452 { $as_echo "$as_me:$LINENO: result: yes" >&5
14453 $as_echo "yes" >&6; }
14454 succeeded=yes
14455
14456 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
14457 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14458 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14459 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
14460 $as_echo "$LIBOTF_CFLAGS" >&6; }
14461
14462 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
14463 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
14464 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14465 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
14466 $as_echo "$LIBOTF_LIBS" >&6; }
14467 else
14468 { $as_echo "$as_me:$LINENO: result: no" >&5
14469 $as_echo "no" >&6; }
14470 LIBOTF_CFLAGS=""
14471 LIBOTF_LIBS=""
14472 ## If we have a custom action on failure, don't print errors, but
14473 ## do set a variable so people can do so.
14474 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
14475
14476 fi
14477
14478
14479
14480 else
14481 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14482 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14483 fi
14484 fi
14485
14486 if test $succeeded = yes; then
14487 HAVE_LIBOTF=yes
14488 else
14489 HAVE_LIBOTF=no
14490 fi
14491
14492 if test "$HAVE_LIBOTF" = "yes"; then
14493
14494 cat >>confdefs.h <<\_ACEOF
14495 #define HAVE_LIBOTF 1
14496 _ACEOF
14497
14498 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14499 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14500 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14501 $as_echo_n "(cached) " >&6
14502 else
14503 ac_check_lib_save_LIBS=$LIBS
14504 LIBS="-lotf $LIBS"
14505 cat >conftest.$ac_ext <<_ACEOF
14506 /* confdefs.h. */
14507 _ACEOF
14508 cat confdefs.h >>conftest.$ac_ext
14509 cat >>conftest.$ac_ext <<_ACEOF
14510 /* end confdefs.h. */
14511
14512 /* Override any GCC internal prototype to avoid an error.
14513 Use char because int might match the return type of a GCC
14514 builtin and then its argument prototype would still apply. */
14515 #ifdef __cplusplus
14516 extern "C"
14517 #endif
14518 char OTF_get_variation_glyphs ();
14519 int
14520 main ()
14521 {
14522 return OTF_get_variation_glyphs ();
14523 ;
14524 return 0;
14525 }
14526 _ACEOF
14527 rm -f conftest.$ac_objext conftest$ac_exeext
14528 if { (ac_try="$ac_link"
14529 case "(($ac_try" in
14530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14531 *) ac_try_echo=$ac_try;;
14532 esac
14533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14534 $as_echo "$ac_try_echo") >&5
14535 (eval "$ac_link") 2>conftest.er1
14536 ac_status=$?
14537 grep -v '^ *+' conftest.er1 >conftest.err
14538 rm -f conftest.er1
14539 cat conftest.err >&5
14540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); } && {
14542 test -z "$ac_c_werror_flag" ||
14543 test ! -s conftest.err
14544 } && test -s conftest$ac_exeext && {
14545 test "$cross_compiling" = yes ||
14546 $as_test_x conftest$ac_exeext
14547 }; then
14548 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14549 else
14550 $as_echo "$as_me: failed program was:" >&5
14551 sed 's/^/| /' conftest.$ac_ext >&5
14552
14553 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14554 fi
14555
14556 rm -rf conftest.dSYM
14557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14558 conftest$ac_exeext conftest.$ac_ext
14559 LIBS=$ac_check_lib_save_LIBS
14560 fi
14561 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14562 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14563 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
14564 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14565 else
14566 HAVE_OTF_GET_VARIATION_GLYPHS=no
14567 fi
14568
14569 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14570
14571 cat >>confdefs.h <<\_ACEOF
14572 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14573 _ACEOF
14574
14575 fi
14576 fi
14577 fi
14578 fi
14579
14580 HAVE_M17N_FLT=no
14581 if test "${HAVE_LIBOTF}" = yes; then
14582 if test "${with_m17n_flt}" != "no"; then
14583
14584 succeeded=no
14585
14586 # Extract the first word of "pkg-config", so it can be a program name with args.
14587 set dummy pkg-config; ac_word=$2
14588 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14589 $as_echo_n "checking for $ac_word... " >&6; }
14590 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14591 $as_echo_n "(cached) " >&6
14592 else
14593 case $PKG_CONFIG in
14594 [\\/]* | ?:[\\/]*)
14595 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14596 ;;
14597 *)
14598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14599 for as_dir in $PATH
14600 do
14601 IFS=$as_save_IFS
14602 test -z "$as_dir" && as_dir=.
14603 for ac_exec_ext in '' $ac_executable_extensions; do
14604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14605 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14606 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14607 break 2
14608 fi
14609 done
14610 done
14611 IFS=$as_save_IFS
14612
14613 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14614 ;;
14615 esac
14616 fi
14617 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14618 if test -n "$PKG_CONFIG"; then
14619 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14620 $as_echo "$PKG_CONFIG" >&6; }
14621 else
14622 { $as_echo "$as_me:$LINENO: result: no" >&5
14623 $as_echo "no" >&6; }
14624 fi
14625
14626
14627
14628 if test "$PKG_CONFIG" = "no" ; then
14629 HAVE_M17N_FLT=no
14630 else
14631 PKG_CONFIG_MIN_VERSION=0.9.0
14632 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14633 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14634 $as_echo_n "checking for m17n-flt... " >&6; }
14635
14636 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14637 { $as_echo "$as_me:$LINENO: result: yes" >&5
14638 $as_echo "yes" >&6; }
14639 succeeded=yes
14640
14641 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14642 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14643 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
14644 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14645 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14646
14647 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14648 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14649 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
14650 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14651 $as_echo "$M17N_FLT_LIBS" >&6; }
14652 else
14653 { $as_echo "$as_me:$LINENO: result: no" >&5
14654 $as_echo "no" >&6; }
14655 M17N_FLT_CFLAGS=""
14656 M17N_FLT_LIBS=""
14657 ## If we have a custom action on failure, don't print errors, but
14658 ## do set a variable so people can do so.
14659 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14660
14661 fi
14662
14663
14664
14665 else
14666 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14667 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14668 fi
14669 fi
14670
14671 if test $succeeded = yes; then
14672 HAVE_M17N_FLT=yes
14673 else
14674 HAVE_M17N_FLT=no
14675 fi
14676
14677 if test "$HAVE_M17N_FLT" = "yes"; then
14678
14679 cat >>confdefs.h <<\_ACEOF
14680 #define HAVE_M17N_FLT 1
14681 _ACEOF
14682
14683 fi
14684 fi
14685 fi
14686 else
14687 HAVE_XFT=no
14688 HAVE_FREETYPE=no
14689 HAVE_LIBOTF=no
14690 HAVE_M17N_FLT=no
14691 fi
14692
14693 FONT_OBJ=xfont.o
14694 if test "$HAVE_XFT" = "yes"; then
14695 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14696 elif test "$HAVE_FREETYPE" = "yes"; then
14697 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
14698 fi
14699
14700
14701 ### End of font-backend (under X11) section.
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712 ### Use -lXpm if available, unless `--with-xpm=no'.
14713 HAVE_XPM=no
14714 LIBXPM=
14715 if test "${HAVE_X11}" = "yes"; then
14716 if test "${with_xpm}" != "no"; then
14717 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14718 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14719 $as_echo_n "checking for X11/xpm.h... " >&6; }
14720 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14721 $as_echo_n "(cached) " >&6
14722 fi
14723 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14724 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14725 else
14726 # Is the header compilable?
14727 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14728 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14729 cat >conftest.$ac_ext <<_ACEOF
14730 /* confdefs.h. */
14731 _ACEOF
14732 cat confdefs.h >>conftest.$ac_ext
14733 cat >>conftest.$ac_ext <<_ACEOF
14734 /* end confdefs.h. */
14735 $ac_includes_default
14736 #include <X11/xpm.h>
14737 _ACEOF
14738 rm -f conftest.$ac_objext
14739 if { (ac_try="$ac_compile"
14740 case "(($ac_try" in
14741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14742 *) ac_try_echo=$ac_try;;
14743 esac
14744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14745 $as_echo "$ac_try_echo") >&5
14746 (eval "$ac_compile") 2>conftest.er1
14747 ac_status=$?
14748 grep -v '^ *+' conftest.er1 >conftest.err
14749 rm -f conftest.er1
14750 cat conftest.err >&5
14751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); } && {
14753 test -z "$ac_c_werror_flag" ||
14754 test ! -s conftest.err
14755 } && test -s conftest.$ac_objext; then
14756 ac_header_compiler=yes
14757 else
14758 $as_echo "$as_me: failed program was:" >&5
14759 sed 's/^/| /' conftest.$ac_ext >&5
14760
14761 ac_header_compiler=no
14762 fi
14763
14764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14765 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14766 $as_echo "$ac_header_compiler" >&6; }
14767
14768 # Is the header present?
14769 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14770 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14771 cat >conftest.$ac_ext <<_ACEOF
14772 /* confdefs.h. */
14773 _ACEOF
14774 cat confdefs.h >>conftest.$ac_ext
14775 cat >>conftest.$ac_ext <<_ACEOF
14776 /* end confdefs.h. */
14777 #include <X11/xpm.h>
14778 _ACEOF
14779 if { (ac_try="$ac_cpp conftest.$ac_ext"
14780 case "(($ac_try" in
14781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14782 *) ac_try_echo=$ac_try;;
14783 esac
14784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14785 $as_echo "$ac_try_echo") >&5
14786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14787 ac_status=$?
14788 grep -v '^ *+' conftest.er1 >conftest.err
14789 rm -f conftest.er1
14790 cat conftest.err >&5
14791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 (exit $ac_status); } >/dev/null && {
14793 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14794 test ! -s conftest.err
14795 }; then
14796 ac_header_preproc=yes
14797 else
14798 $as_echo "$as_me: failed program was:" >&5
14799 sed 's/^/| /' conftest.$ac_ext >&5
14800
14801 ac_header_preproc=no
14802 fi
14803
14804 rm -f conftest.err conftest.$ac_ext
14805 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14806 $as_echo "$ac_header_preproc" >&6; }
14807
14808 # So? What about this header?
14809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14810 yes:no: )
14811 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14812 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14813 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14814 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14815 ac_header_preproc=yes
14816 ;;
14817 no:yes:* )
14818 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14819 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14820 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14821 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14822 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14823 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14824 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14825 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14826 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14827 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14828 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14829 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14830
14831 ;;
14832 esac
14833 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14834 $as_echo_n "checking for X11/xpm.h... " >&6; }
14835 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14836 $as_echo_n "(cached) " >&6
14837 else
14838 ac_cv_header_X11_xpm_h=$ac_header_preproc
14839 fi
14840 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14841 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14842
14843 fi
14844 if test $ac_cv_header_X11_xpm_h = yes; then
14845 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14846 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14847 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14848 $as_echo_n "(cached) " >&6
14849 else
14850 ac_check_lib_save_LIBS=$LIBS
14851 LIBS="-lXpm -lX11 $LIBS"
14852 cat >conftest.$ac_ext <<_ACEOF
14853 /* confdefs.h. */
14854 _ACEOF
14855 cat confdefs.h >>conftest.$ac_ext
14856 cat >>conftest.$ac_ext <<_ACEOF
14857 /* end confdefs.h. */
14858
14859 /* Override any GCC internal prototype to avoid an error.
14860 Use char because int might match the return type of a GCC
14861 builtin and then its argument prototype would still apply. */
14862 #ifdef __cplusplus
14863 extern "C"
14864 #endif
14865 char XpmReadFileToPixmap ();
14866 int
14867 main ()
14868 {
14869 return XpmReadFileToPixmap ();
14870 ;
14871 return 0;
14872 }
14873 _ACEOF
14874 rm -f conftest.$ac_objext conftest$ac_exeext
14875 if { (ac_try="$ac_link"
14876 case "(($ac_try" in
14877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14878 *) ac_try_echo=$ac_try;;
14879 esac
14880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14881 $as_echo "$ac_try_echo") >&5
14882 (eval "$ac_link") 2>conftest.er1
14883 ac_status=$?
14884 grep -v '^ *+' conftest.er1 >conftest.err
14885 rm -f conftest.er1
14886 cat conftest.err >&5
14887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); } && {
14889 test -z "$ac_c_werror_flag" ||
14890 test ! -s conftest.err
14891 } && test -s conftest$ac_exeext && {
14892 test "$cross_compiling" = yes ||
14893 $as_test_x conftest$ac_exeext
14894 }; then
14895 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14896 else
14897 $as_echo "$as_me: failed program was:" >&5
14898 sed 's/^/| /' conftest.$ac_ext >&5
14899
14900 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14901 fi
14902
14903 rm -rf conftest.dSYM
14904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14905 conftest$ac_exeext conftest.$ac_ext
14906 LIBS=$ac_check_lib_save_LIBS
14907 fi
14908 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14909 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14910 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14911 HAVE_XPM=yes
14912 fi
14913
14914 fi
14915
14916
14917 if test "${HAVE_XPM}" = "yes"; then
14918 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14919 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14920 cat >conftest.$ac_ext <<_ACEOF
14921 /* confdefs.h. */
14922 _ACEOF
14923 cat confdefs.h >>conftest.$ac_ext
14924 cat >>conftest.$ac_ext <<_ACEOF
14925 /* end confdefs.h. */
14926 #include "X11/xpm.h"
14927 #ifndef XpmReturnAllocPixels
14928 no_return_alloc_pixels
14929 #endif
14930
14931 _ACEOF
14932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14933 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14934 HAVE_XPM=no
14935 else
14936 HAVE_XPM=yes
14937 fi
14938 rm -f conftest*
14939
14940
14941 if test "${HAVE_XPM}" = "yes"; then
14942 { $as_echo "$as_me:$LINENO: result: yes" >&5
14943 $as_echo "yes" >&6; }
14944 else
14945 { $as_echo "$as_me:$LINENO: result: no" >&5
14946 $as_echo "no" >&6; }
14947 fi
14948 fi
14949 fi
14950
14951 if test "${HAVE_XPM}" = "yes"; then
14952
14953 cat >>confdefs.h <<\_ACEOF
14954 #define HAVE_XPM 1
14955 _ACEOF
14956
14957 LIBXPM=-lXpm
14958 fi
14959 fi
14960
14961
14962 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14963 HAVE_JPEG=no
14964 LIBJPEG=
14965 if test "${HAVE_X11}" = "yes"; then
14966 if test "${with_jpeg}" != "no"; then
14967 if test "${ac_cv_header_jerror_h+set}" = set; then
14968 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14969 $as_echo_n "checking for jerror.h... " >&6; }
14970 if test "${ac_cv_header_jerror_h+set}" = set; then
14971 $as_echo_n "(cached) " >&6
14972 fi
14973 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14974 $as_echo "$ac_cv_header_jerror_h" >&6; }
14975 else
14976 # Is the header compilable?
14977 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14978 $as_echo_n "checking jerror.h usability... " >&6; }
14979 cat >conftest.$ac_ext <<_ACEOF
14980 /* confdefs.h. */
14981 _ACEOF
14982 cat confdefs.h >>conftest.$ac_ext
14983 cat >>conftest.$ac_ext <<_ACEOF
14984 /* end confdefs.h. */
14985 $ac_includes_default
14986 #include <jerror.h>
14987 _ACEOF
14988 rm -f conftest.$ac_objext
14989 if { (ac_try="$ac_compile"
14990 case "(($ac_try" in
14991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14992 *) ac_try_echo=$ac_try;;
14993 esac
14994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14995 $as_echo "$ac_try_echo") >&5
14996 (eval "$ac_compile") 2>conftest.er1
14997 ac_status=$?
14998 grep -v '^ *+' conftest.er1 >conftest.err
14999 rm -f conftest.er1
15000 cat conftest.err >&5
15001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002 (exit $ac_status); } && {
15003 test -z "$ac_c_werror_flag" ||
15004 test ! -s conftest.err
15005 } && test -s conftest.$ac_objext; then
15006 ac_header_compiler=yes
15007 else
15008 $as_echo "$as_me: failed program was:" >&5
15009 sed 's/^/| /' conftest.$ac_ext >&5
15010
15011 ac_header_compiler=no
15012 fi
15013
15014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15015 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15016 $as_echo "$ac_header_compiler" >&6; }
15017
15018 # Is the header present?
15019 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
15020 $as_echo_n "checking jerror.h presence... " >&6; }
15021 cat >conftest.$ac_ext <<_ACEOF
15022 /* confdefs.h. */
15023 _ACEOF
15024 cat confdefs.h >>conftest.$ac_ext
15025 cat >>conftest.$ac_ext <<_ACEOF
15026 /* end confdefs.h. */
15027 #include <jerror.h>
15028 _ACEOF
15029 if { (ac_try="$ac_cpp conftest.$ac_ext"
15030 case "(($ac_try" in
15031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15032 *) ac_try_echo=$ac_try;;
15033 esac
15034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15035 $as_echo "$ac_try_echo") >&5
15036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15037 ac_status=$?
15038 grep -v '^ *+' conftest.er1 >conftest.err
15039 rm -f conftest.er1
15040 cat conftest.err >&5
15041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); } >/dev/null && {
15043 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15044 test ! -s conftest.err
15045 }; then
15046 ac_header_preproc=yes
15047 else
15048 $as_echo "$as_me: failed program was:" >&5
15049 sed 's/^/| /' conftest.$ac_ext >&5
15050
15051 ac_header_preproc=no
15052 fi
15053
15054 rm -f conftest.err conftest.$ac_ext
15055 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15056 $as_echo "$ac_header_preproc" >&6; }
15057
15058 # So? What about this header?
15059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15060 yes:no: )
15061 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
15062 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15063 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
15064 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
15065 ac_header_preproc=yes
15066 ;;
15067 no:yes:* )
15068 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
15069 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
15070 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
15071 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
15072 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
15073 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
15074 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
15075 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
15076 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
15077 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
15078 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
15079 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
15080
15081 ;;
15082 esac
15083 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
15084 $as_echo_n "checking for jerror.h... " >&6; }
15085 if test "${ac_cv_header_jerror_h+set}" = set; then
15086 $as_echo_n "(cached) " >&6
15087 else
15088 ac_cv_header_jerror_h=$ac_header_preproc
15089 fi
15090 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
15091 $as_echo "$ac_cv_header_jerror_h" >&6; }
15092
15093 fi
15094 if test $ac_cv_header_jerror_h = yes; then
15095 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
15096 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
15097 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
15098 $as_echo_n "(cached) " >&6
15099 else
15100 ac_check_lib_save_LIBS=$LIBS
15101 LIBS="-ljpeg $LIBS"
15102 cat >conftest.$ac_ext <<_ACEOF
15103 /* confdefs.h. */
15104 _ACEOF
15105 cat confdefs.h >>conftest.$ac_ext
15106 cat >>conftest.$ac_ext <<_ACEOF
15107 /* end confdefs.h. */
15108
15109 /* Override any GCC internal prototype to avoid an error.
15110 Use char because int might match the return type of a GCC
15111 builtin and then its argument prototype would still apply. */
15112 #ifdef __cplusplus
15113 extern "C"
15114 #endif
15115 char jpeg_destroy_compress ();
15116 int
15117 main ()
15118 {
15119 return jpeg_destroy_compress ();
15120 ;
15121 return 0;
15122 }
15123 _ACEOF
15124 rm -f conftest.$ac_objext conftest$ac_exeext
15125 if { (ac_try="$ac_link"
15126 case "(($ac_try" in
15127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15128 *) ac_try_echo=$ac_try;;
15129 esac
15130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15131 $as_echo "$ac_try_echo") >&5
15132 (eval "$ac_link") 2>conftest.er1
15133 ac_status=$?
15134 grep -v '^ *+' conftest.er1 >conftest.err
15135 rm -f conftest.er1
15136 cat conftest.err >&5
15137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138 (exit $ac_status); } && {
15139 test -z "$ac_c_werror_flag" ||
15140 test ! -s conftest.err
15141 } && test -s conftest$ac_exeext && {
15142 test "$cross_compiling" = yes ||
15143 $as_test_x conftest$ac_exeext
15144 }; then
15145 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
15146 else
15147 $as_echo "$as_me: failed program was:" >&5
15148 sed 's/^/| /' conftest.$ac_ext >&5
15149
15150 ac_cv_lib_jpeg_jpeg_destroy_compress=no
15151 fi
15152
15153 rm -rf conftest.dSYM
15154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15155 conftest$ac_exeext conftest.$ac_ext
15156 LIBS=$ac_check_lib_save_LIBS
15157 fi
15158 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
15159 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
15160 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
15161 HAVE_JPEG=yes
15162 fi
15163
15164 fi
15165
15166
15167 fi
15168
15169
15170 if test "${HAVE_JPEG}" = "yes"; then
15171 cat >>confdefs.h <<\_ACEOF
15172 #define HAVE_JPEG 1
15173 _ACEOF
15174
15175 cat >conftest.$ac_ext <<_ACEOF
15176 /* confdefs.h. */
15177 _ACEOF
15178 cat confdefs.h >>conftest.$ac_ext
15179 cat >>conftest.$ac_ext <<_ACEOF
15180 /* end confdefs.h. */
15181 #include <jpeglib.h>
15182 version=JPEG_LIB_VERSION
15183
15184 _ACEOF
15185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15186 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
15187 cat >>confdefs.h <<\_ACEOF
15188 #define HAVE_JPEG 1
15189 _ACEOF
15190
15191 else
15192 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
15193 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
15194 HAVE_JPEG=no
15195 fi
15196 rm -f conftest*
15197
15198 fi
15199 if test "${HAVE_JPEG}" = "yes"; then
15200 LIBJPEG=-ljpeg
15201 fi
15202 fi
15203
15204
15205 ### Use -lpng if available, unless `--with-png=no'.
15206 HAVE_PNG=no
15207 LIBPNG=
15208 if test "${HAVE_X11}" = "yes"; then
15209 if test "${with_png}" != "no"; then
15210 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
15211 # in /usr/include/libpng.
15212
15213
15214 for ac_header in png.h libpng/png.h
15215 do
15216 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15218 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15219 $as_echo_n "checking for $ac_header... " >&6; }
15220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15221 $as_echo_n "(cached) " >&6
15222 fi
15223 ac_res=`eval 'as_val=${'$as_ac_Header'}
15224 $as_echo "$as_val"'`
15225 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15226 $as_echo "$ac_res" >&6; }
15227 else
15228 # Is the header compilable?
15229 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15230 $as_echo_n "checking $ac_header usability... " >&6; }
15231 cat >conftest.$ac_ext <<_ACEOF
15232 /* confdefs.h. */
15233 _ACEOF
15234 cat confdefs.h >>conftest.$ac_ext
15235 cat >>conftest.$ac_ext <<_ACEOF
15236 /* end confdefs.h. */
15237 $ac_includes_default
15238 #include <$ac_header>
15239 _ACEOF
15240 rm -f conftest.$ac_objext
15241 if { (ac_try="$ac_compile"
15242 case "(($ac_try" in
15243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15244 *) ac_try_echo=$ac_try;;
15245 esac
15246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15247 $as_echo "$ac_try_echo") >&5
15248 (eval "$ac_compile") 2>conftest.er1
15249 ac_status=$?
15250 grep -v '^ *+' conftest.er1 >conftest.err
15251 rm -f conftest.er1
15252 cat conftest.err >&5
15253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); } && {
15255 test -z "$ac_c_werror_flag" ||
15256 test ! -s conftest.err
15257 } && test -s conftest.$ac_objext; then
15258 ac_header_compiler=yes
15259 else
15260 $as_echo "$as_me: failed program was:" >&5
15261 sed 's/^/| /' conftest.$ac_ext >&5
15262
15263 ac_header_compiler=no
15264 fi
15265
15266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15267 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15268 $as_echo "$ac_header_compiler" >&6; }
15269
15270 # Is the header present?
15271 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15272 $as_echo_n "checking $ac_header presence... " >&6; }
15273 cat >conftest.$ac_ext <<_ACEOF
15274 /* confdefs.h. */
15275 _ACEOF
15276 cat confdefs.h >>conftest.$ac_ext
15277 cat >>conftest.$ac_ext <<_ACEOF
15278 /* end confdefs.h. */
15279 #include <$ac_header>
15280 _ACEOF
15281 if { (ac_try="$ac_cpp conftest.$ac_ext"
15282 case "(($ac_try" in
15283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15284 *) ac_try_echo=$ac_try;;
15285 esac
15286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15287 $as_echo "$ac_try_echo") >&5
15288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15289 ac_status=$?
15290 grep -v '^ *+' conftest.er1 >conftest.err
15291 rm -f conftest.er1
15292 cat conftest.err >&5
15293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294 (exit $ac_status); } >/dev/null && {
15295 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15296 test ! -s conftest.err
15297 }; then
15298 ac_header_preproc=yes
15299 else
15300 $as_echo "$as_me: failed program was:" >&5
15301 sed 's/^/| /' conftest.$ac_ext >&5
15302
15303 ac_header_preproc=no
15304 fi
15305
15306 rm -f conftest.err conftest.$ac_ext
15307 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15308 $as_echo "$ac_header_preproc" >&6; }
15309
15310 # So? What about this header?
15311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15312 yes:no: )
15313 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15314 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15315 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15316 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15317 ac_header_preproc=yes
15318 ;;
15319 no:yes:* )
15320 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15321 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15323 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15325 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15327 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15329 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15331 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15332
15333 ;;
15334 esac
15335 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15336 $as_echo_n "checking for $ac_header... " >&6; }
15337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15338 $as_echo_n "(cached) " >&6
15339 else
15340 eval "$as_ac_Header=\$ac_header_preproc"
15341 fi
15342 ac_res=`eval 'as_val=${'$as_ac_Header'}
15343 $as_echo "$as_val"'`
15344 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15345 $as_echo "$ac_res" >&6; }
15346
15347 fi
15348 if test `eval 'as_val=${'$as_ac_Header'}
15349 $as_echo "$as_val"'` = yes; then
15350 cat >>confdefs.h <<_ACEOF
15351 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15352 _ACEOF
15353
15354 fi
15355
15356 done
15357
15358 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
15359 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
15360 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
15361 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
15362 $as_echo_n "(cached) " >&6
15363 else
15364 ac_check_lib_save_LIBS=$LIBS
15365 LIBS="-lpng -lz -lm $LIBS"
15366 cat >conftest.$ac_ext <<_ACEOF
15367 /* confdefs.h. */
15368 _ACEOF
15369 cat confdefs.h >>conftest.$ac_ext
15370 cat >>conftest.$ac_ext <<_ACEOF
15371 /* end confdefs.h. */
15372
15373 /* Override any GCC internal prototype to avoid an error.
15374 Use char because int might match the return type of a GCC
15375 builtin and then its argument prototype would still apply. */
15376 #ifdef __cplusplus
15377 extern "C"
15378 #endif
15379 char png_get_channels ();
15380 int
15381 main ()
15382 {
15383 return png_get_channels ();
15384 ;
15385 return 0;
15386 }
15387 _ACEOF
15388 rm -f conftest.$ac_objext conftest$ac_exeext
15389 if { (ac_try="$ac_link"
15390 case "(($ac_try" in
15391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15392 *) ac_try_echo=$ac_try;;
15393 esac
15394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15395 $as_echo "$ac_try_echo") >&5
15396 (eval "$ac_link") 2>conftest.er1
15397 ac_status=$?
15398 grep -v '^ *+' conftest.er1 >conftest.err
15399 rm -f conftest.er1
15400 cat conftest.err >&5
15401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); } && {
15403 test -z "$ac_c_werror_flag" ||
15404 test ! -s conftest.err
15405 } && test -s conftest$ac_exeext && {
15406 test "$cross_compiling" = yes ||
15407 $as_test_x conftest$ac_exeext
15408 }; then
15409 ac_cv_lib_png_png_get_channels=yes
15410 else
15411 $as_echo "$as_me: failed program was:" >&5
15412 sed 's/^/| /' conftest.$ac_ext >&5
15413
15414 ac_cv_lib_png_png_get_channels=no
15415 fi
15416
15417 rm -rf conftest.dSYM
15418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15419 conftest$ac_exeext conftest.$ac_ext
15420 LIBS=$ac_check_lib_save_LIBS
15421 fi
15422 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
15423 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
15424 if test $ac_cv_lib_png_png_get_channels = yes; then
15425 HAVE_PNG=yes
15426 fi
15427
15428 fi
15429 fi
15430
15431 if test "${HAVE_PNG}" = "yes"; then
15432
15433 cat >>confdefs.h <<\_ACEOF
15434 #define HAVE_PNG 1
15435 _ACEOF
15436
15437 LIBPNG="-lpng -lz -lm"
15438 fi
15439 fi
15440
15441
15442 ### Use -ltiff if available, unless `--with-tiff=no'.
15443 HAVE_TIFF=no
15444 LIBTIFF=
15445 if test "${HAVE_X11}" = "yes"; then
15446 if test "${with_tiff}" != "no"; then
15447 if test "${ac_cv_header_tiffio_h+set}" = set; then
15448 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15449 $as_echo_n "checking for tiffio.h... " >&6; }
15450 if test "${ac_cv_header_tiffio_h+set}" = set; then
15451 $as_echo_n "(cached) " >&6
15452 fi
15453 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15454 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15455 else
15456 # Is the header compilable?
15457 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15458 $as_echo_n "checking tiffio.h usability... " >&6; }
15459 cat >conftest.$ac_ext <<_ACEOF
15460 /* confdefs.h. */
15461 _ACEOF
15462 cat confdefs.h >>conftest.$ac_ext
15463 cat >>conftest.$ac_ext <<_ACEOF
15464 /* end confdefs.h. */
15465 $ac_includes_default
15466 #include <tiffio.h>
15467 _ACEOF
15468 rm -f conftest.$ac_objext
15469 if { (ac_try="$ac_compile"
15470 case "(($ac_try" in
15471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15472 *) ac_try_echo=$ac_try;;
15473 esac
15474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15475 $as_echo "$ac_try_echo") >&5
15476 (eval "$ac_compile") 2>conftest.er1
15477 ac_status=$?
15478 grep -v '^ *+' conftest.er1 >conftest.err
15479 rm -f conftest.er1
15480 cat conftest.err >&5
15481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); } && {
15483 test -z "$ac_c_werror_flag" ||
15484 test ! -s conftest.err
15485 } && test -s conftest.$ac_objext; then
15486 ac_header_compiler=yes
15487 else
15488 $as_echo "$as_me: failed program was:" >&5
15489 sed 's/^/| /' conftest.$ac_ext >&5
15490
15491 ac_header_compiler=no
15492 fi
15493
15494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15495 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15496 $as_echo "$ac_header_compiler" >&6; }
15497
15498 # Is the header present?
15499 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15500 $as_echo_n "checking tiffio.h presence... " >&6; }
15501 cat >conftest.$ac_ext <<_ACEOF
15502 /* confdefs.h. */
15503 _ACEOF
15504 cat confdefs.h >>conftest.$ac_ext
15505 cat >>conftest.$ac_ext <<_ACEOF
15506 /* end confdefs.h. */
15507 #include <tiffio.h>
15508 _ACEOF
15509 if { (ac_try="$ac_cpp conftest.$ac_ext"
15510 case "(($ac_try" in
15511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15512 *) ac_try_echo=$ac_try;;
15513 esac
15514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15515 $as_echo "$ac_try_echo") >&5
15516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15517 ac_status=$?
15518 grep -v '^ *+' conftest.er1 >conftest.err
15519 rm -f conftest.er1
15520 cat conftest.err >&5
15521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); } >/dev/null && {
15523 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15524 test ! -s conftest.err
15525 }; then
15526 ac_header_preproc=yes
15527 else
15528 $as_echo "$as_me: failed program was:" >&5
15529 sed 's/^/| /' conftest.$ac_ext >&5
15530
15531 ac_header_preproc=no
15532 fi
15533
15534 rm -f conftest.err conftest.$ac_ext
15535 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15536 $as_echo "$ac_header_preproc" >&6; }
15537
15538 # So? What about this header?
15539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15540 yes:no: )
15541 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15542 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15543 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15544 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15545 ac_header_preproc=yes
15546 ;;
15547 no:yes:* )
15548 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15549 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15550 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15551 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15552 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15553 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15554 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15555 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15556 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15557 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15558 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15559 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15560
15561 ;;
15562 esac
15563 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15564 $as_echo_n "checking for tiffio.h... " >&6; }
15565 if test "${ac_cv_header_tiffio_h+set}" = set; then
15566 $as_echo_n "(cached) " >&6
15567 else
15568 ac_cv_header_tiffio_h=$ac_header_preproc
15569 fi
15570 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15571 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15572
15573 fi
15574 if test $ac_cv_header_tiffio_h = yes; then
15575 tifflibs="-lz -lm"
15576 # At least one tiff package requires the jpeg library.
15577 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
15578 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15579 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15580 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15581 $as_echo_n "(cached) " >&6
15582 else
15583 ac_check_lib_save_LIBS=$LIBS
15584 LIBS="-ltiff $tifflibs $LIBS"
15585 cat >conftest.$ac_ext <<_ACEOF
15586 /* confdefs.h. */
15587 _ACEOF
15588 cat confdefs.h >>conftest.$ac_ext
15589 cat >>conftest.$ac_ext <<_ACEOF
15590 /* end confdefs.h. */
15591
15592 /* Override any GCC internal prototype to avoid an error.
15593 Use char because int might match the return type of a GCC
15594 builtin and then its argument prototype would still apply. */
15595 #ifdef __cplusplus
15596 extern "C"
15597 #endif
15598 char TIFFGetVersion ();
15599 int
15600 main ()
15601 {
15602 return TIFFGetVersion ();
15603 ;
15604 return 0;
15605 }
15606 _ACEOF
15607 rm -f conftest.$ac_objext conftest$ac_exeext
15608 if { (ac_try="$ac_link"
15609 case "(($ac_try" in
15610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15611 *) ac_try_echo=$ac_try;;
15612 esac
15613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15614 $as_echo "$ac_try_echo") >&5
15615 (eval "$ac_link") 2>conftest.er1
15616 ac_status=$?
15617 grep -v '^ *+' conftest.er1 >conftest.err
15618 rm -f conftest.er1
15619 cat conftest.err >&5
15620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); } && {
15622 test -z "$ac_c_werror_flag" ||
15623 test ! -s conftest.err
15624 } && test -s conftest$ac_exeext && {
15625 test "$cross_compiling" = yes ||
15626 $as_test_x conftest$ac_exeext
15627 }; then
15628 ac_cv_lib_tiff_TIFFGetVersion=yes
15629 else
15630 $as_echo "$as_me: failed program was:" >&5
15631 sed 's/^/| /' conftest.$ac_ext >&5
15632
15633 ac_cv_lib_tiff_TIFFGetVersion=no
15634 fi
15635
15636 rm -rf conftest.dSYM
15637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15638 conftest$ac_exeext conftest.$ac_ext
15639 LIBS=$ac_check_lib_save_LIBS
15640 fi
15641 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15642 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15643 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
15644 HAVE_TIFF=yes
15645 fi
15646
15647 fi
15648
15649
15650 fi
15651
15652 if test "${HAVE_TIFF}" = "yes"; then
15653
15654 cat >>confdefs.h <<\_ACEOF
15655 #define HAVE_TIFF 1
15656 _ACEOF
15657
15658 LIBTIFF=-ltiff
15659 fi
15660 fi
15661
15662
15663 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
15664 HAVE_GIF=no
15665 LIBGIF=
15666 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15667 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15668 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15669 $as_echo_n "checking for gif_lib.h... " >&6; }
15670 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15671 $as_echo_n "(cached) " >&6
15672 fi
15673 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15674 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15675 else
15676 # Is the header compilable?
15677 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15678 $as_echo_n "checking gif_lib.h usability... " >&6; }
15679 cat >conftest.$ac_ext <<_ACEOF
15680 /* confdefs.h. */
15681 _ACEOF
15682 cat confdefs.h >>conftest.$ac_ext
15683 cat >>conftest.$ac_ext <<_ACEOF
15684 /* end confdefs.h. */
15685 $ac_includes_default
15686 #include <gif_lib.h>
15687 _ACEOF
15688 rm -f conftest.$ac_objext
15689 if { (ac_try="$ac_compile"
15690 case "(($ac_try" in
15691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15692 *) ac_try_echo=$ac_try;;
15693 esac
15694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15695 $as_echo "$ac_try_echo") >&5
15696 (eval "$ac_compile") 2>conftest.er1
15697 ac_status=$?
15698 grep -v '^ *+' conftest.er1 >conftest.err
15699 rm -f conftest.er1
15700 cat conftest.err >&5
15701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); } && {
15703 test -z "$ac_c_werror_flag" ||
15704 test ! -s conftest.err
15705 } && test -s conftest.$ac_objext; then
15706 ac_header_compiler=yes
15707 else
15708 $as_echo "$as_me: failed program was:" >&5
15709 sed 's/^/| /' conftest.$ac_ext >&5
15710
15711 ac_header_compiler=no
15712 fi
15713
15714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15715 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15716 $as_echo "$ac_header_compiler" >&6; }
15717
15718 # Is the header present?
15719 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15720 $as_echo_n "checking gif_lib.h presence... " >&6; }
15721 cat >conftest.$ac_ext <<_ACEOF
15722 /* confdefs.h. */
15723 _ACEOF
15724 cat confdefs.h >>conftest.$ac_ext
15725 cat >>conftest.$ac_ext <<_ACEOF
15726 /* end confdefs.h. */
15727 #include <gif_lib.h>
15728 _ACEOF
15729 if { (ac_try="$ac_cpp conftest.$ac_ext"
15730 case "(($ac_try" in
15731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15732 *) ac_try_echo=$ac_try;;
15733 esac
15734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15735 $as_echo "$ac_try_echo") >&5
15736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15737 ac_status=$?
15738 grep -v '^ *+' conftest.er1 >conftest.err
15739 rm -f conftest.er1
15740 cat conftest.err >&5
15741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); } >/dev/null && {
15743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15744 test ! -s conftest.err
15745 }; then
15746 ac_header_preproc=yes
15747 else
15748 $as_echo "$as_me: failed program was:" >&5
15749 sed 's/^/| /' conftest.$ac_ext >&5
15750
15751 ac_header_preproc=no
15752 fi
15753
15754 rm -f conftest.err conftest.$ac_ext
15755 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15756 $as_echo "$ac_header_preproc" >&6; }
15757
15758 # So? What about this header?
15759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15760 yes:no: )
15761 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15762 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15763 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
15764 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
15765 ac_header_preproc=yes
15766 ;;
15767 no:yes:* )
15768 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15769 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15770 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15771 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15772 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15773 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15774 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15775 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15776 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15777 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15778 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15779 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15780
15781 ;;
15782 esac
15783 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15784 $as_echo_n "checking for gif_lib.h... " >&6; }
15785 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15786 $as_echo_n "(cached) " >&6
15787 else
15788 ac_cv_header_gif_lib_h=$ac_header_preproc
15789 fi
15790 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15791 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15792
15793 fi
15794 if test $ac_cv_header_gif_lib_h = yes; then
15795 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15796 # Earlier versions can crash Emacs.
15797 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15798 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15799 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15800 $as_echo_n "(cached) " >&6
15801 else
15802 ac_check_lib_save_LIBS=$LIBS
15803 LIBS="-lgif $LIBS"
15804 cat >conftest.$ac_ext <<_ACEOF
15805 /* confdefs.h. */
15806 _ACEOF
15807 cat confdefs.h >>conftest.$ac_ext
15808 cat >>conftest.$ac_ext <<_ACEOF
15809 /* end confdefs.h. */
15810
15811 /* Override any GCC internal prototype to avoid an error.
15812 Use char because int might match the return type of a GCC
15813 builtin and then its argument prototype would still apply. */
15814 #ifdef __cplusplus
15815 extern "C"
15816 #endif
15817 char EGifPutExtensionLast ();
15818 int
15819 main ()
15820 {
15821 return EGifPutExtensionLast ();
15822 ;
15823 return 0;
15824 }
15825 _ACEOF
15826 rm -f conftest.$ac_objext conftest$ac_exeext
15827 if { (ac_try="$ac_link"
15828 case "(($ac_try" in
15829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15830 *) ac_try_echo=$ac_try;;
15831 esac
15832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15833 $as_echo "$ac_try_echo") >&5
15834 (eval "$ac_link") 2>conftest.er1
15835 ac_status=$?
15836 grep -v '^ *+' conftest.er1 >conftest.err
15837 rm -f conftest.er1
15838 cat conftest.err >&5
15839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); } && {
15841 test -z "$ac_c_werror_flag" ||
15842 test ! -s conftest.err
15843 } && test -s conftest$ac_exeext && {
15844 test "$cross_compiling" = yes ||
15845 $as_test_x conftest$ac_exeext
15846 }; then
15847 ac_cv_lib_gif_EGifPutExtensionLast=yes
15848 else
15849 $as_echo "$as_me: failed program was:" >&5
15850 sed 's/^/| /' conftest.$ac_ext >&5
15851
15852 ac_cv_lib_gif_EGifPutExtensionLast=no
15853 fi
15854
15855 rm -rf conftest.dSYM
15856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15857 conftest$ac_exeext conftest.$ac_ext
15858 LIBS=$ac_check_lib_save_LIBS
15859 fi
15860 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15861 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15862 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15863 HAVE_GIF=yes
15864 else
15865 HAVE_GIF=maybe
15866 fi
15867
15868 fi
15869
15870
15871
15872 if test "$HAVE_GIF" = yes; then
15873 LIBGIF=-lgif
15874 elif test "$HAVE_GIF" = maybe; then
15875 # If gif_lib.h but no libgif, try libungif.
15876 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15877 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15878 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15879 $as_echo_n "(cached) " >&6
15880 else
15881 ac_check_lib_save_LIBS=$LIBS
15882 LIBS="-lungif $LIBS"
15883 cat >conftest.$ac_ext <<_ACEOF
15884 /* confdefs.h. */
15885 _ACEOF
15886 cat confdefs.h >>conftest.$ac_ext
15887 cat >>conftest.$ac_ext <<_ACEOF
15888 /* end confdefs.h. */
15889
15890 /* Override any GCC internal prototype to avoid an error.
15891 Use char because int might match the return type of a GCC
15892 builtin and then its argument prototype would still apply. */
15893 #ifdef __cplusplus
15894 extern "C"
15895 #endif
15896 char EGifPutExtensionLast ();
15897 int
15898 main ()
15899 {
15900 return EGifPutExtensionLast ();
15901 ;
15902 return 0;
15903 }
15904 _ACEOF
15905 rm -f conftest.$ac_objext conftest$ac_exeext
15906 if { (ac_try="$ac_link"
15907 case "(($ac_try" in
15908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15909 *) ac_try_echo=$ac_try;;
15910 esac
15911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15912 $as_echo "$ac_try_echo") >&5
15913 (eval "$ac_link") 2>conftest.er1
15914 ac_status=$?
15915 grep -v '^ *+' conftest.er1 >conftest.err
15916 rm -f conftest.er1
15917 cat conftest.err >&5
15918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); } && {
15920 test -z "$ac_c_werror_flag" ||
15921 test ! -s conftest.err
15922 } && test -s conftest$ac_exeext && {
15923 test "$cross_compiling" = yes ||
15924 $as_test_x conftest$ac_exeext
15925 }; then
15926 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15927 else
15928 $as_echo "$as_me: failed program was:" >&5
15929 sed 's/^/| /' conftest.$ac_ext >&5
15930
15931 ac_cv_lib_ungif_EGifPutExtensionLast=no
15932 fi
15933
15934 rm -rf conftest.dSYM
15935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15936 conftest$ac_exeext conftest.$ac_ext
15937 LIBS=$ac_check_lib_save_LIBS
15938 fi
15939 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15940 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15941 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15942 HAVE_GIF=yes
15943 else
15944 HAVE_GIF=no
15945 fi
15946
15947 test "$HAVE_GIF" = yes && LIBGIF=-lungif
15948 fi
15949
15950 if test "${HAVE_GIF}" = "yes"; then
15951
15952 cat >>confdefs.h <<\_ACEOF
15953 #define HAVE_GIF 1
15954 _ACEOF
15955
15956 fi
15957 fi
15958
15959
15960 if test "${HAVE_X11}" = "yes"; then
15961 MISSING=""
15962 WITH_NO=""
15963 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15964 MISSING="libXpm" && WITH_NO="--with-xpm=no"
15965 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15966 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
15967 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15968 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
15969 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15970 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
15971 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15972 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15973
15974 if test "X${MISSING}" != X; then
15975 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15976 $MISSING
15977 Maybe some development libraries/packages are missing?
15978 If you don't want to link with them give
15979 $WITH_NO
15980 as options to configure" >&5
15981 $as_echo "$as_me: error: The following required libraries were not found:
15982 $MISSING
15983 Maybe some development libraries/packages are missing?
15984 If you don't want to link with them give
15985 $WITH_NO
15986 as options to configure" >&2;}
15987 { (exit 1); exit 1; }; }
15988 fi
15989 fi
15990
15991 ### Use -lgpm if available, unless `--with-gpm=no'.
15992 HAVE_GPM=no
15993 LIBGPM=
15994 GPM_MOUSE_SUPPORT=
15995 if test "${with_gpm}" != "no"; then
15996 if test "${ac_cv_header_gpm_h+set}" = set; then
15997 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15998 $as_echo_n "checking for gpm.h... " >&6; }
15999 if test "${ac_cv_header_gpm_h+set}" = set; then
16000 $as_echo_n "(cached) " >&6
16001 fi
16002 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
16003 $as_echo "$ac_cv_header_gpm_h" >&6; }
16004 else
16005 # Is the header compilable?
16006 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
16007 $as_echo_n "checking gpm.h usability... " >&6; }
16008 cat >conftest.$ac_ext <<_ACEOF
16009 /* confdefs.h. */
16010 _ACEOF
16011 cat confdefs.h >>conftest.$ac_ext
16012 cat >>conftest.$ac_ext <<_ACEOF
16013 /* end confdefs.h. */
16014 $ac_includes_default
16015 #include <gpm.h>
16016 _ACEOF
16017 rm -f conftest.$ac_objext
16018 if { (ac_try="$ac_compile"
16019 case "(($ac_try" in
16020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16021 *) ac_try_echo=$ac_try;;
16022 esac
16023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16024 $as_echo "$ac_try_echo") >&5
16025 (eval "$ac_compile") 2>conftest.er1
16026 ac_status=$?
16027 grep -v '^ *+' conftest.er1 >conftest.err
16028 rm -f conftest.er1
16029 cat conftest.err >&5
16030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); } && {
16032 test -z "$ac_c_werror_flag" ||
16033 test ! -s conftest.err
16034 } && test -s conftest.$ac_objext; then
16035 ac_header_compiler=yes
16036 else
16037 $as_echo "$as_me: failed program was:" >&5
16038 sed 's/^/| /' conftest.$ac_ext >&5
16039
16040 ac_header_compiler=no
16041 fi
16042
16043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16044 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16045 $as_echo "$ac_header_compiler" >&6; }
16046
16047 # Is the header present?
16048 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
16049 $as_echo_n "checking gpm.h presence... " >&6; }
16050 cat >conftest.$ac_ext <<_ACEOF
16051 /* confdefs.h. */
16052 _ACEOF
16053 cat confdefs.h >>conftest.$ac_ext
16054 cat >>conftest.$ac_ext <<_ACEOF
16055 /* end confdefs.h. */
16056 #include <gpm.h>
16057 _ACEOF
16058 if { (ac_try="$ac_cpp conftest.$ac_ext"
16059 case "(($ac_try" in
16060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16061 *) ac_try_echo=$ac_try;;
16062 esac
16063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16064 $as_echo "$ac_try_echo") >&5
16065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16066 ac_status=$?
16067 grep -v '^ *+' conftest.er1 >conftest.err
16068 rm -f conftest.er1
16069 cat conftest.err >&5
16070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071 (exit $ac_status); } >/dev/null && {
16072 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16073 test ! -s conftest.err
16074 }; then
16075 ac_header_preproc=yes
16076 else
16077 $as_echo "$as_me: failed program was:" >&5
16078 sed 's/^/| /' conftest.$ac_ext >&5
16079
16080 ac_header_preproc=no
16081 fi
16082
16083 rm -f conftest.err conftest.$ac_ext
16084 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16085 $as_echo "$ac_header_preproc" >&6; }
16086
16087 # So? What about this header?
16088 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16089 yes:no: )
16090 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
16091 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16092 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
16093 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
16094 ac_header_preproc=yes
16095 ;;
16096 no:yes:* )
16097 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
16098 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
16099 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
16100 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
16101 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
16102 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
16103 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
16104 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
16105 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
16106 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
16107 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
16108 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
16109
16110 ;;
16111 esac
16112 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
16113 $as_echo_n "checking for gpm.h... " >&6; }
16114 if test "${ac_cv_header_gpm_h+set}" = set; then
16115 $as_echo_n "(cached) " >&6
16116 else
16117 ac_cv_header_gpm_h=$ac_header_preproc
16118 fi
16119 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
16120 $as_echo "$ac_cv_header_gpm_h" >&6; }
16121
16122 fi
16123 if test $ac_cv_header_gpm_h = yes; then
16124 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
16125 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
16126 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
16127 $as_echo_n "(cached) " >&6
16128 else
16129 ac_check_lib_save_LIBS=$LIBS
16130 LIBS="-lgpm $LIBS"
16131 cat >conftest.$ac_ext <<_ACEOF
16132 /* confdefs.h. */
16133 _ACEOF
16134 cat confdefs.h >>conftest.$ac_ext
16135 cat >>conftest.$ac_ext <<_ACEOF
16136 /* end confdefs.h. */
16137
16138 /* Override any GCC internal prototype to avoid an error.
16139 Use char because int might match the return type of a GCC
16140 builtin and then its argument prototype would still apply. */
16141 #ifdef __cplusplus
16142 extern "C"
16143 #endif
16144 char Gpm_Open ();
16145 int
16146 main ()
16147 {
16148 return Gpm_Open ();
16149 ;
16150 return 0;
16151 }
16152 _ACEOF
16153 rm -f conftest.$ac_objext conftest$ac_exeext
16154 if { (ac_try="$ac_link"
16155 case "(($ac_try" in
16156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16157 *) ac_try_echo=$ac_try;;
16158 esac
16159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16160 $as_echo "$ac_try_echo") >&5
16161 (eval "$ac_link") 2>conftest.er1
16162 ac_status=$?
16163 grep -v '^ *+' conftest.er1 >conftest.err
16164 rm -f conftest.er1
16165 cat conftest.err >&5
16166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); } && {
16168 test -z "$ac_c_werror_flag" ||
16169 test ! -s conftest.err
16170 } && test -s conftest$ac_exeext && {
16171 test "$cross_compiling" = yes ||
16172 $as_test_x conftest$ac_exeext
16173 }; then
16174 ac_cv_lib_gpm_Gpm_Open=yes
16175 else
16176 $as_echo "$as_me: failed program was:" >&5
16177 sed 's/^/| /' conftest.$ac_ext >&5
16178
16179 ac_cv_lib_gpm_Gpm_Open=no
16180 fi
16181
16182 rm -rf conftest.dSYM
16183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16184 conftest$ac_exeext conftest.$ac_ext
16185 LIBS=$ac_check_lib_save_LIBS
16186 fi
16187 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
16188 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
16189 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
16190 HAVE_GPM=yes
16191 fi
16192
16193 fi
16194
16195
16196
16197 if test "${HAVE_GPM}" = "yes"; then
16198
16199 cat >>confdefs.h <<\_ACEOF
16200 #define HAVE_GPM 1
16201 _ACEOF
16202
16203 LIBGPM=-lgpm
16204 GPM_MOUSE_SUPPORT="\${lispsource}mouse.elc"
16205 fi
16206 fi
16207
16208
16209
16210 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16211 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16212 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16213 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16214 $as_echo_n "(cached) " >&6
16215 fi
16216 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16217 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16218 else
16219 # Is the header compilable?
16220 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
16221 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
16222 cat >conftest.$ac_ext <<_ACEOF
16223 /* confdefs.h. */
16224 _ACEOF
16225 cat confdefs.h >>conftest.$ac_ext
16226 cat >>conftest.$ac_ext <<_ACEOF
16227 /* end confdefs.h. */
16228 $ac_includes_default
16229 #include <malloc/malloc.h>
16230 _ACEOF
16231 rm -f conftest.$ac_objext
16232 if { (ac_try="$ac_compile"
16233 case "(($ac_try" in
16234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16235 *) ac_try_echo=$ac_try;;
16236 esac
16237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16238 $as_echo "$ac_try_echo") >&5
16239 (eval "$ac_compile") 2>conftest.er1
16240 ac_status=$?
16241 grep -v '^ *+' conftest.er1 >conftest.err
16242 rm -f conftest.er1
16243 cat conftest.err >&5
16244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245 (exit $ac_status); } && {
16246 test -z "$ac_c_werror_flag" ||
16247 test ! -s conftest.err
16248 } && test -s conftest.$ac_objext; then
16249 ac_header_compiler=yes
16250 else
16251 $as_echo "$as_me: failed program was:" >&5
16252 sed 's/^/| /' conftest.$ac_ext >&5
16253
16254 ac_header_compiler=no
16255 fi
16256
16257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16258 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16259 $as_echo "$ac_header_compiler" >&6; }
16260
16261 # Is the header present?
16262 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
16263 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
16264 cat >conftest.$ac_ext <<_ACEOF
16265 /* confdefs.h. */
16266 _ACEOF
16267 cat confdefs.h >>conftest.$ac_ext
16268 cat >>conftest.$ac_ext <<_ACEOF
16269 /* end confdefs.h. */
16270 #include <malloc/malloc.h>
16271 _ACEOF
16272 if { (ac_try="$ac_cpp conftest.$ac_ext"
16273 case "(($ac_try" in
16274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16275 *) ac_try_echo=$ac_try;;
16276 esac
16277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16278 $as_echo "$ac_try_echo") >&5
16279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16280 ac_status=$?
16281 grep -v '^ *+' conftest.er1 >conftest.err
16282 rm -f conftest.er1
16283 cat conftest.err >&5
16284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285 (exit $ac_status); } >/dev/null && {
16286 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16287 test ! -s conftest.err
16288 }; then
16289 ac_header_preproc=yes
16290 else
16291 $as_echo "$as_me: failed program was:" >&5
16292 sed 's/^/| /' conftest.$ac_ext >&5
16293
16294 ac_header_preproc=no
16295 fi
16296
16297 rm -f conftest.err conftest.$ac_ext
16298 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16299 $as_echo "$ac_header_preproc" >&6; }
16300
16301 # So? What about this header?
16302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16303 yes:no: )
16304 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
16305 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16306 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
16307 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
16308 ac_header_preproc=yes
16309 ;;
16310 no:yes:* )
16311 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
16312 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
16313 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
16314 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
16315 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
16316 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
16317 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
16318 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
16319 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
16320 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
16321 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
16322 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
16323
16324 ;;
16325 esac
16326 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16327 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16328 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16329 $as_echo_n "(cached) " >&6
16330 else
16331 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16332 fi
16333 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16334 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16335
16336 fi
16337 if test $ac_cv_header_malloc_malloc_h = yes; then
16338
16339 cat >>confdefs.h <<\_ACEOF
16340 #define HAVE_MALLOC_MALLOC_H 1
16341 _ACEOF
16342
16343 fi
16344
16345
16346
16347 C_SWITCH_X_SYSTEM=
16348 ### Use NeXTstep API to implement GUI.
16349 if test "${HAVE_NS}" = "yes"; then
16350
16351 cat >>confdefs.h <<\_ACEOF
16352 #define HAVE_NS 1
16353 _ACEOF
16354
16355 if test "${NS_IMPL_COCOA}" = "yes"; then
16356
16357 cat >>confdefs.h <<\_ACEOF
16358 #define NS_IMPL_COCOA 1
16359 _ACEOF
16360
16361 GNU_OBJC_CFLAGS=
16362 fi
16363 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16364
16365 cat >>confdefs.h <<\_ACEOF
16366 #define NS_IMPL_GNUSTEP 1
16367 _ACEOF
16368
16369 # See also .m.o rule in Makefile.in */
16370 # FIXME: are all these flags really needed? Document here why. */
16371 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
16372 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16373 fi
16374 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16375
16376 cat >>confdefs.h <<\_ACEOF
16377 #define NS_HAVE_NSINTEGER 1
16378 _ACEOF
16379
16380 fi
16381 # We also have mouse menus.
16382 HAVE_MENUS=yes
16383 OTHER_FILES=ns-app
16384 fi
16385
16386
16387 ### Use session management (-lSM -lICE) if available
16388 HAVE_X_SM=no
16389 LIBXSM=
16390 if test "${HAVE_X11}" = "yes"; then
16391 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16392 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16393 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16394 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16395 $as_echo_n "(cached) " >&6
16396 fi
16397 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16398 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16399 else
16400 # Is the header compilable?
16401 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16402 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16403 cat >conftest.$ac_ext <<_ACEOF
16404 /* confdefs.h. */
16405 _ACEOF
16406 cat confdefs.h >>conftest.$ac_ext
16407 cat >>conftest.$ac_ext <<_ACEOF
16408 /* end confdefs.h. */
16409 $ac_includes_default
16410 #include <X11/SM/SMlib.h>
16411 _ACEOF
16412 rm -f conftest.$ac_objext
16413 if { (ac_try="$ac_compile"
16414 case "(($ac_try" in
16415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16416 *) ac_try_echo=$ac_try;;
16417 esac
16418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16419 $as_echo "$ac_try_echo") >&5
16420 (eval "$ac_compile") 2>conftest.er1
16421 ac_status=$?
16422 grep -v '^ *+' conftest.er1 >conftest.err
16423 rm -f conftest.er1
16424 cat conftest.err >&5
16425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); } && {
16427 test -z "$ac_c_werror_flag" ||
16428 test ! -s conftest.err
16429 } && test -s conftest.$ac_objext; then
16430 ac_header_compiler=yes
16431 else
16432 $as_echo "$as_me: failed program was:" >&5
16433 sed 's/^/| /' conftest.$ac_ext >&5
16434
16435 ac_header_compiler=no
16436 fi
16437
16438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16439 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16440 $as_echo "$ac_header_compiler" >&6; }
16441
16442 # Is the header present?
16443 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16444 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16445 cat >conftest.$ac_ext <<_ACEOF
16446 /* confdefs.h. */
16447 _ACEOF
16448 cat confdefs.h >>conftest.$ac_ext
16449 cat >>conftest.$ac_ext <<_ACEOF
16450 /* end confdefs.h. */
16451 #include <X11/SM/SMlib.h>
16452 _ACEOF
16453 if { (ac_try="$ac_cpp conftest.$ac_ext"
16454 case "(($ac_try" in
16455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16456 *) ac_try_echo=$ac_try;;
16457 esac
16458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16459 $as_echo "$ac_try_echo") >&5
16460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16461 ac_status=$?
16462 grep -v '^ *+' conftest.er1 >conftest.err
16463 rm -f conftest.er1
16464 cat conftest.err >&5
16465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); } >/dev/null && {
16467 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16468 test ! -s conftest.err
16469 }; then
16470 ac_header_preproc=yes
16471 else
16472 $as_echo "$as_me: failed program was:" >&5
16473 sed 's/^/| /' conftest.$ac_ext >&5
16474
16475 ac_header_preproc=no
16476 fi
16477
16478 rm -f conftest.err conftest.$ac_ext
16479 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16480 $as_echo "$ac_header_preproc" >&6; }
16481
16482 # So? What about this header?
16483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16484 yes:no: )
16485 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16486 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16487 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16488 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16489 ac_header_preproc=yes
16490 ;;
16491 no:yes:* )
16492 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16493 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16494 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16495 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16496 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16497 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16498 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16499 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16500 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16501 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16502 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16503 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16504
16505 ;;
16506 esac
16507 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16508 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16509 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16510 $as_echo_n "(cached) " >&6
16511 else
16512 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16513 fi
16514 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16515 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16516
16517 fi
16518 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16519 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16520 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16521 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16522 $as_echo_n "(cached) " >&6
16523 else
16524 ac_check_lib_save_LIBS=$LIBS
16525 LIBS="-lSM -lICE $LIBS"
16526 cat >conftest.$ac_ext <<_ACEOF
16527 /* confdefs.h. */
16528 _ACEOF
16529 cat confdefs.h >>conftest.$ac_ext
16530 cat >>conftest.$ac_ext <<_ACEOF
16531 /* end confdefs.h. */
16532
16533 /* Override any GCC internal prototype to avoid an error.
16534 Use char because int might match the return type of a GCC
16535 builtin and then its argument prototype would still apply. */
16536 #ifdef __cplusplus
16537 extern "C"
16538 #endif
16539 char SmcOpenConnection ();
16540 int
16541 main ()
16542 {
16543 return SmcOpenConnection ();
16544 ;
16545 return 0;
16546 }
16547 _ACEOF
16548 rm -f conftest.$ac_objext conftest$ac_exeext
16549 if { (ac_try="$ac_link"
16550 case "(($ac_try" in
16551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16552 *) ac_try_echo=$ac_try;;
16553 esac
16554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16555 $as_echo "$ac_try_echo") >&5
16556 (eval "$ac_link") 2>conftest.er1
16557 ac_status=$?
16558 grep -v '^ *+' conftest.er1 >conftest.err
16559 rm -f conftest.er1
16560 cat conftest.err >&5
16561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562 (exit $ac_status); } && {
16563 test -z "$ac_c_werror_flag" ||
16564 test ! -s conftest.err
16565 } && test -s conftest$ac_exeext && {
16566 test "$cross_compiling" = yes ||
16567 $as_test_x conftest$ac_exeext
16568 }; then
16569 ac_cv_lib_SM_SmcOpenConnection=yes
16570 else
16571 $as_echo "$as_me: failed program was:" >&5
16572 sed 's/^/| /' conftest.$ac_ext >&5
16573
16574 ac_cv_lib_SM_SmcOpenConnection=no
16575 fi
16576
16577 rm -rf conftest.dSYM
16578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16579 conftest$ac_exeext conftest.$ac_ext
16580 LIBS=$ac_check_lib_save_LIBS
16581 fi
16582 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16583 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16584 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
16585 HAVE_X_SM=yes
16586 fi
16587
16588 fi
16589
16590
16591
16592 if test "${HAVE_X_SM}" = "yes"; then
16593
16594 cat >>confdefs.h <<\_ACEOF
16595 #define HAVE_X_SM 1
16596 _ACEOF
16597
16598 LIBXSM="-lSM -lICE"
16599 case "$LIBS" in
16600 *-lSM*) ;;
16601 *) LIBS="$LIBXSM $LIBS" ;;
16602 esac
16603 fi
16604 fi
16605
16606
16607 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16608 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16609 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16610 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16611 $as_echo_n "(cached) " >&6
16612 else
16613 cat >conftest.$ac_ext <<_ACEOF
16614 /* confdefs.h. */
16615 _ACEOF
16616 cat confdefs.h >>conftest.$ac_ext
16617 cat >>conftest.$ac_ext <<_ACEOF
16618 /* end confdefs.h. */
16619 #include <netdb.h>
16620 int
16621 main ()
16622 {
16623 return h_errno;
16624 ;
16625 return 0;
16626 }
16627 _ACEOF
16628 rm -f conftest.$ac_objext conftest$ac_exeext
16629 if { (ac_try="$ac_link"
16630 case "(($ac_try" in
16631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16632 *) ac_try_echo=$ac_try;;
16633 esac
16634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16635 $as_echo "$ac_try_echo") >&5
16636 (eval "$ac_link") 2>conftest.er1
16637 ac_status=$?
16638 grep -v '^ *+' conftest.er1 >conftest.err
16639 rm -f conftest.er1
16640 cat conftest.err >&5
16641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642 (exit $ac_status); } && {
16643 test -z "$ac_c_werror_flag" ||
16644 test ! -s conftest.err
16645 } && test -s conftest$ac_exeext && {
16646 test "$cross_compiling" = yes ||
16647 $as_test_x conftest$ac_exeext
16648 }; then
16649 emacs_cv_netdb_declares_h_errno=yes
16650 else
16651 $as_echo "$as_me: failed program was:" >&5
16652 sed 's/^/| /' conftest.$ac_ext >&5
16653
16654 emacs_cv_netdb_declares_h_errno=no
16655 fi
16656
16657 rm -rf conftest.dSYM
16658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16659 conftest$ac_exeext conftest.$ac_ext
16660 fi
16661 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16662 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16663 if test $emacs_cv_netdb_declares_h_errno = yes; then
16664
16665 cat >>confdefs.h <<\_ACEOF
16666 #define HAVE_H_ERRNO 1
16667 _ACEOF
16668
16669 fi
16670
16671 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16672 # for constant arguments. Useless!
16673 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16674 $as_echo_n "checking for working alloca.h... " >&6; }
16675 if test "${ac_cv_working_alloca_h+set}" = set; then
16676 $as_echo_n "(cached) " >&6
16677 else
16678 cat >conftest.$ac_ext <<_ACEOF
16679 /* confdefs.h. */
16680 _ACEOF
16681 cat confdefs.h >>conftest.$ac_ext
16682 cat >>conftest.$ac_ext <<_ACEOF
16683 /* end confdefs.h. */
16684 #include <alloca.h>
16685 int
16686 main ()
16687 {
16688 char *p = (char *) alloca (2 * sizeof (int));
16689 if (p) return 0;
16690 ;
16691 return 0;
16692 }
16693 _ACEOF
16694 rm -f conftest.$ac_objext conftest$ac_exeext
16695 if { (ac_try="$ac_link"
16696 case "(($ac_try" in
16697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16698 *) ac_try_echo=$ac_try;;
16699 esac
16700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16701 $as_echo "$ac_try_echo") >&5
16702 (eval "$ac_link") 2>conftest.er1
16703 ac_status=$?
16704 grep -v '^ *+' conftest.er1 >conftest.err
16705 rm -f conftest.er1
16706 cat conftest.err >&5
16707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); } && {
16709 test -z "$ac_c_werror_flag" ||
16710 test ! -s conftest.err
16711 } && test -s conftest$ac_exeext && {
16712 test "$cross_compiling" = yes ||
16713 $as_test_x conftest$ac_exeext
16714 }; then
16715 ac_cv_working_alloca_h=yes
16716 else
16717 $as_echo "$as_me: failed program was:" >&5
16718 sed 's/^/| /' conftest.$ac_ext >&5
16719
16720 ac_cv_working_alloca_h=no
16721 fi
16722
16723 rm -rf conftest.dSYM
16724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16725 conftest$ac_exeext conftest.$ac_ext
16726 fi
16727 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16728 $as_echo "$ac_cv_working_alloca_h" >&6; }
16729 if test $ac_cv_working_alloca_h = yes; then
16730
16731 cat >>confdefs.h <<\_ACEOF
16732 #define HAVE_ALLOCA_H 1
16733 _ACEOF
16734
16735 fi
16736
16737 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16738 $as_echo_n "checking for alloca... " >&6; }
16739 if test "${ac_cv_func_alloca_works+set}" = set; then
16740 $as_echo_n "(cached) " >&6
16741 else
16742 cat >conftest.$ac_ext <<_ACEOF
16743 /* confdefs.h. */
16744 _ACEOF
16745 cat confdefs.h >>conftest.$ac_ext
16746 cat >>conftest.$ac_ext <<_ACEOF
16747 /* end confdefs.h. */
16748 #ifdef __GNUC__
16749 # define alloca __builtin_alloca
16750 #else
16751 # ifdef _MSC_VER
16752 # include <malloc.h>
16753 # define alloca _alloca
16754 # else
16755 # ifdef HAVE_ALLOCA_H
16756 # include <alloca.h>
16757 # else
16758 # ifdef _AIX
16759 #pragma alloca
16760 # else
16761 # ifndef alloca /* predefined by HP cc +Olibcalls */
16762 char *alloca ();
16763 # endif
16764 # endif
16765 # endif
16766 # endif
16767 #endif
16768
16769 int
16770 main ()
16771 {
16772 char *p = (char *) alloca (1);
16773 if (p) return 0;
16774 ;
16775 return 0;
16776 }
16777 _ACEOF
16778 rm -f conftest.$ac_objext conftest$ac_exeext
16779 if { (ac_try="$ac_link"
16780 case "(($ac_try" in
16781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16782 *) ac_try_echo=$ac_try;;
16783 esac
16784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16785 $as_echo "$ac_try_echo") >&5
16786 (eval "$ac_link") 2>conftest.er1
16787 ac_status=$?
16788 grep -v '^ *+' conftest.er1 >conftest.err
16789 rm -f conftest.er1
16790 cat conftest.err >&5
16791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792 (exit $ac_status); } && {
16793 test -z "$ac_c_werror_flag" ||
16794 test ! -s conftest.err
16795 } && test -s conftest$ac_exeext && {
16796 test "$cross_compiling" = yes ||
16797 $as_test_x conftest$ac_exeext
16798 }; then
16799 ac_cv_func_alloca_works=yes
16800 else
16801 $as_echo "$as_me: failed program was:" >&5
16802 sed 's/^/| /' conftest.$ac_ext >&5
16803
16804 ac_cv_func_alloca_works=no
16805 fi
16806
16807 rm -rf conftest.dSYM
16808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16809 conftest$ac_exeext conftest.$ac_ext
16810 fi
16811 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16812 $as_echo "$ac_cv_func_alloca_works" >&6; }
16813
16814 if test $ac_cv_func_alloca_works = yes; then
16815
16816 cat >>confdefs.h <<\_ACEOF
16817 #define HAVE_ALLOCA 1
16818 _ACEOF
16819
16820 else
16821 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16822 # that cause trouble. Some versions do not even contain alloca or
16823 # contain a buggy version. If you still want to use their alloca,
16824 # use ar to extract alloca.o from them instead of compiling alloca.c.
16825
16826 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16827
16828 cat >>confdefs.h <<\_ACEOF
16829 #define C_ALLOCA 1
16830 _ACEOF
16831
16832
16833 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16834 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16835 if test "${ac_cv_os_cray+set}" = set; then
16836 $as_echo_n "(cached) " >&6
16837 else
16838 cat >conftest.$ac_ext <<_ACEOF
16839 /* confdefs.h. */
16840 _ACEOF
16841 cat confdefs.h >>conftest.$ac_ext
16842 cat >>conftest.$ac_ext <<_ACEOF
16843 /* end confdefs.h. */
16844 #if defined CRAY && ! defined CRAY2
16845 webecray
16846 #else
16847 wenotbecray
16848 #endif
16849
16850 _ACEOF
16851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16852 $EGREP "webecray" >/dev/null 2>&1; then
16853 ac_cv_os_cray=yes
16854 else
16855 ac_cv_os_cray=no
16856 fi
16857 rm -f conftest*
16858
16859 fi
16860 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16861 $as_echo "$ac_cv_os_cray" >&6; }
16862 if test $ac_cv_os_cray = yes; then
16863 for ac_func in _getb67 GETB67 getb67; do
16864 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16865 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16866 $as_echo_n "checking for $ac_func... " >&6; }
16867 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16868 $as_echo_n "(cached) " >&6
16869 else
16870 cat >conftest.$ac_ext <<_ACEOF
16871 /* confdefs.h. */
16872 _ACEOF
16873 cat confdefs.h >>conftest.$ac_ext
16874 cat >>conftest.$ac_ext <<_ACEOF
16875 /* end confdefs.h. */
16876 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16878 #define $ac_func innocuous_$ac_func
16879
16880 /* System header to define __stub macros and hopefully few prototypes,
16881 which can conflict with char $ac_func (); below.
16882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16883 <limits.h> exists even on freestanding compilers. */
16884
16885 #ifdef __STDC__
16886 # include <limits.h>
16887 #else
16888 # include <assert.h>
16889 #endif
16890
16891 #undef $ac_func
16892
16893 /* Override any GCC internal prototype to avoid an error.
16894 Use char because int might match the return type of a GCC
16895 builtin and then its argument prototype would still apply. */
16896 #ifdef __cplusplus
16897 extern "C"
16898 #endif
16899 char $ac_func ();
16900 /* The GNU C library defines this for functions which it implements
16901 to always fail with ENOSYS. Some functions are actually named
16902 something starting with __ and the normal name is an alias. */
16903 #if defined __stub_$ac_func || defined __stub___$ac_func
16904 choke me
16905 #endif
16906
16907 int
16908 main ()
16909 {
16910 return $ac_func ();
16911 ;
16912 return 0;
16913 }
16914 _ACEOF
16915 rm -f conftest.$ac_objext conftest$ac_exeext
16916 if { (ac_try="$ac_link"
16917 case "(($ac_try" in
16918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16919 *) ac_try_echo=$ac_try;;
16920 esac
16921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16922 $as_echo "$ac_try_echo") >&5
16923 (eval "$ac_link") 2>conftest.er1
16924 ac_status=$?
16925 grep -v '^ *+' conftest.er1 >conftest.err
16926 rm -f conftest.er1
16927 cat conftest.err >&5
16928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); } && {
16930 test -z "$ac_c_werror_flag" ||
16931 test ! -s conftest.err
16932 } && test -s conftest$ac_exeext && {
16933 test "$cross_compiling" = yes ||
16934 $as_test_x conftest$ac_exeext
16935 }; then
16936 eval "$as_ac_var=yes"
16937 else
16938 $as_echo "$as_me: failed program was:" >&5
16939 sed 's/^/| /' conftest.$ac_ext >&5
16940
16941 eval "$as_ac_var=no"
16942 fi
16943
16944 rm -rf conftest.dSYM
16945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16946 conftest$ac_exeext conftest.$ac_ext
16947 fi
16948 ac_res=`eval 'as_val=${'$as_ac_var'}
16949 $as_echo "$as_val"'`
16950 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16951 $as_echo "$ac_res" >&6; }
16952 if test `eval 'as_val=${'$as_ac_var'}
16953 $as_echo "$as_val"'` = yes; then
16954
16955 cat >>confdefs.h <<_ACEOF
16956 #define CRAY_STACKSEG_END $ac_func
16957 _ACEOF
16958
16959 break
16960 fi
16961
16962 done
16963 fi
16964
16965 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16966 $as_echo_n "checking stack direction for C alloca... " >&6; }
16967 if test "${ac_cv_c_stack_direction+set}" = set; then
16968 $as_echo_n "(cached) " >&6
16969 else
16970 if test "$cross_compiling" = yes; then
16971 ac_cv_c_stack_direction=0
16972 else
16973 cat >conftest.$ac_ext <<_ACEOF
16974 /* confdefs.h. */
16975 _ACEOF
16976 cat confdefs.h >>conftest.$ac_ext
16977 cat >>conftest.$ac_ext <<_ACEOF
16978 /* end confdefs.h. */
16979 $ac_includes_default
16980 int
16981 find_stack_direction ()
16982 {
16983 static char *addr = 0;
16984 auto char dummy;
16985 if (addr == 0)
16986 {
16987 addr = &dummy;
16988 return find_stack_direction ();
16989 }
16990 else
16991 return (&dummy > addr) ? 1 : -1;
16992 }
16993
16994 int
16995 main ()
16996 {
16997 return find_stack_direction () < 0;
16998 }
16999 _ACEOF
17000 rm -f conftest$ac_exeext
17001 if { (ac_try="$ac_link"
17002 case "(($ac_try" in
17003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17004 *) ac_try_echo=$ac_try;;
17005 esac
17006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17007 $as_echo "$ac_try_echo") >&5
17008 (eval "$ac_link") 2>&5
17009 ac_status=$?
17010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17012 { (case "(($ac_try" in
17013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17014 *) ac_try_echo=$ac_try;;
17015 esac
17016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17017 $as_echo "$ac_try_echo") >&5
17018 (eval "$ac_try") 2>&5
17019 ac_status=$?
17020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); }; }; then
17022 ac_cv_c_stack_direction=1
17023 else
17024 $as_echo "$as_me: program exited with status $ac_status" >&5
17025 $as_echo "$as_me: failed program was:" >&5
17026 sed 's/^/| /' conftest.$ac_ext >&5
17027
17028 ( exit $ac_status )
17029 ac_cv_c_stack_direction=-1
17030 fi
17031 rm -rf conftest.dSYM
17032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17033 fi
17034
17035
17036 fi
17037 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17038 $as_echo "$ac_cv_c_stack_direction" >&6; }
17039
17040 cat >>confdefs.h <<_ACEOF
17041 #define STACK_DIRECTION $ac_cv_c_stack_direction
17042 _ACEOF
17043
17044
17045 fi
17046
17047
17048 if test x"$ac_cv_func_alloca_works" != xyes; then
17049 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
17050 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
17051 { (exit 1); exit 1; }; }
17052 fi
17053
17054 # fmod, logb, and frexp are found in -lm on most systems.
17055 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
17056
17057 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
17058 $as_echo_n "checking for sqrt in -lm... " >&6; }
17059 if test "${ac_cv_lib_m_sqrt+set}" = set; then
17060 $as_echo_n "(cached) " >&6
17061 else
17062 ac_check_lib_save_LIBS=$LIBS
17063 LIBS="-lm $LIBS"
17064 cat >conftest.$ac_ext <<_ACEOF
17065 /* confdefs.h. */
17066 _ACEOF
17067 cat confdefs.h >>conftest.$ac_ext
17068 cat >>conftest.$ac_ext <<_ACEOF
17069 /* end confdefs.h. */
17070
17071 /* Override any GCC internal prototype to avoid an error.
17072 Use char because int might match the return type of a GCC
17073 builtin and then its argument prototype would still apply. */
17074 #ifdef __cplusplus
17075 extern "C"
17076 #endif
17077 char sqrt ();
17078 int
17079 main ()
17080 {
17081 return sqrt ();
17082 ;
17083 return 0;
17084 }
17085 _ACEOF
17086 rm -f conftest.$ac_objext conftest$ac_exeext
17087 if { (ac_try="$ac_link"
17088 case "(($ac_try" in
17089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17090 *) ac_try_echo=$ac_try;;
17091 esac
17092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17093 $as_echo "$ac_try_echo") >&5
17094 (eval "$ac_link") 2>conftest.er1
17095 ac_status=$?
17096 grep -v '^ *+' conftest.er1 >conftest.err
17097 rm -f conftest.er1
17098 cat conftest.err >&5
17099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); } && {
17101 test -z "$ac_c_werror_flag" ||
17102 test ! -s conftest.err
17103 } && test -s conftest$ac_exeext && {
17104 test "$cross_compiling" = yes ||
17105 $as_test_x conftest$ac_exeext
17106 }; then
17107 ac_cv_lib_m_sqrt=yes
17108 else
17109 $as_echo "$as_me: failed program was:" >&5
17110 sed 's/^/| /' conftest.$ac_ext >&5
17111
17112 ac_cv_lib_m_sqrt=no
17113 fi
17114
17115 rm -rf conftest.dSYM
17116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17117 conftest$ac_exeext conftest.$ac_ext
17118 LIBS=$ac_check_lib_save_LIBS
17119 fi
17120 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
17121 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
17122 if test $ac_cv_lib_m_sqrt = yes; then
17123 cat >>confdefs.h <<_ACEOF
17124 #define HAVE_LIBM 1
17125 _ACEOF
17126
17127 LIBS="-lm $LIBS"
17128
17129 fi
17130
17131
17132 # Check for mail-locking functions in a "mail" library. Probably this should
17133 # have the same check as for liblockfile below.
17134 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
17135 $as_echo_n "checking for maillock in -lmail... " >&6; }
17136 if test "${ac_cv_lib_mail_maillock+set}" = set; then
17137 $as_echo_n "(cached) " >&6
17138 else
17139 ac_check_lib_save_LIBS=$LIBS
17140 LIBS="-lmail $LIBS"
17141 cat >conftest.$ac_ext <<_ACEOF
17142 /* confdefs.h. */
17143 _ACEOF
17144 cat confdefs.h >>conftest.$ac_ext
17145 cat >>conftest.$ac_ext <<_ACEOF
17146 /* end confdefs.h. */
17147
17148 /* Override any GCC internal prototype to avoid an error.
17149 Use char because int might match the return type of a GCC
17150 builtin and then its argument prototype would still apply. */
17151 #ifdef __cplusplus
17152 extern "C"
17153 #endif
17154 char maillock ();
17155 int
17156 main ()
17157 {
17158 return maillock ();
17159 ;
17160 return 0;
17161 }
17162 _ACEOF
17163 rm -f conftest.$ac_objext conftest$ac_exeext
17164 if { (ac_try="$ac_link"
17165 case "(($ac_try" in
17166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17167 *) ac_try_echo=$ac_try;;
17168 esac
17169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17170 $as_echo "$ac_try_echo") >&5
17171 (eval "$ac_link") 2>conftest.er1
17172 ac_status=$?
17173 grep -v '^ *+' conftest.er1 >conftest.err
17174 rm -f conftest.er1
17175 cat conftest.err >&5
17176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); } && {
17178 test -z "$ac_c_werror_flag" ||
17179 test ! -s conftest.err
17180 } && test -s conftest$ac_exeext && {
17181 test "$cross_compiling" = yes ||
17182 $as_test_x conftest$ac_exeext
17183 }; then
17184 ac_cv_lib_mail_maillock=yes
17185 else
17186 $as_echo "$as_me: failed program was:" >&5
17187 sed 's/^/| /' conftest.$ac_ext >&5
17188
17189 ac_cv_lib_mail_maillock=no
17190 fi
17191
17192 rm -rf conftest.dSYM
17193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17194 conftest$ac_exeext conftest.$ac_ext
17195 LIBS=$ac_check_lib_save_LIBS
17196 fi
17197 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
17198 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
17199 if test $ac_cv_lib_mail_maillock = yes; then
17200 have_mail=yes
17201 else
17202 have_mail=no
17203 fi
17204
17205 if test $have_mail = yes; then
17206 LIBS_MAIL=-lmail
17207 LIBS="$LIBS_MAIL $LIBS"
17208
17209 cat >>confdefs.h <<\_ACEOF
17210 #define HAVE_LIBMAIL 1
17211 _ACEOF
17212
17213 else
17214 LIBS_MAIL=
17215 fi
17216 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
17217 $as_echo_n "checking for maillock in -llockfile... " >&6; }
17218 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
17219 $as_echo_n "(cached) " >&6
17220 else
17221 ac_check_lib_save_LIBS=$LIBS
17222 LIBS="-llockfile $LIBS"
17223 cat >conftest.$ac_ext <<_ACEOF
17224 /* confdefs.h. */
17225 _ACEOF
17226 cat confdefs.h >>conftest.$ac_ext
17227 cat >>conftest.$ac_ext <<_ACEOF
17228 /* end confdefs.h. */
17229
17230 /* Override any GCC internal prototype to avoid an error.
17231 Use char because int might match the return type of a GCC
17232 builtin and then its argument prototype would still apply. */
17233 #ifdef __cplusplus
17234 extern "C"
17235 #endif
17236 char maillock ();
17237 int
17238 main ()
17239 {
17240 return maillock ();
17241 ;
17242 return 0;
17243 }
17244 _ACEOF
17245 rm -f conftest.$ac_objext conftest$ac_exeext
17246 if { (ac_try="$ac_link"
17247 case "(($ac_try" in
17248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17249 *) ac_try_echo=$ac_try;;
17250 esac
17251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17252 $as_echo "$ac_try_echo") >&5
17253 (eval "$ac_link") 2>conftest.er1
17254 ac_status=$?
17255 grep -v '^ *+' conftest.er1 >conftest.err
17256 rm -f conftest.er1
17257 cat conftest.err >&5
17258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); } && {
17260 test -z "$ac_c_werror_flag" ||
17261 test ! -s conftest.err
17262 } && test -s conftest$ac_exeext && {
17263 test "$cross_compiling" = yes ||
17264 $as_test_x conftest$ac_exeext
17265 }; then
17266 ac_cv_lib_lockfile_maillock=yes
17267 else
17268 $as_echo "$as_me: failed program was:" >&5
17269 sed 's/^/| /' conftest.$ac_ext >&5
17270
17271 ac_cv_lib_lockfile_maillock=no
17272 fi
17273
17274 rm -rf conftest.dSYM
17275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17276 conftest$ac_exeext conftest.$ac_ext
17277 LIBS=$ac_check_lib_save_LIBS
17278 fi
17279 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
17280 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
17281 if test $ac_cv_lib_lockfile_maillock = yes; then
17282 have_lockfile=yes
17283 else
17284 have_lockfile=no
17285 fi
17286
17287 if test $have_lockfile = yes; then
17288 LIBS_MAIL=-llockfile
17289 LIBS="$LIBS_MAIL $LIBS"
17290
17291 cat >>confdefs.h <<\_ACEOF
17292 #define HAVE_LIBLOCKFILE 1
17293 _ACEOF
17294
17295 else
17296 # If we have the shared liblockfile, assume we must use it for mail
17297 # locking (e.g. Debian). If we couldn't link against liblockfile
17298 # (no liblockfile.a installed), ensure that we don't need to.
17299 # Extract the first word of "liblockfile.so", so it can be a program name with args.
17300 set dummy liblockfile.so; ac_word=$2
17301 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17302 $as_echo_n "checking for $ac_word... " >&6; }
17303 if test "${ac_cv_prog_liblockfile+set}" = set; then
17304 $as_echo_n "(cached) " >&6
17305 else
17306 if test -n "$liblockfile"; then
17307 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
17308 else
17309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17310 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
17311 for as_dir in $as_dummy
17312 do
17313 IFS=$as_save_IFS
17314 test -z "$as_dir" && as_dir=.
17315 for ac_exec_ext in '' $ac_executable_extensions; do
17316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17317 ac_cv_prog_liblockfile="yes"
17318 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17319 break 2
17320 fi
17321 done
17322 done
17323 IFS=$as_save_IFS
17324
17325 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
17326 fi
17327 fi
17328 liblockfile=$ac_cv_prog_liblockfile
17329 if test -n "$liblockfile"; then
17330 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
17331 $as_echo "$liblockfile" >&6; }
17332 else
17333 { $as_echo "$as_me:$LINENO: result: no" >&5
17334 $as_echo "no" >&6; }
17335 fi
17336
17337
17338 if test $ac_cv_prog_liblockfile = yes; then
17339 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
17340 This probably means that movemail could lose mail.
17341 There may be a \`development' package to install containing liblockfile." >&5
17342 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
17343 This probably means that movemail could lose mail.
17344 There may be a \`development' package to install containing liblockfile." >&2;}
17345 { (exit 1); exit 1; }; }
17346 fi
17347 fi
17348
17349 for ac_func in touchlock
17350 do
17351 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17352 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17353 $as_echo_n "checking for $ac_func... " >&6; }
17354 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17355 $as_echo_n "(cached) " >&6
17356 else
17357 cat >conftest.$ac_ext <<_ACEOF
17358 /* confdefs.h. */
17359 _ACEOF
17360 cat confdefs.h >>conftest.$ac_ext
17361 cat >>conftest.$ac_ext <<_ACEOF
17362 /* end confdefs.h. */
17363 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17365 #define $ac_func innocuous_$ac_func
17366
17367 /* System header to define __stub macros and hopefully few prototypes,
17368 which can conflict with char $ac_func (); below.
17369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17370 <limits.h> exists even on freestanding compilers. */
17371
17372 #ifdef __STDC__
17373 # include <limits.h>
17374 #else
17375 # include <assert.h>
17376 #endif
17377
17378 #undef $ac_func
17379
17380 /* Override any GCC internal prototype to avoid an error.
17381 Use char because int might match the return type of a GCC
17382 builtin and then its argument prototype would still apply. */
17383 #ifdef __cplusplus
17384 extern "C"
17385 #endif
17386 char $ac_func ();
17387 /* The GNU C library defines this for functions which it implements
17388 to always fail with ENOSYS. Some functions are actually named
17389 something starting with __ and the normal name is an alias. */
17390 #if defined __stub_$ac_func || defined __stub___$ac_func
17391 choke me
17392 #endif
17393
17394 int
17395 main ()
17396 {
17397 return $ac_func ();
17398 ;
17399 return 0;
17400 }
17401 _ACEOF
17402 rm -f conftest.$ac_objext conftest$ac_exeext
17403 if { (ac_try="$ac_link"
17404 case "(($ac_try" in
17405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17406 *) ac_try_echo=$ac_try;;
17407 esac
17408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17409 $as_echo "$ac_try_echo") >&5
17410 (eval "$ac_link") 2>conftest.er1
17411 ac_status=$?
17412 grep -v '^ *+' conftest.er1 >conftest.err
17413 rm -f conftest.er1
17414 cat conftest.err >&5
17415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); } && {
17417 test -z "$ac_c_werror_flag" ||
17418 test ! -s conftest.err
17419 } && test -s conftest$ac_exeext && {
17420 test "$cross_compiling" = yes ||
17421 $as_test_x conftest$ac_exeext
17422 }; then
17423 eval "$as_ac_var=yes"
17424 else
17425 $as_echo "$as_me: failed program was:" >&5
17426 sed 's/^/| /' conftest.$ac_ext >&5
17427
17428 eval "$as_ac_var=no"
17429 fi
17430
17431 rm -rf conftest.dSYM
17432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17433 conftest$ac_exeext conftest.$ac_ext
17434 fi
17435 ac_res=`eval 'as_val=${'$as_ac_var'}
17436 $as_echo "$as_val"'`
17437 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17438 $as_echo "$ac_res" >&6; }
17439 if test `eval 'as_val=${'$as_ac_var'}
17440 $as_echo "$as_val"'` = yes; then
17441 cat >>confdefs.h <<_ACEOF
17442 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17443 _ACEOF
17444
17445 fi
17446 done
17447
17448
17449 for ac_header in maillock.h
17450 do
17451 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17453 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17454 $as_echo_n "checking for $ac_header... " >&6; }
17455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17456 $as_echo_n "(cached) " >&6
17457 fi
17458 ac_res=`eval 'as_val=${'$as_ac_Header'}
17459 $as_echo "$as_val"'`
17460 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17461 $as_echo "$ac_res" >&6; }
17462 else
17463 # Is the header compilable?
17464 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17465 $as_echo_n "checking $ac_header usability... " >&6; }
17466 cat >conftest.$ac_ext <<_ACEOF
17467 /* confdefs.h. */
17468 _ACEOF
17469 cat confdefs.h >>conftest.$ac_ext
17470 cat >>conftest.$ac_ext <<_ACEOF
17471 /* end confdefs.h. */
17472 $ac_includes_default
17473 #include <$ac_header>
17474 _ACEOF
17475 rm -f conftest.$ac_objext
17476 if { (ac_try="$ac_compile"
17477 case "(($ac_try" in
17478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17479 *) ac_try_echo=$ac_try;;
17480 esac
17481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17482 $as_echo "$ac_try_echo") >&5
17483 (eval "$ac_compile") 2>conftest.er1
17484 ac_status=$?
17485 grep -v '^ *+' conftest.er1 >conftest.err
17486 rm -f conftest.er1
17487 cat conftest.err >&5
17488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); } && {
17490 test -z "$ac_c_werror_flag" ||
17491 test ! -s conftest.err
17492 } && test -s conftest.$ac_objext; then
17493 ac_header_compiler=yes
17494 else
17495 $as_echo "$as_me: failed program was:" >&5
17496 sed 's/^/| /' conftest.$ac_ext >&5
17497
17498 ac_header_compiler=no
17499 fi
17500
17501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17502 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17503 $as_echo "$ac_header_compiler" >&6; }
17504
17505 # Is the header present?
17506 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17507 $as_echo_n "checking $ac_header presence... " >&6; }
17508 cat >conftest.$ac_ext <<_ACEOF
17509 /* confdefs.h. */
17510 _ACEOF
17511 cat confdefs.h >>conftest.$ac_ext
17512 cat >>conftest.$ac_ext <<_ACEOF
17513 /* end confdefs.h. */
17514 #include <$ac_header>
17515 _ACEOF
17516 if { (ac_try="$ac_cpp conftest.$ac_ext"
17517 case "(($ac_try" in
17518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17519 *) ac_try_echo=$ac_try;;
17520 esac
17521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17522 $as_echo "$ac_try_echo") >&5
17523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17524 ac_status=$?
17525 grep -v '^ *+' conftest.er1 >conftest.err
17526 rm -f conftest.er1
17527 cat conftest.err >&5
17528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); } >/dev/null && {
17530 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17531 test ! -s conftest.err
17532 }; then
17533 ac_header_preproc=yes
17534 else
17535 $as_echo "$as_me: failed program was:" >&5
17536 sed 's/^/| /' conftest.$ac_ext >&5
17537
17538 ac_header_preproc=no
17539 fi
17540
17541 rm -f conftest.err conftest.$ac_ext
17542 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17543 $as_echo "$ac_header_preproc" >&6; }
17544
17545 # So? What about this header?
17546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17547 yes:no: )
17548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17549 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17550 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17551 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17552 ac_header_preproc=yes
17553 ;;
17554 no:yes:* )
17555 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17556 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17558 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17559 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17560 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17561 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17562 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17563 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17564 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17565 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17566 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17567
17568 ;;
17569 esac
17570 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17571 $as_echo_n "checking for $ac_header... " >&6; }
17572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17573 $as_echo_n "(cached) " >&6
17574 else
17575 eval "$as_ac_Header=\$ac_header_preproc"
17576 fi
17577 ac_res=`eval 'as_val=${'$as_ac_Header'}
17578 $as_echo "$as_val"'`
17579 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17580 $as_echo "$ac_res" >&6; }
17581
17582 fi
17583 if test `eval 'as_val=${'$as_ac_Header'}
17584 $as_echo "$as_val"'` = yes; then
17585 cat >>confdefs.h <<_ACEOF
17586 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17587 _ACEOF
17588
17589 fi
17590
17591 done
17592
17593
17594
17595 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
17596 ## interlock access to the mail spool. The alternative is a lock file named
17597 ## /usr/spool/mail/$USER.lock.
17598 mail_lock=no
17599 case "$opsys" in
17600 aix4-2) mail_lock="lockf" ;;
17601
17602 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
17603
17604 ## On GNU/Linux systems, both methods are used by various mail programs.
17605 ## I assume most people are using newer mailers that have heard of flock.
17606 ## Change this if you need to.
17607 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
17608 ## configure gets the right answers, and that means *NOT* using flock.
17609 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
17610 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
17611 ## Debian maintainer hasn't provided a clean fix for Emacs.
17612 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
17613 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
17614 ## correct logic. -- fx
17615 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
17616 ## liblockfile is a Free Software replacement for libmail, used on
17617 ## Debian systems and elsewhere. -rfr.
17618 gnu-*)
17619 mail_lock="flock"
17620 if test $have_mail = yes || test $have_lockfile = yes; then
17621 test $ac_cv_header_maillock_h = yes && mail_lock=no
17622 fi
17623 ;;
17624 esac
17625
17626 BLESSMAIL_TARGET=
17627 case "$mail_lock" in
17628 flock)
17629 cat >>confdefs.h <<\_ACEOF
17630 #define MAIL_USE_FLOCK 1
17631 _ACEOF
17632 ;;
17633
17634 lockf)
17635 cat >>confdefs.h <<\_ACEOF
17636 #define MAIL_USE_LOCKF 1
17637 _ACEOF
17638 ;;
17639
17640 *) BLESSMAIL_TARGET="need-blessmail" ;;
17641 esac
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
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 for ac_func in gethostname getdomainname dup2 \
17719 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17720 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17721 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17722 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17723 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17724 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17725 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17726 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17727 cfmakeraw cfsetspeed isnan copysign
17728 do
17729 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17730 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17731 $as_echo_n "checking for $ac_func... " >&6; }
17732 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17733 $as_echo_n "(cached) " >&6
17734 else
17735 cat >conftest.$ac_ext <<_ACEOF
17736 /* confdefs.h. */
17737 _ACEOF
17738 cat confdefs.h >>conftest.$ac_ext
17739 cat >>conftest.$ac_ext <<_ACEOF
17740 /* end confdefs.h. */
17741 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17743 #define $ac_func innocuous_$ac_func
17744
17745 /* System header to define __stub macros and hopefully few prototypes,
17746 which can conflict with char $ac_func (); below.
17747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17748 <limits.h> exists even on freestanding compilers. */
17749
17750 #ifdef __STDC__
17751 # include <limits.h>
17752 #else
17753 # include <assert.h>
17754 #endif
17755
17756 #undef $ac_func
17757
17758 /* Override any GCC internal prototype to avoid an error.
17759 Use char because int might match the return type of a GCC
17760 builtin and then its argument prototype would still apply. */
17761 #ifdef __cplusplus
17762 extern "C"
17763 #endif
17764 char $ac_func ();
17765 /* The GNU C library defines this for functions which it implements
17766 to always fail with ENOSYS. Some functions are actually named
17767 something starting with __ and the normal name is an alias. */
17768 #if defined __stub_$ac_func || defined __stub___$ac_func
17769 choke me
17770 #endif
17771
17772 int
17773 main ()
17774 {
17775 return $ac_func ();
17776 ;
17777 return 0;
17778 }
17779 _ACEOF
17780 rm -f conftest.$ac_objext conftest$ac_exeext
17781 if { (ac_try="$ac_link"
17782 case "(($ac_try" in
17783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17784 *) ac_try_echo=$ac_try;;
17785 esac
17786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17787 $as_echo "$ac_try_echo") >&5
17788 (eval "$ac_link") 2>conftest.er1
17789 ac_status=$?
17790 grep -v '^ *+' conftest.er1 >conftest.err
17791 rm -f conftest.er1
17792 cat conftest.err >&5
17793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794 (exit $ac_status); } && {
17795 test -z "$ac_c_werror_flag" ||
17796 test ! -s conftest.err
17797 } && test -s conftest$ac_exeext && {
17798 test "$cross_compiling" = yes ||
17799 $as_test_x conftest$ac_exeext
17800 }; then
17801 eval "$as_ac_var=yes"
17802 else
17803 $as_echo "$as_me: failed program was:" >&5
17804 sed 's/^/| /' conftest.$ac_ext >&5
17805
17806 eval "$as_ac_var=no"
17807 fi
17808
17809 rm -rf conftest.dSYM
17810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17811 conftest$ac_exeext conftest.$ac_ext
17812 fi
17813 ac_res=`eval 'as_val=${'$as_ac_var'}
17814 $as_echo "$as_val"'`
17815 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17816 $as_echo "$ac_res" >&6; }
17817 if test `eval 'as_val=${'$as_ac_var'}
17818 $as_echo "$as_val"'` = yes; then
17819 cat >>confdefs.h <<_ACEOF
17820 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17821 _ACEOF
17822
17823 fi
17824 done
17825
17826
17827
17828 for ac_header in sys/un.h
17829 do
17830 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17832 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17833 $as_echo_n "checking for $ac_header... " >&6; }
17834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17835 $as_echo_n "(cached) " >&6
17836 fi
17837 ac_res=`eval 'as_val=${'$as_ac_Header'}
17838 $as_echo "$as_val"'`
17839 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17840 $as_echo "$ac_res" >&6; }
17841 else
17842 # Is the header compilable?
17843 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17844 $as_echo_n "checking $ac_header usability... " >&6; }
17845 cat >conftest.$ac_ext <<_ACEOF
17846 /* confdefs.h. */
17847 _ACEOF
17848 cat confdefs.h >>conftest.$ac_ext
17849 cat >>conftest.$ac_ext <<_ACEOF
17850 /* end confdefs.h. */
17851 $ac_includes_default
17852 #include <$ac_header>
17853 _ACEOF
17854 rm -f conftest.$ac_objext
17855 if { (ac_try="$ac_compile"
17856 case "(($ac_try" in
17857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858 *) ac_try_echo=$ac_try;;
17859 esac
17860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17861 $as_echo "$ac_try_echo") >&5
17862 (eval "$ac_compile") 2>conftest.er1
17863 ac_status=$?
17864 grep -v '^ *+' conftest.er1 >conftest.err
17865 rm -f conftest.er1
17866 cat conftest.err >&5
17867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); } && {
17869 test -z "$ac_c_werror_flag" ||
17870 test ! -s conftest.err
17871 } && test -s conftest.$ac_objext; then
17872 ac_header_compiler=yes
17873 else
17874 $as_echo "$as_me: failed program was:" >&5
17875 sed 's/^/| /' conftest.$ac_ext >&5
17876
17877 ac_header_compiler=no
17878 fi
17879
17880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17881 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17882 $as_echo "$ac_header_compiler" >&6; }
17883
17884 # Is the header present?
17885 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17886 $as_echo_n "checking $ac_header presence... " >&6; }
17887 cat >conftest.$ac_ext <<_ACEOF
17888 /* confdefs.h. */
17889 _ACEOF
17890 cat confdefs.h >>conftest.$ac_ext
17891 cat >>conftest.$ac_ext <<_ACEOF
17892 /* end confdefs.h. */
17893 #include <$ac_header>
17894 _ACEOF
17895 if { (ac_try="$ac_cpp conftest.$ac_ext"
17896 case "(($ac_try" in
17897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17898 *) ac_try_echo=$ac_try;;
17899 esac
17900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17901 $as_echo "$ac_try_echo") >&5
17902 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17903 ac_status=$?
17904 grep -v '^ *+' conftest.er1 >conftest.err
17905 rm -f conftest.er1
17906 cat conftest.err >&5
17907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); } >/dev/null && {
17909 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17910 test ! -s conftest.err
17911 }; then
17912 ac_header_preproc=yes
17913 else
17914 $as_echo "$as_me: failed program was:" >&5
17915 sed 's/^/| /' conftest.$ac_ext >&5
17916
17917 ac_header_preproc=no
17918 fi
17919
17920 rm -f conftest.err conftest.$ac_ext
17921 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17922 $as_echo "$ac_header_preproc" >&6; }
17923
17924 # So? What about this header?
17925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17926 yes:no: )
17927 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17928 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17929 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17930 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17931 ac_header_preproc=yes
17932 ;;
17933 no:yes:* )
17934 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17935 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17936 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17937 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17938 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17939 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17940 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17941 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17942 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17943 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17944 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17945 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17946
17947 ;;
17948 esac
17949 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17950 $as_echo_n "checking for $ac_header... " >&6; }
17951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17952 $as_echo_n "(cached) " >&6
17953 else
17954 eval "$as_ac_Header=\$ac_header_preproc"
17955 fi
17956 ac_res=`eval 'as_val=${'$as_ac_Header'}
17957 $as_echo "$as_val"'`
17958 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17959 $as_echo "$ac_res" >&6; }
17960
17961 fi
17962 if test `eval 'as_val=${'$as_ac_Header'}
17963 $as_echo "$as_val"'` = yes; then
17964 cat >>confdefs.h <<_ACEOF
17965 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17966 _ACEOF
17967
17968 fi
17969
17970 done
17971
17972
17973
17974
17975
17976
17977 for ac_header in $ac_header_list
17978 do
17979 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17981 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17982 $as_echo_n "checking for $ac_header... " >&6; }
17983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17984 $as_echo_n "(cached) " >&6
17985 fi
17986 ac_res=`eval 'as_val=${'$as_ac_Header'}
17987 $as_echo "$as_val"'`
17988 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17989 $as_echo "$ac_res" >&6; }
17990 else
17991 # Is the header compilable?
17992 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17993 $as_echo_n "checking $ac_header usability... " >&6; }
17994 cat >conftest.$ac_ext <<_ACEOF
17995 /* confdefs.h. */
17996 _ACEOF
17997 cat confdefs.h >>conftest.$ac_ext
17998 cat >>conftest.$ac_ext <<_ACEOF
17999 /* end confdefs.h. */
18000 $ac_includes_default
18001 #include <$ac_header>
18002 _ACEOF
18003 rm -f conftest.$ac_objext
18004 if { (ac_try="$ac_compile"
18005 case "(($ac_try" in
18006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18007 *) ac_try_echo=$ac_try;;
18008 esac
18009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18010 $as_echo "$ac_try_echo") >&5
18011 (eval "$ac_compile") 2>conftest.er1
18012 ac_status=$?
18013 grep -v '^ *+' conftest.er1 >conftest.err
18014 rm -f conftest.er1
18015 cat conftest.err >&5
18016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017 (exit $ac_status); } && {
18018 test -z "$ac_c_werror_flag" ||
18019 test ! -s conftest.err
18020 } && test -s conftest.$ac_objext; then
18021 ac_header_compiler=yes
18022 else
18023 $as_echo "$as_me: failed program was:" >&5
18024 sed 's/^/| /' conftest.$ac_ext >&5
18025
18026 ac_header_compiler=no
18027 fi
18028
18029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18030 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18031 $as_echo "$ac_header_compiler" >&6; }
18032
18033 # Is the header present?
18034 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18035 $as_echo_n "checking $ac_header presence... " >&6; }
18036 cat >conftest.$ac_ext <<_ACEOF
18037 /* confdefs.h. */
18038 _ACEOF
18039 cat confdefs.h >>conftest.$ac_ext
18040 cat >>conftest.$ac_ext <<_ACEOF
18041 /* end confdefs.h. */
18042 #include <$ac_header>
18043 _ACEOF
18044 if { (ac_try="$ac_cpp conftest.$ac_ext"
18045 case "(($ac_try" in
18046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18047 *) ac_try_echo=$ac_try;;
18048 esac
18049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18050 $as_echo "$ac_try_echo") >&5
18051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18052 ac_status=$?
18053 grep -v '^ *+' conftest.er1 >conftest.err
18054 rm -f conftest.er1
18055 cat conftest.err >&5
18056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18057 (exit $ac_status); } >/dev/null && {
18058 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18059 test ! -s conftest.err
18060 }; then
18061 ac_header_preproc=yes
18062 else
18063 $as_echo "$as_me: failed program was:" >&5
18064 sed 's/^/| /' conftest.$ac_ext >&5
18065
18066 ac_header_preproc=no
18067 fi
18068
18069 rm -f conftest.err conftest.$ac_ext
18070 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18071 $as_echo "$ac_header_preproc" >&6; }
18072
18073 # So? What about this header?
18074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18075 yes:no: )
18076 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18077 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18078 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18079 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18080 ac_header_preproc=yes
18081 ;;
18082 no:yes:* )
18083 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18084 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18085 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18086 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18087 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18088 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18089 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18090 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18092 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18094 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18095
18096 ;;
18097 esac
18098 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18099 $as_echo_n "checking for $ac_header... " >&6; }
18100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18101 $as_echo_n "(cached) " >&6
18102 else
18103 eval "$as_ac_Header=\$ac_header_preproc"
18104 fi
18105 ac_res=`eval 'as_val=${'$as_ac_Header'}
18106 $as_echo "$as_val"'`
18107 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18108 $as_echo "$ac_res" >&6; }
18109
18110 fi
18111 if test `eval 'as_val=${'$as_ac_Header'}
18112 $as_echo "$as_val"'` = yes; then
18113 cat >>confdefs.h <<_ACEOF
18114 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18115 _ACEOF
18116
18117 fi
18118
18119 done
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129 for ac_func in $ac_func_list
18130 do
18131 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18132 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18133 $as_echo_n "checking for $ac_func... " >&6; }
18134 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18135 $as_echo_n "(cached) " >&6
18136 else
18137 cat >conftest.$ac_ext <<_ACEOF
18138 /* confdefs.h. */
18139 _ACEOF
18140 cat confdefs.h >>conftest.$ac_ext
18141 cat >>conftest.$ac_ext <<_ACEOF
18142 /* end confdefs.h. */
18143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18145 #define $ac_func innocuous_$ac_func
18146
18147 /* System header to define __stub macros and hopefully few prototypes,
18148 which can conflict with char $ac_func (); below.
18149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18150 <limits.h> exists even on freestanding compilers. */
18151
18152 #ifdef __STDC__
18153 # include <limits.h>
18154 #else
18155 # include <assert.h>
18156 #endif
18157
18158 #undef $ac_func
18159
18160 /* Override any GCC internal prototype to avoid an error.
18161 Use char because int might match the return type of a GCC
18162 builtin and then its argument prototype would still apply. */
18163 #ifdef __cplusplus
18164 extern "C"
18165 #endif
18166 char $ac_func ();
18167 /* The GNU C library defines this for functions which it implements
18168 to always fail with ENOSYS. Some functions are actually named
18169 something starting with __ and the normal name is an alias. */
18170 #if defined __stub_$ac_func || defined __stub___$ac_func
18171 choke me
18172 #endif
18173
18174 int
18175 main ()
18176 {
18177 return $ac_func ();
18178 ;
18179 return 0;
18180 }
18181 _ACEOF
18182 rm -f conftest.$ac_objext conftest$ac_exeext
18183 if { (ac_try="$ac_link"
18184 case "(($ac_try" in
18185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18186 *) ac_try_echo=$ac_try;;
18187 esac
18188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18189 $as_echo "$ac_try_echo") >&5
18190 (eval "$ac_link") 2>conftest.er1
18191 ac_status=$?
18192 grep -v '^ *+' conftest.er1 >conftest.err
18193 rm -f conftest.er1
18194 cat conftest.err >&5
18195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196 (exit $ac_status); } && {
18197 test -z "$ac_c_werror_flag" ||
18198 test ! -s conftest.err
18199 } && test -s conftest$ac_exeext && {
18200 test "$cross_compiling" = yes ||
18201 $as_test_x conftest$ac_exeext
18202 }; then
18203 eval "$as_ac_var=yes"
18204 else
18205 $as_echo "$as_me: failed program was:" >&5
18206 sed 's/^/| /' conftest.$ac_ext >&5
18207
18208 eval "$as_ac_var=no"
18209 fi
18210
18211 rm -rf conftest.dSYM
18212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18213 conftest$ac_exeext conftest.$ac_ext
18214 fi
18215 ac_res=`eval 'as_val=${'$as_ac_var'}
18216 $as_echo "$as_val"'`
18217 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18218 $as_echo "$ac_res" >&6; }
18219 if test `eval 'as_val=${'$as_ac_var'}
18220 $as_echo "$as_val"'` = yes; then
18221 cat >>confdefs.h <<_ACEOF
18222 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18223 _ACEOF
18224
18225 fi
18226 done
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
18245 $as_echo_n "checking for working mktime... " >&6; }
18246 if test "${ac_cv_func_working_mktime+set}" = set; then
18247 $as_echo_n "(cached) " >&6
18248 else
18249 if test "$cross_compiling" = yes; then
18250 ac_cv_func_working_mktime=no
18251 else
18252 cat >conftest.$ac_ext <<_ACEOF
18253 /* confdefs.h. */
18254 _ACEOF
18255 cat confdefs.h >>conftest.$ac_ext
18256 cat >>conftest.$ac_ext <<_ACEOF
18257 /* end confdefs.h. */
18258 /* Test program from Paul Eggert and Tony Leneis. */
18259 #ifdef TIME_WITH_SYS_TIME
18260 # include <sys/time.h>
18261 # include <time.h>
18262 #else
18263 # ifdef HAVE_SYS_TIME_H
18264 # include <sys/time.h>
18265 # else
18266 # include <time.h>
18267 # endif
18268 #endif
18269
18270 #include <limits.h>
18271 #include <stdlib.h>
18272
18273 #ifdef HAVE_UNISTD_H
18274 # include <unistd.h>
18275 #endif
18276
18277 #ifndef HAVE_ALARM
18278 # define alarm(X) /* empty */
18279 #endif
18280
18281 /* Work around redefinition to rpl_putenv by other config tests. */
18282 #undef putenv
18283
18284 static time_t time_t_max;
18285 static time_t time_t_min;
18286
18287 /* Values we'll use to set the TZ environment variable. */
18288 static char *tz_strings[] = {
18289 (char *) 0, "TZ=GMT0", "TZ=JST-9",
18290 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
18291 };
18292 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
18293
18294 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
18295 Based on a problem report from Andreas Jaeger. */
18296 static int
18297 spring_forward_gap ()
18298 {
18299 /* glibc (up to about 1998-10-07) failed this test. */
18300 struct tm tm;
18301
18302 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18303 instead of "TZ=America/Vancouver" in order to detect the bug even
18304 on systems that don't support the Olson extension, or don't have the
18305 full zoneinfo tables installed. */
18306 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
18307
18308 tm.tm_year = 98;
18309 tm.tm_mon = 3;
18310 tm.tm_mday = 5;
18311 tm.tm_hour = 2;
18312 tm.tm_min = 0;
18313 tm.tm_sec = 0;
18314 tm.tm_isdst = -1;
18315 return mktime (&tm) != (time_t) -1;
18316 }
18317
18318 static int
18319 mktime_test1 (now)
18320 time_t now;
18321 {
18322 struct tm *lt;
18323 return ! (lt = localtime (&now)) || mktime (lt) == now;
18324 }
18325
18326 static int
18327 mktime_test (now)
18328 time_t now;
18329 {
18330 return (mktime_test1 (now)
18331 && mktime_test1 ((time_t) (time_t_max - now))
18332 && mktime_test1 ((time_t) (time_t_min + now)));
18333 }
18334
18335 static int
18336 irix_6_4_bug ()
18337 {
18338 /* Based on code from Ariel Faigon. */
18339 struct tm tm;
18340 tm.tm_year = 96;
18341 tm.tm_mon = 3;
18342 tm.tm_mday = 0;
18343 tm.tm_hour = 0;
18344 tm.tm_min = 0;
18345 tm.tm_sec = 0;
18346 tm.tm_isdst = -1;
18347 mktime (&tm);
18348 return tm.tm_mon == 2 && tm.tm_mday == 31;
18349 }
18350
18351 static int
18352 bigtime_test (j)
18353 int j;
18354 {
18355 struct tm tm;
18356 time_t now;
18357 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
18358 now = mktime (&tm);
18359 if (now != (time_t) -1)
18360 {
18361 struct tm *lt = localtime (&now);
18362 if (! (lt
18363 && lt->tm_year == tm.tm_year
18364 && lt->tm_mon == tm.tm_mon
18365 && lt->tm_mday == tm.tm_mday
18366 && lt->tm_hour == tm.tm_hour
18367 && lt->tm_min == tm.tm_min
18368 && lt->tm_sec == tm.tm_sec
18369 && lt->tm_yday == tm.tm_yday
18370 && lt->tm_wday == tm.tm_wday
18371 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
18372 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
18373 return 0;
18374 }
18375 return 1;
18376 }
18377
18378 static int
18379 year_2050_test ()
18380 {
18381 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
18382 ignoring leap seconds. */
18383 unsigned long int answer = 2527315200UL;
18384
18385 struct tm tm;
18386 time_t t;
18387 tm.tm_year = 2050 - 1900;
18388 tm.tm_mon = 2 - 1;
18389 tm.tm_mday = 1;
18390 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
18391 tm.tm_isdst = -1;
18392
18393 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18394 instead of "TZ=America/Vancouver" in order to detect the bug even
18395 on systems that don't support the Olson extension, or don't have the
18396 full zoneinfo tables installed. */
18397 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
18398
18399 t = mktime (&tm);
18400
18401 /* Check that the result is either a failure, or close enough
18402 to the correct answer that we can assume the discrepancy is
18403 due to leap seconds. */
18404 return (t == (time_t) -1
18405 || (0 < t && answer - 120 <= t && t <= answer + 120));
18406 }
18407
18408 int
18409 main ()
18410 {
18411 time_t t, delta;
18412 int i, j;
18413
18414 /* This test makes some buggy mktime implementations loop.
18415 Give up after 60 seconds; a mktime slower than that
18416 isn't worth using anyway. */
18417 alarm (60);
18418
18419 for (;;)
18420 {
18421 t = (time_t_max << 1) + 1;
18422 if (t <= time_t_max)
18423 break;
18424 time_t_max = t;
18425 }
18426 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
18427
18428 delta = time_t_max / 997; /* a suitable prime number */
18429 for (i = 0; i < N_STRINGS; i++)
18430 {
18431 if (tz_strings[i])
18432 putenv (tz_strings[i]);
18433
18434 for (t = 0; t <= time_t_max - delta; t += delta)
18435 if (! mktime_test (t))
18436 return 1;
18437 if (! (mktime_test ((time_t) 1)
18438 && mktime_test ((time_t) (60 * 60))
18439 && mktime_test ((time_t) (60 * 60 * 24))))
18440 return 1;
18441
18442 for (j = 1; ; j <<= 1)
18443 if (! bigtime_test (j))
18444 return 1;
18445 else if (INT_MAX / 2 < j)
18446 break;
18447 if (! bigtime_test (INT_MAX))
18448 return 1;
18449 }
18450 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18451 }
18452 _ACEOF
18453 rm -f conftest$ac_exeext
18454 if { (ac_try="$ac_link"
18455 case "(($ac_try" in
18456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18457 *) ac_try_echo=$ac_try;;
18458 esac
18459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18460 $as_echo "$ac_try_echo") >&5
18461 (eval "$ac_link") 2>&5
18462 ac_status=$?
18463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18465 { (case "(($ac_try" in
18466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18467 *) ac_try_echo=$ac_try;;
18468 esac
18469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18470 $as_echo "$ac_try_echo") >&5
18471 (eval "$ac_try") 2>&5
18472 ac_status=$?
18473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); }; }; then
18475 ac_cv_func_working_mktime=yes
18476 else
18477 $as_echo "$as_me: program exited with status $ac_status" >&5
18478 $as_echo "$as_me: failed program was:" >&5
18479 sed 's/^/| /' conftest.$ac_ext >&5
18480
18481 ( exit $ac_status )
18482 ac_cv_func_working_mktime=no
18483 fi
18484 rm -rf conftest.dSYM
18485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18486 fi
18487
18488
18489 fi
18490 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
18491 $as_echo "$ac_cv_func_working_mktime" >&6; }
18492 if test $ac_cv_func_working_mktime = no; then
18493 case " $LIBOBJS " in
18494 *" mktime.$ac_objext "* ) ;;
18495 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
18496 ;;
18497 esac
18498
18499 fi
18500
18501 if test "$ac_cv_func_working_mktime" = no; then
18502
18503 cat >>confdefs.h <<\_ACEOF
18504 #define BROKEN_MKTIME 1
18505 _ACEOF
18506
18507 fi
18508
18509 ac_have_func=no # yes means we've found a way to get the load average.
18510
18511 # Make sure getloadavg.c is where it belongs, at configure-time.
18512 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
18513 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
18514 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
18515 { (exit 1); exit 1; }; }
18516
18517 ac_save_LIBS=$LIBS
18518
18519 # Check for getloadavg, but be sure not to touch the cache variable.
18520 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
18521 $as_echo_n "checking for getloadavg... " >&6; }
18522 if test "${ac_cv_func_getloadavg+set}" = set; then
18523 $as_echo_n "(cached) " >&6
18524 else
18525 cat >conftest.$ac_ext <<_ACEOF
18526 /* confdefs.h. */
18527 _ACEOF
18528 cat confdefs.h >>conftest.$ac_ext
18529 cat >>conftest.$ac_ext <<_ACEOF
18530 /* end confdefs.h. */
18531 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18533 #define getloadavg innocuous_getloadavg
18534
18535 /* System header to define __stub macros and hopefully few prototypes,
18536 which can conflict with char getloadavg (); below.
18537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18538 <limits.h> exists even on freestanding compilers. */
18539
18540 #ifdef __STDC__
18541 # include <limits.h>
18542 #else
18543 # include <assert.h>
18544 #endif
18545
18546 #undef getloadavg
18547
18548 /* Override any GCC internal prototype to avoid an error.
18549 Use char because int might match the return type of a GCC
18550 builtin and then its argument prototype would still apply. */
18551 #ifdef __cplusplus
18552 extern "C"
18553 #endif
18554 char getloadavg ();
18555 /* The GNU C library defines this for functions which it implements
18556 to always fail with ENOSYS. Some functions are actually named
18557 something starting with __ and the normal name is an alias. */
18558 #if defined __stub_getloadavg || defined __stub___getloadavg
18559 choke me
18560 #endif
18561
18562 int
18563 main ()
18564 {
18565 return getloadavg ();
18566 ;
18567 return 0;
18568 }
18569 _ACEOF
18570 rm -f conftest.$ac_objext conftest$ac_exeext
18571 if { (ac_try="$ac_link"
18572 case "(($ac_try" in
18573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18574 *) ac_try_echo=$ac_try;;
18575 esac
18576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18577 $as_echo "$ac_try_echo") >&5
18578 (eval "$ac_link") 2>conftest.er1
18579 ac_status=$?
18580 grep -v '^ *+' conftest.er1 >conftest.err
18581 rm -f conftest.er1
18582 cat conftest.err >&5
18583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584 (exit $ac_status); } && {
18585 test -z "$ac_c_werror_flag" ||
18586 test ! -s conftest.err
18587 } && test -s conftest$ac_exeext && {
18588 test "$cross_compiling" = yes ||
18589 $as_test_x conftest$ac_exeext
18590 }; then
18591 ac_cv_func_getloadavg=yes
18592 else
18593 $as_echo "$as_me: failed program was:" >&5
18594 sed 's/^/| /' conftest.$ac_ext >&5
18595
18596 ac_cv_func_getloadavg=no
18597 fi
18598
18599 rm -rf conftest.dSYM
18600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18601 conftest$ac_exeext conftest.$ac_ext
18602 fi
18603 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
18604 $as_echo "$ac_cv_func_getloadavg" >&6; }
18605 if test $ac_cv_func_getloadavg = yes; then
18606 exit 0
18607 else
18608 exit 1
18609 fi
18610 ) && ac_have_func=yes
18611
18612 # On HPUX9, an unprivileged user can get load averages through this function.
18613
18614 for ac_func in pstat_getdynamic
18615 do
18616 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18617 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18618 $as_echo_n "checking for $ac_func... " >&6; }
18619 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18620 $as_echo_n "(cached) " >&6
18621 else
18622 cat >conftest.$ac_ext <<_ACEOF
18623 /* confdefs.h. */
18624 _ACEOF
18625 cat confdefs.h >>conftest.$ac_ext
18626 cat >>conftest.$ac_ext <<_ACEOF
18627 /* end confdefs.h. */
18628 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18630 #define $ac_func innocuous_$ac_func
18631
18632 /* System header to define __stub macros and hopefully few prototypes,
18633 which can conflict with char $ac_func (); below.
18634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18635 <limits.h> exists even on freestanding compilers. */
18636
18637 #ifdef __STDC__
18638 # include <limits.h>
18639 #else
18640 # include <assert.h>
18641 #endif
18642
18643 #undef $ac_func
18644
18645 /* Override any GCC internal prototype to avoid an error.
18646 Use char because int might match the return type of a GCC
18647 builtin and then its argument prototype would still apply. */
18648 #ifdef __cplusplus
18649 extern "C"
18650 #endif
18651 char $ac_func ();
18652 /* The GNU C library defines this for functions which it implements
18653 to always fail with ENOSYS. Some functions are actually named
18654 something starting with __ and the normal name is an alias. */
18655 #if defined __stub_$ac_func || defined __stub___$ac_func
18656 choke me
18657 #endif
18658
18659 int
18660 main ()
18661 {
18662 return $ac_func ();
18663 ;
18664 return 0;
18665 }
18666 _ACEOF
18667 rm -f conftest.$ac_objext conftest$ac_exeext
18668 if { (ac_try="$ac_link"
18669 case "(($ac_try" in
18670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18671 *) ac_try_echo=$ac_try;;
18672 esac
18673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18674 $as_echo "$ac_try_echo") >&5
18675 (eval "$ac_link") 2>conftest.er1
18676 ac_status=$?
18677 grep -v '^ *+' conftest.er1 >conftest.err
18678 rm -f conftest.er1
18679 cat conftest.err >&5
18680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681 (exit $ac_status); } && {
18682 test -z "$ac_c_werror_flag" ||
18683 test ! -s conftest.err
18684 } && test -s conftest$ac_exeext && {
18685 test "$cross_compiling" = yes ||
18686 $as_test_x conftest$ac_exeext
18687 }; then
18688 eval "$as_ac_var=yes"
18689 else
18690 $as_echo "$as_me: failed program was:" >&5
18691 sed 's/^/| /' conftest.$ac_ext >&5
18692
18693 eval "$as_ac_var=no"
18694 fi
18695
18696 rm -rf conftest.dSYM
18697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18698 conftest$ac_exeext conftest.$ac_ext
18699 fi
18700 ac_res=`eval 'as_val=${'$as_ac_var'}
18701 $as_echo "$as_val"'`
18702 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18703 $as_echo "$ac_res" >&6; }
18704 if test `eval 'as_val=${'$as_ac_var'}
18705 $as_echo "$as_val"'` = yes; then
18706 cat >>confdefs.h <<_ACEOF
18707 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18708 _ACEOF
18709
18710 fi
18711 done
18712
18713
18714 # Solaris has libkstat which does not require root.
18715
18716 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
18717 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18718 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18719 $as_echo_n "(cached) " >&6
18720 else
18721 ac_check_lib_save_LIBS=$LIBS
18722 LIBS="-lkstat $LIBS"
18723 cat >conftest.$ac_ext <<_ACEOF
18724 /* confdefs.h. */
18725 _ACEOF
18726 cat confdefs.h >>conftest.$ac_ext
18727 cat >>conftest.$ac_ext <<_ACEOF
18728 /* end confdefs.h. */
18729
18730 /* Override any GCC internal prototype to avoid an error.
18731 Use char because int might match the return type of a GCC
18732 builtin and then its argument prototype would still apply. */
18733 #ifdef __cplusplus
18734 extern "C"
18735 #endif
18736 char kstat_open ();
18737 int
18738 main ()
18739 {
18740 return kstat_open ();
18741 ;
18742 return 0;
18743 }
18744 _ACEOF
18745 rm -f conftest.$ac_objext conftest$ac_exeext
18746 if { (ac_try="$ac_link"
18747 case "(($ac_try" in
18748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18749 *) ac_try_echo=$ac_try;;
18750 esac
18751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18752 $as_echo "$ac_try_echo") >&5
18753 (eval "$ac_link") 2>conftest.er1
18754 ac_status=$?
18755 grep -v '^ *+' conftest.er1 >conftest.err
18756 rm -f conftest.er1
18757 cat conftest.err >&5
18758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 (exit $ac_status); } && {
18760 test -z "$ac_c_werror_flag" ||
18761 test ! -s conftest.err
18762 } && test -s conftest$ac_exeext && {
18763 test "$cross_compiling" = yes ||
18764 $as_test_x conftest$ac_exeext
18765 }; then
18766 ac_cv_lib_kstat_kstat_open=yes
18767 else
18768 $as_echo "$as_me: failed program was:" >&5
18769 sed 's/^/| /' conftest.$ac_ext >&5
18770
18771 ac_cv_lib_kstat_kstat_open=no
18772 fi
18773
18774 rm -rf conftest.dSYM
18775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18776 conftest$ac_exeext conftest.$ac_ext
18777 LIBS=$ac_check_lib_save_LIBS
18778 fi
18779 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
18780 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18781 if test $ac_cv_lib_kstat_kstat_open = yes; then
18782 cat >>confdefs.h <<_ACEOF
18783 #define HAVE_LIBKSTAT 1
18784 _ACEOF
18785
18786 LIBS="-lkstat $LIBS"
18787
18788 fi
18789
18790 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18791
18792 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18793 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18794 # to get the right answer into the cache.
18795 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18796 if test $ac_have_func = no; then
18797 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18798 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18799 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18800 $as_echo_n "(cached) " >&6
18801 else
18802 ac_check_lib_save_LIBS=$LIBS
18803 LIBS="-lelf $LIBS"
18804 cat >conftest.$ac_ext <<_ACEOF
18805 /* confdefs.h. */
18806 _ACEOF
18807 cat confdefs.h >>conftest.$ac_ext
18808 cat >>conftest.$ac_ext <<_ACEOF
18809 /* end confdefs.h. */
18810
18811 /* Override any GCC internal prototype to avoid an error.
18812 Use char because int might match the return type of a GCC
18813 builtin and then its argument prototype would still apply. */
18814 #ifdef __cplusplus
18815 extern "C"
18816 #endif
18817 char elf_begin ();
18818 int
18819 main ()
18820 {
18821 return elf_begin ();
18822 ;
18823 return 0;
18824 }
18825 _ACEOF
18826 rm -f conftest.$ac_objext conftest$ac_exeext
18827 if { (ac_try="$ac_link"
18828 case "(($ac_try" in
18829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18830 *) ac_try_echo=$ac_try;;
18831 esac
18832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18833 $as_echo "$ac_try_echo") >&5
18834 (eval "$ac_link") 2>conftest.er1
18835 ac_status=$?
18836 grep -v '^ *+' conftest.er1 >conftest.err
18837 rm -f conftest.er1
18838 cat conftest.err >&5
18839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840 (exit $ac_status); } && {
18841 test -z "$ac_c_werror_flag" ||
18842 test ! -s conftest.err
18843 } && test -s conftest$ac_exeext && {
18844 test "$cross_compiling" = yes ||
18845 $as_test_x conftest$ac_exeext
18846 }; then
18847 ac_cv_lib_elf_elf_begin=yes
18848 else
18849 $as_echo "$as_me: failed program was:" >&5
18850 sed 's/^/| /' conftest.$ac_ext >&5
18851
18852 ac_cv_lib_elf_elf_begin=no
18853 fi
18854
18855 rm -rf conftest.dSYM
18856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18857 conftest$ac_exeext conftest.$ac_ext
18858 LIBS=$ac_check_lib_save_LIBS
18859 fi
18860 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18861 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18862 if test $ac_cv_lib_elf_elf_begin = yes; then
18863 LIBS="-lelf $LIBS"
18864 fi
18865
18866 fi
18867 if test $ac_have_func = no; then
18868 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
18869 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18870 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18871 $as_echo_n "(cached) " >&6
18872 else
18873 ac_check_lib_save_LIBS=$LIBS
18874 LIBS="-lkvm $LIBS"
18875 cat >conftest.$ac_ext <<_ACEOF
18876 /* confdefs.h. */
18877 _ACEOF
18878 cat confdefs.h >>conftest.$ac_ext
18879 cat >>conftest.$ac_ext <<_ACEOF
18880 /* end confdefs.h. */
18881
18882 /* Override any GCC internal prototype to avoid an error.
18883 Use char because int might match the return type of a GCC
18884 builtin and then its argument prototype would still apply. */
18885 #ifdef __cplusplus
18886 extern "C"
18887 #endif
18888 char kvm_open ();
18889 int
18890 main ()
18891 {
18892 return kvm_open ();
18893 ;
18894 return 0;
18895 }
18896 _ACEOF
18897 rm -f conftest.$ac_objext conftest$ac_exeext
18898 if { (ac_try="$ac_link"
18899 case "(($ac_try" in
18900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18901 *) ac_try_echo=$ac_try;;
18902 esac
18903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18904 $as_echo "$ac_try_echo") >&5
18905 (eval "$ac_link") 2>conftest.er1
18906 ac_status=$?
18907 grep -v '^ *+' conftest.er1 >conftest.err
18908 rm -f conftest.er1
18909 cat conftest.err >&5
18910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911 (exit $ac_status); } && {
18912 test -z "$ac_c_werror_flag" ||
18913 test ! -s conftest.err
18914 } && test -s conftest$ac_exeext && {
18915 test "$cross_compiling" = yes ||
18916 $as_test_x conftest$ac_exeext
18917 }; then
18918 ac_cv_lib_kvm_kvm_open=yes
18919 else
18920 $as_echo "$as_me: failed program was:" >&5
18921 sed 's/^/| /' conftest.$ac_ext >&5
18922
18923 ac_cv_lib_kvm_kvm_open=no
18924 fi
18925
18926 rm -rf conftest.dSYM
18927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18928 conftest$ac_exeext conftest.$ac_ext
18929 LIBS=$ac_check_lib_save_LIBS
18930 fi
18931 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
18932 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18933 if test $ac_cv_lib_kvm_kvm_open = yes; then
18934 LIBS="-lkvm $LIBS"
18935 fi
18936
18937 # Check for the 4.4BSD definition of getloadavg.
18938 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18939 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18940 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18941 $as_echo_n "(cached) " >&6
18942 else
18943 ac_check_lib_save_LIBS=$LIBS
18944 LIBS="-lutil $LIBS"
18945 cat >conftest.$ac_ext <<_ACEOF
18946 /* confdefs.h. */
18947 _ACEOF
18948 cat confdefs.h >>conftest.$ac_ext
18949 cat >>conftest.$ac_ext <<_ACEOF
18950 /* end confdefs.h. */
18951
18952 /* Override any GCC internal prototype to avoid an error.
18953 Use char because int might match the return type of a GCC
18954 builtin and then its argument prototype would still apply. */
18955 #ifdef __cplusplus
18956 extern "C"
18957 #endif
18958 char getloadavg ();
18959 int
18960 main ()
18961 {
18962 return getloadavg ();
18963 ;
18964 return 0;
18965 }
18966 _ACEOF
18967 rm -f conftest.$ac_objext conftest$ac_exeext
18968 if { (ac_try="$ac_link"
18969 case "(($ac_try" in
18970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18971 *) ac_try_echo=$ac_try;;
18972 esac
18973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18974 $as_echo "$ac_try_echo") >&5
18975 (eval "$ac_link") 2>conftest.er1
18976 ac_status=$?
18977 grep -v '^ *+' conftest.er1 >conftest.err
18978 rm -f conftest.er1
18979 cat conftest.err >&5
18980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981 (exit $ac_status); } && {
18982 test -z "$ac_c_werror_flag" ||
18983 test ! -s conftest.err
18984 } && test -s conftest$ac_exeext && {
18985 test "$cross_compiling" = yes ||
18986 $as_test_x conftest$ac_exeext
18987 }; then
18988 ac_cv_lib_util_getloadavg=yes
18989 else
18990 $as_echo "$as_me: failed program was:" >&5
18991 sed 's/^/| /' conftest.$ac_ext >&5
18992
18993 ac_cv_lib_util_getloadavg=no
18994 fi
18995
18996 rm -rf conftest.dSYM
18997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18998 conftest$ac_exeext conftest.$ac_ext
18999 LIBS=$ac_check_lib_save_LIBS
19000 fi
19001 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
19002 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
19003 if test $ac_cv_lib_util_getloadavg = yes; then
19004 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
19005 fi
19006
19007 fi
19008
19009 if test $ac_have_func = no; then
19010 # There is a commonly available library for RS/6000 AIX.
19011 # Since it is not a standard part of AIX, it might be installed locally.
19012 ac_getloadavg_LIBS=$LIBS
19013 LIBS="-L/usr/local/lib $LIBS"
19014 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
19015 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
19016 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
19017 $as_echo_n "(cached) " >&6
19018 else
19019 ac_check_lib_save_LIBS=$LIBS
19020 LIBS="-lgetloadavg $LIBS"
19021 cat >conftest.$ac_ext <<_ACEOF
19022 /* confdefs.h. */
19023 _ACEOF
19024 cat confdefs.h >>conftest.$ac_ext
19025 cat >>conftest.$ac_ext <<_ACEOF
19026 /* end confdefs.h. */
19027
19028 /* Override any GCC internal prototype to avoid an error.
19029 Use char because int might match the return type of a GCC
19030 builtin and then its argument prototype would still apply. */
19031 #ifdef __cplusplus
19032 extern "C"
19033 #endif
19034 char getloadavg ();
19035 int
19036 main ()
19037 {
19038 return getloadavg ();
19039 ;
19040 return 0;
19041 }
19042 _ACEOF
19043 rm -f conftest.$ac_objext conftest$ac_exeext
19044 if { (ac_try="$ac_link"
19045 case "(($ac_try" in
19046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19047 *) ac_try_echo=$ac_try;;
19048 esac
19049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19050 $as_echo "$ac_try_echo") >&5
19051 (eval "$ac_link") 2>conftest.er1
19052 ac_status=$?
19053 grep -v '^ *+' conftest.er1 >conftest.err
19054 rm -f conftest.er1
19055 cat conftest.err >&5
19056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057 (exit $ac_status); } && {
19058 test -z "$ac_c_werror_flag" ||
19059 test ! -s conftest.err
19060 } && test -s conftest$ac_exeext && {
19061 test "$cross_compiling" = yes ||
19062 $as_test_x conftest$ac_exeext
19063 }; then
19064 ac_cv_lib_getloadavg_getloadavg=yes
19065 else
19066 $as_echo "$as_me: failed program was:" >&5
19067 sed 's/^/| /' conftest.$ac_ext >&5
19068
19069 ac_cv_lib_getloadavg_getloadavg=no
19070 fi
19071
19072 rm -rf conftest.dSYM
19073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19074 conftest$ac_exeext conftest.$ac_ext
19075 LIBS=$ac_check_lib_save_LIBS
19076 fi
19077 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
19078 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
19079 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
19080 LIBS="-lgetloadavg $LIBS"
19081 else
19082 LIBS=$ac_getloadavg_LIBS
19083 fi
19084
19085 fi
19086
19087 # Make sure it is really in the library, if we think we found it,
19088 # otherwise set up the replacement function.
19089
19090 for ac_func in getloadavg
19091 do
19092 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19093 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19094 $as_echo_n "checking for $ac_func... " >&6; }
19095 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19096 $as_echo_n "(cached) " >&6
19097 else
19098 cat >conftest.$ac_ext <<_ACEOF
19099 /* confdefs.h. */
19100 _ACEOF
19101 cat confdefs.h >>conftest.$ac_ext
19102 cat >>conftest.$ac_ext <<_ACEOF
19103 /* end confdefs.h. */
19104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19106 #define $ac_func innocuous_$ac_func
19107
19108 /* System header to define __stub macros and hopefully few prototypes,
19109 which can conflict with char $ac_func (); below.
19110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19111 <limits.h> exists even on freestanding compilers. */
19112
19113 #ifdef __STDC__
19114 # include <limits.h>
19115 #else
19116 # include <assert.h>
19117 #endif
19118
19119 #undef $ac_func
19120
19121 /* Override any GCC internal prototype to avoid an error.
19122 Use char because int might match the return type of a GCC
19123 builtin and then its argument prototype would still apply. */
19124 #ifdef __cplusplus
19125 extern "C"
19126 #endif
19127 char $ac_func ();
19128 /* The GNU C library defines this for functions which it implements
19129 to always fail with ENOSYS. Some functions are actually named
19130 something starting with __ and the normal name is an alias. */
19131 #if defined __stub_$ac_func || defined __stub___$ac_func
19132 choke me
19133 #endif
19134
19135 int
19136 main ()
19137 {
19138 return $ac_func ();
19139 ;
19140 return 0;
19141 }
19142 _ACEOF
19143 rm -f conftest.$ac_objext conftest$ac_exeext
19144 if { (ac_try="$ac_link"
19145 case "(($ac_try" in
19146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19147 *) ac_try_echo=$ac_try;;
19148 esac
19149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19150 $as_echo "$ac_try_echo") >&5
19151 (eval "$ac_link") 2>conftest.er1
19152 ac_status=$?
19153 grep -v '^ *+' conftest.er1 >conftest.err
19154 rm -f conftest.er1
19155 cat conftest.err >&5
19156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157 (exit $ac_status); } && {
19158 test -z "$ac_c_werror_flag" ||
19159 test ! -s conftest.err
19160 } && test -s conftest$ac_exeext && {
19161 test "$cross_compiling" = yes ||
19162 $as_test_x conftest$ac_exeext
19163 }; then
19164 eval "$as_ac_var=yes"
19165 else
19166 $as_echo "$as_me: failed program was:" >&5
19167 sed 's/^/| /' conftest.$ac_ext >&5
19168
19169 eval "$as_ac_var=no"
19170 fi
19171
19172 rm -rf conftest.dSYM
19173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19174 conftest$ac_exeext conftest.$ac_ext
19175 fi
19176 ac_res=`eval 'as_val=${'$as_ac_var'}
19177 $as_echo "$as_val"'`
19178 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19179 $as_echo "$ac_res" >&6; }
19180 if test `eval 'as_val=${'$as_ac_var'}
19181 $as_echo "$as_val"'` = yes; then
19182 cat >>confdefs.h <<_ACEOF
19183 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19184 _ACEOF
19185
19186 else
19187 case " $LIBOBJS " in
19188 *" getloadavg.$ac_objext "* ) ;;
19189 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
19190 ;;
19191 esac
19192
19193
19194 cat >>confdefs.h <<\_ACEOF
19195 #define C_GETLOADAVG 1
19196 _ACEOF
19197
19198 # Figure out what our getloadavg.c needs.
19199 ac_have_func=no
19200 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19201 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19202 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
19203 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19204 $as_echo_n "(cached) " >&6
19205 fi
19206 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19207 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19208 else
19209 # Is the header compilable?
19210 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
19211 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
19212 cat >conftest.$ac_ext <<_ACEOF
19213 /* confdefs.h. */
19214 _ACEOF
19215 cat confdefs.h >>conftest.$ac_ext
19216 cat >>conftest.$ac_ext <<_ACEOF
19217 /* end confdefs.h. */
19218 $ac_includes_default
19219 #include <sys/dg_sys_info.h>
19220 _ACEOF
19221 rm -f conftest.$ac_objext
19222 if { (ac_try="$ac_compile"
19223 case "(($ac_try" in
19224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19225 *) ac_try_echo=$ac_try;;
19226 esac
19227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19228 $as_echo "$ac_try_echo") >&5
19229 (eval "$ac_compile") 2>conftest.er1
19230 ac_status=$?
19231 grep -v '^ *+' conftest.er1 >conftest.err
19232 rm -f conftest.er1
19233 cat conftest.err >&5
19234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); } && {
19236 test -z "$ac_c_werror_flag" ||
19237 test ! -s conftest.err
19238 } && test -s conftest.$ac_objext; then
19239 ac_header_compiler=yes
19240 else
19241 $as_echo "$as_me: failed program was:" >&5
19242 sed 's/^/| /' conftest.$ac_ext >&5
19243
19244 ac_header_compiler=no
19245 fi
19246
19247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19248 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19249 $as_echo "$ac_header_compiler" >&6; }
19250
19251 # Is the header present?
19252 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
19253 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
19254 cat >conftest.$ac_ext <<_ACEOF
19255 /* confdefs.h. */
19256 _ACEOF
19257 cat confdefs.h >>conftest.$ac_ext
19258 cat >>conftest.$ac_ext <<_ACEOF
19259 /* end confdefs.h. */
19260 #include <sys/dg_sys_info.h>
19261 _ACEOF
19262 if { (ac_try="$ac_cpp conftest.$ac_ext"
19263 case "(($ac_try" in
19264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19265 *) ac_try_echo=$ac_try;;
19266 esac
19267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19268 $as_echo "$ac_try_echo") >&5
19269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19270 ac_status=$?
19271 grep -v '^ *+' conftest.er1 >conftest.err
19272 rm -f conftest.er1
19273 cat conftest.err >&5
19274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); } >/dev/null && {
19276 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19277 test ! -s conftest.err
19278 }; then
19279 ac_header_preproc=yes
19280 else
19281 $as_echo "$as_me: failed program was:" >&5
19282 sed 's/^/| /' conftest.$ac_ext >&5
19283
19284 ac_header_preproc=no
19285 fi
19286
19287 rm -f conftest.err conftest.$ac_ext
19288 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19289 $as_echo "$ac_header_preproc" >&6; }
19290
19291 # So? What about this header?
19292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19293 yes:no: )
19294 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
19295 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19296 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
19297 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
19298 ac_header_preproc=yes
19299 ;;
19300 no:yes:* )
19301 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
19302 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
19303 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
19304 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
19305 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
19306 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
19307 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
19308 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
19309 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
19310 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
19311 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
19312 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
19313
19314 ;;
19315 esac
19316 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19317 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
19318 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19319 $as_echo_n "(cached) " >&6
19320 else
19321 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
19322 fi
19323 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19324 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19325
19326 fi
19327 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
19328 ac_have_func=yes
19329
19330 cat >>confdefs.h <<\_ACEOF
19331 #define DGUX 1
19332 _ACEOF
19333
19334
19335 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
19336 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19337 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
19338 $as_echo_n "(cached) " >&6
19339 else
19340 ac_check_lib_save_LIBS=$LIBS
19341 LIBS="-ldgc $LIBS"
19342 cat >conftest.$ac_ext <<_ACEOF
19343 /* confdefs.h. */
19344 _ACEOF
19345 cat confdefs.h >>conftest.$ac_ext
19346 cat >>conftest.$ac_ext <<_ACEOF
19347 /* end confdefs.h. */
19348
19349 /* Override any GCC internal prototype to avoid an error.
19350 Use char because int might match the return type of a GCC
19351 builtin and then its argument prototype would still apply. */
19352 #ifdef __cplusplus
19353 extern "C"
19354 #endif
19355 char dg_sys_info ();
19356 int
19357 main ()
19358 {
19359 return dg_sys_info ();
19360 ;
19361 return 0;
19362 }
19363 _ACEOF
19364 rm -f conftest.$ac_objext conftest$ac_exeext
19365 if { (ac_try="$ac_link"
19366 case "(($ac_try" in
19367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19368 *) ac_try_echo=$ac_try;;
19369 esac
19370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19371 $as_echo "$ac_try_echo") >&5
19372 (eval "$ac_link") 2>conftest.er1
19373 ac_status=$?
19374 grep -v '^ *+' conftest.er1 >conftest.err
19375 rm -f conftest.er1
19376 cat conftest.err >&5
19377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); } && {
19379 test -z "$ac_c_werror_flag" ||
19380 test ! -s conftest.err
19381 } && test -s conftest$ac_exeext && {
19382 test "$cross_compiling" = yes ||
19383 $as_test_x conftest$ac_exeext
19384 }; then
19385 ac_cv_lib_dgc_dg_sys_info=yes
19386 else
19387 $as_echo "$as_me: failed program was:" >&5
19388 sed 's/^/| /' conftest.$ac_ext >&5
19389
19390 ac_cv_lib_dgc_dg_sys_info=no
19391 fi
19392
19393 rm -rf conftest.dSYM
19394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19395 conftest$ac_exeext conftest.$ac_ext
19396 LIBS=$ac_check_lib_save_LIBS
19397 fi
19398 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19399 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19400 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
19401 cat >>confdefs.h <<_ACEOF
19402 #define HAVE_LIBDGC 1
19403 _ACEOF
19404
19405 LIBS="-ldgc $LIBS"
19406
19407 fi
19408
19409 fi
19410
19411
19412
19413 if test "${ac_cv_header_locale_h+set}" = set; then
19414 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19415 $as_echo_n "checking for locale.h... " >&6; }
19416 if test "${ac_cv_header_locale_h+set}" = set; then
19417 $as_echo_n "(cached) " >&6
19418 fi
19419 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19420 $as_echo "$ac_cv_header_locale_h" >&6; }
19421 else
19422 # Is the header compilable?
19423 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
19424 $as_echo_n "checking locale.h usability... " >&6; }
19425 cat >conftest.$ac_ext <<_ACEOF
19426 /* confdefs.h. */
19427 _ACEOF
19428 cat confdefs.h >>conftest.$ac_ext
19429 cat >>conftest.$ac_ext <<_ACEOF
19430 /* end confdefs.h. */
19431 $ac_includes_default
19432 #include <locale.h>
19433 _ACEOF
19434 rm -f conftest.$ac_objext
19435 if { (ac_try="$ac_compile"
19436 case "(($ac_try" in
19437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19438 *) ac_try_echo=$ac_try;;
19439 esac
19440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19441 $as_echo "$ac_try_echo") >&5
19442 (eval "$ac_compile") 2>conftest.er1
19443 ac_status=$?
19444 grep -v '^ *+' conftest.er1 >conftest.err
19445 rm -f conftest.er1
19446 cat conftest.err >&5
19447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); } && {
19449 test -z "$ac_c_werror_flag" ||
19450 test ! -s conftest.err
19451 } && test -s conftest.$ac_objext; then
19452 ac_header_compiler=yes
19453 else
19454 $as_echo "$as_me: failed program was:" >&5
19455 sed 's/^/| /' conftest.$ac_ext >&5
19456
19457 ac_header_compiler=no
19458 fi
19459
19460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19461 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19462 $as_echo "$ac_header_compiler" >&6; }
19463
19464 # Is the header present?
19465 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
19466 $as_echo_n "checking locale.h presence... " >&6; }
19467 cat >conftest.$ac_ext <<_ACEOF
19468 /* confdefs.h. */
19469 _ACEOF
19470 cat confdefs.h >>conftest.$ac_ext
19471 cat >>conftest.$ac_ext <<_ACEOF
19472 /* end confdefs.h. */
19473 #include <locale.h>
19474 _ACEOF
19475 if { (ac_try="$ac_cpp conftest.$ac_ext"
19476 case "(($ac_try" in
19477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19478 *) ac_try_echo=$ac_try;;
19479 esac
19480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19481 $as_echo "$ac_try_echo") >&5
19482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19483 ac_status=$?
19484 grep -v '^ *+' conftest.er1 >conftest.err
19485 rm -f conftest.er1
19486 cat conftest.err >&5
19487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488 (exit $ac_status); } >/dev/null && {
19489 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19490 test ! -s conftest.err
19491 }; then
19492 ac_header_preproc=yes
19493 else
19494 $as_echo "$as_me: failed program was:" >&5
19495 sed 's/^/| /' conftest.$ac_ext >&5
19496
19497 ac_header_preproc=no
19498 fi
19499
19500 rm -f conftest.err conftest.$ac_ext
19501 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19502 $as_echo "$ac_header_preproc" >&6; }
19503
19504 # So? What about this header?
19505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19506 yes:no: )
19507 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
19508 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19509 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
19510 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
19511 ac_header_preproc=yes
19512 ;;
19513 no:yes:* )
19514 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
19515 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
19516 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
19517 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
19518 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
19519 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
19520 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
19521 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
19522 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
19523 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
19524 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
19525 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
19526
19527 ;;
19528 esac
19529 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19530 $as_echo_n "checking for locale.h... " >&6; }
19531 if test "${ac_cv_header_locale_h+set}" = set; then
19532 $as_echo_n "(cached) " >&6
19533 else
19534 ac_cv_header_locale_h=$ac_header_preproc
19535 fi
19536 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19537 $as_echo "$ac_cv_header_locale_h" >&6; }
19538
19539 fi
19540
19541
19542
19543 for ac_func in setlocale
19544 do
19545 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19546 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19547 $as_echo_n "checking for $ac_func... " >&6; }
19548 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19549 $as_echo_n "(cached) " >&6
19550 else
19551 cat >conftest.$ac_ext <<_ACEOF
19552 /* confdefs.h. */
19553 _ACEOF
19554 cat confdefs.h >>conftest.$ac_ext
19555 cat >>conftest.$ac_ext <<_ACEOF
19556 /* end confdefs.h. */
19557 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19559 #define $ac_func innocuous_$ac_func
19560
19561 /* System header to define __stub macros and hopefully few prototypes,
19562 which can conflict with char $ac_func (); below.
19563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19564 <limits.h> exists even on freestanding compilers. */
19565
19566 #ifdef __STDC__
19567 # include <limits.h>
19568 #else
19569 # include <assert.h>
19570 #endif
19571
19572 #undef $ac_func
19573
19574 /* Override any GCC internal prototype to avoid an error.
19575 Use char because int might match the return type of a GCC
19576 builtin and then its argument prototype would still apply. */
19577 #ifdef __cplusplus
19578 extern "C"
19579 #endif
19580 char $ac_func ();
19581 /* The GNU C library defines this for functions which it implements
19582 to always fail with ENOSYS. Some functions are actually named
19583 something starting with __ and the normal name is an alias. */
19584 #if defined __stub_$ac_func || defined __stub___$ac_func
19585 choke me
19586 #endif
19587
19588 int
19589 main ()
19590 {
19591 return $ac_func ();
19592 ;
19593 return 0;
19594 }
19595 _ACEOF
19596 rm -f conftest.$ac_objext conftest$ac_exeext
19597 if { (ac_try="$ac_link"
19598 case "(($ac_try" in
19599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19600 *) ac_try_echo=$ac_try;;
19601 esac
19602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19603 $as_echo "$ac_try_echo") >&5
19604 (eval "$ac_link") 2>conftest.er1
19605 ac_status=$?
19606 grep -v '^ *+' conftest.er1 >conftest.err
19607 rm -f conftest.er1
19608 cat conftest.err >&5
19609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610 (exit $ac_status); } && {
19611 test -z "$ac_c_werror_flag" ||
19612 test ! -s conftest.err
19613 } && test -s conftest$ac_exeext && {
19614 test "$cross_compiling" = yes ||
19615 $as_test_x conftest$ac_exeext
19616 }; then
19617 eval "$as_ac_var=yes"
19618 else
19619 $as_echo "$as_me: failed program was:" >&5
19620 sed 's/^/| /' conftest.$ac_ext >&5
19621
19622 eval "$as_ac_var=no"
19623 fi
19624
19625 rm -rf conftest.dSYM
19626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19627 conftest$ac_exeext conftest.$ac_ext
19628 fi
19629 ac_res=`eval 'as_val=${'$as_ac_var'}
19630 $as_echo "$as_val"'`
19631 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19632 $as_echo "$ac_res" >&6; }
19633 if test `eval 'as_val=${'$as_ac_var'}
19634 $as_echo "$as_val"'` = yes; then
19635 cat >>confdefs.h <<_ACEOF
19636 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19637 _ACEOF
19638
19639 fi
19640 done
19641
19642
19643 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19644 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19645 # Irix 4.0.5F has the header but not the library.
19646 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19647 ac_have_func=yes
19648
19649 cat >>confdefs.h <<\_ACEOF
19650 #define SVR4 1
19651 _ACEOF
19652
19653 fi
19654
19655 if test $ac_have_func = no; then
19656 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19657 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19658 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19659 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19660 $as_echo_n "(cached) " >&6
19661 fi
19662 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19663 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19664 else
19665 # Is the header compilable?
19666 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
19667 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
19668 cat >conftest.$ac_ext <<_ACEOF
19669 /* confdefs.h. */
19670 _ACEOF
19671 cat confdefs.h >>conftest.$ac_ext
19672 cat >>conftest.$ac_ext <<_ACEOF
19673 /* end confdefs.h. */
19674 $ac_includes_default
19675 #include <inq_stats/cpustats.h>
19676 _ACEOF
19677 rm -f conftest.$ac_objext
19678 if { (ac_try="$ac_compile"
19679 case "(($ac_try" in
19680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19681 *) ac_try_echo=$ac_try;;
19682 esac
19683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19684 $as_echo "$ac_try_echo") >&5
19685 (eval "$ac_compile") 2>conftest.er1
19686 ac_status=$?
19687 grep -v '^ *+' conftest.er1 >conftest.err
19688 rm -f conftest.er1
19689 cat conftest.err >&5
19690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); } && {
19692 test -z "$ac_c_werror_flag" ||
19693 test ! -s conftest.err
19694 } && test -s conftest.$ac_objext; then
19695 ac_header_compiler=yes
19696 else
19697 $as_echo "$as_me: failed program was:" >&5
19698 sed 's/^/| /' conftest.$ac_ext >&5
19699
19700 ac_header_compiler=no
19701 fi
19702
19703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19704 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19705 $as_echo "$ac_header_compiler" >&6; }
19706
19707 # Is the header present?
19708 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
19709 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
19710 cat >conftest.$ac_ext <<_ACEOF
19711 /* confdefs.h. */
19712 _ACEOF
19713 cat confdefs.h >>conftest.$ac_ext
19714 cat >>conftest.$ac_ext <<_ACEOF
19715 /* end confdefs.h. */
19716 #include <inq_stats/cpustats.h>
19717 _ACEOF
19718 if { (ac_try="$ac_cpp conftest.$ac_ext"
19719 case "(($ac_try" in
19720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19721 *) ac_try_echo=$ac_try;;
19722 esac
19723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19724 $as_echo "$ac_try_echo") >&5
19725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19726 ac_status=$?
19727 grep -v '^ *+' conftest.er1 >conftest.err
19728 rm -f conftest.er1
19729 cat conftest.err >&5
19730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); } >/dev/null && {
19732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19733 test ! -s conftest.err
19734 }; then
19735 ac_header_preproc=yes
19736 else
19737 $as_echo "$as_me: failed program was:" >&5
19738 sed 's/^/| /' conftest.$ac_ext >&5
19739
19740 ac_header_preproc=no
19741 fi
19742
19743 rm -f conftest.err conftest.$ac_ext
19744 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19745 $as_echo "$ac_header_preproc" >&6; }
19746
19747 # So? What about this header?
19748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19749 yes:no: )
19750 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19751 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19752 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
19753 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
19754 ac_header_preproc=yes
19755 ;;
19756 no:yes:* )
19757 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
19758 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
19759 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
19760 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
19761 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
19762 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
19763 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19764 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19765 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19766 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
19767 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
19768 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19769
19770 ;;
19771 esac
19772 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19773 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19774 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19775 $as_echo_n "(cached) " >&6
19776 else
19777 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19778 fi
19779 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19780 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19781
19782 fi
19783 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19784 ac_have_func=yes
19785
19786 cat >>confdefs.h <<\_ACEOF
19787 #define UMAX 1
19788 _ACEOF
19789
19790
19791 cat >>confdefs.h <<\_ACEOF
19792 #define UMAX4_3 1
19793 _ACEOF
19794
19795 fi
19796
19797
19798 fi
19799
19800 if test $ac_have_func = no; then
19801 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19802 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19803 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19804 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19805 $as_echo_n "(cached) " >&6
19806 fi
19807 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19808 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19809 else
19810 # Is the header compilable?
19811 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19812 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
19813 cat >conftest.$ac_ext <<_ACEOF
19814 /* confdefs.h. */
19815 _ACEOF
19816 cat confdefs.h >>conftest.$ac_ext
19817 cat >>conftest.$ac_ext <<_ACEOF
19818 /* end confdefs.h. */
19819 $ac_includes_default
19820 #include <sys/cpustats.h>
19821 _ACEOF
19822 rm -f conftest.$ac_objext
19823 if { (ac_try="$ac_compile"
19824 case "(($ac_try" in
19825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19826 *) ac_try_echo=$ac_try;;
19827 esac
19828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19829 $as_echo "$ac_try_echo") >&5
19830 (eval "$ac_compile") 2>conftest.er1
19831 ac_status=$?
19832 grep -v '^ *+' conftest.er1 >conftest.err
19833 rm -f conftest.er1
19834 cat conftest.err >&5
19835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19836 (exit $ac_status); } && {
19837 test -z "$ac_c_werror_flag" ||
19838 test ! -s conftest.err
19839 } && test -s conftest.$ac_objext; then
19840 ac_header_compiler=yes
19841 else
19842 $as_echo "$as_me: failed program was:" >&5
19843 sed 's/^/| /' conftest.$ac_ext >&5
19844
19845 ac_header_compiler=no
19846 fi
19847
19848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19849 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19850 $as_echo "$ac_header_compiler" >&6; }
19851
19852 # Is the header present?
19853 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19854 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
19855 cat >conftest.$ac_ext <<_ACEOF
19856 /* confdefs.h. */
19857 _ACEOF
19858 cat confdefs.h >>conftest.$ac_ext
19859 cat >>conftest.$ac_ext <<_ACEOF
19860 /* end confdefs.h. */
19861 #include <sys/cpustats.h>
19862 _ACEOF
19863 if { (ac_try="$ac_cpp conftest.$ac_ext"
19864 case "(($ac_try" in
19865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19866 *) ac_try_echo=$ac_try;;
19867 esac
19868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19869 $as_echo "$ac_try_echo") >&5
19870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19871 ac_status=$?
19872 grep -v '^ *+' conftest.er1 >conftest.err
19873 rm -f conftest.er1
19874 cat conftest.err >&5
19875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876 (exit $ac_status); } >/dev/null && {
19877 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19878 test ! -s conftest.err
19879 }; then
19880 ac_header_preproc=yes
19881 else
19882 $as_echo "$as_me: failed program was:" >&5
19883 sed 's/^/| /' conftest.$ac_ext >&5
19884
19885 ac_header_preproc=no
19886 fi
19887
19888 rm -f conftest.err conftest.$ac_ext
19889 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19890 $as_echo "$ac_header_preproc" >&6; }
19891
19892 # So? What about this header?
19893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19894 yes:no: )
19895 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19896 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19897 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19898 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19899 ac_header_preproc=yes
19900 ;;
19901 no:yes:* )
19902 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19903 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19904 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19905 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19906 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19907 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19908 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19909 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19910 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19911 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19912 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19913 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19914
19915 ;;
19916 esac
19917 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19918 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19919 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19920 $as_echo_n "(cached) " >&6
19921 else
19922 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19923 fi
19924 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19925 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19926
19927 fi
19928 if test $ac_cv_header_sys_cpustats_h = yes; then
19929 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19930 #define UMAX 1
19931 _ACEOF
19932
19933 fi
19934
19935
19936 fi
19937
19938 if test $ac_have_func = no; then
19939
19940 for ac_header in mach/mach.h
19941 do
19942 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19944 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19945 $as_echo_n "checking for $ac_header... " >&6; }
19946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19947 $as_echo_n "(cached) " >&6
19948 fi
19949 ac_res=`eval 'as_val=${'$as_ac_Header'}
19950 $as_echo "$as_val"'`
19951 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19952 $as_echo "$ac_res" >&6; }
19953 else
19954 # Is the header compilable?
19955 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19956 $as_echo_n "checking $ac_header usability... " >&6; }
19957 cat >conftest.$ac_ext <<_ACEOF
19958 /* confdefs.h. */
19959 _ACEOF
19960 cat confdefs.h >>conftest.$ac_ext
19961 cat >>conftest.$ac_ext <<_ACEOF
19962 /* end confdefs.h. */
19963 $ac_includes_default
19964 #include <$ac_header>
19965 _ACEOF
19966 rm -f conftest.$ac_objext
19967 if { (ac_try="$ac_compile"
19968 case "(($ac_try" in
19969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19970 *) ac_try_echo=$ac_try;;
19971 esac
19972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19973 $as_echo "$ac_try_echo") >&5
19974 (eval "$ac_compile") 2>conftest.er1
19975 ac_status=$?
19976 grep -v '^ *+' conftest.er1 >conftest.err
19977 rm -f conftest.er1
19978 cat conftest.err >&5
19979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980 (exit $ac_status); } && {
19981 test -z "$ac_c_werror_flag" ||
19982 test ! -s conftest.err
19983 } && test -s conftest.$ac_objext; then
19984 ac_header_compiler=yes
19985 else
19986 $as_echo "$as_me: failed program was:" >&5
19987 sed 's/^/| /' conftest.$ac_ext >&5
19988
19989 ac_header_compiler=no
19990 fi
19991
19992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19993 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19994 $as_echo "$ac_header_compiler" >&6; }
19995
19996 # Is the header present?
19997 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19998 $as_echo_n "checking $ac_header presence... " >&6; }
19999 cat >conftest.$ac_ext <<_ACEOF
20000 /* confdefs.h. */
20001 _ACEOF
20002 cat confdefs.h >>conftest.$ac_ext
20003 cat >>conftest.$ac_ext <<_ACEOF
20004 /* end confdefs.h. */
20005 #include <$ac_header>
20006 _ACEOF
20007 if { (ac_try="$ac_cpp conftest.$ac_ext"
20008 case "(($ac_try" in
20009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20010 *) ac_try_echo=$ac_try;;
20011 esac
20012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20013 $as_echo "$ac_try_echo") >&5
20014 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20015 ac_status=$?
20016 grep -v '^ *+' conftest.er1 >conftest.err
20017 rm -f conftest.er1
20018 cat conftest.err >&5
20019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020 (exit $ac_status); } >/dev/null && {
20021 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20022 test ! -s conftest.err
20023 }; then
20024 ac_header_preproc=yes
20025 else
20026 $as_echo "$as_me: failed program was:" >&5
20027 sed 's/^/| /' conftest.$ac_ext >&5
20028
20029 ac_header_preproc=no
20030 fi
20031
20032 rm -f conftest.err conftest.$ac_ext
20033 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20034 $as_echo "$ac_header_preproc" >&6; }
20035
20036 # So? What about this header?
20037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20038 yes:no: )
20039 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20040 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20041 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20042 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20043 ac_header_preproc=yes
20044 ;;
20045 no:yes:* )
20046 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20047 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20048 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20049 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20050 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20051 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20052 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20053 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20054 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20055 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20056 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20057 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20058
20059 ;;
20060 esac
20061 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20062 $as_echo_n "checking for $ac_header... " >&6; }
20063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20064 $as_echo_n "(cached) " >&6
20065 else
20066 eval "$as_ac_Header=\$ac_header_preproc"
20067 fi
20068 ac_res=`eval 'as_val=${'$as_ac_Header'}
20069 $as_echo "$as_val"'`
20070 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20071 $as_echo "$ac_res" >&6; }
20072
20073 fi
20074 if test `eval 'as_val=${'$as_ac_Header'}
20075 $as_echo "$as_val"'` = yes; then
20076 cat >>confdefs.h <<_ACEOF
20077 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20078 _ACEOF
20079
20080 fi
20081
20082 done
20083
20084 fi
20085
20086
20087 for ac_header in nlist.h
20088 do
20089 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20091 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20092 $as_echo_n "checking for $ac_header... " >&6; }
20093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20094 $as_echo_n "(cached) " >&6
20095 fi
20096 ac_res=`eval 'as_val=${'$as_ac_Header'}
20097 $as_echo "$as_val"'`
20098 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20099 $as_echo "$ac_res" >&6; }
20100 else
20101 # Is the header compilable?
20102 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20103 $as_echo_n "checking $ac_header usability... " >&6; }
20104 cat >conftest.$ac_ext <<_ACEOF
20105 /* confdefs.h. */
20106 _ACEOF
20107 cat confdefs.h >>conftest.$ac_ext
20108 cat >>conftest.$ac_ext <<_ACEOF
20109 /* end confdefs.h. */
20110 $ac_includes_default
20111 #include <$ac_header>
20112 _ACEOF
20113 rm -f conftest.$ac_objext
20114 if { (ac_try="$ac_compile"
20115 case "(($ac_try" in
20116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20117 *) ac_try_echo=$ac_try;;
20118 esac
20119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20120 $as_echo "$ac_try_echo") >&5
20121 (eval "$ac_compile") 2>conftest.er1
20122 ac_status=$?
20123 grep -v '^ *+' conftest.er1 >conftest.err
20124 rm -f conftest.er1
20125 cat conftest.err >&5
20126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); } && {
20128 test -z "$ac_c_werror_flag" ||
20129 test ! -s conftest.err
20130 } && test -s conftest.$ac_objext; then
20131 ac_header_compiler=yes
20132 else
20133 $as_echo "$as_me: failed program was:" >&5
20134 sed 's/^/| /' conftest.$ac_ext >&5
20135
20136 ac_header_compiler=no
20137 fi
20138
20139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20140 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20141 $as_echo "$ac_header_compiler" >&6; }
20142
20143 # Is the header present?
20144 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20145 $as_echo_n "checking $ac_header presence... " >&6; }
20146 cat >conftest.$ac_ext <<_ACEOF
20147 /* confdefs.h. */
20148 _ACEOF
20149 cat confdefs.h >>conftest.$ac_ext
20150 cat >>conftest.$ac_ext <<_ACEOF
20151 /* end confdefs.h. */
20152 #include <$ac_header>
20153 _ACEOF
20154 if { (ac_try="$ac_cpp conftest.$ac_ext"
20155 case "(($ac_try" in
20156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20157 *) ac_try_echo=$ac_try;;
20158 esac
20159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20160 $as_echo "$ac_try_echo") >&5
20161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20162 ac_status=$?
20163 grep -v '^ *+' conftest.er1 >conftest.err
20164 rm -f conftest.er1
20165 cat conftest.err >&5
20166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 (exit $ac_status); } >/dev/null && {
20168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20169 test ! -s conftest.err
20170 }; then
20171 ac_header_preproc=yes
20172 else
20173 $as_echo "$as_me: failed program was:" >&5
20174 sed 's/^/| /' conftest.$ac_ext >&5
20175
20176 ac_header_preproc=no
20177 fi
20178
20179 rm -f conftest.err conftest.$ac_ext
20180 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20181 $as_echo "$ac_header_preproc" >&6; }
20182
20183 # So? What about this header?
20184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20185 yes:no: )
20186 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20187 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20188 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20189 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20190 ac_header_preproc=yes
20191 ;;
20192 no:yes:* )
20193 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20194 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20195 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20196 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20198 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20199 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20200 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20201 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20202 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20203 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20204 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20205
20206 ;;
20207 esac
20208 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20209 $as_echo_n "checking for $ac_header... " >&6; }
20210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20211 $as_echo_n "(cached) " >&6
20212 else
20213 eval "$as_ac_Header=\$ac_header_preproc"
20214 fi
20215 ac_res=`eval 'as_val=${'$as_ac_Header'}
20216 $as_echo "$as_val"'`
20217 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20218 $as_echo "$ac_res" >&6; }
20219
20220 fi
20221 if test `eval 'as_val=${'$as_ac_Header'}
20222 $as_echo "$as_val"'` = yes; then
20223 cat >>confdefs.h <<_ACEOF
20224 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20225 _ACEOF
20226 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
20227 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
20228 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
20229 $as_echo_n "(cached) " >&6
20230 else
20231 cat >conftest.$ac_ext <<_ACEOF
20232 /* confdefs.h. */
20233 _ACEOF
20234 cat confdefs.h >>conftest.$ac_ext
20235 cat >>conftest.$ac_ext <<_ACEOF
20236 /* end confdefs.h. */
20237 #include <nlist.h>
20238
20239 int
20240 main ()
20241 {
20242 static struct nlist ac_aggr;
20243 if (ac_aggr.n_un.n_name)
20244 return 0;
20245 ;
20246 return 0;
20247 }
20248 _ACEOF
20249 rm -f conftest.$ac_objext
20250 if { (ac_try="$ac_compile"
20251 case "(($ac_try" in
20252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20253 *) ac_try_echo=$ac_try;;
20254 esac
20255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20256 $as_echo "$ac_try_echo") >&5
20257 (eval "$ac_compile") 2>conftest.er1
20258 ac_status=$?
20259 grep -v '^ *+' conftest.er1 >conftest.err
20260 rm -f conftest.er1
20261 cat conftest.err >&5
20262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263 (exit $ac_status); } && {
20264 test -z "$ac_c_werror_flag" ||
20265 test ! -s conftest.err
20266 } && test -s conftest.$ac_objext; then
20267 ac_cv_member_struct_nlist_n_un_n_name=yes
20268 else
20269 $as_echo "$as_me: failed program was:" >&5
20270 sed 's/^/| /' conftest.$ac_ext >&5
20271
20272 cat >conftest.$ac_ext <<_ACEOF
20273 /* confdefs.h. */
20274 _ACEOF
20275 cat confdefs.h >>conftest.$ac_ext
20276 cat >>conftest.$ac_ext <<_ACEOF
20277 /* end confdefs.h. */
20278 #include <nlist.h>
20279
20280 int
20281 main ()
20282 {
20283 static struct nlist ac_aggr;
20284 if (sizeof ac_aggr.n_un.n_name)
20285 return 0;
20286 ;
20287 return 0;
20288 }
20289 _ACEOF
20290 rm -f conftest.$ac_objext
20291 if { (ac_try="$ac_compile"
20292 case "(($ac_try" in
20293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20294 *) ac_try_echo=$ac_try;;
20295 esac
20296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20297 $as_echo "$ac_try_echo") >&5
20298 (eval "$ac_compile") 2>conftest.er1
20299 ac_status=$?
20300 grep -v '^ *+' conftest.er1 >conftest.err
20301 rm -f conftest.er1
20302 cat conftest.err >&5
20303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); } && {
20305 test -z "$ac_c_werror_flag" ||
20306 test ! -s conftest.err
20307 } && test -s conftest.$ac_objext; then
20308 ac_cv_member_struct_nlist_n_un_n_name=yes
20309 else
20310 $as_echo "$as_me: failed program was:" >&5
20311 sed 's/^/| /' conftest.$ac_ext >&5
20312
20313 ac_cv_member_struct_nlist_n_un_n_name=no
20314 fi
20315
20316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20317 fi
20318
20319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20320 fi
20321 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
20322 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
20323 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
20324
20325 cat >>confdefs.h <<_ACEOF
20326 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20327 _ACEOF
20328
20329
20330 cat >>confdefs.h <<\_ACEOF
20331 #define NLIST_NAME_UNION 1
20332 _ACEOF
20333
20334 fi
20335
20336
20337 fi
20338
20339 done
20340
20341 fi
20342 done
20343
20344
20345 # Some definitions of getloadavg require that the program be installed setgid.
20346 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
20347 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
20348 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
20349 $as_echo_n "(cached) " >&6
20350 else
20351 cat >conftest.$ac_ext <<_ACEOF
20352 /* confdefs.h. */
20353 _ACEOF
20354 cat confdefs.h >>conftest.$ac_ext
20355 cat >>conftest.$ac_ext <<_ACEOF
20356 /* end confdefs.h. */
20357 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
20358 #ifdef LDAV_PRIVILEGED
20359 Yowza Am I SETGID yet
20360 #endif
20361 _ACEOF
20362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20363 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
20364 ac_cv_func_getloadavg_setgid=yes
20365 else
20366 ac_cv_func_getloadavg_setgid=no
20367 fi
20368 rm -f conftest*
20369
20370 fi
20371 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
20372 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
20373 if test $ac_cv_func_getloadavg_setgid = yes; then
20374 NEED_SETGID=true
20375
20376 cat >>confdefs.h <<\_ACEOF
20377 #define GETLOADAVG_PRIVILEGED 1
20378 _ACEOF
20379
20380 else
20381 NEED_SETGID=false
20382 fi
20383
20384 if test $ac_cv_func_getloadavg_setgid = yes; then
20385 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
20386 $as_echo_n "checking group of /dev/kmem... " >&6; }
20387 if test "${ac_cv_group_kmem+set}" = set; then
20388 $as_echo_n "(cached) " >&6
20389 else
20390 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
20391 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
20392 # If we got an error (system does not support symlinks), try without -L.
20393 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
20394 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
20395 | sed -ne 's/[ ][ ]*/ /g;
20396 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
20397 / /s/.* //;p;'`
20398
20399 fi
20400 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
20401 $as_echo "$ac_cv_group_kmem" >&6; }
20402 KMEM_GROUP=$ac_cv_group_kmem
20403 fi
20404 if test "x$ac_save_LIBS" = x; then
20405 GETLOADAVG_LIBS=$LIBS
20406 else
20407 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
20408 fi
20409 LIBS=$ac_save_LIBS
20410
20411
20412
20413 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
20414 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
20415 if test "${ac_cv_sys_largefile_source+set}" = set; then
20416 $as_echo_n "(cached) " >&6
20417 else
20418 while :; do
20419 cat >conftest.$ac_ext <<_ACEOF
20420 /* confdefs.h. */
20421 _ACEOF
20422 cat confdefs.h >>conftest.$ac_ext
20423 cat >>conftest.$ac_ext <<_ACEOF
20424 /* end confdefs.h. */
20425 #include <sys/types.h> /* for off_t */
20426 #include <stdio.h>
20427 int
20428 main ()
20429 {
20430 int (*fp) (FILE *, off_t, int) = fseeko;
20431 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20432 ;
20433 return 0;
20434 }
20435 _ACEOF
20436 rm -f conftest.$ac_objext conftest$ac_exeext
20437 if { (ac_try="$ac_link"
20438 case "(($ac_try" in
20439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20440 *) ac_try_echo=$ac_try;;
20441 esac
20442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20443 $as_echo "$ac_try_echo") >&5
20444 (eval "$ac_link") 2>conftest.er1
20445 ac_status=$?
20446 grep -v '^ *+' conftest.er1 >conftest.err
20447 rm -f conftest.er1
20448 cat conftest.err >&5
20449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450 (exit $ac_status); } && {
20451 test -z "$ac_c_werror_flag" ||
20452 test ! -s conftest.err
20453 } && test -s conftest$ac_exeext && {
20454 test "$cross_compiling" = yes ||
20455 $as_test_x conftest$ac_exeext
20456 }; then
20457 ac_cv_sys_largefile_source=no; break
20458 else
20459 $as_echo "$as_me: failed program was:" >&5
20460 sed 's/^/| /' conftest.$ac_ext >&5
20461
20462
20463 fi
20464
20465 rm -rf conftest.dSYM
20466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20467 conftest$ac_exeext conftest.$ac_ext
20468 cat >conftest.$ac_ext <<_ACEOF
20469 /* confdefs.h. */
20470 _ACEOF
20471 cat confdefs.h >>conftest.$ac_ext
20472 cat >>conftest.$ac_ext <<_ACEOF
20473 /* end confdefs.h. */
20474 #define _LARGEFILE_SOURCE 1
20475 #include <sys/types.h> /* for off_t */
20476 #include <stdio.h>
20477 int
20478 main ()
20479 {
20480 int (*fp) (FILE *, off_t, int) = fseeko;
20481 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20482 ;
20483 return 0;
20484 }
20485 _ACEOF
20486 rm -f conftest.$ac_objext conftest$ac_exeext
20487 if { (ac_try="$ac_link"
20488 case "(($ac_try" in
20489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20490 *) ac_try_echo=$ac_try;;
20491 esac
20492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20493 $as_echo "$ac_try_echo") >&5
20494 (eval "$ac_link") 2>conftest.er1
20495 ac_status=$?
20496 grep -v '^ *+' conftest.er1 >conftest.err
20497 rm -f conftest.er1
20498 cat conftest.err >&5
20499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); } && {
20501 test -z "$ac_c_werror_flag" ||
20502 test ! -s conftest.err
20503 } && test -s conftest$ac_exeext && {
20504 test "$cross_compiling" = yes ||
20505 $as_test_x conftest$ac_exeext
20506 }; then
20507 ac_cv_sys_largefile_source=1; break
20508 else
20509 $as_echo "$as_me: failed program was:" >&5
20510 sed 's/^/| /' conftest.$ac_ext >&5
20511
20512
20513 fi
20514
20515 rm -rf conftest.dSYM
20516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20517 conftest$ac_exeext conftest.$ac_ext
20518 ac_cv_sys_largefile_source=unknown
20519 break
20520 done
20521 fi
20522 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20523 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20524 case $ac_cv_sys_largefile_source in #(
20525 no | unknown) ;;
20526 *)
20527 cat >>confdefs.h <<_ACEOF
20528 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20529 _ACEOF
20530 ;;
20531 esac
20532 rm -rf conftest*
20533
20534 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20535 # in glibc 2.1.3, but that breaks too many other things.
20536 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20537 if test $ac_cv_sys_largefile_source != unknown; then
20538
20539 cat >>confdefs.h <<\_ACEOF
20540 #define HAVE_FSEEKO 1
20541 _ACEOF
20542
20543 fi
20544
20545
20546 # Configure getopt.
20547 # getopt.m4 serial 10
20548
20549 # The getopt module assume you want GNU getopt, with getopt_long etc,
20550 # rather than vanilla POSIX getopt. This means your your code should
20551 # always include <getopt.h> for the getopt prototypes.
20552
20553
20554
20555
20556
20557
20558
20559
20560
20561
20562
20563 # Prerequisites of lib/getopt*.
20564
20565
20566
20567
20568 GETOPT_H=
20569
20570 for ac_header in getopt.h
20571 do
20572 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20574 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20575 $as_echo_n "checking for $ac_header... " >&6; }
20576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20577 $as_echo_n "(cached) " >&6
20578 fi
20579 ac_res=`eval 'as_val=${'$as_ac_Header'}
20580 $as_echo "$as_val"'`
20581 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20582 $as_echo "$ac_res" >&6; }
20583 else
20584 # Is the header compilable?
20585 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20586 $as_echo_n "checking $ac_header usability... " >&6; }
20587 cat >conftest.$ac_ext <<_ACEOF
20588 /* confdefs.h. */
20589 _ACEOF
20590 cat confdefs.h >>conftest.$ac_ext
20591 cat >>conftest.$ac_ext <<_ACEOF
20592 /* end confdefs.h. */
20593 $ac_includes_default
20594 #include <$ac_header>
20595 _ACEOF
20596 rm -f conftest.$ac_objext
20597 if { (ac_try="$ac_compile"
20598 case "(($ac_try" in
20599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20600 *) ac_try_echo=$ac_try;;
20601 esac
20602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20603 $as_echo "$ac_try_echo") >&5
20604 (eval "$ac_compile") 2>conftest.er1
20605 ac_status=$?
20606 grep -v '^ *+' conftest.er1 >conftest.err
20607 rm -f conftest.er1
20608 cat conftest.err >&5
20609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610 (exit $ac_status); } && {
20611 test -z "$ac_c_werror_flag" ||
20612 test ! -s conftest.err
20613 } && test -s conftest.$ac_objext; then
20614 ac_header_compiler=yes
20615 else
20616 $as_echo "$as_me: failed program was:" >&5
20617 sed 's/^/| /' conftest.$ac_ext >&5
20618
20619 ac_header_compiler=no
20620 fi
20621
20622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20623 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20624 $as_echo "$ac_header_compiler" >&6; }
20625
20626 # Is the header present?
20627 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20628 $as_echo_n "checking $ac_header presence... " >&6; }
20629 cat >conftest.$ac_ext <<_ACEOF
20630 /* confdefs.h. */
20631 _ACEOF
20632 cat confdefs.h >>conftest.$ac_ext
20633 cat >>conftest.$ac_ext <<_ACEOF
20634 /* end confdefs.h. */
20635 #include <$ac_header>
20636 _ACEOF
20637 if { (ac_try="$ac_cpp conftest.$ac_ext"
20638 case "(($ac_try" in
20639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20640 *) ac_try_echo=$ac_try;;
20641 esac
20642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20643 $as_echo "$ac_try_echo") >&5
20644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20645 ac_status=$?
20646 grep -v '^ *+' conftest.er1 >conftest.err
20647 rm -f conftest.er1
20648 cat conftest.err >&5
20649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650 (exit $ac_status); } >/dev/null && {
20651 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20652 test ! -s conftest.err
20653 }; then
20654 ac_header_preproc=yes
20655 else
20656 $as_echo "$as_me: failed program was:" >&5
20657 sed 's/^/| /' conftest.$ac_ext >&5
20658
20659 ac_header_preproc=no
20660 fi
20661
20662 rm -f conftest.err conftest.$ac_ext
20663 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20664 $as_echo "$ac_header_preproc" >&6; }
20665
20666 # So? What about this header?
20667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20668 yes:no: )
20669 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20670 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20671 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20672 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20673 ac_header_preproc=yes
20674 ;;
20675 no:yes:* )
20676 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20677 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20678 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20679 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20681 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20683 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20685 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20686 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20687 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20688
20689 ;;
20690 esac
20691 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20692 $as_echo_n "checking for $ac_header... " >&6; }
20693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20694 $as_echo_n "(cached) " >&6
20695 else
20696 eval "$as_ac_Header=\$ac_header_preproc"
20697 fi
20698 ac_res=`eval 'as_val=${'$as_ac_Header'}
20699 $as_echo "$as_val"'`
20700 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20701 $as_echo "$ac_res" >&6; }
20702
20703 fi
20704 if test `eval 'as_val=${'$as_ac_Header'}
20705 $as_echo "$as_val"'` = yes; then
20706 cat >>confdefs.h <<_ACEOF
20707 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20708 _ACEOF
20709
20710 else
20711 GETOPT_H=getopt.h
20712 fi
20713
20714 done
20715
20716 if test -z "$GETOPT_H"; then
20717
20718 for ac_func in getopt_long_only
20719 do
20720 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20721 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20722 $as_echo_n "checking for $ac_func... " >&6; }
20723 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20724 $as_echo_n "(cached) " >&6
20725 else
20726 cat >conftest.$ac_ext <<_ACEOF
20727 /* confdefs.h. */
20728 _ACEOF
20729 cat confdefs.h >>conftest.$ac_ext
20730 cat >>conftest.$ac_ext <<_ACEOF
20731 /* end confdefs.h. */
20732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20734 #define $ac_func innocuous_$ac_func
20735
20736 /* System header to define __stub macros and hopefully few prototypes,
20737 which can conflict with char $ac_func (); below.
20738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20739 <limits.h> exists even on freestanding compilers. */
20740
20741 #ifdef __STDC__
20742 # include <limits.h>
20743 #else
20744 # include <assert.h>
20745 #endif
20746
20747 #undef $ac_func
20748
20749 /* Override any GCC internal prototype to avoid an error.
20750 Use char because int might match the return type of a GCC
20751 builtin and then its argument prototype would still apply. */
20752 #ifdef __cplusplus
20753 extern "C"
20754 #endif
20755 char $ac_func ();
20756 /* The GNU C library defines this for functions which it implements
20757 to always fail with ENOSYS. Some functions are actually named
20758 something starting with __ and the normal name is an alias. */
20759 #if defined __stub_$ac_func || defined __stub___$ac_func
20760 choke me
20761 #endif
20762
20763 int
20764 main ()
20765 {
20766 return $ac_func ();
20767 ;
20768 return 0;
20769 }
20770 _ACEOF
20771 rm -f conftest.$ac_objext conftest$ac_exeext
20772 if { (ac_try="$ac_link"
20773 case "(($ac_try" in
20774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20775 *) ac_try_echo=$ac_try;;
20776 esac
20777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20778 $as_echo "$ac_try_echo") >&5
20779 (eval "$ac_link") 2>conftest.er1
20780 ac_status=$?
20781 grep -v '^ *+' conftest.er1 >conftest.err
20782 rm -f conftest.er1
20783 cat conftest.err >&5
20784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785 (exit $ac_status); } && {
20786 test -z "$ac_c_werror_flag" ||
20787 test ! -s conftest.err
20788 } && test -s conftest$ac_exeext && {
20789 test "$cross_compiling" = yes ||
20790 $as_test_x conftest$ac_exeext
20791 }; then
20792 eval "$as_ac_var=yes"
20793 else
20794 $as_echo "$as_me: failed program was:" >&5
20795 sed 's/^/| /' conftest.$ac_ext >&5
20796
20797 eval "$as_ac_var=no"
20798 fi
20799
20800 rm -rf conftest.dSYM
20801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20802 conftest$ac_exeext conftest.$ac_ext
20803 fi
20804 ac_res=`eval 'as_val=${'$as_ac_var'}
20805 $as_echo "$as_val"'`
20806 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20807 $as_echo "$ac_res" >&6; }
20808 if test `eval 'as_val=${'$as_ac_var'}
20809 $as_echo "$as_val"'` = yes; then
20810 cat >>confdefs.h <<_ACEOF
20811 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20812 _ACEOF
20813
20814 else
20815 GETOPT_H=getopt.h
20816 fi
20817 done
20818
20819 fi
20820
20821 if test -z "$GETOPT_H"; then
20822 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
20823 $as_echo_n "checking whether optreset is declared... " >&6; }
20824 if test "${ac_cv_have_decl_optreset+set}" = set; then
20825 $as_echo_n "(cached) " >&6
20826 else
20827 cat >conftest.$ac_ext <<_ACEOF
20828 /* confdefs.h. */
20829 _ACEOF
20830 cat confdefs.h >>conftest.$ac_ext
20831 cat >>conftest.$ac_ext <<_ACEOF
20832 /* end confdefs.h. */
20833 #include <getopt.h>
20834
20835 int
20836 main ()
20837 {
20838 #ifndef optreset
20839 (void) optreset;
20840 #endif
20841
20842 ;
20843 return 0;
20844 }
20845 _ACEOF
20846 rm -f conftest.$ac_objext
20847 if { (ac_try="$ac_compile"
20848 case "(($ac_try" in
20849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20850 *) ac_try_echo=$ac_try;;
20851 esac
20852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20853 $as_echo "$ac_try_echo") >&5
20854 (eval "$ac_compile") 2>conftest.er1
20855 ac_status=$?
20856 grep -v '^ *+' conftest.er1 >conftest.err
20857 rm -f conftest.er1
20858 cat conftest.err >&5
20859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860 (exit $ac_status); } && {
20861 test -z "$ac_c_werror_flag" ||
20862 test ! -s conftest.err
20863 } && test -s conftest.$ac_objext; then
20864 ac_cv_have_decl_optreset=yes
20865 else
20866 $as_echo "$as_me: failed program was:" >&5
20867 sed 's/^/| /' conftest.$ac_ext >&5
20868
20869 ac_cv_have_decl_optreset=no
20870 fi
20871
20872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20873 fi
20874 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20875 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20876 if test $ac_cv_have_decl_optreset = yes; then
20877 GETOPT_H=getopt.h
20878 fi
20879
20880 fi
20881
20882 if test -z "$GETOPT_H"; then
20883 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
20884 $as_echo_n "checking for working GNU getopt function... " >&6; }
20885 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20886 $as_echo_n "(cached) " >&6
20887 else
20888 if test "$cross_compiling" = yes; then
20889 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
20890 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
20891 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20892 $as_echo_n "(cached) " >&6
20893 else
20894 cat >conftest.$ac_ext <<_ACEOF
20895 /* confdefs.h. */
20896 _ACEOF
20897 cat confdefs.h >>conftest.$ac_ext
20898 cat >>conftest.$ac_ext <<_ACEOF
20899 /* end confdefs.h. */
20900 #include <getopt.h>
20901
20902 int
20903 main ()
20904 {
20905 #ifndef getopt_clip
20906 (void) getopt_clip;
20907 #endif
20908
20909 ;
20910 return 0;
20911 }
20912 _ACEOF
20913 rm -f conftest.$ac_objext
20914 if { (ac_try="$ac_compile"
20915 case "(($ac_try" in
20916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20917 *) ac_try_echo=$ac_try;;
20918 esac
20919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20920 $as_echo "$ac_try_echo") >&5
20921 (eval "$ac_compile") 2>conftest.er1
20922 ac_status=$?
20923 grep -v '^ *+' conftest.er1 >conftest.err
20924 rm -f conftest.er1
20925 cat conftest.err >&5
20926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927 (exit $ac_status); } && {
20928 test -z "$ac_c_werror_flag" ||
20929 test ! -s conftest.err
20930 } && test -s conftest.$ac_objext; then
20931 ac_cv_have_decl_getopt_clip=yes
20932 else
20933 $as_echo "$as_me: failed program was:" >&5
20934 sed 's/^/| /' conftest.$ac_ext >&5
20935
20936 ac_cv_have_decl_getopt_clip=no
20937 fi
20938
20939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20940 fi
20941 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20942 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20943 if test $ac_cv_have_decl_getopt_clip = yes; then
20944 gl_cv_func_gnu_getopt=no
20945 else
20946 gl_cv_func_gnu_getopt=yes
20947 fi
20948
20949 else
20950 cat >conftest.$ac_ext <<_ACEOF
20951 /* confdefs.h. */
20952 _ACEOF
20953 cat confdefs.h >>conftest.$ac_ext
20954 cat >>conftest.$ac_ext <<_ACEOF
20955 /* end confdefs.h. */
20956 #include <getopt.h>
20957 int
20958 main ()
20959 {
20960
20961 char *myargv[3];
20962 myargv[0] = "conftest";
20963 myargv[1] = "-+";
20964 myargv[2] = 0;
20965 return getopt (2, myargv, "+a") != '?';
20966
20967 ;
20968 return 0;
20969 }
20970 _ACEOF
20971 rm -f conftest$ac_exeext
20972 if { (ac_try="$ac_link"
20973 case "(($ac_try" in
20974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20975 *) ac_try_echo=$ac_try;;
20976 esac
20977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20978 $as_echo "$ac_try_echo") >&5
20979 (eval "$ac_link") 2>&5
20980 ac_status=$?
20981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20983 { (case "(($ac_try" in
20984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20985 *) ac_try_echo=$ac_try;;
20986 esac
20987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20988 $as_echo "$ac_try_echo") >&5
20989 (eval "$ac_try") 2>&5
20990 ac_status=$?
20991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992 (exit $ac_status); }; }; then
20993 gl_cv_func_gnu_getopt=yes
20994 else
20995 $as_echo "$as_me: program exited with status $ac_status" >&5
20996 $as_echo "$as_me: failed program was:" >&5
20997 sed 's/^/| /' conftest.$ac_ext >&5
20998
20999 ( exit $ac_status )
21000 gl_cv_func_gnu_getopt=no
21001 fi
21002 rm -rf conftest.dSYM
21003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21004 fi
21005
21006
21007 fi
21008 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
21009 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
21010 if test "$gl_cv_func_gnu_getopt" = "no"; then
21011 GETOPT_H=getopt.h
21012 fi
21013 fi
21014
21015
21016
21017 if test -n "$GETOPT_H"; then
21018
21019
21020 GETOPT_H=getopt.h
21021
21022 cat >>confdefs.h <<\_ACEOF
21023 #define __GETOPT_PREFIX rpl_
21024 _ACEOF
21025
21026
21027
21028 :
21029 GETOPTOBJS='getopt.o getopt1.o'
21030
21031 fi
21032
21033
21034
21035
21036 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
21037 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
21038 if test "${ac_cv_func_getpgrp_void+set}" = set; then
21039 $as_echo_n "(cached) " >&6
21040 else
21041 # Use it with a single arg.
21042 cat >conftest.$ac_ext <<_ACEOF
21043 /* confdefs.h. */
21044 _ACEOF
21045 cat confdefs.h >>conftest.$ac_ext
21046 cat >>conftest.$ac_ext <<_ACEOF
21047 /* end confdefs.h. */
21048 $ac_includes_default
21049 int
21050 main ()
21051 {
21052 getpgrp (0);
21053 ;
21054 return 0;
21055 }
21056 _ACEOF
21057 rm -f conftest.$ac_objext
21058 if { (ac_try="$ac_compile"
21059 case "(($ac_try" in
21060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21061 *) ac_try_echo=$ac_try;;
21062 esac
21063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21064 $as_echo "$ac_try_echo") >&5
21065 (eval "$ac_compile") 2>conftest.er1
21066 ac_status=$?
21067 grep -v '^ *+' conftest.er1 >conftest.err
21068 rm -f conftest.er1
21069 cat conftest.err >&5
21070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071 (exit $ac_status); } && {
21072 test -z "$ac_c_werror_flag" ||
21073 test ! -s conftest.err
21074 } && test -s conftest.$ac_objext; then
21075 ac_cv_func_getpgrp_void=no
21076 else
21077 $as_echo "$as_me: failed program was:" >&5
21078 sed 's/^/| /' conftest.$ac_ext >&5
21079
21080 ac_cv_func_getpgrp_void=yes
21081 fi
21082
21083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21084
21085 fi
21086 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
21087 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
21088 if test $ac_cv_func_getpgrp_void = yes; then
21089
21090 cat >>confdefs.h <<\_ACEOF
21091 #define GETPGRP_VOID 1
21092 _ACEOF
21093
21094 fi
21095
21096
21097
21098 for ac_func in strftime
21099 do
21100 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21101 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21102 $as_echo_n "checking for $ac_func... " >&6; }
21103 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21104 $as_echo_n "(cached) " >&6
21105 else
21106 cat >conftest.$ac_ext <<_ACEOF
21107 /* confdefs.h. */
21108 _ACEOF
21109 cat confdefs.h >>conftest.$ac_ext
21110 cat >>conftest.$ac_ext <<_ACEOF
21111 /* end confdefs.h. */
21112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21114 #define $ac_func innocuous_$ac_func
21115
21116 /* System header to define __stub macros and hopefully few prototypes,
21117 which can conflict with char $ac_func (); below.
21118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21119 <limits.h> exists even on freestanding compilers. */
21120
21121 #ifdef __STDC__
21122 # include <limits.h>
21123 #else
21124 # include <assert.h>
21125 #endif
21126
21127 #undef $ac_func
21128
21129 /* Override any GCC internal prototype to avoid an error.
21130 Use char because int might match the return type of a GCC
21131 builtin and then its argument prototype would still apply. */
21132 #ifdef __cplusplus
21133 extern "C"
21134 #endif
21135 char $ac_func ();
21136 /* The GNU C library defines this for functions which it implements
21137 to always fail with ENOSYS. Some functions are actually named
21138 something starting with __ and the normal name is an alias. */
21139 #if defined __stub_$ac_func || defined __stub___$ac_func
21140 choke me
21141 #endif
21142
21143 int
21144 main ()
21145 {
21146 return $ac_func ();
21147 ;
21148 return 0;
21149 }
21150 _ACEOF
21151 rm -f conftest.$ac_objext conftest$ac_exeext
21152 if { (ac_try="$ac_link"
21153 case "(($ac_try" in
21154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21155 *) ac_try_echo=$ac_try;;
21156 esac
21157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21158 $as_echo "$ac_try_echo") >&5
21159 (eval "$ac_link") 2>conftest.er1
21160 ac_status=$?
21161 grep -v '^ *+' conftest.er1 >conftest.err
21162 rm -f conftest.er1
21163 cat conftest.err >&5
21164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165 (exit $ac_status); } && {
21166 test -z "$ac_c_werror_flag" ||
21167 test ! -s conftest.err
21168 } && test -s conftest$ac_exeext && {
21169 test "$cross_compiling" = yes ||
21170 $as_test_x conftest$ac_exeext
21171 }; then
21172 eval "$as_ac_var=yes"
21173 else
21174 $as_echo "$as_me: failed program was:" >&5
21175 sed 's/^/| /' conftest.$ac_ext >&5
21176
21177 eval "$as_ac_var=no"
21178 fi
21179
21180 rm -rf conftest.dSYM
21181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21182 conftest$ac_exeext conftest.$ac_ext
21183 fi
21184 ac_res=`eval 'as_val=${'$as_ac_var'}
21185 $as_echo "$as_val"'`
21186 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21187 $as_echo "$ac_res" >&6; }
21188 if test `eval 'as_val=${'$as_ac_var'}
21189 $as_echo "$as_val"'` = yes; then
21190 cat >>confdefs.h <<_ACEOF
21191 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21192 _ACEOF
21193
21194 else
21195 # strftime is in -lintl on SCO UNIX.
21196 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
21197 $as_echo_n "checking for strftime in -lintl... " >&6; }
21198 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21199 $as_echo_n "(cached) " >&6
21200 else
21201 ac_check_lib_save_LIBS=$LIBS
21202 LIBS="-lintl $LIBS"
21203 cat >conftest.$ac_ext <<_ACEOF
21204 /* confdefs.h. */
21205 _ACEOF
21206 cat confdefs.h >>conftest.$ac_ext
21207 cat >>conftest.$ac_ext <<_ACEOF
21208 /* end confdefs.h. */
21209
21210 /* Override any GCC internal prototype to avoid an error.
21211 Use char because int might match the return type of a GCC
21212 builtin and then its argument prototype would still apply. */
21213 #ifdef __cplusplus
21214 extern "C"
21215 #endif
21216 char strftime ();
21217 int
21218 main ()
21219 {
21220 return strftime ();
21221 ;
21222 return 0;
21223 }
21224 _ACEOF
21225 rm -f conftest.$ac_objext conftest$ac_exeext
21226 if { (ac_try="$ac_link"
21227 case "(($ac_try" in
21228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21229 *) ac_try_echo=$ac_try;;
21230 esac
21231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21232 $as_echo "$ac_try_echo") >&5
21233 (eval "$ac_link") 2>conftest.er1
21234 ac_status=$?
21235 grep -v '^ *+' conftest.er1 >conftest.err
21236 rm -f conftest.er1
21237 cat conftest.err >&5
21238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239 (exit $ac_status); } && {
21240 test -z "$ac_c_werror_flag" ||
21241 test ! -s conftest.err
21242 } && test -s conftest$ac_exeext && {
21243 test "$cross_compiling" = yes ||
21244 $as_test_x conftest$ac_exeext
21245 }; then
21246 ac_cv_lib_intl_strftime=yes
21247 else
21248 $as_echo "$as_me: failed program was:" >&5
21249 sed 's/^/| /' conftest.$ac_ext >&5
21250
21251 ac_cv_lib_intl_strftime=no
21252 fi
21253
21254 rm -rf conftest.dSYM
21255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21256 conftest$ac_exeext conftest.$ac_ext
21257 LIBS=$ac_check_lib_save_LIBS
21258 fi
21259 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
21260 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
21261 if test $ac_cv_lib_intl_strftime = yes; then
21262 cat >>confdefs.h <<\_ACEOF
21263 #define HAVE_STRFTIME 1
21264 _ACEOF
21265
21266 LIBS="-lintl $LIBS"
21267 fi
21268
21269 fi
21270 done
21271
21272
21273 # UNIX98 PTYs.
21274
21275 for ac_func in grantpt
21276 do
21277 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21278 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21279 $as_echo_n "checking for $ac_func... " >&6; }
21280 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21281 $as_echo_n "(cached) " >&6
21282 else
21283 cat >conftest.$ac_ext <<_ACEOF
21284 /* confdefs.h. */
21285 _ACEOF
21286 cat confdefs.h >>conftest.$ac_ext
21287 cat >>conftest.$ac_ext <<_ACEOF
21288 /* end confdefs.h. */
21289 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21291 #define $ac_func innocuous_$ac_func
21292
21293 /* System header to define __stub macros and hopefully few prototypes,
21294 which can conflict with char $ac_func (); below.
21295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21296 <limits.h> exists even on freestanding compilers. */
21297
21298 #ifdef __STDC__
21299 # include <limits.h>
21300 #else
21301 # include <assert.h>
21302 #endif
21303
21304 #undef $ac_func
21305
21306 /* Override any GCC internal prototype to avoid an error.
21307 Use char because int might match the return type of a GCC
21308 builtin and then its argument prototype would still apply. */
21309 #ifdef __cplusplus
21310 extern "C"
21311 #endif
21312 char $ac_func ();
21313 /* The GNU C library defines this for functions which it implements
21314 to always fail with ENOSYS. Some functions are actually named
21315 something starting with __ and the normal name is an alias. */
21316 #if defined __stub_$ac_func || defined __stub___$ac_func
21317 choke me
21318 #endif
21319
21320 int
21321 main ()
21322 {
21323 return $ac_func ();
21324 ;
21325 return 0;
21326 }
21327 _ACEOF
21328 rm -f conftest.$ac_objext conftest$ac_exeext
21329 if { (ac_try="$ac_link"
21330 case "(($ac_try" in
21331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21332 *) ac_try_echo=$ac_try;;
21333 esac
21334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21335 $as_echo "$ac_try_echo") >&5
21336 (eval "$ac_link") 2>conftest.er1
21337 ac_status=$?
21338 grep -v '^ *+' conftest.er1 >conftest.err
21339 rm -f conftest.er1
21340 cat conftest.err >&5
21341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342 (exit $ac_status); } && {
21343 test -z "$ac_c_werror_flag" ||
21344 test ! -s conftest.err
21345 } && test -s conftest$ac_exeext && {
21346 test "$cross_compiling" = yes ||
21347 $as_test_x conftest$ac_exeext
21348 }; then
21349 eval "$as_ac_var=yes"
21350 else
21351 $as_echo "$as_me: failed program was:" >&5
21352 sed 's/^/| /' conftest.$ac_ext >&5
21353
21354 eval "$as_ac_var=no"
21355 fi
21356
21357 rm -rf conftest.dSYM
21358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21359 conftest$ac_exeext conftest.$ac_ext
21360 fi
21361 ac_res=`eval 'as_val=${'$as_ac_var'}
21362 $as_echo "$as_val"'`
21363 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21364 $as_echo "$ac_res" >&6; }
21365 if test `eval 'as_val=${'$as_ac_var'}
21366 $as_echo "$as_val"'` = yes; then
21367 cat >>confdefs.h <<_ACEOF
21368 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21369 _ACEOF
21370
21371 fi
21372 done
21373
21374
21375 # PTY-related GNU extensions.
21376
21377 for ac_func in getpt
21378 do
21379 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21380 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21381 $as_echo_n "checking for $ac_func... " >&6; }
21382 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21383 $as_echo_n "(cached) " >&6
21384 else
21385 cat >conftest.$ac_ext <<_ACEOF
21386 /* confdefs.h. */
21387 _ACEOF
21388 cat confdefs.h >>conftest.$ac_ext
21389 cat >>conftest.$ac_ext <<_ACEOF
21390 /* end confdefs.h. */
21391 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21393 #define $ac_func innocuous_$ac_func
21394
21395 /* System header to define __stub macros and hopefully few prototypes,
21396 which can conflict with char $ac_func (); below.
21397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21398 <limits.h> exists even on freestanding compilers. */
21399
21400 #ifdef __STDC__
21401 # include <limits.h>
21402 #else
21403 # include <assert.h>
21404 #endif
21405
21406 #undef $ac_func
21407
21408 /* Override any GCC internal prototype to avoid an error.
21409 Use char because int might match the return type of a GCC
21410 builtin and then its argument prototype would still apply. */
21411 #ifdef __cplusplus
21412 extern "C"
21413 #endif
21414 char $ac_func ();
21415 /* The GNU C library defines this for functions which it implements
21416 to always fail with ENOSYS. Some functions are actually named
21417 something starting with __ and the normal name is an alias. */
21418 #if defined __stub_$ac_func || defined __stub___$ac_func
21419 choke me
21420 #endif
21421
21422 int
21423 main ()
21424 {
21425 return $ac_func ();
21426 ;
21427 return 0;
21428 }
21429 _ACEOF
21430 rm -f conftest.$ac_objext conftest$ac_exeext
21431 if { (ac_try="$ac_link"
21432 case "(($ac_try" in
21433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21434 *) ac_try_echo=$ac_try;;
21435 esac
21436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21437 $as_echo "$ac_try_echo") >&5
21438 (eval "$ac_link") 2>conftest.er1
21439 ac_status=$?
21440 grep -v '^ *+' conftest.er1 >conftest.err
21441 rm -f conftest.er1
21442 cat conftest.err >&5
21443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444 (exit $ac_status); } && {
21445 test -z "$ac_c_werror_flag" ||
21446 test ! -s conftest.err
21447 } && test -s conftest$ac_exeext && {
21448 test "$cross_compiling" = yes ||
21449 $as_test_x conftest$ac_exeext
21450 }; then
21451 eval "$as_ac_var=yes"
21452 else
21453 $as_echo "$as_me: failed program was:" >&5
21454 sed 's/^/| /' conftest.$ac_ext >&5
21455
21456 eval "$as_ac_var=no"
21457 fi
21458
21459 rm -rf conftest.dSYM
21460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21461 conftest$ac_exeext conftest.$ac_ext
21462 fi
21463 ac_res=`eval 'as_val=${'$as_ac_var'}
21464 $as_echo "$as_val"'`
21465 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21466 $as_echo "$ac_res" >&6; }
21467 if test `eval 'as_val=${'$as_ac_var'}
21468 $as_echo "$as_val"'` = yes; then
21469 cat >>confdefs.h <<_ACEOF
21470 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21471 _ACEOF
21472
21473 fi
21474 done
21475
21476
21477 # Check this now, so that we will NOT find the above functions in ncurses.
21478 # That is because we have not set up to link ncurses in lib-src.
21479 # It's better to believe a function is not available
21480 # than to expect to find it in ncurses.
21481 # Also we need tputs and friends to be able to build at all.
21482 have_tputs_et_al=true
21483 { $as_echo "$as_me:$LINENO: checking for library containing tputs" >&5
21484 $as_echo_n "checking for library containing tputs... " >&6; }
21485 if test "${ac_cv_search_tputs+set}" = set; then
21486 $as_echo_n "(cached) " >&6
21487 else
21488 ac_func_search_save_LIBS=$LIBS
21489 cat >conftest.$ac_ext <<_ACEOF
21490 /* confdefs.h. */
21491 _ACEOF
21492 cat confdefs.h >>conftest.$ac_ext
21493 cat >>conftest.$ac_ext <<_ACEOF
21494 /* end confdefs.h. */
21495
21496 /* Override any GCC internal prototype to avoid an error.
21497 Use char because int might match the return type of a GCC
21498 builtin and then its argument prototype would still apply. */
21499 #ifdef __cplusplus
21500 extern "C"
21501 #endif
21502 char tputs ();
21503 int
21504 main ()
21505 {
21506 return tputs ();
21507 ;
21508 return 0;
21509 }
21510 _ACEOF
21511 for ac_lib in '' ncurses terminfo termcap; do
21512 if test -z "$ac_lib"; then
21513 ac_res="none required"
21514 else
21515 ac_res=-l$ac_lib
21516 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21517 fi
21518 rm -f conftest.$ac_objext conftest$ac_exeext
21519 if { (ac_try="$ac_link"
21520 case "(($ac_try" in
21521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21522 *) ac_try_echo=$ac_try;;
21523 esac
21524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21525 $as_echo "$ac_try_echo") >&5
21526 (eval "$ac_link") 2>conftest.er1
21527 ac_status=$?
21528 grep -v '^ *+' conftest.er1 >conftest.err
21529 rm -f conftest.er1
21530 cat conftest.err >&5
21531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532 (exit $ac_status); } && {
21533 test -z "$ac_c_werror_flag" ||
21534 test ! -s conftest.err
21535 } && test -s conftest$ac_exeext && {
21536 test "$cross_compiling" = yes ||
21537 $as_test_x conftest$ac_exeext
21538 }; then
21539 ac_cv_search_tputs=$ac_res
21540 else
21541 $as_echo "$as_me: failed program was:" >&5
21542 sed 's/^/| /' conftest.$ac_ext >&5
21543
21544
21545 fi
21546
21547 rm -rf conftest.dSYM
21548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21549 conftest$ac_exeext
21550 if test "${ac_cv_search_tputs+set}" = set; then
21551 break
21552 fi
21553 done
21554 if test "${ac_cv_search_tputs+set}" = set; then
21555 :
21556 else
21557 ac_cv_search_tputs=no
21558 fi
21559 rm conftest.$ac_ext
21560 LIBS=$ac_func_search_save_LIBS
21561 fi
21562 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tputs" >&5
21563 $as_echo "$ac_cv_search_tputs" >&6; }
21564 ac_res=$ac_cv_search_tputs
21565 if test "$ac_res" != no; then
21566 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21567
21568 else
21569 have_tputs_et_al=false
21570 fi
21571
21572 if test "$have_tputs_et_al" != true; then
21573 { { $as_echo "$as_me:$LINENO: error: I couldn't find termcap functions (tputs and friends).
21574 Maybe some development libraries/packages are missing? Try installing
21575 libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21576 $as_echo "$as_me: error: I couldn't find termcap functions (tputs and friends).
21577 Maybe some development libraries/packages are missing? Try installing
21578 libncurses-dev(el), libterminfo-dev(el) or similar." >&2;}
21579 { (exit 1); exit 1; }; }
21580 fi
21581 # Must define this when any termcap library is found.
21582
21583 cat >>confdefs.h <<\_ACEOF
21584 #define HAVE_LIBNCURSES 1
21585 _ACEOF
21586
21587 ## FIXME This was the cpp logic, but I am not sure it is right.
21588 ## The above test has not necessarily found libncurses.
21589 HAVE_LIBNCURSES=yes
21590
21591 ## Use terminfo instead of termcap?
21592 ## Note only system files NOT using terminfo are:
21593 ## bsd-common, freebsd < 40000, ms-w32, msdos, netbsd, and
21594 ## darwin|gnu without ncurses.
21595 TERMINFO=no
21596 LIBS_TERMCAP=
21597 case "$opsys" in
21598 ## cygwin: Fewer environment variables to go wrong, more terminal types.
21599 ## hpux10-20: Use the system provided termcap(3) library.
21600 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
21601 ## is necessary. Otherwise Emacs dumps core when run -nw.
21602 aix4-2|cygwin|hpux*|irix6-5|openbsd|usg5-4|sol2*|unixware) TERMINFO=yes ;;
21603
21604 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
21605 ## The ncurses library has been moved out of the System framework in
21606 ## Mac OS X 10.2. So if configure detects it, set the command-line
21607 ## option to use it.
21608 darwin|gnu*)
21609 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
21610 if test "x$HAVE_LIBNCURSES" = "xyes"; then
21611 TERMINFO=yes
21612 LIBS_TERMCAP="-lncurses"
21613 fi
21614 ;;
21615
21616 freebsd)
21617 { $as_echo "$as_me:$LINENO: checking whether FreeBSD is new enough to use terminfo" >&5
21618 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
21619 if test "${emacs_cv_freebsd_terminfo+set}" = set; then
21620 $as_echo_n "(cached) " >&6
21621 else
21622 cat >conftest.$ac_ext <<_ACEOF
21623 /* confdefs.h. */
21624 _ACEOF
21625 cat confdefs.h >>conftest.$ac_ext
21626 cat >>conftest.$ac_ext <<_ACEOF
21627 /* end confdefs.h. */
21628 #include <osreldate.h>
21629 int
21630 main ()
21631 {
21632 #if __FreeBSD_version < 400000
21633 fail;
21634 #endif
21635
21636 ;
21637 return 0;
21638 }
21639 _ACEOF
21640 rm -f conftest.$ac_objext conftest$ac_exeext
21641 if { (ac_try="$ac_link"
21642 case "(($ac_try" in
21643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21644 *) ac_try_echo=$ac_try;;
21645 esac
21646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21647 $as_echo "$ac_try_echo") >&5
21648 (eval "$ac_link") 2>conftest.er1
21649 ac_status=$?
21650 grep -v '^ *+' conftest.er1 >conftest.err
21651 rm -f conftest.er1
21652 cat conftest.err >&5
21653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21654 (exit $ac_status); } && {
21655 test -z "$ac_c_werror_flag" ||
21656 test ! -s conftest.err
21657 } && test -s conftest$ac_exeext && {
21658 test "$cross_compiling" = yes ||
21659 $as_test_x conftest$ac_exeext
21660 }; then
21661 emacs_cv_freebsd_terminfo=yes
21662 else
21663 $as_echo "$as_me: failed program was:" >&5
21664 sed 's/^/| /' conftest.$ac_ext >&5
21665
21666 emacs_cv_freebsd_terminfo=no
21667 fi
21668
21669 rm -rf conftest.dSYM
21670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21671 conftest$ac_exeext conftest.$ac_ext
21672 fi
21673
21674
21675 { $as_echo "$as_me:$LINENO: result: $emacs_cv_freebsd_terminfo" >&5
21676 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
21677
21678 if test $emacs_cv_freebsd_terminfo = yes; then
21679 TERMINFO=yes
21680 LIBS_TERMCAP="-lncurses"
21681 else
21682 LIBS_TERMCAP="-ltermcap"
21683 fi
21684 ;;
21685
21686 esac
21687
21688 case "$opsys" in
21689 ## hpux: Make sure we get select from libc rather than from libcurses
21690 ## because libcurses on HPUX 10.10 has a broken version of select.
21691 ## We used to use -lc -lcurses, but this may be cleaner.
21692 hpux*|netbsd) LIBS_TERMCAP="-ltermcap" ;;
21693
21694 openbsd) LIBS_TERMCAP="-lncurses" ;;
21695
21696 ## Must use system termcap, if we use any termcap. It does special things.
21697 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
21698 esac
21699
21700 TERMCAP_OBJ=tparam.o
21701 if test $TERMINFO = yes; then
21702
21703 cat >>confdefs.h <<\_ACEOF
21704 #define TERMINFO 1
21705 _ACEOF
21706
21707
21708 ## Default used to be -ltermcap. Add a case above if need something else.
21709 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
21710
21711 TERMCAP_OBJ=terminfo.o
21712 fi
21713
21714
21715
21716
21717 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21718 resolv=no
21719 cat >conftest.$ac_ext <<_ACEOF
21720 /* confdefs.h. */
21721 _ACEOF
21722 cat confdefs.h >>conftest.$ac_ext
21723 cat >>conftest.$ac_ext <<_ACEOF
21724 /* end confdefs.h. */
21725 #include <netinet/in.h>
21726 #include <arpa/nameser.h>
21727 #include <resolv.h>
21728 int
21729 main ()
21730 {
21731 return res_init();
21732 ;
21733 return 0;
21734 }
21735 _ACEOF
21736 rm -f conftest.$ac_objext conftest$ac_exeext
21737 if { (ac_try="$ac_link"
21738 case "(($ac_try" in
21739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21740 *) ac_try_echo=$ac_try;;
21741 esac
21742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21743 $as_echo "$ac_try_echo") >&5
21744 (eval "$ac_link") 2>conftest.er1
21745 ac_status=$?
21746 grep -v '^ *+' conftest.er1 >conftest.err
21747 rm -f conftest.er1
21748 cat conftest.err >&5
21749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 (exit $ac_status); } && {
21751 test -z "$ac_c_werror_flag" ||
21752 test ! -s conftest.err
21753 } && test -s conftest$ac_exeext && {
21754 test "$cross_compiling" = yes ||
21755 $as_test_x conftest$ac_exeext
21756 }; then
21757 have_res_init=yes
21758 else
21759 $as_echo "$as_me: failed program was:" >&5
21760 sed 's/^/| /' conftest.$ac_ext >&5
21761
21762 have_res_init=no
21763 fi
21764
21765 rm -rf conftest.dSYM
21766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21767 conftest$ac_exeext conftest.$ac_ext
21768 if test "$have_res_init" = no; then
21769 OLIBS="$LIBS"
21770 LIBS="$LIBS -lresolv"
21771 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
21772 $as_echo_n "checking for res_init with -lresolv... " >&6; }
21773 cat >conftest.$ac_ext <<_ACEOF
21774 /* confdefs.h. */
21775 _ACEOF
21776 cat confdefs.h >>conftest.$ac_ext
21777 cat >>conftest.$ac_ext <<_ACEOF
21778 /* end confdefs.h. */
21779 #include <netinet/in.h>
21780 #include <arpa/nameser.h>
21781 #include <resolv.h>
21782 int
21783 main ()
21784 {
21785 return res_init();
21786 ;
21787 return 0;
21788 }
21789 _ACEOF
21790 rm -f conftest.$ac_objext conftest$ac_exeext
21791 if { (ac_try="$ac_link"
21792 case "(($ac_try" in
21793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21794 *) ac_try_echo=$ac_try;;
21795 esac
21796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21797 $as_echo "$ac_try_echo") >&5
21798 (eval "$ac_link") 2>conftest.er1
21799 ac_status=$?
21800 grep -v '^ *+' conftest.er1 >conftest.err
21801 rm -f conftest.er1
21802 cat conftest.err >&5
21803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804 (exit $ac_status); } && {
21805 test -z "$ac_c_werror_flag" ||
21806 test ! -s conftest.err
21807 } && test -s conftest$ac_exeext && {
21808 test "$cross_compiling" = yes ||
21809 $as_test_x conftest$ac_exeext
21810 }; then
21811 have_res_init=yes
21812 else
21813 $as_echo "$as_me: failed program was:" >&5
21814 sed 's/^/| /' conftest.$ac_ext >&5
21815
21816 have_res_init=no
21817 fi
21818
21819 rm -rf conftest.dSYM
21820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21821 conftest$ac_exeext conftest.$ac_ext
21822 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
21823 $as_echo "$have_res_init" >&6; }
21824 if test "$have_res_init" = yes ; then
21825 resolv=yes
21826 fi
21827 LIBS="$OLIBS"
21828 fi
21829
21830 if test "$have_res_init" = yes; then
21831
21832 cat >>confdefs.h <<\_ACEOF
21833 #define HAVE_RES_INIT 1
21834 _ACEOF
21835
21836 fi
21837
21838 # Do we need the Hesiod library to provide the support routines?
21839 LIBHESIOD=
21840 if test "$with_hesiod" != no ; then
21841 # Don't set $LIBS here -- see comments above. FIXME which comments?
21842 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
21843 $as_echo_n "checking for res_send... " >&6; }
21844 if test "${ac_cv_func_res_send+set}" = set; then
21845 $as_echo_n "(cached) " >&6
21846 else
21847 cat >conftest.$ac_ext <<_ACEOF
21848 /* confdefs.h. */
21849 _ACEOF
21850 cat confdefs.h >>conftest.$ac_ext
21851 cat >>conftest.$ac_ext <<_ACEOF
21852 /* end confdefs.h. */
21853 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21855 #define res_send innocuous_res_send
21856
21857 /* System header to define __stub macros and hopefully few prototypes,
21858 which can conflict with char res_send (); below.
21859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21860 <limits.h> exists even on freestanding compilers. */
21861
21862 #ifdef __STDC__
21863 # include <limits.h>
21864 #else
21865 # include <assert.h>
21866 #endif
21867
21868 #undef res_send
21869
21870 /* Override any GCC internal prototype to avoid an error.
21871 Use char because int might match the return type of a GCC
21872 builtin and then its argument prototype would still apply. */
21873 #ifdef __cplusplus
21874 extern "C"
21875 #endif
21876 char res_send ();
21877 /* The GNU C library defines this for functions which it implements
21878 to always fail with ENOSYS. Some functions are actually named
21879 something starting with __ and the normal name is an alias. */
21880 #if defined __stub_res_send || defined __stub___res_send
21881 choke me
21882 #endif
21883
21884 int
21885 main ()
21886 {
21887 return res_send ();
21888 ;
21889 return 0;
21890 }
21891 _ACEOF
21892 rm -f conftest.$ac_objext conftest$ac_exeext
21893 if { (ac_try="$ac_link"
21894 case "(($ac_try" in
21895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21896 *) ac_try_echo=$ac_try;;
21897 esac
21898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21899 $as_echo "$ac_try_echo") >&5
21900 (eval "$ac_link") 2>conftest.er1
21901 ac_status=$?
21902 grep -v '^ *+' conftest.er1 >conftest.err
21903 rm -f conftest.er1
21904 cat conftest.err >&5
21905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906 (exit $ac_status); } && {
21907 test -z "$ac_c_werror_flag" ||
21908 test ! -s conftest.err
21909 } && test -s conftest$ac_exeext && {
21910 test "$cross_compiling" = yes ||
21911 $as_test_x conftest$ac_exeext
21912 }; then
21913 ac_cv_func_res_send=yes
21914 else
21915 $as_echo "$as_me: failed program was:" >&5
21916 sed 's/^/| /' conftest.$ac_ext >&5
21917
21918 ac_cv_func_res_send=no
21919 fi
21920
21921 rm -rf conftest.dSYM
21922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21923 conftest$ac_exeext conftest.$ac_ext
21924 fi
21925 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
21926 $as_echo "$ac_cv_func_res_send" >&6; }
21927 if test $ac_cv_func_res_send = yes; then
21928 :
21929 else
21930 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
21931 $as_echo_n "checking for __res_send... " >&6; }
21932 if test "${ac_cv_func___res_send+set}" = set; then
21933 $as_echo_n "(cached) " >&6
21934 else
21935 cat >conftest.$ac_ext <<_ACEOF
21936 /* confdefs.h. */
21937 _ACEOF
21938 cat confdefs.h >>conftest.$ac_ext
21939 cat >>conftest.$ac_ext <<_ACEOF
21940 /* end confdefs.h. */
21941 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21943 #define __res_send innocuous___res_send
21944
21945 /* System header to define __stub macros and hopefully few prototypes,
21946 which can conflict with char __res_send (); below.
21947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21948 <limits.h> exists even on freestanding compilers. */
21949
21950 #ifdef __STDC__
21951 # include <limits.h>
21952 #else
21953 # include <assert.h>
21954 #endif
21955
21956 #undef __res_send
21957
21958 /* Override any GCC internal prototype to avoid an error.
21959 Use char because int might match the return type of a GCC
21960 builtin and then its argument prototype would still apply. */
21961 #ifdef __cplusplus
21962 extern "C"
21963 #endif
21964 char __res_send ();
21965 /* The GNU C library defines this for functions which it implements
21966 to always fail with ENOSYS. Some functions are actually named
21967 something starting with __ and the normal name is an alias. */
21968 #if defined __stub___res_send || defined __stub_____res_send
21969 choke me
21970 #endif
21971
21972 int
21973 main ()
21974 {
21975 return __res_send ();
21976 ;
21977 return 0;
21978 }
21979 _ACEOF
21980 rm -f conftest.$ac_objext conftest$ac_exeext
21981 if { (ac_try="$ac_link"
21982 case "(($ac_try" in
21983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21984 *) ac_try_echo=$ac_try;;
21985 esac
21986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21987 $as_echo "$ac_try_echo") >&5
21988 (eval "$ac_link") 2>conftest.er1
21989 ac_status=$?
21990 grep -v '^ *+' conftest.er1 >conftest.err
21991 rm -f conftest.er1
21992 cat conftest.err >&5
21993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); } && {
21995 test -z "$ac_c_werror_flag" ||
21996 test ! -s conftest.err
21997 } && test -s conftest$ac_exeext && {
21998 test "$cross_compiling" = yes ||
21999 $as_test_x conftest$ac_exeext
22000 }; then
22001 ac_cv_func___res_send=yes
22002 else
22003 $as_echo "$as_me: failed program was:" >&5
22004 sed 's/^/| /' conftest.$ac_ext >&5
22005
22006 ac_cv_func___res_send=no
22007 fi
22008
22009 rm -rf conftest.dSYM
22010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22011 conftest$ac_exeext conftest.$ac_ext
22012 fi
22013 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
22014 $as_echo "$ac_cv_func___res_send" >&6; }
22015 if test $ac_cv_func___res_send = yes; then
22016 :
22017 else
22018 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
22019 $as_echo_n "checking for res_send in -lresolv... " >&6; }
22020 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
22021 $as_echo_n "(cached) " >&6
22022 else
22023 ac_check_lib_save_LIBS=$LIBS
22024 LIBS="-lresolv $LIBS"
22025 cat >conftest.$ac_ext <<_ACEOF
22026 /* confdefs.h. */
22027 _ACEOF
22028 cat confdefs.h >>conftest.$ac_ext
22029 cat >>conftest.$ac_ext <<_ACEOF
22030 /* end confdefs.h. */
22031
22032 /* Override any GCC internal prototype to avoid an error.
22033 Use char because int might match the return type of a GCC
22034 builtin and then its argument prototype would still apply. */
22035 #ifdef __cplusplus
22036 extern "C"
22037 #endif
22038 char res_send ();
22039 int
22040 main ()
22041 {
22042 return res_send ();
22043 ;
22044 return 0;
22045 }
22046 _ACEOF
22047 rm -f conftest.$ac_objext conftest$ac_exeext
22048 if { (ac_try="$ac_link"
22049 case "(($ac_try" in
22050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22051 *) ac_try_echo=$ac_try;;
22052 esac
22053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22054 $as_echo "$ac_try_echo") >&5
22055 (eval "$ac_link") 2>conftest.er1
22056 ac_status=$?
22057 grep -v '^ *+' conftest.er1 >conftest.err
22058 rm -f conftest.er1
22059 cat conftest.err >&5
22060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061 (exit $ac_status); } && {
22062 test -z "$ac_c_werror_flag" ||
22063 test ! -s conftest.err
22064 } && test -s conftest$ac_exeext && {
22065 test "$cross_compiling" = yes ||
22066 $as_test_x conftest$ac_exeext
22067 }; then
22068 ac_cv_lib_resolv_res_send=yes
22069 else
22070 $as_echo "$as_me: failed program was:" >&5
22071 sed 's/^/| /' conftest.$ac_ext >&5
22072
22073 ac_cv_lib_resolv_res_send=no
22074 fi
22075
22076 rm -rf conftest.dSYM
22077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22078 conftest$ac_exeext conftest.$ac_ext
22079 LIBS=$ac_check_lib_save_LIBS
22080 fi
22081 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
22082 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
22083 if test $ac_cv_lib_resolv_res_send = yes; then
22084 resolv=yes
22085 else
22086 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
22087 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
22088 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
22089 $as_echo_n "(cached) " >&6
22090 else
22091 ac_check_lib_save_LIBS=$LIBS
22092 LIBS="-lresolv $LIBS"
22093 cat >conftest.$ac_ext <<_ACEOF
22094 /* confdefs.h. */
22095 _ACEOF
22096 cat confdefs.h >>conftest.$ac_ext
22097 cat >>conftest.$ac_ext <<_ACEOF
22098 /* end confdefs.h. */
22099
22100 /* Override any GCC internal prototype to avoid an error.
22101 Use char because int might match the return type of a GCC
22102 builtin and then its argument prototype would still apply. */
22103 #ifdef __cplusplus
22104 extern "C"
22105 #endif
22106 char __res_send ();
22107 int
22108 main ()
22109 {
22110 return __res_send ();
22111 ;
22112 return 0;
22113 }
22114 _ACEOF
22115 rm -f conftest.$ac_objext conftest$ac_exeext
22116 if { (ac_try="$ac_link"
22117 case "(($ac_try" in
22118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22119 *) ac_try_echo=$ac_try;;
22120 esac
22121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22122 $as_echo "$ac_try_echo") >&5
22123 (eval "$ac_link") 2>conftest.er1
22124 ac_status=$?
22125 grep -v '^ *+' conftest.er1 >conftest.err
22126 rm -f conftest.er1
22127 cat conftest.err >&5
22128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129 (exit $ac_status); } && {
22130 test -z "$ac_c_werror_flag" ||
22131 test ! -s conftest.err
22132 } && test -s conftest$ac_exeext && {
22133 test "$cross_compiling" = yes ||
22134 $as_test_x conftest$ac_exeext
22135 }; then
22136 ac_cv_lib_resolv___res_send=yes
22137 else
22138 $as_echo "$as_me: failed program was:" >&5
22139 sed 's/^/| /' conftest.$ac_ext >&5
22140
22141 ac_cv_lib_resolv___res_send=no
22142 fi
22143
22144 rm -rf conftest.dSYM
22145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22146 conftest$ac_exeext conftest.$ac_ext
22147 LIBS=$ac_check_lib_save_LIBS
22148 fi
22149 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
22150 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
22151 if test $ac_cv_lib_resolv___res_send = yes; then
22152 resolv=yes
22153 fi
22154
22155 fi
22156
22157 fi
22158
22159 fi
22160
22161 if test "$resolv" = yes ; then
22162 RESOLVLIB=-lresolv
22163 else
22164 RESOLVLIB=
22165 fi
22166 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
22167 $as_echo_n "checking for hes_getmailhost... " >&6; }
22168 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
22169 $as_echo_n "(cached) " >&6
22170 else
22171 cat >conftest.$ac_ext <<_ACEOF
22172 /* confdefs.h. */
22173 _ACEOF
22174 cat confdefs.h >>conftest.$ac_ext
22175 cat >>conftest.$ac_ext <<_ACEOF
22176 /* end confdefs.h. */
22177 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
22178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22179 #define hes_getmailhost innocuous_hes_getmailhost
22180
22181 /* System header to define __stub macros and hopefully few prototypes,
22182 which can conflict with char hes_getmailhost (); below.
22183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22184 <limits.h> exists even on freestanding compilers. */
22185
22186 #ifdef __STDC__
22187 # include <limits.h>
22188 #else
22189 # include <assert.h>
22190 #endif
22191
22192 #undef hes_getmailhost
22193
22194 /* Override any GCC internal prototype to avoid an error.
22195 Use char because int might match the return type of a GCC
22196 builtin and then its argument prototype would still apply. */
22197 #ifdef __cplusplus
22198 extern "C"
22199 #endif
22200 char hes_getmailhost ();
22201 /* The GNU C library defines this for functions which it implements
22202 to always fail with ENOSYS. Some functions are actually named
22203 something starting with __ and the normal name is an alias. */
22204 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
22205 choke me
22206 #endif
22207
22208 int
22209 main ()
22210 {
22211 return hes_getmailhost ();
22212 ;
22213 return 0;
22214 }
22215 _ACEOF
22216 rm -f conftest.$ac_objext conftest$ac_exeext
22217 if { (ac_try="$ac_link"
22218 case "(($ac_try" in
22219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22220 *) ac_try_echo=$ac_try;;
22221 esac
22222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22223 $as_echo "$ac_try_echo") >&5
22224 (eval "$ac_link") 2>conftest.er1
22225 ac_status=$?
22226 grep -v '^ *+' conftest.er1 >conftest.err
22227 rm -f conftest.er1
22228 cat conftest.err >&5
22229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22230 (exit $ac_status); } && {
22231 test -z "$ac_c_werror_flag" ||
22232 test ! -s conftest.err
22233 } && test -s conftest$ac_exeext && {
22234 test "$cross_compiling" = yes ||
22235 $as_test_x conftest$ac_exeext
22236 }; then
22237 ac_cv_func_hes_getmailhost=yes
22238 else
22239 $as_echo "$as_me: failed program was:" >&5
22240 sed 's/^/| /' conftest.$ac_ext >&5
22241
22242 ac_cv_func_hes_getmailhost=no
22243 fi
22244
22245 rm -rf conftest.dSYM
22246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22247 conftest$ac_exeext conftest.$ac_ext
22248 fi
22249 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
22250 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
22251 if test $ac_cv_func_hes_getmailhost = yes; then
22252 :
22253 else
22254 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
22255 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
22256 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
22257 $as_echo_n "(cached) " >&6
22258 else
22259 ac_check_lib_save_LIBS=$LIBS
22260 LIBS="-lhesiod $RESOLVLIB $LIBS"
22261 cat >conftest.$ac_ext <<_ACEOF
22262 /* confdefs.h. */
22263 _ACEOF
22264 cat confdefs.h >>conftest.$ac_ext
22265 cat >>conftest.$ac_ext <<_ACEOF
22266 /* end confdefs.h. */
22267
22268 /* Override any GCC internal prototype to avoid an error.
22269 Use char because int might match the return type of a GCC
22270 builtin and then its argument prototype would still apply. */
22271 #ifdef __cplusplus
22272 extern "C"
22273 #endif
22274 char hes_getmailhost ();
22275 int
22276 main ()
22277 {
22278 return hes_getmailhost ();
22279 ;
22280 return 0;
22281 }
22282 _ACEOF
22283 rm -f conftest.$ac_objext conftest$ac_exeext
22284 if { (ac_try="$ac_link"
22285 case "(($ac_try" in
22286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22287 *) ac_try_echo=$ac_try;;
22288 esac
22289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22290 $as_echo "$ac_try_echo") >&5
22291 (eval "$ac_link") 2>conftest.er1
22292 ac_status=$?
22293 grep -v '^ *+' conftest.er1 >conftest.err
22294 rm -f conftest.er1
22295 cat conftest.err >&5
22296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297 (exit $ac_status); } && {
22298 test -z "$ac_c_werror_flag" ||
22299 test ! -s conftest.err
22300 } && test -s conftest$ac_exeext && {
22301 test "$cross_compiling" = yes ||
22302 $as_test_x conftest$ac_exeext
22303 }; then
22304 ac_cv_lib_hesiod_hes_getmailhost=yes
22305 else
22306 $as_echo "$as_me: failed program was:" >&5
22307 sed 's/^/| /' conftest.$ac_ext >&5
22308
22309 ac_cv_lib_hesiod_hes_getmailhost=no
22310 fi
22311
22312 rm -rf conftest.dSYM
22313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22314 conftest$ac_exeext conftest.$ac_ext
22315 LIBS=$ac_check_lib_save_LIBS
22316 fi
22317 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
22318 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
22319 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
22320 hesiod=yes
22321 else
22322 :
22323 fi
22324
22325 fi
22326
22327
22328 if test x"$hesiod" = xyes; then
22329
22330 cat >>confdefs.h <<\_ACEOF
22331 #define HAVE_LIBHESIOD 1
22332 _ACEOF
22333
22334 LIBHESIOD=-lhesiod
22335 fi
22336 fi
22337
22338
22339 # Do we need libresolv (due to res_init or Hesiod)?
22340 if test "$resolv" = yes ; then
22341
22342 cat >>confdefs.h <<\_ACEOF
22343 #define HAVE_LIBRESOLV 1
22344 _ACEOF
22345
22346 LIBRESOLV=-lresolv
22347 else
22348 LIBRESOLV=
22349 fi
22350
22351
22352 # These tell us which Kerberos-related libraries to use.
22353 COM_ERRLIB=
22354 CRYPTOLIB=
22355 KRB5LIB=
22356 DESLIB=
22357 KRB4LIB=
22358
22359 if test "${with_kerberos}" != no; then
22360 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
22361 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
22362 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
22363 $as_echo_n "(cached) " >&6
22364 else
22365 ac_check_lib_save_LIBS=$LIBS
22366 LIBS="-lcom_err $LIBS"
22367 cat >conftest.$ac_ext <<_ACEOF
22368 /* confdefs.h. */
22369 _ACEOF
22370 cat confdefs.h >>conftest.$ac_ext
22371 cat >>conftest.$ac_ext <<_ACEOF
22372 /* end confdefs.h. */
22373
22374 /* Override any GCC internal prototype to avoid an error.
22375 Use char because int might match the return type of a GCC
22376 builtin and then its argument prototype would still apply. */
22377 #ifdef __cplusplus
22378 extern "C"
22379 #endif
22380 char com_err ();
22381 int
22382 main ()
22383 {
22384 return com_err ();
22385 ;
22386 return 0;
22387 }
22388 _ACEOF
22389 rm -f conftest.$ac_objext conftest$ac_exeext
22390 if { (ac_try="$ac_link"
22391 case "(($ac_try" in
22392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22393 *) ac_try_echo=$ac_try;;
22394 esac
22395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22396 $as_echo "$ac_try_echo") >&5
22397 (eval "$ac_link") 2>conftest.er1
22398 ac_status=$?
22399 grep -v '^ *+' conftest.er1 >conftest.err
22400 rm -f conftest.er1
22401 cat conftest.err >&5
22402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403 (exit $ac_status); } && {
22404 test -z "$ac_c_werror_flag" ||
22405 test ! -s conftest.err
22406 } && test -s conftest$ac_exeext && {
22407 test "$cross_compiling" = yes ||
22408 $as_test_x conftest$ac_exeext
22409 }; then
22410 ac_cv_lib_com_err_com_err=yes
22411 else
22412 $as_echo "$as_me: failed program was:" >&5
22413 sed 's/^/| /' conftest.$ac_ext >&5
22414
22415 ac_cv_lib_com_err_com_err=no
22416 fi
22417
22418 rm -rf conftest.dSYM
22419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22420 conftest$ac_exeext conftest.$ac_ext
22421 LIBS=$ac_check_lib_save_LIBS
22422 fi
22423 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
22424 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
22425 if test $ac_cv_lib_com_err_com_err = yes; then
22426 have_com_err=yes
22427 else
22428 have_com_err=no
22429 fi
22430
22431 if test $have_com_err = yes; then
22432 COM_ERRLIB=-lcom_err
22433 LIBS="$COM_ERRLIB $LIBS"
22434
22435 cat >>confdefs.h <<\_ACEOF
22436 #define HAVE_LIBCOM_ERR 1
22437 _ACEOF
22438
22439 fi
22440 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
22441 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
22442 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
22443 $as_echo_n "(cached) " >&6
22444 else
22445 ac_check_lib_save_LIBS=$LIBS
22446 LIBS="-lcrypto $LIBS"
22447 cat >conftest.$ac_ext <<_ACEOF
22448 /* confdefs.h. */
22449 _ACEOF
22450 cat confdefs.h >>conftest.$ac_ext
22451 cat >>conftest.$ac_ext <<_ACEOF
22452 /* end confdefs.h. */
22453
22454 /* Override any GCC internal prototype to avoid an error.
22455 Use char because int might match the return type of a GCC
22456 builtin and then its argument prototype would still apply. */
22457 #ifdef __cplusplus
22458 extern "C"
22459 #endif
22460 char mit_des_cbc_encrypt ();
22461 int
22462 main ()
22463 {
22464 return mit_des_cbc_encrypt ();
22465 ;
22466 return 0;
22467 }
22468 _ACEOF
22469 rm -f conftest.$ac_objext conftest$ac_exeext
22470 if { (ac_try="$ac_link"
22471 case "(($ac_try" in
22472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22473 *) ac_try_echo=$ac_try;;
22474 esac
22475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22476 $as_echo "$ac_try_echo") >&5
22477 (eval "$ac_link") 2>conftest.er1
22478 ac_status=$?
22479 grep -v '^ *+' conftest.er1 >conftest.err
22480 rm -f conftest.er1
22481 cat conftest.err >&5
22482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483 (exit $ac_status); } && {
22484 test -z "$ac_c_werror_flag" ||
22485 test ! -s conftest.err
22486 } && test -s conftest$ac_exeext && {
22487 test "$cross_compiling" = yes ||
22488 $as_test_x conftest$ac_exeext
22489 }; then
22490 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22491 else
22492 $as_echo "$as_me: failed program was:" >&5
22493 sed 's/^/| /' conftest.$ac_ext >&5
22494
22495 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22496 fi
22497
22498 rm -rf conftest.dSYM
22499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22500 conftest$ac_exeext conftest.$ac_ext
22501 LIBS=$ac_check_lib_save_LIBS
22502 fi
22503 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22504 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22505 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
22506 have_crypto=yes
22507 else
22508 have_crypto=no
22509 fi
22510
22511 if test $have_crypto = yes; then
22512 CRYPTOLIB=-lcrypto
22513 LIBS="$CRYPTOLIB $LIBS"
22514
22515 cat >>confdefs.h <<\_ACEOF
22516 #define HAVE_LIBCRYPTO 1
22517 _ACEOF
22518
22519 fi
22520 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
22521 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
22522 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
22523 $as_echo_n "(cached) " >&6
22524 else
22525 ac_check_lib_save_LIBS=$LIBS
22526 LIBS="-lk5crypto $LIBS"
22527 cat >conftest.$ac_ext <<_ACEOF
22528 /* confdefs.h. */
22529 _ACEOF
22530 cat confdefs.h >>conftest.$ac_ext
22531 cat >>conftest.$ac_ext <<_ACEOF
22532 /* end confdefs.h. */
22533
22534 /* Override any GCC internal prototype to avoid an error.
22535 Use char because int might match the return type of a GCC
22536 builtin and then its argument prototype would still apply. */
22537 #ifdef __cplusplus
22538 extern "C"
22539 #endif
22540 char mit_des_cbc_encrypt ();
22541 int
22542 main ()
22543 {
22544 return mit_des_cbc_encrypt ();
22545 ;
22546 return 0;
22547 }
22548 _ACEOF
22549 rm -f conftest.$ac_objext conftest$ac_exeext
22550 if { (ac_try="$ac_link"
22551 case "(($ac_try" in
22552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22553 *) ac_try_echo=$ac_try;;
22554 esac
22555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22556 $as_echo "$ac_try_echo") >&5
22557 (eval "$ac_link") 2>conftest.er1
22558 ac_status=$?
22559 grep -v '^ *+' conftest.er1 >conftest.err
22560 rm -f conftest.er1
22561 cat conftest.err >&5
22562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); } && {
22564 test -z "$ac_c_werror_flag" ||
22565 test ! -s conftest.err
22566 } && test -s conftest$ac_exeext && {
22567 test "$cross_compiling" = yes ||
22568 $as_test_x conftest$ac_exeext
22569 }; then
22570 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22571 else
22572 $as_echo "$as_me: failed program was:" >&5
22573 sed 's/^/| /' conftest.$ac_ext >&5
22574
22575 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22576 fi
22577
22578 rm -rf conftest.dSYM
22579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22580 conftest$ac_exeext conftest.$ac_ext
22581 LIBS=$ac_check_lib_save_LIBS
22582 fi
22583 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22584 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22585 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
22586 have_k5crypto=yes
22587 else
22588 have_k5crypto=no
22589 fi
22590
22591 if test $have_k5crypto = yes; then
22592 CRYPTOLIB=-lk5crypto
22593 LIBS="$CRYPTOLIB $LIBS"
22594
22595 cat >>confdefs.h <<\_ACEOF
22596 #define HAVE_LIBK5CRYPTO 1
22597 _ACEOF
22598
22599 fi
22600 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
22601 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
22602 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22603 $as_echo_n "(cached) " >&6
22604 else
22605 ac_check_lib_save_LIBS=$LIBS
22606 LIBS="-lkrb5 $LIBS"
22607 cat >conftest.$ac_ext <<_ACEOF
22608 /* confdefs.h. */
22609 _ACEOF
22610 cat confdefs.h >>conftest.$ac_ext
22611 cat >>conftest.$ac_ext <<_ACEOF
22612 /* end confdefs.h. */
22613
22614 /* Override any GCC internal prototype to avoid an error.
22615 Use char because int might match the return type of a GCC
22616 builtin and then its argument prototype would still apply. */
22617 #ifdef __cplusplus
22618 extern "C"
22619 #endif
22620 char krb5_init_context ();
22621 int
22622 main ()
22623 {
22624 return krb5_init_context ();
22625 ;
22626 return 0;
22627 }
22628 _ACEOF
22629 rm -f conftest.$ac_objext conftest$ac_exeext
22630 if { (ac_try="$ac_link"
22631 case "(($ac_try" in
22632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22633 *) ac_try_echo=$ac_try;;
22634 esac
22635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22636 $as_echo "$ac_try_echo") >&5
22637 (eval "$ac_link") 2>conftest.er1
22638 ac_status=$?
22639 grep -v '^ *+' conftest.er1 >conftest.err
22640 rm -f conftest.er1
22641 cat conftest.err >&5
22642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643 (exit $ac_status); } && {
22644 test -z "$ac_c_werror_flag" ||
22645 test ! -s conftest.err
22646 } && test -s conftest$ac_exeext && {
22647 test "$cross_compiling" = yes ||
22648 $as_test_x conftest$ac_exeext
22649 }; then
22650 ac_cv_lib_krb5_krb5_init_context=yes
22651 else
22652 $as_echo "$as_me: failed program was:" >&5
22653 sed 's/^/| /' conftest.$ac_ext >&5
22654
22655 ac_cv_lib_krb5_krb5_init_context=no
22656 fi
22657
22658 rm -rf conftest.dSYM
22659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22660 conftest$ac_exeext conftest.$ac_ext
22661 LIBS=$ac_check_lib_save_LIBS
22662 fi
22663 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
22664 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22665 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
22666 have_krb5=yes
22667 else
22668 have_krb5=no
22669 fi
22670
22671 if test $have_krb5=yes; then
22672 KRB5LIB=-lkrb5
22673 LIBS="$KRB5LIB $LIBS"
22674
22675 cat >>confdefs.h <<\_ACEOF
22676 #define HAVE_LIBKRB5 1
22677 _ACEOF
22678
22679 fi
22680 if test "${with_kerberos5}" = no; then
22681 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
22682 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
22683 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22684 $as_echo_n "(cached) " >&6
22685 else
22686 ac_check_lib_save_LIBS=$LIBS
22687 LIBS="-ldes425 $LIBS"
22688 cat >conftest.$ac_ext <<_ACEOF
22689 /* confdefs.h. */
22690 _ACEOF
22691 cat confdefs.h >>conftest.$ac_ext
22692 cat >>conftest.$ac_ext <<_ACEOF
22693 /* end confdefs.h. */
22694
22695 /* Override any GCC internal prototype to avoid an error.
22696 Use char because int might match the return type of a GCC
22697 builtin and then its argument prototype would still apply. */
22698 #ifdef __cplusplus
22699 extern "C"
22700 #endif
22701 char des_cbc_encrypt ();
22702 int
22703 main ()
22704 {
22705 return des_cbc_encrypt ();
22706 ;
22707 return 0;
22708 }
22709 _ACEOF
22710 rm -f conftest.$ac_objext conftest$ac_exeext
22711 if { (ac_try="$ac_link"
22712 case "(($ac_try" in
22713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22714 *) ac_try_echo=$ac_try;;
22715 esac
22716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22717 $as_echo "$ac_try_echo") >&5
22718 (eval "$ac_link") 2>conftest.er1
22719 ac_status=$?
22720 grep -v '^ *+' conftest.er1 >conftest.err
22721 rm -f conftest.er1
22722 cat conftest.err >&5
22723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724 (exit $ac_status); } && {
22725 test -z "$ac_c_werror_flag" ||
22726 test ! -s conftest.err
22727 } && test -s conftest$ac_exeext && {
22728 test "$cross_compiling" = yes ||
22729 $as_test_x conftest$ac_exeext
22730 }; then
22731 ac_cv_lib_des425_des_cbc_encrypt=yes
22732 else
22733 $as_echo "$as_me: failed program was:" >&5
22734 sed 's/^/| /' conftest.$ac_ext >&5
22735
22736 ac_cv_lib_des425_des_cbc_encrypt=no
22737 fi
22738
22739 rm -rf conftest.dSYM
22740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22741 conftest$ac_exeext conftest.$ac_ext
22742 LIBS=$ac_check_lib_save_LIBS
22743 fi
22744 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22745 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22746 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
22747 have_des425=yes
22748 else
22749 have_des425=no
22750 fi
22751
22752 if test $have_des425 = yes; then
22753 DESLIB=-ldes425
22754 LIBS="$DESLIB $LIBS"
22755
22756 cat >>confdefs.h <<\_ACEOF
22757 #define HAVE_LIBDES425 1
22758 _ACEOF
22759
22760 else
22761 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
22762 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
22763 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22764 $as_echo_n "(cached) " >&6
22765 else
22766 ac_check_lib_save_LIBS=$LIBS
22767 LIBS="-ldes $LIBS"
22768 cat >conftest.$ac_ext <<_ACEOF
22769 /* confdefs.h. */
22770 _ACEOF
22771 cat confdefs.h >>conftest.$ac_ext
22772 cat >>conftest.$ac_ext <<_ACEOF
22773 /* end confdefs.h. */
22774
22775 /* Override any GCC internal prototype to avoid an error.
22776 Use char because int might match the return type of a GCC
22777 builtin and then its argument prototype would still apply. */
22778 #ifdef __cplusplus
22779 extern "C"
22780 #endif
22781 char des_cbc_encrypt ();
22782 int
22783 main ()
22784 {
22785 return des_cbc_encrypt ();
22786 ;
22787 return 0;
22788 }
22789 _ACEOF
22790 rm -f conftest.$ac_objext conftest$ac_exeext
22791 if { (ac_try="$ac_link"
22792 case "(($ac_try" in
22793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22794 *) ac_try_echo=$ac_try;;
22795 esac
22796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22797 $as_echo "$ac_try_echo") >&5
22798 (eval "$ac_link") 2>conftest.er1
22799 ac_status=$?
22800 grep -v '^ *+' conftest.er1 >conftest.err
22801 rm -f conftest.er1
22802 cat conftest.err >&5
22803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22804 (exit $ac_status); } && {
22805 test -z "$ac_c_werror_flag" ||
22806 test ! -s conftest.err
22807 } && test -s conftest$ac_exeext && {
22808 test "$cross_compiling" = yes ||
22809 $as_test_x conftest$ac_exeext
22810 }; then
22811 ac_cv_lib_des_des_cbc_encrypt=yes
22812 else
22813 $as_echo "$as_me: failed program was:" >&5
22814 sed 's/^/| /' conftest.$ac_ext >&5
22815
22816 ac_cv_lib_des_des_cbc_encrypt=no
22817 fi
22818
22819 rm -rf conftest.dSYM
22820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22821 conftest$ac_exeext conftest.$ac_ext
22822 LIBS=$ac_check_lib_save_LIBS
22823 fi
22824 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
22825 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22826 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
22827 have_des=yes
22828 else
22829 have_des=no
22830 fi
22831
22832 if test $have_des = yes; then
22833 DESLIB=-ldes
22834 LIBS="$DESLIB $LIBS"
22835
22836 cat >>confdefs.h <<\_ACEOF
22837 #define HAVE_LIBDES 1
22838 _ACEOF
22839
22840 fi
22841 fi
22842 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
22843 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
22844 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22845 $as_echo_n "(cached) " >&6
22846 else
22847 ac_check_lib_save_LIBS=$LIBS
22848 LIBS="-lkrb4 $LIBS"
22849 cat >conftest.$ac_ext <<_ACEOF
22850 /* confdefs.h. */
22851 _ACEOF
22852 cat confdefs.h >>conftest.$ac_ext
22853 cat >>conftest.$ac_ext <<_ACEOF
22854 /* end confdefs.h. */
22855
22856 /* Override any GCC internal prototype to avoid an error.
22857 Use char because int might match the return type of a GCC
22858 builtin and then its argument prototype would still apply. */
22859 #ifdef __cplusplus
22860 extern "C"
22861 #endif
22862 char krb_get_cred ();
22863 int
22864 main ()
22865 {
22866 return krb_get_cred ();
22867 ;
22868 return 0;
22869 }
22870 _ACEOF
22871 rm -f conftest.$ac_objext conftest$ac_exeext
22872 if { (ac_try="$ac_link"
22873 case "(($ac_try" in
22874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22875 *) ac_try_echo=$ac_try;;
22876 esac
22877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22878 $as_echo "$ac_try_echo") >&5
22879 (eval "$ac_link") 2>conftest.er1
22880 ac_status=$?
22881 grep -v '^ *+' conftest.er1 >conftest.err
22882 rm -f conftest.er1
22883 cat conftest.err >&5
22884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885 (exit $ac_status); } && {
22886 test -z "$ac_c_werror_flag" ||
22887 test ! -s conftest.err
22888 } && test -s conftest$ac_exeext && {
22889 test "$cross_compiling" = yes ||
22890 $as_test_x conftest$ac_exeext
22891 }; then
22892 ac_cv_lib_krb4_krb_get_cred=yes
22893 else
22894 $as_echo "$as_me: failed program was:" >&5
22895 sed 's/^/| /' conftest.$ac_ext >&5
22896
22897 ac_cv_lib_krb4_krb_get_cred=no
22898 fi
22899
22900 rm -rf conftest.dSYM
22901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22902 conftest$ac_exeext conftest.$ac_ext
22903 LIBS=$ac_check_lib_save_LIBS
22904 fi
22905 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
22906 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22907 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22908 have_krb4=yes
22909 else
22910 have_krb4=no
22911 fi
22912
22913 if test $have_krb4 = yes; then
22914 KRB4LIB=-lkrb4
22915 LIBS="$KRB4LIB $LIBS"
22916
22917 cat >>confdefs.h <<\_ACEOF
22918 #define HAVE_LIBKRB4 1
22919 _ACEOF
22920
22921 else
22922 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
22923 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
22924 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22925 $as_echo_n "(cached) " >&6
22926 else
22927 ac_check_lib_save_LIBS=$LIBS
22928 LIBS="-lkrb $LIBS"
22929 cat >conftest.$ac_ext <<_ACEOF
22930 /* confdefs.h. */
22931 _ACEOF
22932 cat confdefs.h >>conftest.$ac_ext
22933 cat >>conftest.$ac_ext <<_ACEOF
22934 /* end confdefs.h. */
22935
22936 /* Override any GCC internal prototype to avoid an error.
22937 Use char because int might match the return type of a GCC
22938 builtin and then its argument prototype would still apply. */
22939 #ifdef __cplusplus
22940 extern "C"
22941 #endif
22942 char krb_get_cred ();
22943 int
22944 main ()
22945 {
22946 return krb_get_cred ();
22947 ;
22948 return 0;
22949 }
22950 _ACEOF
22951 rm -f conftest.$ac_objext conftest$ac_exeext
22952 if { (ac_try="$ac_link"
22953 case "(($ac_try" in
22954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22955 *) ac_try_echo=$ac_try;;
22956 esac
22957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22958 $as_echo "$ac_try_echo") >&5
22959 (eval "$ac_link") 2>conftest.er1
22960 ac_status=$?
22961 grep -v '^ *+' conftest.er1 >conftest.err
22962 rm -f conftest.er1
22963 cat conftest.err >&5
22964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22965 (exit $ac_status); } && {
22966 test -z "$ac_c_werror_flag" ||
22967 test ! -s conftest.err
22968 } && test -s conftest$ac_exeext && {
22969 test "$cross_compiling" = yes ||
22970 $as_test_x conftest$ac_exeext
22971 }; then
22972 ac_cv_lib_krb_krb_get_cred=yes
22973 else
22974 $as_echo "$as_me: failed program was:" >&5
22975 sed 's/^/| /' conftest.$ac_ext >&5
22976
22977 ac_cv_lib_krb_krb_get_cred=no
22978 fi
22979
22980 rm -rf conftest.dSYM
22981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22982 conftest$ac_exeext conftest.$ac_ext
22983 LIBS=$ac_check_lib_save_LIBS
22984 fi
22985 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
22986 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22987 if test $ac_cv_lib_krb_krb_get_cred = yes; then
22988 have_krb=yes
22989 else
22990 have_krb=no
22991 fi
22992
22993 if test $have_krb = yes; then
22994 KRB4LIB=-lkrb
22995 LIBS="$KRB4LIB $LIBS"
22996
22997 cat >>confdefs.h <<\_ACEOF
22998 #define HAVE_LIBKRB 1
22999 _ACEOF
23000
23001 fi
23002 fi
23003 fi
23004
23005 if test "${with_kerberos5}" != no; then
23006
23007 for ac_header in krb5.h
23008 do
23009 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23011 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23012 $as_echo_n "checking for $ac_header... " >&6; }
23013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23014 $as_echo_n "(cached) " >&6
23015 fi
23016 ac_res=`eval 'as_val=${'$as_ac_Header'}
23017 $as_echo "$as_val"'`
23018 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23019 $as_echo "$ac_res" >&6; }
23020 else
23021 # Is the header compilable?
23022 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23023 $as_echo_n "checking $ac_header usability... " >&6; }
23024 cat >conftest.$ac_ext <<_ACEOF
23025 /* confdefs.h. */
23026 _ACEOF
23027 cat confdefs.h >>conftest.$ac_ext
23028 cat >>conftest.$ac_ext <<_ACEOF
23029 /* end confdefs.h. */
23030 $ac_includes_default
23031 #include <$ac_header>
23032 _ACEOF
23033 rm -f conftest.$ac_objext
23034 if { (ac_try="$ac_compile"
23035 case "(($ac_try" in
23036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23037 *) ac_try_echo=$ac_try;;
23038 esac
23039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23040 $as_echo "$ac_try_echo") >&5
23041 (eval "$ac_compile") 2>conftest.er1
23042 ac_status=$?
23043 grep -v '^ *+' conftest.er1 >conftest.err
23044 rm -f conftest.er1
23045 cat conftest.err >&5
23046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23047 (exit $ac_status); } && {
23048 test -z "$ac_c_werror_flag" ||
23049 test ! -s conftest.err
23050 } && test -s conftest.$ac_objext; then
23051 ac_header_compiler=yes
23052 else
23053 $as_echo "$as_me: failed program was:" >&5
23054 sed 's/^/| /' conftest.$ac_ext >&5
23055
23056 ac_header_compiler=no
23057 fi
23058
23059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23060 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23061 $as_echo "$ac_header_compiler" >&6; }
23062
23063 # Is the header present?
23064 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23065 $as_echo_n "checking $ac_header presence... " >&6; }
23066 cat >conftest.$ac_ext <<_ACEOF
23067 /* confdefs.h. */
23068 _ACEOF
23069 cat confdefs.h >>conftest.$ac_ext
23070 cat >>conftest.$ac_ext <<_ACEOF
23071 /* end confdefs.h. */
23072 #include <$ac_header>
23073 _ACEOF
23074 if { (ac_try="$ac_cpp conftest.$ac_ext"
23075 case "(($ac_try" in
23076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23077 *) ac_try_echo=$ac_try;;
23078 esac
23079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23080 $as_echo "$ac_try_echo") >&5
23081 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23082 ac_status=$?
23083 grep -v '^ *+' conftest.er1 >conftest.err
23084 rm -f conftest.er1
23085 cat conftest.err >&5
23086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23087 (exit $ac_status); } >/dev/null && {
23088 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23089 test ! -s conftest.err
23090 }; then
23091 ac_header_preproc=yes
23092 else
23093 $as_echo "$as_me: failed program was:" >&5
23094 sed 's/^/| /' conftest.$ac_ext >&5
23095
23096 ac_header_preproc=no
23097 fi
23098
23099 rm -f conftest.err conftest.$ac_ext
23100 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23101 $as_echo "$ac_header_preproc" >&6; }
23102
23103 # So? What about this header?
23104 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23105 yes:no: )
23106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23107 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23109 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23110 ac_header_preproc=yes
23111 ;;
23112 no:yes:* )
23113 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23114 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23115 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23116 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23117 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23118 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23119 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23120 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23121 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23122 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23123 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23124 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23125
23126 ;;
23127 esac
23128 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23129 $as_echo_n "checking for $ac_header... " >&6; }
23130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23131 $as_echo_n "(cached) " >&6
23132 else
23133 eval "$as_ac_Header=\$ac_header_preproc"
23134 fi
23135 ac_res=`eval 'as_val=${'$as_ac_Header'}
23136 $as_echo "$as_val"'`
23137 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23138 $as_echo "$ac_res" >&6; }
23139
23140 fi
23141 if test `eval 'as_val=${'$as_ac_Header'}
23142 $as_echo "$as_val"'` = yes; then
23143 cat >>confdefs.h <<_ACEOF
23144 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23145 _ACEOF
23146 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
23147 $as_echo_n "checking for krb5_error.text... " >&6; }
23148 if test "${ac_cv_member_krb5_error_text+set}" = set; then
23149 $as_echo_n "(cached) " >&6
23150 else
23151 cat >conftest.$ac_ext <<_ACEOF
23152 /* confdefs.h. */
23153 _ACEOF
23154 cat confdefs.h >>conftest.$ac_ext
23155 cat >>conftest.$ac_ext <<_ACEOF
23156 /* end confdefs.h. */
23157 #include <krb5.h>
23158
23159 int
23160 main ()
23161 {
23162 static krb5_error ac_aggr;
23163 if (ac_aggr.text)
23164 return 0;
23165 ;
23166 return 0;
23167 }
23168 _ACEOF
23169 rm -f conftest.$ac_objext
23170 if { (ac_try="$ac_compile"
23171 case "(($ac_try" in
23172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23173 *) ac_try_echo=$ac_try;;
23174 esac
23175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23176 $as_echo "$ac_try_echo") >&5
23177 (eval "$ac_compile") 2>conftest.er1
23178 ac_status=$?
23179 grep -v '^ *+' conftest.er1 >conftest.err
23180 rm -f conftest.er1
23181 cat conftest.err >&5
23182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183 (exit $ac_status); } && {
23184 test -z "$ac_c_werror_flag" ||
23185 test ! -s conftest.err
23186 } && test -s conftest.$ac_objext; then
23187 ac_cv_member_krb5_error_text=yes
23188 else
23189 $as_echo "$as_me: failed program was:" >&5
23190 sed 's/^/| /' conftest.$ac_ext >&5
23191
23192 cat >conftest.$ac_ext <<_ACEOF
23193 /* confdefs.h. */
23194 _ACEOF
23195 cat confdefs.h >>conftest.$ac_ext
23196 cat >>conftest.$ac_ext <<_ACEOF
23197 /* end confdefs.h. */
23198 #include <krb5.h>
23199
23200 int
23201 main ()
23202 {
23203 static krb5_error ac_aggr;
23204 if (sizeof ac_aggr.text)
23205 return 0;
23206 ;
23207 return 0;
23208 }
23209 _ACEOF
23210 rm -f conftest.$ac_objext
23211 if { (ac_try="$ac_compile"
23212 case "(($ac_try" in
23213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23214 *) ac_try_echo=$ac_try;;
23215 esac
23216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23217 $as_echo "$ac_try_echo") >&5
23218 (eval "$ac_compile") 2>conftest.er1
23219 ac_status=$?
23220 grep -v '^ *+' conftest.er1 >conftest.err
23221 rm -f conftest.er1
23222 cat conftest.err >&5
23223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224 (exit $ac_status); } && {
23225 test -z "$ac_c_werror_flag" ||
23226 test ! -s conftest.err
23227 } && test -s conftest.$ac_objext; then
23228 ac_cv_member_krb5_error_text=yes
23229 else
23230 $as_echo "$as_me: failed program was:" >&5
23231 sed 's/^/| /' conftest.$ac_ext >&5
23232
23233 ac_cv_member_krb5_error_text=no
23234 fi
23235
23236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23237 fi
23238
23239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23240 fi
23241 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
23242 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
23243 if test $ac_cv_member_krb5_error_text = yes; then
23244
23245 cat >>confdefs.h <<_ACEOF
23246 #define HAVE_KRB5_ERROR_TEXT 1
23247 _ACEOF
23248
23249
23250 fi
23251 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
23252 $as_echo_n "checking for krb5_error.e_text... " >&6; }
23253 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
23254 $as_echo_n "(cached) " >&6
23255 else
23256 cat >conftest.$ac_ext <<_ACEOF
23257 /* confdefs.h. */
23258 _ACEOF
23259 cat confdefs.h >>conftest.$ac_ext
23260 cat >>conftest.$ac_ext <<_ACEOF
23261 /* end confdefs.h. */
23262 #include <krb5.h>
23263
23264 int
23265 main ()
23266 {
23267 static krb5_error ac_aggr;
23268 if (ac_aggr.e_text)
23269 return 0;
23270 ;
23271 return 0;
23272 }
23273 _ACEOF
23274 rm -f conftest.$ac_objext
23275 if { (ac_try="$ac_compile"
23276 case "(($ac_try" in
23277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23278 *) ac_try_echo=$ac_try;;
23279 esac
23280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23281 $as_echo "$ac_try_echo") >&5
23282 (eval "$ac_compile") 2>conftest.er1
23283 ac_status=$?
23284 grep -v '^ *+' conftest.er1 >conftest.err
23285 rm -f conftest.er1
23286 cat conftest.err >&5
23287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23288 (exit $ac_status); } && {
23289 test -z "$ac_c_werror_flag" ||
23290 test ! -s conftest.err
23291 } && test -s conftest.$ac_objext; then
23292 ac_cv_member_krb5_error_e_text=yes
23293 else
23294 $as_echo "$as_me: failed program was:" >&5
23295 sed 's/^/| /' conftest.$ac_ext >&5
23296
23297 cat >conftest.$ac_ext <<_ACEOF
23298 /* confdefs.h. */
23299 _ACEOF
23300 cat confdefs.h >>conftest.$ac_ext
23301 cat >>conftest.$ac_ext <<_ACEOF
23302 /* end confdefs.h. */
23303 #include <krb5.h>
23304
23305 int
23306 main ()
23307 {
23308 static krb5_error ac_aggr;
23309 if (sizeof ac_aggr.e_text)
23310 return 0;
23311 ;
23312 return 0;
23313 }
23314 _ACEOF
23315 rm -f conftest.$ac_objext
23316 if { (ac_try="$ac_compile"
23317 case "(($ac_try" in
23318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23319 *) ac_try_echo=$ac_try;;
23320 esac
23321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23322 $as_echo "$ac_try_echo") >&5
23323 (eval "$ac_compile") 2>conftest.er1
23324 ac_status=$?
23325 grep -v '^ *+' conftest.er1 >conftest.err
23326 rm -f conftest.er1
23327 cat conftest.err >&5
23328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23329 (exit $ac_status); } && {
23330 test -z "$ac_c_werror_flag" ||
23331 test ! -s conftest.err
23332 } && test -s conftest.$ac_objext; then
23333 ac_cv_member_krb5_error_e_text=yes
23334 else
23335 $as_echo "$as_me: failed program was:" >&5
23336 sed 's/^/| /' conftest.$ac_ext >&5
23337
23338 ac_cv_member_krb5_error_e_text=no
23339 fi
23340
23341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23342 fi
23343
23344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23345 fi
23346 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
23347 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
23348 if test $ac_cv_member_krb5_error_e_text = yes; then
23349
23350 cat >>confdefs.h <<_ACEOF
23351 #define HAVE_KRB5_ERROR_E_TEXT 1
23352 _ACEOF
23353
23354
23355 fi
23356
23357 fi
23358
23359 done
23360
23361 else
23362
23363 for ac_header in des.h
23364 do
23365 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23367 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23368 $as_echo_n "checking for $ac_header... " >&6; }
23369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23370 $as_echo_n "(cached) " >&6
23371 fi
23372 ac_res=`eval 'as_val=${'$as_ac_Header'}
23373 $as_echo "$as_val"'`
23374 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23375 $as_echo "$ac_res" >&6; }
23376 else
23377 # Is the header compilable?
23378 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23379 $as_echo_n "checking $ac_header usability... " >&6; }
23380 cat >conftest.$ac_ext <<_ACEOF
23381 /* confdefs.h. */
23382 _ACEOF
23383 cat confdefs.h >>conftest.$ac_ext
23384 cat >>conftest.$ac_ext <<_ACEOF
23385 /* end confdefs.h. */
23386 $ac_includes_default
23387 #include <$ac_header>
23388 _ACEOF
23389 rm -f conftest.$ac_objext
23390 if { (ac_try="$ac_compile"
23391 case "(($ac_try" in
23392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23393 *) ac_try_echo=$ac_try;;
23394 esac
23395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23396 $as_echo "$ac_try_echo") >&5
23397 (eval "$ac_compile") 2>conftest.er1
23398 ac_status=$?
23399 grep -v '^ *+' conftest.er1 >conftest.err
23400 rm -f conftest.er1
23401 cat conftest.err >&5
23402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23403 (exit $ac_status); } && {
23404 test -z "$ac_c_werror_flag" ||
23405 test ! -s conftest.err
23406 } && test -s conftest.$ac_objext; then
23407 ac_header_compiler=yes
23408 else
23409 $as_echo "$as_me: failed program was:" >&5
23410 sed 's/^/| /' conftest.$ac_ext >&5
23411
23412 ac_header_compiler=no
23413 fi
23414
23415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23416 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23417 $as_echo "$ac_header_compiler" >&6; }
23418
23419 # Is the header present?
23420 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23421 $as_echo_n "checking $ac_header presence... " >&6; }
23422 cat >conftest.$ac_ext <<_ACEOF
23423 /* confdefs.h. */
23424 _ACEOF
23425 cat confdefs.h >>conftest.$ac_ext
23426 cat >>conftest.$ac_ext <<_ACEOF
23427 /* end confdefs.h. */
23428 #include <$ac_header>
23429 _ACEOF
23430 if { (ac_try="$ac_cpp conftest.$ac_ext"
23431 case "(($ac_try" in
23432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23433 *) ac_try_echo=$ac_try;;
23434 esac
23435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23436 $as_echo "$ac_try_echo") >&5
23437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23438 ac_status=$?
23439 grep -v '^ *+' conftest.er1 >conftest.err
23440 rm -f conftest.er1
23441 cat conftest.err >&5
23442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23443 (exit $ac_status); } >/dev/null && {
23444 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23445 test ! -s conftest.err
23446 }; then
23447 ac_header_preproc=yes
23448 else
23449 $as_echo "$as_me: failed program was:" >&5
23450 sed 's/^/| /' conftest.$ac_ext >&5
23451
23452 ac_header_preproc=no
23453 fi
23454
23455 rm -f conftest.err conftest.$ac_ext
23456 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23457 $as_echo "$ac_header_preproc" >&6; }
23458
23459 # So? What about this header?
23460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23461 yes:no: )
23462 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23463 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23464 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23465 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23466 ac_header_preproc=yes
23467 ;;
23468 no:yes:* )
23469 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23470 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23471 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23472 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23473 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23474 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23475 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23476 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23477 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23478 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23479 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23480 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23481
23482 ;;
23483 esac
23484 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23485 $as_echo_n "checking for $ac_header... " >&6; }
23486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23487 $as_echo_n "(cached) " >&6
23488 else
23489 eval "$as_ac_Header=\$ac_header_preproc"
23490 fi
23491 ac_res=`eval 'as_val=${'$as_ac_Header'}
23492 $as_echo "$as_val"'`
23493 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23494 $as_echo "$ac_res" >&6; }
23495
23496 fi
23497 if test `eval 'as_val=${'$as_ac_Header'}
23498 $as_echo "$as_val"'` = yes; then
23499 cat >>confdefs.h <<_ACEOF
23500 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23501 _ACEOF
23502
23503 else
23504
23505 for ac_header in kerberosIV/des.h
23506 do
23507 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23509 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23510 $as_echo_n "checking for $ac_header... " >&6; }
23511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23512 $as_echo_n "(cached) " >&6
23513 fi
23514 ac_res=`eval 'as_val=${'$as_ac_Header'}
23515 $as_echo "$as_val"'`
23516 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23517 $as_echo "$ac_res" >&6; }
23518 else
23519 # Is the header compilable?
23520 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23521 $as_echo_n "checking $ac_header usability... " >&6; }
23522 cat >conftest.$ac_ext <<_ACEOF
23523 /* confdefs.h. */
23524 _ACEOF
23525 cat confdefs.h >>conftest.$ac_ext
23526 cat >>conftest.$ac_ext <<_ACEOF
23527 /* end confdefs.h. */
23528 $ac_includes_default
23529 #include <$ac_header>
23530 _ACEOF
23531 rm -f conftest.$ac_objext
23532 if { (ac_try="$ac_compile"
23533 case "(($ac_try" in
23534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23535 *) ac_try_echo=$ac_try;;
23536 esac
23537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23538 $as_echo "$ac_try_echo") >&5
23539 (eval "$ac_compile") 2>conftest.er1
23540 ac_status=$?
23541 grep -v '^ *+' conftest.er1 >conftest.err
23542 rm -f conftest.er1
23543 cat conftest.err >&5
23544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23545 (exit $ac_status); } && {
23546 test -z "$ac_c_werror_flag" ||
23547 test ! -s conftest.err
23548 } && test -s conftest.$ac_objext; then
23549 ac_header_compiler=yes
23550 else
23551 $as_echo "$as_me: failed program was:" >&5
23552 sed 's/^/| /' conftest.$ac_ext >&5
23553
23554 ac_header_compiler=no
23555 fi
23556
23557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23558 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23559 $as_echo "$ac_header_compiler" >&6; }
23560
23561 # Is the header present?
23562 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23563 $as_echo_n "checking $ac_header presence... " >&6; }
23564 cat >conftest.$ac_ext <<_ACEOF
23565 /* confdefs.h. */
23566 _ACEOF
23567 cat confdefs.h >>conftest.$ac_ext
23568 cat >>conftest.$ac_ext <<_ACEOF
23569 /* end confdefs.h. */
23570 #include <$ac_header>
23571 _ACEOF
23572 if { (ac_try="$ac_cpp conftest.$ac_ext"
23573 case "(($ac_try" in
23574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23575 *) ac_try_echo=$ac_try;;
23576 esac
23577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23578 $as_echo "$ac_try_echo") >&5
23579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23580 ac_status=$?
23581 grep -v '^ *+' conftest.er1 >conftest.err
23582 rm -f conftest.er1
23583 cat conftest.err >&5
23584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585 (exit $ac_status); } >/dev/null && {
23586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23587 test ! -s conftest.err
23588 }; then
23589 ac_header_preproc=yes
23590 else
23591 $as_echo "$as_me: failed program was:" >&5
23592 sed 's/^/| /' conftest.$ac_ext >&5
23593
23594 ac_header_preproc=no
23595 fi
23596
23597 rm -f conftest.err conftest.$ac_ext
23598 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23599 $as_echo "$ac_header_preproc" >&6; }
23600
23601 # So? What about this header?
23602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23603 yes:no: )
23604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23605 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23607 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23608 ac_header_preproc=yes
23609 ;;
23610 no:yes:* )
23611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23612 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23614 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23616 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23618 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23620 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23622 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23623
23624 ;;
23625 esac
23626 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23627 $as_echo_n "checking for $ac_header... " >&6; }
23628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23629 $as_echo_n "(cached) " >&6
23630 else
23631 eval "$as_ac_Header=\$ac_header_preproc"
23632 fi
23633 ac_res=`eval 'as_val=${'$as_ac_Header'}
23634 $as_echo "$as_val"'`
23635 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23636 $as_echo "$ac_res" >&6; }
23637
23638 fi
23639 if test `eval 'as_val=${'$as_ac_Header'}
23640 $as_echo "$as_val"'` = yes; then
23641 cat >>confdefs.h <<_ACEOF
23642 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23643 _ACEOF
23644
23645 else
23646
23647 for ac_header in kerberos/des.h
23648 do
23649 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23651 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23652 $as_echo_n "checking for $ac_header... " >&6; }
23653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23654 $as_echo_n "(cached) " >&6
23655 fi
23656 ac_res=`eval 'as_val=${'$as_ac_Header'}
23657 $as_echo "$as_val"'`
23658 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23659 $as_echo "$ac_res" >&6; }
23660 else
23661 # Is the header compilable?
23662 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23663 $as_echo_n "checking $ac_header usability... " >&6; }
23664 cat >conftest.$ac_ext <<_ACEOF
23665 /* confdefs.h. */
23666 _ACEOF
23667 cat confdefs.h >>conftest.$ac_ext
23668 cat >>conftest.$ac_ext <<_ACEOF
23669 /* end confdefs.h. */
23670 $ac_includes_default
23671 #include <$ac_header>
23672 _ACEOF
23673 rm -f conftest.$ac_objext
23674 if { (ac_try="$ac_compile"
23675 case "(($ac_try" in
23676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23677 *) ac_try_echo=$ac_try;;
23678 esac
23679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23680 $as_echo "$ac_try_echo") >&5
23681 (eval "$ac_compile") 2>conftest.er1
23682 ac_status=$?
23683 grep -v '^ *+' conftest.er1 >conftest.err
23684 rm -f conftest.er1
23685 cat conftest.err >&5
23686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23687 (exit $ac_status); } && {
23688 test -z "$ac_c_werror_flag" ||
23689 test ! -s conftest.err
23690 } && test -s conftest.$ac_objext; then
23691 ac_header_compiler=yes
23692 else
23693 $as_echo "$as_me: failed program was:" >&5
23694 sed 's/^/| /' conftest.$ac_ext >&5
23695
23696 ac_header_compiler=no
23697 fi
23698
23699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23700 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23701 $as_echo "$ac_header_compiler" >&6; }
23702
23703 # Is the header present?
23704 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23705 $as_echo_n "checking $ac_header presence... " >&6; }
23706 cat >conftest.$ac_ext <<_ACEOF
23707 /* confdefs.h. */
23708 _ACEOF
23709 cat confdefs.h >>conftest.$ac_ext
23710 cat >>conftest.$ac_ext <<_ACEOF
23711 /* end confdefs.h. */
23712 #include <$ac_header>
23713 _ACEOF
23714 if { (ac_try="$ac_cpp conftest.$ac_ext"
23715 case "(($ac_try" in
23716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23717 *) ac_try_echo=$ac_try;;
23718 esac
23719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23720 $as_echo "$ac_try_echo") >&5
23721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23722 ac_status=$?
23723 grep -v '^ *+' conftest.er1 >conftest.err
23724 rm -f conftest.er1
23725 cat conftest.err >&5
23726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727 (exit $ac_status); } >/dev/null && {
23728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23729 test ! -s conftest.err
23730 }; then
23731 ac_header_preproc=yes
23732 else
23733 $as_echo "$as_me: failed program was:" >&5
23734 sed 's/^/| /' conftest.$ac_ext >&5
23735
23736 ac_header_preproc=no
23737 fi
23738
23739 rm -f conftest.err conftest.$ac_ext
23740 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23741 $as_echo "$ac_header_preproc" >&6; }
23742
23743 # So? What about this header?
23744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23745 yes:no: )
23746 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23747 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23748 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23749 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23750 ac_header_preproc=yes
23751 ;;
23752 no:yes:* )
23753 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23754 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23755 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23756 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23758 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23760 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23761 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23762 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23764 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23765
23766 ;;
23767 esac
23768 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23769 $as_echo_n "checking for $ac_header... " >&6; }
23770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23771 $as_echo_n "(cached) " >&6
23772 else
23773 eval "$as_ac_Header=\$ac_header_preproc"
23774 fi
23775 ac_res=`eval 'as_val=${'$as_ac_Header'}
23776 $as_echo "$as_val"'`
23777 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23778 $as_echo "$ac_res" >&6; }
23779
23780 fi
23781 if test `eval 'as_val=${'$as_ac_Header'}
23782 $as_echo "$as_val"'` = yes; then
23783 cat >>confdefs.h <<_ACEOF
23784 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23785 _ACEOF
23786
23787 fi
23788
23789 done
23790
23791 fi
23792
23793 done
23794
23795 fi
23796
23797 done
23798
23799
23800 for ac_header in krb.h
23801 do
23802 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23804 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23805 $as_echo_n "checking for $ac_header... " >&6; }
23806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23807 $as_echo_n "(cached) " >&6
23808 fi
23809 ac_res=`eval 'as_val=${'$as_ac_Header'}
23810 $as_echo "$as_val"'`
23811 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23812 $as_echo "$ac_res" >&6; }
23813 else
23814 # Is the header compilable?
23815 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23816 $as_echo_n "checking $ac_header usability... " >&6; }
23817 cat >conftest.$ac_ext <<_ACEOF
23818 /* confdefs.h. */
23819 _ACEOF
23820 cat confdefs.h >>conftest.$ac_ext
23821 cat >>conftest.$ac_ext <<_ACEOF
23822 /* end confdefs.h. */
23823 $ac_includes_default
23824 #include <$ac_header>
23825 _ACEOF
23826 rm -f conftest.$ac_objext
23827 if { (ac_try="$ac_compile"
23828 case "(($ac_try" in
23829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23830 *) ac_try_echo=$ac_try;;
23831 esac
23832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23833 $as_echo "$ac_try_echo") >&5
23834 (eval "$ac_compile") 2>conftest.er1
23835 ac_status=$?
23836 grep -v '^ *+' conftest.er1 >conftest.err
23837 rm -f conftest.er1
23838 cat conftest.err >&5
23839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23840 (exit $ac_status); } && {
23841 test -z "$ac_c_werror_flag" ||
23842 test ! -s conftest.err
23843 } && test -s conftest.$ac_objext; then
23844 ac_header_compiler=yes
23845 else
23846 $as_echo "$as_me: failed program was:" >&5
23847 sed 's/^/| /' conftest.$ac_ext >&5
23848
23849 ac_header_compiler=no
23850 fi
23851
23852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23853 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23854 $as_echo "$ac_header_compiler" >&6; }
23855
23856 # Is the header present?
23857 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23858 $as_echo_n "checking $ac_header presence... " >&6; }
23859 cat >conftest.$ac_ext <<_ACEOF
23860 /* confdefs.h. */
23861 _ACEOF
23862 cat confdefs.h >>conftest.$ac_ext
23863 cat >>conftest.$ac_ext <<_ACEOF
23864 /* end confdefs.h. */
23865 #include <$ac_header>
23866 _ACEOF
23867 if { (ac_try="$ac_cpp conftest.$ac_ext"
23868 case "(($ac_try" in
23869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23870 *) ac_try_echo=$ac_try;;
23871 esac
23872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23873 $as_echo "$ac_try_echo") >&5
23874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23875 ac_status=$?
23876 grep -v '^ *+' conftest.er1 >conftest.err
23877 rm -f conftest.er1
23878 cat conftest.err >&5
23879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23880 (exit $ac_status); } >/dev/null && {
23881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23882 test ! -s conftest.err
23883 }; then
23884 ac_header_preproc=yes
23885 else
23886 $as_echo "$as_me: failed program was:" >&5
23887 sed 's/^/| /' conftest.$ac_ext >&5
23888
23889 ac_header_preproc=no
23890 fi
23891
23892 rm -f conftest.err conftest.$ac_ext
23893 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23894 $as_echo "$ac_header_preproc" >&6; }
23895
23896 # So? What about this header?
23897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23898 yes:no: )
23899 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23900 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23901 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23902 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23903 ac_header_preproc=yes
23904 ;;
23905 no:yes:* )
23906 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23907 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23908 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23909 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23910 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23911 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23912 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23913 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23914 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23915 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23916 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23917 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23918
23919 ;;
23920 esac
23921 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23922 $as_echo_n "checking for $ac_header... " >&6; }
23923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23924 $as_echo_n "(cached) " >&6
23925 else
23926 eval "$as_ac_Header=\$ac_header_preproc"
23927 fi
23928 ac_res=`eval 'as_val=${'$as_ac_Header'}
23929 $as_echo "$as_val"'`
23930 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23931 $as_echo "$ac_res" >&6; }
23932
23933 fi
23934 if test `eval 'as_val=${'$as_ac_Header'}
23935 $as_echo "$as_val"'` = yes; then
23936 cat >>confdefs.h <<_ACEOF
23937 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23938 _ACEOF
23939
23940 else
23941
23942 for ac_header in kerberosIV/krb.h
23943 do
23944 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23946 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23947 $as_echo_n "checking for $ac_header... " >&6; }
23948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23949 $as_echo_n "(cached) " >&6
23950 fi
23951 ac_res=`eval 'as_val=${'$as_ac_Header'}
23952 $as_echo "$as_val"'`
23953 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23954 $as_echo "$ac_res" >&6; }
23955 else
23956 # Is the header compilable?
23957 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23958 $as_echo_n "checking $ac_header usability... " >&6; }
23959 cat >conftest.$ac_ext <<_ACEOF
23960 /* confdefs.h. */
23961 _ACEOF
23962 cat confdefs.h >>conftest.$ac_ext
23963 cat >>conftest.$ac_ext <<_ACEOF
23964 /* end confdefs.h. */
23965 $ac_includes_default
23966 #include <$ac_header>
23967 _ACEOF
23968 rm -f conftest.$ac_objext
23969 if { (ac_try="$ac_compile"
23970 case "(($ac_try" in
23971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23972 *) ac_try_echo=$ac_try;;
23973 esac
23974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23975 $as_echo "$ac_try_echo") >&5
23976 (eval "$ac_compile") 2>conftest.er1
23977 ac_status=$?
23978 grep -v '^ *+' conftest.er1 >conftest.err
23979 rm -f conftest.er1
23980 cat conftest.err >&5
23981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23982 (exit $ac_status); } && {
23983 test -z "$ac_c_werror_flag" ||
23984 test ! -s conftest.err
23985 } && test -s conftest.$ac_objext; then
23986 ac_header_compiler=yes
23987 else
23988 $as_echo "$as_me: failed program was:" >&5
23989 sed 's/^/| /' conftest.$ac_ext >&5
23990
23991 ac_header_compiler=no
23992 fi
23993
23994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23995 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23996 $as_echo "$ac_header_compiler" >&6; }
23997
23998 # Is the header present?
23999 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24000 $as_echo_n "checking $ac_header presence... " >&6; }
24001 cat >conftest.$ac_ext <<_ACEOF
24002 /* confdefs.h. */
24003 _ACEOF
24004 cat confdefs.h >>conftest.$ac_ext
24005 cat >>conftest.$ac_ext <<_ACEOF
24006 /* end confdefs.h. */
24007 #include <$ac_header>
24008 _ACEOF
24009 if { (ac_try="$ac_cpp conftest.$ac_ext"
24010 case "(($ac_try" in
24011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24012 *) ac_try_echo=$ac_try;;
24013 esac
24014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24015 $as_echo "$ac_try_echo") >&5
24016 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24017 ac_status=$?
24018 grep -v '^ *+' conftest.er1 >conftest.err
24019 rm -f conftest.er1
24020 cat conftest.err >&5
24021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24022 (exit $ac_status); } >/dev/null && {
24023 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24024 test ! -s conftest.err
24025 }; then
24026 ac_header_preproc=yes
24027 else
24028 $as_echo "$as_me: failed program was:" >&5
24029 sed 's/^/| /' conftest.$ac_ext >&5
24030
24031 ac_header_preproc=no
24032 fi
24033
24034 rm -f conftest.err conftest.$ac_ext
24035 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24036 $as_echo "$ac_header_preproc" >&6; }
24037
24038 # So? What about this header?
24039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24040 yes:no: )
24041 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24042 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24043 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24044 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24045 ac_header_preproc=yes
24046 ;;
24047 no:yes:* )
24048 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24049 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24050 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24051 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24052 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24053 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24054 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24055 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24056 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24057 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24059 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24060
24061 ;;
24062 esac
24063 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24064 $as_echo_n "checking for $ac_header... " >&6; }
24065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24066 $as_echo_n "(cached) " >&6
24067 else
24068 eval "$as_ac_Header=\$ac_header_preproc"
24069 fi
24070 ac_res=`eval 'as_val=${'$as_ac_Header'}
24071 $as_echo "$as_val"'`
24072 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24073 $as_echo "$ac_res" >&6; }
24074
24075 fi
24076 if test `eval 'as_val=${'$as_ac_Header'}
24077 $as_echo "$as_val"'` = yes; then
24078 cat >>confdefs.h <<_ACEOF
24079 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24080 _ACEOF
24081
24082 else
24083
24084 for ac_header in kerberos/krb.h
24085 do
24086 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24088 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24089 $as_echo_n "checking for $ac_header... " >&6; }
24090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24091 $as_echo_n "(cached) " >&6
24092 fi
24093 ac_res=`eval 'as_val=${'$as_ac_Header'}
24094 $as_echo "$as_val"'`
24095 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24096 $as_echo "$ac_res" >&6; }
24097 else
24098 # Is the header compilable?
24099 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24100 $as_echo_n "checking $ac_header usability... " >&6; }
24101 cat >conftest.$ac_ext <<_ACEOF
24102 /* confdefs.h. */
24103 _ACEOF
24104 cat confdefs.h >>conftest.$ac_ext
24105 cat >>conftest.$ac_ext <<_ACEOF
24106 /* end confdefs.h. */
24107 $ac_includes_default
24108 #include <$ac_header>
24109 _ACEOF
24110 rm -f conftest.$ac_objext
24111 if { (ac_try="$ac_compile"
24112 case "(($ac_try" in
24113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24114 *) ac_try_echo=$ac_try;;
24115 esac
24116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24117 $as_echo "$ac_try_echo") >&5
24118 (eval "$ac_compile") 2>conftest.er1
24119 ac_status=$?
24120 grep -v '^ *+' conftest.er1 >conftest.err
24121 rm -f conftest.er1
24122 cat conftest.err >&5
24123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24124 (exit $ac_status); } && {
24125 test -z "$ac_c_werror_flag" ||
24126 test ! -s conftest.err
24127 } && test -s conftest.$ac_objext; then
24128 ac_header_compiler=yes
24129 else
24130 $as_echo "$as_me: failed program was:" >&5
24131 sed 's/^/| /' conftest.$ac_ext >&5
24132
24133 ac_header_compiler=no
24134 fi
24135
24136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24137 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24138 $as_echo "$ac_header_compiler" >&6; }
24139
24140 # Is the header present?
24141 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24142 $as_echo_n "checking $ac_header presence... " >&6; }
24143 cat >conftest.$ac_ext <<_ACEOF
24144 /* confdefs.h. */
24145 _ACEOF
24146 cat confdefs.h >>conftest.$ac_ext
24147 cat >>conftest.$ac_ext <<_ACEOF
24148 /* end confdefs.h. */
24149 #include <$ac_header>
24150 _ACEOF
24151 if { (ac_try="$ac_cpp conftest.$ac_ext"
24152 case "(($ac_try" in
24153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24154 *) ac_try_echo=$ac_try;;
24155 esac
24156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24157 $as_echo "$ac_try_echo") >&5
24158 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24159 ac_status=$?
24160 grep -v '^ *+' conftest.er1 >conftest.err
24161 rm -f conftest.er1
24162 cat conftest.err >&5
24163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24164 (exit $ac_status); } >/dev/null && {
24165 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24166 test ! -s conftest.err
24167 }; then
24168 ac_header_preproc=yes
24169 else
24170 $as_echo "$as_me: failed program was:" >&5
24171 sed 's/^/| /' conftest.$ac_ext >&5
24172
24173 ac_header_preproc=no
24174 fi
24175
24176 rm -f conftest.err conftest.$ac_ext
24177 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24178 $as_echo "$ac_header_preproc" >&6; }
24179
24180 # So? What about this header?
24181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24182 yes:no: )
24183 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24184 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24185 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24186 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24187 ac_header_preproc=yes
24188 ;;
24189 no:yes:* )
24190 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24191 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24192 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24193 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24194 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24195 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24196 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24197 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24198 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24199 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24200 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24201 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24202
24203 ;;
24204 esac
24205 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24206 $as_echo_n "checking for $ac_header... " >&6; }
24207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24208 $as_echo_n "(cached) " >&6
24209 else
24210 eval "$as_ac_Header=\$ac_header_preproc"
24211 fi
24212 ac_res=`eval 'as_val=${'$as_ac_Header'}
24213 $as_echo "$as_val"'`
24214 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24215 $as_echo "$ac_res" >&6; }
24216
24217 fi
24218 if test `eval 'as_val=${'$as_ac_Header'}
24219 $as_echo "$as_val"'` = yes; then
24220 cat >>confdefs.h <<_ACEOF
24221 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24222 _ACEOF
24223
24224 fi
24225
24226 done
24227
24228 fi
24229
24230 done
24231
24232 fi
24233
24234 done
24235
24236 fi
24237
24238 for ac_header in com_err.h
24239 do
24240 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24242 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24243 $as_echo_n "checking for $ac_header... " >&6; }
24244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24245 $as_echo_n "(cached) " >&6
24246 fi
24247 ac_res=`eval 'as_val=${'$as_ac_Header'}
24248 $as_echo "$as_val"'`
24249 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24250 $as_echo "$ac_res" >&6; }
24251 else
24252 # Is the header compilable?
24253 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24254 $as_echo_n "checking $ac_header usability... " >&6; }
24255 cat >conftest.$ac_ext <<_ACEOF
24256 /* confdefs.h. */
24257 _ACEOF
24258 cat confdefs.h >>conftest.$ac_ext
24259 cat >>conftest.$ac_ext <<_ACEOF
24260 /* end confdefs.h. */
24261 $ac_includes_default
24262 #include <$ac_header>
24263 _ACEOF
24264 rm -f conftest.$ac_objext
24265 if { (ac_try="$ac_compile"
24266 case "(($ac_try" in
24267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24268 *) ac_try_echo=$ac_try;;
24269 esac
24270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24271 $as_echo "$ac_try_echo") >&5
24272 (eval "$ac_compile") 2>conftest.er1
24273 ac_status=$?
24274 grep -v '^ *+' conftest.er1 >conftest.err
24275 rm -f conftest.er1
24276 cat conftest.err >&5
24277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24278 (exit $ac_status); } && {
24279 test -z "$ac_c_werror_flag" ||
24280 test ! -s conftest.err
24281 } && test -s conftest.$ac_objext; then
24282 ac_header_compiler=yes
24283 else
24284 $as_echo "$as_me: failed program was:" >&5
24285 sed 's/^/| /' conftest.$ac_ext >&5
24286
24287 ac_header_compiler=no
24288 fi
24289
24290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24291 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24292 $as_echo "$ac_header_compiler" >&6; }
24293
24294 # Is the header present?
24295 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24296 $as_echo_n "checking $ac_header presence... " >&6; }
24297 cat >conftest.$ac_ext <<_ACEOF
24298 /* confdefs.h. */
24299 _ACEOF
24300 cat confdefs.h >>conftest.$ac_ext
24301 cat >>conftest.$ac_ext <<_ACEOF
24302 /* end confdefs.h. */
24303 #include <$ac_header>
24304 _ACEOF
24305 if { (ac_try="$ac_cpp conftest.$ac_ext"
24306 case "(($ac_try" in
24307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24308 *) ac_try_echo=$ac_try;;
24309 esac
24310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24311 $as_echo "$ac_try_echo") >&5
24312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24313 ac_status=$?
24314 grep -v '^ *+' conftest.er1 >conftest.err
24315 rm -f conftest.er1
24316 cat conftest.err >&5
24317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24318 (exit $ac_status); } >/dev/null && {
24319 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24320 test ! -s conftest.err
24321 }; then
24322 ac_header_preproc=yes
24323 else
24324 $as_echo "$as_me: failed program was:" >&5
24325 sed 's/^/| /' conftest.$ac_ext >&5
24326
24327 ac_header_preproc=no
24328 fi
24329
24330 rm -f conftest.err conftest.$ac_ext
24331 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24332 $as_echo "$ac_header_preproc" >&6; }
24333
24334 # So? What about this header?
24335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24336 yes:no: )
24337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24338 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24339 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24340 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24341 ac_header_preproc=yes
24342 ;;
24343 no:yes:* )
24344 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24345 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24346 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24347 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24348 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24349 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24350 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24351 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24352 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24353 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24354 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24355 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24356
24357 ;;
24358 esac
24359 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24360 $as_echo_n "checking for $ac_header... " >&6; }
24361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24362 $as_echo_n "(cached) " >&6
24363 else
24364 eval "$as_ac_Header=\$ac_header_preproc"
24365 fi
24366 ac_res=`eval 'as_val=${'$as_ac_Header'}
24367 $as_echo "$as_val"'`
24368 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24369 $as_echo "$ac_res" >&6; }
24370
24371 fi
24372 if test `eval 'as_val=${'$as_ac_Header'}
24373 $as_echo "$as_val"'` = yes; then
24374 cat >>confdefs.h <<_ACEOF
24375 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24376 _ACEOF
24377
24378 fi
24379
24380 done
24381
24382 fi
24383
24384
24385
24386
24387
24388
24389
24390 # Solaris requires -lintl if you want strerror (which calls dgettext)
24391 # to return localized messages.
24392
24393 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
24394 $as_echo_n "checking for dgettext in -lintl... " >&6; }
24395 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
24396 $as_echo_n "(cached) " >&6
24397 else
24398 ac_check_lib_save_LIBS=$LIBS
24399 LIBS="-lintl $LIBS"
24400 cat >conftest.$ac_ext <<_ACEOF
24401 /* confdefs.h. */
24402 _ACEOF
24403 cat confdefs.h >>conftest.$ac_ext
24404 cat >>conftest.$ac_ext <<_ACEOF
24405 /* end confdefs.h. */
24406
24407 /* Override any GCC internal prototype to avoid an error.
24408 Use char because int might match the return type of a GCC
24409 builtin and then its argument prototype would still apply. */
24410 #ifdef __cplusplus
24411 extern "C"
24412 #endif
24413 char dgettext ();
24414 int
24415 main ()
24416 {
24417 return dgettext ();
24418 ;
24419 return 0;
24420 }
24421 _ACEOF
24422 rm -f conftest.$ac_objext conftest$ac_exeext
24423 if { (ac_try="$ac_link"
24424 case "(($ac_try" in
24425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24426 *) ac_try_echo=$ac_try;;
24427 esac
24428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24429 $as_echo "$ac_try_echo") >&5
24430 (eval "$ac_link") 2>conftest.er1
24431 ac_status=$?
24432 grep -v '^ *+' conftest.er1 >conftest.err
24433 rm -f conftest.er1
24434 cat conftest.err >&5
24435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24436 (exit $ac_status); } && {
24437 test -z "$ac_c_werror_flag" ||
24438 test ! -s conftest.err
24439 } && test -s conftest$ac_exeext && {
24440 test "$cross_compiling" = yes ||
24441 $as_test_x conftest$ac_exeext
24442 }; then
24443 ac_cv_lib_intl_dgettext=yes
24444 else
24445 $as_echo "$as_me: failed program was:" >&5
24446 sed 's/^/| /' conftest.$ac_ext >&5
24447
24448 ac_cv_lib_intl_dgettext=no
24449 fi
24450
24451 rm -rf conftest.dSYM
24452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24453 conftest$ac_exeext conftest.$ac_ext
24454 LIBS=$ac_check_lib_save_LIBS
24455 fi
24456 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
24457 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
24458 if test $ac_cv_lib_intl_dgettext = yes; then
24459 cat >>confdefs.h <<_ACEOF
24460 #define HAVE_LIBINTL 1
24461 _ACEOF
24462
24463 LIBS="-lintl $LIBS"
24464
24465 fi
24466
24467
24468 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
24469 $as_echo_n "checking whether localtime caches TZ... " >&6; }
24470 if test "${emacs_cv_localtime_cache+set}" = set; then
24471 $as_echo_n "(cached) " >&6
24472 else
24473 if test x$ac_cv_func_tzset = xyes; then
24474 if test "$cross_compiling" = yes; then
24475 # If we have tzset, assume the worst when cross-compiling.
24476 emacs_cv_localtime_cache=yes
24477 else
24478 cat >conftest.$ac_ext <<_ACEOF
24479 /* confdefs.h. */
24480 _ACEOF
24481 cat confdefs.h >>conftest.$ac_ext
24482 cat >>conftest.$ac_ext <<_ACEOF
24483 /* end confdefs.h. */
24484 #include <time.h>
24485 extern char **environ;
24486 unset_TZ ()
24487 {
24488 char **from, **to;
24489 for (to = from = environ; (*to = *from); from++)
24490 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
24491 to++;
24492 }
24493 char TZ_GMT0[] = "TZ=GMT0";
24494 char TZ_PST8[] = "TZ=PST8";
24495 main()
24496 {
24497 time_t now = time ((time_t *) 0);
24498 int hour_GMT0, hour_unset;
24499 if (putenv (TZ_GMT0) != 0)
24500 exit (1);
24501 hour_GMT0 = localtime (&now)->tm_hour;
24502 unset_TZ ();
24503 hour_unset = localtime (&now)->tm_hour;
24504 if (putenv (TZ_PST8) != 0)
24505 exit (1);
24506 if (localtime (&now)->tm_hour == hour_GMT0)
24507 exit (1);
24508 unset_TZ ();
24509 if (localtime (&now)->tm_hour != hour_unset)
24510 exit (1);
24511 exit (0);
24512 }
24513 _ACEOF
24514 rm -f conftest$ac_exeext
24515 if { (ac_try="$ac_link"
24516 case "(($ac_try" in
24517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24518 *) ac_try_echo=$ac_try;;
24519 esac
24520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24521 $as_echo "$ac_try_echo") >&5
24522 (eval "$ac_link") 2>&5
24523 ac_status=$?
24524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24526 { (case "(($ac_try" in
24527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24528 *) ac_try_echo=$ac_try;;
24529 esac
24530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24531 $as_echo "$ac_try_echo") >&5
24532 (eval "$ac_try") 2>&5
24533 ac_status=$?
24534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24535 (exit $ac_status); }; }; then
24536 emacs_cv_localtime_cache=no
24537 else
24538 $as_echo "$as_me: program exited with status $ac_status" >&5
24539 $as_echo "$as_me: failed program was:" >&5
24540 sed 's/^/| /' conftest.$ac_ext >&5
24541
24542 ( exit $ac_status )
24543 emacs_cv_localtime_cache=yes
24544 fi
24545 rm -rf conftest.dSYM
24546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24547 fi
24548
24549
24550 else
24551 # If we lack tzset, report that localtime does not cache TZ,
24552 # since we can't invalidate the cache if we don't have tzset.
24553 emacs_cv_localtime_cache=no
24554 fi
24555 fi
24556 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
24557 $as_echo "$emacs_cv_localtime_cache" >&6; }
24558 if test $emacs_cv_localtime_cache = yes; then
24559
24560 cat >>confdefs.h <<\_ACEOF
24561 #define LOCALTIME_CACHE 1
24562 _ACEOF
24563
24564 fi
24565
24566 if test "x$HAVE_TIMEVAL" = xyes; then
24567
24568 for ac_func in gettimeofday
24569 do
24570 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24571 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24572 $as_echo_n "checking for $ac_func... " >&6; }
24573 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24574 $as_echo_n "(cached) " >&6
24575 else
24576 cat >conftest.$ac_ext <<_ACEOF
24577 /* confdefs.h. */
24578 _ACEOF
24579 cat confdefs.h >>conftest.$ac_ext
24580 cat >>conftest.$ac_ext <<_ACEOF
24581 /* end confdefs.h. */
24582 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24584 #define $ac_func innocuous_$ac_func
24585
24586 /* System header to define __stub macros and hopefully few prototypes,
24587 which can conflict with char $ac_func (); below.
24588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24589 <limits.h> exists even on freestanding compilers. */
24590
24591 #ifdef __STDC__
24592 # include <limits.h>
24593 #else
24594 # include <assert.h>
24595 #endif
24596
24597 #undef $ac_func
24598
24599 /* Override any GCC internal prototype to avoid an error.
24600 Use char because int might match the return type of a GCC
24601 builtin and then its argument prototype would still apply. */
24602 #ifdef __cplusplus
24603 extern "C"
24604 #endif
24605 char $ac_func ();
24606 /* The GNU C library defines this for functions which it implements
24607 to always fail with ENOSYS. Some functions are actually named
24608 something starting with __ and the normal name is an alias. */
24609 #if defined __stub_$ac_func || defined __stub___$ac_func
24610 choke me
24611 #endif
24612
24613 int
24614 main ()
24615 {
24616 return $ac_func ();
24617 ;
24618 return 0;
24619 }
24620 _ACEOF
24621 rm -f conftest.$ac_objext conftest$ac_exeext
24622 if { (ac_try="$ac_link"
24623 case "(($ac_try" in
24624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24625 *) ac_try_echo=$ac_try;;
24626 esac
24627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24628 $as_echo "$ac_try_echo") >&5
24629 (eval "$ac_link") 2>conftest.er1
24630 ac_status=$?
24631 grep -v '^ *+' conftest.er1 >conftest.err
24632 rm -f conftest.er1
24633 cat conftest.err >&5
24634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24635 (exit $ac_status); } && {
24636 test -z "$ac_c_werror_flag" ||
24637 test ! -s conftest.err
24638 } && test -s conftest$ac_exeext && {
24639 test "$cross_compiling" = yes ||
24640 $as_test_x conftest$ac_exeext
24641 }; then
24642 eval "$as_ac_var=yes"
24643 else
24644 $as_echo "$as_me: failed program was:" >&5
24645 sed 's/^/| /' conftest.$ac_ext >&5
24646
24647 eval "$as_ac_var=no"
24648 fi
24649
24650 rm -rf conftest.dSYM
24651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24652 conftest$ac_exeext conftest.$ac_ext
24653 fi
24654 ac_res=`eval 'as_val=${'$as_ac_var'}
24655 $as_echo "$as_val"'`
24656 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24657 $as_echo "$ac_res" >&6; }
24658 if test `eval 'as_val=${'$as_ac_var'}
24659 $as_echo "$as_val"'` = yes; then
24660 cat >>confdefs.h <<_ACEOF
24661 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24662 _ACEOF
24663
24664 fi
24665 done
24666
24667 if test $ac_cv_func_gettimeofday = yes; then
24668 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
24669 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
24670 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24671 $as_echo_n "(cached) " >&6
24672 else
24673 cat >conftest.$ac_ext <<_ACEOF
24674 /* confdefs.h. */
24675 _ACEOF
24676 cat confdefs.h >>conftest.$ac_ext
24677 cat >>conftest.$ac_ext <<_ACEOF
24678 /* end confdefs.h. */
24679
24680 #ifdef TIME_WITH_SYS_TIME
24681 #include <sys/time.h>
24682 #include <time.h>
24683 #else
24684 #ifdef HAVE_SYS_TIME_H
24685 #include <sys/time.h>
24686 #else
24687 #include <time.h>
24688 #endif
24689 #endif
24690 int
24691 main ()
24692 {
24693 struct timeval time;
24694 gettimeofday (&time, 0);
24695 ;
24696 return 0;
24697 }
24698 _ACEOF
24699 rm -f conftest.$ac_objext
24700 if { (ac_try="$ac_compile"
24701 case "(($ac_try" in
24702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24703 *) ac_try_echo=$ac_try;;
24704 esac
24705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24706 $as_echo "$ac_try_echo") >&5
24707 (eval "$ac_compile") 2>conftest.er1
24708 ac_status=$?
24709 grep -v '^ *+' conftest.er1 >conftest.err
24710 rm -f conftest.er1
24711 cat conftest.err >&5
24712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24713 (exit $ac_status); } && {
24714 test -z "$ac_c_werror_flag" ||
24715 test ! -s conftest.err
24716 } && test -s conftest.$ac_objext; then
24717 emacs_cv_gettimeofday_two_arguments=yes
24718 else
24719 $as_echo "$as_me: failed program was:" >&5
24720 sed 's/^/| /' conftest.$ac_ext >&5
24721
24722 emacs_cv_gettimeofday_two_arguments=no
24723 fi
24724
24725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24726 fi
24727 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
24728 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24729 if test $emacs_cv_gettimeofday_two_arguments = no; then
24730
24731 cat >>confdefs.h <<\_ACEOF
24732 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24733 _ACEOF
24734
24735 fi
24736 fi
24737 fi
24738
24739 ok_so_far=yes
24740 { $as_echo "$as_me:$LINENO: checking for socket" >&5
24741 $as_echo_n "checking for socket... " >&6; }
24742 if test "${ac_cv_func_socket+set}" = set; then
24743 $as_echo_n "(cached) " >&6
24744 else
24745 cat >conftest.$ac_ext <<_ACEOF
24746 /* confdefs.h. */
24747 _ACEOF
24748 cat confdefs.h >>conftest.$ac_ext
24749 cat >>conftest.$ac_ext <<_ACEOF
24750 /* end confdefs.h. */
24751 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24753 #define socket innocuous_socket
24754
24755 /* System header to define __stub macros and hopefully few prototypes,
24756 which can conflict with char socket (); below.
24757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24758 <limits.h> exists even on freestanding compilers. */
24759
24760 #ifdef __STDC__
24761 # include <limits.h>
24762 #else
24763 # include <assert.h>
24764 #endif
24765
24766 #undef socket
24767
24768 /* Override any GCC internal prototype to avoid an error.
24769 Use char because int might match the return type of a GCC
24770 builtin and then its argument prototype would still apply. */
24771 #ifdef __cplusplus
24772 extern "C"
24773 #endif
24774 char socket ();
24775 /* The GNU C library defines this for functions which it implements
24776 to always fail with ENOSYS. Some functions are actually named
24777 something starting with __ and the normal name is an alias. */
24778 #if defined __stub_socket || defined __stub___socket
24779 choke me
24780 #endif
24781
24782 int
24783 main ()
24784 {
24785 return socket ();
24786 ;
24787 return 0;
24788 }
24789 _ACEOF
24790 rm -f conftest.$ac_objext conftest$ac_exeext
24791 if { (ac_try="$ac_link"
24792 case "(($ac_try" in
24793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24794 *) ac_try_echo=$ac_try;;
24795 esac
24796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24797 $as_echo "$ac_try_echo") >&5
24798 (eval "$ac_link") 2>conftest.er1
24799 ac_status=$?
24800 grep -v '^ *+' conftest.er1 >conftest.err
24801 rm -f conftest.er1
24802 cat conftest.err >&5
24803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24804 (exit $ac_status); } && {
24805 test -z "$ac_c_werror_flag" ||
24806 test ! -s conftest.err
24807 } && test -s conftest$ac_exeext && {
24808 test "$cross_compiling" = yes ||
24809 $as_test_x conftest$ac_exeext
24810 }; then
24811 ac_cv_func_socket=yes
24812 else
24813 $as_echo "$as_me: failed program was:" >&5
24814 sed 's/^/| /' conftest.$ac_ext >&5
24815
24816 ac_cv_func_socket=no
24817 fi
24818
24819 rm -rf conftest.dSYM
24820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24821 conftest$ac_exeext conftest.$ac_ext
24822 fi
24823 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24824 $as_echo "$ac_cv_func_socket" >&6; }
24825 if test $ac_cv_func_socket = yes; then
24826 :
24827 else
24828 ok_so_far=no
24829 fi
24830
24831 if test $ok_so_far = yes; then
24832 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24833 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24834 $as_echo_n "checking for netinet/in.h... " >&6; }
24835 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24836 $as_echo_n "(cached) " >&6
24837 fi
24838 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24839 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24840 else
24841 # Is the header compilable?
24842 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
24843 $as_echo_n "checking netinet/in.h usability... " >&6; }
24844 cat >conftest.$ac_ext <<_ACEOF
24845 /* confdefs.h. */
24846 _ACEOF
24847 cat confdefs.h >>conftest.$ac_ext
24848 cat >>conftest.$ac_ext <<_ACEOF
24849 /* end confdefs.h. */
24850 $ac_includes_default
24851 #include <netinet/in.h>
24852 _ACEOF
24853 rm -f conftest.$ac_objext
24854 if { (ac_try="$ac_compile"
24855 case "(($ac_try" in
24856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24857 *) ac_try_echo=$ac_try;;
24858 esac
24859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24860 $as_echo "$ac_try_echo") >&5
24861 (eval "$ac_compile") 2>conftest.er1
24862 ac_status=$?
24863 grep -v '^ *+' conftest.er1 >conftest.err
24864 rm -f conftest.er1
24865 cat conftest.err >&5
24866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24867 (exit $ac_status); } && {
24868 test -z "$ac_c_werror_flag" ||
24869 test ! -s conftest.err
24870 } && test -s conftest.$ac_objext; then
24871 ac_header_compiler=yes
24872 else
24873 $as_echo "$as_me: failed program was:" >&5
24874 sed 's/^/| /' conftest.$ac_ext >&5
24875
24876 ac_header_compiler=no
24877 fi
24878
24879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24880 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24881 $as_echo "$ac_header_compiler" >&6; }
24882
24883 # Is the header present?
24884 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
24885 $as_echo_n "checking netinet/in.h presence... " >&6; }
24886 cat >conftest.$ac_ext <<_ACEOF
24887 /* confdefs.h. */
24888 _ACEOF
24889 cat confdefs.h >>conftest.$ac_ext
24890 cat >>conftest.$ac_ext <<_ACEOF
24891 /* end confdefs.h. */
24892 #include <netinet/in.h>
24893 _ACEOF
24894 if { (ac_try="$ac_cpp conftest.$ac_ext"
24895 case "(($ac_try" in
24896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24897 *) ac_try_echo=$ac_try;;
24898 esac
24899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24900 $as_echo "$ac_try_echo") >&5
24901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24902 ac_status=$?
24903 grep -v '^ *+' conftest.er1 >conftest.err
24904 rm -f conftest.er1
24905 cat conftest.err >&5
24906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24907 (exit $ac_status); } >/dev/null && {
24908 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24909 test ! -s conftest.err
24910 }; then
24911 ac_header_preproc=yes
24912 else
24913 $as_echo "$as_me: failed program was:" >&5
24914 sed 's/^/| /' conftest.$ac_ext >&5
24915
24916 ac_header_preproc=no
24917 fi
24918
24919 rm -f conftest.err conftest.$ac_ext
24920 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24921 $as_echo "$ac_header_preproc" >&6; }
24922
24923 # So? What about this header?
24924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24925 yes:no: )
24926 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
24927 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24928 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
24929 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
24930 ac_header_preproc=yes
24931 ;;
24932 no:yes:* )
24933 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
24934 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
24935 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
24936 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
24937 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
24938 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
24939 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
24940 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
24941 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
24942 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
24943 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
24944 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
24945
24946 ;;
24947 esac
24948 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24949 $as_echo_n "checking for netinet/in.h... " >&6; }
24950 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24951 $as_echo_n "(cached) " >&6
24952 else
24953 ac_cv_header_netinet_in_h=$ac_header_preproc
24954 fi
24955 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24956 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24957
24958 fi
24959 if test $ac_cv_header_netinet_in_h = yes; then
24960 :
24961 else
24962 ok_so_far=no
24963 fi
24964
24965
24966 fi
24967 if test $ok_so_far = yes; then
24968 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24969 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24970 $as_echo_n "checking for arpa/inet.h... " >&6; }
24971 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24972 $as_echo_n "(cached) " >&6
24973 fi
24974 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24975 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24976 else
24977 # Is the header compilable?
24978 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
24979 $as_echo_n "checking arpa/inet.h usability... " >&6; }
24980 cat >conftest.$ac_ext <<_ACEOF
24981 /* confdefs.h. */
24982 _ACEOF
24983 cat confdefs.h >>conftest.$ac_ext
24984 cat >>conftest.$ac_ext <<_ACEOF
24985 /* end confdefs.h. */
24986 $ac_includes_default
24987 #include <arpa/inet.h>
24988 _ACEOF
24989 rm -f conftest.$ac_objext
24990 if { (ac_try="$ac_compile"
24991 case "(($ac_try" in
24992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24993 *) ac_try_echo=$ac_try;;
24994 esac
24995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24996 $as_echo "$ac_try_echo") >&5
24997 (eval "$ac_compile") 2>conftest.er1
24998 ac_status=$?
24999 grep -v '^ *+' conftest.er1 >conftest.err
25000 rm -f conftest.er1
25001 cat conftest.err >&5
25002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25003 (exit $ac_status); } && {
25004 test -z "$ac_c_werror_flag" ||
25005 test ! -s conftest.err
25006 } && test -s conftest.$ac_objext; then
25007 ac_header_compiler=yes
25008 else
25009 $as_echo "$as_me: failed program was:" >&5
25010 sed 's/^/| /' conftest.$ac_ext >&5
25011
25012 ac_header_compiler=no
25013 fi
25014
25015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25016 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25017 $as_echo "$ac_header_compiler" >&6; }
25018
25019 # Is the header present?
25020 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
25021 $as_echo_n "checking arpa/inet.h presence... " >&6; }
25022 cat >conftest.$ac_ext <<_ACEOF
25023 /* confdefs.h. */
25024 _ACEOF
25025 cat confdefs.h >>conftest.$ac_ext
25026 cat >>conftest.$ac_ext <<_ACEOF
25027 /* end confdefs.h. */
25028 #include <arpa/inet.h>
25029 _ACEOF
25030 if { (ac_try="$ac_cpp conftest.$ac_ext"
25031 case "(($ac_try" in
25032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25033 *) ac_try_echo=$ac_try;;
25034 esac
25035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25036 $as_echo "$ac_try_echo") >&5
25037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25038 ac_status=$?
25039 grep -v '^ *+' conftest.er1 >conftest.err
25040 rm -f conftest.er1
25041 cat conftest.err >&5
25042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25043 (exit $ac_status); } >/dev/null && {
25044 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25045 test ! -s conftest.err
25046 }; then
25047 ac_header_preproc=yes
25048 else
25049 $as_echo "$as_me: failed program was:" >&5
25050 sed 's/^/| /' conftest.$ac_ext >&5
25051
25052 ac_header_preproc=no
25053 fi
25054
25055 rm -f conftest.err conftest.$ac_ext
25056 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25057 $as_echo "$ac_header_preproc" >&6; }
25058
25059 # So? What about this header?
25060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25061 yes:no: )
25062 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
25063 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25064 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
25065 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
25066 ac_header_preproc=yes
25067 ;;
25068 no:yes:* )
25069 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
25070 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
25071 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
25072 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
25073 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
25074 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
25075 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
25076 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
25077 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
25078 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
25079 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
25080 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
25081
25082 ;;
25083 esac
25084 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
25085 $as_echo_n "checking for arpa/inet.h... " >&6; }
25086 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
25087 $as_echo_n "(cached) " >&6
25088 else
25089 ac_cv_header_arpa_inet_h=$ac_header_preproc
25090 fi
25091 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
25092 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
25093
25094 fi
25095 if test $ac_cv_header_arpa_inet_h = yes; then
25096 :
25097 else
25098 ok_so_far=no
25099 fi
25100
25101
25102 fi
25103 if test $ok_so_far = yes; then
25104
25105 cat >>confdefs.h <<\_ACEOF
25106 #define HAVE_INET_SOCKETS 1
25107 _ACEOF
25108
25109 fi
25110
25111
25112 for ac_header in sys/ioctl.h
25113 do
25114 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25116 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25117 $as_echo_n "checking for $ac_header... " >&6; }
25118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25119 $as_echo_n "(cached) " >&6
25120 fi
25121 ac_res=`eval 'as_val=${'$as_ac_Header'}
25122 $as_echo "$as_val"'`
25123 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25124 $as_echo "$ac_res" >&6; }
25125 else
25126 # Is the header compilable?
25127 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25128 $as_echo_n "checking $ac_header usability... " >&6; }
25129 cat >conftest.$ac_ext <<_ACEOF
25130 /* confdefs.h. */
25131 _ACEOF
25132 cat confdefs.h >>conftest.$ac_ext
25133 cat >>conftest.$ac_ext <<_ACEOF
25134 /* end confdefs.h. */
25135 $ac_includes_default
25136 #include <$ac_header>
25137 _ACEOF
25138 rm -f conftest.$ac_objext
25139 if { (ac_try="$ac_compile"
25140 case "(($ac_try" in
25141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25142 *) ac_try_echo=$ac_try;;
25143 esac
25144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25145 $as_echo "$ac_try_echo") >&5
25146 (eval "$ac_compile") 2>conftest.er1
25147 ac_status=$?
25148 grep -v '^ *+' conftest.er1 >conftest.err
25149 rm -f conftest.er1
25150 cat conftest.err >&5
25151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25152 (exit $ac_status); } && {
25153 test -z "$ac_c_werror_flag" ||
25154 test ! -s conftest.err
25155 } && test -s conftest.$ac_objext; then
25156 ac_header_compiler=yes
25157 else
25158 $as_echo "$as_me: failed program was:" >&5
25159 sed 's/^/| /' conftest.$ac_ext >&5
25160
25161 ac_header_compiler=no
25162 fi
25163
25164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25165 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25166 $as_echo "$ac_header_compiler" >&6; }
25167
25168 # Is the header present?
25169 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25170 $as_echo_n "checking $ac_header presence... " >&6; }
25171 cat >conftest.$ac_ext <<_ACEOF
25172 /* confdefs.h. */
25173 _ACEOF
25174 cat confdefs.h >>conftest.$ac_ext
25175 cat >>conftest.$ac_ext <<_ACEOF
25176 /* end confdefs.h. */
25177 #include <$ac_header>
25178 _ACEOF
25179 if { (ac_try="$ac_cpp conftest.$ac_ext"
25180 case "(($ac_try" in
25181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25182 *) ac_try_echo=$ac_try;;
25183 esac
25184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25185 $as_echo "$ac_try_echo") >&5
25186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25187 ac_status=$?
25188 grep -v '^ *+' conftest.er1 >conftest.err
25189 rm -f conftest.er1
25190 cat conftest.err >&5
25191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25192 (exit $ac_status); } >/dev/null && {
25193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25194 test ! -s conftest.err
25195 }; then
25196 ac_header_preproc=yes
25197 else
25198 $as_echo "$as_me: failed program was:" >&5
25199 sed 's/^/| /' conftest.$ac_ext >&5
25200
25201 ac_header_preproc=no
25202 fi
25203
25204 rm -f conftest.err conftest.$ac_ext
25205 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25206 $as_echo "$ac_header_preproc" >&6; }
25207
25208 # So? What about this header?
25209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25210 yes:no: )
25211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25212 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25214 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25215 ac_header_preproc=yes
25216 ;;
25217 no:yes:* )
25218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25219 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25221 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25223 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25225 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25227 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25229 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25230
25231 ;;
25232 esac
25233 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25234 $as_echo_n "checking for $ac_header... " >&6; }
25235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25236 $as_echo_n "(cached) " >&6
25237 else
25238 eval "$as_ac_Header=\$ac_header_preproc"
25239 fi
25240 ac_res=`eval 'as_val=${'$as_ac_Header'}
25241 $as_echo "$as_val"'`
25242 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25243 $as_echo "$ac_res" >&6; }
25244
25245 fi
25246 if test `eval 'as_val=${'$as_ac_Header'}
25247 $as_echo "$as_val"'` = yes; then
25248 cat >>confdefs.h <<_ACEOF
25249 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25250 _ACEOF
25251
25252 fi
25253
25254 done
25255
25256
25257 if test -f /usr/lpp/X11/bin/smt.exp; then
25258
25259 cat >>confdefs.h <<\_ACEOF
25260 #define HAVE_AIX_SMT_EXP 1
25261 _ACEOF
25262
25263 fi
25264
25265 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
25266 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
25267 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
25268 { $as_echo "$as_me:$LINENO: result: yes" >&5
25269 $as_echo "yes" >&6; }
25270
25271 cat >>confdefs.h <<\_ACEOF
25272 #define HAVE_DEV_PTMX 1
25273 _ACEOF
25274
25275 else
25276 { $as_echo "$as_me:$LINENO: result: no" >&5
25277 $as_echo "no" >&6; }
25278 fi
25279
25280 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
25281 $as_echo_n "checking for pid_t... " >&6; }
25282 if test "${ac_cv_type_pid_t+set}" = set; then
25283 $as_echo_n "(cached) " >&6
25284 else
25285 ac_cv_type_pid_t=no
25286 cat >conftest.$ac_ext <<_ACEOF
25287 /* confdefs.h. */
25288 _ACEOF
25289 cat confdefs.h >>conftest.$ac_ext
25290 cat >>conftest.$ac_ext <<_ACEOF
25291 /* end confdefs.h. */
25292 $ac_includes_default
25293 int
25294 main ()
25295 {
25296 if (sizeof (pid_t))
25297 return 0;
25298 ;
25299 return 0;
25300 }
25301 _ACEOF
25302 rm -f conftest.$ac_objext
25303 if { (ac_try="$ac_compile"
25304 case "(($ac_try" in
25305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25306 *) ac_try_echo=$ac_try;;
25307 esac
25308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25309 $as_echo "$ac_try_echo") >&5
25310 (eval "$ac_compile") 2>conftest.er1
25311 ac_status=$?
25312 grep -v '^ *+' conftest.er1 >conftest.err
25313 rm -f conftest.er1
25314 cat conftest.err >&5
25315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25316 (exit $ac_status); } && {
25317 test -z "$ac_c_werror_flag" ||
25318 test ! -s conftest.err
25319 } && test -s conftest.$ac_objext; then
25320 cat >conftest.$ac_ext <<_ACEOF
25321 /* confdefs.h. */
25322 _ACEOF
25323 cat confdefs.h >>conftest.$ac_ext
25324 cat >>conftest.$ac_ext <<_ACEOF
25325 /* end confdefs.h. */
25326 $ac_includes_default
25327 int
25328 main ()
25329 {
25330 if (sizeof ((pid_t)))
25331 return 0;
25332 ;
25333 return 0;
25334 }
25335 _ACEOF
25336 rm -f conftest.$ac_objext
25337 if { (ac_try="$ac_compile"
25338 case "(($ac_try" in
25339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25340 *) ac_try_echo=$ac_try;;
25341 esac
25342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25343 $as_echo "$ac_try_echo") >&5
25344 (eval "$ac_compile") 2>conftest.er1
25345 ac_status=$?
25346 grep -v '^ *+' conftest.er1 >conftest.err
25347 rm -f conftest.er1
25348 cat conftest.err >&5
25349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25350 (exit $ac_status); } && {
25351 test -z "$ac_c_werror_flag" ||
25352 test ! -s conftest.err
25353 } && test -s conftest.$ac_objext; then
25354 :
25355 else
25356 $as_echo "$as_me: failed program was:" >&5
25357 sed 's/^/| /' conftest.$ac_ext >&5
25358
25359 ac_cv_type_pid_t=yes
25360 fi
25361
25362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25363 else
25364 $as_echo "$as_me: failed program was:" >&5
25365 sed 's/^/| /' conftest.$ac_ext >&5
25366
25367
25368 fi
25369
25370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25371 fi
25372 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25373 $as_echo "$ac_cv_type_pid_t" >&6; }
25374 if test $ac_cv_type_pid_t = yes; then
25375 :
25376 else
25377
25378 cat >>confdefs.h <<_ACEOF
25379 #define pid_t int
25380 _ACEOF
25381
25382 fi
25383
25384
25385 for ac_header in vfork.h
25386 do
25387 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25389 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25390 $as_echo_n "checking for $ac_header... " >&6; }
25391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25392 $as_echo_n "(cached) " >&6
25393 fi
25394 ac_res=`eval 'as_val=${'$as_ac_Header'}
25395 $as_echo "$as_val"'`
25396 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25397 $as_echo "$ac_res" >&6; }
25398 else
25399 # Is the header compilable?
25400 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25401 $as_echo_n "checking $ac_header usability... " >&6; }
25402 cat >conftest.$ac_ext <<_ACEOF
25403 /* confdefs.h. */
25404 _ACEOF
25405 cat confdefs.h >>conftest.$ac_ext
25406 cat >>conftest.$ac_ext <<_ACEOF
25407 /* end confdefs.h. */
25408 $ac_includes_default
25409 #include <$ac_header>
25410 _ACEOF
25411 rm -f conftest.$ac_objext
25412 if { (ac_try="$ac_compile"
25413 case "(($ac_try" in
25414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25415 *) ac_try_echo=$ac_try;;
25416 esac
25417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25418 $as_echo "$ac_try_echo") >&5
25419 (eval "$ac_compile") 2>conftest.er1
25420 ac_status=$?
25421 grep -v '^ *+' conftest.er1 >conftest.err
25422 rm -f conftest.er1
25423 cat conftest.err >&5
25424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25425 (exit $ac_status); } && {
25426 test -z "$ac_c_werror_flag" ||
25427 test ! -s conftest.err
25428 } && test -s conftest.$ac_objext; then
25429 ac_header_compiler=yes
25430 else
25431 $as_echo "$as_me: failed program was:" >&5
25432 sed 's/^/| /' conftest.$ac_ext >&5
25433
25434 ac_header_compiler=no
25435 fi
25436
25437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25438 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25439 $as_echo "$ac_header_compiler" >&6; }
25440
25441 # Is the header present?
25442 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25443 $as_echo_n "checking $ac_header presence... " >&6; }
25444 cat >conftest.$ac_ext <<_ACEOF
25445 /* confdefs.h. */
25446 _ACEOF
25447 cat confdefs.h >>conftest.$ac_ext
25448 cat >>conftest.$ac_ext <<_ACEOF
25449 /* end confdefs.h. */
25450 #include <$ac_header>
25451 _ACEOF
25452 if { (ac_try="$ac_cpp conftest.$ac_ext"
25453 case "(($ac_try" in
25454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25455 *) ac_try_echo=$ac_try;;
25456 esac
25457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25458 $as_echo "$ac_try_echo") >&5
25459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25460 ac_status=$?
25461 grep -v '^ *+' conftest.er1 >conftest.err
25462 rm -f conftest.er1
25463 cat conftest.err >&5
25464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25465 (exit $ac_status); } >/dev/null && {
25466 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25467 test ! -s conftest.err
25468 }; then
25469 ac_header_preproc=yes
25470 else
25471 $as_echo "$as_me: failed program was:" >&5
25472 sed 's/^/| /' conftest.$ac_ext >&5
25473
25474 ac_header_preproc=no
25475 fi
25476
25477 rm -f conftest.err conftest.$ac_ext
25478 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25479 $as_echo "$ac_header_preproc" >&6; }
25480
25481 # So? What about this header?
25482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25483 yes:no: )
25484 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25485 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25486 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25487 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25488 ac_header_preproc=yes
25489 ;;
25490 no:yes:* )
25491 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25492 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25493 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25494 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25495 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25496 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25497 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25498 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25499 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25500 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25501 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25502 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25503
25504 ;;
25505 esac
25506 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25507 $as_echo_n "checking for $ac_header... " >&6; }
25508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25509 $as_echo_n "(cached) " >&6
25510 else
25511 eval "$as_ac_Header=\$ac_header_preproc"
25512 fi
25513 ac_res=`eval 'as_val=${'$as_ac_Header'}
25514 $as_echo "$as_val"'`
25515 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25516 $as_echo "$ac_res" >&6; }
25517
25518 fi
25519 if test `eval 'as_val=${'$as_ac_Header'}
25520 $as_echo "$as_val"'` = yes; then
25521 cat >>confdefs.h <<_ACEOF
25522 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25523 _ACEOF
25524
25525 fi
25526
25527 done
25528
25529
25530
25531 for ac_func in fork vfork
25532 do
25533 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25534 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25535 $as_echo_n "checking for $ac_func... " >&6; }
25536 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25537 $as_echo_n "(cached) " >&6
25538 else
25539 cat >conftest.$ac_ext <<_ACEOF
25540 /* confdefs.h. */
25541 _ACEOF
25542 cat confdefs.h >>conftest.$ac_ext
25543 cat >>conftest.$ac_ext <<_ACEOF
25544 /* end confdefs.h. */
25545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25547 #define $ac_func innocuous_$ac_func
25548
25549 /* System header to define __stub macros and hopefully few prototypes,
25550 which can conflict with char $ac_func (); below.
25551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25552 <limits.h> exists even on freestanding compilers. */
25553
25554 #ifdef __STDC__
25555 # include <limits.h>
25556 #else
25557 # include <assert.h>
25558 #endif
25559
25560 #undef $ac_func
25561
25562 /* Override any GCC internal prototype to avoid an error.
25563 Use char because int might match the return type of a GCC
25564 builtin and then its argument prototype would still apply. */
25565 #ifdef __cplusplus
25566 extern "C"
25567 #endif
25568 char $ac_func ();
25569 /* The GNU C library defines this for functions which it implements
25570 to always fail with ENOSYS. Some functions are actually named
25571 something starting with __ and the normal name is an alias. */
25572 #if defined __stub_$ac_func || defined __stub___$ac_func
25573 choke me
25574 #endif
25575
25576 int
25577 main ()
25578 {
25579 return $ac_func ();
25580 ;
25581 return 0;
25582 }
25583 _ACEOF
25584 rm -f conftest.$ac_objext conftest$ac_exeext
25585 if { (ac_try="$ac_link"
25586 case "(($ac_try" in
25587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25588 *) ac_try_echo=$ac_try;;
25589 esac
25590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25591 $as_echo "$ac_try_echo") >&5
25592 (eval "$ac_link") 2>conftest.er1
25593 ac_status=$?
25594 grep -v '^ *+' conftest.er1 >conftest.err
25595 rm -f conftest.er1
25596 cat conftest.err >&5
25597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25598 (exit $ac_status); } && {
25599 test -z "$ac_c_werror_flag" ||
25600 test ! -s conftest.err
25601 } && test -s conftest$ac_exeext && {
25602 test "$cross_compiling" = yes ||
25603 $as_test_x conftest$ac_exeext
25604 }; then
25605 eval "$as_ac_var=yes"
25606 else
25607 $as_echo "$as_me: failed program was:" >&5
25608 sed 's/^/| /' conftest.$ac_ext >&5
25609
25610 eval "$as_ac_var=no"
25611 fi
25612
25613 rm -rf conftest.dSYM
25614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25615 conftest$ac_exeext conftest.$ac_ext
25616 fi
25617 ac_res=`eval 'as_val=${'$as_ac_var'}
25618 $as_echo "$as_val"'`
25619 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25620 $as_echo "$ac_res" >&6; }
25621 if test `eval 'as_val=${'$as_ac_var'}
25622 $as_echo "$as_val"'` = yes; then
25623 cat >>confdefs.h <<_ACEOF
25624 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25625 _ACEOF
25626
25627 fi
25628 done
25629
25630 if test "x$ac_cv_func_fork" = xyes; then
25631 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
25632 $as_echo_n "checking for working fork... " >&6; }
25633 if test "${ac_cv_func_fork_works+set}" = set; then
25634 $as_echo_n "(cached) " >&6
25635 else
25636 if test "$cross_compiling" = yes; then
25637 ac_cv_func_fork_works=cross
25638 else
25639 cat >conftest.$ac_ext <<_ACEOF
25640 /* confdefs.h. */
25641 _ACEOF
25642 cat confdefs.h >>conftest.$ac_ext
25643 cat >>conftest.$ac_ext <<_ACEOF
25644 /* end confdefs.h. */
25645 $ac_includes_default
25646 int
25647 main ()
25648 {
25649
25650 /* By Ruediger Kuhlmann. */
25651 return fork () < 0;
25652
25653 ;
25654 return 0;
25655 }
25656 _ACEOF
25657 rm -f conftest$ac_exeext
25658 if { (ac_try="$ac_link"
25659 case "(($ac_try" in
25660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25661 *) ac_try_echo=$ac_try;;
25662 esac
25663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25664 $as_echo "$ac_try_echo") >&5
25665 (eval "$ac_link") 2>&5
25666 ac_status=$?
25667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25668 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25669 { (case "(($ac_try" in
25670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25671 *) ac_try_echo=$ac_try;;
25672 esac
25673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25674 $as_echo "$ac_try_echo") >&5
25675 (eval "$ac_try") 2>&5
25676 ac_status=$?
25677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25678 (exit $ac_status); }; }; then
25679 ac_cv_func_fork_works=yes
25680 else
25681 $as_echo "$as_me: program exited with status $ac_status" >&5
25682 $as_echo "$as_me: failed program was:" >&5
25683 sed 's/^/| /' conftest.$ac_ext >&5
25684
25685 ( exit $ac_status )
25686 ac_cv_func_fork_works=no
25687 fi
25688 rm -rf conftest.dSYM
25689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25690 fi
25691
25692
25693 fi
25694 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25695 $as_echo "$ac_cv_func_fork_works" >&6; }
25696
25697 else
25698 ac_cv_func_fork_works=$ac_cv_func_fork
25699 fi
25700 if test "x$ac_cv_func_fork_works" = xcross; then
25701 case $host in
25702 *-*-amigaos* | *-*-msdosdjgpp*)
25703 # Override, as these systems have only a dummy fork() stub
25704 ac_cv_func_fork_works=no
25705 ;;
25706 *)
25707 ac_cv_func_fork_works=yes
25708 ;;
25709 esac
25710 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25711 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25712 fi
25713 ac_cv_func_vfork_works=$ac_cv_func_vfork
25714 if test "x$ac_cv_func_vfork" = xyes; then
25715 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
25716 $as_echo_n "checking for working vfork... " >&6; }
25717 if test "${ac_cv_func_vfork_works+set}" = set; then
25718 $as_echo_n "(cached) " >&6
25719 else
25720 if test "$cross_compiling" = yes; then
25721 ac_cv_func_vfork_works=cross
25722 else
25723 cat >conftest.$ac_ext <<_ACEOF
25724 /* confdefs.h. */
25725 _ACEOF
25726 cat confdefs.h >>conftest.$ac_ext
25727 cat >>conftest.$ac_ext <<_ACEOF
25728 /* end confdefs.h. */
25729 /* Thanks to Paul Eggert for this test. */
25730 $ac_includes_default
25731 #include <sys/wait.h>
25732 #ifdef HAVE_VFORK_H
25733 # include <vfork.h>
25734 #endif
25735 /* On some sparc systems, changes by the child to local and incoming
25736 argument registers are propagated back to the parent. The compiler
25737 is told about this with #include <vfork.h>, but some compilers
25738 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25739 static variable whose address is put into a register that is
25740 clobbered by the vfork. */
25741 static void
25742 #ifdef __cplusplus
25743 sparc_address_test (int arg)
25744 # else
25745 sparc_address_test (arg) int arg;
25746 #endif
25747 {
25748 static pid_t child;
25749 if (!child) {
25750 child = vfork ();
25751 if (child < 0) {
25752 perror ("vfork");
25753 _exit(2);
25754 }
25755 if (!child) {
25756 arg = getpid();
25757 write(-1, "", 0);
25758 _exit (arg);
25759 }
25760 }
25761 }
25762
25763 int
25764 main ()
25765 {
25766 pid_t parent = getpid ();
25767 pid_t child;
25768
25769 sparc_address_test (0);
25770
25771 child = vfork ();
25772
25773 if (child == 0) {
25774 /* Here is another test for sparc vfork register problems. This
25775 test uses lots of local variables, at least as many local
25776 variables as main has allocated so far including compiler
25777 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25778 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25779 reuse the register of parent for one of the local variables,
25780 since it will think that parent can't possibly be used any more
25781 in this routine. Assigning to the local variable will thus
25782 munge parent in the parent process. */
25783 pid_t
25784 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25785 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25786 /* Convince the compiler that p..p7 are live; otherwise, it might
25787 use the same hardware register for all 8 local variables. */
25788 if (p != p1 || p != p2 || p != p3 || p != p4
25789 || p != p5 || p != p6 || p != p7)
25790 _exit(1);
25791
25792 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25793 from child file descriptors. If the child closes a descriptor
25794 before it execs or exits, this munges the parent's descriptor
25795 as well. Test for this by closing stdout in the child. */
25796 _exit(close(fileno(stdout)) != 0);
25797 } else {
25798 int status;
25799 struct stat st;
25800
25801 while (wait(&status) != child)
25802 ;
25803 return (
25804 /* Was there some problem with vforking? */
25805 child < 0
25806
25807 /* Did the child fail? (This shouldn't happen.) */
25808 || status
25809
25810 /* Did the vfork/compiler bug occur? */
25811 || parent != getpid()
25812
25813 /* Did the file descriptor bug occur? */
25814 || fstat(fileno(stdout), &st) != 0
25815 );
25816 }
25817 }
25818 _ACEOF
25819 rm -f conftest$ac_exeext
25820 if { (ac_try="$ac_link"
25821 case "(($ac_try" in
25822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25823 *) ac_try_echo=$ac_try;;
25824 esac
25825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25826 $as_echo "$ac_try_echo") >&5
25827 (eval "$ac_link") 2>&5
25828 ac_status=$?
25829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25830 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25831 { (case "(($ac_try" in
25832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25833 *) ac_try_echo=$ac_try;;
25834 esac
25835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25836 $as_echo "$ac_try_echo") >&5
25837 (eval "$ac_try") 2>&5
25838 ac_status=$?
25839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25840 (exit $ac_status); }; }; then
25841 ac_cv_func_vfork_works=yes
25842 else
25843 $as_echo "$as_me: program exited with status $ac_status" >&5
25844 $as_echo "$as_me: failed program was:" >&5
25845 sed 's/^/| /' conftest.$ac_ext >&5
25846
25847 ( exit $ac_status )
25848 ac_cv_func_vfork_works=no
25849 fi
25850 rm -rf conftest.dSYM
25851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25852 fi
25853
25854
25855 fi
25856 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25857 $as_echo "$ac_cv_func_vfork_works" >&6; }
25858
25859 fi;
25860 if test "x$ac_cv_func_fork_works" = xcross; then
25861 ac_cv_func_vfork_works=$ac_cv_func_vfork
25862 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25863 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25864 fi
25865
25866 if test "x$ac_cv_func_vfork_works" = xyes; then
25867
25868 cat >>confdefs.h <<\_ACEOF
25869 #define HAVE_WORKING_VFORK 1
25870 _ACEOF
25871
25872 else
25873
25874 cat >>confdefs.h <<\_ACEOF
25875 #define vfork fork
25876 _ACEOF
25877
25878 fi
25879 if test "x$ac_cv_func_fork_works" = xyes; then
25880
25881 cat >>confdefs.h <<\_ACEOF
25882 #define HAVE_WORKING_FORK 1
25883 _ACEOF
25884
25885 fi
25886
25887
25888 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
25889 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
25890 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25891 $as_echo_n "(cached) " >&6
25892 else
25893 cat >conftest.$ac_ext <<_ACEOF
25894 /* confdefs.h. */
25895 _ACEOF
25896 cat confdefs.h >>conftest.$ac_ext
25897 cat >>conftest.$ac_ext <<_ACEOF
25898 /* end confdefs.h. */
25899 #include <langinfo.h>
25900 int
25901 main ()
25902 {
25903 char* cs = nl_langinfo(CODESET);
25904 ;
25905 return 0;
25906 }
25907 _ACEOF
25908 rm -f conftest.$ac_objext conftest$ac_exeext
25909 if { (ac_try="$ac_link"
25910 case "(($ac_try" in
25911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25912 *) ac_try_echo=$ac_try;;
25913 esac
25914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25915 $as_echo "$ac_try_echo") >&5
25916 (eval "$ac_link") 2>conftest.er1
25917 ac_status=$?
25918 grep -v '^ *+' conftest.er1 >conftest.err
25919 rm -f conftest.er1
25920 cat conftest.err >&5
25921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25922 (exit $ac_status); } && {
25923 test -z "$ac_c_werror_flag" ||
25924 test ! -s conftest.err
25925 } && test -s conftest$ac_exeext && {
25926 test "$cross_compiling" = yes ||
25927 $as_test_x conftest$ac_exeext
25928 }; then
25929 emacs_cv_langinfo_codeset=yes
25930 else
25931 $as_echo "$as_me: failed program was:" >&5
25932 sed 's/^/| /' conftest.$ac_ext >&5
25933
25934 emacs_cv_langinfo_codeset=no
25935 fi
25936
25937 rm -rf conftest.dSYM
25938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25939 conftest$ac_exeext conftest.$ac_ext
25940
25941 fi
25942 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
25943 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25944 if test $emacs_cv_langinfo_codeset = yes; then
25945
25946 cat >>confdefs.h <<\_ACEOF
25947 #define HAVE_LANGINFO_CODESET 1
25948 _ACEOF
25949
25950 fi
25951
25952 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
25953 $as_echo_n "checking for size_t... " >&6; }
25954 if test "${ac_cv_type_size_t+set}" = set; then
25955 $as_echo_n "(cached) " >&6
25956 else
25957 ac_cv_type_size_t=no
25958 cat >conftest.$ac_ext <<_ACEOF
25959 /* confdefs.h. */
25960 _ACEOF
25961 cat confdefs.h >>conftest.$ac_ext
25962 cat >>conftest.$ac_ext <<_ACEOF
25963 /* end confdefs.h. */
25964 $ac_includes_default
25965 int
25966 main ()
25967 {
25968 if (sizeof (size_t))
25969 return 0;
25970 ;
25971 return 0;
25972 }
25973 _ACEOF
25974 rm -f conftest.$ac_objext
25975 if { (ac_try="$ac_compile"
25976 case "(($ac_try" in
25977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25978 *) ac_try_echo=$ac_try;;
25979 esac
25980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25981 $as_echo "$ac_try_echo") >&5
25982 (eval "$ac_compile") 2>conftest.er1
25983 ac_status=$?
25984 grep -v '^ *+' conftest.er1 >conftest.err
25985 rm -f conftest.er1
25986 cat conftest.err >&5
25987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25988 (exit $ac_status); } && {
25989 test -z "$ac_c_werror_flag" ||
25990 test ! -s conftest.err
25991 } && test -s conftest.$ac_objext; then
25992 cat >conftest.$ac_ext <<_ACEOF
25993 /* confdefs.h. */
25994 _ACEOF
25995 cat confdefs.h >>conftest.$ac_ext
25996 cat >>conftest.$ac_ext <<_ACEOF
25997 /* end confdefs.h. */
25998 $ac_includes_default
25999 int
26000 main ()
26001 {
26002 if (sizeof ((size_t)))
26003 return 0;
26004 ;
26005 return 0;
26006 }
26007 _ACEOF
26008 rm -f conftest.$ac_objext
26009 if { (ac_try="$ac_compile"
26010 case "(($ac_try" in
26011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26012 *) ac_try_echo=$ac_try;;
26013 esac
26014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26015 $as_echo "$ac_try_echo") >&5
26016 (eval "$ac_compile") 2>conftest.er1
26017 ac_status=$?
26018 grep -v '^ *+' conftest.er1 >conftest.err
26019 rm -f conftest.er1
26020 cat conftest.err >&5
26021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26022 (exit $ac_status); } && {
26023 test -z "$ac_c_werror_flag" ||
26024 test ! -s conftest.err
26025 } && test -s conftest.$ac_objext; then
26026 :
26027 else
26028 $as_echo "$as_me: failed program was:" >&5
26029 sed 's/^/| /' conftest.$ac_ext >&5
26030
26031 ac_cv_type_size_t=yes
26032 fi
26033
26034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26035 else
26036 $as_echo "$as_me: failed program was:" >&5
26037 sed 's/^/| /' conftest.$ac_ext >&5
26038
26039
26040 fi
26041
26042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26043 fi
26044 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26045 $as_echo "$ac_cv_type_size_t" >&6; }
26046 if test $ac_cv_type_size_t = yes; then
26047
26048 cat >>confdefs.h <<_ACEOF
26049 #define HAVE_SIZE_T 1
26050 _ACEOF
26051
26052
26053 fi
26054
26055
26056 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
26057 $as_echo_n "checking for mbstate_t... " >&6; }
26058 if test "${ac_cv_type_mbstate_t+set}" = set; then
26059 $as_echo_n "(cached) " >&6
26060 else
26061 cat >conftest.$ac_ext <<_ACEOF
26062 /* confdefs.h. */
26063 _ACEOF
26064 cat confdefs.h >>conftest.$ac_ext
26065 cat >>conftest.$ac_ext <<_ACEOF
26066 /* end confdefs.h. */
26067 $ac_includes_default
26068 # include <wchar.h>
26069 int
26070 main ()
26071 {
26072 mbstate_t x; return sizeof x;
26073 ;
26074 return 0;
26075 }
26076 _ACEOF
26077 rm -f conftest.$ac_objext
26078 if { (ac_try="$ac_compile"
26079 case "(($ac_try" in
26080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26081 *) ac_try_echo=$ac_try;;
26082 esac
26083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26084 $as_echo "$ac_try_echo") >&5
26085 (eval "$ac_compile") 2>conftest.er1
26086 ac_status=$?
26087 grep -v '^ *+' conftest.er1 >conftest.err
26088 rm -f conftest.er1
26089 cat conftest.err >&5
26090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26091 (exit $ac_status); } && {
26092 test -z "$ac_c_werror_flag" ||
26093 test ! -s conftest.err
26094 } && test -s conftest.$ac_objext; then
26095 ac_cv_type_mbstate_t=yes
26096 else
26097 $as_echo "$as_me: failed program was:" >&5
26098 sed 's/^/| /' conftest.$ac_ext >&5
26099
26100 ac_cv_type_mbstate_t=no
26101 fi
26102
26103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26104 fi
26105 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
26106 $as_echo "$ac_cv_type_mbstate_t" >&6; }
26107 if test $ac_cv_type_mbstate_t = yes; then
26108
26109 cat >>confdefs.h <<\_ACEOF
26110 #define HAVE_MBSTATE_T 1
26111 _ACEOF
26112
26113 else
26114
26115 cat >>confdefs.h <<\_ACEOF
26116 #define mbstate_t int
26117 _ACEOF
26118
26119 fi
26120
26121 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
26122 $as_echo_n "checking for C restrict keyword... " >&6; }
26123 if test "${emacs_cv_c_restrict+set}" = set; then
26124 $as_echo_n "(cached) " >&6
26125 else
26126 cat >conftest.$ac_ext <<_ACEOF
26127 /* confdefs.h. */
26128 _ACEOF
26129 cat confdefs.h >>conftest.$ac_ext
26130 cat >>conftest.$ac_ext <<_ACEOF
26131 /* end confdefs.h. */
26132 void fred (int *restrict x);
26133 int
26134 main ()
26135 {
26136
26137 ;
26138 return 0;
26139 }
26140 _ACEOF
26141 rm -f conftest.$ac_objext
26142 if { (ac_try="$ac_compile"
26143 case "(($ac_try" in
26144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26145 *) ac_try_echo=$ac_try;;
26146 esac
26147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26148 $as_echo "$ac_try_echo") >&5
26149 (eval "$ac_compile") 2>conftest.er1
26150 ac_status=$?
26151 grep -v '^ *+' conftest.er1 >conftest.err
26152 rm -f conftest.er1
26153 cat conftest.err >&5
26154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26155 (exit $ac_status); } && {
26156 test -z "$ac_c_werror_flag" ||
26157 test ! -s conftest.err
26158 } && test -s conftest.$ac_objext; then
26159 emacs_cv_c_restrict=yes
26160 else
26161 $as_echo "$as_me: failed program was:" >&5
26162 sed 's/^/| /' conftest.$ac_ext >&5
26163
26164 cat >conftest.$ac_ext <<_ACEOF
26165 /* confdefs.h. */
26166 _ACEOF
26167 cat confdefs.h >>conftest.$ac_ext
26168 cat >>conftest.$ac_ext <<_ACEOF
26169 /* end confdefs.h. */
26170 void fred (int *__restrict x);
26171 int
26172 main ()
26173 {
26174
26175 ;
26176 return 0;
26177 }
26178 _ACEOF
26179 rm -f conftest.$ac_objext
26180 if { (ac_try="$ac_compile"
26181 case "(($ac_try" in
26182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26183 *) ac_try_echo=$ac_try;;
26184 esac
26185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26186 $as_echo "$ac_try_echo") >&5
26187 (eval "$ac_compile") 2>conftest.er1
26188 ac_status=$?
26189 grep -v '^ *+' conftest.er1 >conftest.err
26190 rm -f conftest.er1
26191 cat conftest.err >&5
26192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26193 (exit $ac_status); } && {
26194 test -z "$ac_c_werror_flag" ||
26195 test ! -s conftest.err
26196 } && test -s conftest.$ac_objext; then
26197 emacs_cv_c_restrict=__restrict
26198 else
26199 $as_echo "$as_me: failed program was:" >&5
26200 sed 's/^/| /' conftest.$ac_ext >&5
26201
26202 emacs_cv_c_restrict=no
26203 fi
26204
26205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26206 fi
26207
26208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26209 fi
26210 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
26211 $as_echo "$emacs_cv_c_restrict" >&6; }
26212 case "$emacs_cv_c_restrict" in
26213 yes) emacs_restrict=restrict;;
26214 no) emacs_restrict="";;
26215 *) emacs_restrict="$emacs_cv_c_restrict";;
26216 esac
26217 if test "$emacs_restrict" != __restrict; then
26218
26219 cat >>confdefs.h <<_ACEOF
26220 #define __restrict $emacs_restrict
26221 _ACEOF
26222
26223 fi
26224
26225 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
26226 $as_echo_n "checking for C restricted array declarations... " >&6; }
26227 if test "${emacs_cv_c_restrict_arr+set}" = set; then
26228 $as_echo_n "(cached) " >&6
26229 else
26230 cat >conftest.$ac_ext <<_ACEOF
26231 /* confdefs.h. */
26232 _ACEOF
26233 cat confdefs.h >>conftest.$ac_ext
26234 cat >>conftest.$ac_ext <<_ACEOF
26235 /* end confdefs.h. */
26236 void fred (int x[__restrict]);
26237 int
26238 main ()
26239 {
26240
26241 ;
26242 return 0;
26243 }
26244 _ACEOF
26245 rm -f conftest.$ac_objext
26246 if { (ac_try="$ac_compile"
26247 case "(($ac_try" in
26248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26249 *) ac_try_echo=$ac_try;;
26250 esac
26251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26252 $as_echo "$ac_try_echo") >&5
26253 (eval "$ac_compile") 2>conftest.er1
26254 ac_status=$?
26255 grep -v '^ *+' conftest.er1 >conftest.err
26256 rm -f conftest.er1
26257 cat conftest.err >&5
26258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26259 (exit $ac_status); } && {
26260 test -z "$ac_c_werror_flag" ||
26261 test ! -s conftest.err
26262 } && test -s conftest.$ac_objext; then
26263 emacs_cv_c_restrict_arr=yes
26264 else
26265 $as_echo "$as_me: failed program was:" >&5
26266 sed 's/^/| /' conftest.$ac_ext >&5
26267
26268 emacs_cv_c_restrict_arr=no
26269 fi
26270
26271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26272 fi
26273 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
26274 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
26275 if test "$emacs_cv_c_restrict_arr" = yes; then
26276
26277 cat >>confdefs.h <<\_ACEOF
26278 #define __restrict_arr __restrict
26279 _ACEOF
26280
26281 fi
26282
26283
26284
26285 # Set up the CFLAGS for real compilation, so we can substitute it.
26286 CFLAGS="$REAL_CFLAGS"
26287 CPPFLAGS="$REAL_CPPFLAGS"
26288
26289 ## Hack to detect a buggy GCC version.
26290 if test "x$GCC" = xyes \
26291 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
26292 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
26293 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
26294 { { $as_echo "$as_me:$LINENO: error: GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." >&5
26295 $as_echo "$as_me: error: GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." >&2;}
26296 { (exit 1); exit 1; }; }
26297 fi
26298
26299 #### Find out which version of Emacs this is.
26300 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
26301 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
26302 if test x"${version}" = x; then
26303 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
26304 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
26305 { (exit 1); exit 1; }; }
26306 fi
26307 if test x"${version}" != x"$PACKAGE_VERSION"; then
26308 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
26309 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
26310 fi
26311
26312 ### Specify what sort of things we'll be editing into Makefile and config.h.
26313 ### Use configuration here uncanonicalized to avoid exceeding size limits.
26314
26315
26316
26317
26318
26319
26320
26321
26322
26323
26324
26325
26326
26327
26328
26329
26330
26331
26332
26333
26334
26335
26336
26337
26338
26339
26340
26341 ## Used in lwlib/Makefile.in.
26342
26343
26344
26345
26346
26347
26348
26349
26350
26351
26352
26353
26354
26355
26356
26357
26358 cat >>confdefs.h <<_ACEOF
26359 #define EMACS_CONFIGURATION "${canonical}"
26360 _ACEOF
26361
26362
26363 cat >>confdefs.h <<_ACEOF
26364 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
26365 _ACEOF
26366
26367
26368 cat >>confdefs.h <<_ACEOF
26369 #define config_machfile "${machfile}"
26370 _ACEOF
26371
26372
26373 cat >>confdefs.h <<_ACEOF
26374 #define config_opsysfile "${opsysfile}"
26375 _ACEOF
26376
26377
26378 cat >>confdefs.h <<_ACEOF
26379 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
26380 _ACEOF
26381
26382
26383 cat >>confdefs.h <<_ACEOF
26384 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
26385 _ACEOF
26386
26387
26388 XMENU_OBJ=
26389 XOBJ=
26390 if test "${HAVE_X_WINDOWS}" = "yes" ; then
26391
26392 cat >>confdefs.h <<\_ACEOF
26393 #define HAVE_X_WINDOWS 1
26394 _ACEOF
26395
26396 XMENU_OBJ=xmenu.o
26397 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
26398 fi
26399
26400
26401
26402 WIDGET_OBJ=
26403 MOTIF_LIBW=
26404 if test "${USE_X_TOOLKIT}" != "none" ; then
26405 WIDGET_OBJ=widget.o
26406
26407 cat >>confdefs.h <<\_ACEOF
26408 #define USE_X_TOOLKIT 1
26409 _ACEOF
26410
26411 if test "${USE_X_TOOLKIT}" = "LUCID"; then
26412
26413 cat >>confdefs.h <<\_ACEOF
26414 #define USE_LUCID 1
26415 _ACEOF
26416
26417 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
26418
26419 cat >>confdefs.h <<\_ACEOF
26420 #define USE_MOTIF 1
26421 _ACEOF
26422
26423 MOTIF_LIBW=-lXm
26424 case "$opsys" in
26425 gnu-linux)
26426 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
26427 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
26428 ;;
26429
26430 unixware)
26431 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
26432 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
26433 MOTIF_LIBW="MOTIF_LIBW -lXimp"
26434 ;;
26435
26436 aix4-2)
26437 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
26438 MOTIF_LIBW="$MOTIF_LIBW -li18n"
26439 ;;
26440 esac
26441 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
26442 fi
26443 fi
26444
26445
26446 TOOLKIT_LIBW=
26447 case "$USE_X_TOOLKIT" in
26448 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
26449 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
26450 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
26451 esac
26452
26453
26454 if test "$USE_X_TOOLKIT" = "none"; then
26455 LIBXT_OTHER="\$(LIBXSM)"
26456 else
26457 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
26458 fi
26459
26460
26461 ## The X Menu stuff is present in the X10 distribution, but missing
26462 ## from X11. If we have X10, just use the installed library;
26463 ## otherwise, use our own copy.
26464 if test "${HAVE_X11}" = "yes" ; then
26465
26466 cat >>confdefs.h <<\_ACEOF
26467 #define HAVE_X11 1
26468 _ACEOF
26469
26470
26471 if test "$USE_X_TOOLKIT" = "none"; then
26472 OLDXMENU="\${oldXMenudir}libXMenu11.a"
26473 else
26474 OLDXMENU="\${lwlibdir}liblw.a"
26475 fi
26476 LIBXMENU="\$(OLDXMENU)"
26477 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
26478 else
26479 OLDXMENU=
26480 LIBXMENU="-lXMenu"
26481 LIBX_OTHER=
26482 fi
26483
26484 if test "$HAVE_GTK" = "yes"; then
26485 OLDXMENU=
26486 LIBXMENU=
26487 fi
26488
26489
26490
26491
26492
26493 if test "${HAVE_MENUS}" = "yes" ; then
26494
26495 cat >>confdefs.h <<\_ACEOF
26496 #define HAVE_MENUS 1
26497 _ACEOF
26498
26499 fi
26500 if test "${GNU_MALLOC}" = "yes" ; then
26501
26502 cat >>confdefs.h <<\_ACEOF
26503 #define GNU_MALLOC 1
26504 _ACEOF
26505
26506 fi
26507 if test "${REL_ALLOC}" = "yes" ; then
26508
26509 cat >>confdefs.h <<\_ACEOF
26510 #define REL_ALLOC 1
26511 _ACEOF
26512
26513 fi
26514
26515
26516 if test "$opsys" = "cygwin"; then
26517 CYGWIN_OBJ="sheap.o"
26518 ## Cygwin differs because of its unexec().
26519 PRE_ALLOC_OBJ=
26520 POST_ALLOC_OBJ="lastfile.o vm-limit.o"
26521 else
26522 CYGWIN_OBJ=
26523 PRE_ALLOC_OBJ=lastfile.o
26524 POST_ALLOC_OBJ="\$(vmlimitobj)"
26525 fi
26526
26527
26528
26529
26530
26531 case "$opsys" in
26532 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
26533
26534 darwin)
26535 ## The -headerpad option tells ld (see man page) to leave room at the
26536 ## end of the header for adding load commands. Needed for dumping.
26537 ## 0x690 is the total size of 30 segment load commands (at 56
26538 ## each); under Cocoa 31 commands are required.
26539 if test "$HAVE_NS" = "yes"; then
26540 libs_nsgui="-framework AppKit"
26541 headerpad_extra=6C8
26542 else
26543 libs_nsgui=
26544 headerpad_extra=690
26545 fi
26546 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
26547 ;;
26548
26549 *) LD_SWITCH_SYSTEM_TEMACS= ;;
26550 esac
26551
26552
26553
26554 ## This exists because src/Makefile.in did some extra fiddling around
26555 ## with LD_SWITCH_SYSTEM. The cpp logic was:
26556 ## #ifndef LD_SWITCH_SYSTEM
26557 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
26558 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
26559 ## not using gcc, darwin system not on an alpha (ie darwin, since
26560 ## darwin + alpha does not occur).
26561 ## Note that unlike L_S_S, this is not used in ac_link.
26562 if test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
26563 test "$opsys" = "darwin"; then
26564 LD_SWITCH_SYSTEM_EXTRA="-X"
26565 else
26566 LD_SWITCH_SYSTEM_EXTRA=
26567 fi
26568
26569
26570
26571
26572
26573
26574
26575 #### Report on what we decided to do.
26576 #### Report GTK as a toolkit, even if it doesn't use Xt.
26577 #### It makes printing result more understandable as using GTK sets
26578 #### toolkit_scroll_bars to yes by default.
26579 if test "${HAVE_GTK}" = "yes"; then
26580 USE_X_TOOLKIT=GTK
26581 fi
26582
26583 echo "
26584 Configured for \`${canonical}'.
26585
26586 Where should the build process find the source code? ${srcdir}
26587 What operating system and machine description files should Emacs use?
26588 \`${opsysfile}' and \`${machfile}'
26589 What compiler should emacs be built with? ${CC} ${CFLAGS}
26590 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
26591 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
26592 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
26593 What window system should Emacs use? ${window_system}
26594 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
26595
26596 if test -n "${x_includes}"; then
26597 echo " Where do we find X Windows header files? ${x_includes}"
26598 else
26599 echo " Where do we find X Windows header files? Standard dirs"
26600 fi
26601 if test -n "${x_libraries}"; then
26602 echo " Where do we find X Windows libraries? ${x_libraries}"
26603 else
26604 echo " Where do we find X Windows libraries? Standard dirs"
26605 fi
26606
26607 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
26608 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
26609 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
26610 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
26611 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
26612 echo " Does Emacs use -lpng? ${HAVE_PNG}"
26613 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
26614 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
26615 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
26616 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
26617 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
26618
26619 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
26620 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
26621 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
26622 echo " Does Emacs use -lxft? ${HAVE_XFT}"
26623
26624 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26625 echo
26626
26627 if test $USE_XASSERTS = yes; then
26628 echo " Compiling with asserts turned on."
26629 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
26630 fi
26631
26632 echo
26633
26634 if test "$HAVE_NS" = "yes"; then
26635 echo
26636 echo "You must run \"make install\" in order to test the built application.
26637 The installed application will go to nextstep/Emacs.app and can be
26638 run or moved from there."
26639 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26640 echo "The application will be fully self-contained."
26641 else
26642 echo "The lisp resources for the application will be installed under ${prefix}.
26643 You may need to run \"make install\" with sudo. The application will fail
26644 to run if these resources are not installed."
26645 fi
26646 echo
26647 fi
26648
26649 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
26650 echo "D-Bus integration has been tested for GNU/Linux only."
26651 echo
26652 fi
26653
26654
26655 # Remove any trailing slashes in these variables.
26656 test "${prefix}" != NONE &&
26657 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26658 test "${exec_prefix}" != NONE &&
26659 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26660
26661 # Now get this: Some word that is part of the ${srcdir} directory name
26662 # or the ${configuration} value might, just might, happen to be an
26663 # identifier like `sun4' or `i386' or something, and be predefined by
26664 # the C preprocessor to some helpful value like 1, or maybe the empty
26665 # string. Needless to say consequent macro substitutions are less
26666 # than conducive to the makefile finding the correct directory.
26667 cpp_undefs="`echo $srcdir $configuration $canonical unix |
26668 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
26669 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
26670
26671 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
26672 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
26673 ## from Makefile.c can correctly provide the arg `-traditional' to the
26674 ## C preprocessor.
26675
26676 cat >conftest.$ac_ext <<_ACEOF
26677 /* confdefs.h. */
26678 _ACEOF
26679 cat confdefs.h >>conftest.$ac_ext
26680 cat >>conftest.$ac_ext <<_ACEOF
26681 /* end confdefs.h. */
26682 yes..yes
26683 _ACEOF
26684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26685 $EGREP "yes..yes" >/dev/null 2>&1; then
26686 CPP_NEED_TRADITIONAL=no
26687 else
26688 CPP_NEED_TRADITIONAL=yes
26689 fi
26690 rm -f conftest*
26691
26692
26693 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"
26694
26695 ac_config_commands="$ac_config_commands default"
26696
26697 cat >confcache <<\_ACEOF
26698 # This file is a shell script that caches the results of configure
26699 # tests run on this system so they can be shared between configure
26700 # scripts and configure runs, see configure's option --config-cache.
26701 # It is not useful on other systems. If it contains results you don't
26702 # want to keep, you may remove or edit it.
26703 #
26704 # config.status only pays attention to the cache file if you give it
26705 # the --recheck option to rerun configure.
26706 #
26707 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26708 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26709 # following values.
26710
26711 _ACEOF
26712
26713 # The following way of writing the cache mishandles newlines in values,
26714 # but we know of no workaround that is simple, portable, and efficient.
26715 # So, we kill variables containing newlines.
26716 # Ultrix sh set writes to stderr and can't be redirected directly,
26717 # and sets the high bit in the cache file unless we assign to the vars.
26718 (
26719 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26720 eval ac_val=\$$ac_var
26721 case $ac_val in #(
26722 *${as_nl}*)
26723 case $ac_var in #(
26724 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26725 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26726 esac
26727 case $ac_var in #(
26728 _ | IFS | as_nl) ;; #(
26729 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26730 *) $as_unset $ac_var ;;
26731 esac ;;
26732 esac
26733 done
26734
26735 (set) 2>&1 |
26736 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26737 *${as_nl}ac_space=\ *)
26738 # `set' does not quote correctly, so add quotes (double-quote
26739 # substitution turns \\\\ into \\, and sed turns \\ into \).
26740 sed -n \
26741 "s/'/'\\\\''/g;
26742 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26743 ;; #(
26744 *)
26745 # `set' quotes correctly as required by POSIX, so do not add quotes.
26746 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26747 ;;
26748 esac |
26749 sort
26750 ) |
26751 sed '
26752 /^ac_cv_env_/b end
26753 t clear
26754 :clear
26755 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26756 t end
26757 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26758 :end' >>confcache
26759 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26760 if test -w "$cache_file"; then
26761 test "x$cache_file" != "x/dev/null" &&
26762 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26763 $as_echo "$as_me: updating cache $cache_file" >&6;}
26764 cat confcache >$cache_file
26765 else
26766 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26767 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26768 fi
26769 fi
26770 rm -f confcache
26771
26772 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26773 # Let make expand exec_prefix.
26774 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26775
26776 DEFS=-DHAVE_CONFIG_H
26777
26778 ac_libobjs=
26779 ac_ltlibobjs=
26780 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26781 # 1. Remove the extension, and $U if already installed.
26782 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26783 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26784 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26785 # will be set to the directory where LIBOBJS objects are built.
26786 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26787 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26788 done
26789 LIBOBJS=$ac_libobjs
26790
26791 LTLIBOBJS=$ac_ltlibobjs
26792
26793
26794
26795 : ${CONFIG_STATUS=./config.status}
26796 ac_write_fail=0
26797 ac_clean_files_save=$ac_clean_files
26798 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26799 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26800 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26801 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26802 #! $SHELL
26803 # Generated by $as_me.
26804 # Run this file to recreate the current configuration.
26805 # Compiler output produced by configure, useful for debugging
26806 # configure, is in config.log if it exists.
26807
26808 debug=false
26809 ac_cs_recheck=false
26810 ac_cs_silent=false
26811 SHELL=\${CONFIG_SHELL-$SHELL}
26812 _ACEOF
26813
26814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26815 ## --------------------- ##
26816 ## M4sh Initialization. ##
26817 ## --------------------- ##
26818
26819 # Be more Bourne compatible
26820 DUALCASE=1; export DUALCASE # for MKS sh
26821 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26822 emulate sh
26823 NULLCMD=:
26824 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26825 # is contrary to our usage. Disable this feature.
26826 alias -g '${1+"$@"}'='"$@"'
26827 setopt NO_GLOB_SUBST
26828 else
26829 case `(set -o) 2>/dev/null` in
26830 *posix*) set -o posix ;;
26831 esac
26832
26833 fi
26834
26835
26836
26837
26838 # PATH needs CR
26839 # Avoid depending upon Character Ranges.
26840 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26841 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26842 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26843 as_cr_digits='0123456789'
26844 as_cr_alnum=$as_cr_Letters$as_cr_digits
26845
26846 as_nl='
26847 '
26848 export as_nl
26849 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26850 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26851 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26852 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26853 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26854 as_echo='printf %s\n'
26855 as_echo_n='printf %s'
26856 else
26857 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26858 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26859 as_echo_n='/usr/ucb/echo -n'
26860 else
26861 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26862 as_echo_n_body='eval
26863 arg=$1;
26864 case $arg in
26865 *"$as_nl"*)
26866 expr "X$arg" : "X\\(.*\\)$as_nl";
26867 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26868 esac;
26869 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26870 '
26871 export as_echo_n_body
26872 as_echo_n='sh -c $as_echo_n_body as_echo'
26873 fi
26874 export as_echo_body
26875 as_echo='sh -c $as_echo_body as_echo'
26876 fi
26877
26878 # The user is always right.
26879 if test "${PATH_SEPARATOR+set}" != set; then
26880 PATH_SEPARATOR=:
26881 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26882 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26883 PATH_SEPARATOR=';'
26884 }
26885 fi
26886
26887 # Support unset when possible.
26888 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26889 as_unset=unset
26890 else
26891 as_unset=false
26892 fi
26893
26894
26895 # IFS
26896 # We need space, tab and new line, in precisely that order. Quoting is
26897 # there to prevent editors from complaining about space-tab.
26898 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26899 # splitting by setting IFS to empty value.)
26900 IFS=" "" $as_nl"
26901
26902 # Find who we are. Look in the path if we contain no directory separator.
26903 case $0 in
26904 *[\\/]* ) as_myself=$0 ;;
26905 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26906 for as_dir in $PATH
26907 do
26908 IFS=$as_save_IFS
26909 test -z "$as_dir" && as_dir=.
26910 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26911 done
26912 IFS=$as_save_IFS
26913
26914 ;;
26915 esac
26916 # We did not find ourselves, most probably we were run as `sh COMMAND'
26917 # in which case we are not to be found in the path.
26918 if test "x$as_myself" = x; then
26919 as_myself=$0
26920 fi
26921 if test ! -f "$as_myself"; then
26922 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26923 { (exit 1); exit 1; }
26924 fi
26925
26926 # Work around bugs in pre-3.0 UWIN ksh.
26927 for as_var in ENV MAIL MAILPATH
26928 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26929 done
26930 PS1='$ '
26931 PS2='> '
26932 PS4='+ '
26933
26934 # NLS nuisances.
26935 LC_ALL=C
26936 export LC_ALL
26937 LANGUAGE=C
26938 export LANGUAGE
26939
26940 # Required to use basename.
26941 if expr a : '\(a\)' >/dev/null 2>&1 &&
26942 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26943 as_expr=expr
26944 else
26945 as_expr=false
26946 fi
26947
26948 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26949 as_basename=basename
26950 else
26951 as_basename=false
26952 fi
26953
26954
26955 # Name of the executable.
26956 as_me=`$as_basename -- "$0" ||
26957 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26958 X"$0" : 'X\(//\)$' \| \
26959 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26960 $as_echo X/"$0" |
26961 sed '/^.*\/\([^/][^/]*\)\/*$/{
26962 s//\1/
26963 q
26964 }
26965 /^X\/\(\/\/\)$/{
26966 s//\1/
26967 q
26968 }
26969 /^X\/\(\/\).*/{
26970 s//\1/
26971 q
26972 }
26973 s/.*/./; q'`
26974
26975 # CDPATH.
26976 $as_unset CDPATH
26977
26978
26979
26980 as_lineno_1=$LINENO
26981 as_lineno_2=$LINENO
26982 test "x$as_lineno_1" != "x$as_lineno_2" &&
26983 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26984
26985 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26986 # uniformly replaced by the line number. The first 'sed' inserts a
26987 # line-number line after each line using $LINENO; the second 'sed'
26988 # does the real work. The second script uses 'N' to pair each
26989 # line-number line with the line containing $LINENO, and appends
26990 # trailing '-' during substitution so that $LINENO is not a special
26991 # case at line end.
26992 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26993 # scripts with optimization help from Paolo Bonzini. Blame Lee
26994 # E. McMahon (1931-1989) for sed's syntax. :-)
26995 sed -n '
26996 p
26997 /[$]LINENO/=
26998 ' <$as_myself |
26999 sed '
27000 s/[$]LINENO.*/&-/
27001 t lineno
27002 b
27003 :lineno
27004 N
27005 :loop
27006 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27007 t loop
27008 s/-\n.*//
27009 ' >$as_me.lineno &&
27010 chmod +x "$as_me.lineno" ||
27011 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27012 { (exit 1); exit 1; }; }
27013
27014 # Don't try to exec as it changes $[0], causing all sort of problems
27015 # (the dirname of $[0] is not the place where we might find the
27016 # original and so on. Autoconf is especially sensitive to this).
27017 . "./$as_me.lineno"
27018 # Exit status is that of the last command.
27019 exit
27020 }
27021
27022
27023 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27024 as_dirname=dirname
27025 else
27026 as_dirname=false
27027 fi
27028
27029 ECHO_C= ECHO_N= ECHO_T=
27030 case `echo -n x` in
27031 -n*)
27032 case `echo 'x\c'` in
27033 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27034 *) ECHO_C='\c';;
27035 esac;;
27036 *)
27037 ECHO_N='-n';;
27038 esac
27039 if expr a : '\(a\)' >/dev/null 2>&1 &&
27040 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27041 as_expr=expr
27042 else
27043 as_expr=false
27044 fi
27045
27046 rm -f conf$$ conf$$.exe conf$$.file
27047 if test -d conf$$.dir; then
27048 rm -f conf$$.dir/conf$$.file
27049 else
27050 rm -f conf$$.dir
27051 mkdir conf$$.dir 2>/dev/null
27052 fi
27053 if (echo >conf$$.file) 2>/dev/null; then
27054 if ln -s conf$$.file conf$$ 2>/dev/null; then
27055 as_ln_s='ln -s'
27056 # ... but there are two gotchas:
27057 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27058 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27059 # In both cases, we have to default to `cp -p'.
27060 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27061 as_ln_s='cp -p'
27062 elif ln conf$$.file conf$$ 2>/dev/null; then
27063 as_ln_s=ln
27064 else
27065 as_ln_s='cp -p'
27066 fi
27067 else
27068 as_ln_s='cp -p'
27069 fi
27070 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27071 rmdir conf$$.dir 2>/dev/null
27072
27073 if mkdir -p . 2>/dev/null; then
27074 as_mkdir_p=:
27075 else
27076 test -d ./-p && rmdir ./-p
27077 as_mkdir_p=false
27078 fi
27079
27080 if test -x / >/dev/null 2>&1; then
27081 as_test_x='test -x'
27082 else
27083 if ls -dL / >/dev/null 2>&1; then
27084 as_ls_L_option=L
27085 else
27086 as_ls_L_option=
27087 fi
27088 as_test_x='
27089 eval sh -c '\''
27090 if test -d "$1"; then
27091 test -d "$1/.";
27092 else
27093 case $1 in
27094 -*)set "./$1";;
27095 esac;
27096 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27097 ???[sx]*):;;*)false;;esac;fi
27098 '\'' sh
27099 '
27100 fi
27101 as_executable_p=$as_test_x
27102
27103 # Sed expression to map a string onto a valid CPP name.
27104 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27105
27106 # Sed expression to map a string onto a valid variable name.
27107 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27108
27109
27110 exec 6>&1
27111
27112 # Save the log message, to keep $[0] and so on meaningful, and to
27113 # report actual input values of CONFIG_FILES etc. instead of their
27114 # values after options handling.
27115 ac_log="
27116 This file was extended by emacs $as_me 24.0.50, which was
27117 generated by GNU Autoconf 2.62. Invocation command line was
27118
27119 CONFIG_FILES = $CONFIG_FILES
27120 CONFIG_HEADERS = $CONFIG_HEADERS
27121 CONFIG_LINKS = $CONFIG_LINKS
27122 CONFIG_COMMANDS = $CONFIG_COMMANDS
27123 $ $0 $@
27124
27125 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27126 "
27127
27128 _ACEOF
27129
27130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27131 # Files that config.status was made for.
27132 config_files="$ac_config_files"
27133 config_headers="$ac_config_headers"
27134 config_commands="$ac_config_commands"
27135
27136 _ACEOF
27137
27138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27139 ac_cs_usage="\
27140 \`$as_me' instantiates files from templates according to the
27141 current configuration.
27142
27143 Usage: $0 [OPTIONS] [FILE]...
27144
27145 -h, --help print this help, then exit
27146 -V, --version print version number and configuration settings, then exit
27147 -q, --quiet do not print progress messages
27148 -d, --debug don't remove temporary files
27149 --recheck update $as_me by reconfiguring in the same conditions
27150 --file=FILE[:TEMPLATE]
27151 instantiate the configuration file FILE
27152 --header=FILE[:TEMPLATE]
27153 instantiate the configuration header FILE
27154
27155 Configuration files:
27156 $config_files
27157
27158 Configuration headers:
27159 $config_headers
27160
27161 Configuration commands:
27162 $config_commands
27163
27164 Report bugs to <bug-autoconf@gnu.org>."
27165
27166 _ACEOF
27167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27168 ac_cs_version="\\
27169 emacs config.status 24.0.50
27170 configured by $0, generated by GNU Autoconf 2.62,
27171 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27172
27173 Copyright (C) 2008 Free Software Foundation, Inc.
27174 This config.status script is free software; the Free Software Foundation
27175 gives unlimited permission to copy, distribute and modify it."
27176
27177 ac_pwd='$ac_pwd'
27178 srcdir='$srcdir'
27179 INSTALL='$INSTALL'
27180 test -n "\$AWK" || AWK=awk
27181 _ACEOF
27182
27183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27184 # The default lists apply if the user does not specify any file.
27185 ac_need_defaults=:
27186 while test $# != 0
27187 do
27188 case $1 in
27189 --*=*)
27190 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27191 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27192 ac_shift=:
27193 ;;
27194 *)
27195 ac_option=$1
27196 ac_optarg=$2
27197 ac_shift=shift
27198 ;;
27199 esac
27200
27201 case $ac_option in
27202 # Handling of the options.
27203 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27204 ac_cs_recheck=: ;;
27205 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27206 $as_echo "$ac_cs_version"; exit ;;
27207 --debug | --debu | --deb | --de | --d | -d )
27208 debug=: ;;
27209 --file | --fil | --fi | --f )
27210 $ac_shift
27211 case $ac_optarg in
27212 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27213 esac
27214 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
27215 ac_need_defaults=false;;
27216 --header | --heade | --head | --hea )
27217 $ac_shift
27218 case $ac_optarg in
27219 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27220 esac
27221 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
27222 ac_need_defaults=false;;
27223 --he | --h)
27224 # Conflict between --help and --header
27225 { $as_echo "$as_me: error: ambiguous option: $1
27226 Try \`$0 --help' for more information." >&2
27227 { (exit 1); exit 1; }; };;
27228 --help | --hel | -h )
27229 $as_echo "$ac_cs_usage"; exit ;;
27230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27231 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27232 ac_cs_silent=: ;;
27233
27234 # This is an error.
27235 -*) { $as_echo "$as_me: error: unrecognized option: $1
27236 Try \`$0 --help' for more information." >&2
27237 { (exit 1); exit 1; }; } ;;
27238
27239 *) ac_config_targets="$ac_config_targets $1"
27240 ac_need_defaults=false ;;
27241
27242 esac
27243 shift
27244 done
27245
27246 ac_configure_extra_args=
27247
27248 if $ac_cs_silent; then
27249 exec 6>/dev/null
27250 ac_configure_extra_args="$ac_configure_extra_args --silent"
27251 fi
27252
27253 _ACEOF
27254 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27255 if \$ac_cs_recheck; then
27256 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27257 shift
27258 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27259 CONFIG_SHELL='$SHELL'
27260 export CONFIG_SHELL
27261 exec "\$@"
27262 fi
27263
27264 _ACEOF
27265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27266 exec 5>>config.log
27267 {
27268 echo
27269 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27270 ## Running $as_me. ##
27271 _ASBOX
27272 $as_echo "$ac_log"
27273 } >&5
27274
27275 _ACEOF
27276 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27277 #
27278 # INIT-COMMANDS
27279 #
27280 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
27281
27282 _ACEOF
27283
27284 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27285
27286 # Handling of arguments.
27287 for ac_config_target in $ac_config_targets
27288 do
27289 case $ac_config_target in
27290 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
27291 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27292 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
27293 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
27294 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
27295 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
27296 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
27297 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
27298 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
27299 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
27300 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
27301 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
27302 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27303
27304 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27305 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27306 { (exit 1); exit 1; }; };;
27307 esac
27308 done
27309
27310
27311 # If the user did not use the arguments to specify the items to instantiate,
27312 # then the envvar interface is used. Set only those that are not.
27313 # We use the long form for the default assignment because of an extremely
27314 # bizarre bug on SunOS 4.1.3.
27315 if $ac_need_defaults; then
27316 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27317 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27318 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27319 fi
27320
27321 # Have a temporary directory for convenience. Make it in the build tree
27322 # simply because there is no reason against having it here, and in addition,
27323 # creating and moving files from /tmp can sometimes cause problems.
27324 # Hook for its removal unless debugging.
27325 # Note that there is a small window in which the directory will not be cleaned:
27326 # after its creation but before its name has been assigned to `$tmp'.
27327 $debug ||
27328 {
27329 tmp=
27330 trap 'exit_status=$?
27331 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27332 ' 0
27333 trap '{ (exit 1); exit 1; }' 1 2 13 15
27334 }
27335 # Create a (secure) tmp directory for tmp files.
27336
27337 {
27338 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27339 test -n "$tmp" && test -d "$tmp"
27340 } ||
27341 {
27342 tmp=./conf$$-$RANDOM
27343 (umask 077 && mkdir "$tmp")
27344 } ||
27345 {
27346 $as_echo "$as_me: cannot create a temporary directory in ." >&2
27347 { (exit 1); exit 1; }
27348 }
27349
27350 # Set up the scripts for CONFIG_FILES section.
27351 # No need to generate them if there are no CONFIG_FILES.
27352 # This happens for instance with `./config.status config.h'.
27353 if test -n "$CONFIG_FILES"; then
27354
27355
27356 ac_cr=' '
27357 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27358 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27359 ac_cs_awk_cr='\\r'
27360 else
27361 ac_cs_awk_cr=$ac_cr
27362 fi
27363
27364 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27365 _ACEOF
27366
27367
27368 {
27369 echo "cat >conf$$subs.awk <<_ACEOF" &&
27370 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27371 echo "_ACEOF"
27372 } >conf$$subs.sh ||
27373 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27374 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27375 { (exit 1); exit 1; }; }
27376 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27377 ac_delim='%!_!# '
27378 for ac_last_try in false false false false false :; do
27379 . ./conf$$subs.sh ||
27380 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27381 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27382 { (exit 1); exit 1; }; }
27383
27384 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
27385 break
27386 elif $ac_last_try; then
27387 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27388 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27389 { (exit 1); exit 1; }; }
27390 else
27391 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27392 fi
27393 done
27394 rm -f conf$$subs.sh
27395
27396 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27397 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27398 _ACEOF
27399 sed -n '
27400 h
27401 s/^/S["/; s/!.*/"]=/
27402 p
27403 g
27404 s/^[^!]*!//
27405 :repl
27406 t repl
27407 s/'"$ac_delim"'$//
27408 t delim
27409 :nl
27410 h
27411 s/\(.\{148\}\).*/\1/
27412 t more1
27413 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27414 p
27415 n
27416 b repl
27417 :more1
27418 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27419 p
27420 g
27421 s/.\{148\}//
27422 t nl
27423 :delim
27424 h
27425 s/\(.\{148\}\).*/\1/
27426 t more2
27427 s/["\\]/\\&/g; s/^/"/; s/$/"/
27428 p
27429 b
27430 :more2
27431 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27432 p
27433 g
27434 s/.\{148\}//
27435 t delim
27436 ' <conf$$subs.awk | sed '
27437 /^[^""]/{
27438 N
27439 s/\n//
27440 }
27441 ' >>$CONFIG_STATUS || ac_write_fail=1
27442 rm -f conf$$subs.awk
27443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27444 _ACAWK
27445 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27446 for (key in S) S_is_set[key] = 1
27447 FS = "\a"
27448
27449 }
27450 {
27451 line = $ 0
27452 nfields = split(line, field, "@")
27453 substed = 0
27454 len = length(field[1])
27455 for (i = 2; i < nfields; i++) {
27456 key = field[i]
27457 keylen = length(key)
27458 if (S_is_set[key]) {
27459 value = S[key]
27460 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27461 len += length(value) + length(field[++i])
27462 substed = 1
27463 } else
27464 len += 1 + keylen
27465 }
27466
27467 print line
27468 }
27469
27470 _ACAWK
27471 _ACEOF
27472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27473 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27474 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27475 else
27476 cat
27477 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27478 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
27479 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
27480 { (exit 1); exit 1; }; }
27481 _ACEOF
27482
27483 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27484 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27485 # trailing colons and then remove the whole line if VPATH becomes empty
27486 # (actually we leave an empty line to preserve line numbers).
27487 if test "x$srcdir" = x.; then
27488 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27489 s/:*\$(srcdir):*/:/
27490 s/:*\${srcdir}:*/:/
27491 s/:*@srcdir@:*/:/
27492 s/^\([^=]*=[ ]*\):*/\1/
27493 s/:*$//
27494 s/^[^=]*=[ ]*$//
27495 }'
27496 fi
27497
27498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27499 fi # test -n "$CONFIG_FILES"
27500
27501 # Set up the scripts for CONFIG_HEADERS section.
27502 # No need to generate them if there are no CONFIG_HEADERS.
27503 # This happens for instance with `./config.status Makefile'.
27504 if test -n "$CONFIG_HEADERS"; then
27505 cat >"$tmp/defines.awk" <<\_ACAWK ||
27506 BEGIN {
27507 _ACEOF
27508
27509 # Transform confdefs.h into an awk script `defines.awk', embedded as
27510 # here-document in config.status, that substitutes the proper values into
27511 # config.h.in to produce config.h.
27512
27513 # Create a delimiter string that does not exist in confdefs.h, to ease
27514 # handling of long lines.
27515 ac_delim='%!_!# '
27516 for ac_last_try in false false :; do
27517 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27518 if test -z "$ac_t"; then
27519 break
27520 elif $ac_last_try; then
27521 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
27522 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
27523 { (exit 1); exit 1; }; }
27524 else
27525 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27526 fi
27527 done
27528
27529 # For the awk script, D is an array of macro values keyed by name,
27530 # likewise P contains macro parameters if any. Preserve backslash
27531 # newline sequences.
27532
27533 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27534 sed -n '
27535 s/.\{148\}/&'"$ac_delim"'/g
27536 t rset
27537 :rset
27538 s/^[ ]*#[ ]*define[ ][ ]*/ /
27539 t def
27540 d
27541 :def
27542 s/\\$//
27543 t bsnl
27544 s/["\\]/\\&/g
27545 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27546 D["\1"]=" \3"/p
27547 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27548 d
27549 :bsnl
27550 s/["\\]/\\&/g
27551 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27552 D["\1"]=" \3\\\\\\n"\\/p
27553 t cont
27554 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27555 t cont
27556 d
27557 :cont
27558 n
27559 s/.\{148\}/&'"$ac_delim"'/g
27560 t clear
27561 :clear
27562 s/\\$//
27563 t bsnlc
27564 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27565 d
27566 :bsnlc
27567 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27568 b cont
27569 ' <confdefs.h | sed '
27570 s/'"$ac_delim"'/"\\\
27571 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27572
27573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27574 for (key in D) D_is_set[key] = 1
27575 FS = "\a"
27576 }
27577 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27578 line = \$ 0
27579 split(line, arg, " ")
27580 if (arg[1] == "#") {
27581 defundef = arg[2]
27582 mac1 = arg[3]
27583 } else {
27584 defundef = substr(arg[1], 2)
27585 mac1 = arg[2]
27586 }
27587 split(mac1, mac2, "(") #)
27588 macro = mac2[1]
27589 if (D_is_set[macro]) {
27590 # Preserve the white space surrounding the "#".
27591 prefix = substr(line, 1, index(line, defundef) - 1)
27592 print prefix "define", macro P[macro] D[macro]
27593 next
27594 } else {
27595 # Replace #undef with comments. This is necessary, for example,
27596 # in the case of _POSIX_SOURCE, which is predefined and required
27597 # on some systems where configure will not decide to define it.
27598 if (defundef == "undef") {
27599 print "/*", line, "*/"
27600 next
27601 }
27602 }
27603 }
27604 { print }
27605 _ACAWK
27606 _ACEOF
27607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27608 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27609 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27610 { (exit 1); exit 1; }; }
27611 fi # test -n "$CONFIG_HEADERS"
27612
27613
27614 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27615 shift
27616 for ac_tag
27617 do
27618 case $ac_tag in
27619 :[FHLC]) ac_mode=$ac_tag; continue;;
27620 esac
27621 case $ac_mode$ac_tag in
27622 :[FHL]*:*);;
27623 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27624 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27625 { (exit 1); exit 1; }; };;
27626 :[FH]-) ac_tag=-:-;;
27627 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27628 esac
27629 ac_save_IFS=$IFS
27630 IFS=:
27631 set x $ac_tag
27632 IFS=$ac_save_IFS
27633 shift
27634 ac_file=$1
27635 shift
27636
27637 case $ac_mode in
27638 :L) ac_source=$1;;
27639 :[FH])
27640 ac_file_inputs=
27641 for ac_f
27642 do
27643 case $ac_f in
27644 -) ac_f="$tmp/stdin";;
27645 *) # Look for the file first in the build tree, then in the source tree
27646 # (if the path is not absolute). The absolute path cannot be DOS-style,
27647 # because $ac_f cannot contain `:'.
27648 test -f "$ac_f" ||
27649 case $ac_f in
27650 [\\/$]*) false;;
27651 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27652 esac ||
27653 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27654 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27655 { (exit 1); exit 1; }; };;
27656 esac
27657 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27658 ac_file_inputs="$ac_file_inputs '$ac_f'"
27659 done
27660
27661 # Let's still pretend it is `configure' which instantiates (i.e., don't
27662 # use $as_me), people would be surprised to read:
27663 # /* config.h. Generated by config.status. */
27664 configure_input='Generated from '`
27665 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27666 `' by configure.'
27667 if test x"$ac_file" != x-; then
27668 configure_input="$ac_file. $configure_input"
27669 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27670 $as_echo "$as_me: creating $ac_file" >&6;}
27671 fi
27672 # Neutralize special characters interpreted by sed in replacement strings.
27673 case $configure_input in #(
27674 *\&* | *\|* | *\\* )
27675 ac_sed_conf_input=`$as_echo "$configure_input" |
27676 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27677 *) ac_sed_conf_input=$configure_input;;
27678 esac
27679
27680 case $ac_tag in
27681 *:-:* | *:-) cat >"$tmp/stdin" \
27682 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27683 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27684 { (exit 1); exit 1; }; } ;;
27685 esac
27686 ;;
27687 esac
27688
27689 ac_dir=`$as_dirname -- "$ac_file" ||
27690 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27691 X"$ac_file" : 'X\(//\)[^/]' \| \
27692 X"$ac_file" : 'X\(//\)$' \| \
27693 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27694 $as_echo X"$ac_file" |
27695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27696 s//\1/
27697 q
27698 }
27699 /^X\(\/\/\)[^/].*/{
27700 s//\1/
27701 q
27702 }
27703 /^X\(\/\/\)$/{
27704 s//\1/
27705 q
27706 }
27707 /^X\(\/\).*/{
27708 s//\1/
27709 q
27710 }
27711 s/.*/./; q'`
27712 { as_dir="$ac_dir"
27713 case $as_dir in #(
27714 -*) as_dir=./$as_dir;;
27715 esac
27716 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27717 as_dirs=
27718 while :; do
27719 case $as_dir in #(
27720 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27721 *) as_qdir=$as_dir;;
27722 esac
27723 as_dirs="'$as_qdir' $as_dirs"
27724 as_dir=`$as_dirname -- "$as_dir" ||
27725 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27726 X"$as_dir" : 'X\(//\)[^/]' \| \
27727 X"$as_dir" : 'X\(//\)$' \| \
27728 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27729 $as_echo X"$as_dir" |
27730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27731 s//\1/
27732 q
27733 }
27734 /^X\(\/\/\)[^/].*/{
27735 s//\1/
27736 q
27737 }
27738 /^X\(\/\/\)$/{
27739 s//\1/
27740 q
27741 }
27742 /^X\(\/\).*/{
27743 s//\1/
27744 q
27745 }
27746 s/.*/./; q'`
27747 test -d "$as_dir" && break
27748 done
27749 test -z "$as_dirs" || eval "mkdir $as_dirs"
27750 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27751 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27752 { (exit 1); exit 1; }; }; }
27753 ac_builddir=.
27754
27755 case "$ac_dir" in
27756 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27757 *)
27758 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27759 # A ".." for each directory in $ac_dir_suffix.
27760 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27761 case $ac_top_builddir_sub in
27762 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27763 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27764 esac ;;
27765 esac
27766 ac_abs_top_builddir=$ac_pwd
27767 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27768 # for backward compatibility:
27769 ac_top_builddir=$ac_top_build_prefix
27770
27771 case $srcdir in
27772 .) # We are building in place.
27773 ac_srcdir=.
27774 ac_top_srcdir=$ac_top_builddir_sub
27775 ac_abs_top_srcdir=$ac_pwd ;;
27776 [\\/]* | ?:[\\/]* ) # Absolute name.
27777 ac_srcdir=$srcdir$ac_dir_suffix;
27778 ac_top_srcdir=$srcdir
27779 ac_abs_top_srcdir=$srcdir ;;
27780 *) # Relative name.
27781 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27782 ac_top_srcdir=$ac_top_build_prefix$srcdir
27783 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27784 esac
27785 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27786
27787
27788 case $ac_mode in
27789 :F)
27790 #
27791 # CONFIG_FILE
27792 #
27793
27794 case $INSTALL in
27795 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27796 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27797 esac
27798 _ACEOF
27799
27800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27801 # If the template does not know about datarootdir, expand it.
27802 # FIXME: This hack should be removed a few years after 2.60.
27803 ac_datarootdir_hack=; ac_datarootdir_seen=
27804
27805 ac_sed_dataroot='
27806 /datarootdir/ {
27807 p
27808 q
27809 }
27810 /@datadir@/p
27811 /@docdir@/p
27812 /@infodir@/p
27813 /@localedir@/p
27814 /@mandir@/p
27815 '
27816 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27817 *datarootdir*) ac_datarootdir_seen=yes;;
27818 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27819 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27820 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27821 _ACEOF
27822 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27823 ac_datarootdir_hack='
27824 s&@datadir@&$datadir&g
27825 s&@docdir@&$docdir&g
27826 s&@infodir@&$infodir&g
27827 s&@localedir@&$localedir&g
27828 s&@mandir@&$mandir&g
27829 s&\\\${datarootdir}&$datarootdir&g' ;;
27830 esac
27831 _ACEOF
27832
27833 # Neutralize VPATH when `$srcdir' = `.'.
27834 # Shell code in configure.ac might set extrasub.
27835 # FIXME: do we really want to maintain this feature?
27836 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27837 ac_sed_extra="$ac_vpsub
27838 $extrasub
27839 _ACEOF
27840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27841 :t
27842 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27843 s|@configure_input@|$ac_sed_conf_input|;t t
27844 s&@top_builddir@&$ac_top_builddir_sub&;t t
27845 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27846 s&@srcdir@&$ac_srcdir&;t t
27847 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27848 s&@top_srcdir@&$ac_top_srcdir&;t t
27849 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27850 s&@builddir@&$ac_builddir&;t t
27851 s&@abs_builddir@&$ac_abs_builddir&;t t
27852 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27853 s&@INSTALL@&$ac_INSTALL&;t t
27854 $ac_datarootdir_hack
27855 "
27856 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
27857 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27858 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27859 { (exit 1); exit 1; }; }
27860
27861 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27862 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27863 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27864 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27865 which seems to be undefined. Please make sure it is defined." >&5
27866 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27867 which seems to be undefined. Please make sure it is defined." >&2;}
27868
27869 rm -f "$tmp/stdin"
27870 case $ac_file in
27871 -) cat "$tmp/out" && rm -f "$tmp/out";;
27872 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27873 esac \
27874 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27875 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27876 { (exit 1); exit 1; }; }
27877 ;;
27878 :H)
27879 #
27880 # CONFIG_HEADER
27881 #
27882 if test x"$ac_file" != x-; then
27883 {
27884 $as_echo "/* $configure_input */" \
27885 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27886 } >"$tmp/config.h" \
27887 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27888 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27889 { (exit 1); exit 1; }; }
27890 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27891 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27892 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27893 else
27894 rm -f "$ac_file"
27895 mv "$tmp/config.h" "$ac_file" \
27896 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27897 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27898 { (exit 1); exit 1; }; }
27899 fi
27900 else
27901 $as_echo "/* $configure_input */" \
27902 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27903 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27904 $as_echo "$as_me: error: could not create -" >&2;}
27905 { (exit 1); exit 1; }; }
27906 fi
27907 ;;
27908
27909 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
27910 $as_echo "$as_me: executing $ac_file commands" >&6;}
27911 ;;
27912 esac
27913
27914
27915 case $ac_file$ac_mode in
27916 "default":C)
27917
27918 ### Make the necessary directories, if they don't exist.
27919 for dir in etc lisp ; do
27920 test -d ${dir} || mkdir ${dir}
27921 done
27922
27923 # Build src/Makefile from ${srcdir}/src/Makefile.c
27924 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
27925 # This must be done after src/config.h is built, since we rely on that file.
27926
27927 echo creating src/epaths.h
27928 ${MAKE-make} epaths-force
27929
27930 # As of 2000-11-19, newest development versions of GNU cpp preprocess
27931 # `..' to `. .' unless invoked with -traditional
27932
27933 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
27934 CPPFLAGS="$CPPFLAGS -traditional"
27935 fi
27936
27937 echo creating src/Makefile
27938 ( cd src
27939 rm -f junk.c junk1.c junk2.c
27940 sed -e '/start of cpp stuff/q' \
27941 < Makefile.c > junk1.c
27942 sed -e '1,/start of cpp stuff/d'\
27943 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27944 < Makefile.c > junk.c
27945 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
27946 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27947 cat junk1.c junk2.c > Makefile.new
27948 rm -f junk.c junk1.c junk2.c
27949 chmod 444 Makefile.new
27950 mv -f Makefile.new Makefile
27951 )
27952
27953 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
27954 echo creating src/.gdbinit
27955 echo source $srcdir/src/.gdbinit > src/.gdbinit
27956 fi
27957
27958 ;;
27959
27960 esac
27961 done # for ac_tag
27962
27963
27964 { (exit 0); exit 0; }
27965 _ACEOF
27966 chmod +x $CONFIG_STATUS
27967 ac_clean_files=$ac_clean_files_save
27968
27969 test $ac_write_fail = 0 ||
27970 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27971 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27972 { (exit 1); exit 1; }; }
27973
27974
27975 # configure is writing to config.log, and then calls config.status.
27976 # config.status does its own redirection, appending to config.log.
27977 # Unfortunately, on DOS this fails, as config.log is still kept open
27978 # by configure, so config.status won't be able to write to it; its
27979 # output is simply discarded. So we exec the FD to /dev/null,
27980 # effectively closing config.log, so it can be properly (re)opened and
27981 # appended to by config.status. When coming back to configure, we
27982 # need to make the FD available again.
27983 if test "$no_create" != yes; then
27984 ac_cs_success=:
27985 ac_config_status_args=
27986 test "$silent" = yes &&
27987 ac_config_status_args="$ac_config_status_args --quiet"
27988 exec 5>/dev/null
27989 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27990 exec 5>>config.log
27991 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27992 # would make configure fail if this is the last instruction.
27993 $ac_cs_success || { (exit 1); exit 1; }
27994 fi
27995 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27996 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
27997 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
27998 fi
27999
28000