]> code.delx.au - gnu-emacs/blob - configure
configure.in: Change "if test ! -f" to "if ! test -f".
[gnu-emacs] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for emacs 24.0.50.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
95
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108 ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
178 fi
179
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
183 }
184 as_func_success () {
185 as_func_return 0
186 }
187 as_func_failure () {
188 as_func_return 1
189 }
190 as_func_ret_success () {
191 return 0
192 }
193 as_func_ret_failure () {
194 return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199 :
200 else
201 exitcode=1
202 echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211 :
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224 else
225 exitcode=1
226 echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237 :
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
246 /*)
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297 (exit $1)
298 }
299 as_func_success () {
300 as_func_return 0
301 }
302 as_func_failure () {
303 as_func_return 1
304 }
305 as_func_ret_success () {
306 return 0
307 }
308 as_func_ret_failure () {
309 return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314 :
315 else
316 exitcode=1
317 echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326 :
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339 else
340 exitcode=1
341 echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354 break
355 fi
356
357 fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386 (exit \$1)
387 }
388 as_func_success () {
389 as_func_return 0
390 }
391 as_func_failure () {
392 as_func_return 1
393 }
394 as_func_ret_success () {
395 return 0
396 }
397 as_func_ret_failure () {
398 return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403 :
404 else
405 exitcode=1
406 echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415 :
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428 else
429 exitcode=1
430 echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439 }
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
467 N
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499 *)
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
529 fi
530 else
531 as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574 exec 7<&0 </dev/null 6>&1
575
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
593
594 # Identity of this package.
595 PACKAGE_NAME='emacs'
596 PACKAGE_TARNAME='emacs'
597 PACKAGE_VERSION='24.0.50'
598 PACKAGE_STRING='emacs 24.0.50'
599 PACKAGE_BUGREPORT=''
600
601 ac_unique_file="src/lisp.h"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
637
638 ac_config_libobj_dir=src
639 ac_header_list=
640 ac_func_list=
641 ac_subst_vars='SHELL
642 PATH_SEPARATOR
643 PACKAGE_NAME
644 PACKAGE_TARNAME
645 PACKAGE_VERSION
646 PACKAGE_STRING
647 PACKAGE_BUGREPORT
648 exec_prefix
649 prefix
650 program_transform_name
651 bindir
652 sbindir
653 libexecdir
654 datarootdir
655 datadir
656 sysconfdir
657 sharedstatedir
658 localstatedir
659 includedir
660 oldincludedir
661 docdir
662 infodir
663 htmldir
664 dvidir
665 pdfdir
666 psdir
667 libdir
668 localedir
669 mandir
670 DEFS
671 ECHO_C
672 ECHO_N
673 ECHO_T
674 LIBS
675 build_alias
676 host_alias
677 target_alias
678 MAINT
679 build
680 build_cpu
681 build_vendor
682 build_os
683 host
684 host_cpu
685 host_vendor
686 host_os
687 CC
688 CFLAGS
689 LDFLAGS
690 CPPFLAGS
691 ac_ct_CC
692 EXEEXT
693 OBJEXT
694 CPP
695 GREP
696 EGREP
697 LN_S
698 INSTALL_PROGRAM
699 INSTALL_SCRIPT
700 INSTALL_DATA
701 RANLIB
702 INSTALL_INFO
703 GZIP_PROG
704 MAKEINFO
705 LIBSOUND
706 PKG_CONFIG
707 ALSA_CFLAGS
708 ALSA_LIBS
709 CFLAGS_SOUND
710 SET_MAKE
711 XMKMF
712 HAVE_XSERVER
713 RSVG_CFLAGS
714 RSVG_LIBS
715 GTK_CFLAGS
716 GTK_LIBS
717 GTK_OBJ
718 DBUS_CFLAGS
719 DBUS_LIBS
720 DBUS_OBJ
721 GCONF_CFLAGS
722 GCONF_LIBS
723 LIBSELINUX_LIBS
724 FONTCONFIG_CFLAGS
725 FONTCONFIG_LIBS
726 XFT_CFLAGS
727 XFT_LIBS
728 LIBOTF_CFLAGS
729 LIBOTF_LIBS
730 M17N_FLT_CFLAGS
731 M17N_FLT_LIBS
732 FREETYPE_CFLAGS
733 FREETYPE_LIBS
734 LIBXPM
735 LIBJPEG
736 LIBPNG
737 LIBTIFF
738 LIBGIF
739 LIBGPM
740 LIBXSM
741 ALLOCA
742 liblockfile
743 LIBS_MAIL
744 LIBOBJS
745 NEED_SETGID
746 KMEM_GROUP
747 GETLOADAVG_LIBS
748 GETOPT_H
749 GETOPTOBJS
750 LIBHESIOD
751 LIBRESOLV
752 COM_ERRLIB
753 CRYPTOLIB
754 KRB5LIB
755 DESLIB
756 KRB4LIB
757 version
758 configuration
759 canonical
760 srcdir
761 lispdir
762 locallisppath
763 lisppath
764 x_default_search_path
765 etcdir
766 archlibdir
767 bitmapdir
768 gamedir
769 gameuser
770 c_switch_system
771 c_switch_machine
772 LD_SWITCH_X_SITE
773 LD_SWITCH_X_SITE_AUX
774 C_SWITCH_X_SITE
775 X_TOOLKIT_TYPE
776 machfile
777 opsysfile
778 ns_appdir
779 ns_appbindir
780 ns_appresdir
781 ns_appsrc
782 GNUSTEP_MAKEFILES
783 GNUSTEP_SYSTEM_HEADERS
784 GNUSTEP_SYSTEM_LIBRARIES
785 GNU_OBJC_CFLAGS
786 LIB_SRC_EXTRA_INSTALLABLES
787 OTHER_FILES
788 XMENU_OBJ
789 XOBJ
790 LTLIBOBJS'
791 ac_subst_files=''
792 ac_user_opts='
793 enable_option_checking
794 with_pop
795 with_kerberos
796 with_kerberos5
797 with_hesiod
798 with_mmdf
799 with_mail_unlink
800 with_mailhost
801 with_sound
802 with_sync_input
803 with_x_toolkit
804 with_xpm
805 with_jpeg
806 with_tiff
807 with_gif
808 with_png
809 with_rsvg
810 with_xft
811 with_libotf
812 with_m17n_flt
813 with_toolkit_scroll_bars
814 with_xaw3d
815 with_xim
816 with_ns
817 with_gpm
818 with_dbus
819 with_gconf
820 with_selinux
821 with_makeinfo
822 with_gtk
823 with_gcc
824 with_pkg_config_prog
825 with_gnustep_conf
826 enable_ns_self_contained
827 enable_asserts
828 enable_maintainer_mode
829 enable_locallisppath
830 enable_checking
831 enable_profiling
832 enable_autodepend
833 enable_largefile
834 with_x
835 '
836 ac_precious_vars='build_alias
837 host_alias
838 target_alias
839 CC
840 CFLAGS
841 LDFLAGS
842 LIBS
843 CPPFLAGS
844 CPP
845 XMKMF'
846
847
848 # Initialize some variables set by options.
849 ac_init_help=
850 ac_init_version=false
851 ac_unrecognized_opts=
852 ac_unrecognized_sep=
853 # The variables have the same names as the options, with
854 # dashes changed to underlines.
855 cache_file=/dev/null
856 exec_prefix=NONE
857 no_create=
858 no_recursion=
859 prefix=NONE
860 program_prefix=NONE
861 program_suffix=NONE
862 program_transform_name=s,x,x,
863 silent=
864 site=
865 srcdir=
866 verbose=
867 x_includes=NONE
868 x_libraries=NONE
869
870 # Installation directory options.
871 # These are left unexpanded so users can "make install exec_prefix=/foo"
872 # and all the variables that are supposed to be based on exec_prefix
873 # by default will actually change.
874 # Use braces instead of parens because sh, perl, etc. also accept them.
875 # (The list follows the same order as the GNU Coding Standards.)
876 bindir='${exec_prefix}/bin'
877 sbindir='${exec_prefix}/sbin'
878 libexecdir='${exec_prefix}/libexec'
879 datarootdir='${prefix}/share'
880 datadir='${datarootdir}'
881 sysconfdir='${prefix}/etc'
882 sharedstatedir='${prefix}/com'
883 localstatedir='${prefix}/var'
884 includedir='${prefix}/include'
885 oldincludedir='/usr/include'
886 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
887 infodir='${datarootdir}/info'
888 htmldir='${docdir}'
889 dvidir='${docdir}'
890 pdfdir='${docdir}'
891 psdir='${docdir}'
892 libdir='${exec_prefix}/lib'
893 localedir='${datarootdir}/locale'
894 mandir='${datarootdir}/man'
895
896 ac_prev=
897 ac_dashdash=
898 for ac_option
899 do
900 # If the previous option needs an argument, assign it.
901 if test -n "$ac_prev"; then
902 eval $ac_prev=\$ac_option
903 ac_prev=
904 continue
905 fi
906
907 case $ac_option in
908 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
909 *) ac_optarg=yes ;;
910 esac
911
912 # Accept the important Cygnus configure options, so we can diagnose typos.
913
914 case $ac_dashdash$ac_option in
915 --)
916 ac_dashdash=yes ;;
917
918 -bindir | --bindir | --bindi | --bind | --bin | --bi)
919 ac_prev=bindir ;;
920 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
921 bindir=$ac_optarg ;;
922
923 -build | --build | --buil | --bui | --bu)
924 ac_prev=build_alias ;;
925 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
926 build_alias=$ac_optarg ;;
927
928 -cache-file | --cache-file | --cache-fil | --cache-fi \
929 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
930 ac_prev=cache_file ;;
931 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
932 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
933 cache_file=$ac_optarg ;;
934
935 --config-cache | -C)
936 cache_file=config.cache ;;
937
938 -datadir | --datadir | --datadi | --datad)
939 ac_prev=datadir ;;
940 -datadir=* | --datadir=* | --datadi=* | --datad=*)
941 datadir=$ac_optarg ;;
942
943 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
944 | --dataroo | --dataro | --datar)
945 ac_prev=datarootdir ;;
946 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
947 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
948 datarootdir=$ac_optarg ;;
949
950 -disable-* | --disable-*)
951 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
955 { (exit 1); exit 1; }; }
956 ac_useropt_orig=$ac_useropt
957 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in
959 *"
960 "enable_$ac_useropt"
961 "*) ;;
962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
963 ac_unrecognized_sep=', ';;
964 esac
965 eval enable_$ac_useropt=no ;;
966
967 -docdir | --docdir | --docdi | --doc | --do)
968 ac_prev=docdir ;;
969 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
970 docdir=$ac_optarg ;;
971
972 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
973 ac_prev=dvidir ;;
974 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
975 dvidir=$ac_optarg ;;
976
977 -enable-* | --enable-*)
978 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
979 # Reject names that are not valid shell variable names.
980 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
981 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
982 { (exit 1); exit 1; }; }
983 ac_useropt_orig=$ac_useropt
984 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
985 case $ac_user_opts in
986 *"
987 "enable_$ac_useropt"
988 "*) ;;
989 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
990 ac_unrecognized_sep=', ';;
991 esac
992 eval enable_$ac_useropt=\$ac_optarg ;;
993
994 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
995 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
996 | --exec | --exe | --ex)
997 ac_prev=exec_prefix ;;
998 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
999 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1000 | --exec=* | --exe=* | --ex=*)
1001 exec_prefix=$ac_optarg ;;
1002
1003 -gas | --gas | --ga | --g)
1004 # Obsolete; use --with-gas.
1005 with_gas=yes ;;
1006
1007 -help | --help | --hel | --he | -h)
1008 ac_init_help=long ;;
1009 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1010 ac_init_help=recursive ;;
1011 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1012 ac_init_help=short ;;
1013
1014 -host | --host | --hos | --ho)
1015 ac_prev=host_alias ;;
1016 -host=* | --host=* | --hos=* | --ho=*)
1017 host_alias=$ac_optarg ;;
1018
1019 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1020 ac_prev=htmldir ;;
1021 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1022 | --ht=*)
1023 htmldir=$ac_optarg ;;
1024
1025 -includedir | --includedir | --includedi | --included | --include \
1026 | --includ | --inclu | --incl | --inc)
1027 ac_prev=includedir ;;
1028 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1029 | --includ=* | --inclu=* | --incl=* | --inc=*)
1030 includedir=$ac_optarg ;;
1031
1032 -infodir | --infodir | --infodi | --infod | --info | --inf)
1033 ac_prev=infodir ;;
1034 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1035 infodir=$ac_optarg ;;
1036
1037 -libdir | --libdir | --libdi | --libd)
1038 ac_prev=libdir ;;
1039 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1040 libdir=$ac_optarg ;;
1041
1042 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1043 | --libexe | --libex | --libe)
1044 ac_prev=libexecdir ;;
1045 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1046 | --libexe=* | --libex=* | --libe=*)
1047 libexecdir=$ac_optarg ;;
1048
1049 -localedir | --localedir | --localedi | --localed | --locale)
1050 ac_prev=localedir ;;
1051 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1052 localedir=$ac_optarg ;;
1053
1054 -localstatedir | --localstatedir | --localstatedi | --localstated \
1055 | --localstate | --localstat | --localsta | --localst | --locals)
1056 ac_prev=localstatedir ;;
1057 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1058 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1059 localstatedir=$ac_optarg ;;
1060
1061 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1062 ac_prev=mandir ;;
1063 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1064 mandir=$ac_optarg ;;
1065
1066 -nfp | --nfp | --nf)
1067 # Obsolete; use --without-fp.
1068 with_fp=no ;;
1069
1070 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1071 | --no-cr | --no-c | -n)
1072 no_create=yes ;;
1073
1074 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1075 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1076 no_recursion=yes ;;
1077
1078 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1079 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1080 | --oldin | --oldi | --old | --ol | --o)
1081 ac_prev=oldincludedir ;;
1082 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1083 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1084 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1085 oldincludedir=$ac_optarg ;;
1086
1087 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1088 ac_prev=prefix ;;
1089 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1090 prefix=$ac_optarg ;;
1091
1092 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1093 | --program-pre | --program-pr | --program-p)
1094 ac_prev=program_prefix ;;
1095 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1096 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1097 program_prefix=$ac_optarg ;;
1098
1099 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1100 | --program-suf | --program-su | --program-s)
1101 ac_prev=program_suffix ;;
1102 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1103 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1104 program_suffix=$ac_optarg ;;
1105
1106 -program-transform-name | --program-transform-name \
1107 | --program-transform-nam | --program-transform-na \
1108 | --program-transform-n | --program-transform- \
1109 | --program-transform | --program-transfor \
1110 | --program-transfo | --program-transf \
1111 | --program-trans | --program-tran \
1112 | --progr-tra | --program-tr | --program-t)
1113 ac_prev=program_transform_name ;;
1114 -program-transform-name=* | --program-transform-name=* \
1115 | --program-transform-nam=* | --program-transform-na=* \
1116 | --program-transform-n=* | --program-transform-=* \
1117 | --program-transform=* | --program-transfor=* \
1118 | --program-transfo=* | --program-transf=* \
1119 | --program-trans=* | --program-tran=* \
1120 | --progr-tra=* | --program-tr=* | --program-t=*)
1121 program_transform_name=$ac_optarg ;;
1122
1123 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1124 ac_prev=pdfdir ;;
1125 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1126 pdfdir=$ac_optarg ;;
1127
1128 -psdir | --psdir | --psdi | --psd | --ps)
1129 ac_prev=psdir ;;
1130 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1131 psdir=$ac_optarg ;;
1132
1133 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1134 | -silent | --silent | --silen | --sile | --sil)
1135 silent=yes ;;
1136
1137 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1138 ac_prev=sbindir ;;
1139 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1140 | --sbi=* | --sb=*)
1141 sbindir=$ac_optarg ;;
1142
1143 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1144 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1145 | --sharedst | --shareds | --shared | --share | --shar \
1146 | --sha | --sh)
1147 ac_prev=sharedstatedir ;;
1148 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1149 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1150 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1151 | --sha=* | --sh=*)
1152 sharedstatedir=$ac_optarg ;;
1153
1154 -site | --site | --sit)
1155 ac_prev=site ;;
1156 -site=* | --site=* | --sit=*)
1157 site=$ac_optarg ;;
1158
1159 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1160 ac_prev=srcdir ;;
1161 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1162 srcdir=$ac_optarg ;;
1163
1164 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1165 | --syscon | --sysco | --sysc | --sys | --sy)
1166 ac_prev=sysconfdir ;;
1167 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1168 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1169 sysconfdir=$ac_optarg ;;
1170
1171 -target | --target | --targe | --targ | --tar | --ta | --t)
1172 ac_prev=target_alias ;;
1173 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1174 target_alias=$ac_optarg ;;
1175
1176 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1177 verbose=yes ;;
1178
1179 -version | --version | --versio | --versi | --vers | -V)
1180 ac_init_version=: ;;
1181
1182 -with-* | --with-*)
1183 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1187 { (exit 1); exit 1; }; }
1188 ac_useropt_orig=$ac_useropt
1189 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1190 case $ac_user_opts in
1191 *"
1192 "with_$ac_useropt"
1193 "*) ;;
1194 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1195 ac_unrecognized_sep=', ';;
1196 esac
1197 eval with_$ac_useropt=\$ac_optarg ;;
1198
1199 -without-* | --without-*)
1200 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1201 # Reject names that are not valid shell variable names.
1202 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1203 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1204 { (exit 1); exit 1; }; }
1205 ac_useropt_orig=$ac_useropt
1206 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207 case $ac_user_opts in
1208 *"
1209 "with_$ac_useropt"
1210 "*) ;;
1211 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1212 ac_unrecognized_sep=', ';;
1213 esac
1214 eval with_$ac_useropt=no ;;
1215
1216 --x)
1217 # Obsolete; use --with-x.
1218 with_x=yes ;;
1219
1220 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1221 | --x-incl | --x-inc | --x-in | --x-i)
1222 ac_prev=x_includes ;;
1223 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1224 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1225 x_includes=$ac_optarg ;;
1226
1227 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1228 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1229 ac_prev=x_libraries ;;
1230 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1231 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1232 x_libraries=$ac_optarg ;;
1233
1234 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1235 Try \`$0 --help' for more information." >&2
1236 { (exit 1); exit 1; }; }
1237 ;;
1238
1239 *=*)
1240 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1241 # Reject names that are not valid shell variable names.
1242 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1243 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1244 { (exit 1); exit 1; }; }
1245 eval $ac_envvar=\$ac_optarg
1246 export $ac_envvar ;;
1247
1248 *)
1249 # FIXME: should be removed in autoconf 3.0.
1250 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1251 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1252 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1253 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1254 ;;
1255
1256 esac
1257 done
1258
1259 if test -n "$ac_prev"; then
1260 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1261 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1262 { (exit 1); exit 1; }; }
1263 fi
1264
1265 if test -n "$ac_unrecognized_opts"; then
1266 case $enable_option_checking in
1267 no) ;;
1268 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1269 { (exit 1); exit 1; }; } ;;
1270 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1271 esac
1272 fi
1273
1274 # Check all directory arguments for consistency.
1275 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1276 datadir sysconfdir sharedstatedir localstatedir includedir \
1277 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1278 libdir localedir mandir
1279 do
1280 eval ac_val=\$$ac_var
1281 # Remove trailing slashes.
1282 case $ac_val in
1283 */ )
1284 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1285 eval $ac_var=\$ac_val;;
1286 esac
1287 # Be sure to have absolute directory names.
1288 case $ac_val in
1289 [\\/$]* | ?:[\\/]* ) continue;;
1290 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1291 esac
1292 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1293 { (exit 1); exit 1; }; }
1294 done
1295
1296 # There might be people who depend on the old broken behavior: `$host'
1297 # used to hold the argument of --host etc.
1298 # FIXME: To remove some day.
1299 build=$build_alias
1300 host=$host_alias
1301 target=$target_alias
1302
1303 # FIXME: To remove some day.
1304 if test "x$host_alias" != x; then
1305 if test "x$build_alias" = x; then
1306 cross_compiling=maybe
1307 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1308 If a cross compiler is detected then cross compile mode will be used." >&2
1309 elif test "x$build_alias" != "x$host_alias"; then
1310 cross_compiling=yes
1311 fi
1312 fi
1313
1314 ac_tool_prefix=
1315 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1316
1317 test "$silent" = yes && exec 6>/dev/null
1318
1319
1320 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1321 ac_ls_di=`ls -di .` &&
1322 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1323 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1324 { (exit 1); exit 1; }; }
1325 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1326 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1327 { (exit 1); exit 1; }; }
1328
1329
1330 # Find the source files, if location was not specified.
1331 if test -z "$srcdir"; then
1332 ac_srcdir_defaulted=yes
1333 # Try the directory containing this script, then the parent directory.
1334 ac_confdir=`$as_dirname -- "$as_myself" ||
1335 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1336 X"$as_myself" : 'X\(//\)[^/]' \| \
1337 X"$as_myself" : 'X\(//\)$' \| \
1338 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1339 $as_echo X"$as_myself" |
1340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1341 s//\1/
1342 q
1343 }
1344 /^X\(\/\/\)[^/].*/{
1345 s//\1/
1346 q
1347 }
1348 /^X\(\/\/\)$/{
1349 s//\1/
1350 q
1351 }
1352 /^X\(\/\).*/{
1353 s//\1/
1354 q
1355 }
1356 s/.*/./; q'`
1357 srcdir=$ac_confdir
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359 srcdir=..
1360 fi
1361 else
1362 ac_srcdir_defaulted=no
1363 fi
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1366 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1367 { (exit 1); exit 1; }; }
1368 fi
1369 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1370 ac_abs_confdir=`(
1371 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1372 { (exit 1); exit 1; }; }
1373 pwd)`
1374 # When building in place, set srcdir=.
1375 if test "$ac_abs_confdir" = "$ac_pwd"; then
1376 srcdir=.
1377 fi
1378 # Remove unnecessary trailing slashes from srcdir.
1379 # Double slashes in file names in object file debugging info
1380 # mess up M-x gdb in Emacs.
1381 case $srcdir in
1382 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383 esac
1384 for ac_var in $ac_precious_vars; do
1385 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_env_${ac_var}_value=\$${ac_var}
1387 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1389 done
1390
1391 #
1392 # Report the --help message.
1393 #
1394 if test "$ac_init_help" = "long"; then
1395 # Omit some internal or obsolete options to make the list less imposing.
1396 # This message is too long to be a string in the A/UX 3.1 sh.
1397 cat <<_ACEOF
1398 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1399
1400 Usage: $0 [OPTION]... [VAR=VALUE]...
1401
1402 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403 VAR=VALUE. See below for descriptions of some of the useful variables.
1404
1405 Defaults for the options are specified in brackets.
1406
1407 Configuration:
1408 -h, --help display this help and exit
1409 --help=short display options specific to this package
1410 --help=recursive display the short help of all the included packages
1411 -V, --version display version information and exit
1412 -q, --quiet, --silent do not print \`checking...' messages
1413 --cache-file=FILE cache test results in FILE [disabled]
1414 -C, --config-cache alias for \`--cache-file=config.cache'
1415 -n, --no-create do not create output files
1416 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1417
1418 Installation directories:
1419 --prefix=PREFIX install architecture-independent files in PREFIX
1420 [$ac_default_prefix]
1421 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1422 [PREFIX]
1423
1424 By default, \`make install' will install all the files in
1425 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1426 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427 for instance \`--prefix=\$HOME'.
1428
1429 For better control, use the options below.
1430
1431 Fine tuning of the installation directories:
1432 --bindir=DIR user executables [EPREFIX/bin]
1433 --sbindir=DIR system admin executables [EPREFIX/sbin]
1434 --libexecdir=DIR program executables [EPREFIX/libexec]
1435 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1436 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1437 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1438 --libdir=DIR object code libraries [EPREFIX/lib]
1439 --includedir=DIR C header files [PREFIX/include]
1440 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1441 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1442 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1443 --infodir=DIR info documentation [DATAROOTDIR/info]
1444 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1445 --mandir=DIR man documentation [DATAROOTDIR/man]
1446 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1447 --htmldir=DIR html documentation [DOCDIR]
1448 --dvidir=DIR dvi documentation [DOCDIR]
1449 --pdfdir=DIR pdf documentation [DOCDIR]
1450 --psdir=DIR ps documentation [DOCDIR]
1451 _ACEOF
1452
1453 cat <<\_ACEOF
1454
1455 Program names:
1456 --program-prefix=PREFIX prepend PREFIX to installed program names
1457 --program-suffix=SUFFIX append SUFFIX to installed program names
1458 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1459
1460 X features:
1461 --x-includes=DIR X include files are in DIR
1462 --x-libraries=DIR X library files are in DIR
1463
1464 System types:
1465 --build=BUILD configure for building on BUILD [guessed]
1466 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1467 _ACEOF
1468 fi
1469
1470 if test -n "$ac_init_help"; then
1471 case $ac_init_help in
1472 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1473 esac
1474 cat <<\_ACEOF
1475
1476 Optional Features:
1477 --disable-option-checking ignore unrecognized --enable/--with options
1478 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1479 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1480 --disable-ns-self-contained
1481 disable self contained build under NeXTstep
1482 --enable-asserts compile code with asserts enabled
1483 --enable-maintainer-mode
1484 enable make rules and dependencies not useful (and
1485 sometimes confusing) to the casual installer
1486 --enable-locallisppath=PATH
1487 directories Emacs should search for lisp files
1488 specific to this site
1489 --enable-checking[=LIST]
1490 enable expensive run-time checks. With LIST, enable
1491 only specific categories of checks. Categories are:
1492 all,yes,no. Flags are: stringbytes, stringoverrun,
1493 stringfreelist, xmallocoverrun, conslist
1494 --enable-profiling build emacs with profiling support. This might not
1495 work on all platforms
1496 --enable-autodepend automatically generate dependencies to .h-files.
1497 Requires GNU Make and Gcc. Enabled if GNU Make and
1498 Gcc is found
1499 --disable-largefile omit support for large files
1500
1501 Optional Packages:
1502 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1503 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1504 --without-pop don't support POP mail retrieval with movemail
1505 --with-kerberos support Kerberos-authenticated POP
1506 --with-kerberos5 support Kerberos version 5 authenticated POP
1507 --with-hesiod support Hesiod to get the POP server host
1508 --with-mmdf support MMDF mailboxes
1509 --with-mail-unlink unlink, rather than empty, mail spool after reading
1510 --with-mailhost=HOSTNAME
1511 string giving default POP mail host
1512 --without-sound don't compile with sound support
1513 --without-sync-input process async input synchronously
1514 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, lucid or
1515 athena, motif, no)
1516 --without-xpm don't compile with XPM image support
1517 --without-jpeg don't compile with JPEG image support
1518 --without-tiff don't compile with TIFF image support
1519 --without-gif don't compile with GIF image support
1520 --without-png don't compile with PNG image support
1521 --without-rsvg don't compile with SVG image support
1522 --without-xft don't use XFT for anti aliased fonts
1523 --without-libotf don't use libotf for OpenType font support
1524 --without-m17n-flt don't use m17n-flt for text shaping
1525 --without-toolkit-scroll-bars
1526 don't use Motif or Xaw3d scroll bars
1527 --without-xaw3d don't use Xaw3d
1528 --without-xim don't use X11 XIM
1529 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1530 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1531 console
1532 --without-dbus don't compile with D-Bus support
1533 --without-gconf don't compile with GConf support
1534 --without-selinux don't compile with SELinux support
1535 --without-makeinfo don't require makeinfo for building manuals
1536
1537 --with-pkg-config-prog=PATH
1538 path to pkg-config for finding GTK and librsvg
1539 --with-gnustep-conf=PATH
1540 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1541 or /etc/GNUstep/GNUstep.conf
1542 --with-x use the X Window System
1543
1544 Some influential environment variables:
1545 CC C compiler command
1546 CFLAGS C compiler flags
1547 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1548 nonstandard directory <lib dir>
1549 LIBS libraries to pass to the linker, e.g. -l<library>
1550 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1551 you have headers in a nonstandard directory <include dir>
1552 CPP C preprocessor
1553 XMKMF Path to xmkmf, Makefile generator for X Window System
1554
1555 Use these variables to override the choices made by `configure' or to help
1556 it to find libraries and programs with nonstandard names/locations.
1557
1558 _ACEOF
1559 ac_status=$?
1560 fi
1561
1562 if test "$ac_init_help" = "recursive"; then
1563 # If there are subdirs, report their specific --help.
1564 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1565 test -d "$ac_dir" ||
1566 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1567 continue
1568 ac_builddir=.
1569
1570 case "$ac_dir" in
1571 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1572 *)
1573 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1574 # A ".." for each directory in $ac_dir_suffix.
1575 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1576 case $ac_top_builddir_sub in
1577 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1578 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1579 esac ;;
1580 esac
1581 ac_abs_top_builddir=$ac_pwd
1582 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1583 # for backward compatibility:
1584 ac_top_builddir=$ac_top_build_prefix
1585
1586 case $srcdir in
1587 .) # We are building in place.
1588 ac_srcdir=.
1589 ac_top_srcdir=$ac_top_builddir_sub
1590 ac_abs_top_srcdir=$ac_pwd ;;
1591 [\\/]* | ?:[\\/]* ) # Absolute name.
1592 ac_srcdir=$srcdir$ac_dir_suffix;
1593 ac_top_srcdir=$srcdir
1594 ac_abs_top_srcdir=$srcdir ;;
1595 *) # Relative name.
1596 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1597 ac_top_srcdir=$ac_top_build_prefix$srcdir
1598 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1599 esac
1600 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1601
1602 cd "$ac_dir" || { ac_status=$?; continue; }
1603 # Check for guested configure.
1604 if test -f "$ac_srcdir/configure.gnu"; then
1605 echo &&
1606 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1607 elif test -f "$ac_srcdir/configure"; then
1608 echo &&
1609 $SHELL "$ac_srcdir/configure" --help=recursive
1610 else
1611 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1612 fi || ac_status=$?
1613 cd "$ac_pwd" || { ac_status=$?; break; }
1614 done
1615 fi
1616
1617 test -n "$ac_init_help" && exit $ac_status
1618 if $ac_init_version; then
1619 cat <<\_ACEOF
1620 emacs configure 24.0.50
1621 generated by GNU Autoconf 2.62
1622
1623 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1624 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1625 This configure script is free software; the Free Software Foundation
1626 gives unlimited permission to copy, distribute and modify it.
1627 _ACEOF
1628 exit
1629 fi
1630 cat >config.log <<_ACEOF
1631 This file contains any messages produced by compilers while
1632 running configure, to aid debugging if configure makes a mistake.
1633
1634 It was created by emacs $as_me 24.0.50, which was
1635 generated by GNU Autoconf 2.62. Invocation command line was
1636
1637 $ $0 $@
1638
1639 _ACEOF
1640 exec 5>>config.log
1641 {
1642 cat <<_ASUNAME
1643 ## --------- ##
1644 ## Platform. ##
1645 ## --------- ##
1646
1647 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1648 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1649 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1650 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1651 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1652
1653 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1654 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1655
1656 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1657 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1658 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1659 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1660 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1661 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1662 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1663
1664 _ASUNAME
1665
1666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1667 for as_dir in $PATH
1668 do
1669 IFS=$as_save_IFS
1670 test -z "$as_dir" && as_dir=.
1671 $as_echo "PATH: $as_dir"
1672 done
1673 IFS=$as_save_IFS
1674
1675 } >&5
1676
1677 cat >&5 <<_ACEOF
1678
1679
1680 ## ----------- ##
1681 ## Core tests. ##
1682 ## ----------- ##
1683
1684 _ACEOF
1685
1686
1687 # Keep a trace of the command line.
1688 # Strip out --no-create and --no-recursion so they do not pile up.
1689 # Strip out --silent because we don't want to record it for future runs.
1690 # Also quote any args containing shell meta-characters.
1691 # Make two passes to allow for proper duplicate-argument suppression.
1692 ac_configure_args=
1693 ac_configure_args0=
1694 ac_configure_args1=
1695 ac_must_keep_next=false
1696 for ac_pass in 1 2
1697 do
1698 for ac_arg
1699 do
1700 case $ac_arg in
1701 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1702 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1703 | -silent | --silent | --silen | --sile | --sil)
1704 continue ;;
1705 *\'*)
1706 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1707 esac
1708 case $ac_pass in
1709 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1710 2)
1711 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1712 if test $ac_must_keep_next = true; then
1713 ac_must_keep_next=false # Got value, back to normal.
1714 else
1715 case $ac_arg in
1716 *=* | --config-cache | -C | -disable-* | --disable-* \
1717 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1718 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1719 | -with-* | --with-* | -without-* | --without-* | --x)
1720 case "$ac_configure_args0 " in
1721 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1722 esac
1723 ;;
1724 -* ) ac_must_keep_next=true ;;
1725 esac
1726 fi
1727 ac_configure_args="$ac_configure_args '$ac_arg'"
1728 ;;
1729 esac
1730 done
1731 done
1732 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1733 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1734
1735 # When interrupted or exit'd, cleanup temporary files, and complete
1736 # config.log. We remove comments because anyway the quotes in there
1737 # would cause problems or look ugly.
1738 # WARNING: Use '\'' to represent an apostrophe within the trap.
1739 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1740 trap 'exit_status=$?
1741 # Save into config.log some information that might help in debugging.
1742 {
1743 echo
1744
1745 cat <<\_ASBOX
1746 ## ---------------- ##
1747 ## Cache variables. ##
1748 ## ---------------- ##
1749 _ASBOX
1750 echo
1751 # The following way of writing the cache mishandles newlines in values,
1752 (
1753 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1754 eval ac_val=\$$ac_var
1755 case $ac_val in #(
1756 *${as_nl}*)
1757 case $ac_var in #(
1758 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1759 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1760 esac
1761 case $ac_var in #(
1762 _ | IFS | as_nl) ;; #(
1763 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1764 *) $as_unset $ac_var ;;
1765 esac ;;
1766 esac
1767 done
1768 (set) 2>&1 |
1769 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1770 *${as_nl}ac_space=\ *)
1771 sed -n \
1772 "s/'\''/'\''\\\\'\'''\''/g;
1773 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1774 ;; #(
1775 *)
1776 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1777 ;;
1778 esac |
1779 sort
1780 )
1781 echo
1782
1783 cat <<\_ASBOX
1784 ## ----------------- ##
1785 ## Output variables. ##
1786 ## ----------------- ##
1787 _ASBOX
1788 echo
1789 for ac_var in $ac_subst_vars
1790 do
1791 eval ac_val=\$$ac_var
1792 case $ac_val in
1793 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1794 esac
1795 $as_echo "$ac_var='\''$ac_val'\''"
1796 done | sort
1797 echo
1798
1799 if test -n "$ac_subst_files"; then
1800 cat <<\_ASBOX
1801 ## ------------------- ##
1802 ## File substitutions. ##
1803 ## ------------------- ##
1804 _ASBOX
1805 echo
1806 for ac_var in $ac_subst_files
1807 do
1808 eval ac_val=\$$ac_var
1809 case $ac_val in
1810 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1811 esac
1812 $as_echo "$ac_var='\''$ac_val'\''"
1813 done | sort
1814 echo
1815 fi
1816
1817 if test -s confdefs.h; then
1818 cat <<\_ASBOX
1819 ## ----------- ##
1820 ## confdefs.h. ##
1821 ## ----------- ##
1822 _ASBOX
1823 echo
1824 cat confdefs.h
1825 echo
1826 fi
1827 test "$ac_signal" != 0 &&
1828 $as_echo "$as_me: caught signal $ac_signal"
1829 $as_echo "$as_me: exit $exit_status"
1830 } >&5
1831 rm -f core *.core core.conftest.* &&
1832 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1833 exit $exit_status
1834 ' 0
1835 for ac_signal in 1 2 13 15; do
1836 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1837 done
1838 ac_signal=0
1839
1840 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1841 rm -f -r conftest* confdefs.h
1842
1843 # Predefined preprocessor variables.
1844
1845 cat >>confdefs.h <<_ACEOF
1846 #define PACKAGE_NAME "$PACKAGE_NAME"
1847 _ACEOF
1848
1849
1850 cat >>confdefs.h <<_ACEOF
1851 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1852 _ACEOF
1853
1854
1855 cat >>confdefs.h <<_ACEOF
1856 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1857 _ACEOF
1858
1859
1860 cat >>confdefs.h <<_ACEOF
1861 #define PACKAGE_STRING "$PACKAGE_STRING"
1862 _ACEOF
1863
1864
1865 cat >>confdefs.h <<_ACEOF
1866 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1867 _ACEOF
1868
1869
1870 # Let the site file select an alternate cache file if it wants to.
1871 # Prefer an explicitly selected file to automatically selected ones.
1872 ac_site_file1=NONE
1873 ac_site_file2=NONE
1874 if test -n "$CONFIG_SITE"; then
1875 ac_site_file1=$CONFIG_SITE
1876 elif test "x$prefix" != xNONE; then
1877 ac_site_file1=$prefix/share/config.site
1878 ac_site_file2=$prefix/etc/config.site
1879 else
1880 ac_site_file1=$ac_default_prefix/share/config.site
1881 ac_site_file2=$ac_default_prefix/etc/config.site
1882 fi
1883 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1884 do
1885 test "x$ac_site_file" = xNONE && continue
1886 if test -r "$ac_site_file"; then
1887 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1888 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1889 sed 's/^/| /' "$ac_site_file" >&5
1890 . "$ac_site_file"
1891 fi
1892 done
1893
1894 if test -r "$cache_file"; then
1895 # Some versions of bash will fail to source /dev/null (special
1896 # files actually), so we avoid doing that.
1897 if test -f "$cache_file"; then
1898 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1899 $as_echo "$as_me: loading cache $cache_file" >&6;}
1900 case $cache_file in
1901 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1902 *) . "./$cache_file";;
1903 esac
1904 fi
1905 else
1906 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1907 $as_echo "$as_me: creating cache $cache_file" >&6;}
1908 >$cache_file
1909 fi
1910
1911 ac_header_list="$ac_header_list sys/time.h"
1912 ac_header_list="$ac_header_list unistd.h"
1913 ac_func_list="$ac_func_list alarm"
1914 # Check that the precious variables saved in the cache have kept the same
1915 # value.
1916 ac_cache_corrupted=false
1917 for ac_var in $ac_precious_vars; do
1918 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1919 eval ac_new_set=\$ac_env_${ac_var}_set
1920 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1921 eval ac_new_val=\$ac_env_${ac_var}_value
1922 case $ac_old_set,$ac_new_set in
1923 set,)
1924 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1925 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1926 ac_cache_corrupted=: ;;
1927 ,set)
1928 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1929 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1930 ac_cache_corrupted=: ;;
1931 ,);;
1932 *)
1933 if test "x$ac_old_val" != "x$ac_new_val"; then
1934 # differences in whitespace do not lead to failure.
1935 ac_old_val_w=`echo x $ac_old_val`
1936 ac_new_val_w=`echo x $ac_new_val`
1937 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1938 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1939 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1940 ac_cache_corrupted=:
1941 else
1942 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1943 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1944 eval $ac_var=\$ac_old_val
1945 fi
1946 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1947 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1948 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1949 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1950 fi;;
1951 esac
1952 # Pass precious variables to config.status.
1953 if test "$ac_new_set" = set; then
1954 case $ac_new_val in
1955 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1956 *) ac_arg=$ac_var=$ac_new_val ;;
1957 esac
1958 case " $ac_configure_args " in
1959 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1960 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1961 esac
1962 fi
1963 done
1964 if $ac_cache_corrupted; then
1965 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1966 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1967 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1968 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1969 { (exit 1); exit 1; }; }
1970 fi
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996 ac_ext=c
1997 ac_cpp='$CPP $CPPFLAGS'
1998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2001
2002
2003 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2004
2005
2006
2007 test "$program_prefix" != NONE &&
2008 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2009 # Use a double $ so make ignores it.
2010 test "$program_suffix" != NONE &&
2011 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2012 # Double any \ or $.
2013 # By default was `s,x,x', remove it if useless.
2014 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2015 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2016
2017
2018 lispdir='${datadir}/emacs/${version}/lisp'
2019 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2020 '${datadir}/emacs/site-lisp'
2021 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2022 etcdir='${datadir}/emacs/${version}/etc'
2023 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2024 docdir='${datadir}/emacs/${version}/etc'
2025 gamedir='${localstatedir}/games/emacs'
2026
2027 gameuser=games
2028
2029
2030
2031
2032 # Check whether --with-pop was given.
2033 if test "${with_pop+set}" = set; then
2034 withval=$with_pop;
2035 else
2036 with_pop=yes
2037 fi
2038
2039 if test "$with_pop" = yes; then
2040 cat >>confdefs.h <<\_ACEOF
2041 #define MAIL_USE_POP 1
2042 _ACEOF
2043
2044 fi
2045
2046
2047
2048 # Check whether --with-kerberos was given.
2049 if test "${with_kerberos+set}" = set; then
2050 withval=$with_kerberos;
2051 else
2052 with_kerberos=no
2053 fi
2054
2055 if test "$with_kerberos" != no; then
2056 cat >>confdefs.h <<\_ACEOF
2057 #define KERBEROS 1
2058 _ACEOF
2059
2060 fi
2061
2062
2063
2064 # Check whether --with-kerberos5 was given.
2065 if test "${with_kerberos5+set}" = set; then
2066 withval=$with_kerberos5;
2067 else
2068 with_kerberos5=no
2069 fi
2070
2071 if test "${with_kerberos5}" != no; then
2072 if test "${with_kerberos}" = no; then
2073 with_kerberos=yes
2074 cat >>confdefs.h <<\_ACEOF
2075 #define KERBEROS 1
2076 _ACEOF
2077
2078 fi
2079
2080 cat >>confdefs.h <<\_ACEOF
2081 #define KERBEROS5 1
2082 _ACEOF
2083
2084 fi
2085
2086
2087 # Check whether --with-hesiod was given.
2088 if test "${with_hesiod+set}" = set; then
2089 withval=$with_hesiod;
2090 else
2091 with_hesiod=no
2092 fi
2093
2094 if test "$with_hesiod" != no; then
2095
2096 cat >>confdefs.h <<\_ACEOF
2097 #define HESIOD 1
2098 _ACEOF
2099
2100 fi
2101
2102
2103 # Check whether --with-mmdf was given.
2104 if test "${with_mmdf+set}" = set; then
2105 withval=$with_mmdf;
2106 else
2107 with_mmdf=no
2108 fi
2109
2110 if test "$with_mmdf" != no; then
2111
2112 cat >>confdefs.h <<\_ACEOF
2113 #define MAIL_USE_MMDF 1
2114 _ACEOF
2115
2116 fi
2117
2118
2119 # Check whether --with-mail-unlink was given.
2120 if test "${with_mail_unlink+set}" = set; then
2121 withval=$with_mail_unlink;
2122 else
2123 with_mail_unlink=no
2124 fi
2125
2126 if test "$with_mail_unlink" != no; then
2127
2128 cat >>confdefs.h <<\_ACEOF
2129 #define MAIL_UNLINK_SPOOL 1
2130 _ACEOF
2131
2132 fi
2133
2134
2135 # Check whether --with-mailhost was given.
2136 if test "${with_mailhost+set}" = set; then
2137 withval=$with_mailhost;
2138 cat >>confdefs.h <<_ACEOF
2139 #define MAILHOST "$withval"
2140 _ACEOF
2141
2142 fi
2143
2144
2145
2146 # Check whether --with-sound was given.
2147 if test "${with_sound+set}" = set; then
2148 withval=$with_sound;
2149 else
2150 with_sound=yes
2151 fi
2152
2153
2154
2155 # Check whether --with-sync-input was given.
2156 if test "${with_sync_input+set}" = set; then
2157 withval=$with_sync_input;
2158 else
2159 with_sync_input=yes
2160 fi
2161
2162 if test "$with_sync_input" = yes; then
2163
2164 cat >>confdefs.h <<\_ACEOF
2165 #define SYNC_INPUT 1
2166 _ACEOF
2167
2168 fi
2169
2170
2171 # Check whether --with-x-toolkit was given.
2172 if test "${with_x_toolkit+set}" = set; then
2173 withval=$with_x_toolkit; case "${withval}" in
2174 y | ye | yes ) val=gtk ;;
2175 n | no ) val=no ;;
2176 l | lu | luc | luci | lucid ) val=lucid ;;
2177 a | at | ath | athe | athen | athena ) val=athena ;;
2178 m | mo | mot | moti | motif ) val=motif ;;
2179 g | gt | gtk ) val=gtk ;;
2180 * )
2181 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2182 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2183 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2184 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2185 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2186 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2187 { (exit 1); exit 1; }; }
2188 ;;
2189 esac
2190 with_x_toolkit=$val
2191
2192 fi
2193
2194
2195
2196 # Check whether --with-xpm was given.
2197 if test "${with_xpm+set}" = set; then
2198 withval=$with_xpm;
2199 else
2200 with_xpm=yes
2201 fi
2202
2203
2204 # Check whether --with-jpeg was given.
2205 if test "${with_jpeg+set}" = set; then
2206 withval=$with_jpeg;
2207 else
2208 with_jpeg=yes
2209 fi
2210
2211
2212 # Check whether --with-tiff was given.
2213 if test "${with_tiff+set}" = set; then
2214 withval=$with_tiff;
2215 else
2216 with_tiff=yes
2217 fi
2218
2219
2220 # Check whether --with-gif was given.
2221 if test "${with_gif+set}" = set; then
2222 withval=$with_gif;
2223 else
2224 with_gif=yes
2225 fi
2226
2227
2228 # Check whether --with-png was given.
2229 if test "${with_png+set}" = set; then
2230 withval=$with_png;
2231 else
2232 with_png=yes
2233 fi
2234
2235
2236 # Check whether --with-rsvg was given.
2237 if test "${with_rsvg+set}" = set; then
2238 withval=$with_rsvg;
2239 else
2240 with_rsvg=yes
2241 fi
2242
2243
2244
2245 # Check whether --with-xft was given.
2246 if test "${with_xft+set}" = set; then
2247 withval=$with_xft;
2248 else
2249 with_xft=yes
2250 fi
2251
2252
2253 # Check whether --with-libotf was given.
2254 if test "${with_libotf+set}" = set; then
2255 withval=$with_libotf;
2256 else
2257 with_libotf=yes
2258 fi
2259
2260
2261 # Check whether --with-m17n-flt was given.
2262 if test "${with_m17n_flt+set}" = set; then
2263 withval=$with_m17n_flt;
2264 else
2265 with_m17n_flt=yes
2266 fi
2267
2268
2269
2270 # Check whether --with-toolkit-scroll-bars was given.
2271 if test "${with_toolkit_scroll_bars+set}" = set; then
2272 withval=$with_toolkit_scroll_bars;
2273 else
2274 with_toolkit_scroll_bars=yes
2275 fi
2276
2277
2278 # Check whether --with-xaw3d was given.
2279 if test "${with_xaw3d+set}" = set; then
2280 withval=$with_xaw3d;
2281 else
2282 with_xaw3d=yes
2283 fi
2284
2285
2286 # Check whether --with-xim was given.
2287 if test "${with_xim+set}" = set; then
2288 withval=$with_xim;
2289 else
2290 with_xim=yes
2291 fi
2292
2293
2294 # Check whether --with-ns was given.
2295 if test "${with_ns+set}" = set; then
2296 withval=$with_ns;
2297 else
2298 with_ns=no
2299 fi
2300
2301
2302
2303 # Check whether --with-gpm was given.
2304 if test "${with_gpm+set}" = set; then
2305 withval=$with_gpm;
2306 else
2307 with_gpm=yes
2308 fi
2309
2310
2311 # Check whether --with-dbus was given.
2312 if test "${with_dbus+set}" = set; then
2313 withval=$with_dbus;
2314 else
2315 with_dbus=yes
2316 fi
2317
2318
2319 # Check whether --with-gconf was given.
2320 if test "${with_gconf+set}" = set; then
2321 withval=$with_gconf;
2322 else
2323 with_gconf=yes
2324 fi
2325
2326
2327 # Check whether --with-selinux was given.
2328 if test "${with_selinux+set}" = set; then
2329 withval=$with_selinux;
2330 else
2331 with_selinux=yes
2332 fi
2333
2334
2335 ## For the times when you want to build Emacs but don't have
2336 ## a suitable makeinfo, and can live without the manuals.
2337
2338 # Check whether --with-makeinfo was given.
2339 if test "${with_makeinfo+set}" = set; then
2340 withval=$with_makeinfo;
2341 else
2342 with_makeinfo=yes
2343 fi
2344
2345
2346
2347 # Check whether --with-gtk was given.
2348 if test "${with_gtk+set}" = set; then
2349 withval=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2350 specify a toolkit." >&5
2351 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2352 specify a toolkit." >&2;}
2353 { (exit 1); exit 1; }; }
2354 fi
2355
2356
2357
2358 # Check whether --with-gcc was given.
2359 if test "${with_gcc+set}" = set; then
2360 withval=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2361 variable to specify a compiler." >&5
2362 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2363 variable to specify a compiler." >&2;}
2364 { (exit 1); exit 1; }; }
2365 fi
2366
2367
2368
2369 # Check whether --with-pkg-config-prog was given.
2370 if test "${with_pkg_config_prog+set}" = set; then
2371 withval=$with_pkg_config_prog;
2372 fi
2373
2374 if test "X${with_pkg_config_prog}" != X; then
2375 if test "${with_pkg_config_prog}" != yes; then
2376 PKG_CONFIG="${with_pkg_config_prog}"
2377 fi
2378 fi
2379
2380
2381 # Check whether --with-gnustep-conf was given.
2382 if test "${with_gnustep_conf+set}" = set; then
2383 withval=$with_gnustep_conf;
2384 fi
2385
2386 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2387 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2388 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2389 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2390
2391 # Check whether --enable-ns-self-contained was given.
2392 if test "${enable_ns_self_contained+set}" = set; then
2393 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2394 else
2395 EN_NS_SELF_CONTAINED=yes
2396 fi
2397
2398
2399 # Check whether --enable-asserts was given.
2400 if test "${enable_asserts+set}" = set; then
2401 enableval=$enable_asserts; USE_XASSERTS=$enableval
2402 else
2403 USE_XASSERTS=no
2404 fi
2405
2406
2407 # Check whether --enable-maintainer-mode was given.
2408 if test "${enable_maintainer_mode+set}" = set; then
2409 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2410 else
2411 USE_MAINTAINER_MODE=no
2412 fi
2413
2414 if test $USE_MAINTAINER_MODE = yes; then
2415 MAINT=
2416 else
2417 MAINT=#
2418 fi
2419
2420
2421 # Check whether --enable-locallisppath was given.
2422 if test "${enable_locallisppath+set}" = set; then
2423 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2424 locallisppath=
2425 elif test "${enableval}" != "yes"; then
2426 locallisppath=${enableval}
2427 fi
2428 fi
2429
2430
2431 # Check whether --enable-checking was given.
2432 if test "${enable_checking+set}" = set; then
2433 enableval=$enable_checking; ac_checking_flags="${enableval}"
2434 fi
2435
2436 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2437 for check in $ac_checking_flags
2438 do
2439 case $check in
2440 # these set all the flags to specific states
2441 yes) ac_enable_checking=1 ;;
2442 no) ac_enable_checking= ;
2443 ac_gc_check_stringbytes= ;
2444 ac_gc_check_string_overrun= ;
2445 ac_gc_check_string_free_list= ;
2446 ac_xmalloc_overrun= ;
2447 ac_gc_check_cons_list= ;;
2448 all) ac_enable_checking=1 ;
2449 ac_gc_check_stringbytes=1 ;
2450 ac_gc_check_string_overrun=1 ;
2451 ac_gc_check_string_free_list=1 ;
2452 ac_xmalloc_overrun=1 ;
2453 ac_gc_check_cons_list=1 ;;
2454 # these enable particular checks
2455 stringbytes) ac_gc_check_stringbytes=1 ;;
2456 stringoverrun) ac_gc_check_string_overrun=1 ;;
2457 stringfreelist) ac_gc_check_string_free_list=1 ;;
2458 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2459 conslist) ac_gc_check_cons_list=1 ;;
2460 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2461 $as_echo "$as_me: error: unknown check category $check" >&2;}
2462 { (exit 1); exit 1; }; } ;;
2463 esac
2464 done
2465 IFS="$ac_save_IFS"
2466
2467 if test x$ac_enable_checking != x ; then
2468
2469 cat >>confdefs.h <<\_ACEOF
2470 #define ENABLE_CHECKING 1
2471 _ACEOF
2472
2473 fi
2474 if test x$ac_gc_check_stringbytes != x ; then
2475
2476 cat >>confdefs.h <<\_ACEOF
2477 #define GC_CHECK_STRING_BYTES 1
2478 _ACEOF
2479
2480 fi
2481 if test x$ac_gc_check_stringoverrun != x ; then
2482
2483 cat >>confdefs.h <<\_ACEOF
2484 #define GC_CHECK_STRING_OVERRUN 1
2485 _ACEOF
2486
2487 fi
2488 if test x$ac_gc_check_string_free_list != x ; then
2489
2490 cat >>confdefs.h <<\_ACEOF
2491 #define GC_CHECK_STRING_FREE_LIST 1
2492 _ACEOF
2493
2494 fi
2495 if test x$ac_xmalloc_overrun != x ; then
2496
2497 cat >>confdefs.h <<\_ACEOF
2498 #define XMALLOC_OVERRUN_CHECK 1
2499 _ACEOF
2500
2501 fi
2502 if test x$ac_gc_check_cons_list != x ; then
2503
2504 cat >>confdefs.h <<\_ACEOF
2505 #define GC_CHECK_CONS_LIST 1
2506 _ACEOF
2507
2508 fi
2509
2510 # Check whether --enable-profiling was given.
2511 if test "${enable_profiling+set}" = set; then
2512 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2513 fi
2514
2515 if test x$ac_enable_profiling != x ; then
2516 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2517 PROFILING_LDFLAGS="-pg"
2518 else
2519 PROFILING_CFLAGS=
2520 PROFILING_LDFLAGS=
2521 fi
2522
2523 # Check whether --enable-autodepend was given.
2524 if test "${enable_autodepend+set}" = set; then
2525 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2526 else
2527 ac_enable_autodepend=yes
2528 fi
2529
2530
2531 #### Make srcdir absolute, if it isn't already. It's important to
2532 #### avoid running the path through pwd unnecessarily, since pwd can
2533 #### give you automounter prefixes, which can go away. We do all this
2534 #### so Emacs can find its files when run uninstalled.
2535 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2536 unset CDPATH
2537 case "${srcdir}" in
2538 /* ) ;;
2539 . )
2540 ## We may be able to use the $PWD environment variable to make this
2541 ## absolute. But sometimes PWD is inaccurate.
2542 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2543 ## but that tested only for a well-formed and valid PWD,
2544 ## it did not object when PWD was well-formed and valid but just wrong.
2545 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2546 then
2547 srcdir="$PWD"
2548 else
2549 srcdir="`(cd ${srcdir}; pwd)`"
2550 fi
2551 ;;
2552 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2553 esac
2554
2555 #### Check if the source directory already has a configured system in it.
2556 if test `pwd` != `(cd ${srcdir} && pwd)` \
2557 && test -f "${srcdir}/src/config.h" ; then
2558 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2559 as a build directory right now; it has been configured in its own
2560 right. To configure in another directory as well, you MUST
2561 use GNU make. If you do not have GNU make, then you must
2562 now do \`make distclean' in ${srcdir},
2563 and then run $0 again." >&5
2564 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2565 as a build directory right now; it has been configured in its own
2566 right. To configure in another directory as well, you MUST
2567 use GNU make. If you do not have GNU make, then you must
2568 now do \`make distclean' in ${srcdir},
2569 and then run $0 again." >&2;}
2570 fi
2571
2572 #### Given the configuration name, set machfile and opsysfile to the
2573 #### names of the m/*.h and s/*.h files we should use.
2574
2575 ### Canonicalize the configuration name.
2576
2577 ac_aux_dir=
2578 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2579 if test -f "$ac_dir/install-sh"; then
2580 ac_aux_dir=$ac_dir
2581 ac_install_sh="$ac_aux_dir/install-sh -c"
2582 break
2583 elif test -f "$ac_dir/install.sh"; then
2584 ac_aux_dir=$ac_dir
2585 ac_install_sh="$ac_aux_dir/install.sh -c"
2586 break
2587 elif test -f "$ac_dir/shtool"; then
2588 ac_aux_dir=$ac_dir
2589 ac_install_sh="$ac_aux_dir/shtool install -c"
2590 break
2591 fi
2592 done
2593 if test -z "$ac_aux_dir"; then
2594 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2595 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2596 { (exit 1); exit 1; }; }
2597 fi
2598
2599 # These three variables are undocumented and unsupported,
2600 # and are intended to be withdrawn in a future Autoconf release.
2601 # They can cause serious problems if a builder's source tree is in a directory
2602 # whose full name contains unusual characters.
2603 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2604 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2605 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2606
2607
2608 # Make sure we can run config.sub.
2609 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2610 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2611 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2612 { (exit 1); exit 1; }; }
2613
2614 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2615 $as_echo_n "checking build system type... " >&6; }
2616 if test "${ac_cv_build+set}" = set; then
2617 $as_echo_n "(cached) " >&6
2618 else
2619 ac_build_alias=$build_alias
2620 test "x$ac_build_alias" = x &&
2621 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2622 test "x$ac_build_alias" = x &&
2623 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2624 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2625 { (exit 1); exit 1; }; }
2626 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2627 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2628 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2629 { (exit 1); exit 1; }; }
2630
2631 fi
2632 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2633 $as_echo "$ac_cv_build" >&6; }
2634 case $ac_cv_build in
2635 *-*-*) ;;
2636 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2637 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2638 { (exit 1); exit 1; }; };;
2639 esac
2640 build=$ac_cv_build
2641 ac_save_IFS=$IFS; IFS='-'
2642 set x $ac_cv_build
2643 shift
2644 build_cpu=$1
2645 build_vendor=$2
2646 shift; shift
2647 # Remember, the first character of IFS is used to create $*,
2648 # except with old shells:
2649 build_os=$*
2650 IFS=$ac_save_IFS
2651 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2652
2653
2654 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2655 $as_echo_n "checking host system type... " >&6; }
2656 if test "${ac_cv_host+set}" = set; then
2657 $as_echo_n "(cached) " >&6
2658 else
2659 if test "x$host_alias" = x; then
2660 ac_cv_host=$ac_cv_build
2661 else
2662 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2663 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2664 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2665 { (exit 1); exit 1; }; }
2666 fi
2667
2668 fi
2669 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2670 $as_echo "$ac_cv_host" >&6; }
2671 case $ac_cv_host in
2672 *-*-*) ;;
2673 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2674 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2675 { (exit 1); exit 1; }; };;
2676 esac
2677 host=$ac_cv_host
2678 ac_save_IFS=$IFS; IFS='-'
2679 set x $ac_cv_host
2680 shift
2681 host_cpu=$1
2682 host_vendor=$2
2683 shift; shift
2684 # Remember, the first character of IFS is used to create $*,
2685 # except with old shells:
2686 host_os=$*
2687 IFS=$ac_save_IFS
2688 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2689
2690
2691 canonical=$host
2692 configuration=${host_alias-${build_alias-$host}}
2693
2694
2695
2696 ### If you add support for a new configuration, add code to this
2697 ### switch statement to recognize your configuration name and select
2698 ### the appropriate operating system and machine description files.
2699
2700 ### You would hope that you could choose an m/*.h file pretty much
2701 ### based on the machine portion of the configuration name, and an s-
2702 ### file based on the operating system portion. However, it turns out
2703 ### that each m/*.h file is pretty manufacturer-specific - for
2704 ### example mips.h is MIPS
2705 ### So we basically have to have a special case for each
2706 ### configuration name.
2707 ###
2708 ### As far as handling version numbers on operating systems is
2709 ### concerned, make sure things will fail in a fixable way. If
2710 ### /etc/MACHINES doesn't say anything about version numbers, be
2711 ### prepared to handle anything reasonably. If version numbers
2712 ### matter, be sure /etc/MACHINES says something about it.
2713 ###
2714 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2715 ### "System V Release 4"; he writes, "The old convention encouraged
2716 ### confusion between `system' and `release' levels'."
2717
2718 machine='' opsys='' unported=no
2719 case "${canonical}" in
2720
2721 ## FreeBSD ports
2722 *-*-freebsd* )
2723 opsys=freebsd
2724 case "${canonical}" in
2725 alpha*-*-freebsd*) machine=alpha ;;
2726 arm*-*-freebsd*) machine=arm ;;
2727 ia64-*-freebsd*) machine=ia64 ;;
2728 sparc-*-freebsd*) machine=sparc ;;
2729 sparc64-*-freebsd*) machine=sparc ;;
2730 powerpc-*-freebsd*) machine=macppc ;;
2731 i[3456]86-*-freebsd*) machine=intel386 ;;
2732 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2733 esac
2734 ;;
2735
2736 ## FreeBSD kernel + glibc based userland
2737 *-*-kfreebsd*gnu* )
2738 opsys=gnu-kfreebsd
2739 case "${canonical}" in
2740 alpha*-*-kfreebsd*) machine=alpha ;;
2741 ia64-*-kfreebsd*) machine=ia64 ;;
2742 sparc-*-kfreebsd*) machine=sparc ;;
2743 sparc64-*-kfreebsd*) machine=sparc ;;
2744 powerpc-*-kfreebsd*) machine=macppc ;;
2745 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2746 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2747 esac
2748 ;;
2749
2750 ## NetBSD ports
2751 *-*-netbsd* )
2752 opsys=netbsd
2753 if test -f /usr/lib/crti.o; then
2754
2755 cat >>confdefs.h <<\_ACEOF
2756 #define HAVE_CRTIN /**/
2757 _ACEOF
2758
2759 fi
2760
2761 case "${canonical}" in
2762 alpha*-*-netbsd*) machine=alpha ;;
2763 i[3456]86-*-netbsd*) machine=intel386 ;;
2764 mips-*-netbsd*) machine=mips ;;
2765 mipsel-*-netbsd*) machine=mips ;;
2766 mipseb-*-netbsd*) machine=mips ;;
2767 powerpc-*-netbsd*) machine=macppc ;;
2768 sparc*-*-netbsd*) machine=sparc ;;
2769 vax-*-netbsd*) machine=vax ;;
2770 arm-*-netbsd*) machine=arm ;;
2771 x86_64-*-netbsd*) machine=amdx86-64 ;;
2772 hppa-*-netbsd*) machine=hp800 ;;
2773 m68k-*-netbsd*) machine=m68k ;;
2774 esac
2775 ;;
2776
2777 ## OpenBSD ports
2778 *-*-openbsd* )
2779 opsys=openbsd
2780 case "${canonical}" in
2781 alpha*-*-openbsd*) machine=alpha ;;
2782 arm-*-openbsd*) machine=arm ;;
2783 i386-*-openbsd*) machine=intel386 ;;
2784 powerpc-*-openbsd*) machine=macppc ;;
2785 sparc*-*-openbsd*) machine=sparc ;;
2786 vax-*-openbsd*) machine=vax ;;
2787 x86_64-*-openbsd*) machine=amdx86-64 ;;
2788 hppa-*-openbsd*) machine=hp800 ;;
2789 esac
2790 ;;
2791
2792 alpha*-*-linux-gnu* )
2793 machine=alpha opsys=gnu-linux
2794 ;;
2795
2796 arm*-*-linux-gnu* )
2797 machine=arm opsys=gnu-linux
2798 ;;
2799
2800 ## Apple Darwin / Mac OS X
2801 *-apple-darwin* )
2802 case "${canonical}" in
2803 i[3456]86-* ) machine=intel386 ;;
2804 powerpc-* ) machine=macppc ;;
2805 x86_64-* ) machine=amdx86-64 ;;
2806 * ) unported=yes ;;
2807 esac
2808 opsys=darwin
2809 # Define CPP as follows to make autoconf work correctly.
2810 CPP="${CC-cc} -E -no-cpp-precomp"
2811 # Use fink packages if available.
2812 if test -d /sw/include && test -d /sw/lib; then
2813 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2814 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2815 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2816 fi
2817 ;;
2818
2819 ## HP 9000 series 700 and 800, running HP/UX
2820 hppa*-hp-hpux10.2* )
2821 machine=hp800 opsys=hpux10-20
2822 ;;
2823 hppa*-hp-hpux1[1-9]* )
2824 machine=hp800 opsys=hpux11
2825 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2826 ;;
2827
2828 hppa*-*-linux-gnu* )
2829 machine=hp800 opsys=gnu-linux
2830 ;;
2831
2832 ## IBM machines
2833 s390-*-linux-gnu* )
2834 machine=ibms390 opsys=gnu-linux
2835 ;;
2836 s390x-*-linux-gnu* )
2837 machine=ibms390x opsys=gnu-linux
2838 ;;
2839 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2840 machine=ibmrs6000 opsys=aix4-2
2841 ;;
2842 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2843 machine=ibmrs6000 opsys=aix4-2
2844 ;;
2845 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2846 machine=ibmrs6000 opsys=aix4-2
2847 ;;
2848 rs6000-ibm-aix6* | powerpc-ibm-aix6* )
2849 machine=ibmrs6000 opsys=aix4-2
2850 ;;
2851
2852 ## Macintosh PowerPC
2853 powerpc*-*-linux-gnu* )
2854 machine=macppc opsys=gnu-linux
2855 ;;
2856
2857 ## Silicon Graphics machines
2858 ## Iris 4D
2859 mips-sgi-irix6.5 )
2860 machine=iris4d opsys=irix6-5
2861 # Without defining _LANGUAGE_C, things get masked out in the headers
2862 # so that, for instance, grepping for `free' in stdlib.h fails and
2863 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2864 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2865 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2866 ;;
2867
2868 ## Suns
2869 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2870 machine=sparc opsys=gnu-linux
2871 ;;
2872
2873 *-sun-solaris* \
2874 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
2875 | x86_64-*-solaris2* | x86_64-*-sunos5*)
2876 case "${canonical}" in
2877 i[3456]86-*-* ) machine=intel386 ;;
2878 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2879 sparc* ) machine=sparc ;;
2880 * ) unported=yes ;;
2881 esac
2882 case "${canonical}" in
2883 *-sunos5.6* | *-solaris2.6* )
2884 opsys=sol2-6
2885 NON_GNU_CPP=/usr/ccs/lib/cpp
2886 RANLIB="ar -ts"
2887 ;;
2888 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
2889 opsys=sol2-6
2890 emacs_check_sunpro_c=yes
2891 NON_GNU_CPP=/usr/ccs/lib/cpp
2892 ;;
2893 *-sunos5* | *-solaris* )
2894 opsys=sol2-10
2895 emacs_check_sunpro_c=yes
2896 NON_GNU_CPP=/usr/ccs/lib/cpp
2897 ;;
2898 esac
2899 ## Watch out for a compiler that we know will not work.
2900 case "${canonical}" in
2901 *-solaris* | *-sunos5* )
2902 if [ "x$CC" = x/usr/ucb/cc ]; then
2903 ## /usr/ucb/cc doesn't work;
2904 ## we should find some other compiler that does work.
2905 unset CC
2906 fi
2907 ;;
2908 *) ;;
2909 esac
2910 ;;
2911
2912 ## IA-64
2913 ia64*-*-linux* )
2914 machine=ia64 opsys=gnu-linux
2915 ;;
2916
2917 ## Intel 386 machines where we don't care about the manufacturer
2918 i[3456]86-*-* )
2919 machine=intel386
2920 case "${canonical}" in
2921 *-cygwin ) opsys=cygwin ;;
2922 *-darwin* ) opsys=darwin
2923 CPP="${CC-cc} -E -no-cpp-precomp"
2924 ;;
2925 *-linux-gnu* ) opsys=gnu-linux ;;
2926 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2927 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2928 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2929 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2930 esac
2931 ;;
2932
2933 ## m68k Linux-based GNU system
2934 m68k-*-linux-gnu* )
2935 machine=m68k opsys=gnu-linux
2936 ;;
2937
2938 ## Mips Linux-based GNU system
2939 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
2940 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
2941 machine=mips opsys=gnu-linux
2942 ;;
2943
2944 ## AMD x86-64 Linux-based GNU system
2945 x86_64-*-linux-gnu* )
2946 machine=amdx86-64 opsys=gnu-linux
2947 ;;
2948
2949 ## Tensilica Xtensa Linux-based GNU system
2950 xtensa*-*-linux-gnu* )
2951 machine=xtensa opsys=gnu-linux
2952 ;;
2953
2954 ## SuperH Linux-based GNU system
2955 sh[34]*-*-linux-gnu* )
2956 machine=sh3 opsys=gnu-linux
2957 ;;
2958
2959 * )
2960 unported=yes
2961 ;;
2962 esac
2963
2964 ### If the code above didn't choose an operating system, just choose
2965 ### an operating system based on the configuration name. You really
2966 ### only want to use this when you have no idea what the right
2967 ### operating system is; if you know what operating systems a machine
2968 ### runs, it's cleaner to make it explicit in the case statement
2969 ### above.
2970 if test x"${opsys}" = x; then
2971 case "${canonical}" in
2972 *-gnu* ) opsys=gnu ;;
2973 * )
2974 unported=yes
2975 ;;
2976 esac
2977 fi
2978
2979
2980
2981 if test $unported = yes; then
2982 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2983 Check \`etc/MACHINES' for recognized configuration names." >&5
2984 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2985 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2986 { (exit 1); exit 1; }; }
2987 fi
2988
2989 machfile="m/${machine}.h"
2990 opsysfile="s/${opsys}.h"
2991
2992
2993 #### Choose a compiler.
2994 test -n "$CC" && cc_specified=yes
2995
2996 # Save the value of CFLAGS that the user specified.
2997 SPECIFIED_CFLAGS="$CFLAGS"
2998
2999 ac_ext=c
3000 ac_cpp='$CPP $CPPFLAGS'
3001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3004 if test -n "$ac_tool_prefix"; then
3005 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3006 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3007 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3008 $as_echo_n "checking for $ac_word... " >&6; }
3009 if test "${ac_cv_prog_CC+set}" = set; then
3010 $as_echo_n "(cached) " >&6
3011 else
3012 if test -n "$CC"; then
3013 ac_cv_prog_CC="$CC" # Let the user override the test.
3014 else
3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 for as_dir in $PATH
3017 do
3018 IFS=$as_save_IFS
3019 test -z "$as_dir" && as_dir=.
3020 for ac_exec_ext in '' $ac_executable_extensions; do
3021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3022 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3023 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3024 break 2
3025 fi
3026 done
3027 done
3028 IFS=$as_save_IFS
3029
3030 fi
3031 fi
3032 CC=$ac_cv_prog_CC
3033 if test -n "$CC"; then
3034 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3035 $as_echo "$CC" >&6; }
3036 else
3037 { $as_echo "$as_me:$LINENO: result: no" >&5
3038 $as_echo "no" >&6; }
3039 fi
3040
3041
3042 fi
3043 if test -z "$ac_cv_prog_CC"; then
3044 ac_ct_CC=$CC
3045 # Extract the first word of "gcc", so it can be a program name with args.
3046 set dummy gcc; ac_word=$2
3047 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3048 $as_echo_n "checking for $ac_word... " >&6; }
3049 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3050 $as_echo_n "(cached) " >&6
3051 else
3052 if test -n "$ac_ct_CC"; then
3053 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3054 else
3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 for as_dir in $PATH
3057 do
3058 IFS=$as_save_IFS
3059 test -z "$as_dir" && as_dir=.
3060 for ac_exec_ext in '' $ac_executable_extensions; do
3061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3062 ac_cv_prog_ac_ct_CC="gcc"
3063 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3064 break 2
3065 fi
3066 done
3067 done
3068 IFS=$as_save_IFS
3069
3070 fi
3071 fi
3072 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3073 if test -n "$ac_ct_CC"; then
3074 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3075 $as_echo "$ac_ct_CC" >&6; }
3076 else
3077 { $as_echo "$as_me:$LINENO: result: no" >&5
3078 $as_echo "no" >&6; }
3079 fi
3080
3081 if test "x$ac_ct_CC" = x; then
3082 CC=""
3083 else
3084 case $cross_compiling:$ac_tool_warned in
3085 yes:)
3086 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3087 whose name does not start with the host triplet. If you think this
3088 configuration is useful to you, please write to autoconf@gnu.org." >&5
3089 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3090 whose name does not start with the host triplet. If you think this
3091 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3092 ac_tool_warned=yes ;;
3093 esac
3094 CC=$ac_ct_CC
3095 fi
3096 else
3097 CC="$ac_cv_prog_CC"
3098 fi
3099
3100 if test -z "$CC"; then
3101 if test -n "$ac_tool_prefix"; then
3102 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3103 set dummy ${ac_tool_prefix}cc; ac_word=$2
3104 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3105 $as_echo_n "checking for $ac_word... " >&6; }
3106 if test "${ac_cv_prog_CC+set}" = set; then
3107 $as_echo_n "(cached) " >&6
3108 else
3109 if test -n "$CC"; then
3110 ac_cv_prog_CC="$CC" # Let the user override the test.
3111 else
3112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 for as_dir in $PATH
3114 do
3115 IFS=$as_save_IFS
3116 test -z "$as_dir" && as_dir=.
3117 for ac_exec_ext in '' $ac_executable_extensions; do
3118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3119 ac_cv_prog_CC="${ac_tool_prefix}cc"
3120 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 break 2
3122 fi
3123 done
3124 done
3125 IFS=$as_save_IFS
3126
3127 fi
3128 fi
3129 CC=$ac_cv_prog_CC
3130 if test -n "$CC"; then
3131 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3132 $as_echo "$CC" >&6; }
3133 else
3134 { $as_echo "$as_me:$LINENO: result: no" >&5
3135 $as_echo "no" >&6; }
3136 fi
3137
3138
3139 fi
3140 fi
3141 if test -z "$CC"; then
3142 # Extract the first word of "cc", so it can be a program name with args.
3143 set dummy cc; ac_word=$2
3144 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3145 $as_echo_n "checking for $ac_word... " >&6; }
3146 if test "${ac_cv_prog_CC+set}" = set; then
3147 $as_echo_n "(cached) " >&6
3148 else
3149 if test -n "$CC"; then
3150 ac_cv_prog_CC="$CC" # Let the user override the test.
3151 else
3152 ac_prog_rejected=no
3153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154 for as_dir in $PATH
3155 do
3156 IFS=$as_save_IFS
3157 test -z "$as_dir" && as_dir=.
3158 for ac_exec_ext in '' $ac_executable_extensions; do
3159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3160 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3161 ac_prog_rejected=yes
3162 continue
3163 fi
3164 ac_cv_prog_CC="cc"
3165 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3166 break 2
3167 fi
3168 done
3169 done
3170 IFS=$as_save_IFS
3171
3172 if test $ac_prog_rejected = yes; then
3173 # We found a bogon in the path, so make sure we never use it.
3174 set dummy $ac_cv_prog_CC
3175 shift
3176 if test $# != 0; then
3177 # We chose a different compiler from the bogus one.
3178 # However, it has the same basename, so the bogon will be chosen
3179 # first if we set CC to just the basename; use the full file name.
3180 shift
3181 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3182 fi
3183 fi
3184 fi
3185 fi
3186 CC=$ac_cv_prog_CC
3187 if test -n "$CC"; then
3188 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3189 $as_echo "$CC" >&6; }
3190 else
3191 { $as_echo "$as_me:$LINENO: result: no" >&5
3192 $as_echo "no" >&6; }
3193 fi
3194
3195
3196 fi
3197 if test -z "$CC"; then
3198 if test -n "$ac_tool_prefix"; then
3199 for ac_prog in cl.exe
3200 do
3201 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3202 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3203 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3204 $as_echo_n "checking for $ac_word... " >&6; }
3205 if test "${ac_cv_prog_CC+set}" = set; then
3206 $as_echo_n "(cached) " >&6
3207 else
3208 if test -n "$CC"; then
3209 ac_cv_prog_CC="$CC" # Let the user override the test.
3210 else
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 for as_dir in $PATH
3213 do
3214 IFS=$as_save_IFS
3215 test -z "$as_dir" && as_dir=.
3216 for ac_exec_ext in '' $ac_executable_extensions; do
3217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3218 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3219 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3220 break 2
3221 fi
3222 done
3223 done
3224 IFS=$as_save_IFS
3225
3226 fi
3227 fi
3228 CC=$ac_cv_prog_CC
3229 if test -n "$CC"; then
3230 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3231 $as_echo "$CC" >&6; }
3232 else
3233 { $as_echo "$as_me:$LINENO: result: no" >&5
3234 $as_echo "no" >&6; }
3235 fi
3236
3237
3238 test -n "$CC" && break
3239 done
3240 fi
3241 if test -z "$CC"; then
3242 ac_ct_CC=$CC
3243 for ac_prog in cl.exe
3244 do
3245 # Extract the first word of "$ac_prog", so it can be a program name with args.
3246 set dummy $ac_prog; ac_word=$2
3247 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3248 $as_echo_n "checking for $ac_word... " >&6; }
3249 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3250 $as_echo_n "(cached) " >&6
3251 else
3252 if test -n "$ac_ct_CC"; then
3253 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3254 else
3255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256 for as_dir in $PATH
3257 do
3258 IFS=$as_save_IFS
3259 test -z "$as_dir" && as_dir=.
3260 for ac_exec_ext in '' $ac_executable_extensions; do
3261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3262 ac_cv_prog_ac_ct_CC="$ac_prog"
3263 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 break 2
3265 fi
3266 done
3267 done
3268 IFS=$as_save_IFS
3269
3270 fi
3271 fi
3272 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3273 if test -n "$ac_ct_CC"; then
3274 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3275 $as_echo "$ac_ct_CC" >&6; }
3276 else
3277 { $as_echo "$as_me:$LINENO: result: no" >&5
3278 $as_echo "no" >&6; }
3279 fi
3280
3281
3282 test -n "$ac_ct_CC" && break
3283 done
3284
3285 if test "x$ac_ct_CC" = x; then
3286 CC=""
3287 else
3288 case $cross_compiling:$ac_tool_warned in
3289 yes:)
3290 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3291 whose name does not start with the host triplet. If you think this
3292 configuration is useful to you, please write to autoconf@gnu.org." >&5
3293 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3294 whose name does not start with the host triplet. If you think this
3295 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3296 ac_tool_warned=yes ;;
3297 esac
3298 CC=$ac_ct_CC
3299 fi
3300 fi
3301
3302 fi
3303
3304
3305 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3306 See \`config.log' for more details." >&5
3307 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3308 See \`config.log' for more details." >&2;}
3309 { (exit 1); exit 1; }; }
3310
3311 # Provide some information about the compiler.
3312 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3313 set X $ac_compile
3314 ac_compiler=$2
3315 { (ac_try="$ac_compiler --version >&5"
3316 case "(($ac_try" in
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3319 esac
3320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3321 $as_echo "$ac_try_echo") >&5
3322 (eval "$ac_compiler --version >&5") 2>&5
3323 ac_status=$?
3324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); }
3326 { (ac_try="$ac_compiler -v >&5"
3327 case "(($ac_try" in
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3330 esac
3331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3332 $as_echo "$ac_try_echo") >&5
3333 (eval "$ac_compiler -v >&5") 2>&5
3334 ac_status=$?
3335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); }
3337 { (ac_try="$ac_compiler -V >&5"
3338 case "(($ac_try" in
3339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340 *) ac_try_echo=$ac_try;;
3341 esac
3342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3343 $as_echo "$ac_try_echo") >&5
3344 (eval "$ac_compiler -V >&5") 2>&5
3345 ac_status=$?
3346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }
3348
3349 cat >conftest.$ac_ext <<_ACEOF
3350 /* confdefs.h. */
3351 _ACEOF
3352 cat confdefs.h >>conftest.$ac_ext
3353 cat >>conftest.$ac_ext <<_ACEOF
3354 /* end confdefs.h. */
3355
3356 int
3357 main ()
3358 {
3359
3360 ;
3361 return 0;
3362 }
3363 _ACEOF
3364 ac_clean_files_save=$ac_clean_files
3365 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3366 # Try to create an executable without -o first, disregard a.out.
3367 # It will help us diagnose broken compilers, and finding out an intuition
3368 # of exeext.
3369 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3370 $as_echo_n "checking for C compiler default output file name... " >&6; }
3371 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3372
3373 # The possible output files:
3374 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3375
3376 ac_rmfiles=
3377 for ac_file in $ac_files
3378 do
3379 case $ac_file in
3380 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3381 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3382 esac
3383 done
3384 rm -f $ac_rmfiles
3385
3386 if { (ac_try="$ac_link_default"
3387 case "(($ac_try" in
3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389 *) ac_try_echo=$ac_try;;
3390 esac
3391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3392 $as_echo "$ac_try_echo") >&5
3393 (eval "$ac_link_default") 2>&5
3394 ac_status=$?
3395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); }; then
3397 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3398 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3399 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3400 # so that the user can short-circuit this test for compilers unknown to
3401 # Autoconf.
3402 for ac_file in $ac_files ''
3403 do
3404 test -f "$ac_file" || continue
3405 case $ac_file in
3406 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3407 ;;
3408 [ab].out )
3409 # We found the default executable, but exeext='' is most
3410 # certainly right.
3411 break;;
3412 *.* )
3413 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3414 then :; else
3415 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3416 fi
3417 # We set ac_cv_exeext here because the later test for it is not
3418 # safe: cross compilers may not add the suffix if given an `-o'
3419 # argument, so we may need to know it at that point already.
3420 # Even if this section looks crufty: it has the advantage of
3421 # actually working.
3422 break;;
3423 * )
3424 break;;
3425 esac
3426 done
3427 test "$ac_cv_exeext" = no && ac_cv_exeext=
3428
3429 else
3430 ac_file=''
3431 fi
3432
3433 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3434 $as_echo "$ac_file" >&6; }
3435 if test -z "$ac_file"; then
3436 $as_echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3438
3439 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3440 See \`config.log' for more details." >&5
3441 $as_echo "$as_me: error: C compiler cannot create executables
3442 See \`config.log' for more details." >&2;}
3443 { (exit 77); exit 77; }; }
3444 fi
3445
3446 ac_exeext=$ac_cv_exeext
3447
3448 # Check that the compiler produces executables we can run. If not, either
3449 # the compiler is broken, or we cross compile.
3450 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3451 $as_echo_n "checking whether the C compiler works... " >&6; }
3452 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3453 # If not cross compiling, check that we can run a simple program.
3454 if test "$cross_compiling" != yes; then
3455 if { ac_try='./$ac_file'
3456 { (case "(($ac_try" in
3457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458 *) ac_try_echo=$ac_try;;
3459 esac
3460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3461 $as_echo "$ac_try_echo") >&5
3462 (eval "$ac_try") 2>&5
3463 ac_status=$?
3464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); }; }; then
3466 cross_compiling=no
3467 else
3468 if test "$cross_compiling" = maybe; then
3469 cross_compiling=yes
3470 else
3471 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3472 If you meant to cross compile, use \`--host'.
3473 See \`config.log' for more details." >&5
3474 $as_echo "$as_me: error: cannot run C compiled programs.
3475 If you meant to cross compile, use \`--host'.
3476 See \`config.log' for more details." >&2;}
3477 { (exit 1); exit 1; }; }
3478 fi
3479 fi
3480 fi
3481 { $as_echo "$as_me:$LINENO: result: yes" >&5
3482 $as_echo "yes" >&6; }
3483
3484 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3485 ac_clean_files=$ac_clean_files_save
3486 # Check that the compiler produces executables we can run. If not, either
3487 # the compiler is broken, or we cross compile.
3488 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3489 $as_echo_n "checking whether we are cross compiling... " >&6; }
3490 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3491 $as_echo "$cross_compiling" >&6; }
3492
3493 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3494 $as_echo_n "checking for suffix of executables... " >&6; }
3495 if { (ac_try="$ac_link"
3496 case "(($ac_try" in
3497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498 *) ac_try_echo=$ac_try;;
3499 esac
3500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3501 $as_echo "$ac_try_echo") >&5
3502 (eval "$ac_link") 2>&5
3503 ac_status=$?
3504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); }; then
3506 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3507 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3508 # work properly (i.e., refer to `conftest.exe'), while it won't with
3509 # `rm'.
3510 for ac_file in conftest.exe conftest conftest.*; do
3511 test -f "$ac_file" || continue
3512 case $ac_file in
3513 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3514 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3515 break;;
3516 * ) break;;
3517 esac
3518 done
3519 else
3520 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3521 See \`config.log' for more details." >&5
3522 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3523 See \`config.log' for more details." >&2;}
3524 { (exit 1); exit 1; }; }
3525 fi
3526
3527 rm -f conftest$ac_cv_exeext
3528 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3529 $as_echo "$ac_cv_exeext" >&6; }
3530
3531 rm -f conftest.$ac_ext
3532 EXEEXT=$ac_cv_exeext
3533 ac_exeext=$EXEEXT
3534 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3535 $as_echo_n "checking for suffix of object files... " >&6; }
3536 if test "${ac_cv_objext+set}" = set; then
3537 $as_echo_n "(cached) " >&6
3538 else
3539 cat >conftest.$ac_ext <<_ACEOF
3540 /* confdefs.h. */
3541 _ACEOF
3542 cat confdefs.h >>conftest.$ac_ext
3543 cat >>conftest.$ac_ext <<_ACEOF
3544 /* end confdefs.h. */
3545
3546 int
3547 main ()
3548 {
3549
3550 ;
3551 return 0;
3552 }
3553 _ACEOF
3554 rm -f conftest.o conftest.obj
3555 if { (ac_try="$ac_compile"
3556 case "(($ac_try" in
3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3559 esac
3560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3561 $as_echo "$ac_try_echo") >&5
3562 (eval "$ac_compile") 2>&5
3563 ac_status=$?
3564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); }; then
3566 for ac_file in conftest.o conftest.obj conftest.*; do
3567 test -f "$ac_file" || continue;
3568 case $ac_file in
3569 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3570 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3571 break;;
3572 esac
3573 done
3574 else
3575 $as_echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5
3577
3578 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3579 See \`config.log' for more details." >&5
3580 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3581 See \`config.log' for more details." >&2;}
3582 { (exit 1); exit 1; }; }
3583 fi
3584
3585 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3586 fi
3587 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3588 $as_echo "$ac_cv_objext" >&6; }
3589 OBJEXT=$ac_cv_objext
3590 ac_objext=$OBJEXT
3591 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3592 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3593 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3594 $as_echo_n "(cached) " >&6
3595 else
3596 cat >conftest.$ac_ext <<_ACEOF
3597 /* confdefs.h. */
3598 _ACEOF
3599 cat confdefs.h >>conftest.$ac_ext
3600 cat >>conftest.$ac_ext <<_ACEOF
3601 /* end confdefs.h. */
3602
3603 int
3604 main ()
3605 {
3606 #ifndef __GNUC__
3607 choke me
3608 #endif
3609
3610 ;
3611 return 0;
3612 }
3613 _ACEOF
3614 rm -f conftest.$ac_objext
3615 if { (ac_try="$ac_compile"
3616 case "(($ac_try" in
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3619 esac
3620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3621 $as_echo "$ac_try_echo") >&5
3622 (eval "$ac_compile") 2>conftest.er1
3623 ac_status=$?
3624 grep -v '^ *+' conftest.er1 >conftest.err
3625 rm -f conftest.er1
3626 cat conftest.err >&5
3627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); } && {
3629 test -z "$ac_c_werror_flag" ||
3630 test ! -s conftest.err
3631 } && test -s conftest.$ac_objext; then
3632 ac_compiler_gnu=yes
3633 else
3634 $as_echo "$as_me: failed program was:" >&5
3635 sed 's/^/| /' conftest.$ac_ext >&5
3636
3637 ac_compiler_gnu=no
3638 fi
3639
3640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3641 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3642
3643 fi
3644 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3645 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3646 if test $ac_compiler_gnu = yes; then
3647 GCC=yes
3648 else
3649 GCC=
3650 fi
3651 ac_test_CFLAGS=${CFLAGS+set}
3652 ac_save_CFLAGS=$CFLAGS
3653 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3654 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3655 if test "${ac_cv_prog_cc_g+set}" = set; then
3656 $as_echo_n "(cached) " >&6
3657 else
3658 ac_save_c_werror_flag=$ac_c_werror_flag
3659 ac_c_werror_flag=yes
3660 ac_cv_prog_cc_g=no
3661 CFLAGS="-g"
3662 cat >conftest.$ac_ext <<_ACEOF
3663 /* confdefs.h. */
3664 _ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h. */
3668
3669 int
3670 main ()
3671 {
3672
3673 ;
3674 return 0;
3675 }
3676 _ACEOF
3677 rm -f conftest.$ac_objext
3678 if { (ac_try="$ac_compile"
3679 case "(($ac_try" in
3680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681 *) ac_try_echo=$ac_try;;
3682 esac
3683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3684 $as_echo "$ac_try_echo") >&5
3685 (eval "$ac_compile") 2>conftest.er1
3686 ac_status=$?
3687 grep -v '^ *+' conftest.er1 >conftest.err
3688 rm -f conftest.er1
3689 cat conftest.err >&5
3690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); } && {
3692 test -z "$ac_c_werror_flag" ||
3693 test ! -s conftest.err
3694 } && test -s conftest.$ac_objext; then
3695 ac_cv_prog_cc_g=yes
3696 else
3697 $as_echo "$as_me: failed program was:" >&5
3698 sed 's/^/| /' conftest.$ac_ext >&5
3699
3700 CFLAGS=""
3701 cat >conftest.$ac_ext <<_ACEOF
3702 /* confdefs.h. */
3703 _ACEOF
3704 cat confdefs.h >>conftest.$ac_ext
3705 cat >>conftest.$ac_ext <<_ACEOF
3706 /* end confdefs.h. */
3707
3708 int
3709 main ()
3710 {
3711
3712 ;
3713 return 0;
3714 }
3715 _ACEOF
3716 rm -f conftest.$ac_objext
3717 if { (ac_try="$ac_compile"
3718 case "(($ac_try" in
3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720 *) ac_try_echo=$ac_try;;
3721 esac
3722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3723 $as_echo "$ac_try_echo") >&5
3724 (eval "$ac_compile") 2>conftest.er1
3725 ac_status=$?
3726 grep -v '^ *+' conftest.er1 >conftest.err
3727 rm -f conftest.er1
3728 cat conftest.err >&5
3729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); } && {
3731 test -z "$ac_c_werror_flag" ||
3732 test ! -s conftest.err
3733 } && test -s conftest.$ac_objext; then
3734 :
3735 else
3736 $as_echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.$ac_ext >&5
3738
3739 ac_c_werror_flag=$ac_save_c_werror_flag
3740 CFLAGS="-g"
3741 cat >conftest.$ac_ext <<_ACEOF
3742 /* confdefs.h. */
3743 _ACEOF
3744 cat confdefs.h >>conftest.$ac_ext
3745 cat >>conftest.$ac_ext <<_ACEOF
3746 /* end confdefs.h. */
3747
3748 int
3749 main ()
3750 {
3751
3752 ;
3753 return 0;
3754 }
3755 _ACEOF
3756 rm -f conftest.$ac_objext
3757 if { (ac_try="$ac_compile"
3758 case "(($ac_try" in
3759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3760 *) ac_try_echo=$ac_try;;
3761 esac
3762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3763 $as_echo "$ac_try_echo") >&5
3764 (eval "$ac_compile") 2>conftest.er1
3765 ac_status=$?
3766 grep -v '^ *+' conftest.er1 >conftest.err
3767 rm -f conftest.er1
3768 cat conftest.err >&5
3769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); } && {
3771 test -z "$ac_c_werror_flag" ||
3772 test ! -s conftest.err
3773 } && test -s conftest.$ac_objext; then
3774 ac_cv_prog_cc_g=yes
3775 else
3776 $as_echo "$as_me: failed program was:" >&5
3777 sed 's/^/| /' conftest.$ac_ext >&5
3778
3779
3780 fi
3781
3782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3783 fi
3784
3785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3786 fi
3787
3788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3789 ac_c_werror_flag=$ac_save_c_werror_flag
3790 fi
3791 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3792 $as_echo "$ac_cv_prog_cc_g" >&6; }
3793 if test "$ac_test_CFLAGS" = set; then
3794 CFLAGS=$ac_save_CFLAGS
3795 elif test $ac_cv_prog_cc_g = yes; then
3796 if test "$GCC" = yes; then
3797 CFLAGS="-g -O2"
3798 else
3799 CFLAGS="-g"
3800 fi
3801 else
3802 if test "$GCC" = yes; then
3803 CFLAGS="-O2"
3804 else
3805 CFLAGS=
3806 fi
3807 fi
3808 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3809 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3810 if test "${ac_cv_prog_cc_c89+set}" = set; then
3811 $as_echo_n "(cached) " >&6
3812 else
3813 ac_cv_prog_cc_c89=no
3814 ac_save_CC=$CC
3815 cat >conftest.$ac_ext <<_ACEOF
3816 /* confdefs.h. */
3817 _ACEOF
3818 cat confdefs.h >>conftest.$ac_ext
3819 cat >>conftest.$ac_ext <<_ACEOF
3820 /* end confdefs.h. */
3821 #include <stdarg.h>
3822 #include <stdio.h>
3823 #include <sys/types.h>
3824 #include <sys/stat.h>
3825 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3826 struct buf { int x; };
3827 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3828 static char *e (p, i)
3829 char **p;
3830 int i;
3831 {
3832 return p[i];
3833 }
3834 static char *f (char * (*g) (char **, int), char **p, ...)
3835 {
3836 char *s;
3837 va_list v;
3838 va_start (v,p);
3839 s = g (p, va_arg (v,int));
3840 va_end (v);
3841 return s;
3842 }
3843
3844 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3845 function prototypes and stuff, but not '\xHH' hex character constants.
3846 These don't provoke an error unfortunately, instead are silently treated
3847 as 'x'. The following induces an error, until -std is added to get
3848 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3849 array size at least. It's necessary to write '\x00'==0 to get something
3850 that's true only with -std. */
3851 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3852
3853 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3854 inside strings and character constants. */
3855 #define FOO(x) 'x'
3856 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3857
3858 int test (int i, double x);
3859 struct s1 {int (*f) (int a);};
3860 struct s2 {int (*f) (double a);};
3861 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3862 int argc;
3863 char **argv;
3864 int
3865 main ()
3866 {
3867 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3868 ;
3869 return 0;
3870 }
3871 _ACEOF
3872 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3873 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3874 do
3875 CC="$ac_save_CC $ac_arg"
3876 rm -f conftest.$ac_objext
3877 if { (ac_try="$ac_compile"
3878 case "(($ac_try" in
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3881 esac
3882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3883 $as_echo "$ac_try_echo") >&5
3884 (eval "$ac_compile") 2>conftest.er1
3885 ac_status=$?
3886 grep -v '^ *+' conftest.er1 >conftest.err
3887 rm -f conftest.er1
3888 cat conftest.err >&5
3889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); } && {
3891 test -z "$ac_c_werror_flag" ||
3892 test ! -s conftest.err
3893 } && test -s conftest.$ac_objext; then
3894 ac_cv_prog_cc_c89=$ac_arg
3895 else
3896 $as_echo "$as_me: failed program was:" >&5
3897 sed 's/^/| /' conftest.$ac_ext >&5
3898
3899
3900 fi
3901
3902 rm -f core conftest.err conftest.$ac_objext
3903 test "x$ac_cv_prog_cc_c89" != "xno" && break
3904 done
3905 rm -f conftest.$ac_ext
3906 CC=$ac_save_CC
3907
3908 fi
3909 # AC_CACHE_VAL
3910 case "x$ac_cv_prog_cc_c89" in
3911 x)
3912 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3913 $as_echo "none needed" >&6; } ;;
3914 xno)
3915 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3916 $as_echo "unsupported" >&6; } ;;
3917 *)
3918 CC="$CC $ac_cv_prog_cc_c89"
3919 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3920 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3921 esac
3922
3923
3924 ac_ext=c
3925 ac_cpp='$CPP $CPPFLAGS'
3926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3929
3930
3931 # On Suns, sometimes $CPP names a directory.
3932 if test -n "$CPP" && test -d "$CPP"; then
3933 CPP=
3934 fi
3935
3936 ## If not using gcc, and on Solaris, and no CPP specified, see if
3937 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3938 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3939 test x"$CPP" = x; then
3940 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3941 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
3942
3943 if test "${emacs_cv_sunpro_c+set}" = set; then
3944 $as_echo_n "(cached) " >&6
3945 else
3946 cat >conftest.$ac_ext <<_ACEOF
3947 /* confdefs.h. */
3948 _ACEOF
3949 cat confdefs.h >>conftest.$ac_ext
3950 cat >>conftest.$ac_ext <<_ACEOF
3951 /* end confdefs.h. */
3952
3953 int
3954 main ()
3955 {
3956 #ifndef __SUNPRO_C
3957 fail;
3958 #endif
3959
3960 ;
3961 return 0;
3962 }
3963 _ACEOF
3964 rm -f conftest.$ac_objext conftest$ac_exeext
3965 if { (ac_try="$ac_link"
3966 case "(($ac_try" in
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3969 esac
3970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3971 $as_echo "$ac_try_echo") >&5
3972 (eval "$ac_link") 2>conftest.er1
3973 ac_status=$?
3974 grep -v '^ *+' conftest.er1 >conftest.err
3975 rm -f conftest.er1
3976 cat conftest.err >&5
3977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); } && {
3979 test -z "$ac_c_werror_flag" ||
3980 test ! -s conftest.err
3981 } && test -s conftest$ac_exeext && {
3982 test "$cross_compiling" = yes ||
3983 $as_test_x conftest$ac_exeext
3984 }; then
3985 emacs_cv_sunpro_c=yes
3986 else
3987 $as_echo "$as_me: failed program was:" >&5
3988 sed 's/^/| /' conftest.$ac_ext >&5
3989
3990 emacs_cv_sunpro_c=no
3991 fi
3992
3993 rm -rf conftest.dSYM
3994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3995 conftest$ac_exeext conftest.$ac_ext
3996 fi
3997
3998 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3999 $as_echo "$emacs_cv_sunpro_c" >&6; }
4000
4001 if test x"$emacs_cv_sunpro_c" = xyes; then
4002 NON_GNU_CPP="$CC -E -Xs"
4003 fi
4004 fi
4005
4006 #### Some systems specify a CPP to use unless we are using GCC.
4007 #### Now that we know whether we are using GCC, we can decide whether
4008 #### to use that one.
4009 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4010 then
4011 CPP="$NON_GNU_CPP"
4012 fi
4013
4014 #### Some systems specify a CC to use unless we are using GCC.
4015 #### Now that we know whether we are using GCC, we can decide whether
4016 #### to use that one.
4017 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4018 test x$cc_specified != xyes
4019 then
4020 CC="$NON_GNU_CC"
4021 fi
4022
4023 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4024 then
4025 CC="$CC $GCC_TEST_OPTIONS"
4026 fi
4027
4028 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4029 then
4030 CC="$CC $NON_GCC_TEST_OPTIONS"
4031 fi
4032
4033 ac_ext=c
4034 ac_cpp='$CPP $CPPFLAGS'
4035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4038 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4039 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4040 # On Suns, sometimes $CPP names a directory.
4041 if test -n "$CPP" && test -d "$CPP"; then
4042 CPP=
4043 fi
4044 if test -z "$CPP"; then
4045 if test "${ac_cv_prog_CPP+set}" = set; then
4046 $as_echo_n "(cached) " >&6
4047 else
4048 # Double quotes because CPP needs to be expanded
4049 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4050 do
4051 ac_preproc_ok=false
4052 for ac_c_preproc_warn_flag in '' yes
4053 do
4054 # Use a header file that comes with gcc, so configuring glibc
4055 # with a fresh cross-compiler works.
4056 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4057 # <limits.h> exists even on freestanding compilers.
4058 # On the NeXT, cc -E runs the code through the compiler's parser,
4059 # not just through cpp. "Syntax error" is here to catch this case.
4060 cat >conftest.$ac_ext <<_ACEOF
4061 /* confdefs.h. */
4062 _ACEOF
4063 cat confdefs.h >>conftest.$ac_ext
4064 cat >>conftest.$ac_ext <<_ACEOF
4065 /* end confdefs.h. */
4066 #ifdef __STDC__
4067 # include <limits.h>
4068 #else
4069 # include <assert.h>
4070 #endif
4071 Syntax error
4072 _ACEOF
4073 if { (ac_try="$ac_cpp conftest.$ac_ext"
4074 case "(($ac_try" in
4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4077 esac
4078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4079 $as_echo "$ac_try_echo") >&5
4080 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4081 ac_status=$?
4082 grep -v '^ *+' conftest.er1 >conftest.err
4083 rm -f conftest.er1
4084 cat conftest.err >&5
4085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); } >/dev/null && {
4087 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4088 test ! -s conftest.err
4089 }; then
4090 :
4091 else
4092 $as_echo "$as_me: failed program was:" >&5
4093 sed 's/^/| /' conftest.$ac_ext >&5
4094
4095 # Broken: fails on valid input.
4096 continue
4097 fi
4098
4099 rm -f conftest.err conftest.$ac_ext
4100
4101 # OK, works on sane cases. Now check whether nonexistent headers
4102 # can be detected and how.
4103 cat >conftest.$ac_ext <<_ACEOF
4104 /* confdefs.h. */
4105 _ACEOF
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h. */
4109 #include <ac_nonexistent.h>
4110 _ACEOF
4111 if { (ac_try="$ac_cpp conftest.$ac_ext"
4112 case "(($ac_try" in
4113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114 *) ac_try_echo=$ac_try;;
4115 esac
4116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4117 $as_echo "$ac_try_echo") >&5
4118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4119 ac_status=$?
4120 grep -v '^ *+' conftest.er1 >conftest.err
4121 rm -f conftest.er1
4122 cat conftest.err >&5
4123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } >/dev/null && {
4125 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4126 test ! -s conftest.err
4127 }; then
4128 # Broken: success on invalid input.
4129 continue
4130 else
4131 $as_echo "$as_me: failed program was:" >&5
4132 sed 's/^/| /' conftest.$ac_ext >&5
4133
4134 # Passes both tests.
4135 ac_preproc_ok=:
4136 break
4137 fi
4138
4139 rm -f conftest.err conftest.$ac_ext
4140
4141 done
4142 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4143 rm -f conftest.err conftest.$ac_ext
4144 if $ac_preproc_ok; then
4145 break
4146 fi
4147
4148 done
4149 ac_cv_prog_CPP=$CPP
4150
4151 fi
4152 CPP=$ac_cv_prog_CPP
4153 else
4154 ac_cv_prog_CPP=$CPP
4155 fi
4156 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4157 $as_echo "$CPP" >&6; }
4158 ac_preproc_ok=false
4159 for ac_c_preproc_warn_flag in '' yes
4160 do
4161 # Use a header file that comes with gcc, so configuring glibc
4162 # with a fresh cross-compiler works.
4163 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4164 # <limits.h> exists even on freestanding compilers.
4165 # On the NeXT, cc -E runs the code through the compiler's parser,
4166 # not just through cpp. "Syntax error" is here to catch this case.
4167 cat >conftest.$ac_ext <<_ACEOF
4168 /* confdefs.h. */
4169 _ACEOF
4170 cat confdefs.h >>conftest.$ac_ext
4171 cat >>conftest.$ac_ext <<_ACEOF
4172 /* end confdefs.h. */
4173 #ifdef __STDC__
4174 # include <limits.h>
4175 #else
4176 # include <assert.h>
4177 #endif
4178 Syntax error
4179 _ACEOF
4180 if { (ac_try="$ac_cpp conftest.$ac_ext"
4181 case "(($ac_try" in
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4184 esac
4185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4186 $as_echo "$ac_try_echo") >&5
4187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4188 ac_status=$?
4189 grep -v '^ *+' conftest.er1 >conftest.err
4190 rm -f conftest.er1
4191 cat conftest.err >&5
4192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); } >/dev/null && {
4194 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4195 test ! -s conftest.err
4196 }; then
4197 :
4198 else
4199 $as_echo "$as_me: failed program was:" >&5
4200 sed 's/^/| /' conftest.$ac_ext >&5
4201
4202 # Broken: fails on valid input.
4203 continue
4204 fi
4205
4206 rm -f conftest.err conftest.$ac_ext
4207
4208 # OK, works on sane cases. Now check whether nonexistent headers
4209 # can be detected and how.
4210 cat >conftest.$ac_ext <<_ACEOF
4211 /* confdefs.h. */
4212 _ACEOF
4213 cat confdefs.h >>conftest.$ac_ext
4214 cat >>conftest.$ac_ext <<_ACEOF
4215 /* end confdefs.h. */
4216 #include <ac_nonexistent.h>
4217 _ACEOF
4218 if { (ac_try="$ac_cpp conftest.$ac_ext"
4219 case "(($ac_try" in
4220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4221 *) ac_try_echo=$ac_try;;
4222 esac
4223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4224 $as_echo "$ac_try_echo") >&5
4225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4226 ac_status=$?
4227 grep -v '^ *+' conftest.er1 >conftest.err
4228 rm -f conftest.er1
4229 cat conftest.err >&5
4230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); } >/dev/null && {
4232 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4233 test ! -s conftest.err
4234 }; then
4235 # Broken: success on invalid input.
4236 continue
4237 else
4238 $as_echo "$as_me: failed program was:" >&5
4239 sed 's/^/| /' conftest.$ac_ext >&5
4240
4241 # Passes both tests.
4242 ac_preproc_ok=:
4243 break
4244 fi
4245
4246 rm -f conftest.err conftest.$ac_ext
4247
4248 done
4249 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4250 rm -f conftest.err conftest.$ac_ext
4251 if $ac_preproc_ok; then
4252 :
4253 else
4254 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4255 See \`config.log' for more details." >&5
4256 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4257 See \`config.log' for more details." >&2;}
4258 { (exit 1); exit 1; }; }
4259 fi
4260
4261 ac_ext=c
4262 ac_cpp='$CPP $CPPFLAGS'
4263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4266
4267
4268 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4269 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4270 if test "${ac_cv_path_GREP+set}" = set; then
4271 $as_echo_n "(cached) " >&6
4272 else
4273 if test -z "$GREP"; then
4274 ac_path_GREP_found=false
4275 # Loop through the user's path and test for each of PROGNAME-LIST
4276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4278 do
4279 IFS=$as_save_IFS
4280 test -z "$as_dir" && as_dir=.
4281 for ac_prog in grep ggrep; do
4282 for ac_exec_ext in '' $ac_executable_extensions; do
4283 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4284 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4285 # Check for GNU ac_path_GREP and select it if it is found.
4286 # Check for GNU $ac_path_GREP
4287 case `"$ac_path_GREP" --version 2>&1` in
4288 *GNU*)
4289 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4290 *)
4291 ac_count=0
4292 $as_echo_n 0123456789 >"conftest.in"
4293 while :
4294 do
4295 cat "conftest.in" "conftest.in" >"conftest.tmp"
4296 mv "conftest.tmp" "conftest.in"
4297 cp "conftest.in" "conftest.nl"
4298 $as_echo 'GREP' >> "conftest.nl"
4299 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4300 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4301 ac_count=`expr $ac_count + 1`
4302 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4303 # Best one so far, save it but keep looking for a better one
4304 ac_cv_path_GREP="$ac_path_GREP"
4305 ac_path_GREP_max=$ac_count
4306 fi
4307 # 10*(2^10) chars as input seems more than enough
4308 test $ac_count -gt 10 && break
4309 done
4310 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4311 esac
4312
4313 $ac_path_GREP_found && break 3
4314 done
4315 done
4316 done
4317 IFS=$as_save_IFS
4318 if test -z "$ac_cv_path_GREP"; then
4319 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4320 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4321 { (exit 1); exit 1; }; }
4322 fi
4323 else
4324 ac_cv_path_GREP=$GREP
4325 fi
4326
4327 fi
4328 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4329 $as_echo "$ac_cv_path_GREP" >&6; }
4330 GREP="$ac_cv_path_GREP"
4331
4332
4333 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4334 $as_echo_n "checking for egrep... " >&6; }
4335 if test "${ac_cv_path_EGREP+set}" = set; then
4336 $as_echo_n "(cached) " >&6
4337 else
4338 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4339 then ac_cv_path_EGREP="$GREP -E"
4340 else
4341 if test -z "$EGREP"; then
4342 ac_path_EGREP_found=false
4343 # Loop through the user's path and test for each of PROGNAME-LIST
4344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4345 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4346 do
4347 IFS=$as_save_IFS
4348 test -z "$as_dir" && as_dir=.
4349 for ac_prog in egrep; do
4350 for ac_exec_ext in '' $ac_executable_extensions; do
4351 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4352 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4353 # Check for GNU ac_path_EGREP and select it if it is found.
4354 # Check for GNU $ac_path_EGREP
4355 case `"$ac_path_EGREP" --version 2>&1` in
4356 *GNU*)
4357 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4358 *)
4359 ac_count=0
4360 $as_echo_n 0123456789 >"conftest.in"
4361 while :
4362 do
4363 cat "conftest.in" "conftest.in" >"conftest.tmp"
4364 mv "conftest.tmp" "conftest.in"
4365 cp "conftest.in" "conftest.nl"
4366 $as_echo 'EGREP' >> "conftest.nl"
4367 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4368 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4369 ac_count=`expr $ac_count + 1`
4370 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4371 # Best one so far, save it but keep looking for a better one
4372 ac_cv_path_EGREP="$ac_path_EGREP"
4373 ac_path_EGREP_max=$ac_count
4374 fi
4375 # 10*(2^10) chars as input seems more than enough
4376 test $ac_count -gt 10 && break
4377 done
4378 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4379 esac
4380
4381 $ac_path_EGREP_found && break 3
4382 done
4383 done
4384 done
4385 IFS=$as_save_IFS
4386 if test -z "$ac_cv_path_EGREP"; then
4387 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4388 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4389 { (exit 1); exit 1; }; }
4390 fi
4391 else
4392 ac_cv_path_EGREP=$EGREP
4393 fi
4394
4395 fi
4396 fi
4397 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4398 $as_echo "$ac_cv_path_EGREP" >&6; }
4399 EGREP="$ac_cv_path_EGREP"
4400
4401
4402 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4403 $as_echo_n "checking for ANSI C header files... " >&6; }
4404 if test "${ac_cv_header_stdc+set}" = set; then
4405 $as_echo_n "(cached) " >&6
4406 else
4407 cat >conftest.$ac_ext <<_ACEOF
4408 /* confdefs.h. */
4409 _ACEOF
4410 cat confdefs.h >>conftest.$ac_ext
4411 cat >>conftest.$ac_ext <<_ACEOF
4412 /* end confdefs.h. */
4413 #include <stdlib.h>
4414 #include <stdarg.h>
4415 #include <string.h>
4416 #include <float.h>
4417
4418 int
4419 main ()
4420 {
4421
4422 ;
4423 return 0;
4424 }
4425 _ACEOF
4426 rm -f conftest.$ac_objext
4427 if { (ac_try="$ac_compile"
4428 case "(($ac_try" in
4429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4430 *) ac_try_echo=$ac_try;;
4431 esac
4432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4433 $as_echo "$ac_try_echo") >&5
4434 (eval "$ac_compile") 2>conftest.er1
4435 ac_status=$?
4436 grep -v '^ *+' conftest.er1 >conftest.err
4437 rm -f conftest.er1
4438 cat conftest.err >&5
4439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); } && {
4441 test -z "$ac_c_werror_flag" ||
4442 test ! -s conftest.err
4443 } && test -s conftest.$ac_objext; then
4444 ac_cv_header_stdc=yes
4445 else
4446 $as_echo "$as_me: failed program was:" >&5
4447 sed 's/^/| /' conftest.$ac_ext >&5
4448
4449 ac_cv_header_stdc=no
4450 fi
4451
4452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4453
4454 if test $ac_cv_header_stdc = yes; then
4455 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4456 cat >conftest.$ac_ext <<_ACEOF
4457 /* confdefs.h. */
4458 _ACEOF
4459 cat confdefs.h >>conftest.$ac_ext
4460 cat >>conftest.$ac_ext <<_ACEOF
4461 /* end confdefs.h. */
4462 #include <string.h>
4463
4464 _ACEOF
4465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4466 $EGREP "memchr" >/dev/null 2>&1; then
4467 :
4468 else
4469 ac_cv_header_stdc=no
4470 fi
4471 rm -f conftest*
4472
4473 fi
4474
4475 if test $ac_cv_header_stdc = yes; then
4476 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4477 cat >conftest.$ac_ext <<_ACEOF
4478 /* confdefs.h. */
4479 _ACEOF
4480 cat confdefs.h >>conftest.$ac_ext
4481 cat >>conftest.$ac_ext <<_ACEOF
4482 /* end confdefs.h. */
4483 #include <stdlib.h>
4484
4485 _ACEOF
4486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4487 $EGREP "free" >/dev/null 2>&1; then
4488 :
4489 else
4490 ac_cv_header_stdc=no
4491 fi
4492 rm -f conftest*
4493
4494 fi
4495
4496 if test $ac_cv_header_stdc = yes; then
4497 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4498 if test "$cross_compiling" = yes; then
4499 :
4500 else
4501 cat >conftest.$ac_ext <<_ACEOF
4502 /* confdefs.h. */
4503 _ACEOF
4504 cat confdefs.h >>conftest.$ac_ext
4505 cat >>conftest.$ac_ext <<_ACEOF
4506 /* end confdefs.h. */
4507 #include <ctype.h>
4508 #include <stdlib.h>
4509 #if ((' ' & 0x0FF) == 0x020)
4510 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4511 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4512 #else
4513 # define ISLOWER(c) \
4514 (('a' <= (c) && (c) <= 'i') \
4515 || ('j' <= (c) && (c) <= 'r') \
4516 || ('s' <= (c) && (c) <= 'z'))
4517 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4518 #endif
4519
4520 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4521 int
4522 main ()
4523 {
4524 int i;
4525 for (i = 0; i < 256; i++)
4526 if (XOR (islower (i), ISLOWER (i))
4527 || toupper (i) != TOUPPER (i))
4528 return 2;
4529 return 0;
4530 }
4531 _ACEOF
4532 rm -f conftest$ac_exeext
4533 if { (ac_try="$ac_link"
4534 case "(($ac_try" in
4535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536 *) ac_try_echo=$ac_try;;
4537 esac
4538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4539 $as_echo "$ac_try_echo") >&5
4540 (eval "$ac_link") 2>&5
4541 ac_status=$?
4542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4544 { (case "(($ac_try" in
4545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4546 *) ac_try_echo=$ac_try;;
4547 esac
4548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4549 $as_echo "$ac_try_echo") >&5
4550 (eval "$ac_try") 2>&5
4551 ac_status=$?
4552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }; }; then
4554 :
4555 else
4556 $as_echo "$as_me: program exited with status $ac_status" >&5
4557 $as_echo "$as_me: failed program was:" >&5
4558 sed 's/^/| /' conftest.$ac_ext >&5
4559
4560 ( exit $ac_status )
4561 ac_cv_header_stdc=no
4562 fi
4563 rm -rf conftest.dSYM
4564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4565 fi
4566
4567
4568 fi
4569 fi
4570 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4571 $as_echo "$ac_cv_header_stdc" >&6; }
4572 if test $ac_cv_header_stdc = yes; then
4573
4574 cat >>confdefs.h <<\_ACEOF
4575 #define STDC_HEADERS 1
4576 _ACEOF
4577
4578 fi
4579
4580 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4591 inttypes.h stdint.h unistd.h
4592 do
4593 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4594 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4595 $as_echo_n "checking for $ac_header... " >&6; }
4596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4597 $as_echo_n "(cached) " >&6
4598 else
4599 cat >conftest.$ac_ext <<_ACEOF
4600 /* confdefs.h. */
4601 _ACEOF
4602 cat confdefs.h >>conftest.$ac_ext
4603 cat >>conftest.$ac_ext <<_ACEOF
4604 /* end confdefs.h. */
4605 $ac_includes_default
4606
4607 #include <$ac_header>
4608 _ACEOF
4609 rm -f conftest.$ac_objext
4610 if { (ac_try="$ac_compile"
4611 case "(($ac_try" in
4612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4613 *) ac_try_echo=$ac_try;;
4614 esac
4615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4616 $as_echo "$ac_try_echo") >&5
4617 (eval "$ac_compile") 2>conftest.er1
4618 ac_status=$?
4619 grep -v '^ *+' conftest.er1 >conftest.err
4620 rm -f conftest.er1
4621 cat conftest.err >&5
4622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); } && {
4624 test -z "$ac_c_werror_flag" ||
4625 test ! -s conftest.err
4626 } && test -s conftest.$ac_objext; then
4627 eval "$as_ac_Header=yes"
4628 else
4629 $as_echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4631
4632 eval "$as_ac_Header=no"
4633 fi
4634
4635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4636 fi
4637 ac_res=`eval 'as_val=${'$as_ac_Header'}
4638 $as_echo "$as_val"'`
4639 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4640 $as_echo "$ac_res" >&6; }
4641 if test `eval 'as_val=${'$as_ac_Header'}
4642 $as_echo "$as_val"'` = yes; then
4643 cat >>confdefs.h <<_ACEOF
4644 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4645 _ACEOF
4646
4647 fi
4648
4649 done
4650
4651
4652
4653 if test "${ac_cv_header_minix_config_h+set}" = set; then
4654 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4655 $as_echo_n "checking for minix/config.h... " >&6; }
4656 if test "${ac_cv_header_minix_config_h+set}" = set; then
4657 $as_echo_n "(cached) " >&6
4658 fi
4659 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4660 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4661 else
4662 # Is the header compilable?
4663 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4664 $as_echo_n "checking minix/config.h usability... " >&6; }
4665 cat >conftest.$ac_ext <<_ACEOF
4666 /* confdefs.h. */
4667 _ACEOF
4668 cat confdefs.h >>conftest.$ac_ext
4669 cat >>conftest.$ac_ext <<_ACEOF
4670 /* end confdefs.h. */
4671 $ac_includes_default
4672 #include <minix/config.h>
4673 _ACEOF
4674 rm -f conftest.$ac_objext
4675 if { (ac_try="$ac_compile"
4676 case "(($ac_try" in
4677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4678 *) ac_try_echo=$ac_try;;
4679 esac
4680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4681 $as_echo "$ac_try_echo") >&5
4682 (eval "$ac_compile") 2>conftest.er1
4683 ac_status=$?
4684 grep -v '^ *+' conftest.er1 >conftest.err
4685 rm -f conftest.er1
4686 cat conftest.err >&5
4687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); } && {
4689 test -z "$ac_c_werror_flag" ||
4690 test ! -s conftest.err
4691 } && test -s conftest.$ac_objext; then
4692 ac_header_compiler=yes
4693 else
4694 $as_echo "$as_me: failed program was:" >&5
4695 sed 's/^/| /' conftest.$ac_ext >&5
4696
4697 ac_header_compiler=no
4698 fi
4699
4700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4701 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4702 $as_echo "$ac_header_compiler" >&6; }
4703
4704 # Is the header present?
4705 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4706 $as_echo_n "checking minix/config.h presence... " >&6; }
4707 cat >conftest.$ac_ext <<_ACEOF
4708 /* confdefs.h. */
4709 _ACEOF
4710 cat confdefs.h >>conftest.$ac_ext
4711 cat >>conftest.$ac_ext <<_ACEOF
4712 /* end confdefs.h. */
4713 #include <minix/config.h>
4714 _ACEOF
4715 if { (ac_try="$ac_cpp conftest.$ac_ext"
4716 case "(($ac_try" in
4717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4718 *) ac_try_echo=$ac_try;;
4719 esac
4720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4721 $as_echo "$ac_try_echo") >&5
4722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4723 ac_status=$?
4724 grep -v '^ *+' conftest.er1 >conftest.err
4725 rm -f conftest.er1
4726 cat conftest.err >&5
4727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); } >/dev/null && {
4729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4730 test ! -s conftest.err
4731 }; then
4732 ac_header_preproc=yes
4733 else
4734 $as_echo "$as_me: failed program was:" >&5
4735 sed 's/^/| /' conftest.$ac_ext >&5
4736
4737 ac_header_preproc=no
4738 fi
4739
4740 rm -f conftest.err conftest.$ac_ext
4741 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4742 $as_echo "$ac_header_preproc" >&6; }
4743
4744 # So? What about this header?
4745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4746 yes:no: )
4747 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4748 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4749 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4750 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4751 ac_header_preproc=yes
4752 ;;
4753 no:yes:* )
4754 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4755 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4756 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4757 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4758 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4759 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4760 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4761 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4762 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4763 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4764 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4765 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4766
4767 ;;
4768 esac
4769 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4770 $as_echo_n "checking for minix/config.h... " >&6; }
4771 if test "${ac_cv_header_minix_config_h+set}" = set; then
4772 $as_echo_n "(cached) " >&6
4773 else
4774 ac_cv_header_minix_config_h=$ac_header_preproc
4775 fi
4776 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4777 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4778
4779 fi
4780 if test $ac_cv_header_minix_config_h = yes; then
4781 MINIX=yes
4782 else
4783 MINIX=
4784 fi
4785
4786
4787 if test "$MINIX" = yes; then
4788
4789 cat >>confdefs.h <<\_ACEOF
4790 #define _POSIX_SOURCE 1
4791 _ACEOF
4792
4793
4794 cat >>confdefs.h <<\_ACEOF
4795 #define _POSIX_1_SOURCE 2
4796 _ACEOF
4797
4798
4799 cat >>confdefs.h <<\_ACEOF
4800 #define _MINIX 1
4801 _ACEOF
4802
4803 fi
4804
4805
4806
4807 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4808 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4809 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4810 $as_echo_n "(cached) " >&6
4811 else
4812 cat >conftest.$ac_ext <<_ACEOF
4813 /* confdefs.h. */
4814 _ACEOF
4815 cat confdefs.h >>conftest.$ac_ext
4816 cat >>conftest.$ac_ext <<_ACEOF
4817 /* end confdefs.h. */
4818
4819 # define __EXTENSIONS__ 1
4820 $ac_includes_default
4821 int
4822 main ()
4823 {
4824
4825 ;
4826 return 0;
4827 }
4828 _ACEOF
4829 rm -f conftest.$ac_objext
4830 if { (ac_try="$ac_compile"
4831 case "(($ac_try" in
4832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833 *) ac_try_echo=$ac_try;;
4834 esac
4835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4836 $as_echo "$ac_try_echo") >&5
4837 (eval "$ac_compile") 2>conftest.er1
4838 ac_status=$?
4839 grep -v '^ *+' conftest.er1 >conftest.err
4840 rm -f conftest.er1
4841 cat conftest.err >&5
4842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } && {
4844 test -z "$ac_c_werror_flag" ||
4845 test ! -s conftest.err
4846 } && test -s conftest.$ac_objext; then
4847 ac_cv_safe_to_define___extensions__=yes
4848 else
4849 $as_echo "$as_me: failed program was:" >&5
4850 sed 's/^/| /' conftest.$ac_ext >&5
4851
4852 ac_cv_safe_to_define___extensions__=no
4853 fi
4854
4855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4856 fi
4857 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4858 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4859 test $ac_cv_safe_to_define___extensions__ = yes &&
4860 cat >>confdefs.h <<\_ACEOF
4861 #define __EXTENSIONS__ 1
4862 _ACEOF
4863
4864 cat >>confdefs.h <<\_ACEOF
4865 #define _ALL_SOURCE 1
4866 _ACEOF
4867
4868 cat >>confdefs.h <<\_ACEOF
4869 #define _GNU_SOURCE 1
4870 _ACEOF
4871
4872 cat >>confdefs.h <<\_ACEOF
4873 #define _POSIX_PTHREAD_SEMANTICS 1
4874 _ACEOF
4875
4876 cat >>confdefs.h <<\_ACEOF
4877 #define _TANDEM_SOURCE 1
4878 _ACEOF
4879
4880
4881
4882 ### Use -Wno-pointer-sign if the compiler supports it
4883 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4884 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4885 SAVE_CFLAGS="$CFLAGS"
4886 CFLAGS="$CFLAGS -Wno-pointer-sign"
4887 cat >conftest.$ac_ext <<_ACEOF
4888 /* confdefs.h. */
4889 _ACEOF
4890 cat confdefs.h >>conftest.$ac_ext
4891 cat >>conftest.$ac_ext <<_ACEOF
4892 /* end confdefs.h. */
4893
4894 int
4895 main ()
4896 {
4897
4898 ;
4899 return 0;
4900 }
4901 _ACEOF
4902 rm -f conftest.$ac_objext
4903 if { (ac_try="$ac_compile"
4904 case "(($ac_try" in
4905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4906 *) ac_try_echo=$ac_try;;
4907 esac
4908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4909 $as_echo "$ac_try_echo") >&5
4910 (eval "$ac_compile") 2>conftest.er1
4911 ac_status=$?
4912 grep -v '^ *+' conftest.er1 >conftest.err
4913 rm -f conftest.er1
4914 cat conftest.err >&5
4915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); } && {
4917 test -z "$ac_c_werror_flag" ||
4918 test ! -s conftest.err
4919 } && test -s conftest.$ac_objext; then
4920 has_option=yes
4921 else
4922 $as_echo "$as_me: failed program was:" >&5
4923 sed 's/^/| /' conftest.$ac_ext >&5
4924
4925 has_option=no
4926 fi
4927
4928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4929 if test $has_option = yes; then
4930 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4931 fi
4932 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4933 $as_echo "$has_option" >&6; }
4934 CFLAGS="$SAVE_CFLAGS"
4935 unset has_option
4936 unset SAVE_CFLAGS
4937
4938 ### Use -Wdeclaration-after-statement if the compiler supports it
4939 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4940 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4941 SAVE_CFLAGS="$CFLAGS"
4942 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4943 cat >conftest.$ac_ext <<_ACEOF
4944 /* confdefs.h. */
4945 _ACEOF
4946 cat confdefs.h >>conftest.$ac_ext
4947 cat >>conftest.$ac_ext <<_ACEOF
4948 /* end confdefs.h. */
4949
4950 int
4951 main ()
4952 {
4953
4954 ;
4955 return 0;
4956 }
4957 _ACEOF
4958 rm -f conftest.$ac_objext
4959 if { (ac_try="$ac_compile"
4960 case "(($ac_try" in
4961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4962 *) ac_try_echo=$ac_try;;
4963 esac
4964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4965 $as_echo "$ac_try_echo") >&5
4966 (eval "$ac_compile") 2>conftest.er1
4967 ac_status=$?
4968 grep -v '^ *+' conftest.er1 >conftest.err
4969 rm -f conftest.er1
4970 cat conftest.err >&5
4971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); } && {
4973 test -z "$ac_c_werror_flag" ||
4974 test ! -s conftest.err
4975 } && test -s conftest.$ac_objext; then
4976 has_option=yes
4977 else
4978 $as_echo "$as_me: failed program was:" >&5
4979 sed 's/^/| /' conftest.$ac_ext >&5
4980
4981 has_option=no
4982 fi
4983
4984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4985 if test $has_option = yes; then
4986 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4987 fi
4988 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4989 $as_echo "$has_option" >&6; }
4990 CFLAGS="$SAVE_CFLAGS"
4991 unset has_option
4992 unset SAVE_CFLAGS
4993
4994 #### Some other nice autoconf tests.
4995
4996 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4997 $as_echo_n "checking whether ln -s works... " >&6; }
4998 LN_S=$as_ln_s
4999 if test "$LN_S" = "ln -s"; then
5000 { $as_echo "$as_me:$LINENO: result: yes" >&5
5001 $as_echo "yes" >&6; }
5002 else
5003 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5004 $as_echo "no, using $LN_S" >&6; }
5005 fi
5006
5007 ac_ext=c
5008 ac_cpp='$CPP $CPPFLAGS'
5009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5012 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5013 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5014 # On Suns, sometimes $CPP names a directory.
5015 if test -n "$CPP" && test -d "$CPP"; then
5016 CPP=
5017 fi
5018 if test -z "$CPP"; then
5019 if test "${ac_cv_prog_CPP+set}" = set; then
5020 $as_echo_n "(cached) " >&6
5021 else
5022 # Double quotes because CPP needs to be expanded
5023 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5024 do
5025 ac_preproc_ok=false
5026 for ac_c_preproc_warn_flag in '' yes
5027 do
5028 # Use a header file that comes with gcc, so configuring glibc
5029 # with a fresh cross-compiler works.
5030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5031 # <limits.h> exists even on freestanding compilers.
5032 # On the NeXT, cc -E runs the code through the compiler's parser,
5033 # not just through cpp. "Syntax error" is here to catch this case.
5034 cat >conftest.$ac_ext <<_ACEOF
5035 /* confdefs.h. */
5036 _ACEOF
5037 cat confdefs.h >>conftest.$ac_ext
5038 cat >>conftest.$ac_ext <<_ACEOF
5039 /* end confdefs.h. */
5040 #ifdef __STDC__
5041 # include <limits.h>
5042 #else
5043 # include <assert.h>
5044 #endif
5045 Syntax error
5046 _ACEOF
5047 if { (ac_try="$ac_cpp conftest.$ac_ext"
5048 case "(($ac_try" in
5049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5050 *) ac_try_echo=$ac_try;;
5051 esac
5052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5053 $as_echo "$ac_try_echo") >&5
5054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5055 ac_status=$?
5056 grep -v '^ *+' conftest.er1 >conftest.err
5057 rm -f conftest.er1
5058 cat conftest.err >&5
5059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); } >/dev/null && {
5061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5062 test ! -s conftest.err
5063 }; then
5064 :
5065 else
5066 $as_echo "$as_me: failed program was:" >&5
5067 sed 's/^/| /' conftest.$ac_ext >&5
5068
5069 # Broken: fails on valid input.
5070 continue
5071 fi
5072
5073 rm -f conftest.err conftest.$ac_ext
5074
5075 # OK, works on sane cases. Now check whether nonexistent headers
5076 # can be detected and how.
5077 cat >conftest.$ac_ext <<_ACEOF
5078 /* confdefs.h. */
5079 _ACEOF
5080 cat confdefs.h >>conftest.$ac_ext
5081 cat >>conftest.$ac_ext <<_ACEOF
5082 /* end confdefs.h. */
5083 #include <ac_nonexistent.h>
5084 _ACEOF
5085 if { (ac_try="$ac_cpp conftest.$ac_ext"
5086 case "(($ac_try" in
5087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5088 *) ac_try_echo=$ac_try;;
5089 esac
5090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5091 $as_echo "$ac_try_echo") >&5
5092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5093 ac_status=$?
5094 grep -v '^ *+' conftest.er1 >conftest.err
5095 rm -f conftest.er1
5096 cat conftest.err >&5
5097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); } >/dev/null && {
5099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5100 test ! -s conftest.err
5101 }; then
5102 # Broken: success on invalid input.
5103 continue
5104 else
5105 $as_echo "$as_me: failed program was:" >&5
5106 sed 's/^/| /' conftest.$ac_ext >&5
5107
5108 # Passes both tests.
5109 ac_preproc_ok=:
5110 break
5111 fi
5112
5113 rm -f conftest.err conftest.$ac_ext
5114
5115 done
5116 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5117 rm -f conftest.err conftest.$ac_ext
5118 if $ac_preproc_ok; then
5119 break
5120 fi
5121
5122 done
5123 ac_cv_prog_CPP=$CPP
5124
5125 fi
5126 CPP=$ac_cv_prog_CPP
5127 else
5128 ac_cv_prog_CPP=$CPP
5129 fi
5130 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5131 $as_echo "$CPP" >&6; }
5132 ac_preproc_ok=false
5133 for ac_c_preproc_warn_flag in '' yes
5134 do
5135 # Use a header file that comes with gcc, so configuring glibc
5136 # with a fresh cross-compiler works.
5137 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5138 # <limits.h> exists even on freestanding compilers.
5139 # On the NeXT, cc -E runs the code through the compiler's parser,
5140 # not just through cpp. "Syntax error" is here to catch this case.
5141 cat >conftest.$ac_ext <<_ACEOF
5142 /* confdefs.h. */
5143 _ACEOF
5144 cat confdefs.h >>conftest.$ac_ext
5145 cat >>conftest.$ac_ext <<_ACEOF
5146 /* end confdefs.h. */
5147 #ifdef __STDC__
5148 # include <limits.h>
5149 #else
5150 # include <assert.h>
5151 #endif
5152 Syntax error
5153 _ACEOF
5154 if { (ac_try="$ac_cpp conftest.$ac_ext"
5155 case "(($ac_try" in
5156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5157 *) ac_try_echo=$ac_try;;
5158 esac
5159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5160 $as_echo "$ac_try_echo") >&5
5161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5162 ac_status=$?
5163 grep -v '^ *+' conftest.er1 >conftest.err
5164 rm -f conftest.er1
5165 cat conftest.err >&5
5166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); } >/dev/null && {
5168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5169 test ! -s conftest.err
5170 }; then
5171 :
5172 else
5173 $as_echo "$as_me: failed program was:" >&5
5174 sed 's/^/| /' conftest.$ac_ext >&5
5175
5176 # Broken: fails on valid input.
5177 continue
5178 fi
5179
5180 rm -f conftest.err conftest.$ac_ext
5181
5182 # OK, works on sane cases. Now check whether nonexistent headers
5183 # can be detected and how.
5184 cat >conftest.$ac_ext <<_ACEOF
5185 /* confdefs.h. */
5186 _ACEOF
5187 cat confdefs.h >>conftest.$ac_ext
5188 cat >>conftest.$ac_ext <<_ACEOF
5189 /* end confdefs.h. */
5190 #include <ac_nonexistent.h>
5191 _ACEOF
5192 if { (ac_try="$ac_cpp conftest.$ac_ext"
5193 case "(($ac_try" in
5194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5195 *) ac_try_echo=$ac_try;;
5196 esac
5197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5198 $as_echo "$ac_try_echo") >&5
5199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5200 ac_status=$?
5201 grep -v '^ *+' conftest.er1 >conftest.err
5202 rm -f conftest.er1
5203 cat conftest.err >&5
5204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); } >/dev/null && {
5206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5207 test ! -s conftest.err
5208 }; then
5209 # Broken: success on invalid input.
5210 continue
5211 else
5212 $as_echo "$as_me: failed program was:" >&5
5213 sed 's/^/| /' conftest.$ac_ext >&5
5214
5215 # Passes both tests.
5216 ac_preproc_ok=:
5217 break
5218 fi
5219
5220 rm -f conftest.err conftest.$ac_ext
5221
5222 done
5223 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5224 rm -f conftest.err conftest.$ac_ext
5225 if $ac_preproc_ok; then
5226 :
5227 else
5228 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5229 See \`config.log' for more details." >&5
5230 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5231 See \`config.log' for more details." >&2;}
5232 { (exit 1); exit 1; }; }
5233 fi
5234
5235 ac_ext=c
5236 ac_cpp='$CPP $CPPFLAGS'
5237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5240
5241 # Find a good install program. We prefer a C program (faster),
5242 # so one script is as good as another. But avoid the broken or
5243 # incompatible versions:
5244 # SysV /etc/install, /usr/sbin/install
5245 # SunOS /usr/etc/install
5246 # IRIX /sbin/install
5247 # AIX /bin/install
5248 # AmigaOS /C/install, which installs bootblocks on floppy discs
5249 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5250 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5251 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5252 # OS/2's system install, which has a completely different semantic
5253 # ./install, which can be erroneously created by make from ./install.sh.
5254 # Reject install programs that cannot install multiple files.
5255 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5256 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5257 if test -z "$INSTALL"; then
5258 if test "${ac_cv_path_install+set}" = set; then
5259 $as_echo_n "(cached) " >&6
5260 else
5261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262 for as_dir in $PATH
5263 do
5264 IFS=$as_save_IFS
5265 test -z "$as_dir" && as_dir=.
5266 # Account for people who put trailing slashes in PATH elements.
5267 case $as_dir/ in
5268 ./ | .// | /cC/* | \
5269 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5270 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5271 /usr/ucb/* ) ;;
5272 *)
5273 # OSF1 and SCO ODT 3.0 have their own names for install.
5274 # Don't use installbsd from OSF since it installs stuff as root
5275 # by default.
5276 for ac_prog in ginstall scoinst install; do
5277 for ac_exec_ext in '' $ac_executable_extensions; do
5278 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5279 if test $ac_prog = install &&
5280 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5281 # AIX install. It has an incompatible calling convention.
5282 :
5283 elif test $ac_prog = install &&
5284 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5285 # program-specific install script used by HP pwplus--don't use.
5286 :
5287 else
5288 rm -rf conftest.one conftest.two conftest.dir
5289 echo one > conftest.one
5290 echo two > conftest.two
5291 mkdir conftest.dir
5292 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5293 test -s conftest.one && test -s conftest.two &&
5294 test -s conftest.dir/conftest.one &&
5295 test -s conftest.dir/conftest.two
5296 then
5297 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5298 break 3
5299 fi
5300 fi
5301 fi
5302 done
5303 done
5304 ;;
5305 esac
5306
5307 done
5308 IFS=$as_save_IFS
5309
5310 rm -rf conftest.one conftest.two conftest.dir
5311
5312 fi
5313 if test "${ac_cv_path_install+set}" = set; then
5314 INSTALL=$ac_cv_path_install
5315 else
5316 # As a last resort, use the slow shell script. Don't cache a
5317 # value for INSTALL within a source directory, because that will
5318 # break other packages using the cache if that directory is
5319 # removed, or if the value is a relative name.
5320 INSTALL=$ac_install_sh
5321 fi
5322 fi
5323 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5324 $as_echo "$INSTALL" >&6; }
5325
5326 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5327 # It thinks the first close brace ends the variable substitution.
5328 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5329
5330 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5331
5332 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5333
5334 if test "x$RANLIB" = x; then
5335 if test -n "$ac_tool_prefix"; then
5336 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5337 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5338 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5339 $as_echo_n "checking for $ac_word... " >&6; }
5340 if test "${ac_cv_prog_RANLIB+set}" = set; then
5341 $as_echo_n "(cached) " >&6
5342 else
5343 if test -n "$RANLIB"; then
5344 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5345 else
5346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347 for as_dir in $PATH
5348 do
5349 IFS=$as_save_IFS
5350 test -z "$as_dir" && as_dir=.
5351 for ac_exec_ext in '' $ac_executable_extensions; do
5352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5353 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5354 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5355 break 2
5356 fi
5357 done
5358 done
5359 IFS=$as_save_IFS
5360
5361 fi
5362 fi
5363 RANLIB=$ac_cv_prog_RANLIB
5364 if test -n "$RANLIB"; then
5365 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5366 $as_echo "$RANLIB" >&6; }
5367 else
5368 { $as_echo "$as_me:$LINENO: result: no" >&5
5369 $as_echo "no" >&6; }
5370 fi
5371
5372
5373 fi
5374 if test -z "$ac_cv_prog_RANLIB"; then
5375 ac_ct_RANLIB=$RANLIB
5376 # Extract the first word of "ranlib", so it can be a program name with args.
5377 set dummy ranlib; ac_word=$2
5378 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5379 $as_echo_n "checking for $ac_word... " >&6; }
5380 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5381 $as_echo_n "(cached) " >&6
5382 else
5383 if test -n "$ac_ct_RANLIB"; then
5384 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5385 else
5386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387 for as_dir in $PATH
5388 do
5389 IFS=$as_save_IFS
5390 test -z "$as_dir" && as_dir=.
5391 for ac_exec_ext in '' $ac_executable_extensions; do
5392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5393 ac_cv_prog_ac_ct_RANLIB="ranlib"
5394 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5395 break 2
5396 fi
5397 done
5398 done
5399 IFS=$as_save_IFS
5400
5401 fi
5402 fi
5403 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5404 if test -n "$ac_ct_RANLIB"; then
5405 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5406 $as_echo "$ac_ct_RANLIB" >&6; }
5407 else
5408 { $as_echo "$as_me:$LINENO: result: no" >&5
5409 $as_echo "no" >&6; }
5410 fi
5411
5412 if test "x$ac_ct_RANLIB" = x; then
5413 RANLIB=":"
5414 else
5415 case $cross_compiling:$ac_tool_warned in
5416 yes:)
5417 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5418 whose name does not start with the host triplet. If you think this
5419 configuration is useful to you, please write to autoconf@gnu.org." >&5
5420 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5421 whose name does not start with the host triplet. If you think this
5422 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5423 ac_tool_warned=yes ;;
5424 esac
5425 RANLIB=$ac_ct_RANLIB
5426 fi
5427 else
5428 RANLIB="$ac_cv_prog_RANLIB"
5429 fi
5430
5431 fi
5432 # Extract the first word of "install-info", so it can be a program name with args.
5433 set dummy install-info; ac_word=$2
5434 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5435 $as_echo_n "checking for $ac_word... " >&6; }
5436 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5437 $as_echo_n "(cached) " >&6
5438 else
5439 case $INSTALL_INFO in
5440 [\\/]* | ?:[\\/]*)
5441 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5442 ;;
5443 *)
5444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445 for as_dir in $PATH
5446 do
5447 IFS=$as_save_IFS
5448 test -z "$as_dir" && as_dir=.
5449 for ac_exec_ext in '' $ac_executable_extensions; do
5450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5451 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5452 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5453 break 2
5454 fi
5455 done
5456 done
5457 IFS=$as_save_IFS
5458
5459 ;;
5460 esac
5461 fi
5462 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5463 if test -n "$INSTALL_INFO"; then
5464 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5465 $as_echo "$INSTALL_INFO" >&6; }
5466 else
5467 { $as_echo "$as_me:$LINENO: result: no" >&5
5468 $as_echo "no" >&6; }
5469 fi
5470
5471
5472 # Extract the first word of "install-info", so it can be a program name with args.
5473 set dummy install-info; ac_word=$2
5474 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5475 $as_echo_n "checking for $ac_word... " >&6; }
5476 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5477 $as_echo_n "(cached) " >&6
5478 else
5479 case $INSTALL_INFO in
5480 [\\/]* | ?:[\\/]*)
5481 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5482 ;;
5483 *)
5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485 for as_dir in /usr/sbin
5486 do
5487 IFS=$as_save_IFS
5488 test -z "$as_dir" && as_dir=.
5489 for ac_exec_ext in '' $ac_executable_extensions; do
5490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5491 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5492 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5493 break 2
5494 fi
5495 done
5496 done
5497 IFS=$as_save_IFS
5498
5499 ;;
5500 esac
5501 fi
5502 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5503 if test -n "$INSTALL_INFO"; then
5504 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5505 $as_echo "$INSTALL_INFO" >&6; }
5506 else
5507 { $as_echo "$as_me:$LINENO: result: no" >&5
5508 $as_echo "no" >&6; }
5509 fi
5510
5511
5512 # Extract the first word of "install-info", so it can be a program name with args.
5513 set dummy install-info; ac_word=$2
5514 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5515 $as_echo_n "checking for $ac_word... " >&6; }
5516 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5517 $as_echo_n "(cached) " >&6
5518 else
5519 case $INSTALL_INFO in
5520 [\\/]* | ?:[\\/]*)
5521 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5522 ;;
5523 *)
5524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525 for as_dir in /sbin
5526 do
5527 IFS=$as_save_IFS
5528 test -z "$as_dir" && as_dir=.
5529 for ac_exec_ext in '' $ac_executable_extensions; do
5530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5531 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5532 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5533 break 2
5534 fi
5535 done
5536 done
5537 IFS=$as_save_IFS
5538
5539 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5540 ;;
5541 esac
5542 fi
5543 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5544 if test -n "$INSTALL_INFO"; then
5545 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5546 $as_echo "$INSTALL_INFO" >&6; }
5547 else
5548 { $as_echo "$as_me:$LINENO: result: no" >&5
5549 $as_echo "no" >&6; }
5550 fi
5551
5552
5553 # Extract the first word of "gzip", so it can be a program name with args.
5554 set dummy gzip; ac_word=$2
5555 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5556 $as_echo_n "checking for $ac_word... " >&6; }
5557 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5558 $as_echo_n "(cached) " >&6
5559 else
5560 case $GZIP_PROG in
5561 [\\/]* | ?:[\\/]*)
5562 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5563 ;;
5564 *)
5565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566 for as_dir in $PATH
5567 do
5568 IFS=$as_save_IFS
5569 test -z "$as_dir" && as_dir=.
5570 for ac_exec_ext in '' $ac_executable_extensions; do
5571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5572 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5573 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5574 break 2
5575 fi
5576 done
5577 done
5578 IFS=$as_save_IFS
5579
5580 ;;
5581 esac
5582 fi
5583 GZIP_PROG=$ac_cv_path_GZIP_PROG
5584 if test -n "$GZIP_PROG"; then
5585 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5586 $as_echo "$GZIP_PROG" >&6; }
5587 else
5588 { $as_echo "$as_me:$LINENO: result: no" >&5
5589 $as_echo "no" >&6; }
5590 fi
5591
5592
5593
5594
5595 ## Need makeinfo >= 4.6 (?) to build the manuals.
5596 # Extract the first word of "makeinfo", so it can be a program name with args.
5597 set dummy makeinfo; ac_word=$2
5598 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5599 $as_echo_n "checking for $ac_word... " >&6; }
5600 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5601 $as_echo_n "(cached) " >&6
5602 else
5603 case $MAKEINFO in
5604 [\\/]* | ?:[\\/]*)
5605 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5606 ;;
5607 *)
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609 for as_dir in $PATH
5610 do
5611 IFS=$as_save_IFS
5612 test -z "$as_dir" && as_dir=.
5613 for ac_exec_ext in '' $ac_executable_extensions; do
5614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5615 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5616 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5617 break 2
5618 fi
5619 done
5620 done
5621 IFS=$as_save_IFS
5622
5623 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5624 ;;
5625 esac
5626 fi
5627 MAKEINFO=$ac_cv_path_MAKEINFO
5628 if test -n "$MAKEINFO"; then
5629 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5630 $as_echo "$MAKEINFO" >&6; }
5631 else
5632 { $as_echo "$as_me:$LINENO: result: no" >&5
5633 $as_echo "no" >&6; }
5634 fi
5635
5636
5637 if test "$MAKEINFO" != "no" && \
5638 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
5639 MAKEINFO=no
5640 fi
5641
5642 ## Makeinfo is unusual. For a released Emacs, the manuals are
5643 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5644 ## therefore in the category of "special tools" not normally required, which
5645 ## configure does not have to check for (eg autoconf itself).
5646 ## In a Bazaar checkout on the other hand, the manuals are not included.
5647 ## So makeinfo is a requirement to build from Bazaar, and configure
5648 ## should test for it as it does for any other build requirement.
5649 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5650 ## with pre-built manuals, from a Bazaar checkout.
5651 if test "$MAKEINFO" = "no"; then
5652 if test "x${with_makeinfo}" = "xno"; then
5653 MAKEINFO=off
5654 elif ! test -e $srcdir/info/emacs; then
5655 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5656 source tree does not seem to have pre-built manuals in the \`info' directory.
5657 Either install a suitable version of makeinfo, or re-run configure
5658 with the \`--without-makeinfo' option to build without the manuals. " >&5
5659 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5660 source tree does not seem to have pre-built manuals in the \`info' directory.
5661 Either install a suitable version of makeinfo, or re-run configure
5662 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5663 { (exit 1); exit 1; }; }
5664 fi
5665 fi
5666
5667
5668 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5669 then
5670 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5671 fi
5672
5673 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5674 then
5675 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5676 fi
5677
5678
5679 late_LDFLAGS=$LDFLAGS
5680 if test "$GCC" = yes; then
5681 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5682 else
5683 LDFLAGS="$LDFLAGS -znocombreloc"
5684 fi
5685
5686 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5687 $as_echo_n "checking for -znocombreloc... " >&6; }
5688 cat >conftest.$ac_ext <<_ACEOF
5689 main(){return 0;}
5690 _ACEOF
5691 rm -f conftest.$ac_objext conftest$ac_exeext
5692 if { (ac_try="$ac_link"
5693 case "(($ac_try" in
5694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5695 *) ac_try_echo=$ac_try;;
5696 esac
5697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5698 $as_echo "$ac_try_echo") >&5
5699 (eval "$ac_link") 2>conftest.er1
5700 ac_status=$?
5701 grep -v '^ *+' conftest.er1 >conftest.err
5702 rm -f conftest.er1
5703 cat conftest.err >&5
5704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); } && {
5706 test -z "$ac_c_werror_flag" ||
5707 test ! -s conftest.err
5708 } && test -s conftest$ac_exeext && {
5709 test "$cross_compiling" = yes ||
5710 $as_test_x conftest$ac_exeext
5711 }; then
5712 { $as_echo "$as_me:$LINENO: result: yes" >&5
5713 $as_echo "yes" >&6; }
5714 else
5715 $as_echo "$as_me: failed program was:" >&5
5716 sed 's/^/| /' conftest.$ac_ext >&5
5717
5718 LDFLAGS=$late_LDFLAGS
5719 { $as_echo "$as_me:$LINENO: result: no" >&5
5720 $as_echo "no" >&6; }
5721 fi
5722
5723 rm -rf conftest.dSYM
5724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5725 conftest$ac_exeext conftest.$ac_ext
5726
5727 #### Extract some information from the operating system and machine files.
5728
5729 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5730 - which libraries the lib-src programs will want, and
5731 - whether the GNU malloc routines are usable..." >&5
5732 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5733 - which libraries the lib-src programs will want, and
5734 - whether the GNU malloc routines are usable..." >&6;}
5735
5736 ### First figure out CFLAGS (which we use for running the compiler here)
5737 ### and REAL_CFLAGS (which we use for real compilation).
5738 ### The two are the same except on a few systems, where they are made
5739 ### different to work around various lossages. For example,
5740 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5741 ### as implying static linking.
5742
5743 ### If the CFLAGS env var is specified, we use that value
5744 ### instead of the default.
5745
5746 ### It's not important that this name contain the PID; you can't run
5747 ### two configures in the same directory and have anything work
5748 ### anyway.
5749 tempcname="conftest.c"
5750
5751 echo '
5752 #include "'${srcdir}'/src/'${opsysfile}'"
5753 #include "'${srcdir}'/src/'${machfile}'"
5754 #ifndef LIBS_MACHINE
5755 #define LIBS_MACHINE
5756 #endif
5757 #ifndef LIBS_SYSTEM
5758 #define LIBS_SYSTEM
5759 #endif
5760 #ifndef C_SWITCH_SYSTEM
5761 #define C_SWITCH_SYSTEM
5762 #endif
5763 #ifndef C_SWITCH_MACHINE
5764 #define C_SWITCH_MACHINE
5765 #endif
5766 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5767 configure___ c_switch_system=C_SWITCH_SYSTEM
5768 configure___ c_switch_machine=C_SWITCH_MACHINE
5769
5770 #ifndef LIB_X11_LIB
5771 #define LIB_X11_LIB -lX11
5772 #endif
5773
5774 configure___ LIBX=LIB_X11_LIB
5775
5776 #ifdef UNEXEC
5777 configure___ unexec=UNEXEC
5778 #else
5779 configure___ unexec=unexec.o
5780 #endif
5781
5782 #ifdef SYSTEM_MALLOC
5783 configure___ system_malloc=yes
5784 #else
5785 configure___ system_malloc=no
5786 #endif
5787
5788 #ifdef USE_MMAP_FOR_BUFFERS
5789 configure___ use_mmap_for_buffers=yes
5790 #else
5791 configure___ use_mmap_for_buffers=no
5792 #endif
5793
5794 #ifndef C_OPTIMIZE_SWITCH
5795 #ifdef __GNUC__
5796 #define C_OPTIMIZE_SWITCH -O2
5797 #else
5798 #define C_OPTIMIZE_SWITCH -O
5799 #endif
5800 #endif
5801
5802 #ifndef C_WARNINGS_SWITCH
5803 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5804 #endif
5805
5806 #ifndef LD_SWITCH_MACHINE
5807 #define LD_SWITCH_MACHINE
5808 #endif
5809
5810 #ifndef LD_SWITCH_SYSTEM
5811 #define LD_SWITCH_SYSTEM
5812 #endif
5813
5814 #ifndef LD_SWITCH_X_SITE_AUX
5815 #define LD_SWITCH_X_SITE_AUX
5816 #endif
5817
5818 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5819 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5820
5821 #ifdef THIS_IS_CONFIGURE
5822
5823 /* Get the CFLAGS for tests in configure. */
5824 #ifdef __GNUC__
5825 configure___ CFLAGS=C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5826 #else
5827 configure___ CFLAGS='${SPECIFIED_CFLAGS}'
5828 #endif
5829
5830 #else /* not THIS_IS_CONFIGURE */
5831
5832 /* Get the CFLAGS for real compilation. */
5833 #ifdef __GNUC__
5834 configure___ REAL_CFLAGS=C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5835 #else
5836 configure___ REAL_CFLAGS='${SPECIFIED_CFLAGS}'
5837 #endif
5838
5839 #endif /* not THIS_IS_CONFIGURE */
5840 ' > ${tempcname}
5841
5842 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5843
5844 # The value of CPP is a quoted variable reference, so we need to do this
5845 # to get its actual value...
5846 CPP=`eval "echo $CPP"`
5847 eval `${CPP} -Isrc ${tempcname} \
5848 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5849 if test "x$SPECIFIED_CFLAGS" = x; then
5850 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5851 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5852 else
5853 REAL_CFLAGS="$CFLAGS"
5854 fi
5855 rm ${tempcname}
5856
5857 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5858
5859 ### Make sure subsequent tests use flags consistent with the build flags.
5860
5861 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5862 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5863 else
5864 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5865 fi
5866
5867
5868
5869 # Check whether --enable-largefile was given.
5870 if test "${enable_largefile+set}" = set; then
5871 enableval=$enable_largefile;
5872 fi
5873
5874 if test "$enable_largefile" != no; then
5875
5876 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5877 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5878 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5879 $as_echo_n "(cached) " >&6
5880 else
5881 ac_cv_sys_largefile_CC=no
5882 if test "$GCC" != yes; then
5883 ac_save_CC=$CC
5884 while :; do
5885 # IRIX 6.2 and later do not support large files by default,
5886 # so use the C compiler's -n32 option if that helps.
5887 cat >conftest.$ac_ext <<_ACEOF
5888 /* confdefs.h. */
5889 _ACEOF
5890 cat confdefs.h >>conftest.$ac_ext
5891 cat >>conftest.$ac_ext <<_ACEOF
5892 /* end confdefs.h. */
5893 #include <sys/types.h>
5894 /* Check that off_t can represent 2**63 - 1 correctly.
5895 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5896 since some C++ compilers masquerading as C compilers
5897 incorrectly reject 9223372036854775807. */
5898 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5899 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5900 && LARGE_OFF_T % 2147483647 == 1)
5901 ? 1 : -1];
5902 int
5903 main ()
5904 {
5905
5906 ;
5907 return 0;
5908 }
5909 _ACEOF
5910 rm -f conftest.$ac_objext
5911 if { (ac_try="$ac_compile"
5912 case "(($ac_try" in
5913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5914 *) ac_try_echo=$ac_try;;
5915 esac
5916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5917 $as_echo "$ac_try_echo") >&5
5918 (eval "$ac_compile") 2>conftest.er1
5919 ac_status=$?
5920 grep -v '^ *+' conftest.er1 >conftest.err
5921 rm -f conftest.er1
5922 cat conftest.err >&5
5923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); } && {
5925 test -z "$ac_c_werror_flag" ||
5926 test ! -s conftest.err
5927 } && test -s conftest.$ac_objext; then
5928 break
5929 else
5930 $as_echo "$as_me: failed program was:" >&5
5931 sed 's/^/| /' conftest.$ac_ext >&5
5932
5933
5934 fi
5935
5936 rm -f core conftest.err conftest.$ac_objext
5937 CC="$CC -n32"
5938 rm -f conftest.$ac_objext
5939 if { (ac_try="$ac_compile"
5940 case "(($ac_try" in
5941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5942 *) ac_try_echo=$ac_try;;
5943 esac
5944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5945 $as_echo "$ac_try_echo") >&5
5946 (eval "$ac_compile") 2>conftest.er1
5947 ac_status=$?
5948 grep -v '^ *+' conftest.er1 >conftest.err
5949 rm -f conftest.er1
5950 cat conftest.err >&5
5951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); } && {
5953 test -z "$ac_c_werror_flag" ||
5954 test ! -s conftest.err
5955 } && test -s conftest.$ac_objext; then
5956 ac_cv_sys_largefile_CC=' -n32'; break
5957 else
5958 $as_echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.$ac_ext >&5
5960
5961
5962 fi
5963
5964 rm -f core conftest.err conftest.$ac_objext
5965 break
5966 done
5967 CC=$ac_save_CC
5968 rm -f conftest.$ac_ext
5969 fi
5970 fi
5971 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5972 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5973 if test "$ac_cv_sys_largefile_CC" != no; then
5974 CC=$CC$ac_cv_sys_largefile_CC
5975 fi
5976
5977 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5978 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5979 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5980 $as_echo_n "(cached) " >&6
5981 else
5982 while :; do
5983 cat >conftest.$ac_ext <<_ACEOF
5984 /* confdefs.h. */
5985 _ACEOF
5986 cat confdefs.h >>conftest.$ac_ext
5987 cat >>conftest.$ac_ext <<_ACEOF
5988 /* end confdefs.h. */
5989 #include <sys/types.h>
5990 /* Check that off_t can represent 2**63 - 1 correctly.
5991 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5992 since some C++ compilers masquerading as C compilers
5993 incorrectly reject 9223372036854775807. */
5994 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5995 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5996 && LARGE_OFF_T % 2147483647 == 1)
5997 ? 1 : -1];
5998 int
5999 main ()
6000 {
6001
6002 ;
6003 return 0;
6004 }
6005 _ACEOF
6006 rm -f conftest.$ac_objext
6007 if { (ac_try="$ac_compile"
6008 case "(($ac_try" in
6009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010 *) ac_try_echo=$ac_try;;
6011 esac
6012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6013 $as_echo "$ac_try_echo") >&5
6014 (eval "$ac_compile") 2>conftest.er1
6015 ac_status=$?
6016 grep -v '^ *+' conftest.er1 >conftest.err
6017 rm -f conftest.er1
6018 cat conftest.err >&5
6019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); } && {
6021 test -z "$ac_c_werror_flag" ||
6022 test ! -s conftest.err
6023 } && test -s conftest.$ac_objext; then
6024 ac_cv_sys_file_offset_bits=no; break
6025 else
6026 $as_echo "$as_me: failed program was:" >&5
6027 sed 's/^/| /' conftest.$ac_ext >&5
6028
6029
6030 fi
6031
6032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6033 cat >conftest.$ac_ext <<_ACEOF
6034 /* confdefs.h. */
6035 _ACEOF
6036 cat confdefs.h >>conftest.$ac_ext
6037 cat >>conftest.$ac_ext <<_ACEOF
6038 /* end confdefs.h. */
6039 #define _FILE_OFFSET_BITS 64
6040 #include <sys/types.h>
6041 /* Check that off_t can represent 2**63 - 1 correctly.
6042 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6043 since some C++ compilers masquerading as C compilers
6044 incorrectly reject 9223372036854775807. */
6045 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6046 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6047 && LARGE_OFF_T % 2147483647 == 1)
6048 ? 1 : -1];
6049 int
6050 main ()
6051 {
6052
6053 ;
6054 return 0;
6055 }
6056 _ACEOF
6057 rm -f conftest.$ac_objext
6058 if { (ac_try="$ac_compile"
6059 case "(($ac_try" in
6060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6061 *) ac_try_echo=$ac_try;;
6062 esac
6063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6064 $as_echo "$ac_try_echo") >&5
6065 (eval "$ac_compile") 2>conftest.er1
6066 ac_status=$?
6067 grep -v '^ *+' conftest.er1 >conftest.err
6068 rm -f conftest.er1
6069 cat conftest.err >&5
6070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); } && {
6072 test -z "$ac_c_werror_flag" ||
6073 test ! -s conftest.err
6074 } && test -s conftest.$ac_objext; then
6075 ac_cv_sys_file_offset_bits=64; break
6076 else
6077 $as_echo "$as_me: failed program was:" >&5
6078 sed 's/^/| /' conftest.$ac_ext >&5
6079
6080
6081 fi
6082
6083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6084 ac_cv_sys_file_offset_bits=unknown
6085 break
6086 done
6087 fi
6088 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6089 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6090 case $ac_cv_sys_file_offset_bits in #(
6091 no | unknown) ;;
6092 *)
6093 cat >>confdefs.h <<_ACEOF
6094 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6095 _ACEOF
6096 ;;
6097 esac
6098 rm -rf conftest*
6099 if test $ac_cv_sys_file_offset_bits = unknown; then
6100 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6101 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6102 if test "${ac_cv_sys_large_files+set}" = set; then
6103 $as_echo_n "(cached) " >&6
6104 else
6105 while :; do
6106 cat >conftest.$ac_ext <<_ACEOF
6107 /* confdefs.h. */
6108 _ACEOF
6109 cat confdefs.h >>conftest.$ac_ext
6110 cat >>conftest.$ac_ext <<_ACEOF
6111 /* end confdefs.h. */
6112 #include <sys/types.h>
6113 /* Check that off_t can represent 2**63 - 1 correctly.
6114 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6115 since some C++ compilers masquerading as C compilers
6116 incorrectly reject 9223372036854775807. */
6117 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6118 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6119 && LARGE_OFF_T % 2147483647 == 1)
6120 ? 1 : -1];
6121 int
6122 main ()
6123 {
6124
6125 ;
6126 return 0;
6127 }
6128 _ACEOF
6129 rm -f conftest.$ac_objext
6130 if { (ac_try="$ac_compile"
6131 case "(($ac_try" in
6132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6133 *) ac_try_echo=$ac_try;;
6134 esac
6135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6136 $as_echo "$ac_try_echo") >&5
6137 (eval "$ac_compile") 2>conftest.er1
6138 ac_status=$?
6139 grep -v '^ *+' conftest.er1 >conftest.err
6140 rm -f conftest.er1
6141 cat conftest.err >&5
6142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); } && {
6144 test -z "$ac_c_werror_flag" ||
6145 test ! -s conftest.err
6146 } && test -s conftest.$ac_objext; then
6147 ac_cv_sys_large_files=no; break
6148 else
6149 $as_echo "$as_me: failed program was:" >&5
6150 sed 's/^/| /' conftest.$ac_ext >&5
6151
6152
6153 fi
6154
6155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6156 cat >conftest.$ac_ext <<_ACEOF
6157 /* confdefs.h. */
6158 _ACEOF
6159 cat confdefs.h >>conftest.$ac_ext
6160 cat >>conftest.$ac_ext <<_ACEOF
6161 /* end confdefs.h. */
6162 #define _LARGE_FILES 1
6163 #include <sys/types.h>
6164 /* Check that off_t can represent 2**63 - 1 correctly.
6165 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6166 since some C++ compilers masquerading as C compilers
6167 incorrectly reject 9223372036854775807. */
6168 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6169 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6170 && LARGE_OFF_T % 2147483647 == 1)
6171 ? 1 : -1];
6172 int
6173 main ()
6174 {
6175
6176 ;
6177 return 0;
6178 }
6179 _ACEOF
6180 rm -f conftest.$ac_objext
6181 if { (ac_try="$ac_compile"
6182 case "(($ac_try" in
6183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6184 *) ac_try_echo=$ac_try;;
6185 esac
6186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6187 $as_echo "$ac_try_echo") >&5
6188 (eval "$ac_compile") 2>conftest.er1
6189 ac_status=$?
6190 grep -v '^ *+' conftest.er1 >conftest.err
6191 rm -f conftest.er1
6192 cat conftest.err >&5
6193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); } && {
6195 test -z "$ac_c_werror_flag" ||
6196 test ! -s conftest.err
6197 } && test -s conftest.$ac_objext; then
6198 ac_cv_sys_large_files=1; break
6199 else
6200 $as_echo "$as_me: failed program was:" >&5
6201 sed 's/^/| /' conftest.$ac_ext >&5
6202
6203
6204 fi
6205
6206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6207 ac_cv_sys_large_files=unknown
6208 break
6209 done
6210 fi
6211 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6212 $as_echo "$ac_cv_sys_large_files" >&6; }
6213 case $ac_cv_sys_large_files in #(
6214 no | unknown) ;;
6215 *)
6216 cat >>confdefs.h <<_ACEOF
6217 #define _LARGE_FILES $ac_cv_sys_large_files
6218 _ACEOF
6219 ;;
6220 esac
6221 rm -rf conftest*
6222 fi
6223 fi
6224
6225
6226
6227 ### The standard library on x86-64 and s390x GNU/Linux distributions can
6228 ### be located in either /usr/lib64 or /usr/lib.
6229 ### In some rare cases, /usr/lib64 exists but does not contain the
6230 ### relevant files (bug#1287). Hence test for crtn.o.
6231 case "${canonical}" in
6232 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6233 if test -e /usr/lib64/crtn.o; then
6234
6235 cat >>confdefs.h <<\_ACEOF
6236 #define HAVE_LIB64_DIR 1
6237 _ACEOF
6238
6239 fi
6240 esac
6241
6242
6243
6244
6245 if test "${with_sound}" != "no"; then
6246 # Sound support for GNU/Linux and the free BSDs.
6247
6248
6249
6250 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6251 do
6252 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6254 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6255 $as_echo_n "checking for $ac_header... " >&6; }
6256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6257 $as_echo_n "(cached) " >&6
6258 fi
6259 ac_res=`eval 'as_val=${'$as_ac_Header'}
6260 $as_echo "$as_val"'`
6261 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6262 $as_echo "$ac_res" >&6; }
6263 else
6264 # Is the header compilable?
6265 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6266 $as_echo_n "checking $ac_header usability... " >&6; }
6267 cat >conftest.$ac_ext <<_ACEOF
6268 /* confdefs.h. */
6269 _ACEOF
6270 cat confdefs.h >>conftest.$ac_ext
6271 cat >>conftest.$ac_ext <<_ACEOF
6272 /* end confdefs.h. */
6273 $ac_includes_default
6274 #include <$ac_header>
6275 _ACEOF
6276 rm -f conftest.$ac_objext
6277 if { (ac_try="$ac_compile"
6278 case "(($ac_try" in
6279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6280 *) ac_try_echo=$ac_try;;
6281 esac
6282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6283 $as_echo "$ac_try_echo") >&5
6284 (eval "$ac_compile") 2>conftest.er1
6285 ac_status=$?
6286 grep -v '^ *+' conftest.er1 >conftest.err
6287 rm -f conftest.er1
6288 cat conftest.err >&5
6289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); } && {
6291 test -z "$ac_c_werror_flag" ||
6292 test ! -s conftest.err
6293 } && test -s conftest.$ac_objext; then
6294 ac_header_compiler=yes
6295 else
6296 $as_echo "$as_me: failed program was:" >&5
6297 sed 's/^/| /' conftest.$ac_ext >&5
6298
6299 ac_header_compiler=no
6300 fi
6301
6302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6303 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6304 $as_echo "$ac_header_compiler" >&6; }
6305
6306 # Is the header present?
6307 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6308 $as_echo_n "checking $ac_header presence... " >&6; }
6309 cat >conftest.$ac_ext <<_ACEOF
6310 /* confdefs.h. */
6311 _ACEOF
6312 cat confdefs.h >>conftest.$ac_ext
6313 cat >>conftest.$ac_ext <<_ACEOF
6314 /* end confdefs.h. */
6315 #include <$ac_header>
6316 _ACEOF
6317 if { (ac_try="$ac_cpp conftest.$ac_ext"
6318 case "(($ac_try" in
6319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6320 *) ac_try_echo=$ac_try;;
6321 esac
6322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6323 $as_echo "$ac_try_echo") >&5
6324 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6325 ac_status=$?
6326 grep -v '^ *+' conftest.er1 >conftest.err
6327 rm -f conftest.er1
6328 cat conftest.err >&5
6329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); } >/dev/null && {
6331 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6332 test ! -s conftest.err
6333 }; then
6334 ac_header_preproc=yes
6335 else
6336 $as_echo "$as_me: failed program was:" >&5
6337 sed 's/^/| /' conftest.$ac_ext >&5
6338
6339 ac_header_preproc=no
6340 fi
6341
6342 rm -f conftest.err conftest.$ac_ext
6343 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6344 $as_echo "$ac_header_preproc" >&6; }
6345
6346 # So? What about this header?
6347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6348 yes:no: )
6349 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6350 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6351 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6352 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6353 ac_header_preproc=yes
6354 ;;
6355 no:yes:* )
6356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6357 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6359 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6361 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6363 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6364 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6365 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6366 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6367 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6368
6369 ;;
6370 esac
6371 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6372 $as_echo_n "checking for $ac_header... " >&6; }
6373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6374 $as_echo_n "(cached) " >&6
6375 else
6376 eval "$as_ac_Header=\$ac_header_preproc"
6377 fi
6378 ac_res=`eval 'as_val=${'$as_ac_Header'}
6379 $as_echo "$as_val"'`
6380 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6381 $as_echo "$ac_res" >&6; }
6382
6383 fi
6384 if test `eval 'as_val=${'$as_ac_Header'}
6385 $as_echo "$as_val"'` = yes; then
6386 cat >>confdefs.h <<_ACEOF
6387 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6388 _ACEOF
6389
6390 fi
6391
6392 done
6393
6394 # Emulation library used on NetBSD.
6395 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6396 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6397 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6398 $as_echo_n "(cached) " >&6
6399 else
6400 ac_check_lib_save_LIBS=$LIBS
6401 LIBS="-lossaudio $LIBS"
6402 cat >conftest.$ac_ext <<_ACEOF
6403 /* confdefs.h. */
6404 _ACEOF
6405 cat confdefs.h >>conftest.$ac_ext
6406 cat >>conftest.$ac_ext <<_ACEOF
6407 /* end confdefs.h. */
6408
6409 /* Override any GCC internal prototype to avoid an error.
6410 Use char because int might match the return type of a GCC
6411 builtin and then its argument prototype would still apply. */
6412 #ifdef __cplusplus
6413 extern "C"
6414 #endif
6415 char _oss_ioctl ();
6416 int
6417 main ()
6418 {
6419 return _oss_ioctl ();
6420 ;
6421 return 0;
6422 }
6423 _ACEOF
6424 rm -f conftest.$ac_objext conftest$ac_exeext
6425 if { (ac_try="$ac_link"
6426 case "(($ac_try" in
6427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6428 *) ac_try_echo=$ac_try;;
6429 esac
6430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6431 $as_echo "$ac_try_echo") >&5
6432 (eval "$ac_link") 2>conftest.er1
6433 ac_status=$?
6434 grep -v '^ *+' conftest.er1 >conftest.err
6435 rm -f conftest.er1
6436 cat conftest.err >&5
6437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); } && {
6439 test -z "$ac_c_werror_flag" ||
6440 test ! -s conftest.err
6441 } && test -s conftest$ac_exeext && {
6442 test "$cross_compiling" = yes ||
6443 $as_test_x conftest$ac_exeext
6444 }; then
6445 ac_cv_lib_ossaudio__oss_ioctl=yes
6446 else
6447 $as_echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.$ac_ext >&5
6449
6450 ac_cv_lib_ossaudio__oss_ioctl=no
6451 fi
6452
6453 rm -rf conftest.dSYM
6454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6455 conftest$ac_exeext conftest.$ac_ext
6456 LIBS=$ac_check_lib_save_LIBS
6457 fi
6458 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6459 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6460 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6461 LIBSOUND=-lossaudio
6462 else
6463 LIBSOUND=
6464 fi
6465
6466
6467
6468 ALSA_REQUIRED=1.0.0
6469 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6470
6471 succeeded=no
6472
6473 # Extract the first word of "pkg-config", so it can be a program name with args.
6474 set dummy pkg-config; ac_word=$2
6475 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6476 $as_echo_n "checking for $ac_word... " >&6; }
6477 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6478 $as_echo_n "(cached) " >&6
6479 else
6480 case $PKG_CONFIG in
6481 [\\/]* | ?:[\\/]*)
6482 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6483 ;;
6484 *)
6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486 for as_dir in $PATH
6487 do
6488 IFS=$as_save_IFS
6489 test -z "$as_dir" && as_dir=.
6490 for ac_exec_ext in '' $ac_executable_extensions; do
6491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6492 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6493 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6494 break 2
6495 fi
6496 done
6497 done
6498 IFS=$as_save_IFS
6499
6500 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6501 ;;
6502 esac
6503 fi
6504 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6505 if test -n "$PKG_CONFIG"; then
6506 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6507 $as_echo "$PKG_CONFIG" >&6; }
6508 else
6509 { $as_echo "$as_me:$LINENO: result: no" >&5
6510 $as_echo "no" >&6; }
6511 fi
6512
6513
6514
6515 if test "$PKG_CONFIG" = "no" ; then
6516 HAVE_ALSA=no
6517 else
6518 PKG_CONFIG_MIN_VERSION=0.9.0
6519 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6520 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6521 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6522
6523 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6524 { $as_echo "$as_me:$LINENO: result: yes" >&5
6525 $as_echo "yes" >&6; }
6526 succeeded=yes
6527
6528 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6529 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6530 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6531 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6532 $as_echo "$ALSA_CFLAGS" >&6; }
6533
6534 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6535 $as_echo_n "checking ALSA_LIBS... " >&6; }
6536 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6537 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6538 $as_echo "$ALSA_LIBS" >&6; }
6539 else
6540 { $as_echo "$as_me:$LINENO: result: no" >&5
6541 $as_echo "no" >&6; }
6542 ALSA_CFLAGS=""
6543 ALSA_LIBS=""
6544 ## If we have a custom action on failure, don't print errors, but
6545 ## do set a variable so people can do so.
6546 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6547
6548 fi
6549
6550
6551
6552 else
6553 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6554 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6555 fi
6556 fi
6557
6558 if test $succeeded = yes; then
6559 HAVE_ALSA=yes
6560 else
6561 HAVE_ALSA=no
6562 fi
6563
6564 if test $HAVE_ALSA = yes; then
6565 SAVE_CFLAGS="$CFLAGS"
6566 SAVE_LDFLAGS="$LDFLAGS"
6567 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6568 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6569 cat >conftest.$ac_ext <<_ACEOF
6570 /* confdefs.h. */
6571 _ACEOF
6572 cat confdefs.h >>conftest.$ac_ext
6573 cat >>conftest.$ac_ext <<_ACEOF
6574 /* end confdefs.h. */
6575 #include <asoundlib.h>
6576 int
6577 main ()
6578 {
6579 snd_lib_error_set_handler (0);
6580 ;
6581 return 0;
6582 }
6583 _ACEOF
6584 rm -f conftest.$ac_objext
6585 if { (ac_try="$ac_compile"
6586 case "(($ac_try" in
6587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6588 *) ac_try_echo=$ac_try;;
6589 esac
6590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6591 $as_echo "$ac_try_echo") >&5
6592 (eval "$ac_compile") 2>conftest.er1
6593 ac_status=$?
6594 grep -v '^ *+' conftest.er1 >conftest.err
6595 rm -f conftest.er1
6596 cat conftest.err >&5
6597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); } && {
6599 test -z "$ac_c_werror_flag" ||
6600 test ! -s conftest.err
6601 } && test -s conftest.$ac_objext; then
6602 emacs_alsa_normal=yes
6603 else
6604 $as_echo "$as_me: failed program was:" >&5
6605 sed 's/^/| /' conftest.$ac_ext >&5
6606
6607 emacs_alsa_normal=no
6608 fi
6609
6610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6611 if test "$emacs_alsa_normal" != yes; then
6612 cat >conftest.$ac_ext <<_ACEOF
6613 /* confdefs.h. */
6614 _ACEOF
6615 cat confdefs.h >>conftest.$ac_ext
6616 cat >>conftest.$ac_ext <<_ACEOF
6617 /* end confdefs.h. */
6618 #include <alsa/asoundlib.h>
6619 int
6620 main ()
6621 {
6622 snd_lib_error_set_handler (0);
6623 ;
6624 return 0;
6625 }
6626 _ACEOF
6627 rm -f conftest.$ac_objext
6628 if { (ac_try="$ac_compile"
6629 case "(($ac_try" in
6630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6631 *) ac_try_echo=$ac_try;;
6632 esac
6633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6634 $as_echo "$ac_try_echo") >&5
6635 (eval "$ac_compile") 2>conftest.er1
6636 ac_status=$?
6637 grep -v '^ *+' conftest.er1 >conftest.err
6638 rm -f conftest.er1
6639 cat conftest.err >&5
6640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); } && {
6642 test -z "$ac_c_werror_flag" ||
6643 test ! -s conftest.err
6644 } && test -s conftest.$ac_objext; then
6645 emacs_alsa_subdir=yes
6646 else
6647 $as_echo "$as_me: failed program was:" >&5
6648 sed 's/^/| /' conftest.$ac_ext >&5
6649
6650 emacs_alsa_subdir=no
6651 fi
6652
6653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6654 if test "$emacs_alsa_subdir" != yes; then
6655 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6656 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6657 { (exit 1); exit 1; }; }
6658 fi
6659 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6660 fi
6661
6662 CFLAGS="$SAVE_CFLAGS"
6663 LDFLAGS="$SAVE_LDFLAGS"
6664 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6665 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6666
6667 cat >>confdefs.h <<\_ACEOF
6668 #define HAVE_ALSA 1
6669 _ACEOF
6670
6671 fi
6672
6673 fi
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6701 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6702 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6703 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6704 sys/utsname.h pwd.h utmp.h
6705 do
6706 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6708 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6709 $as_echo_n "checking for $ac_header... " >&6; }
6710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6711 $as_echo_n "(cached) " >&6
6712 fi
6713 ac_res=`eval 'as_val=${'$as_ac_Header'}
6714 $as_echo "$as_val"'`
6715 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6716 $as_echo "$ac_res" >&6; }
6717 else
6718 # Is the header compilable?
6719 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6720 $as_echo_n "checking $ac_header usability... " >&6; }
6721 cat >conftest.$ac_ext <<_ACEOF
6722 /* confdefs.h. */
6723 _ACEOF
6724 cat confdefs.h >>conftest.$ac_ext
6725 cat >>conftest.$ac_ext <<_ACEOF
6726 /* end confdefs.h. */
6727 $ac_includes_default
6728 #include <$ac_header>
6729 _ACEOF
6730 rm -f conftest.$ac_objext
6731 if { (ac_try="$ac_compile"
6732 case "(($ac_try" in
6733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734 *) ac_try_echo=$ac_try;;
6735 esac
6736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6737 $as_echo "$ac_try_echo") >&5
6738 (eval "$ac_compile") 2>conftest.er1
6739 ac_status=$?
6740 grep -v '^ *+' conftest.er1 >conftest.err
6741 rm -f conftest.er1
6742 cat conftest.err >&5
6743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); } && {
6745 test -z "$ac_c_werror_flag" ||
6746 test ! -s conftest.err
6747 } && test -s conftest.$ac_objext; then
6748 ac_header_compiler=yes
6749 else
6750 $as_echo "$as_me: failed program was:" >&5
6751 sed 's/^/| /' conftest.$ac_ext >&5
6752
6753 ac_header_compiler=no
6754 fi
6755
6756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6757 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6758 $as_echo "$ac_header_compiler" >&6; }
6759
6760 # Is the header present?
6761 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6762 $as_echo_n "checking $ac_header presence... " >&6; }
6763 cat >conftest.$ac_ext <<_ACEOF
6764 /* confdefs.h. */
6765 _ACEOF
6766 cat confdefs.h >>conftest.$ac_ext
6767 cat >>conftest.$ac_ext <<_ACEOF
6768 /* end confdefs.h. */
6769 #include <$ac_header>
6770 _ACEOF
6771 if { (ac_try="$ac_cpp conftest.$ac_ext"
6772 case "(($ac_try" in
6773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6774 *) ac_try_echo=$ac_try;;
6775 esac
6776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6777 $as_echo "$ac_try_echo") >&5
6778 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6779 ac_status=$?
6780 grep -v '^ *+' conftest.er1 >conftest.err
6781 rm -f conftest.er1
6782 cat conftest.err >&5
6783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); } >/dev/null && {
6785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6786 test ! -s conftest.err
6787 }; then
6788 ac_header_preproc=yes
6789 else
6790 $as_echo "$as_me: failed program was:" >&5
6791 sed 's/^/| /' conftest.$ac_ext >&5
6792
6793 ac_header_preproc=no
6794 fi
6795
6796 rm -f conftest.err conftest.$ac_ext
6797 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6798 $as_echo "$ac_header_preproc" >&6; }
6799
6800 # So? What about this header?
6801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6802 yes:no: )
6803 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6804 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6805 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6806 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6807 ac_header_preproc=yes
6808 ;;
6809 no:yes:* )
6810 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6811 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6812 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6813 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6814 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6815 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6816 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6817 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6818 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6819 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6820 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6821 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6822
6823 ;;
6824 esac
6825 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6826 $as_echo_n "checking for $ac_header... " >&6; }
6827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6828 $as_echo_n "(cached) " >&6
6829 else
6830 eval "$as_ac_Header=\$ac_header_preproc"
6831 fi
6832 ac_res=`eval 'as_val=${'$as_ac_Header'}
6833 $as_echo "$as_val"'`
6834 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6835 $as_echo "$ac_res" >&6; }
6836
6837 fi
6838 if test `eval 'as_val=${'$as_ac_Header'}
6839 $as_echo "$as_val"'` = yes; then
6840 cat >>confdefs.h <<_ACEOF
6841 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6842 _ACEOF
6843
6844 fi
6845
6846 done
6847
6848
6849 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6850 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6851 cat >conftest.$ac_ext <<_ACEOF
6852 /* confdefs.h. */
6853 _ACEOF
6854 cat confdefs.h >>conftest.$ac_ext
6855 cat >>conftest.$ac_ext <<_ACEOF
6856 /* end confdefs.h. */
6857 #include <sys/personality.h>
6858 int
6859 main ()
6860 {
6861 personality (PER_LINUX32)
6862 ;
6863 return 0;
6864 }
6865 _ACEOF
6866 rm -f conftest.$ac_objext
6867 if { (ac_try="$ac_compile"
6868 case "(($ac_try" in
6869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6870 *) ac_try_echo=$ac_try;;
6871 esac
6872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6873 $as_echo "$ac_try_echo") >&5
6874 (eval "$ac_compile") 2>conftest.er1
6875 ac_status=$?
6876 grep -v '^ *+' conftest.er1 >conftest.err
6877 rm -f conftest.er1
6878 cat conftest.err >&5
6879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } && {
6881 test -z "$ac_c_werror_flag" ||
6882 test ! -s conftest.err
6883 } && test -s conftest.$ac_objext; then
6884 emacs_cv_personality_linux32=yes
6885 else
6886 $as_echo "$as_me: failed program was:" >&5
6887 sed 's/^/| /' conftest.$ac_ext >&5
6888
6889 emacs_cv_personality_linux32=no
6890 fi
6891
6892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6893 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6894 $as_echo "$emacs_cv_personality_linux32" >&6; }
6895
6896 if test $emacs_cv_personality_linux32 = yes; then
6897
6898 cat >>confdefs.h <<\_ACEOF
6899 #define HAVE_PERSONALITY_LINUX32 1
6900 _ACEOF
6901
6902 fi
6903
6904
6905 for ac_header in term.h
6906 do
6907 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6908 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6909 $as_echo_n "checking for $ac_header... " >&6; }
6910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6911 $as_echo_n "(cached) " >&6
6912 else
6913 cat >conftest.$ac_ext <<_ACEOF
6914 /* confdefs.h. */
6915 _ACEOF
6916 cat confdefs.h >>conftest.$ac_ext
6917 cat >>conftest.$ac_ext <<_ACEOF
6918 /* end confdefs.h. */
6919 #include <$ac_header>
6920 _ACEOF
6921 if { (ac_try="$ac_cpp conftest.$ac_ext"
6922 case "(($ac_try" in
6923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6924 *) ac_try_echo=$ac_try;;
6925 esac
6926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6927 $as_echo "$ac_try_echo") >&5
6928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6929 ac_status=$?
6930 grep -v '^ *+' conftest.er1 >conftest.err
6931 rm -f conftest.er1
6932 cat conftest.err >&5
6933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); } >/dev/null && {
6935 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6936 test ! -s conftest.err
6937 }; then
6938 eval "$as_ac_Header=yes"
6939 else
6940 $as_echo "$as_me: failed program was:" >&5
6941 sed 's/^/| /' conftest.$ac_ext >&5
6942
6943 eval "$as_ac_Header=no"
6944 fi
6945
6946 rm -f conftest.err conftest.$ac_ext
6947 fi
6948 ac_res=`eval 'as_val=${'$as_ac_Header'}
6949 $as_echo "$as_val"'`
6950 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6951 $as_echo "$ac_res" >&6; }
6952 if test `eval 'as_val=${'$as_ac_Header'}
6953 $as_echo "$as_val"'` = yes; then
6954 cat >>confdefs.h <<_ACEOF
6955 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6956 _ACEOF
6957
6958 fi
6959
6960 done
6961
6962 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6963 $as_echo_n "checking for ANSI C header files... " >&6; }
6964 if test "${ac_cv_header_stdc+set}" = set; then
6965 $as_echo_n "(cached) " >&6
6966 else
6967 cat >conftest.$ac_ext <<_ACEOF
6968 /* confdefs.h. */
6969 _ACEOF
6970 cat confdefs.h >>conftest.$ac_ext
6971 cat >>conftest.$ac_ext <<_ACEOF
6972 /* end confdefs.h. */
6973 #include <stdlib.h>
6974 #include <stdarg.h>
6975 #include <string.h>
6976 #include <float.h>
6977
6978 int
6979 main ()
6980 {
6981
6982 ;
6983 return 0;
6984 }
6985 _ACEOF
6986 rm -f conftest.$ac_objext
6987 if { (ac_try="$ac_compile"
6988 case "(($ac_try" in
6989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6990 *) ac_try_echo=$ac_try;;
6991 esac
6992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6993 $as_echo "$ac_try_echo") >&5
6994 (eval "$ac_compile") 2>conftest.er1
6995 ac_status=$?
6996 grep -v '^ *+' conftest.er1 >conftest.err
6997 rm -f conftest.er1
6998 cat conftest.err >&5
6999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); } && {
7001 test -z "$ac_c_werror_flag" ||
7002 test ! -s conftest.err
7003 } && test -s conftest.$ac_objext; then
7004 ac_cv_header_stdc=yes
7005 else
7006 $as_echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.$ac_ext >&5
7008
7009 ac_cv_header_stdc=no
7010 fi
7011
7012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7013
7014 if test $ac_cv_header_stdc = yes; then
7015 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7016 cat >conftest.$ac_ext <<_ACEOF
7017 /* confdefs.h. */
7018 _ACEOF
7019 cat confdefs.h >>conftest.$ac_ext
7020 cat >>conftest.$ac_ext <<_ACEOF
7021 /* end confdefs.h. */
7022 #include <string.h>
7023
7024 _ACEOF
7025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7026 $EGREP "memchr" >/dev/null 2>&1; then
7027 :
7028 else
7029 ac_cv_header_stdc=no
7030 fi
7031 rm -f conftest*
7032
7033 fi
7034
7035 if test $ac_cv_header_stdc = yes; then
7036 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7037 cat >conftest.$ac_ext <<_ACEOF
7038 /* confdefs.h. */
7039 _ACEOF
7040 cat confdefs.h >>conftest.$ac_ext
7041 cat >>conftest.$ac_ext <<_ACEOF
7042 /* end confdefs.h. */
7043 #include <stdlib.h>
7044
7045 _ACEOF
7046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7047 $EGREP "free" >/dev/null 2>&1; then
7048 :
7049 else
7050 ac_cv_header_stdc=no
7051 fi
7052 rm -f conftest*
7053
7054 fi
7055
7056 if test $ac_cv_header_stdc = yes; then
7057 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7058 if test "$cross_compiling" = yes; then
7059 :
7060 else
7061 cat >conftest.$ac_ext <<_ACEOF
7062 /* confdefs.h. */
7063 _ACEOF
7064 cat confdefs.h >>conftest.$ac_ext
7065 cat >>conftest.$ac_ext <<_ACEOF
7066 /* end confdefs.h. */
7067 #include <ctype.h>
7068 #include <stdlib.h>
7069 #if ((' ' & 0x0FF) == 0x020)
7070 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7071 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7072 #else
7073 # define ISLOWER(c) \
7074 (('a' <= (c) && (c) <= 'i') \
7075 || ('j' <= (c) && (c) <= 'r') \
7076 || ('s' <= (c) && (c) <= 'z'))
7077 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7078 #endif
7079
7080 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7081 int
7082 main ()
7083 {
7084 int i;
7085 for (i = 0; i < 256; i++)
7086 if (XOR (islower (i), ISLOWER (i))
7087 || toupper (i) != TOUPPER (i))
7088 return 2;
7089 return 0;
7090 }
7091 _ACEOF
7092 rm -f conftest$ac_exeext
7093 if { (ac_try="$ac_link"
7094 case "(($ac_try" in
7095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7096 *) ac_try_echo=$ac_try;;
7097 esac
7098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7099 $as_echo "$ac_try_echo") >&5
7100 (eval "$ac_link") 2>&5
7101 ac_status=$?
7102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7104 { (case "(($ac_try" in
7105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7106 *) ac_try_echo=$ac_try;;
7107 esac
7108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7109 $as_echo "$ac_try_echo") >&5
7110 (eval "$ac_try") 2>&5
7111 ac_status=$?
7112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); }; }; then
7114 :
7115 else
7116 $as_echo "$as_me: program exited with status $ac_status" >&5
7117 $as_echo "$as_me: failed program was:" >&5
7118 sed 's/^/| /' conftest.$ac_ext >&5
7119
7120 ( exit $ac_status )
7121 ac_cv_header_stdc=no
7122 fi
7123 rm -rf conftest.dSYM
7124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7125 fi
7126
7127
7128 fi
7129 fi
7130 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7131 $as_echo "$ac_cv_header_stdc" >&6; }
7132 if test $ac_cv_header_stdc = yes; then
7133
7134 cat >>confdefs.h <<\_ACEOF
7135 #define STDC_HEADERS 1
7136 _ACEOF
7137
7138 fi
7139
7140 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7141 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7142 if test "${ac_cv_header_time+set}" = set; then
7143 $as_echo_n "(cached) " >&6
7144 else
7145 cat >conftest.$ac_ext <<_ACEOF
7146 /* confdefs.h. */
7147 _ACEOF
7148 cat confdefs.h >>conftest.$ac_ext
7149 cat >>conftest.$ac_ext <<_ACEOF
7150 /* end confdefs.h. */
7151 #include <sys/types.h>
7152 #include <sys/time.h>
7153 #include <time.h>
7154
7155 int
7156 main ()
7157 {
7158 if ((struct tm *) 0)
7159 return 0;
7160 ;
7161 return 0;
7162 }
7163 _ACEOF
7164 rm -f conftest.$ac_objext
7165 if { (ac_try="$ac_compile"
7166 case "(($ac_try" in
7167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7168 *) ac_try_echo=$ac_try;;
7169 esac
7170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7171 $as_echo "$ac_try_echo") >&5
7172 (eval "$ac_compile") 2>conftest.er1
7173 ac_status=$?
7174 grep -v '^ *+' conftest.er1 >conftest.err
7175 rm -f conftest.er1
7176 cat conftest.err >&5
7177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); } && {
7179 test -z "$ac_c_werror_flag" ||
7180 test ! -s conftest.err
7181 } && test -s conftest.$ac_objext; then
7182 ac_cv_header_time=yes
7183 else
7184 $as_echo "$as_me: failed program was:" >&5
7185 sed 's/^/| /' conftest.$ac_ext >&5
7186
7187 ac_cv_header_time=no
7188 fi
7189
7190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7191 fi
7192 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7193 $as_echo "$ac_cv_header_time" >&6; }
7194 if test $ac_cv_header_time = yes; then
7195
7196 cat >>confdefs.h <<\_ACEOF
7197 #define TIME_WITH_SYS_TIME 1
7198 _ACEOF
7199
7200 fi
7201
7202 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7203 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7204 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7205 $as_echo_n "(cached) " >&6
7206 else
7207 cat >conftest.$ac_ext <<_ACEOF
7208 /* confdefs.h. */
7209 _ACEOF
7210 cat confdefs.h >>conftest.$ac_ext
7211 cat >>conftest.$ac_ext <<_ACEOF
7212 /* end confdefs.h. */
7213 $ac_includes_default
7214 int
7215 main ()
7216 {
7217 #ifndef sys_siglist
7218 (void) sys_siglist;
7219 #endif
7220
7221 ;
7222 return 0;
7223 }
7224 _ACEOF
7225 rm -f conftest.$ac_objext
7226 if { (ac_try="$ac_compile"
7227 case "(($ac_try" in
7228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7229 *) ac_try_echo=$ac_try;;
7230 esac
7231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7232 $as_echo "$ac_try_echo") >&5
7233 (eval "$ac_compile") 2>conftest.er1
7234 ac_status=$?
7235 grep -v '^ *+' conftest.er1 >conftest.err
7236 rm -f conftest.er1
7237 cat conftest.err >&5
7238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); } && {
7240 test -z "$ac_c_werror_flag" ||
7241 test ! -s conftest.err
7242 } && test -s conftest.$ac_objext; then
7243 ac_cv_have_decl_sys_siglist=yes
7244 else
7245 $as_echo "$as_me: failed program was:" >&5
7246 sed 's/^/| /' conftest.$ac_ext >&5
7247
7248 ac_cv_have_decl_sys_siglist=no
7249 fi
7250
7251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7252 fi
7253 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7254 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7255 if test $ac_cv_have_decl_sys_siglist = yes; then
7256
7257 cat >>confdefs.h <<_ACEOF
7258 #define HAVE_DECL_SYS_SIGLIST 1
7259 _ACEOF
7260
7261
7262 else
7263 cat >>confdefs.h <<_ACEOF
7264 #define HAVE_DECL_SYS_SIGLIST 0
7265 _ACEOF
7266
7267
7268 fi
7269
7270
7271 if test $ac_cv_have_decl_sys_siglist != yes; then
7272 # For Tru64, at least:
7273 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7274 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7275 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7276 $as_echo_n "(cached) " >&6
7277 else
7278 cat >conftest.$ac_ext <<_ACEOF
7279 /* confdefs.h. */
7280 _ACEOF
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h. */
7284 $ac_includes_default
7285 int
7286 main ()
7287 {
7288 #ifndef __sys_siglist
7289 (void) __sys_siglist;
7290 #endif
7291
7292 ;
7293 return 0;
7294 }
7295 _ACEOF
7296 rm -f conftest.$ac_objext
7297 if { (ac_try="$ac_compile"
7298 case "(($ac_try" in
7299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7300 *) ac_try_echo=$ac_try;;
7301 esac
7302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7303 $as_echo "$ac_try_echo") >&5
7304 (eval "$ac_compile") 2>conftest.er1
7305 ac_status=$?
7306 grep -v '^ *+' conftest.er1 >conftest.err
7307 rm -f conftest.er1
7308 cat conftest.err >&5
7309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); } && {
7311 test -z "$ac_c_werror_flag" ||
7312 test ! -s conftest.err
7313 } && test -s conftest.$ac_objext; then
7314 ac_cv_have_decl___sys_siglist=yes
7315 else
7316 $as_echo "$as_me: failed program was:" >&5
7317 sed 's/^/| /' conftest.$ac_ext >&5
7318
7319 ac_cv_have_decl___sys_siglist=no
7320 fi
7321
7322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7323 fi
7324 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7325 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7326 if test $ac_cv_have_decl___sys_siglist = yes; then
7327
7328 cat >>confdefs.h <<_ACEOF
7329 #define HAVE_DECL___SYS_SIGLIST 1
7330 _ACEOF
7331
7332
7333 else
7334 cat >>confdefs.h <<_ACEOF
7335 #define HAVE_DECL___SYS_SIGLIST 0
7336 _ACEOF
7337
7338
7339 fi
7340
7341
7342 if test $ac_cv_have_decl___sys_siglist = yes; then
7343
7344 cat >>confdefs.h <<\_ACEOF
7345 #define sys_siglist __sys_siglist
7346 _ACEOF
7347
7348 fi
7349 fi
7350 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7351 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7352 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7353 $as_echo_n "(cached) " >&6
7354 else
7355 cat >conftest.$ac_ext <<_ACEOF
7356 /* confdefs.h. */
7357 _ACEOF
7358 cat confdefs.h >>conftest.$ac_ext
7359 cat >>conftest.$ac_ext <<_ACEOF
7360 /* end confdefs.h. */
7361 #include <sys/types.h>
7362 #include <sys/wait.h>
7363 #ifndef WEXITSTATUS
7364 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7365 #endif
7366 #ifndef WIFEXITED
7367 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7368 #endif
7369
7370 int
7371 main ()
7372 {
7373 int s;
7374 wait (&s);
7375 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7376 ;
7377 return 0;
7378 }
7379 _ACEOF
7380 rm -f conftest.$ac_objext
7381 if { (ac_try="$ac_compile"
7382 case "(($ac_try" in
7383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7384 *) ac_try_echo=$ac_try;;
7385 esac
7386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7387 $as_echo "$ac_try_echo") >&5
7388 (eval "$ac_compile") 2>conftest.er1
7389 ac_status=$?
7390 grep -v '^ *+' conftest.er1 >conftest.err
7391 rm -f conftest.er1
7392 cat conftest.err >&5
7393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); } && {
7395 test -z "$ac_c_werror_flag" ||
7396 test ! -s conftest.err
7397 } && test -s conftest.$ac_objext; then
7398 ac_cv_header_sys_wait_h=yes
7399 else
7400 $as_echo "$as_me: failed program was:" >&5
7401 sed 's/^/| /' conftest.$ac_ext >&5
7402
7403 ac_cv_header_sys_wait_h=no
7404 fi
7405
7406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7407 fi
7408 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7409 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7410 if test $ac_cv_header_sys_wait_h = yes; then
7411
7412 cat >>confdefs.h <<\_ACEOF
7413 #define HAVE_SYS_WAIT_H 1
7414 _ACEOF
7415
7416 fi
7417
7418
7419 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7420 $as_echo_n "checking for struct utimbuf... " >&6; }
7421 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7422 $as_echo_n "(cached) " >&6
7423 else
7424 cat >conftest.$ac_ext <<_ACEOF
7425 /* confdefs.h. */
7426 _ACEOF
7427 cat confdefs.h >>conftest.$ac_ext
7428 cat >>conftest.$ac_ext <<_ACEOF
7429 /* end confdefs.h. */
7430 #ifdef TIME_WITH_SYS_TIME
7431 #include <sys/time.h>
7432 #include <time.h>
7433 #else
7434 #ifdef HAVE_SYS_TIME_H
7435 #include <sys/time.h>
7436 #else
7437 #include <time.h>
7438 #endif
7439 #endif
7440 #ifdef HAVE_UTIME_H
7441 #include <utime.h>
7442 #endif
7443 int
7444 main ()
7445 {
7446 static struct utimbuf x; x.actime = x.modtime;
7447 ;
7448 return 0;
7449 }
7450 _ACEOF
7451 rm -f conftest.$ac_objext
7452 if { (ac_try="$ac_compile"
7453 case "(($ac_try" in
7454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7455 *) ac_try_echo=$ac_try;;
7456 esac
7457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7458 $as_echo "$ac_try_echo") >&5
7459 (eval "$ac_compile") 2>conftest.er1
7460 ac_status=$?
7461 grep -v '^ *+' conftest.er1 >conftest.err
7462 rm -f conftest.er1
7463 cat conftest.err >&5
7464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); } && {
7466 test -z "$ac_c_werror_flag" ||
7467 test ! -s conftest.err
7468 } && test -s conftest.$ac_objext; then
7469 emacs_cv_struct_utimbuf=yes
7470 else
7471 $as_echo "$as_me: failed program was:" >&5
7472 sed 's/^/| /' conftest.$ac_ext >&5
7473
7474 emacs_cv_struct_utimbuf=no
7475 fi
7476
7477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7478 fi
7479 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7480 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7481 if test $emacs_cv_struct_utimbuf = yes; then
7482
7483 cat >>confdefs.h <<\_ACEOF
7484 #define HAVE_STRUCT_UTIMBUF 1
7485 _ACEOF
7486
7487 fi
7488
7489 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7490 $as_echo_n "checking return type of signal handlers... " >&6; }
7491 if test "${ac_cv_type_signal+set}" = set; then
7492 $as_echo_n "(cached) " >&6
7493 else
7494 cat >conftest.$ac_ext <<_ACEOF
7495 /* confdefs.h. */
7496 _ACEOF
7497 cat confdefs.h >>conftest.$ac_ext
7498 cat >>conftest.$ac_ext <<_ACEOF
7499 /* end confdefs.h. */
7500 #include <sys/types.h>
7501 #include <signal.h>
7502
7503 int
7504 main ()
7505 {
7506 return *(signal (0, 0)) (0) == 1;
7507 ;
7508 return 0;
7509 }
7510 _ACEOF
7511 rm -f conftest.$ac_objext
7512 if { (ac_try="$ac_compile"
7513 case "(($ac_try" in
7514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7515 *) ac_try_echo=$ac_try;;
7516 esac
7517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7518 $as_echo "$ac_try_echo") >&5
7519 (eval "$ac_compile") 2>conftest.er1
7520 ac_status=$?
7521 grep -v '^ *+' conftest.er1 >conftest.err
7522 rm -f conftest.er1
7523 cat conftest.err >&5
7524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); } && {
7526 test -z "$ac_c_werror_flag" ||
7527 test ! -s conftest.err
7528 } && test -s conftest.$ac_objext; then
7529 ac_cv_type_signal=int
7530 else
7531 $as_echo "$as_me: failed program was:" >&5
7532 sed 's/^/| /' conftest.$ac_ext >&5
7533
7534 ac_cv_type_signal=void
7535 fi
7536
7537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7538 fi
7539 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7540 $as_echo "$ac_cv_type_signal" >&6; }
7541
7542 cat >>confdefs.h <<_ACEOF
7543 #define RETSIGTYPE $ac_cv_type_signal
7544 _ACEOF
7545
7546
7547
7548 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7549 $as_echo_n "checking for speed_t... " >&6; }
7550 if test "${emacs_cv_speed_t+set}" = set; then
7551 $as_echo_n "(cached) " >&6
7552 else
7553 cat >conftest.$ac_ext <<_ACEOF
7554 /* confdefs.h. */
7555 _ACEOF
7556 cat confdefs.h >>conftest.$ac_ext
7557 cat >>conftest.$ac_ext <<_ACEOF
7558 /* end confdefs.h. */
7559 #include <termios.h>
7560 int
7561 main ()
7562 {
7563 speed_t x = 1;
7564 ;
7565 return 0;
7566 }
7567 _ACEOF
7568 rm -f conftest.$ac_objext
7569 if { (ac_try="$ac_compile"
7570 case "(($ac_try" in
7571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7572 *) ac_try_echo=$ac_try;;
7573 esac
7574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7575 $as_echo "$ac_try_echo") >&5
7576 (eval "$ac_compile") 2>conftest.er1
7577 ac_status=$?
7578 grep -v '^ *+' conftest.er1 >conftest.err
7579 rm -f conftest.er1
7580 cat conftest.err >&5
7581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); } && {
7583 test -z "$ac_c_werror_flag" ||
7584 test ! -s conftest.err
7585 } && test -s conftest.$ac_objext; then
7586 emacs_cv_speed_t=yes
7587 else
7588 $as_echo "$as_me: failed program was:" >&5
7589 sed 's/^/| /' conftest.$ac_ext >&5
7590
7591 emacs_cv_speed_t=no
7592 fi
7593
7594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7595 fi
7596 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7597 $as_echo "$emacs_cv_speed_t" >&6; }
7598 if test $emacs_cv_speed_t = yes; then
7599
7600 cat >>confdefs.h <<\_ACEOF
7601 #define HAVE_SPEED_T 1
7602 _ACEOF
7603
7604 fi
7605
7606 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7607 $as_echo_n "checking for struct timeval... " >&6; }
7608 if test "${emacs_cv_struct_timeval+set}" = set; then
7609 $as_echo_n "(cached) " >&6
7610 else
7611 cat >conftest.$ac_ext <<_ACEOF
7612 /* confdefs.h. */
7613 _ACEOF
7614 cat confdefs.h >>conftest.$ac_ext
7615 cat >>conftest.$ac_ext <<_ACEOF
7616 /* end confdefs.h. */
7617 #ifdef TIME_WITH_SYS_TIME
7618 #include <sys/time.h>
7619 #include <time.h>
7620 #else
7621 #ifdef HAVE_SYS_TIME_H
7622 #include <sys/time.h>
7623 #else
7624 #include <time.h>
7625 #endif
7626 #endif
7627 int
7628 main ()
7629 {
7630 static struct timeval x; x.tv_sec = x.tv_usec;
7631 ;
7632 return 0;
7633 }
7634 _ACEOF
7635 rm -f conftest.$ac_objext
7636 if { (ac_try="$ac_compile"
7637 case "(($ac_try" in
7638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7639 *) ac_try_echo=$ac_try;;
7640 esac
7641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7642 $as_echo "$ac_try_echo") >&5
7643 (eval "$ac_compile") 2>conftest.er1
7644 ac_status=$?
7645 grep -v '^ *+' conftest.er1 >conftest.err
7646 rm -f conftest.er1
7647 cat conftest.err >&5
7648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); } && {
7650 test -z "$ac_c_werror_flag" ||
7651 test ! -s conftest.err
7652 } && test -s conftest.$ac_objext; then
7653 emacs_cv_struct_timeval=yes
7654 else
7655 $as_echo "$as_me: failed program was:" >&5
7656 sed 's/^/| /' conftest.$ac_ext >&5
7657
7658 emacs_cv_struct_timeval=no
7659 fi
7660
7661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7662 fi
7663 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7664 $as_echo "$emacs_cv_struct_timeval" >&6; }
7665 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7666 if test $emacs_cv_struct_timeval = yes; then
7667
7668 cat >>confdefs.h <<\_ACEOF
7669 #define HAVE_TIMEVAL 1
7670 _ACEOF
7671
7672 fi
7673
7674 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7675 $as_echo_n "checking for struct exception... " >&6; }
7676 if test "${emacs_cv_struct_exception+set}" = set; then
7677 $as_echo_n "(cached) " >&6
7678 else
7679 cat >conftest.$ac_ext <<_ACEOF
7680 /* confdefs.h. */
7681 _ACEOF
7682 cat confdefs.h >>conftest.$ac_ext
7683 cat >>conftest.$ac_ext <<_ACEOF
7684 /* end confdefs.h. */
7685 #include <math.h>
7686 int
7687 main ()
7688 {
7689 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7690 ;
7691 return 0;
7692 }
7693 _ACEOF
7694 rm -f conftest.$ac_objext
7695 if { (ac_try="$ac_compile"
7696 case "(($ac_try" in
7697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7698 *) ac_try_echo=$ac_try;;
7699 esac
7700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7701 $as_echo "$ac_try_echo") >&5
7702 (eval "$ac_compile") 2>conftest.er1
7703 ac_status=$?
7704 grep -v '^ *+' conftest.er1 >conftest.err
7705 rm -f conftest.er1
7706 cat conftest.err >&5
7707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); } && {
7709 test -z "$ac_c_werror_flag" ||
7710 test ! -s conftest.err
7711 } && test -s conftest.$ac_objext; then
7712 emacs_cv_struct_exception=yes
7713 else
7714 $as_echo "$as_me: failed program was:" >&5
7715 sed 's/^/| /' conftest.$ac_ext >&5
7716
7717 emacs_cv_struct_exception=no
7718 fi
7719
7720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7721 fi
7722 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7723 $as_echo "$emacs_cv_struct_exception" >&6; }
7724 HAVE_EXCEPTION=$emacs_cv_struct_exception
7725 if test $emacs_cv_struct_exception != yes; then
7726
7727 cat >>confdefs.h <<\_ACEOF
7728 #define NO_MATHERR 1
7729 _ACEOF
7730
7731 fi
7732
7733
7734 for ac_header in sys/socket.h
7735 do
7736 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7738 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7739 $as_echo_n "checking for $ac_header... " >&6; }
7740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7741 $as_echo_n "(cached) " >&6
7742 fi
7743 ac_res=`eval 'as_val=${'$as_ac_Header'}
7744 $as_echo "$as_val"'`
7745 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7746 $as_echo "$ac_res" >&6; }
7747 else
7748 # Is the header compilable?
7749 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7750 $as_echo_n "checking $ac_header usability... " >&6; }
7751 cat >conftest.$ac_ext <<_ACEOF
7752 /* confdefs.h. */
7753 _ACEOF
7754 cat confdefs.h >>conftest.$ac_ext
7755 cat >>conftest.$ac_ext <<_ACEOF
7756 /* end confdefs.h. */
7757 $ac_includes_default
7758 #include <$ac_header>
7759 _ACEOF
7760 rm -f conftest.$ac_objext
7761 if { (ac_try="$ac_compile"
7762 case "(($ac_try" in
7763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7764 *) ac_try_echo=$ac_try;;
7765 esac
7766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7767 $as_echo "$ac_try_echo") >&5
7768 (eval "$ac_compile") 2>conftest.er1
7769 ac_status=$?
7770 grep -v '^ *+' conftest.er1 >conftest.err
7771 rm -f conftest.er1
7772 cat conftest.err >&5
7773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); } && {
7775 test -z "$ac_c_werror_flag" ||
7776 test ! -s conftest.err
7777 } && test -s conftest.$ac_objext; then
7778 ac_header_compiler=yes
7779 else
7780 $as_echo "$as_me: failed program was:" >&5
7781 sed 's/^/| /' conftest.$ac_ext >&5
7782
7783 ac_header_compiler=no
7784 fi
7785
7786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7787 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7788 $as_echo "$ac_header_compiler" >&6; }
7789
7790 # Is the header present?
7791 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7792 $as_echo_n "checking $ac_header presence... " >&6; }
7793 cat >conftest.$ac_ext <<_ACEOF
7794 /* confdefs.h. */
7795 _ACEOF
7796 cat confdefs.h >>conftest.$ac_ext
7797 cat >>conftest.$ac_ext <<_ACEOF
7798 /* end confdefs.h. */
7799 #include <$ac_header>
7800 _ACEOF
7801 if { (ac_try="$ac_cpp conftest.$ac_ext"
7802 case "(($ac_try" in
7803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7804 *) ac_try_echo=$ac_try;;
7805 esac
7806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7807 $as_echo "$ac_try_echo") >&5
7808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7809 ac_status=$?
7810 grep -v '^ *+' conftest.er1 >conftest.err
7811 rm -f conftest.er1
7812 cat conftest.err >&5
7813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); } >/dev/null && {
7815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7816 test ! -s conftest.err
7817 }; then
7818 ac_header_preproc=yes
7819 else
7820 $as_echo "$as_me: failed program was:" >&5
7821 sed 's/^/| /' conftest.$ac_ext >&5
7822
7823 ac_header_preproc=no
7824 fi
7825
7826 rm -f conftest.err conftest.$ac_ext
7827 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7828 $as_echo "$ac_header_preproc" >&6; }
7829
7830 # So? What about this header?
7831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7832 yes:no: )
7833 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7834 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7835 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7836 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7837 ac_header_preproc=yes
7838 ;;
7839 no:yes:* )
7840 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7841 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7842 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7843 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7844 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7845 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7847 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7849 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7851 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7852
7853 ;;
7854 esac
7855 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7856 $as_echo_n "checking for $ac_header... " >&6; }
7857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7858 $as_echo_n "(cached) " >&6
7859 else
7860 eval "$as_ac_Header=\$ac_header_preproc"
7861 fi
7862 ac_res=`eval 'as_val=${'$as_ac_Header'}
7863 $as_echo "$as_val"'`
7864 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7865 $as_echo "$ac_res" >&6; }
7866
7867 fi
7868 if test `eval 'as_val=${'$as_ac_Header'}
7869 $as_echo "$as_val"'` = yes; then
7870 cat >>confdefs.h <<_ACEOF
7871 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7872 _ACEOF
7873
7874 fi
7875
7876 done
7877
7878
7879 for ac_header in net/if.h
7880 do
7881 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7882 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7883 $as_echo_n "checking for $ac_header... " >&6; }
7884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7885 $as_echo_n "(cached) " >&6
7886 else
7887 cat >conftest.$ac_ext <<_ACEOF
7888 /* confdefs.h. */
7889 _ACEOF
7890 cat confdefs.h >>conftest.$ac_ext
7891 cat >>conftest.$ac_ext <<_ACEOF
7892 /* end confdefs.h. */
7893 $ac_includes_default
7894 #if HAVE_SYS_SOCKET_H
7895 #include <sys/socket.h>
7896 #endif
7897
7898 #include <$ac_header>
7899 _ACEOF
7900 rm -f conftest.$ac_objext
7901 if { (ac_try="$ac_compile"
7902 case "(($ac_try" in
7903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7904 *) ac_try_echo=$ac_try;;
7905 esac
7906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7907 $as_echo "$ac_try_echo") >&5
7908 (eval "$ac_compile") 2>conftest.er1
7909 ac_status=$?
7910 grep -v '^ *+' conftest.er1 >conftest.err
7911 rm -f conftest.er1
7912 cat conftest.err >&5
7913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); } && {
7915 test -z "$ac_c_werror_flag" ||
7916 test ! -s conftest.err
7917 } && test -s conftest.$ac_objext; then
7918 eval "$as_ac_Header=yes"
7919 else
7920 $as_echo "$as_me: failed program was:" >&5
7921 sed 's/^/| /' conftest.$ac_ext >&5
7922
7923 eval "$as_ac_Header=no"
7924 fi
7925
7926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7927 fi
7928 ac_res=`eval 'as_val=${'$as_ac_Header'}
7929 $as_echo "$as_val"'`
7930 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7931 $as_echo "$ac_res" >&6; }
7932 if test `eval 'as_val=${'$as_ac_Header'}
7933 $as_echo "$as_val"'` = yes; then
7934 cat >>confdefs.h <<_ACEOF
7935 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7936 _ACEOF
7937
7938 fi
7939
7940 done
7941
7942
7943 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7944 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7945 if test "${ac_cv_struct_tm+set}" = set; then
7946 $as_echo_n "(cached) " >&6
7947 else
7948 cat >conftest.$ac_ext <<_ACEOF
7949 /* confdefs.h. */
7950 _ACEOF
7951 cat confdefs.h >>conftest.$ac_ext
7952 cat >>conftest.$ac_ext <<_ACEOF
7953 /* end confdefs.h. */
7954 #include <sys/types.h>
7955 #include <time.h>
7956
7957 int
7958 main ()
7959 {
7960 struct tm tm;
7961 int *p = &tm.tm_sec;
7962 return !p;
7963 ;
7964 return 0;
7965 }
7966 _ACEOF
7967 rm -f conftest.$ac_objext
7968 if { (ac_try="$ac_compile"
7969 case "(($ac_try" in
7970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971 *) ac_try_echo=$ac_try;;
7972 esac
7973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7974 $as_echo "$ac_try_echo") >&5
7975 (eval "$ac_compile") 2>conftest.er1
7976 ac_status=$?
7977 grep -v '^ *+' conftest.er1 >conftest.err
7978 rm -f conftest.er1
7979 cat conftest.err >&5
7980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); } && {
7982 test -z "$ac_c_werror_flag" ||
7983 test ! -s conftest.err
7984 } && test -s conftest.$ac_objext; then
7985 ac_cv_struct_tm=time.h
7986 else
7987 $as_echo "$as_me: failed program was:" >&5
7988 sed 's/^/| /' conftest.$ac_ext >&5
7989
7990 ac_cv_struct_tm=sys/time.h
7991 fi
7992
7993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7994 fi
7995 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7996 $as_echo "$ac_cv_struct_tm" >&6; }
7997 if test $ac_cv_struct_tm = sys/time.h; then
7998
7999 cat >>confdefs.h <<\_ACEOF
8000 #define TM_IN_SYS_TIME 1
8001 _ACEOF
8002
8003 fi
8004
8005 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8006 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8007 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8008 $as_echo_n "(cached) " >&6
8009 else
8010 cat >conftest.$ac_ext <<_ACEOF
8011 /* confdefs.h. */
8012 _ACEOF
8013 cat confdefs.h >>conftest.$ac_ext
8014 cat >>conftest.$ac_ext <<_ACEOF
8015 /* end confdefs.h. */
8016 #include <sys/types.h>
8017 #include <$ac_cv_struct_tm>
8018
8019
8020 int
8021 main ()
8022 {
8023 static struct tm ac_aggr;
8024 if (ac_aggr.tm_zone)
8025 return 0;
8026 ;
8027 return 0;
8028 }
8029 _ACEOF
8030 rm -f conftest.$ac_objext
8031 if { (ac_try="$ac_compile"
8032 case "(($ac_try" in
8033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8034 *) ac_try_echo=$ac_try;;
8035 esac
8036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8037 $as_echo "$ac_try_echo") >&5
8038 (eval "$ac_compile") 2>conftest.er1
8039 ac_status=$?
8040 grep -v '^ *+' conftest.er1 >conftest.err
8041 rm -f conftest.er1
8042 cat conftest.err >&5
8043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); } && {
8045 test -z "$ac_c_werror_flag" ||
8046 test ! -s conftest.err
8047 } && test -s conftest.$ac_objext; then
8048 ac_cv_member_struct_tm_tm_zone=yes
8049 else
8050 $as_echo "$as_me: failed program was:" >&5
8051 sed 's/^/| /' conftest.$ac_ext >&5
8052
8053 cat >conftest.$ac_ext <<_ACEOF
8054 /* confdefs.h. */
8055 _ACEOF
8056 cat confdefs.h >>conftest.$ac_ext
8057 cat >>conftest.$ac_ext <<_ACEOF
8058 /* end confdefs.h. */
8059 #include <sys/types.h>
8060 #include <$ac_cv_struct_tm>
8061
8062
8063 int
8064 main ()
8065 {
8066 static struct tm ac_aggr;
8067 if (sizeof ac_aggr.tm_zone)
8068 return 0;
8069 ;
8070 return 0;
8071 }
8072 _ACEOF
8073 rm -f conftest.$ac_objext
8074 if { (ac_try="$ac_compile"
8075 case "(($ac_try" in
8076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8077 *) ac_try_echo=$ac_try;;
8078 esac
8079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8080 $as_echo "$ac_try_echo") >&5
8081 (eval "$ac_compile") 2>conftest.er1
8082 ac_status=$?
8083 grep -v '^ *+' conftest.er1 >conftest.err
8084 rm -f conftest.er1
8085 cat conftest.err >&5
8086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); } && {
8088 test -z "$ac_c_werror_flag" ||
8089 test ! -s conftest.err
8090 } && test -s conftest.$ac_objext; then
8091 ac_cv_member_struct_tm_tm_zone=yes
8092 else
8093 $as_echo "$as_me: failed program was:" >&5
8094 sed 's/^/| /' conftest.$ac_ext >&5
8095
8096 ac_cv_member_struct_tm_tm_zone=no
8097 fi
8098
8099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8100 fi
8101
8102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8103 fi
8104 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8105 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8106 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8107
8108 cat >>confdefs.h <<_ACEOF
8109 #define HAVE_STRUCT_TM_TM_ZONE 1
8110 _ACEOF
8111
8112
8113 fi
8114
8115 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8116
8117 cat >>confdefs.h <<\_ACEOF
8118 #define HAVE_TM_ZONE 1
8119 _ACEOF
8120
8121 else
8122 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8123 $as_echo_n "checking whether tzname is declared... " >&6; }
8124 if test "${ac_cv_have_decl_tzname+set}" = set; then
8125 $as_echo_n "(cached) " >&6
8126 else
8127 cat >conftest.$ac_ext <<_ACEOF
8128 /* confdefs.h. */
8129 _ACEOF
8130 cat confdefs.h >>conftest.$ac_ext
8131 cat >>conftest.$ac_ext <<_ACEOF
8132 /* end confdefs.h. */
8133 #include <time.h>
8134
8135 int
8136 main ()
8137 {
8138 #ifndef tzname
8139 (void) tzname;
8140 #endif
8141
8142 ;
8143 return 0;
8144 }
8145 _ACEOF
8146 rm -f conftest.$ac_objext
8147 if { (ac_try="$ac_compile"
8148 case "(($ac_try" in
8149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8150 *) ac_try_echo=$ac_try;;
8151 esac
8152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8153 $as_echo "$ac_try_echo") >&5
8154 (eval "$ac_compile") 2>conftest.er1
8155 ac_status=$?
8156 grep -v '^ *+' conftest.er1 >conftest.err
8157 rm -f conftest.er1
8158 cat conftest.err >&5
8159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); } && {
8161 test -z "$ac_c_werror_flag" ||
8162 test ! -s conftest.err
8163 } && test -s conftest.$ac_objext; then
8164 ac_cv_have_decl_tzname=yes
8165 else
8166 $as_echo "$as_me: failed program was:" >&5
8167 sed 's/^/| /' conftest.$ac_ext >&5
8168
8169 ac_cv_have_decl_tzname=no
8170 fi
8171
8172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8173 fi
8174 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8175 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8176 if test $ac_cv_have_decl_tzname = yes; then
8177
8178 cat >>confdefs.h <<_ACEOF
8179 #define HAVE_DECL_TZNAME 1
8180 _ACEOF
8181
8182
8183 else
8184 cat >>confdefs.h <<_ACEOF
8185 #define HAVE_DECL_TZNAME 0
8186 _ACEOF
8187
8188
8189 fi
8190
8191
8192 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8193 $as_echo_n "checking for tzname... " >&6; }
8194 if test "${ac_cv_var_tzname+set}" = set; then
8195 $as_echo_n "(cached) " >&6
8196 else
8197 cat >conftest.$ac_ext <<_ACEOF
8198 /* confdefs.h. */
8199 _ACEOF
8200 cat confdefs.h >>conftest.$ac_ext
8201 cat >>conftest.$ac_ext <<_ACEOF
8202 /* end confdefs.h. */
8203 #include <time.h>
8204 #if !HAVE_DECL_TZNAME
8205 extern char *tzname[];
8206 #endif
8207
8208 int
8209 main ()
8210 {
8211 return tzname[0][0];
8212 ;
8213 return 0;
8214 }
8215 _ACEOF
8216 rm -f conftest.$ac_objext conftest$ac_exeext
8217 if { (ac_try="$ac_link"
8218 case "(($ac_try" in
8219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8220 *) ac_try_echo=$ac_try;;
8221 esac
8222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8223 $as_echo "$ac_try_echo") >&5
8224 (eval "$ac_link") 2>conftest.er1
8225 ac_status=$?
8226 grep -v '^ *+' conftest.er1 >conftest.err
8227 rm -f conftest.er1
8228 cat conftest.err >&5
8229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); } && {
8231 test -z "$ac_c_werror_flag" ||
8232 test ! -s conftest.err
8233 } && test -s conftest$ac_exeext && {
8234 test "$cross_compiling" = yes ||
8235 $as_test_x conftest$ac_exeext
8236 }; then
8237 ac_cv_var_tzname=yes
8238 else
8239 $as_echo "$as_me: failed program was:" >&5
8240 sed 's/^/| /' conftest.$ac_ext >&5
8241
8242 ac_cv_var_tzname=no
8243 fi
8244
8245 rm -rf conftest.dSYM
8246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8247 conftest$ac_exeext conftest.$ac_ext
8248 fi
8249 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8250 $as_echo "$ac_cv_var_tzname" >&6; }
8251 if test $ac_cv_var_tzname = yes; then
8252
8253 cat >>confdefs.h <<\_ACEOF
8254 #define HAVE_TZNAME 1
8255 _ACEOF
8256
8257 fi
8258 fi
8259
8260 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8261 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8262 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8263 $as_echo_n "(cached) " >&6
8264 else
8265 cat >conftest.$ac_ext <<_ACEOF
8266 /* confdefs.h. */
8267 _ACEOF
8268 cat confdefs.h >>conftest.$ac_ext
8269 cat >>conftest.$ac_ext <<_ACEOF
8270 /* end confdefs.h. */
8271 #include <time.h>
8272
8273 int
8274 main ()
8275 {
8276 static struct tm ac_aggr;
8277 if (ac_aggr.tm_gmtoff)
8278 return 0;
8279 ;
8280 return 0;
8281 }
8282 _ACEOF
8283 rm -f conftest.$ac_objext
8284 if { (ac_try="$ac_compile"
8285 case "(($ac_try" in
8286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8287 *) ac_try_echo=$ac_try;;
8288 esac
8289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8290 $as_echo "$ac_try_echo") >&5
8291 (eval "$ac_compile") 2>conftest.er1
8292 ac_status=$?
8293 grep -v '^ *+' conftest.er1 >conftest.err
8294 rm -f conftest.er1
8295 cat conftest.err >&5
8296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); } && {
8298 test -z "$ac_c_werror_flag" ||
8299 test ! -s conftest.err
8300 } && test -s conftest.$ac_objext; then
8301 ac_cv_member_struct_tm_tm_gmtoff=yes
8302 else
8303 $as_echo "$as_me: failed program was:" >&5
8304 sed 's/^/| /' conftest.$ac_ext >&5
8305
8306 cat >conftest.$ac_ext <<_ACEOF
8307 /* confdefs.h. */
8308 _ACEOF
8309 cat confdefs.h >>conftest.$ac_ext
8310 cat >>conftest.$ac_ext <<_ACEOF
8311 /* end confdefs.h. */
8312 #include <time.h>
8313
8314 int
8315 main ()
8316 {
8317 static struct tm ac_aggr;
8318 if (sizeof ac_aggr.tm_gmtoff)
8319 return 0;
8320 ;
8321 return 0;
8322 }
8323 _ACEOF
8324 rm -f conftest.$ac_objext
8325 if { (ac_try="$ac_compile"
8326 case "(($ac_try" in
8327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8328 *) ac_try_echo=$ac_try;;
8329 esac
8330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8331 $as_echo "$ac_try_echo") >&5
8332 (eval "$ac_compile") 2>conftest.er1
8333 ac_status=$?
8334 grep -v '^ *+' conftest.er1 >conftest.err
8335 rm -f conftest.er1
8336 cat conftest.err >&5
8337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); } && {
8339 test -z "$ac_c_werror_flag" ||
8340 test ! -s conftest.err
8341 } && test -s conftest.$ac_objext; then
8342 ac_cv_member_struct_tm_tm_gmtoff=yes
8343 else
8344 $as_echo "$as_me: failed program was:" >&5
8345 sed 's/^/| /' conftest.$ac_ext >&5
8346
8347 ac_cv_member_struct_tm_tm_gmtoff=no
8348 fi
8349
8350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8351 fi
8352
8353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8354 fi
8355 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8356 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8357 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8358
8359 cat >>confdefs.h <<\_ACEOF
8360 #define HAVE_TM_GMTOFF 1
8361 _ACEOF
8362
8363 fi
8364
8365 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8366 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8367 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8368 $as_echo_n "(cached) " >&6
8369 else
8370 cat >conftest.$ac_ext <<_ACEOF
8371 /* confdefs.h. */
8372 _ACEOF
8373 cat confdefs.h >>conftest.$ac_ext
8374 cat >>conftest.$ac_ext <<_ACEOF
8375 /* end confdefs.h. */
8376 $ac_includes_default
8377 #if HAVE_SYS_SOCKET_H
8378 #include <sys/socket.h>
8379 #endif
8380 #if HAVE_NET_IF_H
8381 #include <net/if.h>
8382 #endif
8383
8384 int
8385 main ()
8386 {
8387 static struct ifreq ac_aggr;
8388 if (ac_aggr.ifr_flags)
8389 return 0;
8390 ;
8391 return 0;
8392 }
8393 _ACEOF
8394 rm -f conftest.$ac_objext
8395 if { (ac_try="$ac_compile"
8396 case "(($ac_try" in
8397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8398 *) ac_try_echo=$ac_try;;
8399 esac
8400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8401 $as_echo "$ac_try_echo") >&5
8402 (eval "$ac_compile") 2>conftest.er1
8403 ac_status=$?
8404 grep -v '^ *+' conftest.er1 >conftest.err
8405 rm -f conftest.er1
8406 cat conftest.err >&5
8407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); } && {
8409 test -z "$ac_c_werror_flag" ||
8410 test ! -s conftest.err
8411 } && test -s conftest.$ac_objext; then
8412 ac_cv_member_struct_ifreq_ifr_flags=yes
8413 else
8414 $as_echo "$as_me: failed program was:" >&5
8415 sed 's/^/| /' conftest.$ac_ext >&5
8416
8417 cat >conftest.$ac_ext <<_ACEOF
8418 /* confdefs.h. */
8419 _ACEOF
8420 cat confdefs.h >>conftest.$ac_ext
8421 cat >>conftest.$ac_ext <<_ACEOF
8422 /* end confdefs.h. */
8423 $ac_includes_default
8424 #if HAVE_SYS_SOCKET_H
8425 #include <sys/socket.h>
8426 #endif
8427 #if HAVE_NET_IF_H
8428 #include <net/if.h>
8429 #endif
8430
8431 int
8432 main ()
8433 {
8434 static struct ifreq ac_aggr;
8435 if (sizeof ac_aggr.ifr_flags)
8436 return 0;
8437 ;
8438 return 0;
8439 }
8440 _ACEOF
8441 rm -f conftest.$ac_objext
8442 if { (ac_try="$ac_compile"
8443 case "(($ac_try" in
8444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8445 *) ac_try_echo=$ac_try;;
8446 esac
8447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8448 $as_echo "$ac_try_echo") >&5
8449 (eval "$ac_compile") 2>conftest.er1
8450 ac_status=$?
8451 grep -v '^ *+' conftest.er1 >conftest.err
8452 rm -f conftest.er1
8453 cat conftest.err >&5
8454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); } && {
8456 test -z "$ac_c_werror_flag" ||
8457 test ! -s conftest.err
8458 } && test -s conftest.$ac_objext; then
8459 ac_cv_member_struct_ifreq_ifr_flags=yes
8460 else
8461 $as_echo "$as_me: failed program was:" >&5
8462 sed 's/^/| /' conftest.$ac_ext >&5
8463
8464 ac_cv_member_struct_ifreq_ifr_flags=no
8465 fi
8466
8467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8468 fi
8469
8470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8471 fi
8472 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8473 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8474 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8475
8476 cat >>confdefs.h <<_ACEOF
8477 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8478 _ACEOF
8479
8480
8481 fi
8482 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8483 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8484 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8485 $as_echo_n "(cached) " >&6
8486 else
8487 cat >conftest.$ac_ext <<_ACEOF
8488 /* confdefs.h. */
8489 _ACEOF
8490 cat confdefs.h >>conftest.$ac_ext
8491 cat >>conftest.$ac_ext <<_ACEOF
8492 /* end confdefs.h. */
8493 $ac_includes_default
8494 #if HAVE_SYS_SOCKET_H
8495 #include <sys/socket.h>
8496 #endif
8497 #if HAVE_NET_IF_H
8498 #include <net/if.h>
8499 #endif
8500
8501 int
8502 main ()
8503 {
8504 static struct ifreq ac_aggr;
8505 if (ac_aggr.ifr_hwaddr)
8506 return 0;
8507 ;
8508 return 0;
8509 }
8510 _ACEOF
8511 rm -f conftest.$ac_objext
8512 if { (ac_try="$ac_compile"
8513 case "(($ac_try" in
8514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8515 *) ac_try_echo=$ac_try;;
8516 esac
8517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8518 $as_echo "$ac_try_echo") >&5
8519 (eval "$ac_compile") 2>conftest.er1
8520 ac_status=$?
8521 grep -v '^ *+' conftest.er1 >conftest.err
8522 rm -f conftest.er1
8523 cat conftest.err >&5
8524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); } && {
8526 test -z "$ac_c_werror_flag" ||
8527 test ! -s conftest.err
8528 } && test -s conftest.$ac_objext; then
8529 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8530 else
8531 $as_echo "$as_me: failed program was:" >&5
8532 sed 's/^/| /' conftest.$ac_ext >&5
8533
8534 cat >conftest.$ac_ext <<_ACEOF
8535 /* confdefs.h. */
8536 _ACEOF
8537 cat confdefs.h >>conftest.$ac_ext
8538 cat >>conftest.$ac_ext <<_ACEOF
8539 /* end confdefs.h. */
8540 $ac_includes_default
8541 #if HAVE_SYS_SOCKET_H
8542 #include <sys/socket.h>
8543 #endif
8544 #if HAVE_NET_IF_H
8545 #include <net/if.h>
8546 #endif
8547
8548 int
8549 main ()
8550 {
8551 static struct ifreq ac_aggr;
8552 if (sizeof ac_aggr.ifr_hwaddr)
8553 return 0;
8554 ;
8555 return 0;
8556 }
8557 _ACEOF
8558 rm -f conftest.$ac_objext
8559 if { (ac_try="$ac_compile"
8560 case "(($ac_try" in
8561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8562 *) ac_try_echo=$ac_try;;
8563 esac
8564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8565 $as_echo "$ac_try_echo") >&5
8566 (eval "$ac_compile") 2>conftest.er1
8567 ac_status=$?
8568 grep -v '^ *+' conftest.er1 >conftest.err
8569 rm -f conftest.er1
8570 cat conftest.err >&5
8571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); } && {
8573 test -z "$ac_c_werror_flag" ||
8574 test ! -s conftest.err
8575 } && test -s conftest.$ac_objext; then
8576 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8577 else
8578 $as_echo "$as_me: failed program was:" >&5
8579 sed 's/^/| /' conftest.$ac_ext >&5
8580
8581 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8582 fi
8583
8584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8585 fi
8586
8587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8588 fi
8589 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8590 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8591 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8592
8593 cat >>confdefs.h <<_ACEOF
8594 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8595 _ACEOF
8596
8597
8598 fi
8599 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8600 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8601 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8602 $as_echo_n "(cached) " >&6
8603 else
8604 cat >conftest.$ac_ext <<_ACEOF
8605 /* confdefs.h. */
8606 _ACEOF
8607 cat confdefs.h >>conftest.$ac_ext
8608 cat >>conftest.$ac_ext <<_ACEOF
8609 /* end confdefs.h. */
8610 $ac_includes_default
8611 #if HAVE_SYS_SOCKET_H
8612 #include <sys/socket.h>
8613 #endif
8614 #if HAVE_NET_IF_H
8615 #include <net/if.h>
8616 #endif
8617
8618 int
8619 main ()
8620 {
8621 static struct ifreq ac_aggr;
8622 if (ac_aggr.ifr_netmask)
8623 return 0;
8624 ;
8625 return 0;
8626 }
8627 _ACEOF
8628 rm -f conftest.$ac_objext
8629 if { (ac_try="$ac_compile"
8630 case "(($ac_try" in
8631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8632 *) ac_try_echo=$ac_try;;
8633 esac
8634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8635 $as_echo "$ac_try_echo") >&5
8636 (eval "$ac_compile") 2>conftest.er1
8637 ac_status=$?
8638 grep -v '^ *+' conftest.er1 >conftest.err
8639 rm -f conftest.er1
8640 cat conftest.err >&5
8641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); } && {
8643 test -z "$ac_c_werror_flag" ||
8644 test ! -s conftest.err
8645 } && test -s conftest.$ac_objext; then
8646 ac_cv_member_struct_ifreq_ifr_netmask=yes
8647 else
8648 $as_echo "$as_me: failed program was:" >&5
8649 sed 's/^/| /' conftest.$ac_ext >&5
8650
8651 cat >conftest.$ac_ext <<_ACEOF
8652 /* confdefs.h. */
8653 _ACEOF
8654 cat confdefs.h >>conftest.$ac_ext
8655 cat >>conftest.$ac_ext <<_ACEOF
8656 /* end confdefs.h. */
8657 $ac_includes_default
8658 #if HAVE_SYS_SOCKET_H
8659 #include <sys/socket.h>
8660 #endif
8661 #if HAVE_NET_IF_H
8662 #include <net/if.h>
8663 #endif
8664
8665 int
8666 main ()
8667 {
8668 static struct ifreq ac_aggr;
8669 if (sizeof ac_aggr.ifr_netmask)
8670 return 0;
8671 ;
8672 return 0;
8673 }
8674 _ACEOF
8675 rm -f conftest.$ac_objext
8676 if { (ac_try="$ac_compile"
8677 case "(($ac_try" in
8678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8679 *) ac_try_echo=$ac_try;;
8680 esac
8681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8682 $as_echo "$ac_try_echo") >&5
8683 (eval "$ac_compile") 2>conftest.er1
8684 ac_status=$?
8685 grep -v '^ *+' conftest.er1 >conftest.err
8686 rm -f conftest.er1
8687 cat conftest.err >&5
8688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); } && {
8690 test -z "$ac_c_werror_flag" ||
8691 test ! -s conftest.err
8692 } && test -s conftest.$ac_objext; then
8693 ac_cv_member_struct_ifreq_ifr_netmask=yes
8694 else
8695 $as_echo "$as_me: failed program was:" >&5
8696 sed 's/^/| /' conftest.$ac_ext >&5
8697
8698 ac_cv_member_struct_ifreq_ifr_netmask=no
8699 fi
8700
8701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8702 fi
8703
8704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8705 fi
8706 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8707 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8708 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8709
8710 cat >>confdefs.h <<_ACEOF
8711 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8712 _ACEOF
8713
8714
8715 fi
8716 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8717 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8718 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8719 $as_echo_n "(cached) " >&6
8720 else
8721 cat >conftest.$ac_ext <<_ACEOF
8722 /* confdefs.h. */
8723 _ACEOF
8724 cat confdefs.h >>conftest.$ac_ext
8725 cat >>conftest.$ac_ext <<_ACEOF
8726 /* end confdefs.h. */
8727 $ac_includes_default
8728 #if HAVE_SYS_SOCKET_H
8729 #include <sys/socket.h>
8730 #endif
8731 #if HAVE_NET_IF_H
8732 #include <net/if.h>
8733 #endif
8734
8735 int
8736 main ()
8737 {
8738 static struct ifreq ac_aggr;
8739 if (ac_aggr.ifr_broadaddr)
8740 return 0;
8741 ;
8742 return 0;
8743 }
8744 _ACEOF
8745 rm -f conftest.$ac_objext
8746 if { (ac_try="$ac_compile"
8747 case "(($ac_try" in
8748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8749 *) ac_try_echo=$ac_try;;
8750 esac
8751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8752 $as_echo "$ac_try_echo") >&5
8753 (eval "$ac_compile") 2>conftest.er1
8754 ac_status=$?
8755 grep -v '^ *+' conftest.er1 >conftest.err
8756 rm -f conftest.er1
8757 cat conftest.err >&5
8758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } && {
8760 test -z "$ac_c_werror_flag" ||
8761 test ! -s conftest.err
8762 } && test -s conftest.$ac_objext; then
8763 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8764 else
8765 $as_echo "$as_me: failed program was:" >&5
8766 sed 's/^/| /' conftest.$ac_ext >&5
8767
8768 cat >conftest.$ac_ext <<_ACEOF
8769 /* confdefs.h. */
8770 _ACEOF
8771 cat confdefs.h >>conftest.$ac_ext
8772 cat >>conftest.$ac_ext <<_ACEOF
8773 /* end confdefs.h. */
8774 $ac_includes_default
8775 #if HAVE_SYS_SOCKET_H
8776 #include <sys/socket.h>
8777 #endif
8778 #if HAVE_NET_IF_H
8779 #include <net/if.h>
8780 #endif
8781
8782 int
8783 main ()
8784 {
8785 static struct ifreq ac_aggr;
8786 if (sizeof ac_aggr.ifr_broadaddr)
8787 return 0;
8788 ;
8789 return 0;
8790 }
8791 _ACEOF
8792 rm -f conftest.$ac_objext
8793 if { (ac_try="$ac_compile"
8794 case "(($ac_try" in
8795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8796 *) ac_try_echo=$ac_try;;
8797 esac
8798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8799 $as_echo "$ac_try_echo") >&5
8800 (eval "$ac_compile") 2>conftest.er1
8801 ac_status=$?
8802 grep -v '^ *+' conftest.er1 >conftest.err
8803 rm -f conftest.er1
8804 cat conftest.err >&5
8805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); } && {
8807 test -z "$ac_c_werror_flag" ||
8808 test ! -s conftest.err
8809 } && test -s conftest.$ac_objext; then
8810 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8811 else
8812 $as_echo "$as_me: failed program was:" >&5
8813 sed 's/^/| /' conftest.$ac_ext >&5
8814
8815 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8816 fi
8817
8818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8819 fi
8820
8821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8822 fi
8823 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8824 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8825 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8826
8827 cat >>confdefs.h <<_ACEOF
8828 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8829 _ACEOF
8830
8831
8832 fi
8833 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8834 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8835 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8836 $as_echo_n "(cached) " >&6
8837 else
8838 cat >conftest.$ac_ext <<_ACEOF
8839 /* confdefs.h. */
8840 _ACEOF
8841 cat confdefs.h >>conftest.$ac_ext
8842 cat >>conftest.$ac_ext <<_ACEOF
8843 /* end confdefs.h. */
8844 $ac_includes_default
8845 #if HAVE_SYS_SOCKET_H
8846 #include <sys/socket.h>
8847 #endif
8848 #if HAVE_NET_IF_H
8849 #include <net/if.h>
8850 #endif
8851
8852 int
8853 main ()
8854 {
8855 static struct ifreq ac_aggr;
8856 if (ac_aggr.ifr_addr)
8857 return 0;
8858 ;
8859 return 0;
8860 }
8861 _ACEOF
8862 rm -f conftest.$ac_objext
8863 if { (ac_try="$ac_compile"
8864 case "(($ac_try" in
8865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8866 *) ac_try_echo=$ac_try;;
8867 esac
8868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8869 $as_echo "$ac_try_echo") >&5
8870 (eval "$ac_compile") 2>conftest.er1
8871 ac_status=$?
8872 grep -v '^ *+' conftest.er1 >conftest.err
8873 rm -f conftest.er1
8874 cat conftest.err >&5
8875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); } && {
8877 test -z "$ac_c_werror_flag" ||
8878 test ! -s conftest.err
8879 } && test -s conftest.$ac_objext; then
8880 ac_cv_member_struct_ifreq_ifr_addr=yes
8881 else
8882 $as_echo "$as_me: failed program was:" >&5
8883 sed 's/^/| /' conftest.$ac_ext >&5
8884
8885 cat >conftest.$ac_ext <<_ACEOF
8886 /* confdefs.h. */
8887 _ACEOF
8888 cat confdefs.h >>conftest.$ac_ext
8889 cat >>conftest.$ac_ext <<_ACEOF
8890 /* end confdefs.h. */
8891 $ac_includes_default
8892 #if HAVE_SYS_SOCKET_H
8893 #include <sys/socket.h>
8894 #endif
8895 #if HAVE_NET_IF_H
8896 #include <net/if.h>
8897 #endif
8898
8899 int
8900 main ()
8901 {
8902 static struct ifreq ac_aggr;
8903 if (sizeof ac_aggr.ifr_addr)
8904 return 0;
8905 ;
8906 return 0;
8907 }
8908 _ACEOF
8909 rm -f conftest.$ac_objext
8910 if { (ac_try="$ac_compile"
8911 case "(($ac_try" in
8912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8913 *) ac_try_echo=$ac_try;;
8914 esac
8915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8916 $as_echo "$ac_try_echo") >&5
8917 (eval "$ac_compile") 2>conftest.er1
8918 ac_status=$?
8919 grep -v '^ *+' conftest.er1 >conftest.err
8920 rm -f conftest.er1
8921 cat conftest.err >&5
8922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); } && {
8924 test -z "$ac_c_werror_flag" ||
8925 test ! -s conftest.err
8926 } && test -s conftest.$ac_objext; then
8927 ac_cv_member_struct_ifreq_ifr_addr=yes
8928 else
8929 $as_echo "$as_me: failed program was:" >&5
8930 sed 's/^/| /' conftest.$ac_ext >&5
8931
8932 ac_cv_member_struct_ifreq_ifr_addr=no
8933 fi
8934
8935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8936 fi
8937
8938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8939 fi
8940 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8941 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8942 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8943
8944 cat >>confdefs.h <<_ACEOF
8945 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8946 _ACEOF
8947
8948
8949 fi
8950
8951
8952
8953 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
8954 $as_echo_n "checking for function prototypes... " >&6; }
8955 if test "$ac_cv_prog_cc_c89" != no; then
8956 { $as_echo "$as_me:$LINENO: result: yes" >&5
8957 $as_echo "yes" >&6; }
8958
8959 cat >>confdefs.h <<\_ACEOF
8960 #define PROTOTYPES 1
8961 _ACEOF
8962
8963
8964 cat >>confdefs.h <<\_ACEOF
8965 #define __PROTOTYPES 1
8966 _ACEOF
8967
8968 else
8969 { $as_echo "$as_me:$LINENO: result: no" >&5
8970 $as_echo "no" >&6; }
8971 fi
8972
8973 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
8974 $as_echo_n "checking for working volatile... " >&6; }
8975 if test "${ac_cv_c_volatile+set}" = set; then
8976 $as_echo_n "(cached) " >&6
8977 else
8978 cat >conftest.$ac_ext <<_ACEOF
8979 /* confdefs.h. */
8980 _ACEOF
8981 cat confdefs.h >>conftest.$ac_ext
8982 cat >>conftest.$ac_ext <<_ACEOF
8983 /* end confdefs.h. */
8984
8985 int
8986 main ()
8987 {
8988
8989 volatile int x;
8990 int * volatile y = (int *) 0;
8991 return !x && !y;
8992 ;
8993 return 0;
8994 }
8995 _ACEOF
8996 rm -f conftest.$ac_objext
8997 if { (ac_try="$ac_compile"
8998 case "(($ac_try" in
8999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9000 *) ac_try_echo=$ac_try;;
9001 esac
9002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9003 $as_echo "$ac_try_echo") >&5
9004 (eval "$ac_compile") 2>conftest.er1
9005 ac_status=$?
9006 grep -v '^ *+' conftest.er1 >conftest.err
9007 rm -f conftest.er1
9008 cat conftest.err >&5
9009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); } && {
9011 test -z "$ac_c_werror_flag" ||
9012 test ! -s conftest.err
9013 } && test -s conftest.$ac_objext; then
9014 ac_cv_c_volatile=yes
9015 else
9016 $as_echo "$as_me: failed program was:" >&5
9017 sed 's/^/| /' conftest.$ac_ext >&5
9018
9019 ac_cv_c_volatile=no
9020 fi
9021
9022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9023 fi
9024 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9025 $as_echo "$ac_cv_c_volatile" >&6; }
9026 if test $ac_cv_c_volatile = no; then
9027
9028 cat >>confdefs.h <<\_ACEOF
9029 #define volatile /**/
9030 _ACEOF
9031
9032 fi
9033
9034 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9035 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9036 if test "${ac_cv_c_const+set}" = set; then
9037 $as_echo_n "(cached) " >&6
9038 else
9039 cat >conftest.$ac_ext <<_ACEOF
9040 /* confdefs.h. */
9041 _ACEOF
9042 cat confdefs.h >>conftest.$ac_ext
9043 cat >>conftest.$ac_ext <<_ACEOF
9044 /* end confdefs.h. */
9045
9046 int
9047 main ()
9048 {
9049 /* FIXME: Include the comments suggested by Paul. */
9050 #ifndef __cplusplus
9051 /* Ultrix mips cc rejects this. */
9052 typedef int charset[2];
9053 const charset cs;
9054 /* SunOS 4.1.1 cc rejects this. */
9055 char const *const *pcpcc;
9056 char **ppc;
9057 /* NEC SVR4.0.2 mips cc rejects this. */
9058 struct point {int x, y;};
9059 static struct point const zero = {0,0};
9060 /* AIX XL C 1.02.0.0 rejects this.
9061 It does not let you subtract one const X* pointer from another in
9062 an arm of an if-expression whose if-part is not a constant
9063 expression */
9064 const char *g = "string";
9065 pcpcc = &g + (g ? g-g : 0);
9066 /* HPUX 7.0 cc rejects these. */
9067 ++pcpcc;
9068 ppc = (char**) pcpcc;
9069 pcpcc = (char const *const *) ppc;
9070 { /* SCO 3.2v4 cc rejects this. */
9071 char *t;
9072 char const *s = 0 ? (char *) 0 : (char const *) 0;
9073
9074 *t++ = 0;
9075 if (s) return 0;
9076 }
9077 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9078 int x[] = {25, 17};
9079 const int *foo = &x[0];
9080 ++foo;
9081 }
9082 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9083 typedef const int *iptr;
9084 iptr p = 0;
9085 ++p;
9086 }
9087 { /* AIX XL C 1.02.0.0 rejects this saying
9088 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9089 struct s { int j; const int *ap[3]; };
9090 struct s *b; b->j = 5;
9091 }
9092 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9093 const int foo = 10;
9094 if (!foo) return 0;
9095 }
9096 return !cs[0] && !zero.x;
9097 #endif
9098
9099 ;
9100 return 0;
9101 }
9102 _ACEOF
9103 rm -f conftest.$ac_objext
9104 if { (ac_try="$ac_compile"
9105 case "(($ac_try" in
9106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9107 *) ac_try_echo=$ac_try;;
9108 esac
9109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9110 $as_echo "$ac_try_echo") >&5
9111 (eval "$ac_compile") 2>conftest.er1
9112 ac_status=$?
9113 grep -v '^ *+' conftest.er1 >conftest.err
9114 rm -f conftest.er1
9115 cat conftest.err >&5
9116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); } && {
9118 test -z "$ac_c_werror_flag" ||
9119 test ! -s conftest.err
9120 } && test -s conftest.$ac_objext; then
9121 ac_cv_c_const=yes
9122 else
9123 $as_echo "$as_me: failed program was:" >&5
9124 sed 's/^/| /' conftest.$ac_ext >&5
9125
9126 ac_cv_c_const=no
9127 fi
9128
9129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9130 fi
9131 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9132 $as_echo "$ac_cv_c_const" >&6; }
9133 if test $ac_cv_c_const = no; then
9134
9135 cat >>confdefs.h <<\_ACEOF
9136 #define const /**/
9137 _ACEOF
9138
9139 fi
9140
9141 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9142 $as_echo_n "checking for void * support... " >&6; }
9143 if test "${emacs_cv_void_star+set}" = set; then
9144 $as_echo_n "(cached) " >&6
9145 else
9146 cat >conftest.$ac_ext <<_ACEOF
9147 /* confdefs.h. */
9148 _ACEOF
9149 cat confdefs.h >>conftest.$ac_ext
9150 cat >>conftest.$ac_ext <<_ACEOF
9151 /* end confdefs.h. */
9152
9153 int
9154 main ()
9155 {
9156 void * foo;
9157 ;
9158 return 0;
9159 }
9160 _ACEOF
9161 rm -f conftest.$ac_objext
9162 if { (ac_try="$ac_compile"
9163 case "(($ac_try" in
9164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9165 *) ac_try_echo=$ac_try;;
9166 esac
9167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9168 $as_echo "$ac_try_echo") >&5
9169 (eval "$ac_compile") 2>conftest.er1
9170 ac_status=$?
9171 grep -v '^ *+' conftest.er1 >conftest.err
9172 rm -f conftest.er1
9173 cat conftest.err >&5
9174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); } && {
9176 test -z "$ac_c_werror_flag" ||
9177 test ! -s conftest.err
9178 } && test -s conftest.$ac_objext; then
9179 emacs_cv_void_star=yes
9180 else
9181 $as_echo "$as_me: failed program was:" >&5
9182 sed 's/^/| /' conftest.$ac_ext >&5
9183
9184 emacs_cv_void_star=no
9185 fi
9186
9187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9188 fi
9189 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9190 $as_echo "$emacs_cv_void_star" >&6; }
9191 if test $emacs_cv_void_star = yes; then
9192 cat >>confdefs.h <<\_ACEOF
9193 #define POINTER_TYPE void
9194 _ACEOF
9195
9196 else
9197 cat >>confdefs.h <<\_ACEOF
9198 #define POINTER_TYPE char
9199 _ACEOF
9200
9201 fi
9202
9203
9204
9205
9206
9207 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9208 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9209 set x ${MAKE-make}
9210 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9211 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9212 $as_echo_n "(cached) " >&6
9213 else
9214 cat >conftest.make <<\_ACEOF
9215 SHELL = /bin/sh
9216 all:
9217 @echo '@@@%%%=$(MAKE)=@@@%%%'
9218 _ACEOF
9219 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9220 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9221 *@@@%%%=?*=@@@%%%*)
9222 eval ac_cv_prog_make_${ac_make}_set=yes;;
9223 *)
9224 eval ac_cv_prog_make_${ac_make}_set=no;;
9225 esac
9226 rm -f conftest.make
9227 fi
9228 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9229 { $as_echo "$as_me:$LINENO: result: yes" >&5
9230 $as_echo "yes" >&6; }
9231 SET_MAKE=
9232 else
9233 { $as_echo "$as_me:$LINENO: result: no" >&5
9234 $as_echo "no" >&6; }
9235 SET_MAKE="MAKE=${MAKE-make}"
9236 fi
9237
9238
9239 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9240 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9241 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9242 HAVE_GNU_MAKE=no
9243 testval=`make --version 2>/dev/null | grep 'GNU Make'`
9244 if test "x$testval" != x; then
9245 HAVE_GNU_MAKE=yes
9246 else
9247 ac_enable_autodepend=no
9248 fi
9249 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9250 $as_echo "$HAVE_GNU_MAKE" >&6; }
9251 if test $HAVE_GNU_MAKE = yes; then
9252 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9253 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9254 SAVE_CFLAGS="$CFLAGS"
9255 CFLAGS="$CFLAGS -MMD -MF deps.d"
9256 cat >conftest.$ac_ext <<_ACEOF
9257 /* confdefs.h. */
9258 _ACEOF
9259 cat confdefs.h >>conftest.$ac_ext
9260 cat >>conftest.$ac_ext <<_ACEOF
9261 /* end confdefs.h. */
9262
9263 int
9264 main ()
9265 {
9266
9267 ;
9268 return 0;
9269 }
9270 _ACEOF
9271 rm -f conftest.$ac_objext
9272 if { (ac_try="$ac_compile"
9273 case "(($ac_try" in
9274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9275 *) ac_try_echo=$ac_try;;
9276 esac
9277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9278 $as_echo "$ac_try_echo") >&5
9279 (eval "$ac_compile") 2>conftest.er1
9280 ac_status=$?
9281 grep -v '^ *+' conftest.er1 >conftest.err
9282 rm -f conftest.er1
9283 cat conftest.err >&5
9284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); } && {
9286 test -z "$ac_c_werror_flag" ||
9287 test ! -s conftest.err
9288 } && test -s conftest.$ac_objext; then
9289 :
9290 else
9291 $as_echo "$as_me: failed program was:" >&5
9292 sed 's/^/| /' conftest.$ac_ext >&5
9293
9294 ac_enable_autodepend=no
9295 fi
9296
9297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9298 CFLAGS="$SAVE_CFLAGS"
9299 test -f deps.d || ac_enable_autodepend=no
9300 rm -rf deps.d
9301 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9302 $as_echo "$ac_enable_autodepend" >&6; }
9303 fi
9304 if test $ac_enable_autodepend = yes; then
9305
9306 cat >>confdefs.h <<\_ACEOF
9307 #define AUTO_DEPEND 1
9308 _ACEOF
9309
9310 fi
9311 fi
9312
9313 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9314 $as_echo_n "checking for long file names... " >&6; }
9315 if test "${ac_cv_sys_long_file_names+set}" = set; then
9316 $as_echo_n "(cached) " >&6
9317 else
9318 ac_cv_sys_long_file_names=yes
9319 # Test for long file names in all the places we know might matter:
9320 # . the current directory, where building will happen
9321 # $prefix/lib where we will be installing things
9322 # $exec_prefix/lib likewise
9323 # $TMPDIR if set, where it might want to write temporary files
9324 # /tmp where it might want to write temporary files
9325 # /var/tmp likewise
9326 # /usr/tmp likewise
9327 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9328 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9329 # in the usual case where exec_prefix is '${prefix}'.
9330 case $ac_dir in #(
9331 . | /* | ?:[\\/]*) ;; #(
9332 *) continue;;
9333 esac
9334 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9335 ac_xdir=$ac_dir/cf$$
9336 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9337 ac_tf1=$ac_xdir/conftest9012345
9338 ac_tf2=$ac_xdir/conftest9012346
9339 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9340 ac_cv_sys_long_file_names=no
9341 rm -f -r "$ac_xdir" 2>/dev/null
9342 test $ac_cv_sys_long_file_names = no && break
9343 done
9344 fi
9345 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9346 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9347 if test $ac_cv_sys_long_file_names = yes; then
9348
9349 cat >>confdefs.h <<\_ACEOF
9350 #define HAVE_LONG_FILE_NAMES 1
9351 _ACEOF
9352
9353 fi
9354
9355
9356 #### Choose a window system.
9357
9358 { $as_echo "$as_me:$LINENO: checking for X" >&5
9359 $as_echo_n "checking for X... " >&6; }
9360
9361
9362 # Check whether --with-x was given.
9363 if test "${with_x+set}" = set; then
9364 withval=$with_x;
9365 fi
9366
9367 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9368 if test "x$with_x" = xno; then
9369 # The user explicitly disabled X.
9370 have_x=disabled
9371 else
9372 case $x_includes,$x_libraries in #(
9373 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9374 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9375 { (exit 1); exit 1; }; };; #(
9376 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9377 $as_echo_n "(cached) " >&6
9378 else
9379 # One or both of the vars are not set, and there is no cached value.
9380 ac_x_includes=no ac_x_libraries=no
9381 rm -f -r conftest.dir
9382 if mkdir conftest.dir; then
9383 cd conftest.dir
9384 cat >Imakefile <<'_ACEOF'
9385 incroot:
9386 @echo incroot='${INCROOT}'
9387 usrlibdir:
9388 @echo usrlibdir='${USRLIBDIR}'
9389 libdir:
9390 @echo libdir='${LIBDIR}'
9391 _ACEOF
9392 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9393 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9394 for ac_var in incroot usrlibdir libdir; do
9395 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9396 done
9397 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9398 for ac_extension in a so sl dylib la dll; do
9399 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9400 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9401 ac_im_usrlibdir=$ac_im_libdir; break
9402 fi
9403 done
9404 # Screen out bogus values from the imake configuration. They are
9405 # bogus both because they are the default anyway, and because
9406 # using them would break gcc on systems where it needs fixed includes.
9407 case $ac_im_incroot in
9408 /usr/include) ac_x_includes= ;;
9409 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9410 esac
9411 case $ac_im_usrlibdir in
9412 /usr/lib | /lib) ;;
9413 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9414 esac
9415 fi
9416 cd ..
9417 rm -f -r conftest.dir
9418 fi
9419
9420 # Standard set of common directories for X headers.
9421 # Check X11 before X11Rn because it is often a symlink to the current release.
9422 ac_x_header_dirs='
9423 /usr/X11/include
9424 /usr/X11R6/include
9425 /usr/X11R5/include
9426 /usr/X11R4/include
9427
9428 /usr/include/X11
9429 /usr/include/X11R6
9430 /usr/include/X11R5
9431 /usr/include/X11R4
9432
9433 /usr/local/X11/include
9434 /usr/local/X11R6/include
9435 /usr/local/X11R5/include
9436 /usr/local/X11R4/include
9437
9438 /usr/local/include/X11
9439 /usr/local/include/X11R6
9440 /usr/local/include/X11R5
9441 /usr/local/include/X11R4
9442
9443 /usr/X386/include
9444 /usr/x386/include
9445 /usr/XFree86/include/X11
9446
9447 /usr/include
9448 /usr/local/include
9449 /usr/unsupported/include
9450 /usr/athena/include
9451 /usr/local/x11r5/include
9452 /usr/lpp/Xamples/include
9453
9454 /usr/openwin/include
9455 /usr/openwin/share/include'
9456
9457 if test "$ac_x_includes" = no; then
9458 # Guess where to find include files, by looking for Xlib.h.
9459 # First, try using that file with no special directory specified.
9460 cat >conftest.$ac_ext <<_ACEOF
9461 /* confdefs.h. */
9462 _ACEOF
9463 cat confdefs.h >>conftest.$ac_ext
9464 cat >>conftest.$ac_ext <<_ACEOF
9465 /* end confdefs.h. */
9466 #include <X11/Xlib.h>
9467 _ACEOF
9468 if { (ac_try="$ac_cpp conftest.$ac_ext"
9469 case "(($ac_try" in
9470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9471 *) ac_try_echo=$ac_try;;
9472 esac
9473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9474 $as_echo "$ac_try_echo") >&5
9475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9476 ac_status=$?
9477 grep -v '^ *+' conftest.er1 >conftest.err
9478 rm -f conftest.er1
9479 cat conftest.err >&5
9480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); } >/dev/null && {
9482 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9483 test ! -s conftest.err
9484 }; then
9485 # We can compile using X headers with no special include directory.
9486 ac_x_includes=
9487 else
9488 $as_echo "$as_me: failed program was:" >&5
9489 sed 's/^/| /' conftest.$ac_ext >&5
9490
9491 for ac_dir in $ac_x_header_dirs; do
9492 if test -r "$ac_dir/X11/Xlib.h"; then
9493 ac_x_includes=$ac_dir
9494 break
9495 fi
9496 done
9497 fi
9498
9499 rm -f conftest.err conftest.$ac_ext
9500 fi # $ac_x_includes = no
9501
9502 if test "$ac_x_libraries" = no; then
9503 # Check for the libraries.
9504 # See if we find them without any special options.
9505 # Don't add to $LIBS permanently.
9506 ac_save_LIBS=$LIBS
9507 LIBS="-lX11 $LIBS"
9508 cat >conftest.$ac_ext <<_ACEOF
9509 /* confdefs.h. */
9510 _ACEOF
9511 cat confdefs.h >>conftest.$ac_ext
9512 cat >>conftest.$ac_ext <<_ACEOF
9513 /* end confdefs.h. */
9514 #include <X11/Xlib.h>
9515 int
9516 main ()
9517 {
9518 XrmInitialize ()
9519 ;
9520 return 0;
9521 }
9522 _ACEOF
9523 rm -f conftest.$ac_objext conftest$ac_exeext
9524 if { (ac_try="$ac_link"
9525 case "(($ac_try" in
9526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9527 *) ac_try_echo=$ac_try;;
9528 esac
9529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9530 $as_echo "$ac_try_echo") >&5
9531 (eval "$ac_link") 2>conftest.er1
9532 ac_status=$?
9533 grep -v '^ *+' conftest.er1 >conftest.err
9534 rm -f conftest.er1
9535 cat conftest.err >&5
9536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); } && {
9538 test -z "$ac_c_werror_flag" ||
9539 test ! -s conftest.err
9540 } && test -s conftest$ac_exeext && {
9541 test "$cross_compiling" = yes ||
9542 $as_test_x conftest$ac_exeext
9543 }; then
9544 LIBS=$ac_save_LIBS
9545 # We can link X programs with no special library path.
9546 ac_x_libraries=
9547 else
9548 $as_echo "$as_me: failed program was:" >&5
9549 sed 's/^/| /' conftest.$ac_ext >&5
9550
9551 LIBS=$ac_save_LIBS
9552 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9553 do
9554 # Don't even attempt the hair of trying to link an X program!
9555 for ac_extension in a so sl dylib la dll; do
9556 if test -r "$ac_dir/libX11.$ac_extension"; then
9557 ac_x_libraries=$ac_dir
9558 break 2
9559 fi
9560 done
9561 done
9562 fi
9563
9564 rm -rf conftest.dSYM
9565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9566 conftest$ac_exeext conftest.$ac_ext
9567 fi # $ac_x_libraries = no
9568
9569 case $ac_x_includes,$ac_x_libraries in #(
9570 no,* | *,no | *\'*)
9571 # Didn't find X, or a directory has "'" in its name.
9572 ac_cv_have_x="have_x=no";; #(
9573 *)
9574 # Record where we found X for the cache.
9575 ac_cv_have_x="have_x=yes\
9576 ac_x_includes='$ac_x_includes'\
9577 ac_x_libraries='$ac_x_libraries'"
9578 esac
9579 fi
9580 ;; #(
9581 *) have_x=yes;;
9582 esac
9583 eval "$ac_cv_have_x"
9584 fi # $with_x != no
9585
9586 if test "$have_x" != yes; then
9587 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9588 $as_echo "$have_x" >&6; }
9589 no_x=yes
9590 else
9591 # If each of the values was on the command line, it overrides each guess.
9592 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9593 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9594 # Update the cache value to reflect the command line values.
9595 ac_cv_have_x="have_x=yes\
9596 ac_x_includes='$x_includes'\
9597 ac_x_libraries='$x_libraries'"
9598 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9599 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9600 fi
9601
9602 if test "$no_x" = yes; then
9603 window_system=none
9604 else
9605 window_system=x11
9606 fi
9607
9608 ## Workaround for bug in autoconf <= 2.62.
9609 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9610 ## No need to do anything special for these standard directories.
9611 ## This is an experiment, take it out if it causes problems.
9612 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9613
9614 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9615
9616 fi
9617
9618 if test "${x_libraries}" != NONE; then
9619 if test -n "${x_libraries}"; then
9620 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9621 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9622 fi
9623 x_default_search_path=""
9624 x_search_path=${x_libraries}
9625 if test -z "${x_search_path}"; then
9626 x_search_path=/usr/lib
9627 fi
9628 for x_library in `echo ${x_search_path}: | \
9629 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9630 x_search_path="\
9631 ${x_library}/X11/%L/%T/%N%C%S:\
9632 ${x_library}/X11/%l/%T/%N%C%S:\
9633 ${x_library}/X11/%T/%N%C%S:\
9634 ${x_library}/X11/%L/%T/%N%S:\
9635 ${x_library}/X11/%l/%T/%N%S:\
9636 ${x_library}/X11/%T/%N%S"
9637 if test x"${x_default_search_path}" = x; then
9638 x_default_search_path=${x_search_path}
9639 else
9640 x_default_search_path="${x_search_path}:${x_default_search_path}"
9641 fi
9642 done
9643 fi
9644 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9645 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9646 fi
9647
9648 if test x"${x_includes}" = x; then
9649 bitmapdir=/usr/include/X11/bitmaps
9650 else
9651 # accumulate include directories that have X11 bitmap subdirectories
9652 bmd_acc="dummyval"
9653 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9654 if test -d "${bmd}/X11/bitmaps"; then
9655 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9656 fi
9657 if test -d "${bmd}/bitmaps"; then
9658 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9659 fi
9660 done
9661 if test ${bmd_acc} != "dummyval"; then
9662 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9663 fi
9664 fi
9665
9666 HAVE_NS=no
9667 NS_IMPL_COCOA=no
9668 NS_IMPL_GNUSTEP=no
9669 tmp_CPPFLAGS="$CPPFLAGS"
9670 tmp_CFLAGS="$CFLAGS"
9671 CPPFLAGS="$CPPFLAGS -x objective-c"
9672 CFLAGS="$CFLAGS -x objective-c"
9673 if test "${with_ns}" != no; then
9674 if test "${opsys}" = darwin; then
9675 NS_IMPL_COCOA=yes
9676 ns_appdir=`pwd`/nextstep/Emacs.app
9677 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9678 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9679 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9680 elif test -f $GNUSTEP_CONFIG_FILE; then
9681 NS_IMPL_GNUSTEP=yes
9682 ns_appdir=`pwd`/nextstep/Emacs.app
9683 ns_appbindir=`pwd`/nextstep/Emacs.app
9684 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9685 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9686 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9687 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9688 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9689 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9690 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9691 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9692 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9693 fi
9694 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9695 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9696 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9697 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9698 $as_echo_n "(cached) " >&6
9699 fi
9700 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9701 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9702 else
9703 # Is the header compilable?
9704 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9705 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9706 cat >conftest.$ac_ext <<_ACEOF
9707 /* confdefs.h. */
9708 _ACEOF
9709 cat confdefs.h >>conftest.$ac_ext
9710 cat >>conftest.$ac_ext <<_ACEOF
9711 /* end confdefs.h. */
9712 $ac_includes_default
9713 #include <AppKit/AppKit.h>
9714 _ACEOF
9715 rm -f conftest.$ac_objext
9716 if { (ac_try="$ac_compile"
9717 case "(($ac_try" in
9718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9719 *) ac_try_echo=$ac_try;;
9720 esac
9721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9722 $as_echo "$ac_try_echo") >&5
9723 (eval "$ac_compile") 2>conftest.er1
9724 ac_status=$?
9725 grep -v '^ *+' conftest.er1 >conftest.err
9726 rm -f conftest.er1
9727 cat conftest.err >&5
9728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); } && {
9730 test -z "$ac_c_werror_flag" ||
9731 test ! -s conftest.err
9732 } && test -s conftest.$ac_objext; then
9733 ac_header_compiler=yes
9734 else
9735 $as_echo "$as_me: failed program was:" >&5
9736 sed 's/^/| /' conftest.$ac_ext >&5
9737
9738 ac_header_compiler=no
9739 fi
9740
9741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9742 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9743 $as_echo "$ac_header_compiler" >&6; }
9744
9745 # Is the header present?
9746 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9747 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9748 cat >conftest.$ac_ext <<_ACEOF
9749 /* confdefs.h. */
9750 _ACEOF
9751 cat confdefs.h >>conftest.$ac_ext
9752 cat >>conftest.$ac_ext <<_ACEOF
9753 /* end confdefs.h. */
9754 #include <AppKit/AppKit.h>
9755 _ACEOF
9756 if { (ac_try="$ac_cpp conftest.$ac_ext"
9757 case "(($ac_try" in
9758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9759 *) ac_try_echo=$ac_try;;
9760 esac
9761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9762 $as_echo "$ac_try_echo") >&5
9763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9764 ac_status=$?
9765 grep -v '^ *+' conftest.er1 >conftest.err
9766 rm -f conftest.er1
9767 cat conftest.err >&5
9768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); } >/dev/null && {
9770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9771 test ! -s conftest.err
9772 }; then
9773 ac_header_preproc=yes
9774 else
9775 $as_echo "$as_me: failed program was:" >&5
9776 sed 's/^/| /' conftest.$ac_ext >&5
9777
9778 ac_header_preproc=no
9779 fi
9780
9781 rm -f conftest.err conftest.$ac_ext
9782 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9783 $as_echo "$ac_header_preproc" >&6; }
9784
9785 # So? What about this header?
9786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9787 yes:no: )
9788 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9789 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9790 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9791 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9792 ac_header_preproc=yes
9793 ;;
9794 no:yes:* )
9795 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9796 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9797 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9798 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9799 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9800 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9801 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9802 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9803 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9804 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9805 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9806 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9807
9808 ;;
9809 esac
9810 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9811 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9812 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9813 $as_echo_n "(cached) " >&6
9814 else
9815 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9816 fi
9817 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9818 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9819
9820 fi
9821 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9822 HAVE_NS=yes
9823 else
9824 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9825 files are missing or cannot be compiled." >&5
9826 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
9827 files are missing or cannot be compiled." >&2;}
9828 { (exit 1); exit 1; }; }
9829 fi
9830
9831
9832 NS_HAVE_NSINTEGER=yes
9833 cat >conftest.$ac_ext <<_ACEOF
9834 /* confdefs.h. */
9835 _ACEOF
9836 cat confdefs.h >>conftest.$ac_ext
9837 cat >>conftest.$ac_ext <<_ACEOF
9838 /* end confdefs.h. */
9839 #include <Foundation/NSObjCRuntime.h>
9840 int
9841 main ()
9842 {
9843 NSInteger i;
9844 ;
9845 return 0;
9846 }
9847 _ACEOF
9848 rm -f conftest.$ac_objext
9849 if { (ac_try="$ac_compile"
9850 case "(($ac_try" in
9851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9852 *) ac_try_echo=$ac_try;;
9853 esac
9854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9855 $as_echo "$ac_try_echo") >&5
9856 (eval "$ac_compile") 2>conftest.er1
9857 ac_status=$?
9858 grep -v '^ *+' conftest.er1 >conftest.err
9859 rm -f conftest.er1
9860 cat conftest.err >&5
9861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); } && {
9863 test -z "$ac_c_werror_flag" ||
9864 test ! -s conftest.err
9865 } && test -s conftest.$ac_objext; then
9866 ns_have_nsinteger=yes
9867 else
9868 $as_echo "$as_me: failed program was:" >&5
9869 sed 's/^/| /' conftest.$ac_ext >&5
9870
9871 ns_have_nsinteger=no
9872 fi
9873
9874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9875 if test $ns_have_nsinteger = no; then
9876 NS_HAVE_NSINTEGER=no
9877 fi
9878 fi
9879 if test "${HAVE_NS}" = yes; then
9880 window_system=nextstep
9881 with_xft=no
9882 # set up packaging dirs
9883 exec_prefix=${ns_appbindir}
9884 libexecdir=${ns_appbindir}/libexec
9885 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9886 prefix=${ns_appresdir}
9887 fi
9888 fi
9889 CFLAGS="$tmp_CFLAGS"
9890 CPPFLAGS="$tmp_CPPFLAGS"
9891
9892 case "${window_system}" in
9893 x11 )
9894 HAVE_X_WINDOWS=yes
9895 HAVE_X11=yes
9896 case "${with_x_toolkit}" in
9897 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9898 motif ) USE_X_TOOLKIT=MOTIF ;;
9899 gtk ) with_gtk=yes
9900 USE_X_TOOLKIT=none ;;
9901 no ) USE_X_TOOLKIT=none ;;
9902 * ) USE_X_TOOLKIT=maybe ;;
9903 esac
9904 ;;
9905 nextstep | none )
9906 HAVE_X_WINDOWS=no
9907 HAVE_X11=no
9908 USE_X_TOOLKIT=none
9909 ;;
9910 esac
9911
9912 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9913 # Extract the first word of "X", so it can be a program name with args.
9914 set dummy X; ac_word=$2
9915 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9916 $as_echo_n "checking for $ac_word... " >&6; }
9917 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9918 $as_echo_n "(cached) " >&6
9919 else
9920 if test -n "$HAVE_XSERVER"; then
9921 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9922 else
9923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9924 for as_dir in $PATH
9925 do
9926 IFS=$as_save_IFS
9927 test -z "$as_dir" && as_dir=.
9928 for ac_exec_ext in '' $ac_executable_extensions; do
9929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9930 ac_cv_prog_HAVE_XSERVER="true"
9931 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9932 break 2
9933 fi
9934 done
9935 done
9936 IFS=$as_save_IFS
9937
9938 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9939 fi
9940 fi
9941 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9942 if test -n "$HAVE_XSERVER"; then
9943 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9944 $as_echo "$HAVE_XSERVER" >&6; }
9945 else
9946 { $as_echo "$as_me:$LINENO: result: no" >&5
9947 $as_echo "no" >&6; }
9948 fi
9949
9950
9951 if test "$HAVE_XSERVER" = true ||
9952 test -n "$DISPLAY" ||
9953 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9954 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9955 were found. You should install the relevant development files for X
9956 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9957 sure you have development files for image handling, i.e.
9958 tiff, gif, jpeg, png and xpm.
9959 If you are sure you want Emacs compiled without X window support, pass
9960 --without-x
9961 to configure." >&5
9962 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
9963 were found. You should install the relevant development files for X
9964 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9965 sure you have development files for image handling, i.e.
9966 tiff, gif, jpeg, png and xpm.
9967 If you are sure you want Emacs compiled without X window support, pass
9968 --without-x
9969 to configure." >&2;}
9970 { (exit 1); exit 1; }; }
9971 fi
9972 fi
9973
9974 ### If we're using X11, we should use the X menu package.
9975 HAVE_MENUS=no
9976 case ${HAVE_X11} in
9977 yes ) HAVE_MENUS=yes ;;
9978 esac
9979
9980 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9981 # Assume not, until told otherwise.
9982 GNU_MALLOC=yes
9983 doug_lea_malloc=yes
9984 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9985 $as_echo_n "checking for malloc_get_state... " >&6; }
9986 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9987 $as_echo_n "(cached) " >&6
9988 else
9989 cat >conftest.$ac_ext <<_ACEOF
9990 /* confdefs.h. */
9991 _ACEOF
9992 cat confdefs.h >>conftest.$ac_ext
9993 cat >>conftest.$ac_ext <<_ACEOF
9994 /* end confdefs.h. */
9995 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9997 #define malloc_get_state innocuous_malloc_get_state
9998
9999 /* System header to define __stub macros and hopefully few prototypes,
10000 which can conflict with char malloc_get_state (); below.
10001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10002 <limits.h> exists even on freestanding compilers. */
10003
10004 #ifdef __STDC__
10005 # include <limits.h>
10006 #else
10007 # include <assert.h>
10008 #endif
10009
10010 #undef malloc_get_state
10011
10012 /* Override any GCC internal prototype to avoid an error.
10013 Use char because int might match the return type of a GCC
10014 builtin and then its argument prototype would still apply. */
10015 #ifdef __cplusplus
10016 extern "C"
10017 #endif
10018 char malloc_get_state ();
10019 /* The GNU C library defines this for functions which it implements
10020 to always fail with ENOSYS. Some functions are actually named
10021 something starting with __ and the normal name is an alias. */
10022 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10023 choke me
10024 #endif
10025
10026 int
10027 main ()
10028 {
10029 return malloc_get_state ();
10030 ;
10031 return 0;
10032 }
10033 _ACEOF
10034 rm -f conftest.$ac_objext conftest$ac_exeext
10035 if { (ac_try="$ac_link"
10036 case "(($ac_try" in
10037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10038 *) ac_try_echo=$ac_try;;
10039 esac
10040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10041 $as_echo "$ac_try_echo") >&5
10042 (eval "$ac_link") 2>conftest.er1
10043 ac_status=$?
10044 grep -v '^ *+' conftest.er1 >conftest.err
10045 rm -f conftest.er1
10046 cat conftest.err >&5
10047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); } && {
10049 test -z "$ac_c_werror_flag" ||
10050 test ! -s conftest.err
10051 } && test -s conftest$ac_exeext && {
10052 test "$cross_compiling" = yes ||
10053 $as_test_x conftest$ac_exeext
10054 }; then
10055 ac_cv_func_malloc_get_state=yes
10056 else
10057 $as_echo "$as_me: failed program was:" >&5
10058 sed 's/^/| /' conftest.$ac_ext >&5
10059
10060 ac_cv_func_malloc_get_state=no
10061 fi
10062
10063 rm -rf conftest.dSYM
10064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10065 conftest$ac_exeext conftest.$ac_ext
10066 fi
10067 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10068 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10069 if test $ac_cv_func_malloc_get_state = yes; then
10070 :
10071 else
10072 doug_lea_malloc=no
10073 fi
10074
10075 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10076 $as_echo_n "checking for malloc_set_state... " >&6; }
10077 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10078 $as_echo_n "(cached) " >&6
10079 else
10080 cat >conftest.$ac_ext <<_ACEOF
10081 /* confdefs.h. */
10082 _ACEOF
10083 cat confdefs.h >>conftest.$ac_ext
10084 cat >>conftest.$ac_ext <<_ACEOF
10085 /* end confdefs.h. */
10086 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10088 #define malloc_set_state innocuous_malloc_set_state
10089
10090 /* System header to define __stub macros and hopefully few prototypes,
10091 which can conflict with char malloc_set_state (); below.
10092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10093 <limits.h> exists even on freestanding compilers. */
10094
10095 #ifdef __STDC__
10096 # include <limits.h>
10097 #else
10098 # include <assert.h>
10099 #endif
10100
10101 #undef malloc_set_state
10102
10103 /* Override any GCC internal prototype to avoid an error.
10104 Use char because int might match the return type of a GCC
10105 builtin and then its argument prototype would still apply. */
10106 #ifdef __cplusplus
10107 extern "C"
10108 #endif
10109 char malloc_set_state ();
10110 /* The GNU C library defines this for functions which it implements
10111 to always fail with ENOSYS. Some functions are actually named
10112 something starting with __ and the normal name is an alias. */
10113 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10114 choke me
10115 #endif
10116
10117 int
10118 main ()
10119 {
10120 return malloc_set_state ();
10121 ;
10122 return 0;
10123 }
10124 _ACEOF
10125 rm -f conftest.$ac_objext conftest$ac_exeext
10126 if { (ac_try="$ac_link"
10127 case "(($ac_try" in
10128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10129 *) ac_try_echo=$ac_try;;
10130 esac
10131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10132 $as_echo "$ac_try_echo") >&5
10133 (eval "$ac_link") 2>conftest.er1
10134 ac_status=$?
10135 grep -v '^ *+' conftest.er1 >conftest.err
10136 rm -f conftest.er1
10137 cat conftest.err >&5
10138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); } && {
10140 test -z "$ac_c_werror_flag" ||
10141 test ! -s conftest.err
10142 } && test -s conftest$ac_exeext && {
10143 test "$cross_compiling" = yes ||
10144 $as_test_x conftest$ac_exeext
10145 }; then
10146 ac_cv_func_malloc_set_state=yes
10147 else
10148 $as_echo "$as_me: failed program was:" >&5
10149 sed 's/^/| /' conftest.$ac_ext >&5
10150
10151 ac_cv_func_malloc_set_state=no
10152 fi
10153
10154 rm -rf conftest.dSYM
10155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10156 conftest$ac_exeext conftest.$ac_ext
10157 fi
10158 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10159 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10160 if test $ac_cv_func_malloc_set_state = yes; then
10161 :
10162 else
10163 doug_lea_malloc=no
10164 fi
10165
10166 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10167 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10168 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10169 $as_echo_n "(cached) " >&6
10170 else
10171 cat >conftest.$ac_ext <<_ACEOF
10172 /* confdefs.h. */
10173 _ACEOF
10174 cat confdefs.h >>conftest.$ac_ext
10175 cat >>conftest.$ac_ext <<_ACEOF
10176 /* end confdefs.h. */
10177 extern void (* __after_morecore_hook)();
10178 int
10179 main ()
10180 {
10181 __after_morecore_hook = 0
10182 ;
10183 return 0;
10184 }
10185 _ACEOF
10186 rm -f conftest.$ac_objext conftest$ac_exeext
10187 if { (ac_try="$ac_link"
10188 case "(($ac_try" in
10189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10190 *) ac_try_echo=$ac_try;;
10191 esac
10192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10193 $as_echo "$ac_try_echo") >&5
10194 (eval "$ac_link") 2>conftest.er1
10195 ac_status=$?
10196 grep -v '^ *+' conftest.er1 >conftest.err
10197 rm -f conftest.er1
10198 cat conftest.err >&5
10199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } && {
10201 test -z "$ac_c_werror_flag" ||
10202 test ! -s conftest.err
10203 } && test -s conftest$ac_exeext && {
10204 test "$cross_compiling" = yes ||
10205 $as_test_x conftest$ac_exeext
10206 }; then
10207 emacs_cv_var___after_morecore_hook=yes
10208 else
10209 $as_echo "$as_me: failed program was:" >&5
10210 sed 's/^/| /' conftest.$ac_ext >&5
10211
10212 emacs_cv_var___after_morecore_hook=no
10213 fi
10214
10215 rm -rf conftest.dSYM
10216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10217 conftest$ac_exeext conftest.$ac_ext
10218 fi
10219 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10220 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10221 if test $emacs_cv_var___after_morecore_hook = no; then
10222 doug_lea_malloc=no
10223 fi
10224 if test "${system_malloc}" = "yes"; then
10225 GNU_MALLOC=no
10226 GNU_MALLOC_reason="
10227 (The GNU allocators don't work with this system configuration.)"
10228 fi
10229 if test "$doug_lea_malloc" = "yes" ; then
10230 if test "$GNU_MALLOC" = yes ; then
10231 GNU_MALLOC_reason="
10232 (Using Doug Lea's new malloc from the GNU C Library.)"
10233 fi
10234
10235 cat >>confdefs.h <<\_ACEOF
10236 #define DOUG_LEA_MALLOC 1
10237 _ACEOF
10238
10239 fi
10240
10241 if test x"${REL_ALLOC}" = x; then
10242 REL_ALLOC=${GNU_MALLOC}
10243 fi
10244
10245
10246
10247
10248 for ac_header in stdlib.h unistd.h
10249 do
10250 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10252 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10253 $as_echo_n "checking for $ac_header... " >&6; }
10254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10255 $as_echo_n "(cached) " >&6
10256 fi
10257 ac_res=`eval 'as_val=${'$as_ac_Header'}
10258 $as_echo "$as_val"'`
10259 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10260 $as_echo "$ac_res" >&6; }
10261 else
10262 # Is the header compilable?
10263 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10264 $as_echo_n "checking $ac_header usability... " >&6; }
10265 cat >conftest.$ac_ext <<_ACEOF
10266 /* confdefs.h. */
10267 _ACEOF
10268 cat confdefs.h >>conftest.$ac_ext
10269 cat >>conftest.$ac_ext <<_ACEOF
10270 /* end confdefs.h. */
10271 $ac_includes_default
10272 #include <$ac_header>
10273 _ACEOF
10274 rm -f conftest.$ac_objext
10275 if { (ac_try="$ac_compile"
10276 case "(($ac_try" in
10277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10278 *) ac_try_echo=$ac_try;;
10279 esac
10280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10281 $as_echo "$ac_try_echo") >&5
10282 (eval "$ac_compile") 2>conftest.er1
10283 ac_status=$?
10284 grep -v '^ *+' conftest.er1 >conftest.err
10285 rm -f conftest.er1
10286 cat conftest.err >&5
10287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); } && {
10289 test -z "$ac_c_werror_flag" ||
10290 test ! -s conftest.err
10291 } && test -s conftest.$ac_objext; then
10292 ac_header_compiler=yes
10293 else
10294 $as_echo "$as_me: failed program was:" >&5
10295 sed 's/^/| /' conftest.$ac_ext >&5
10296
10297 ac_header_compiler=no
10298 fi
10299
10300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10301 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10302 $as_echo "$ac_header_compiler" >&6; }
10303
10304 # Is the header present?
10305 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10306 $as_echo_n "checking $ac_header presence... " >&6; }
10307 cat >conftest.$ac_ext <<_ACEOF
10308 /* confdefs.h. */
10309 _ACEOF
10310 cat confdefs.h >>conftest.$ac_ext
10311 cat >>conftest.$ac_ext <<_ACEOF
10312 /* end confdefs.h. */
10313 #include <$ac_header>
10314 _ACEOF
10315 if { (ac_try="$ac_cpp conftest.$ac_ext"
10316 case "(($ac_try" in
10317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10318 *) ac_try_echo=$ac_try;;
10319 esac
10320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10321 $as_echo "$ac_try_echo") >&5
10322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10323 ac_status=$?
10324 grep -v '^ *+' conftest.er1 >conftest.err
10325 rm -f conftest.er1
10326 cat conftest.err >&5
10327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); } >/dev/null && {
10329 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10330 test ! -s conftest.err
10331 }; then
10332 ac_header_preproc=yes
10333 else
10334 $as_echo "$as_me: failed program was:" >&5
10335 sed 's/^/| /' conftest.$ac_ext >&5
10336
10337 ac_header_preproc=no
10338 fi
10339
10340 rm -f conftest.err conftest.$ac_ext
10341 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10342 $as_echo "$ac_header_preproc" >&6; }
10343
10344 # So? What about this header?
10345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10346 yes:no: )
10347 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10348 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10349 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10350 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10351 ac_header_preproc=yes
10352 ;;
10353 no:yes:* )
10354 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10355 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10357 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10359 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10361 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10363 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10364 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10365 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10366
10367 ;;
10368 esac
10369 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10370 $as_echo_n "checking for $ac_header... " >&6; }
10371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10372 $as_echo_n "(cached) " >&6
10373 else
10374 eval "$as_ac_Header=\$ac_header_preproc"
10375 fi
10376 ac_res=`eval 'as_val=${'$as_ac_Header'}
10377 $as_echo "$as_val"'`
10378 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10379 $as_echo "$ac_res" >&6; }
10380
10381 fi
10382 if test `eval 'as_val=${'$as_ac_Header'}
10383 $as_echo "$as_val"'` = yes; then
10384 cat >>confdefs.h <<_ACEOF
10385 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10386 _ACEOF
10387
10388 fi
10389
10390 done
10391
10392
10393 for ac_func in getpagesize
10394 do
10395 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10396 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10397 $as_echo_n "checking for $ac_func... " >&6; }
10398 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10399 $as_echo_n "(cached) " >&6
10400 else
10401 cat >conftest.$ac_ext <<_ACEOF
10402 /* confdefs.h. */
10403 _ACEOF
10404 cat confdefs.h >>conftest.$ac_ext
10405 cat >>conftest.$ac_ext <<_ACEOF
10406 /* end confdefs.h. */
10407 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10409 #define $ac_func innocuous_$ac_func
10410
10411 /* System header to define __stub macros and hopefully few prototypes,
10412 which can conflict with char $ac_func (); below.
10413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10414 <limits.h> exists even on freestanding compilers. */
10415
10416 #ifdef __STDC__
10417 # include <limits.h>
10418 #else
10419 # include <assert.h>
10420 #endif
10421
10422 #undef $ac_func
10423
10424 /* Override any GCC internal prototype to avoid an error.
10425 Use char because int might match the return type of a GCC
10426 builtin and then its argument prototype would still apply. */
10427 #ifdef __cplusplus
10428 extern "C"
10429 #endif
10430 char $ac_func ();
10431 /* The GNU C library defines this for functions which it implements
10432 to always fail with ENOSYS. Some functions are actually named
10433 something starting with __ and the normal name is an alias. */
10434 #if defined __stub_$ac_func || defined __stub___$ac_func
10435 choke me
10436 #endif
10437
10438 int
10439 main ()
10440 {
10441 return $ac_func ();
10442 ;
10443 return 0;
10444 }
10445 _ACEOF
10446 rm -f conftest.$ac_objext conftest$ac_exeext
10447 if { (ac_try="$ac_link"
10448 case "(($ac_try" in
10449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10450 *) ac_try_echo=$ac_try;;
10451 esac
10452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10453 $as_echo "$ac_try_echo") >&5
10454 (eval "$ac_link") 2>conftest.er1
10455 ac_status=$?
10456 grep -v '^ *+' conftest.er1 >conftest.err
10457 rm -f conftest.er1
10458 cat conftest.err >&5
10459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); } && {
10461 test -z "$ac_c_werror_flag" ||
10462 test ! -s conftest.err
10463 } && test -s conftest$ac_exeext && {
10464 test "$cross_compiling" = yes ||
10465 $as_test_x conftest$ac_exeext
10466 }; then
10467 eval "$as_ac_var=yes"
10468 else
10469 $as_echo "$as_me: failed program was:" >&5
10470 sed 's/^/| /' conftest.$ac_ext >&5
10471
10472 eval "$as_ac_var=no"
10473 fi
10474
10475 rm -rf conftest.dSYM
10476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10477 conftest$ac_exeext conftest.$ac_ext
10478 fi
10479 ac_res=`eval 'as_val=${'$as_ac_var'}
10480 $as_echo "$as_val"'`
10481 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10482 $as_echo "$ac_res" >&6; }
10483 if test `eval 'as_val=${'$as_ac_var'}
10484 $as_echo "$as_val"'` = yes; then
10485 cat >>confdefs.h <<_ACEOF
10486 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10487 _ACEOF
10488
10489 fi
10490 done
10491
10492 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10493 $as_echo_n "checking for working mmap... " >&6; }
10494 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10495 $as_echo_n "(cached) " >&6
10496 else
10497 if test "$cross_compiling" = yes; then
10498 ac_cv_func_mmap_fixed_mapped=no
10499 else
10500 cat >conftest.$ac_ext <<_ACEOF
10501 /* confdefs.h. */
10502 _ACEOF
10503 cat confdefs.h >>conftest.$ac_ext
10504 cat >>conftest.$ac_ext <<_ACEOF
10505 /* end confdefs.h. */
10506 $ac_includes_default
10507 /* malloc might have been renamed as rpl_malloc. */
10508 #undef malloc
10509
10510 /* Thanks to Mike Haertel and Jim Avera for this test.
10511 Here is a matrix of mmap possibilities:
10512 mmap private not fixed
10513 mmap private fixed at somewhere currently unmapped
10514 mmap private fixed at somewhere already mapped
10515 mmap shared not fixed
10516 mmap shared fixed at somewhere currently unmapped
10517 mmap shared fixed at somewhere already mapped
10518 For private mappings, we should verify that changes cannot be read()
10519 back from the file, nor mmap's back from the file at a different
10520 address. (There have been systems where private was not correctly
10521 implemented like the infamous i386 svr4.0, and systems where the
10522 VM page cache was not coherent with the file system buffer cache
10523 like early versions of FreeBSD and possibly contemporary NetBSD.)
10524 For shared mappings, we should conversely verify that changes get
10525 propagated back to all the places they're supposed to be.
10526
10527 Grep wants private fixed already mapped.
10528 The main things grep needs to know about mmap are:
10529 * does it exist and is it safe to write into the mmap'd area
10530 * how to use it (BSD variants) */
10531
10532 #include <fcntl.h>
10533 #include <sys/mman.h>
10534
10535 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10536 char *malloc ();
10537 #endif
10538
10539 /* This mess was copied from the GNU getpagesize.h. */
10540 #ifndef HAVE_GETPAGESIZE
10541 /* Assume that all systems that can run configure have sys/param.h. */
10542 # ifndef HAVE_SYS_PARAM_H
10543 # define HAVE_SYS_PARAM_H 1
10544 # endif
10545
10546 # ifdef _SC_PAGESIZE
10547 # define getpagesize() sysconf(_SC_PAGESIZE)
10548 # else /* no _SC_PAGESIZE */
10549 # ifdef HAVE_SYS_PARAM_H
10550 # include <sys/param.h>
10551 # ifdef EXEC_PAGESIZE
10552 # define getpagesize() EXEC_PAGESIZE
10553 # else /* no EXEC_PAGESIZE */
10554 # ifdef NBPG
10555 # define getpagesize() NBPG * CLSIZE
10556 # ifndef CLSIZE
10557 # define CLSIZE 1
10558 # endif /* no CLSIZE */
10559 # else /* no NBPG */
10560 # ifdef NBPC
10561 # define getpagesize() NBPC
10562 # else /* no NBPC */
10563 # ifdef PAGESIZE
10564 # define getpagesize() PAGESIZE
10565 # endif /* PAGESIZE */
10566 # endif /* no NBPC */
10567 # endif /* no NBPG */
10568 # endif /* no EXEC_PAGESIZE */
10569 # else /* no HAVE_SYS_PARAM_H */
10570 # define getpagesize() 8192 /* punt totally */
10571 # endif /* no HAVE_SYS_PARAM_H */
10572 # endif /* no _SC_PAGESIZE */
10573
10574 #endif /* no HAVE_GETPAGESIZE */
10575
10576 int
10577 main ()
10578 {
10579 char *data, *data2, *data3;
10580 int i, pagesize;
10581 int fd;
10582
10583 pagesize = getpagesize ();
10584
10585 /* First, make a file with some known garbage in it. */
10586 data = (char *) malloc (pagesize);
10587 if (!data)
10588 return 1;
10589 for (i = 0; i < pagesize; ++i)
10590 *(data + i) = rand ();
10591 umask (0);
10592 fd = creat ("conftest.mmap", 0600);
10593 if (fd < 0)
10594 return 1;
10595 if (write (fd, data, pagesize) != pagesize)
10596 return 1;
10597 close (fd);
10598
10599 /* Next, try to mmap the file at a fixed address which already has
10600 something else allocated at it. If we can, also make sure that
10601 we see the same garbage. */
10602 fd = open ("conftest.mmap", O_RDWR);
10603 if (fd < 0)
10604 return 1;
10605 data2 = (char *) malloc (2 * pagesize);
10606 if (!data2)
10607 return 1;
10608 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10609 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10610 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10611 return 1;
10612 for (i = 0; i < pagesize; ++i)
10613 if (*(data + i) != *(data2 + i))
10614 return 1;
10615
10616 /* Finally, make sure that changes to the mapped area do not
10617 percolate back to the file as seen by read(). (This is a bug on
10618 some variants of i386 svr4.0.) */
10619 for (i = 0; i < pagesize; ++i)
10620 *(data2 + i) = *(data2 + i) + 1;
10621 data3 = (char *) malloc (pagesize);
10622 if (!data3)
10623 return 1;
10624 if (read (fd, data3, pagesize) != pagesize)
10625 return 1;
10626 for (i = 0; i < pagesize; ++i)
10627 if (*(data + i) != *(data3 + i))
10628 return 1;
10629 close (fd);
10630 return 0;
10631 }
10632 _ACEOF
10633 rm -f conftest$ac_exeext
10634 if { (ac_try="$ac_link"
10635 case "(($ac_try" in
10636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10637 *) ac_try_echo=$ac_try;;
10638 esac
10639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10640 $as_echo "$ac_try_echo") >&5
10641 (eval "$ac_link") 2>&5
10642 ac_status=$?
10643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10645 { (case "(($ac_try" in
10646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10647 *) ac_try_echo=$ac_try;;
10648 esac
10649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10650 $as_echo "$ac_try_echo") >&5
10651 (eval "$ac_try") 2>&5
10652 ac_status=$?
10653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); }; }; then
10655 ac_cv_func_mmap_fixed_mapped=yes
10656 else
10657 $as_echo "$as_me: program exited with status $ac_status" >&5
10658 $as_echo "$as_me: failed program was:" >&5
10659 sed 's/^/| /' conftest.$ac_ext >&5
10660
10661 ( exit $ac_status )
10662 ac_cv_func_mmap_fixed_mapped=no
10663 fi
10664 rm -rf conftest.dSYM
10665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10666 fi
10667
10668
10669 fi
10670 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10671 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10672 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10673
10674 cat >>confdefs.h <<\_ACEOF
10675 #define HAVE_MMAP 1
10676 _ACEOF
10677
10678 fi
10679 rm -f conftest.mmap
10680
10681 if test $use_mmap_for_buffers = yes; then
10682 REL_ALLOC=no
10683 fi
10684
10685 LIBS="$libsrc_libs $LIBS"
10686
10687
10688 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10689 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10690 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10691 $as_echo_n "(cached) " >&6
10692 else
10693 ac_check_lib_save_LIBS=$LIBS
10694 LIBS="-ldnet $LIBS"
10695 cat >conftest.$ac_ext <<_ACEOF
10696 /* confdefs.h. */
10697 _ACEOF
10698 cat confdefs.h >>conftest.$ac_ext
10699 cat >>conftest.$ac_ext <<_ACEOF
10700 /* end confdefs.h. */
10701
10702 /* Override any GCC internal prototype to avoid an error.
10703 Use char because int might match the return type of a GCC
10704 builtin and then its argument prototype would still apply. */
10705 #ifdef __cplusplus
10706 extern "C"
10707 #endif
10708 char dnet_ntoa ();
10709 int
10710 main ()
10711 {
10712 return dnet_ntoa ();
10713 ;
10714 return 0;
10715 }
10716 _ACEOF
10717 rm -f conftest.$ac_objext conftest$ac_exeext
10718 if { (ac_try="$ac_link"
10719 case "(($ac_try" in
10720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10721 *) ac_try_echo=$ac_try;;
10722 esac
10723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10724 $as_echo "$ac_try_echo") >&5
10725 (eval "$ac_link") 2>conftest.er1
10726 ac_status=$?
10727 grep -v '^ *+' conftest.er1 >conftest.err
10728 rm -f conftest.er1
10729 cat conftest.err >&5
10730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); } && {
10732 test -z "$ac_c_werror_flag" ||
10733 test ! -s conftest.err
10734 } && test -s conftest$ac_exeext && {
10735 test "$cross_compiling" = yes ||
10736 $as_test_x conftest$ac_exeext
10737 }; then
10738 ac_cv_lib_dnet_dnet_ntoa=yes
10739 else
10740 $as_echo "$as_me: failed program was:" >&5
10741 sed 's/^/| /' conftest.$ac_ext >&5
10742
10743 ac_cv_lib_dnet_dnet_ntoa=no
10744 fi
10745
10746 rm -rf conftest.dSYM
10747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10748 conftest$ac_exeext conftest.$ac_ext
10749 LIBS=$ac_check_lib_save_LIBS
10750 fi
10751 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10752 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10753 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10754 cat >>confdefs.h <<_ACEOF
10755 #define HAVE_LIBDNET 1
10756 _ACEOF
10757
10758 LIBS="-ldnet $LIBS"
10759
10760 fi
10761
10762
10763 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10764 $as_echo_n "checking for main in -lXbsd... " >&6; }
10765 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10766 $as_echo_n "(cached) " >&6
10767 else
10768 ac_check_lib_save_LIBS=$LIBS
10769 LIBS="-lXbsd $LIBS"
10770 cat >conftest.$ac_ext <<_ACEOF
10771 /* confdefs.h. */
10772 _ACEOF
10773 cat confdefs.h >>conftest.$ac_ext
10774 cat >>conftest.$ac_ext <<_ACEOF
10775 /* end confdefs.h. */
10776
10777
10778 int
10779 main ()
10780 {
10781 return main ();
10782 ;
10783 return 0;
10784 }
10785 _ACEOF
10786 rm -f conftest.$ac_objext conftest$ac_exeext
10787 if { (ac_try="$ac_link"
10788 case "(($ac_try" in
10789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10790 *) ac_try_echo=$ac_try;;
10791 esac
10792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10793 $as_echo "$ac_try_echo") >&5
10794 (eval "$ac_link") 2>conftest.er1
10795 ac_status=$?
10796 grep -v '^ *+' conftest.er1 >conftest.err
10797 rm -f conftest.er1
10798 cat conftest.err >&5
10799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800 (exit $ac_status); } && {
10801 test -z "$ac_c_werror_flag" ||
10802 test ! -s conftest.err
10803 } && test -s conftest$ac_exeext && {
10804 test "$cross_compiling" = yes ||
10805 $as_test_x conftest$ac_exeext
10806 }; then
10807 ac_cv_lib_Xbsd_main=yes
10808 else
10809 $as_echo "$as_me: failed program was:" >&5
10810 sed 's/^/| /' conftest.$ac_ext >&5
10811
10812 ac_cv_lib_Xbsd_main=no
10813 fi
10814
10815 rm -rf conftest.dSYM
10816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10817 conftest$ac_exeext conftest.$ac_ext
10818 LIBS=$ac_check_lib_save_LIBS
10819 fi
10820 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10821 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10822 if test $ac_cv_lib_Xbsd_main = yes; then
10823 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10824 fi
10825
10826
10827
10828 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10829 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10830 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10831 $as_echo_n "(cached) " >&6
10832 else
10833 ac_check_lib_save_LIBS=$LIBS
10834 LIBS="-lpthreads $LIBS"
10835 cat >conftest.$ac_ext <<_ACEOF
10836 /* confdefs.h. */
10837 _ACEOF
10838 cat confdefs.h >>conftest.$ac_ext
10839 cat >>conftest.$ac_ext <<_ACEOF
10840 /* end confdefs.h. */
10841
10842 /* Override any GCC internal prototype to avoid an error.
10843 Use char because int might match the return type of a GCC
10844 builtin and then its argument prototype would still apply. */
10845 #ifdef __cplusplus
10846 extern "C"
10847 #endif
10848 char cma_open ();
10849 int
10850 main ()
10851 {
10852 return cma_open ();
10853 ;
10854 return 0;
10855 }
10856 _ACEOF
10857 rm -f conftest.$ac_objext conftest$ac_exeext
10858 if { (ac_try="$ac_link"
10859 case "(($ac_try" in
10860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10861 *) ac_try_echo=$ac_try;;
10862 esac
10863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10864 $as_echo "$ac_try_echo") >&5
10865 (eval "$ac_link") 2>conftest.er1
10866 ac_status=$?
10867 grep -v '^ *+' conftest.er1 >conftest.err
10868 rm -f conftest.er1
10869 cat conftest.err >&5
10870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); } && {
10872 test -z "$ac_c_werror_flag" ||
10873 test ! -s conftest.err
10874 } && test -s conftest$ac_exeext && {
10875 test "$cross_compiling" = yes ||
10876 $as_test_x conftest$ac_exeext
10877 }; then
10878 ac_cv_lib_pthreads_cma_open=yes
10879 else
10880 $as_echo "$as_me: failed program was:" >&5
10881 sed 's/^/| /' conftest.$ac_ext >&5
10882
10883 ac_cv_lib_pthreads_cma_open=no
10884 fi
10885
10886 rm -rf conftest.dSYM
10887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10888 conftest$ac_exeext conftest.$ac_ext
10889 LIBS=$ac_check_lib_save_LIBS
10890 fi
10891 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10892 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10893 if test $ac_cv_lib_pthreads_cma_open = yes; then
10894 cat >>confdefs.h <<_ACEOF
10895 #define HAVE_LIBPTHREADS 1
10896 _ACEOF
10897
10898 LIBS="-lpthreads $LIBS"
10899
10900 fi
10901
10902
10903
10904 case ${host_os} in
10905 aix*)
10906 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10907 $as_echo_n "checking for -bbigtoc option... " >&6; }
10908 if test "${gdb_cv_bigtoc+set}" = set; then
10909 $as_echo_n "(cached) " >&6
10910 else
10911
10912 case $GCC in
10913 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10914 *) gdb_cv_bigtoc=-bbigtoc ;;
10915 esac
10916
10917 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10918 cat >conftest.$ac_ext <<_ACEOF
10919 /* confdefs.h. */
10920 _ACEOF
10921 cat confdefs.h >>conftest.$ac_ext
10922 cat >>conftest.$ac_ext <<_ACEOF
10923 /* end confdefs.h. */
10924
10925 int
10926 main ()
10927 {
10928 int i;
10929 ;
10930 return 0;
10931 }
10932 _ACEOF
10933 rm -f conftest.$ac_objext conftest$ac_exeext
10934 if { (ac_try="$ac_link"
10935 case "(($ac_try" in
10936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10937 *) ac_try_echo=$ac_try;;
10938 esac
10939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10940 $as_echo "$ac_try_echo") >&5
10941 (eval "$ac_link") 2>conftest.er1
10942 ac_status=$?
10943 grep -v '^ *+' conftest.er1 >conftest.err
10944 rm -f conftest.er1
10945 cat conftest.err >&5
10946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); } && {
10948 test -z "$ac_c_werror_flag" ||
10949 test ! -s conftest.err
10950 } && test -s conftest$ac_exeext && {
10951 test "$cross_compiling" = yes ||
10952 $as_test_x conftest$ac_exeext
10953 }; then
10954 :
10955 else
10956 $as_echo "$as_me: failed program was:" >&5
10957 sed 's/^/| /' conftest.$ac_ext >&5
10958
10959 gdb_cv_bigtoc=
10960 fi
10961
10962 rm -rf conftest.dSYM
10963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10964 conftest$ac_exeext conftest.$ac_ext
10965
10966 fi
10967 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10968 $as_echo "$gdb_cv_bigtoc" >&6; }
10969 ;;
10970 esac
10971
10972 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10973 # used for the tests that follow. We set them back to REAL_CFLAGS and
10974 # REAL_CPPFLAGS later on.
10975
10976 REAL_CPPFLAGS="$CPPFLAGS"
10977
10978 if test "${HAVE_X11}" = "yes"; then
10979 DEFS="$C_SWITCH_X_SITE $DEFS"
10980 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10981 LIBS="$LIBX $LIBS"
10982 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10983 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10984
10985 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10986 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10987 # but it's more convenient here to set LD_RUN_PATH
10988 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10989 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10990 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10991 export LD_RUN_PATH
10992 fi
10993
10994 if test "${opsys}" = "gnu-linux"; then
10995 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10996 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10997 cat >conftest.$ac_ext <<_ACEOF
10998 /* confdefs.h. */
10999 _ACEOF
11000 cat confdefs.h >>conftest.$ac_ext
11001 cat >>conftest.$ac_ext <<_ACEOF
11002 /* end confdefs.h. */
11003
11004 int
11005 main ()
11006 {
11007 XOpenDisplay ("foo");
11008 ;
11009 return 0;
11010 }
11011 _ACEOF
11012 rm -f conftest.$ac_objext conftest$ac_exeext
11013 if { (ac_try="$ac_link"
11014 case "(($ac_try" in
11015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11016 *) ac_try_echo=$ac_try;;
11017 esac
11018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11019 $as_echo "$ac_try_echo") >&5
11020 (eval "$ac_link") 2>conftest.er1
11021 ac_status=$?
11022 grep -v '^ *+' conftest.er1 >conftest.err
11023 rm -f conftest.er1
11024 cat conftest.err >&5
11025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); } && {
11027 test -z "$ac_c_werror_flag" ||
11028 test ! -s conftest.err
11029 } && test -s conftest$ac_exeext && {
11030 test "$cross_compiling" = yes ||
11031 $as_test_x conftest$ac_exeext
11032 }; then
11033 xlinux_first_failure=no
11034 else
11035 $as_echo "$as_me: failed program was:" >&5
11036 sed 's/^/| /' conftest.$ac_ext >&5
11037
11038 xlinux_first_failure=yes
11039 fi
11040
11041 rm -rf conftest.dSYM
11042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11043 conftest$ac_exeext conftest.$ac_ext
11044 if test "${xlinux_first_failure}" = "yes"; then
11045 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11046 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
11047 OLD_CPPFLAGS="$CPPFLAGS"
11048 OLD_LIBS="$LIBS"
11049 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
11050 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
11051 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
11052 LIBS="$LIBS -b i486-linuxaout"
11053 cat >conftest.$ac_ext <<_ACEOF
11054 /* confdefs.h. */
11055 _ACEOF
11056 cat confdefs.h >>conftest.$ac_ext
11057 cat >>conftest.$ac_ext <<_ACEOF
11058 /* end confdefs.h. */
11059
11060 int
11061 main ()
11062 {
11063 XOpenDisplay ("foo");
11064 ;
11065 return 0;
11066 }
11067 _ACEOF
11068 rm -f conftest.$ac_objext conftest$ac_exeext
11069 if { (ac_try="$ac_link"
11070 case "(($ac_try" in
11071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11072 *) ac_try_echo=$ac_try;;
11073 esac
11074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11075 $as_echo "$ac_try_echo") >&5
11076 (eval "$ac_link") 2>conftest.er1
11077 ac_status=$?
11078 grep -v '^ *+' conftest.er1 >conftest.err
11079 rm -f conftest.er1
11080 cat conftest.err >&5
11081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); } && {
11083 test -z "$ac_c_werror_flag" ||
11084 test ! -s conftest.err
11085 } && test -s conftest$ac_exeext && {
11086 test "$cross_compiling" = yes ||
11087 $as_test_x conftest$ac_exeext
11088 }; then
11089 xlinux_second_failure=no
11090 else
11091 $as_echo "$as_me: failed program was:" >&5
11092 sed 's/^/| /' conftest.$ac_ext >&5
11093
11094 xlinux_second_failure=yes
11095 fi
11096
11097 rm -rf conftest.dSYM
11098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11099 conftest$ac_exeext conftest.$ac_ext
11100 if test "${xlinux_second_failure}" = "yes"; then
11101 # If we get the same failure with -b, there is no use adding -b.
11102 # So take it out. This plays safe.
11103 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11104 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11105 CPPFLAGS="$OLD_CPPFLAGS"
11106 LIBS="$OLD_LIBS"
11107 { $as_echo "$as_me:$LINENO: result: no" >&5
11108 $as_echo "no" >&6; }
11109 else
11110 { $as_echo "$as_me:$LINENO: result: yes" >&5
11111 $as_echo "yes" >&6; }
11112 fi
11113 else
11114 { $as_echo "$as_me:$LINENO: result: no" >&5
11115 $as_echo "no" >&6; }
11116 fi
11117 fi
11118
11119 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11120 # header files included from there.
11121 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11122 $as_echo_n "checking for Xkb... " >&6; }
11123 cat >conftest.$ac_ext <<_ACEOF
11124 /* confdefs.h. */
11125 _ACEOF
11126 cat confdefs.h >>conftest.$ac_ext
11127 cat >>conftest.$ac_ext <<_ACEOF
11128 /* end confdefs.h. */
11129 #include <X11/Xlib.h>
11130 #include <X11/XKBlib.h>
11131 int
11132 main ()
11133 {
11134 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11135 ;
11136 return 0;
11137 }
11138 _ACEOF
11139 rm -f conftest.$ac_objext conftest$ac_exeext
11140 if { (ac_try="$ac_link"
11141 case "(($ac_try" in
11142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143 *) ac_try_echo=$ac_try;;
11144 esac
11145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11146 $as_echo "$ac_try_echo") >&5
11147 (eval "$ac_link") 2>conftest.er1
11148 ac_status=$?
11149 grep -v '^ *+' conftest.er1 >conftest.err
11150 rm -f conftest.er1
11151 cat conftest.err >&5
11152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); } && {
11154 test -z "$ac_c_werror_flag" ||
11155 test ! -s conftest.err
11156 } && test -s conftest$ac_exeext && {
11157 test "$cross_compiling" = yes ||
11158 $as_test_x conftest$ac_exeext
11159 }; then
11160 emacs_xkb=yes
11161 else
11162 $as_echo "$as_me: failed program was:" >&5
11163 sed 's/^/| /' conftest.$ac_ext >&5
11164
11165 emacs_xkb=no
11166 fi
11167
11168 rm -rf conftest.dSYM
11169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11170 conftest$ac_exeext conftest.$ac_ext
11171 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11172 $as_echo "$emacs_xkb" >&6; }
11173 if test $emacs_xkb = yes; then
11174
11175 cat >>confdefs.h <<\_ACEOF
11176 #define HAVE_XKBGETKEYBOARD 1
11177 _ACEOF
11178
11179 fi
11180
11181
11182
11183
11184
11185 for ac_func in XrmSetDatabase XScreenResourceString \
11186 XScreenNumberOfScreen XSetWMProtocols
11187 do
11188 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11189 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11190 $as_echo_n "checking for $ac_func... " >&6; }
11191 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11192 $as_echo_n "(cached) " >&6
11193 else
11194 cat >conftest.$ac_ext <<_ACEOF
11195 /* confdefs.h. */
11196 _ACEOF
11197 cat confdefs.h >>conftest.$ac_ext
11198 cat >>conftest.$ac_ext <<_ACEOF
11199 /* end confdefs.h. */
11200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11202 #define $ac_func innocuous_$ac_func
11203
11204 /* System header to define __stub macros and hopefully few prototypes,
11205 which can conflict with char $ac_func (); below.
11206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11207 <limits.h> exists even on freestanding compilers. */
11208
11209 #ifdef __STDC__
11210 # include <limits.h>
11211 #else
11212 # include <assert.h>
11213 #endif
11214
11215 #undef $ac_func
11216
11217 /* Override any GCC internal prototype to avoid an error.
11218 Use char because int might match the return type of a GCC
11219 builtin and then its argument prototype would still apply. */
11220 #ifdef __cplusplus
11221 extern "C"
11222 #endif
11223 char $ac_func ();
11224 /* The GNU C library defines this for functions which it implements
11225 to always fail with ENOSYS. Some functions are actually named
11226 something starting with __ and the normal name is an alias. */
11227 #if defined __stub_$ac_func || defined __stub___$ac_func
11228 choke me
11229 #endif
11230
11231 int
11232 main ()
11233 {
11234 return $ac_func ();
11235 ;
11236 return 0;
11237 }
11238 _ACEOF
11239 rm -f conftest.$ac_objext conftest$ac_exeext
11240 if { (ac_try="$ac_link"
11241 case "(($ac_try" in
11242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11243 *) ac_try_echo=$ac_try;;
11244 esac
11245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11246 $as_echo "$ac_try_echo") >&5
11247 (eval "$ac_link") 2>conftest.er1
11248 ac_status=$?
11249 grep -v '^ *+' conftest.er1 >conftest.err
11250 rm -f conftest.er1
11251 cat conftest.err >&5
11252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); } && {
11254 test -z "$ac_c_werror_flag" ||
11255 test ! -s conftest.err
11256 } && test -s conftest$ac_exeext && {
11257 test "$cross_compiling" = yes ||
11258 $as_test_x conftest$ac_exeext
11259 }; then
11260 eval "$as_ac_var=yes"
11261 else
11262 $as_echo "$as_me: failed program was:" >&5
11263 sed 's/^/| /' conftest.$ac_ext >&5
11264
11265 eval "$as_ac_var=no"
11266 fi
11267
11268 rm -rf conftest.dSYM
11269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11270 conftest$ac_exeext conftest.$ac_ext
11271 fi
11272 ac_res=`eval 'as_val=${'$as_ac_var'}
11273 $as_echo "$as_val"'`
11274 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11275 $as_echo "$ac_res" >&6; }
11276 if test `eval 'as_val=${'$as_ac_var'}
11277 $as_echo "$as_val"'` = yes; then
11278 cat >>confdefs.h <<_ACEOF
11279 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11280 _ACEOF
11281
11282 fi
11283 done
11284
11285 fi
11286
11287 if test "${window_system}" = "x11"; then
11288 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11289 $as_echo_n "checking X11 version 6... " >&6; }
11290 if test "${emacs_cv_x11_version_6+set}" = set; then
11291 $as_echo_n "(cached) " >&6
11292 else
11293 cat >conftest.$ac_ext <<_ACEOF
11294 /* confdefs.h. */
11295 _ACEOF
11296 cat confdefs.h >>conftest.$ac_ext
11297 cat >>conftest.$ac_ext <<_ACEOF
11298 /* end confdefs.h. */
11299 #include <X11/Xlib.h>
11300 int
11301 main ()
11302 {
11303 #if XlibSpecificationRelease < 6
11304 fail;
11305 #endif
11306
11307 ;
11308 return 0;
11309 }
11310 _ACEOF
11311 rm -f conftest.$ac_objext conftest$ac_exeext
11312 if { (ac_try="$ac_link"
11313 case "(($ac_try" in
11314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11315 *) ac_try_echo=$ac_try;;
11316 esac
11317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11318 $as_echo "$ac_try_echo") >&5
11319 (eval "$ac_link") 2>conftest.er1
11320 ac_status=$?
11321 grep -v '^ *+' conftest.er1 >conftest.err
11322 rm -f conftest.er1
11323 cat conftest.err >&5
11324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); } && {
11326 test -z "$ac_c_werror_flag" ||
11327 test ! -s conftest.err
11328 } && test -s conftest$ac_exeext && {
11329 test "$cross_compiling" = yes ||
11330 $as_test_x conftest$ac_exeext
11331 }; then
11332 emacs_cv_x11_version_6=yes
11333 else
11334 $as_echo "$as_me: failed program was:" >&5
11335 sed 's/^/| /' conftest.$ac_ext >&5
11336
11337 emacs_cv_x11_version_6=no
11338 fi
11339
11340 rm -rf conftest.dSYM
11341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11342 conftest$ac_exeext conftest.$ac_ext
11343 fi
11344
11345 if test $emacs_cv_x11_version_6 = yes; then
11346 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11347 $as_echo "6 or newer" >&6; }
11348
11349 cat >>confdefs.h <<\_ACEOF
11350 #define HAVE_X11R6 1
11351 _ACEOF
11352
11353 else
11354 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11355 $as_echo "before 6" >&6; }
11356 fi
11357 fi
11358
11359
11360 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11361 HAVE_RSVG=no
11362 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
11363 if test "${with_rsvg}" != "no"; then
11364 RSVG_REQUIRED=2.11.0
11365 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11366
11367
11368 succeeded=no
11369
11370 # Extract the first word of "pkg-config", so it can be a program name with args.
11371 set dummy pkg-config; ac_word=$2
11372 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11373 $as_echo_n "checking for $ac_word... " >&6; }
11374 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11375 $as_echo_n "(cached) " >&6
11376 else
11377 case $PKG_CONFIG in
11378 [\\/]* | ?:[\\/]*)
11379 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11380 ;;
11381 *)
11382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11383 for as_dir in $PATH
11384 do
11385 IFS=$as_save_IFS
11386 test -z "$as_dir" && as_dir=.
11387 for ac_exec_ext in '' $ac_executable_extensions; do
11388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11389 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11390 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11391 break 2
11392 fi
11393 done
11394 done
11395 IFS=$as_save_IFS
11396
11397 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11398 ;;
11399 esac
11400 fi
11401 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11402 if test -n "$PKG_CONFIG"; then
11403 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11404 $as_echo "$PKG_CONFIG" >&6; }
11405 else
11406 { $as_echo "$as_me:$LINENO: result: no" >&5
11407 $as_echo "no" >&6; }
11408 fi
11409
11410
11411
11412 if test "$PKG_CONFIG" = "no" ; then
11413 :
11414 else
11415 PKG_CONFIG_MIN_VERSION=0.9.0
11416 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11417 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11418 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11419
11420 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11421 { $as_echo "$as_me:$LINENO: result: yes" >&5
11422 $as_echo "yes" >&6; }
11423 succeeded=yes
11424
11425 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11426 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11427 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11428 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11429 $as_echo "$RSVG_CFLAGS" >&6; }
11430
11431 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11432 $as_echo_n "checking RSVG_LIBS... " >&6; }
11433 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11434 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11435 $as_echo "$RSVG_LIBS" >&6; }
11436 else
11437 { $as_echo "$as_me:$LINENO: result: no" >&5
11438 $as_echo "no" >&6; }
11439 RSVG_CFLAGS=""
11440 RSVG_LIBS=""
11441 ## If we have a custom action on failure, don't print errors, but
11442 ## do set a variable so people can do so.
11443 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11444
11445 fi
11446
11447
11448
11449 else
11450 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11451 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11452 fi
11453 fi
11454
11455 if test $succeeded = yes; then
11456 :
11457 else
11458 :
11459 fi
11460
11461
11462
11463
11464 if test ".${RSVG_CFLAGS}" != "."; then
11465 HAVE_RSVG=yes
11466
11467 cat >>confdefs.h <<\_ACEOF
11468 #define HAVE_RSVG 1
11469 _ACEOF
11470
11471 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11472 LIBS="$RSVG_LIBS $LIBS"
11473 fi
11474 fi
11475 fi
11476
11477
11478 HAVE_GTK=no
11479 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11480 GLIB_REQUIRED=2.6
11481 GTK_REQUIRED=2.6
11482 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11483
11484
11485 succeeded=no
11486
11487 # Extract the first word of "pkg-config", so it can be a program name with args.
11488 set dummy pkg-config; ac_word=$2
11489 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11490 $as_echo_n "checking for $ac_word... " >&6; }
11491 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11492 $as_echo_n "(cached) " >&6
11493 else
11494 case $PKG_CONFIG in
11495 [\\/]* | ?:[\\/]*)
11496 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11497 ;;
11498 *)
11499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11500 for as_dir in $PATH
11501 do
11502 IFS=$as_save_IFS
11503 test -z "$as_dir" && as_dir=.
11504 for ac_exec_ext in '' $ac_executable_extensions; do
11505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11506 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11507 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11508 break 2
11509 fi
11510 done
11511 done
11512 IFS=$as_save_IFS
11513
11514 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11515 ;;
11516 esac
11517 fi
11518 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11519 if test -n "$PKG_CONFIG"; then
11520 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11521 $as_echo "$PKG_CONFIG" >&6; }
11522 else
11523 { $as_echo "$as_me:$LINENO: result: no" >&5
11524 $as_echo "no" >&6; }
11525 fi
11526
11527
11528
11529 if test "$PKG_CONFIG" = "no" ; then
11530 pkg_check_gtk=no
11531 else
11532 PKG_CONFIG_MIN_VERSION=0.9.0
11533 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11534 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11535 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11536
11537 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11538 { $as_echo "$as_me:$LINENO: result: yes" >&5
11539 $as_echo "yes" >&6; }
11540 succeeded=yes
11541
11542 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11543 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11544 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11545 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11546 $as_echo "$GTK_CFLAGS" >&6; }
11547
11548 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11549 $as_echo_n "checking GTK_LIBS... " >&6; }
11550 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11551 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11552 $as_echo "$GTK_LIBS" >&6; }
11553 else
11554 { $as_echo "$as_me:$LINENO: result: no" >&5
11555 $as_echo "no" >&6; }
11556 GTK_CFLAGS=""
11557 GTK_LIBS=""
11558 ## If we have a custom action on failure, don't print errors, but
11559 ## do set a variable so people can do so.
11560 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11561
11562 fi
11563
11564
11565
11566 else
11567 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11568 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11569 fi
11570 fi
11571
11572 if test $succeeded = yes; then
11573 pkg_check_gtk=yes
11574 else
11575 pkg_check_gtk=no
11576 fi
11577
11578 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11579 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11580 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11581 { (exit 1); exit 1; }; }
11582 fi
11583 fi
11584
11585
11586 GTK_OBJ=
11587 if test x"$pkg_check_gtk" = xyes; then
11588
11589
11590
11591 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11592 CFLAGS="$CFLAGS $GTK_CFLAGS"
11593 LIBS="$GTK_LIBS $LIBS"
11594 GTK_COMPILES=no
11595
11596 for ac_func in gtk_main
11597 do
11598 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11599 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11600 $as_echo_n "checking for $ac_func... " >&6; }
11601 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11602 $as_echo_n "(cached) " >&6
11603 else
11604 cat >conftest.$ac_ext <<_ACEOF
11605 /* confdefs.h. */
11606 _ACEOF
11607 cat confdefs.h >>conftest.$ac_ext
11608 cat >>conftest.$ac_ext <<_ACEOF
11609 /* end confdefs.h. */
11610 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11612 #define $ac_func innocuous_$ac_func
11613
11614 /* System header to define __stub macros and hopefully few prototypes,
11615 which can conflict with char $ac_func (); below.
11616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11617 <limits.h> exists even on freestanding compilers. */
11618
11619 #ifdef __STDC__
11620 # include <limits.h>
11621 #else
11622 # include <assert.h>
11623 #endif
11624
11625 #undef $ac_func
11626
11627 /* Override any GCC internal prototype to avoid an error.
11628 Use char because int might match the return type of a GCC
11629 builtin and then its argument prototype would still apply. */
11630 #ifdef __cplusplus
11631 extern "C"
11632 #endif
11633 char $ac_func ();
11634 /* The GNU C library defines this for functions which it implements
11635 to always fail with ENOSYS. Some functions are actually named
11636 something starting with __ and the normal name is an alias. */
11637 #if defined __stub_$ac_func || defined __stub___$ac_func
11638 choke me
11639 #endif
11640
11641 int
11642 main ()
11643 {
11644 return $ac_func ();
11645 ;
11646 return 0;
11647 }
11648 _ACEOF
11649 rm -f conftest.$ac_objext conftest$ac_exeext
11650 if { (ac_try="$ac_link"
11651 case "(($ac_try" in
11652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11653 *) ac_try_echo=$ac_try;;
11654 esac
11655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11656 $as_echo "$ac_try_echo") >&5
11657 (eval "$ac_link") 2>conftest.er1
11658 ac_status=$?
11659 grep -v '^ *+' conftest.er1 >conftest.err
11660 rm -f conftest.er1
11661 cat conftest.err >&5
11662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); } && {
11664 test -z "$ac_c_werror_flag" ||
11665 test ! -s conftest.err
11666 } && test -s conftest$ac_exeext && {
11667 test "$cross_compiling" = yes ||
11668 $as_test_x conftest$ac_exeext
11669 }; then
11670 eval "$as_ac_var=yes"
11671 else
11672 $as_echo "$as_me: failed program was:" >&5
11673 sed 's/^/| /' conftest.$ac_ext >&5
11674
11675 eval "$as_ac_var=no"
11676 fi
11677
11678 rm -rf conftest.dSYM
11679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11680 conftest$ac_exeext conftest.$ac_ext
11681 fi
11682 ac_res=`eval 'as_val=${'$as_ac_var'}
11683 $as_echo "$as_val"'`
11684 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11685 $as_echo "$ac_res" >&6; }
11686 if test `eval 'as_val=${'$as_ac_var'}
11687 $as_echo "$as_val"'` = yes; then
11688 cat >>confdefs.h <<_ACEOF
11689 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11690 _ACEOF
11691 GTK_COMPILES=yes
11692 fi
11693 done
11694
11695 if test "${GTK_COMPILES}" != "yes"; then
11696 if test "$USE_X_TOOLKIT" != "maybe"; then
11697 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11698 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11699 { (exit 1); exit 1; }; };
11700 fi
11701 else
11702 HAVE_GTK=yes
11703
11704 cat >>confdefs.h <<\_ACEOF
11705 #define USE_GTK 1
11706 _ACEOF
11707
11708 GTK_OBJ=gtkutil.o
11709 USE_X_TOOLKIT=none
11710 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11711 :
11712 else
11713 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11714 closing open displays. This is no problem if you just use
11715 one display, but if you use more than one and close one of them
11716 Emacs may crash." >&5
11717 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11718 closing open displays. This is no problem if you just use
11719 one display, but if you use more than one and close one of them
11720 Emacs may crash." >&2;}
11721 sleep 3
11722 fi
11723 fi
11724
11725 fi
11726
11727
11728
11729 if test "${HAVE_GTK}" = "yes"; then
11730
11731 if test "$with_toolkit_scroll_bars" != no; then
11732 with_toolkit_scroll_bars=yes
11733 fi
11734
11735 HAVE_GTK_MULTIDISPLAY=no
11736
11737 for ac_func in gdk_display_open
11738 do
11739 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11740 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11741 $as_echo_n "checking for $ac_func... " >&6; }
11742 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11743 $as_echo_n "(cached) " >&6
11744 else
11745 cat >conftest.$ac_ext <<_ACEOF
11746 /* confdefs.h. */
11747 _ACEOF
11748 cat confdefs.h >>conftest.$ac_ext
11749 cat >>conftest.$ac_ext <<_ACEOF
11750 /* end confdefs.h. */
11751 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11753 #define $ac_func innocuous_$ac_func
11754
11755 /* System header to define __stub macros and hopefully few prototypes,
11756 which can conflict with char $ac_func (); below.
11757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11758 <limits.h> exists even on freestanding compilers. */
11759
11760 #ifdef __STDC__
11761 # include <limits.h>
11762 #else
11763 # include <assert.h>
11764 #endif
11765
11766 #undef $ac_func
11767
11768 /* Override any GCC internal prototype to avoid an error.
11769 Use char because int might match the return type of a GCC
11770 builtin and then its argument prototype would still apply. */
11771 #ifdef __cplusplus
11772 extern "C"
11773 #endif
11774 char $ac_func ();
11775 /* The GNU C library defines this for functions which it implements
11776 to always fail with ENOSYS. Some functions are actually named
11777 something starting with __ and the normal name is an alias. */
11778 #if defined __stub_$ac_func || defined __stub___$ac_func
11779 choke me
11780 #endif
11781
11782 int
11783 main ()
11784 {
11785 return $ac_func ();
11786 ;
11787 return 0;
11788 }
11789 _ACEOF
11790 rm -f conftest.$ac_objext conftest$ac_exeext
11791 if { (ac_try="$ac_link"
11792 case "(($ac_try" in
11793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11794 *) ac_try_echo=$ac_try;;
11795 esac
11796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11797 $as_echo "$ac_try_echo") >&5
11798 (eval "$ac_link") 2>conftest.er1
11799 ac_status=$?
11800 grep -v '^ *+' conftest.er1 >conftest.err
11801 rm -f conftest.er1
11802 cat conftest.err >&5
11803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); } && {
11805 test -z "$ac_c_werror_flag" ||
11806 test ! -s conftest.err
11807 } && test -s conftest$ac_exeext && {
11808 test "$cross_compiling" = yes ||
11809 $as_test_x conftest$ac_exeext
11810 }; then
11811 eval "$as_ac_var=yes"
11812 else
11813 $as_echo "$as_me: failed program was:" >&5
11814 sed 's/^/| /' conftest.$ac_ext >&5
11815
11816 eval "$as_ac_var=no"
11817 fi
11818
11819 rm -rf conftest.dSYM
11820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11821 conftest$ac_exeext conftest.$ac_ext
11822 fi
11823 ac_res=`eval 'as_val=${'$as_ac_var'}
11824 $as_echo "$as_val"'`
11825 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11826 $as_echo "$ac_res" >&6; }
11827 if test `eval 'as_val=${'$as_ac_var'}
11828 $as_echo "$as_val"'` = yes; then
11829 cat >>confdefs.h <<_ACEOF
11830 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11831 _ACEOF
11832 HAVE_GTK_MULTIDISPLAY=yes
11833 fi
11834 done
11835
11836 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11837
11838 cat >>confdefs.h <<\_ACEOF
11839 #define HAVE_GTK_MULTIDISPLAY 1
11840 _ACEOF
11841
11842 fi
11843
11844 HAVE_GTK_FILE_SELECTION=no
11845 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
11846 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
11847 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11848 $as_echo_n "(cached) " >&6
11849 else
11850 cat >conftest.$ac_ext <<_ACEOF
11851 /* confdefs.h. */
11852 _ACEOF
11853 cat confdefs.h >>conftest.$ac_ext
11854 cat >>conftest.$ac_ext <<_ACEOF
11855 /* end confdefs.h. */
11856 $ac_includes_default
11857 #include <gtk/gtk.h>
11858
11859 int
11860 main ()
11861 {
11862 #ifndef GTK_TYPE_FILE_SELECTION
11863 (void) GTK_TYPE_FILE_SELECTION;
11864 #endif
11865
11866 ;
11867 return 0;
11868 }
11869 _ACEOF
11870 rm -f conftest.$ac_objext
11871 if { (ac_try="$ac_compile"
11872 case "(($ac_try" in
11873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11874 *) ac_try_echo=$ac_try;;
11875 esac
11876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11877 $as_echo "$ac_try_echo") >&5
11878 (eval "$ac_compile") 2>conftest.er1
11879 ac_status=$?
11880 grep -v '^ *+' conftest.er1 >conftest.err
11881 rm -f conftest.er1
11882 cat conftest.err >&5
11883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); } && {
11885 test -z "$ac_c_werror_flag" ||
11886 test ! -s conftest.err
11887 } && test -s conftest.$ac_objext; then
11888 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
11889 else
11890 $as_echo "$as_me: failed program was:" >&5
11891 sed 's/^/| /' conftest.$ac_ext >&5
11892
11893 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
11894 fi
11895
11896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11897 fi
11898 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
11899 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
11900 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
11901 HAVE_GTK_FILE_SELECTION=yes
11902 else
11903 HAVE_GTK_FILE_SELECTION=no
11904 fi
11905
11906 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11907
11908 for ac_func in gtk_file_selection_new
11909 do
11910 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11911 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11912 $as_echo_n "checking for $ac_func... " >&6; }
11913 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11914 $as_echo_n "(cached) " >&6
11915 else
11916 cat >conftest.$ac_ext <<_ACEOF
11917 /* confdefs.h. */
11918 _ACEOF
11919 cat confdefs.h >>conftest.$ac_ext
11920 cat >>conftest.$ac_ext <<_ACEOF
11921 /* end confdefs.h. */
11922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11924 #define $ac_func innocuous_$ac_func
11925
11926 /* System header to define __stub macros and hopefully few prototypes,
11927 which can conflict with char $ac_func (); below.
11928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11929 <limits.h> exists even on freestanding compilers. */
11930
11931 #ifdef __STDC__
11932 # include <limits.h>
11933 #else
11934 # include <assert.h>
11935 #endif
11936
11937 #undef $ac_func
11938
11939 /* Override any GCC internal prototype to avoid an error.
11940 Use char because int might match the return type of a GCC
11941 builtin and then its argument prototype would still apply. */
11942 #ifdef __cplusplus
11943 extern "C"
11944 #endif
11945 char $ac_func ();
11946 /* The GNU C library defines this for functions which it implements
11947 to always fail with ENOSYS. Some functions are actually named
11948 something starting with __ and the normal name is an alias. */
11949 #if defined __stub_$ac_func || defined __stub___$ac_func
11950 choke me
11951 #endif
11952
11953 int
11954 main ()
11955 {
11956 return $ac_func ();
11957 ;
11958 return 0;
11959 }
11960 _ACEOF
11961 rm -f conftest.$ac_objext conftest$ac_exeext
11962 if { (ac_try="$ac_link"
11963 case "(($ac_try" in
11964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11965 *) ac_try_echo=$ac_try;;
11966 esac
11967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11968 $as_echo "$ac_try_echo") >&5
11969 (eval "$ac_link") 2>conftest.er1
11970 ac_status=$?
11971 grep -v '^ *+' conftest.er1 >conftest.err
11972 rm -f conftest.er1
11973 cat conftest.err >&5
11974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); } && {
11976 test -z "$ac_c_werror_flag" ||
11977 test ! -s conftest.err
11978 } && test -s conftest$ac_exeext && {
11979 test "$cross_compiling" = yes ||
11980 $as_test_x conftest$ac_exeext
11981 }; then
11982 eval "$as_ac_var=yes"
11983 else
11984 $as_echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.$ac_ext >&5
11986
11987 eval "$as_ac_var=no"
11988 fi
11989
11990 rm -rf conftest.dSYM
11991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11992 conftest$ac_exeext conftest.$ac_ext
11993 fi
11994 ac_res=`eval 'as_val=${'$as_ac_var'}
11995 $as_echo "$as_val"'`
11996 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11997 $as_echo "$ac_res" >&6; }
11998 if test `eval 'as_val=${'$as_ac_var'}
11999 $as_echo "$as_val"'` = yes; then
12000 cat >>confdefs.h <<_ACEOF
12001 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12002 _ACEOF
12003 HAVE_GTK_FILE_SELECTION=yes
12004 else
12005 HAVE_GTK_FILE_SELECTION=no
12006 fi
12007 done
12008
12009 fi
12010
12011 HAVE_GTK_FILE_CHOOSER=no
12012 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12013 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12014 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12015 $as_echo_n "(cached) " >&6
12016 else
12017 cat >conftest.$ac_ext <<_ACEOF
12018 /* confdefs.h. */
12019 _ACEOF
12020 cat confdefs.h >>conftest.$ac_ext
12021 cat >>conftest.$ac_ext <<_ACEOF
12022 /* end confdefs.h. */
12023 $ac_includes_default
12024 #include <gtk/gtk.h>
12025
12026 int
12027 main ()
12028 {
12029 #ifndef GTK_TYPE_FILE_CHOOSER
12030 (void) GTK_TYPE_FILE_CHOOSER;
12031 #endif
12032
12033 ;
12034 return 0;
12035 }
12036 _ACEOF
12037 rm -f conftest.$ac_objext
12038 if { (ac_try="$ac_compile"
12039 case "(($ac_try" in
12040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12041 *) ac_try_echo=$ac_try;;
12042 esac
12043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12044 $as_echo "$ac_try_echo") >&5
12045 (eval "$ac_compile") 2>conftest.er1
12046 ac_status=$?
12047 grep -v '^ *+' conftest.er1 >conftest.err
12048 rm -f conftest.er1
12049 cat conftest.err >&5
12050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); } && {
12052 test -z "$ac_c_werror_flag" ||
12053 test ! -s conftest.err
12054 } && test -s conftest.$ac_objext; then
12055 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12056 else
12057 $as_echo "$as_me: failed program was:" >&5
12058 sed 's/^/| /' conftest.$ac_ext >&5
12059
12060 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12061 fi
12062
12063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12064 fi
12065 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12066 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12067 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
12068 HAVE_GTK_FILE_CHOOSER=yes
12069 else
12070 HAVE_GTK_FILE_CHOOSER=no
12071 fi
12072
12073 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12074
12075 for ac_func in gtk_file_chooser_dialog_new
12076 do
12077 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12078 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12079 $as_echo_n "checking for $ac_func... " >&6; }
12080 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12081 $as_echo_n "(cached) " >&6
12082 else
12083 cat >conftest.$ac_ext <<_ACEOF
12084 /* confdefs.h. */
12085 _ACEOF
12086 cat confdefs.h >>conftest.$ac_ext
12087 cat >>conftest.$ac_ext <<_ACEOF
12088 /* end confdefs.h. */
12089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12091 #define $ac_func innocuous_$ac_func
12092
12093 /* System header to define __stub macros and hopefully few prototypes,
12094 which can conflict with char $ac_func (); below.
12095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12096 <limits.h> exists even on freestanding compilers. */
12097
12098 #ifdef __STDC__
12099 # include <limits.h>
12100 #else
12101 # include <assert.h>
12102 #endif
12103
12104 #undef $ac_func
12105
12106 /* Override any GCC internal prototype to avoid an error.
12107 Use char because int might match the return type of a GCC
12108 builtin and then its argument prototype would still apply. */
12109 #ifdef __cplusplus
12110 extern "C"
12111 #endif
12112 char $ac_func ();
12113 /* The GNU C library defines this for functions which it implements
12114 to always fail with ENOSYS. Some functions are actually named
12115 something starting with __ and the normal name is an alias. */
12116 #if defined __stub_$ac_func || defined __stub___$ac_func
12117 choke me
12118 #endif
12119
12120 int
12121 main ()
12122 {
12123 return $ac_func ();
12124 ;
12125 return 0;
12126 }
12127 _ACEOF
12128 rm -f conftest.$ac_objext conftest$ac_exeext
12129 if { (ac_try="$ac_link"
12130 case "(($ac_try" in
12131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12132 *) ac_try_echo=$ac_try;;
12133 esac
12134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12135 $as_echo "$ac_try_echo") >&5
12136 (eval "$ac_link") 2>conftest.er1
12137 ac_status=$?
12138 grep -v '^ *+' conftest.er1 >conftest.err
12139 rm -f conftest.er1
12140 cat conftest.err >&5
12141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); } && {
12143 test -z "$ac_c_werror_flag" ||
12144 test ! -s conftest.err
12145 } && test -s conftest$ac_exeext && {
12146 test "$cross_compiling" = yes ||
12147 $as_test_x conftest$ac_exeext
12148 }; then
12149 eval "$as_ac_var=yes"
12150 else
12151 $as_echo "$as_me: failed program was:" >&5
12152 sed 's/^/| /' conftest.$ac_ext >&5
12153
12154 eval "$as_ac_var=no"
12155 fi
12156
12157 rm -rf conftest.dSYM
12158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12159 conftest$ac_exeext conftest.$ac_ext
12160 fi
12161 ac_res=`eval 'as_val=${'$as_ac_var'}
12162 $as_echo "$as_val"'`
12163 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12164 $as_echo "$ac_res" >&6; }
12165 if test `eval 'as_val=${'$as_ac_var'}
12166 $as_echo "$as_val"'` = yes; then
12167 cat >>confdefs.h <<_ACEOF
12168 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12169 _ACEOF
12170 HAVE_GTK_FILE_CHOOSER=yes
12171 else
12172 HAVE_GTK_FILE_CHOOSER=no
12173 fi
12174 done
12175
12176 fi
12177
12178 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12179 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12180
12181 cat >>confdefs.h <<\_ACEOF
12182 #define HAVE_GTK_FILE_BOTH 1
12183 _ACEOF
12184
12185 fi
12186
12187 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12188 HAVE_GTK_AND_PTHREAD=no
12189
12190 for ac_header in pthread.h
12191 do
12192 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12194 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12195 $as_echo_n "checking for $ac_header... " >&6; }
12196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12197 $as_echo_n "(cached) " >&6
12198 fi
12199 ac_res=`eval 'as_val=${'$as_ac_Header'}
12200 $as_echo "$as_val"'`
12201 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12202 $as_echo "$ac_res" >&6; }
12203 else
12204 # Is the header compilable?
12205 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12206 $as_echo_n "checking $ac_header usability... " >&6; }
12207 cat >conftest.$ac_ext <<_ACEOF
12208 /* confdefs.h. */
12209 _ACEOF
12210 cat confdefs.h >>conftest.$ac_ext
12211 cat >>conftest.$ac_ext <<_ACEOF
12212 /* end confdefs.h. */
12213 $ac_includes_default
12214 #include <$ac_header>
12215 _ACEOF
12216 rm -f conftest.$ac_objext
12217 if { (ac_try="$ac_compile"
12218 case "(($ac_try" in
12219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12220 *) ac_try_echo=$ac_try;;
12221 esac
12222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12223 $as_echo "$ac_try_echo") >&5
12224 (eval "$ac_compile") 2>conftest.er1
12225 ac_status=$?
12226 grep -v '^ *+' conftest.er1 >conftest.err
12227 rm -f conftest.er1
12228 cat conftest.err >&5
12229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); } && {
12231 test -z "$ac_c_werror_flag" ||
12232 test ! -s conftest.err
12233 } && test -s conftest.$ac_objext; then
12234 ac_header_compiler=yes
12235 else
12236 $as_echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.$ac_ext >&5
12238
12239 ac_header_compiler=no
12240 fi
12241
12242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12243 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12244 $as_echo "$ac_header_compiler" >&6; }
12245
12246 # Is the header present?
12247 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12248 $as_echo_n "checking $ac_header presence... " >&6; }
12249 cat >conftest.$ac_ext <<_ACEOF
12250 /* confdefs.h. */
12251 _ACEOF
12252 cat confdefs.h >>conftest.$ac_ext
12253 cat >>conftest.$ac_ext <<_ACEOF
12254 /* end confdefs.h. */
12255 #include <$ac_header>
12256 _ACEOF
12257 if { (ac_try="$ac_cpp conftest.$ac_ext"
12258 case "(($ac_try" in
12259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12260 *) ac_try_echo=$ac_try;;
12261 esac
12262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12263 $as_echo "$ac_try_echo") >&5
12264 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12265 ac_status=$?
12266 grep -v '^ *+' conftest.er1 >conftest.err
12267 rm -f conftest.er1
12268 cat conftest.err >&5
12269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); } >/dev/null && {
12271 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12272 test ! -s conftest.err
12273 }; then
12274 ac_header_preproc=yes
12275 else
12276 $as_echo "$as_me: failed program was:" >&5
12277 sed 's/^/| /' conftest.$ac_ext >&5
12278
12279 ac_header_preproc=no
12280 fi
12281
12282 rm -f conftest.err conftest.$ac_ext
12283 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12284 $as_echo "$ac_header_preproc" >&6; }
12285
12286 # So? What about this header?
12287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12288 yes:no: )
12289 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12290 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12292 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12293 ac_header_preproc=yes
12294 ;;
12295 no:yes:* )
12296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12297 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12299 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12300 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12301 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12302 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12303 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12304 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12305 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12306 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12307 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12308
12309 ;;
12310 esac
12311 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12312 $as_echo_n "checking for $ac_header... " >&6; }
12313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12314 $as_echo_n "(cached) " >&6
12315 else
12316 eval "$as_ac_Header=\$ac_header_preproc"
12317 fi
12318 ac_res=`eval 'as_val=${'$as_ac_Header'}
12319 $as_echo "$as_val"'`
12320 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12321 $as_echo "$ac_res" >&6; }
12322
12323 fi
12324 if test `eval 'as_val=${'$as_ac_Header'}
12325 $as_echo "$as_val"'` = yes; then
12326 cat >>confdefs.h <<_ACEOF
12327 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12328 _ACEOF
12329
12330 fi
12331
12332 done
12333
12334 if test "$ac_cv_header_pthread_h"; then
12335 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12336 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12337 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12338 $as_echo_n "(cached) " >&6
12339 else
12340 ac_check_lib_save_LIBS=$LIBS
12341 LIBS="-lpthread $LIBS"
12342 cat >conftest.$ac_ext <<_ACEOF
12343 /* confdefs.h. */
12344 _ACEOF
12345 cat confdefs.h >>conftest.$ac_ext
12346 cat >>conftest.$ac_ext <<_ACEOF
12347 /* end confdefs.h. */
12348
12349 /* Override any GCC internal prototype to avoid an error.
12350 Use char because int might match the return type of a GCC
12351 builtin and then its argument prototype would still apply. */
12352 #ifdef __cplusplus
12353 extern "C"
12354 #endif
12355 char pthread_self ();
12356 int
12357 main ()
12358 {
12359 return pthread_self ();
12360 ;
12361 return 0;
12362 }
12363 _ACEOF
12364 rm -f conftest.$ac_objext conftest$ac_exeext
12365 if { (ac_try="$ac_link"
12366 case "(($ac_try" in
12367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12368 *) ac_try_echo=$ac_try;;
12369 esac
12370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12371 $as_echo "$ac_try_echo") >&5
12372 (eval "$ac_link") 2>conftest.er1
12373 ac_status=$?
12374 grep -v '^ *+' conftest.er1 >conftest.err
12375 rm -f conftest.er1
12376 cat conftest.err >&5
12377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); } && {
12379 test -z "$ac_c_werror_flag" ||
12380 test ! -s conftest.err
12381 } && test -s conftest$ac_exeext && {
12382 test "$cross_compiling" = yes ||
12383 $as_test_x conftest$ac_exeext
12384 }; then
12385 ac_cv_lib_pthread_pthread_self=yes
12386 else
12387 $as_echo "$as_me: failed program was:" >&5
12388 sed 's/^/| /' conftest.$ac_ext >&5
12389
12390 ac_cv_lib_pthread_pthread_self=no
12391 fi
12392
12393 rm -rf conftest.dSYM
12394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12395 conftest$ac_exeext conftest.$ac_ext
12396 LIBS=$ac_check_lib_save_LIBS
12397 fi
12398 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12399 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12400 if test $ac_cv_lib_pthread_pthread_self = yes; then
12401 HAVE_GTK_AND_PTHREAD=yes
12402 fi
12403
12404 fi
12405 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12406 case "${canonical}" in
12407 *-hpux*) ;;
12408 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12409 esac
12410
12411 cat >>confdefs.h <<\_ACEOF
12412 #define HAVE_GTK_AND_PTHREAD 1
12413 _ACEOF
12414
12415 fi
12416 fi
12417 fi
12418
12419 HAVE_DBUS=no
12420 DBUS_OBJ=
12421 if test "${with_dbus}" = "yes"; then
12422
12423 succeeded=no
12424
12425 # Extract the first word of "pkg-config", so it can be a program name with args.
12426 set dummy pkg-config; ac_word=$2
12427 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12428 $as_echo_n "checking for $ac_word... " >&6; }
12429 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12430 $as_echo_n "(cached) " >&6
12431 else
12432 case $PKG_CONFIG in
12433 [\\/]* | ?:[\\/]*)
12434 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12435 ;;
12436 *)
12437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12438 for as_dir in $PATH
12439 do
12440 IFS=$as_save_IFS
12441 test -z "$as_dir" && as_dir=.
12442 for ac_exec_ext in '' $ac_executable_extensions; do
12443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12444 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12445 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12446 break 2
12447 fi
12448 done
12449 done
12450 IFS=$as_save_IFS
12451
12452 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12453 ;;
12454 esac
12455 fi
12456 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12457 if test -n "$PKG_CONFIG"; then
12458 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12459 $as_echo "$PKG_CONFIG" >&6; }
12460 else
12461 { $as_echo "$as_me:$LINENO: result: no" >&5
12462 $as_echo "no" >&6; }
12463 fi
12464
12465
12466
12467 if test "$PKG_CONFIG" = "no" ; then
12468 HAVE_DBUS=no
12469 else
12470 PKG_CONFIG_MIN_VERSION=0.9.0
12471 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12472 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12473 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12474
12475 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12476 { $as_echo "$as_me:$LINENO: result: yes" >&5
12477 $as_echo "yes" >&6; }
12478 succeeded=yes
12479
12480 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12481 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12482 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12483 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12484 $as_echo "$DBUS_CFLAGS" >&6; }
12485
12486 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12487 $as_echo_n "checking DBUS_LIBS... " >&6; }
12488 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12489 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12490 $as_echo "$DBUS_LIBS" >&6; }
12491 else
12492 { $as_echo "$as_me:$LINENO: result: no" >&5
12493 $as_echo "no" >&6; }
12494 DBUS_CFLAGS=""
12495 DBUS_LIBS=""
12496 ## If we have a custom action on failure, don't print errors, but
12497 ## do set a variable so people can do so.
12498 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12499
12500 fi
12501
12502
12503
12504 else
12505 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12506 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12507 fi
12508 fi
12509
12510 if test $succeeded = yes; then
12511 HAVE_DBUS=yes
12512 else
12513 HAVE_DBUS=no
12514 fi
12515
12516 if test "$HAVE_DBUS" = yes; then
12517 LIBS="$LIBS $DBUS_LIBS"
12518
12519 cat >>confdefs.h <<\_ACEOF
12520 #define HAVE_DBUS 1
12521 _ACEOF
12522
12523
12524 for ac_func in dbus_watch_get_unix_fd
12525 do
12526 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12527 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12528 $as_echo_n "checking for $ac_func... " >&6; }
12529 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12530 $as_echo_n "(cached) " >&6
12531 else
12532 cat >conftest.$ac_ext <<_ACEOF
12533 /* confdefs.h. */
12534 _ACEOF
12535 cat confdefs.h >>conftest.$ac_ext
12536 cat >>conftest.$ac_ext <<_ACEOF
12537 /* end confdefs.h. */
12538 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12540 #define $ac_func innocuous_$ac_func
12541
12542 /* System header to define __stub macros and hopefully few prototypes,
12543 which can conflict with char $ac_func (); below.
12544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12545 <limits.h> exists even on freestanding compilers. */
12546
12547 #ifdef __STDC__
12548 # include <limits.h>
12549 #else
12550 # include <assert.h>
12551 #endif
12552
12553 #undef $ac_func
12554
12555 /* Override any GCC internal prototype to avoid an error.
12556 Use char because int might match the return type of a GCC
12557 builtin and then its argument prototype would still apply. */
12558 #ifdef __cplusplus
12559 extern "C"
12560 #endif
12561 char $ac_func ();
12562 /* The GNU C library defines this for functions which it implements
12563 to always fail with ENOSYS. Some functions are actually named
12564 something starting with __ and the normal name is an alias. */
12565 #if defined __stub_$ac_func || defined __stub___$ac_func
12566 choke me
12567 #endif
12568
12569 int
12570 main ()
12571 {
12572 return $ac_func ();
12573 ;
12574 return 0;
12575 }
12576 _ACEOF
12577 rm -f conftest.$ac_objext conftest$ac_exeext
12578 if { (ac_try="$ac_link"
12579 case "(($ac_try" in
12580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12581 *) ac_try_echo=$ac_try;;
12582 esac
12583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12584 $as_echo "$ac_try_echo") >&5
12585 (eval "$ac_link") 2>conftest.er1
12586 ac_status=$?
12587 grep -v '^ *+' conftest.er1 >conftest.err
12588 rm -f conftest.er1
12589 cat conftest.err >&5
12590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); } && {
12592 test -z "$ac_c_werror_flag" ||
12593 test ! -s conftest.err
12594 } && test -s conftest$ac_exeext && {
12595 test "$cross_compiling" = yes ||
12596 $as_test_x conftest$ac_exeext
12597 }; then
12598 eval "$as_ac_var=yes"
12599 else
12600 $as_echo "$as_me: failed program was:" >&5
12601 sed 's/^/| /' conftest.$ac_ext >&5
12602
12603 eval "$as_ac_var=no"
12604 fi
12605
12606 rm -rf conftest.dSYM
12607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12608 conftest$ac_exeext conftest.$ac_ext
12609 fi
12610 ac_res=`eval 'as_val=${'$as_ac_var'}
12611 $as_echo "$as_val"'`
12612 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12613 $as_echo "$ac_res" >&6; }
12614 if test `eval 'as_val=${'$as_ac_var'}
12615 $as_echo "$as_val"'` = yes; then
12616 cat >>confdefs.h <<_ACEOF
12617 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12618 _ACEOF
12619
12620 fi
12621 done
12622
12623 DBUS_OBJ=dbusbind.o
12624 fi
12625 fi
12626
12627
12628 HAVE_GCONF=no
12629 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12630
12631 succeeded=no
12632
12633 # Extract the first word of "pkg-config", so it can be a program name with args.
12634 set dummy pkg-config; ac_word=$2
12635 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12636 $as_echo_n "checking for $ac_word... " >&6; }
12637 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12638 $as_echo_n "(cached) " >&6
12639 else
12640 case $PKG_CONFIG in
12641 [\\/]* | ?:[\\/]*)
12642 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12643 ;;
12644 *)
12645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12646 for as_dir in $PATH
12647 do
12648 IFS=$as_save_IFS
12649 test -z "$as_dir" && as_dir=.
12650 for ac_exec_ext in '' $ac_executable_extensions; do
12651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12652 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12653 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12654 break 2
12655 fi
12656 done
12657 done
12658 IFS=$as_save_IFS
12659
12660 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12661 ;;
12662 esac
12663 fi
12664 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12665 if test -n "$PKG_CONFIG"; then
12666 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12667 $as_echo "$PKG_CONFIG" >&6; }
12668 else
12669 { $as_echo "$as_me:$LINENO: result: no" >&5
12670 $as_echo "no" >&6; }
12671 fi
12672
12673
12674
12675 if test "$PKG_CONFIG" = "no" ; then
12676 HAVE_GCONF=no
12677 else
12678 PKG_CONFIG_MIN_VERSION=0.9.0
12679 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12680 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
12681 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12682
12683 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
12684 { $as_echo "$as_me:$LINENO: result: yes" >&5
12685 $as_echo "yes" >&6; }
12686 succeeded=yes
12687
12688 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
12689 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
12690 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12691 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
12692 $as_echo "$GCONF_CFLAGS" >&6; }
12693
12694 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
12695 $as_echo_n "checking GCONF_LIBS... " >&6; }
12696 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12697 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
12698 $as_echo "$GCONF_LIBS" >&6; }
12699 else
12700 { $as_echo "$as_me:$LINENO: result: no" >&5
12701 $as_echo "no" >&6; }
12702 GCONF_CFLAGS=""
12703 GCONF_LIBS=""
12704 ## If we have a custom action on failure, don't print errors, but
12705 ## do set a variable so people can do so.
12706 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
12707
12708 fi
12709
12710
12711
12712 else
12713 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12714 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12715 fi
12716 fi
12717
12718 if test $succeeded = yes; then
12719 HAVE_GCONF=yes
12720 else
12721 HAVE_GCONF=no
12722 fi
12723
12724 if test "$HAVE_GCONF" = yes; then
12725
12726 cat >>confdefs.h <<\_ACEOF
12727 #define HAVE_GCONF 1
12728 _ACEOF
12729
12730 fi
12731 fi
12732
12733 HAVE_LIBSELINUX=no
12734 LIBSELINUX_LIBS=
12735 if test "${with_selinux}" = "yes"; then
12736 { $as_echo "$as_me:$LINENO: checking for lgetfilecon in -lselinux" >&5
12737 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
12738 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then
12739 $as_echo_n "(cached) " >&6
12740 else
12741 ac_check_lib_save_LIBS=$LIBS
12742 LIBS="-lselinux $LIBS"
12743 cat >conftest.$ac_ext <<_ACEOF
12744 /* confdefs.h. */
12745 _ACEOF
12746 cat confdefs.h >>conftest.$ac_ext
12747 cat >>conftest.$ac_ext <<_ACEOF
12748 /* end confdefs.h. */
12749
12750 /* Override any GCC internal prototype to avoid an error.
12751 Use char because int might match the return type of a GCC
12752 builtin and then its argument prototype would still apply. */
12753 #ifdef __cplusplus
12754 extern "C"
12755 #endif
12756 char lgetfilecon ();
12757 int
12758 main ()
12759 {
12760 return lgetfilecon ();
12761 ;
12762 return 0;
12763 }
12764 _ACEOF
12765 rm -f conftest.$ac_objext conftest$ac_exeext
12766 if { (ac_try="$ac_link"
12767 case "(($ac_try" in
12768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12769 *) ac_try_echo=$ac_try;;
12770 esac
12771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12772 $as_echo "$ac_try_echo") >&5
12773 (eval "$ac_link") 2>conftest.er1
12774 ac_status=$?
12775 grep -v '^ *+' conftest.er1 >conftest.err
12776 rm -f conftest.er1
12777 cat conftest.err >&5
12778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); } && {
12780 test -z "$ac_c_werror_flag" ||
12781 test ! -s conftest.err
12782 } && test -s conftest$ac_exeext && {
12783 test "$cross_compiling" = yes ||
12784 $as_test_x conftest$ac_exeext
12785 }; then
12786 ac_cv_lib_selinux_lgetfilecon=yes
12787 else
12788 $as_echo "$as_me: failed program was:" >&5
12789 sed 's/^/| /' conftest.$ac_ext >&5
12790
12791 ac_cv_lib_selinux_lgetfilecon=no
12792 fi
12793
12794 rm -rf conftest.dSYM
12795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12796 conftest$ac_exeext conftest.$ac_ext
12797 LIBS=$ac_check_lib_save_LIBS
12798 fi
12799 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_lgetfilecon" >&5
12800 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
12801 if test $ac_cv_lib_selinux_lgetfilecon = yes; then
12802 HAVE_LIBSELINUX=yes
12803 else
12804 HAVE_LIBSELINUX=no
12805 fi
12806
12807 if test "$HAVE_LIBSELINUX" = yes; then
12808
12809 cat >>confdefs.h <<\_ACEOF
12810 #define HAVE_LIBSELINUX 1
12811 _ACEOF
12812
12813 LIBSELINUX_LIBS=-lselinux
12814 fi
12815 fi
12816
12817
12818 HAVE_XAW3D=no
12819 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12820 if test "$with_xaw3d" != no; then
12821 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
12822 $as_echo_n "checking for xaw3d... " >&6; }
12823 if test "${emacs_cv_xaw3d+set}" = set; then
12824 $as_echo_n "(cached) " >&6
12825 else
12826 cat >conftest.$ac_ext <<_ACEOF
12827 /* confdefs.h. */
12828 _ACEOF
12829 cat confdefs.h >>conftest.$ac_ext
12830 cat >>conftest.$ac_ext <<_ACEOF
12831 /* end confdefs.h. */
12832
12833 #include <X11/Intrinsic.h>
12834 #include <X11/Xaw3d/Simple.h>
12835 int
12836 main ()
12837 {
12838
12839 ;
12840 return 0;
12841 }
12842 _ACEOF
12843 rm -f conftest.$ac_objext conftest$ac_exeext
12844 if { (ac_try="$ac_link"
12845 case "(($ac_try" in
12846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12847 *) ac_try_echo=$ac_try;;
12848 esac
12849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12850 $as_echo "$ac_try_echo") >&5
12851 (eval "$ac_link") 2>conftest.er1
12852 ac_status=$?
12853 grep -v '^ *+' conftest.er1 >conftest.err
12854 rm -f conftest.er1
12855 cat conftest.err >&5
12856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); } && {
12858 test -z "$ac_c_werror_flag" ||
12859 test ! -s conftest.err
12860 } && test -s conftest$ac_exeext && {
12861 test "$cross_compiling" = yes ||
12862 $as_test_x conftest$ac_exeext
12863 }; then
12864 emacs_cv_xaw3d=yes
12865 else
12866 $as_echo "$as_me: failed program was:" >&5
12867 sed 's/^/| /' conftest.$ac_ext >&5
12868
12869 emacs_cv_xaw3d=no
12870 fi
12871
12872 rm -rf conftest.dSYM
12873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12874 conftest$ac_exeext conftest.$ac_ext
12875 fi
12876
12877 else
12878 emacs_cv_xaw3d=no
12879 fi
12880 if test $emacs_cv_xaw3d = yes; then
12881 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12882 $as_echo "yes; using Lucid toolkit" >&6; }
12883 USE_X_TOOLKIT=LUCID
12884 HAVE_XAW3D=yes
12885
12886 cat >>confdefs.h <<\_ACEOF
12887 #define HAVE_XAW3D 1
12888 _ACEOF
12889
12890 else
12891 { $as_echo "$as_me:$LINENO: result: no" >&5
12892 $as_echo "no" >&6; }
12893 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
12894 $as_echo_n "checking for libXaw... " >&6; }
12895 if test "${emacs_cv_xaw+set}" = set; then
12896 $as_echo_n "(cached) " >&6
12897 else
12898 cat >conftest.$ac_ext <<_ACEOF
12899 /* confdefs.h. */
12900 _ACEOF
12901 cat confdefs.h >>conftest.$ac_ext
12902 cat >>conftest.$ac_ext <<_ACEOF
12903 /* end confdefs.h. */
12904
12905 #include <X11/Intrinsic.h>
12906 #include <X11/Xaw/Simple.h>
12907 int
12908 main ()
12909 {
12910
12911 ;
12912 return 0;
12913 }
12914 _ACEOF
12915 rm -f conftest.$ac_objext conftest$ac_exeext
12916 if { (ac_try="$ac_link"
12917 case "(($ac_try" in
12918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12919 *) ac_try_echo=$ac_try;;
12920 esac
12921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12922 $as_echo "$ac_try_echo") >&5
12923 (eval "$ac_link") 2>conftest.er1
12924 ac_status=$?
12925 grep -v '^ *+' conftest.er1 >conftest.err
12926 rm -f conftest.er1
12927 cat conftest.err >&5
12928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); } && {
12930 test -z "$ac_c_werror_flag" ||
12931 test ! -s conftest.err
12932 } && test -s conftest$ac_exeext && {
12933 test "$cross_compiling" = yes ||
12934 $as_test_x conftest$ac_exeext
12935 }; then
12936 emacs_cv_xaw=yes
12937 else
12938 $as_echo "$as_me: failed program was:" >&5
12939 sed 's/^/| /' conftest.$ac_ext >&5
12940
12941 emacs_cv_xaw=no
12942 fi
12943
12944 rm -rf conftest.dSYM
12945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12946 conftest$ac_exeext conftest.$ac_ext
12947 fi
12948
12949 if test $emacs_cv_xaw = yes; then
12950 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12951 $as_echo "yes; using Lucid toolkit" >&6; }
12952 USE_X_TOOLKIT=LUCID
12953 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12954 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12955 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12956 { (exit 1); exit 1; }; }
12957 else
12958 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12959 $as_echo "no; do not use toolkit by default" >&6; }
12960 USE_X_TOOLKIT=none
12961 fi
12962 fi
12963 fi
12964
12965 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12966
12967 if test "${USE_X_TOOLKIT}" != "none"; then
12968 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12969 $as_echo_n "checking X11 toolkit version... " >&6; }
12970 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12971 $as_echo_n "(cached) " >&6
12972 else
12973 cat >conftest.$ac_ext <<_ACEOF
12974 /* confdefs.h. */
12975 _ACEOF
12976 cat confdefs.h >>conftest.$ac_ext
12977 cat >>conftest.$ac_ext <<_ACEOF
12978 /* end confdefs.h. */
12979 #include <X11/Intrinsic.h>
12980 int
12981 main ()
12982 {
12983 #if XtSpecificationRelease < 6
12984 fail;
12985 #endif
12986
12987 ;
12988 return 0;
12989 }
12990 _ACEOF
12991 rm -f conftest.$ac_objext conftest$ac_exeext
12992 if { (ac_try="$ac_link"
12993 case "(($ac_try" in
12994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12995 *) ac_try_echo=$ac_try;;
12996 esac
12997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12998 $as_echo "$ac_try_echo") >&5
12999 (eval "$ac_link") 2>conftest.er1
13000 ac_status=$?
13001 grep -v '^ *+' conftest.er1 >conftest.err
13002 rm -f conftest.er1
13003 cat conftest.err >&5
13004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); } && {
13006 test -z "$ac_c_werror_flag" ||
13007 test ! -s conftest.err
13008 } && test -s conftest$ac_exeext && {
13009 test "$cross_compiling" = yes ||
13010 $as_test_x conftest$ac_exeext
13011 }; then
13012 emacs_cv_x11_toolkit_version_6=yes
13013 else
13014 $as_echo "$as_me: failed program was:" >&5
13015 sed 's/^/| /' conftest.$ac_ext >&5
13016
13017 emacs_cv_x11_toolkit_version_6=no
13018 fi
13019
13020 rm -rf conftest.dSYM
13021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13022 conftest$ac_exeext conftest.$ac_ext
13023 fi
13024
13025 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
13026 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13027 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
13028 $as_echo "6 or newer" >&6; }
13029
13030 cat >>confdefs.h <<\_ACEOF
13031 #define HAVE_X11XTR6 1
13032 _ACEOF
13033
13034 else
13035 { $as_echo "$as_me:$LINENO: result: before 6" >&5
13036 $as_echo "before 6" >&6; }
13037 fi
13038
13039 OLDLIBS="$LIBS"
13040 if test x$HAVE_X11XTR6 = xyes; then
13041 LIBS="-lXt -lSM -lICE $LIBS"
13042 else
13043 LIBS="-lXt $LIBS"
13044 fi
13045
13046 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13047 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
13048 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13049 $as_echo_n "(cached) " >&6
13050 else
13051 ac_check_lib_save_LIBS=$LIBS
13052 LIBS="-lXmu $LIBS"
13053 cat >conftest.$ac_ext <<_ACEOF
13054 /* confdefs.h. */
13055 _ACEOF
13056 cat confdefs.h >>conftest.$ac_ext
13057 cat >>conftest.$ac_ext <<_ACEOF
13058 /* end confdefs.h. */
13059
13060 /* Override any GCC internal prototype to avoid an error.
13061 Use char because int might match the return type of a GCC
13062 builtin and then its argument prototype would still apply. */
13063 #ifdef __cplusplus
13064 extern "C"
13065 #endif
13066 char XmuConvertStandardSelection ();
13067 int
13068 main ()
13069 {
13070 return XmuConvertStandardSelection ();
13071 ;
13072 return 0;
13073 }
13074 _ACEOF
13075 rm -f conftest.$ac_objext conftest$ac_exeext
13076 if { (ac_try="$ac_link"
13077 case "(($ac_try" in
13078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13079 *) ac_try_echo=$ac_try;;
13080 esac
13081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13082 $as_echo "$ac_try_echo") >&5
13083 (eval "$ac_link") 2>conftest.er1
13084 ac_status=$?
13085 grep -v '^ *+' conftest.er1 >conftest.err
13086 rm -f conftest.er1
13087 cat conftest.err >&5
13088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089 (exit $ac_status); } && {
13090 test -z "$ac_c_werror_flag" ||
13091 test ! -s conftest.err
13092 } && test -s conftest$ac_exeext && {
13093 test "$cross_compiling" = yes ||
13094 $as_test_x conftest$ac_exeext
13095 }; then
13096 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13097 else
13098 $as_echo "$as_me: failed program was:" >&5
13099 sed 's/^/| /' conftest.$ac_ext >&5
13100
13101 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13102 fi
13103
13104 rm -rf conftest.dSYM
13105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13106 conftest$ac_exeext conftest.$ac_ext
13107 LIBS=$ac_check_lib_save_LIBS
13108 fi
13109 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13110 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13111 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
13112 cat >>confdefs.h <<_ACEOF
13113 #define HAVE_LIBXMU 1
13114 _ACEOF
13115
13116 LIBS="-lXmu $LIBS"
13117
13118 fi
13119
13120 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13121 fi
13122
13123 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13124 if test "${HAVE_X11}" = "yes"; then
13125 if test "${USE_X_TOOLKIT}" != "none"; then
13126
13127 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13128 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13129 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13130 $as_echo_n "(cached) " >&6
13131 else
13132 ac_check_lib_save_LIBS=$LIBS
13133 LIBS="-lXext $LIBS"
13134 cat >conftest.$ac_ext <<_ACEOF
13135 /* confdefs.h. */
13136 _ACEOF
13137 cat confdefs.h >>conftest.$ac_ext
13138 cat >>conftest.$ac_ext <<_ACEOF
13139 /* end confdefs.h. */
13140
13141 /* Override any GCC internal prototype to avoid an error.
13142 Use char because int might match the return type of a GCC
13143 builtin and then its argument prototype would still apply. */
13144 #ifdef __cplusplus
13145 extern "C"
13146 #endif
13147 char XShapeQueryExtension ();
13148 int
13149 main ()
13150 {
13151 return XShapeQueryExtension ();
13152 ;
13153 return 0;
13154 }
13155 _ACEOF
13156 rm -f conftest.$ac_objext conftest$ac_exeext
13157 if { (ac_try="$ac_link"
13158 case "(($ac_try" in
13159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13160 *) ac_try_echo=$ac_try;;
13161 esac
13162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13163 $as_echo "$ac_try_echo") >&5
13164 (eval "$ac_link") 2>conftest.er1
13165 ac_status=$?
13166 grep -v '^ *+' conftest.er1 >conftest.err
13167 rm -f conftest.er1
13168 cat conftest.err >&5
13169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); } && {
13171 test -z "$ac_c_werror_flag" ||
13172 test ! -s conftest.err
13173 } && test -s conftest$ac_exeext && {
13174 test "$cross_compiling" = yes ||
13175 $as_test_x conftest$ac_exeext
13176 }; then
13177 ac_cv_lib_Xext_XShapeQueryExtension=yes
13178 else
13179 $as_echo "$as_me: failed program was:" >&5
13180 sed 's/^/| /' conftest.$ac_ext >&5
13181
13182 ac_cv_lib_Xext_XShapeQueryExtension=no
13183 fi
13184
13185 rm -rf conftest.dSYM
13186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13187 conftest$ac_exeext conftest.$ac_ext
13188 LIBS=$ac_check_lib_save_LIBS
13189 fi
13190 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13191 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13192 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13193 cat >>confdefs.h <<_ACEOF
13194 #define HAVE_LIBXEXT 1
13195 _ACEOF
13196
13197 LIBS="-lXext $LIBS"
13198
13199 fi
13200
13201 fi
13202 fi
13203
13204 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13205 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13206 $as_echo_n "checking for Motif version 2.1... " >&6; }
13207 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13208 $as_echo_n "(cached) " >&6
13209 else
13210 cat >conftest.$ac_ext <<_ACEOF
13211 /* confdefs.h. */
13212 _ACEOF
13213 cat confdefs.h >>conftest.$ac_ext
13214 cat >>conftest.$ac_ext <<_ACEOF
13215 /* end confdefs.h. */
13216 #include <Xm/Xm.h>
13217 int
13218 main ()
13219 {
13220 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13221 int x = 5;
13222 #else
13223 Motif version prior to 2.1.
13224 #endif
13225 ;
13226 return 0;
13227 }
13228 _ACEOF
13229 rm -f conftest.$ac_objext
13230 if { (ac_try="$ac_compile"
13231 case "(($ac_try" in
13232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13233 *) ac_try_echo=$ac_try;;
13234 esac
13235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13236 $as_echo "$ac_try_echo") >&5
13237 (eval "$ac_compile") 2>conftest.er1
13238 ac_status=$?
13239 grep -v '^ *+' conftest.er1 >conftest.err
13240 rm -f conftest.er1
13241 cat conftest.err >&5
13242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243 (exit $ac_status); } && {
13244 test -z "$ac_c_werror_flag" ||
13245 test ! -s conftest.err
13246 } && test -s conftest.$ac_objext; then
13247 emacs_cv_motif_version_2_1=yes
13248 else
13249 $as_echo "$as_me: failed program was:" >&5
13250 sed 's/^/| /' conftest.$ac_ext >&5
13251
13252 emacs_cv_motif_version_2_1=no
13253 fi
13254
13255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13256 fi
13257 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13258 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13259 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
13260 if test $emacs_cv_motif_version_2_1 = yes; then
13261 HAVE_LIBXP=no
13262
13263 cat >>confdefs.h <<\_ACEOF
13264 #define HAVE_MOTIF_2_1 1
13265 _ACEOF
13266
13267 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13268 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13269 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13270 $as_echo_n "(cached) " >&6
13271 else
13272 ac_check_lib_save_LIBS=$LIBS
13273 LIBS="-lXp $LIBS"
13274 cat >conftest.$ac_ext <<_ACEOF
13275 /* confdefs.h. */
13276 _ACEOF
13277 cat confdefs.h >>conftest.$ac_ext
13278 cat >>conftest.$ac_ext <<_ACEOF
13279 /* end confdefs.h. */
13280
13281 /* Override any GCC internal prototype to avoid an error.
13282 Use char because int might match the return type of a GCC
13283 builtin and then its argument prototype would still apply. */
13284 #ifdef __cplusplus
13285 extern "C"
13286 #endif
13287 char XpCreateContext ();
13288 int
13289 main ()
13290 {
13291 return XpCreateContext ();
13292 ;
13293 return 0;
13294 }
13295 _ACEOF
13296 rm -f conftest.$ac_objext conftest$ac_exeext
13297 if { (ac_try="$ac_link"
13298 case "(($ac_try" in
13299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13300 *) ac_try_echo=$ac_try;;
13301 esac
13302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13303 $as_echo "$ac_try_echo") >&5
13304 (eval "$ac_link") 2>conftest.er1
13305 ac_status=$?
13306 grep -v '^ *+' conftest.er1 >conftest.err
13307 rm -f conftest.er1
13308 cat conftest.err >&5
13309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310 (exit $ac_status); } && {
13311 test -z "$ac_c_werror_flag" ||
13312 test ! -s conftest.err
13313 } && test -s conftest$ac_exeext && {
13314 test "$cross_compiling" = yes ||
13315 $as_test_x conftest$ac_exeext
13316 }; then
13317 ac_cv_lib_Xp_XpCreateContext=yes
13318 else
13319 $as_echo "$as_me: failed program was:" >&5
13320 sed 's/^/| /' conftest.$ac_ext >&5
13321
13322 ac_cv_lib_Xp_XpCreateContext=no
13323 fi
13324
13325 rm -rf conftest.dSYM
13326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13327 conftest$ac_exeext conftest.$ac_ext
13328 LIBS=$ac_check_lib_save_LIBS
13329 fi
13330 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13331 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13332 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13333 HAVE_LIBXP=yes
13334 fi
13335
13336 if test ${HAVE_LIBXP} = yes; then
13337
13338 cat >>confdefs.h <<\_ACEOF
13339 #define HAVE_LIBXP 1
13340 _ACEOF
13341
13342 fi
13343 else
13344 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13345 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13346 if test "${emacs_cv_lesstif+set}" = set; then
13347 $as_echo_n "(cached) " >&6
13348 else
13349 # We put this in CFLAGS temporarily to precede other -I options
13350 # that might be in CFLAGS temporarily.
13351 # We put this in CPPFLAGS where it precedes the other -I options.
13352 OLD_CPPFLAGS=$CPPFLAGS
13353 OLD_CFLAGS=$CFLAGS
13354 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13355 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13356 cat >conftest.$ac_ext <<_ACEOF
13357 /* confdefs.h. */
13358 _ACEOF
13359 cat confdefs.h >>conftest.$ac_ext
13360 cat >>conftest.$ac_ext <<_ACEOF
13361 /* end confdefs.h. */
13362 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13363 int
13364 main ()
13365 {
13366 int x = 5;
13367 ;
13368 return 0;
13369 }
13370 _ACEOF
13371 rm -f conftest.$ac_objext
13372 if { (ac_try="$ac_compile"
13373 case "(($ac_try" in
13374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13375 *) ac_try_echo=$ac_try;;
13376 esac
13377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13378 $as_echo "$ac_try_echo") >&5
13379 (eval "$ac_compile") 2>conftest.er1
13380 ac_status=$?
13381 grep -v '^ *+' conftest.er1 >conftest.err
13382 rm -f conftest.er1
13383 cat conftest.err >&5
13384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); } && {
13386 test -z "$ac_c_werror_flag" ||
13387 test ! -s conftest.err
13388 } && test -s conftest.$ac_objext; then
13389 emacs_cv_lesstif=yes
13390 else
13391 $as_echo "$as_me: failed program was:" >&5
13392 sed 's/^/| /' conftest.$ac_ext >&5
13393
13394 emacs_cv_lesstif=no
13395 fi
13396
13397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13398 fi
13399 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13400 $as_echo "$emacs_cv_lesstif" >&6; }
13401 if test $emacs_cv_lesstif = yes; then
13402 # Make sure this -I option remains in CPPFLAGS after it is set
13403 # back to REAL_CPPFLAGS.
13404 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13405 # have those other -I options anyway. Ultimately, having this
13406 # directory ultimately in CPPFLAGS will be enough.
13407 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13408 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13409 else
13410 CFLAGS=$OLD_CFLAGS
13411 CPPFLAGS=$OLD_CPPFLAGS
13412 fi
13413 fi
13414 fi
13415
13416
13417
13418 USE_TOOLKIT_SCROLL_BARS=no
13419 if test "${with_toolkit_scroll_bars}" != "no"; then
13420 if test "${USE_X_TOOLKIT}" != "none"; then
13421 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13422 cat >>confdefs.h <<\_ACEOF
13423 #define USE_TOOLKIT_SCROLL_BARS 1
13424 _ACEOF
13425
13426 HAVE_XAW3D=no
13427 USE_TOOLKIT_SCROLL_BARS=yes
13428 elif test "${HAVE_XAW3D}" = "yes"; then
13429 cat >>confdefs.h <<\_ACEOF
13430 #define USE_TOOLKIT_SCROLL_BARS 1
13431 _ACEOF
13432
13433 USE_TOOLKIT_SCROLL_BARS=yes
13434 fi
13435 elif test "${HAVE_GTK}" = "yes"; then
13436 cat >>confdefs.h <<\_ACEOF
13437 #define USE_TOOLKIT_SCROLL_BARS 1
13438 _ACEOF
13439
13440 USE_TOOLKIT_SCROLL_BARS=yes
13441 elif test "${HAVE_NS}" = "yes"; then
13442 cat >>confdefs.h <<\_ACEOF
13443 #define USE_TOOLKIT_SCROLL_BARS 1
13444 _ACEOF
13445
13446 USE_TOOLKIT_SCROLL_BARS=yes
13447 fi
13448 fi
13449
13450 cat >conftest.$ac_ext <<_ACEOF
13451 /* confdefs.h. */
13452 _ACEOF
13453 cat confdefs.h >>conftest.$ac_ext
13454 cat >>conftest.$ac_ext <<_ACEOF
13455 /* end confdefs.h. */
13456
13457 #include <X11/Xlib.h>
13458 #include <X11/Xresource.h>
13459 int
13460 main ()
13461 {
13462 XIMProc callback;
13463 ;
13464 return 0;
13465 }
13466 _ACEOF
13467 rm -f conftest.$ac_objext
13468 if { (ac_try="$ac_compile"
13469 case "(($ac_try" in
13470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13471 *) ac_try_echo=$ac_try;;
13472 esac
13473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13474 $as_echo "$ac_try_echo") >&5
13475 (eval "$ac_compile") 2>conftest.er1
13476 ac_status=$?
13477 grep -v '^ *+' conftest.er1 >conftest.err
13478 rm -f conftest.er1
13479 cat conftest.err >&5
13480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); } && {
13482 test -z "$ac_c_werror_flag" ||
13483 test ! -s conftest.err
13484 } && test -s conftest.$ac_objext; then
13485 HAVE_XIM=yes
13486
13487 cat >>confdefs.h <<\_ACEOF
13488 #define HAVE_XIM 1
13489 _ACEOF
13490
13491 else
13492 $as_echo "$as_me: failed program was:" >&5
13493 sed 's/^/| /' conftest.$ac_ext >&5
13494
13495 HAVE_XIM=no
13496 fi
13497
13498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13499
13500
13501 if test "${with_xim}" != "no"; then
13502
13503 cat >>confdefs.h <<\_ACEOF
13504 #define USE_XIM 1
13505 _ACEOF
13506
13507 fi
13508
13509
13510 if test "${HAVE_XIM}" != "no"; then
13511 late_CFLAGS=$CFLAGS
13512 if test "$GCC" = yes; then
13513 CFLAGS="$CFLAGS --pedantic-errors"
13514 fi
13515 cat >conftest.$ac_ext <<_ACEOF
13516 /* confdefs.h. */
13517 _ACEOF
13518 cat confdefs.h >>conftest.$ac_ext
13519 cat >>conftest.$ac_ext <<_ACEOF
13520 /* end confdefs.h. */
13521
13522 #include <X11/Xlib.h>
13523 #include <X11/Xresource.h>
13524 int
13525 main ()
13526 {
13527 Display *display;
13528 XrmDatabase db;
13529 char *res_name;
13530 char *res_class;
13531 XIMProc callback;
13532 XPointer *client_data;
13533 #ifndef __GNUC__
13534 /* If we're not using GCC, it's probably not XFree86, and this is
13535 probably right, but we can't use something like --pedantic-errors. */
13536 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13537 char*, XIMProc, XPointer*);
13538 #endif
13539 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13540 client_data);
13541 ;
13542 return 0;
13543 }
13544 _ACEOF
13545 rm -f conftest.$ac_objext
13546 if { (ac_try="$ac_compile"
13547 case "(($ac_try" in
13548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13549 *) ac_try_echo=$ac_try;;
13550 esac
13551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13552 $as_echo "$ac_try_echo") >&5
13553 (eval "$ac_compile") 2>conftest.er1
13554 ac_status=$?
13555 grep -v '^ *+' conftest.er1 >conftest.err
13556 rm -f conftest.er1
13557 cat conftest.err >&5
13558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); } && {
13560 test -z "$ac_c_werror_flag" ||
13561 test ! -s conftest.err
13562 } && test -s conftest.$ac_objext; then
13563 emacs_cv_arg6_star=yes
13564 else
13565 $as_echo "$as_me: failed program was:" >&5
13566 sed 's/^/| /' conftest.$ac_ext >&5
13567
13568
13569 fi
13570
13571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13572
13573 if test "$emacs_cv_arg6_star" = yes; then
13574 cat >>confdefs.h <<\_ACEOF
13575 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13576 _ACEOF
13577
13578 else
13579 cat >>confdefs.h <<\_ACEOF
13580 #define XRegisterIMInstantiateCallback_arg6 XPointer
13581 _ACEOF
13582
13583 fi
13584 CFLAGS=$late_CFLAGS
13585 fi
13586
13587 ### Start of font-backend (under any platform) section.
13588 # (nothing here yet -- this is a placeholder)
13589 ### End of font-backend (under any platform) section.
13590
13591 ### Start of font-backend (under X11) section.
13592 if test "${HAVE_X11}" = "yes"; then
13593
13594 succeeded=no
13595
13596 # Extract the first word of "pkg-config", so it can be a program name with args.
13597 set dummy pkg-config; ac_word=$2
13598 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13599 $as_echo_n "checking for $ac_word... " >&6; }
13600 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13601 $as_echo_n "(cached) " >&6
13602 else
13603 case $PKG_CONFIG in
13604 [\\/]* | ?:[\\/]*)
13605 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13606 ;;
13607 *)
13608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13609 for as_dir in $PATH
13610 do
13611 IFS=$as_save_IFS
13612 test -z "$as_dir" && as_dir=.
13613 for ac_exec_ext in '' $ac_executable_extensions; do
13614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13615 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13616 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13617 break 2
13618 fi
13619 done
13620 done
13621 IFS=$as_save_IFS
13622
13623 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13624 ;;
13625 esac
13626 fi
13627 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13628 if test -n "$PKG_CONFIG"; then
13629 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13630 $as_echo "$PKG_CONFIG" >&6; }
13631 else
13632 { $as_echo "$as_me:$LINENO: result: no" >&5
13633 $as_echo "no" >&6; }
13634 fi
13635
13636
13637
13638 if test "$PKG_CONFIG" = "no" ; then
13639 HAVE_FC=no
13640 else
13641 PKG_CONFIG_MIN_VERSION=0.9.0
13642 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13643 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13644 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13645
13646 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13647 { $as_echo "$as_me:$LINENO: result: yes" >&5
13648 $as_echo "yes" >&6; }
13649 succeeded=yes
13650
13651 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13652 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13653 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13654 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13655 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13656
13657 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13658 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13659 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13660 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13661 $as_echo "$FONTCONFIG_LIBS" >&6; }
13662 else
13663 { $as_echo "$as_me:$LINENO: result: no" >&5
13664 $as_echo "no" >&6; }
13665 FONTCONFIG_CFLAGS=""
13666 FONTCONFIG_LIBS=""
13667 ## If we have a custom action on failure, don't print errors, but
13668 ## do set a variable so people can do so.
13669 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13670
13671 fi
13672
13673
13674
13675 else
13676 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13677 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13678 fi
13679 fi
13680
13681 if test $succeeded = yes; then
13682 HAVE_FC=yes
13683 else
13684 HAVE_FC=no
13685 fi
13686
13687
13688 ## Use -lXft if available, unless `--with-xft=no'.
13689 HAVE_XFT=maybe
13690 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
13691 with_xft="no";
13692 fi
13693 if test "x${with_xft}" != "xno"; then
13694
13695
13696 succeeded=no
13697
13698 # Extract the first word of "pkg-config", so it can be a program name with args.
13699 set dummy pkg-config; ac_word=$2
13700 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13701 $as_echo_n "checking for $ac_word... " >&6; }
13702 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13703 $as_echo_n "(cached) " >&6
13704 else
13705 case $PKG_CONFIG in
13706 [\\/]* | ?:[\\/]*)
13707 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13708 ;;
13709 *)
13710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13711 for as_dir in $PATH
13712 do
13713 IFS=$as_save_IFS
13714 test -z "$as_dir" && as_dir=.
13715 for ac_exec_ext in '' $ac_executable_extensions; do
13716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13717 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13718 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13719 break 2
13720 fi
13721 done
13722 done
13723 IFS=$as_save_IFS
13724
13725 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13726 ;;
13727 esac
13728 fi
13729 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13730 if test -n "$PKG_CONFIG"; then
13731 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13732 $as_echo "$PKG_CONFIG" >&6; }
13733 else
13734 { $as_echo "$as_me:$LINENO: result: no" >&5
13735 $as_echo "no" >&6; }
13736 fi
13737
13738
13739
13740 if test "$PKG_CONFIG" = "no" ; then
13741 HAVE_XFT=no
13742 else
13743 PKG_CONFIG_MIN_VERSION=0.9.0
13744 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13745 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
13746 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13747
13748 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
13749 { $as_echo "$as_me:$LINENO: result: yes" >&5
13750 $as_echo "yes" >&6; }
13751 succeeded=yes
13752
13753 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
13754 $as_echo_n "checking XFT_CFLAGS... " >&6; }
13755 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13756 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
13757 $as_echo "$XFT_CFLAGS" >&6; }
13758
13759 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
13760 $as_echo_n "checking XFT_LIBS... " >&6; }
13761 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13762 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
13763 $as_echo "$XFT_LIBS" >&6; }
13764 else
13765 { $as_echo "$as_me:$LINENO: result: no" >&5
13766 $as_echo "no" >&6; }
13767 XFT_CFLAGS=""
13768 XFT_LIBS=""
13769 ## If we have a custom action on failure, don't print errors, but
13770 ## do set a variable so people can do so.
13771 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
13772
13773 fi
13774
13775
13776
13777 else
13778 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13779 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13780 fi
13781 fi
13782
13783 if test $succeeded = yes; then
13784 :
13785 else
13786 HAVE_XFT=no
13787 fi
13788
13789 ## Because xftfont.c uses XRenderQueryExtension, we also
13790 ## need to link to -lXrender.
13791 HAVE_XRENDER=no
13792 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
13793 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
13794 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
13795 $as_echo_n "(cached) " >&6
13796 else
13797 ac_check_lib_save_LIBS=$LIBS
13798 LIBS="-lXrender $LIBS"
13799 cat >conftest.$ac_ext <<_ACEOF
13800 /* confdefs.h. */
13801 _ACEOF
13802 cat confdefs.h >>conftest.$ac_ext
13803 cat >>conftest.$ac_ext <<_ACEOF
13804 /* end confdefs.h. */
13805
13806 /* Override any GCC internal prototype to avoid an error.
13807 Use char because int might match the return type of a GCC
13808 builtin and then its argument prototype would still apply. */
13809 #ifdef __cplusplus
13810 extern "C"
13811 #endif
13812 char XRenderQueryExtension ();
13813 int
13814 main ()
13815 {
13816 return XRenderQueryExtension ();
13817 ;
13818 return 0;
13819 }
13820 _ACEOF
13821 rm -f conftest.$ac_objext conftest$ac_exeext
13822 if { (ac_try="$ac_link"
13823 case "(($ac_try" in
13824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13825 *) ac_try_echo=$ac_try;;
13826 esac
13827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13828 $as_echo "$ac_try_echo") >&5
13829 (eval "$ac_link") 2>conftest.er1
13830 ac_status=$?
13831 grep -v '^ *+' conftest.er1 >conftest.err
13832 rm -f conftest.er1
13833 cat conftest.err >&5
13834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); } && {
13836 test -z "$ac_c_werror_flag" ||
13837 test ! -s conftest.err
13838 } && test -s conftest$ac_exeext && {
13839 test "$cross_compiling" = yes ||
13840 $as_test_x conftest$ac_exeext
13841 }; then
13842 ac_cv_lib_Xrender_XRenderQueryExtension=yes
13843 else
13844 $as_echo "$as_me: failed program was:" >&5
13845 sed 's/^/| /' conftest.$ac_ext >&5
13846
13847 ac_cv_lib_Xrender_XRenderQueryExtension=no
13848 fi
13849
13850 rm -rf conftest.dSYM
13851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13852 conftest$ac_exeext conftest.$ac_ext
13853 LIBS=$ac_check_lib_save_LIBS
13854 fi
13855 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
13856 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
13857 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
13858 HAVE_XRENDER=yes
13859 fi
13860
13861 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
13862 OLD_CPPFLAGS="$CPPFLAGS"
13863 OLD_CFLAGS="$CFLAGS"
13864 OLD_LIBS="$LIBS"
13865 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13866 CFLAGS="$CFLAGS $XFT_CFLAGS"
13867 XFT_LIBS="-lXrender $XFT_LIBS"
13868 LIBS="$XFT_LIBS $LIBS"
13869 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13870 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13871 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13872 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13873 $as_echo_n "(cached) " >&6
13874 fi
13875 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13876 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13877 else
13878 # Is the header compilable?
13879 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
13880 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
13881 cat >conftest.$ac_ext <<_ACEOF
13882 /* confdefs.h. */
13883 _ACEOF
13884 cat confdefs.h >>conftest.$ac_ext
13885 cat >>conftest.$ac_ext <<_ACEOF
13886 /* end confdefs.h. */
13887 $ac_includes_default
13888 #include <X11/Xft/Xft.h>
13889 _ACEOF
13890 rm -f conftest.$ac_objext
13891 if { (ac_try="$ac_compile"
13892 case "(($ac_try" in
13893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13894 *) ac_try_echo=$ac_try;;
13895 esac
13896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13897 $as_echo "$ac_try_echo") >&5
13898 (eval "$ac_compile") 2>conftest.er1
13899 ac_status=$?
13900 grep -v '^ *+' conftest.er1 >conftest.err
13901 rm -f conftest.er1
13902 cat conftest.err >&5
13903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); } && {
13905 test -z "$ac_c_werror_flag" ||
13906 test ! -s conftest.err
13907 } && test -s conftest.$ac_objext; then
13908 ac_header_compiler=yes
13909 else
13910 $as_echo "$as_me: failed program was:" >&5
13911 sed 's/^/| /' conftest.$ac_ext >&5
13912
13913 ac_header_compiler=no
13914 fi
13915
13916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13917 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13918 $as_echo "$ac_header_compiler" >&6; }
13919
13920 # Is the header present?
13921 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
13922 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
13923 cat >conftest.$ac_ext <<_ACEOF
13924 /* confdefs.h. */
13925 _ACEOF
13926 cat confdefs.h >>conftest.$ac_ext
13927 cat >>conftest.$ac_ext <<_ACEOF
13928 /* end confdefs.h. */
13929 #include <X11/Xft/Xft.h>
13930 _ACEOF
13931 if { (ac_try="$ac_cpp conftest.$ac_ext"
13932 case "(($ac_try" in
13933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13934 *) ac_try_echo=$ac_try;;
13935 esac
13936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13937 $as_echo "$ac_try_echo") >&5
13938 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13939 ac_status=$?
13940 grep -v '^ *+' conftest.er1 >conftest.err
13941 rm -f conftest.er1
13942 cat conftest.err >&5
13943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); } >/dev/null && {
13945 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13946 test ! -s conftest.err
13947 }; then
13948 ac_header_preproc=yes
13949 else
13950 $as_echo "$as_me: failed program was:" >&5
13951 sed 's/^/| /' conftest.$ac_ext >&5
13952
13953 ac_header_preproc=no
13954 fi
13955
13956 rm -f conftest.err conftest.$ac_ext
13957 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13958 $as_echo "$ac_header_preproc" >&6; }
13959
13960 # So? What about this header?
13961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13962 yes:no: )
13963 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
13964 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13965 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
13966 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
13967 ac_header_preproc=yes
13968 ;;
13969 no:yes:* )
13970 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
13971 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
13972 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
13973 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
13974 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
13975 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
13976 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
13977 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
13978 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
13979 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
13980 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
13981 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
13982
13983 ;;
13984 esac
13985 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13986 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13987 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13988 $as_echo_n "(cached) " >&6
13989 else
13990 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
13991 fi
13992 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13993 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13994
13995 fi
13996 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
13997 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
13998 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
13999 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
14000 $as_echo_n "(cached) " >&6
14001 else
14002 ac_check_lib_save_LIBS=$LIBS
14003 LIBS="-lXft $XFT_LIBS $LIBS"
14004 cat >conftest.$ac_ext <<_ACEOF
14005 /* confdefs.h. */
14006 _ACEOF
14007 cat confdefs.h >>conftest.$ac_ext
14008 cat >>conftest.$ac_ext <<_ACEOF
14009 /* end confdefs.h. */
14010
14011 /* Override any GCC internal prototype to avoid an error.
14012 Use char because int might match the return type of a GCC
14013 builtin and then its argument prototype would still apply. */
14014 #ifdef __cplusplus
14015 extern "C"
14016 #endif
14017 char XftFontOpen ();
14018 int
14019 main ()
14020 {
14021 return XftFontOpen ();
14022 ;
14023 return 0;
14024 }
14025 _ACEOF
14026 rm -f conftest.$ac_objext conftest$ac_exeext
14027 if { (ac_try="$ac_link"
14028 case "(($ac_try" in
14029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14030 *) ac_try_echo=$ac_try;;
14031 esac
14032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14033 $as_echo "$ac_try_echo") >&5
14034 (eval "$ac_link") 2>conftest.er1
14035 ac_status=$?
14036 grep -v '^ *+' conftest.er1 >conftest.err
14037 rm -f conftest.er1
14038 cat conftest.err >&5
14039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); } && {
14041 test -z "$ac_c_werror_flag" ||
14042 test ! -s conftest.err
14043 } && test -s conftest$ac_exeext && {
14044 test "$cross_compiling" = yes ||
14045 $as_test_x conftest$ac_exeext
14046 }; then
14047 ac_cv_lib_Xft_XftFontOpen=yes
14048 else
14049 $as_echo "$as_me: failed program was:" >&5
14050 sed 's/^/| /' conftest.$ac_ext >&5
14051
14052 ac_cv_lib_Xft_XftFontOpen=no
14053 fi
14054
14055 rm -rf conftest.dSYM
14056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14057 conftest$ac_exeext conftest.$ac_ext
14058 LIBS=$ac_check_lib_save_LIBS
14059 fi
14060 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
14061 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14062 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
14063 HAVE_XFT=yes
14064 fi
14065
14066 fi
14067
14068
14069
14070 if test "${HAVE_XFT}" = "yes"; then
14071
14072 cat >>confdefs.h <<\_ACEOF
14073 #define HAVE_XFT 1
14074 _ACEOF
14075
14076
14077 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
14078 else
14079 CPPFLAGS="$OLD_CPPFLAGS"
14080 CFLAGS="$OLD_CFLAGS"
14081 LIBS="$OLD_LIBS"
14082 fi # "${HAVE_XFT}" = "yes"
14083 fi # "$HAVE_XFT" != no
14084 fi # "x${with_xft}" != "xno"
14085
14086 if test "$HAVE_XFT" != "yes"; then
14087 HAVE_XFT=no
14088 fi
14089
14090
14091 HAVE_FREETYPE=no
14092 ## We used to allow building with FreeType and without Xft.
14093 ## However, the ftx font backend driver is not in good shape.
14094 if test "${HAVE_XFT}" = "yes"; then
14095 HAVE_FREETYPE=yes
14096 FONTCONFIG_CFLAGS=
14097 FONTCONFIG_LIBS=
14098 fi
14099
14100 HAVE_LIBOTF=no
14101 if test "${HAVE_FREETYPE}" = "yes"; then
14102
14103 cat >>confdefs.h <<\_ACEOF
14104 #define HAVE_FREETYPE 1
14105 _ACEOF
14106
14107 if test "${with_libotf}" != "no"; then
14108
14109 succeeded=no
14110
14111 # Extract the first word of "pkg-config", so it can be a program name with args.
14112 set dummy pkg-config; ac_word=$2
14113 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14114 $as_echo_n "checking for $ac_word... " >&6; }
14115 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14116 $as_echo_n "(cached) " >&6
14117 else
14118 case $PKG_CONFIG in
14119 [\\/]* | ?:[\\/]*)
14120 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14121 ;;
14122 *)
14123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14124 for as_dir in $PATH
14125 do
14126 IFS=$as_save_IFS
14127 test -z "$as_dir" && as_dir=.
14128 for ac_exec_ext in '' $ac_executable_extensions; do
14129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14130 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14131 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14132 break 2
14133 fi
14134 done
14135 done
14136 IFS=$as_save_IFS
14137
14138 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14139 ;;
14140 esac
14141 fi
14142 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14143 if test -n "$PKG_CONFIG"; then
14144 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14145 $as_echo "$PKG_CONFIG" >&6; }
14146 else
14147 { $as_echo "$as_me:$LINENO: result: no" >&5
14148 $as_echo "no" >&6; }
14149 fi
14150
14151
14152
14153 if test "$PKG_CONFIG" = "no" ; then
14154 HAVE_LIBOTF=no
14155 else
14156 PKG_CONFIG_MIN_VERSION=0.9.0
14157 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14158 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
14159 $as_echo_n "checking for libotf... " >&6; }
14160
14161 if $PKG_CONFIG --exists "libotf" 2>&5; then
14162 { $as_echo "$as_me:$LINENO: result: yes" >&5
14163 $as_echo "yes" >&6; }
14164 succeeded=yes
14165
14166 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
14167 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14168 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14169 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
14170 $as_echo "$LIBOTF_CFLAGS" >&6; }
14171
14172 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
14173 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
14174 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14175 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
14176 $as_echo "$LIBOTF_LIBS" >&6; }
14177 else
14178 { $as_echo "$as_me:$LINENO: result: no" >&5
14179 $as_echo "no" >&6; }
14180 LIBOTF_CFLAGS=""
14181 LIBOTF_LIBS=""
14182 ## If we have a custom action on failure, don't print errors, but
14183 ## do set a variable so people can do so.
14184 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
14185
14186 fi
14187
14188
14189
14190 else
14191 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14192 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14193 fi
14194 fi
14195
14196 if test $succeeded = yes; then
14197 HAVE_LIBOTF=yes
14198 else
14199 HAVE_LIBOTF=no
14200 fi
14201
14202 if test "$HAVE_LIBOTF" = "yes"; then
14203
14204 cat >>confdefs.h <<\_ACEOF
14205 #define HAVE_LIBOTF 1
14206 _ACEOF
14207
14208 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14209 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14210 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14211 $as_echo_n "(cached) " >&6
14212 else
14213 ac_check_lib_save_LIBS=$LIBS
14214 LIBS="-lotf $LIBS"
14215 cat >conftest.$ac_ext <<_ACEOF
14216 /* confdefs.h. */
14217 _ACEOF
14218 cat confdefs.h >>conftest.$ac_ext
14219 cat >>conftest.$ac_ext <<_ACEOF
14220 /* end confdefs.h. */
14221
14222 /* Override any GCC internal prototype to avoid an error.
14223 Use char because int might match the return type of a GCC
14224 builtin and then its argument prototype would still apply. */
14225 #ifdef __cplusplus
14226 extern "C"
14227 #endif
14228 char OTF_get_variation_glyphs ();
14229 int
14230 main ()
14231 {
14232 return OTF_get_variation_glyphs ();
14233 ;
14234 return 0;
14235 }
14236 _ACEOF
14237 rm -f conftest.$ac_objext conftest$ac_exeext
14238 if { (ac_try="$ac_link"
14239 case "(($ac_try" in
14240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14241 *) ac_try_echo=$ac_try;;
14242 esac
14243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14244 $as_echo "$ac_try_echo") >&5
14245 (eval "$ac_link") 2>conftest.er1
14246 ac_status=$?
14247 grep -v '^ *+' conftest.er1 >conftest.err
14248 rm -f conftest.er1
14249 cat conftest.err >&5
14250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); } && {
14252 test -z "$ac_c_werror_flag" ||
14253 test ! -s conftest.err
14254 } && test -s conftest$ac_exeext && {
14255 test "$cross_compiling" = yes ||
14256 $as_test_x conftest$ac_exeext
14257 }; then
14258 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14259 else
14260 $as_echo "$as_me: failed program was:" >&5
14261 sed 's/^/| /' conftest.$ac_ext >&5
14262
14263 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14264 fi
14265
14266 rm -rf conftest.dSYM
14267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14268 conftest$ac_exeext conftest.$ac_ext
14269 LIBS=$ac_check_lib_save_LIBS
14270 fi
14271 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14272 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14273 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
14274 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14275 else
14276 HAVE_OTF_GET_VARIATION_GLYPHS=no
14277 fi
14278
14279 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14280
14281 cat >>confdefs.h <<\_ACEOF
14282 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14283 _ACEOF
14284
14285 fi
14286 fi
14287 fi
14288 fi
14289
14290 HAVE_M17N_FLT=no
14291 if test "${HAVE_LIBOTF}" = yes; then
14292 if test "${with_m17n_flt}" != "no"; then
14293
14294 succeeded=no
14295
14296 # Extract the first word of "pkg-config", so it can be a program name with args.
14297 set dummy pkg-config; ac_word=$2
14298 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14299 $as_echo_n "checking for $ac_word... " >&6; }
14300 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14301 $as_echo_n "(cached) " >&6
14302 else
14303 case $PKG_CONFIG in
14304 [\\/]* | ?:[\\/]*)
14305 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14306 ;;
14307 *)
14308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14309 for as_dir in $PATH
14310 do
14311 IFS=$as_save_IFS
14312 test -z "$as_dir" && as_dir=.
14313 for ac_exec_ext in '' $ac_executable_extensions; do
14314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14315 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14316 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14317 break 2
14318 fi
14319 done
14320 done
14321 IFS=$as_save_IFS
14322
14323 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14324 ;;
14325 esac
14326 fi
14327 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14328 if test -n "$PKG_CONFIG"; then
14329 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14330 $as_echo "$PKG_CONFIG" >&6; }
14331 else
14332 { $as_echo "$as_me:$LINENO: result: no" >&5
14333 $as_echo "no" >&6; }
14334 fi
14335
14336
14337
14338 if test "$PKG_CONFIG" = "no" ; then
14339 HAVE_M17N_FLT=no
14340 else
14341 PKG_CONFIG_MIN_VERSION=0.9.0
14342 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14343 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14344 $as_echo_n "checking for m17n-flt... " >&6; }
14345
14346 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14347 { $as_echo "$as_me:$LINENO: result: yes" >&5
14348 $as_echo "yes" >&6; }
14349 succeeded=yes
14350
14351 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14352 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14353 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
14354 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14355 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14356
14357 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14358 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14359 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
14360 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14361 $as_echo "$M17N_FLT_LIBS" >&6; }
14362 else
14363 { $as_echo "$as_me:$LINENO: result: no" >&5
14364 $as_echo "no" >&6; }
14365 M17N_FLT_CFLAGS=""
14366 M17N_FLT_LIBS=""
14367 ## If we have a custom action on failure, don't print errors, but
14368 ## do set a variable so people can do so.
14369 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14370
14371 fi
14372
14373
14374
14375 else
14376 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14377 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14378 fi
14379 fi
14380
14381 if test $succeeded = yes; then
14382 HAVE_M17N_FLT=yes
14383 else
14384 HAVE_M17N_FLT=no
14385 fi
14386
14387 if test "$HAVE_M17N_FLT" = "yes"; then
14388
14389 cat >>confdefs.h <<\_ACEOF
14390 #define HAVE_M17N_FLT 1
14391 _ACEOF
14392
14393 fi
14394 fi
14395 fi
14396 else
14397 HAVE_XFT=no
14398 HAVE_FREETYPE=no
14399 HAVE_LIBOTF=no
14400 HAVE_M17N_FLT=no
14401 fi
14402 ### End of font-backend (under X11) section.
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413 ### Use -lXpm if available, unless `--with-xpm=no'.
14414 HAVE_XPM=no
14415 LIBXPM=
14416 if test "${HAVE_X11}" = "yes"; then
14417 if test "${with_xpm}" != "no"; then
14418 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14419 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14420 $as_echo_n "checking for X11/xpm.h... " >&6; }
14421 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14422 $as_echo_n "(cached) " >&6
14423 fi
14424 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14425 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14426 else
14427 # Is the header compilable?
14428 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14429 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14430 cat >conftest.$ac_ext <<_ACEOF
14431 /* confdefs.h. */
14432 _ACEOF
14433 cat confdefs.h >>conftest.$ac_ext
14434 cat >>conftest.$ac_ext <<_ACEOF
14435 /* end confdefs.h. */
14436 $ac_includes_default
14437 #include <X11/xpm.h>
14438 _ACEOF
14439 rm -f conftest.$ac_objext
14440 if { (ac_try="$ac_compile"
14441 case "(($ac_try" in
14442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14443 *) ac_try_echo=$ac_try;;
14444 esac
14445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14446 $as_echo "$ac_try_echo") >&5
14447 (eval "$ac_compile") 2>conftest.er1
14448 ac_status=$?
14449 grep -v '^ *+' conftest.er1 >conftest.err
14450 rm -f conftest.er1
14451 cat conftest.err >&5
14452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); } && {
14454 test -z "$ac_c_werror_flag" ||
14455 test ! -s conftest.err
14456 } && test -s conftest.$ac_objext; then
14457 ac_header_compiler=yes
14458 else
14459 $as_echo "$as_me: failed program was:" >&5
14460 sed 's/^/| /' conftest.$ac_ext >&5
14461
14462 ac_header_compiler=no
14463 fi
14464
14465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14466 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14467 $as_echo "$ac_header_compiler" >&6; }
14468
14469 # Is the header present?
14470 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14471 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14472 cat >conftest.$ac_ext <<_ACEOF
14473 /* confdefs.h. */
14474 _ACEOF
14475 cat confdefs.h >>conftest.$ac_ext
14476 cat >>conftest.$ac_ext <<_ACEOF
14477 /* end confdefs.h. */
14478 #include <X11/xpm.h>
14479 _ACEOF
14480 if { (ac_try="$ac_cpp conftest.$ac_ext"
14481 case "(($ac_try" in
14482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14483 *) ac_try_echo=$ac_try;;
14484 esac
14485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14486 $as_echo "$ac_try_echo") >&5
14487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14488 ac_status=$?
14489 grep -v '^ *+' conftest.er1 >conftest.err
14490 rm -f conftest.er1
14491 cat conftest.err >&5
14492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); } >/dev/null && {
14494 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14495 test ! -s conftest.err
14496 }; then
14497 ac_header_preproc=yes
14498 else
14499 $as_echo "$as_me: failed program was:" >&5
14500 sed 's/^/| /' conftest.$ac_ext >&5
14501
14502 ac_header_preproc=no
14503 fi
14504
14505 rm -f conftest.err conftest.$ac_ext
14506 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14507 $as_echo "$ac_header_preproc" >&6; }
14508
14509 # So? What about this header?
14510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14511 yes:no: )
14512 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14513 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14514 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14515 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14516 ac_header_preproc=yes
14517 ;;
14518 no:yes:* )
14519 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14520 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14521 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14522 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14523 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14524 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14525 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14526 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14527 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14528 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14529 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14530 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14531
14532 ;;
14533 esac
14534 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14535 $as_echo_n "checking for X11/xpm.h... " >&6; }
14536 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14537 $as_echo_n "(cached) " >&6
14538 else
14539 ac_cv_header_X11_xpm_h=$ac_header_preproc
14540 fi
14541 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14542 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14543
14544 fi
14545 if test $ac_cv_header_X11_xpm_h = yes; then
14546 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14547 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14548 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14549 $as_echo_n "(cached) " >&6
14550 else
14551 ac_check_lib_save_LIBS=$LIBS
14552 LIBS="-lXpm -lX11 $LIBS"
14553 cat >conftest.$ac_ext <<_ACEOF
14554 /* confdefs.h. */
14555 _ACEOF
14556 cat confdefs.h >>conftest.$ac_ext
14557 cat >>conftest.$ac_ext <<_ACEOF
14558 /* end confdefs.h. */
14559
14560 /* Override any GCC internal prototype to avoid an error.
14561 Use char because int might match the return type of a GCC
14562 builtin and then its argument prototype would still apply. */
14563 #ifdef __cplusplus
14564 extern "C"
14565 #endif
14566 char XpmReadFileToPixmap ();
14567 int
14568 main ()
14569 {
14570 return XpmReadFileToPixmap ();
14571 ;
14572 return 0;
14573 }
14574 _ACEOF
14575 rm -f conftest.$ac_objext conftest$ac_exeext
14576 if { (ac_try="$ac_link"
14577 case "(($ac_try" in
14578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14579 *) ac_try_echo=$ac_try;;
14580 esac
14581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14582 $as_echo "$ac_try_echo") >&5
14583 (eval "$ac_link") 2>conftest.er1
14584 ac_status=$?
14585 grep -v '^ *+' conftest.er1 >conftest.err
14586 rm -f conftest.er1
14587 cat conftest.err >&5
14588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); } && {
14590 test -z "$ac_c_werror_flag" ||
14591 test ! -s conftest.err
14592 } && test -s conftest$ac_exeext && {
14593 test "$cross_compiling" = yes ||
14594 $as_test_x conftest$ac_exeext
14595 }; then
14596 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14597 else
14598 $as_echo "$as_me: failed program was:" >&5
14599 sed 's/^/| /' conftest.$ac_ext >&5
14600
14601 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14602 fi
14603
14604 rm -rf conftest.dSYM
14605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14606 conftest$ac_exeext conftest.$ac_ext
14607 LIBS=$ac_check_lib_save_LIBS
14608 fi
14609 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14610 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14611 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14612 HAVE_XPM=yes
14613 fi
14614
14615 fi
14616
14617
14618 if test "${HAVE_XPM}" = "yes"; then
14619 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14620 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14621 cat >conftest.$ac_ext <<_ACEOF
14622 /* confdefs.h. */
14623 _ACEOF
14624 cat confdefs.h >>conftest.$ac_ext
14625 cat >>conftest.$ac_ext <<_ACEOF
14626 /* end confdefs.h. */
14627 #include "X11/xpm.h"
14628 #ifndef XpmReturnAllocPixels
14629 no_return_alloc_pixels
14630 #endif
14631
14632 _ACEOF
14633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14634 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14635 HAVE_XPM=no
14636 else
14637 HAVE_XPM=yes
14638 fi
14639 rm -f conftest*
14640
14641
14642 if test "${HAVE_XPM}" = "yes"; then
14643 { $as_echo "$as_me:$LINENO: result: yes" >&5
14644 $as_echo "yes" >&6; }
14645 else
14646 { $as_echo "$as_me:$LINENO: result: no" >&5
14647 $as_echo "no" >&6; }
14648 fi
14649 fi
14650 fi
14651
14652 if test "${HAVE_XPM}" = "yes"; then
14653
14654 cat >>confdefs.h <<\_ACEOF
14655 #define HAVE_XPM 1
14656 _ACEOF
14657
14658 LIBXPM=-lXpm
14659 fi
14660 fi
14661
14662
14663 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14664 HAVE_JPEG=no
14665 LIBJPEG=
14666 if test "${HAVE_X11}" = "yes"; then
14667 if test "${with_jpeg}" != "no"; then
14668 if test "${ac_cv_header_jerror_h+set}" = set; then
14669 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14670 $as_echo_n "checking for jerror.h... " >&6; }
14671 if test "${ac_cv_header_jerror_h+set}" = set; then
14672 $as_echo_n "(cached) " >&6
14673 fi
14674 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14675 $as_echo "$ac_cv_header_jerror_h" >&6; }
14676 else
14677 # Is the header compilable?
14678 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14679 $as_echo_n "checking jerror.h usability... " >&6; }
14680 cat >conftest.$ac_ext <<_ACEOF
14681 /* confdefs.h. */
14682 _ACEOF
14683 cat confdefs.h >>conftest.$ac_ext
14684 cat >>conftest.$ac_ext <<_ACEOF
14685 /* end confdefs.h. */
14686 $ac_includes_default
14687 #include <jerror.h>
14688 _ACEOF
14689 rm -f conftest.$ac_objext
14690 if { (ac_try="$ac_compile"
14691 case "(($ac_try" in
14692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14693 *) ac_try_echo=$ac_try;;
14694 esac
14695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14696 $as_echo "$ac_try_echo") >&5
14697 (eval "$ac_compile") 2>conftest.er1
14698 ac_status=$?
14699 grep -v '^ *+' conftest.er1 >conftest.err
14700 rm -f conftest.er1
14701 cat conftest.err >&5
14702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); } && {
14704 test -z "$ac_c_werror_flag" ||
14705 test ! -s conftest.err
14706 } && test -s conftest.$ac_objext; then
14707 ac_header_compiler=yes
14708 else
14709 $as_echo "$as_me: failed program was:" >&5
14710 sed 's/^/| /' conftest.$ac_ext >&5
14711
14712 ac_header_compiler=no
14713 fi
14714
14715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14716 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14717 $as_echo "$ac_header_compiler" >&6; }
14718
14719 # Is the header present?
14720 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
14721 $as_echo_n "checking jerror.h presence... " >&6; }
14722 cat >conftest.$ac_ext <<_ACEOF
14723 /* confdefs.h. */
14724 _ACEOF
14725 cat confdefs.h >>conftest.$ac_ext
14726 cat >>conftest.$ac_ext <<_ACEOF
14727 /* end confdefs.h. */
14728 #include <jerror.h>
14729 _ACEOF
14730 if { (ac_try="$ac_cpp conftest.$ac_ext"
14731 case "(($ac_try" in
14732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14733 *) ac_try_echo=$ac_try;;
14734 esac
14735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14736 $as_echo "$ac_try_echo") >&5
14737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14738 ac_status=$?
14739 grep -v '^ *+' conftest.er1 >conftest.err
14740 rm -f conftest.er1
14741 cat conftest.err >&5
14742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); } >/dev/null && {
14744 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14745 test ! -s conftest.err
14746 }; then
14747 ac_header_preproc=yes
14748 else
14749 $as_echo "$as_me: failed program was:" >&5
14750 sed 's/^/| /' conftest.$ac_ext >&5
14751
14752 ac_header_preproc=no
14753 fi
14754
14755 rm -f conftest.err conftest.$ac_ext
14756 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14757 $as_echo "$ac_header_preproc" >&6; }
14758
14759 # So? What about this header?
14760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14761 yes:no: )
14762 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14763 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14764 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14765 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14766 ac_header_preproc=yes
14767 ;;
14768 no:yes:* )
14769 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14770 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14771 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14772 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14773 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14774 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14775 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14776 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14777 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14778 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14779 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14780 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14781
14782 ;;
14783 esac
14784 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14785 $as_echo_n "checking for jerror.h... " >&6; }
14786 if test "${ac_cv_header_jerror_h+set}" = set; then
14787 $as_echo_n "(cached) " >&6
14788 else
14789 ac_cv_header_jerror_h=$ac_header_preproc
14790 fi
14791 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14792 $as_echo "$ac_cv_header_jerror_h" >&6; }
14793
14794 fi
14795 if test $ac_cv_header_jerror_h = yes; then
14796 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14797 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
14798 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14799 $as_echo_n "(cached) " >&6
14800 else
14801 ac_check_lib_save_LIBS=$LIBS
14802 LIBS="-ljpeg $LIBS"
14803 cat >conftest.$ac_ext <<_ACEOF
14804 /* confdefs.h. */
14805 _ACEOF
14806 cat confdefs.h >>conftest.$ac_ext
14807 cat >>conftest.$ac_ext <<_ACEOF
14808 /* end confdefs.h. */
14809
14810 /* Override any GCC internal prototype to avoid an error.
14811 Use char because int might match the return type of a GCC
14812 builtin and then its argument prototype would still apply. */
14813 #ifdef __cplusplus
14814 extern "C"
14815 #endif
14816 char jpeg_destroy_compress ();
14817 int
14818 main ()
14819 {
14820 return jpeg_destroy_compress ();
14821 ;
14822 return 0;
14823 }
14824 _ACEOF
14825 rm -f conftest.$ac_objext conftest$ac_exeext
14826 if { (ac_try="$ac_link"
14827 case "(($ac_try" in
14828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14829 *) ac_try_echo=$ac_try;;
14830 esac
14831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14832 $as_echo "$ac_try_echo") >&5
14833 (eval "$ac_link") 2>conftest.er1
14834 ac_status=$?
14835 grep -v '^ *+' conftest.er1 >conftest.err
14836 rm -f conftest.er1
14837 cat conftest.err >&5
14838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); } && {
14840 test -z "$ac_c_werror_flag" ||
14841 test ! -s conftest.err
14842 } && test -s conftest$ac_exeext && {
14843 test "$cross_compiling" = yes ||
14844 $as_test_x conftest$ac_exeext
14845 }; then
14846 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14847 else
14848 $as_echo "$as_me: failed program was:" >&5
14849 sed 's/^/| /' conftest.$ac_ext >&5
14850
14851 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14852 fi
14853
14854 rm -rf conftest.dSYM
14855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14856 conftest$ac_exeext conftest.$ac_ext
14857 LIBS=$ac_check_lib_save_LIBS
14858 fi
14859 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14860 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14861 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
14862 HAVE_JPEG=yes
14863 fi
14864
14865 fi
14866
14867
14868 fi
14869
14870
14871 if test "${HAVE_JPEG}" = "yes"; then
14872 cat >>confdefs.h <<\_ACEOF
14873 #define HAVE_JPEG 1
14874 _ACEOF
14875
14876 cat >conftest.$ac_ext <<_ACEOF
14877 /* confdefs.h. */
14878 _ACEOF
14879 cat confdefs.h >>conftest.$ac_ext
14880 cat >>conftest.$ac_ext <<_ACEOF
14881 /* end confdefs.h. */
14882 #include <jpeglib.h>
14883 version=JPEG_LIB_VERSION
14884
14885 _ACEOF
14886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14887 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
14888 cat >>confdefs.h <<\_ACEOF
14889 #define HAVE_JPEG 1
14890 _ACEOF
14891
14892 else
14893 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
14894 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
14895 HAVE_JPEG=no
14896 fi
14897 rm -f conftest*
14898
14899 fi
14900 if test "${HAVE_JPEG}" = "yes"; then
14901 LIBJPEG=-ljpeg
14902 fi
14903 fi
14904
14905
14906 ### Use -lpng if available, unless `--with-png=no'.
14907 HAVE_PNG=no
14908 LIBPNG=
14909 if test "${HAVE_X11}" = "yes"; then
14910 if test "${with_png}" != "no"; then
14911 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14912 # in /usr/include/libpng.
14913
14914
14915 for ac_header in png.h libpng/png.h
14916 do
14917 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14919 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14920 $as_echo_n "checking for $ac_header... " >&6; }
14921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14922 $as_echo_n "(cached) " >&6
14923 fi
14924 ac_res=`eval 'as_val=${'$as_ac_Header'}
14925 $as_echo "$as_val"'`
14926 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14927 $as_echo "$ac_res" >&6; }
14928 else
14929 # Is the header compilable?
14930 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14931 $as_echo_n "checking $ac_header usability... " >&6; }
14932 cat >conftest.$ac_ext <<_ACEOF
14933 /* confdefs.h. */
14934 _ACEOF
14935 cat confdefs.h >>conftest.$ac_ext
14936 cat >>conftest.$ac_ext <<_ACEOF
14937 /* end confdefs.h. */
14938 $ac_includes_default
14939 #include <$ac_header>
14940 _ACEOF
14941 rm -f conftest.$ac_objext
14942 if { (ac_try="$ac_compile"
14943 case "(($ac_try" in
14944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14945 *) ac_try_echo=$ac_try;;
14946 esac
14947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14948 $as_echo "$ac_try_echo") >&5
14949 (eval "$ac_compile") 2>conftest.er1
14950 ac_status=$?
14951 grep -v '^ *+' conftest.er1 >conftest.err
14952 rm -f conftest.er1
14953 cat conftest.err >&5
14954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); } && {
14956 test -z "$ac_c_werror_flag" ||
14957 test ! -s conftest.err
14958 } && test -s conftest.$ac_objext; then
14959 ac_header_compiler=yes
14960 else
14961 $as_echo "$as_me: failed program was:" >&5
14962 sed 's/^/| /' conftest.$ac_ext >&5
14963
14964 ac_header_compiler=no
14965 fi
14966
14967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14968 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14969 $as_echo "$ac_header_compiler" >&6; }
14970
14971 # Is the header present?
14972 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14973 $as_echo_n "checking $ac_header presence... " >&6; }
14974 cat >conftest.$ac_ext <<_ACEOF
14975 /* confdefs.h. */
14976 _ACEOF
14977 cat confdefs.h >>conftest.$ac_ext
14978 cat >>conftest.$ac_ext <<_ACEOF
14979 /* end confdefs.h. */
14980 #include <$ac_header>
14981 _ACEOF
14982 if { (ac_try="$ac_cpp conftest.$ac_ext"
14983 case "(($ac_try" in
14984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14985 *) ac_try_echo=$ac_try;;
14986 esac
14987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14988 $as_echo "$ac_try_echo") >&5
14989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14990 ac_status=$?
14991 grep -v '^ *+' conftest.er1 >conftest.err
14992 rm -f conftest.er1
14993 cat conftest.err >&5
14994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); } >/dev/null && {
14996 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14997 test ! -s conftest.err
14998 }; then
14999 ac_header_preproc=yes
15000 else
15001 $as_echo "$as_me: failed program was:" >&5
15002 sed 's/^/| /' conftest.$ac_ext >&5
15003
15004 ac_header_preproc=no
15005 fi
15006
15007 rm -f conftest.err conftest.$ac_ext
15008 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15009 $as_echo "$ac_header_preproc" >&6; }
15010
15011 # So? What about this header?
15012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15013 yes:no: )
15014 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15015 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15016 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15017 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15018 ac_header_preproc=yes
15019 ;;
15020 no:yes:* )
15021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15022 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15024 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15025 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15026 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15027 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15028 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15029 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15030 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15031 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15032 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15033
15034 ;;
15035 esac
15036 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15037 $as_echo_n "checking for $ac_header... " >&6; }
15038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15039 $as_echo_n "(cached) " >&6
15040 else
15041 eval "$as_ac_Header=\$ac_header_preproc"
15042 fi
15043 ac_res=`eval 'as_val=${'$as_ac_Header'}
15044 $as_echo "$as_val"'`
15045 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15046 $as_echo "$ac_res" >&6; }
15047
15048 fi
15049 if test `eval 'as_val=${'$as_ac_Header'}
15050 $as_echo "$as_val"'` = yes; then
15051 cat >>confdefs.h <<_ACEOF
15052 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15053 _ACEOF
15054
15055 fi
15056
15057 done
15058
15059 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
15060 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
15061 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
15062 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
15063 $as_echo_n "(cached) " >&6
15064 else
15065 ac_check_lib_save_LIBS=$LIBS
15066 LIBS="-lpng -lz -lm $LIBS"
15067 cat >conftest.$ac_ext <<_ACEOF
15068 /* confdefs.h. */
15069 _ACEOF
15070 cat confdefs.h >>conftest.$ac_ext
15071 cat >>conftest.$ac_ext <<_ACEOF
15072 /* end confdefs.h. */
15073
15074 /* Override any GCC internal prototype to avoid an error.
15075 Use char because int might match the return type of a GCC
15076 builtin and then its argument prototype would still apply. */
15077 #ifdef __cplusplus
15078 extern "C"
15079 #endif
15080 char png_get_channels ();
15081 int
15082 main ()
15083 {
15084 return png_get_channels ();
15085 ;
15086 return 0;
15087 }
15088 _ACEOF
15089 rm -f conftest.$ac_objext conftest$ac_exeext
15090 if { (ac_try="$ac_link"
15091 case "(($ac_try" in
15092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093 *) ac_try_echo=$ac_try;;
15094 esac
15095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15096 $as_echo "$ac_try_echo") >&5
15097 (eval "$ac_link") 2>conftest.er1
15098 ac_status=$?
15099 grep -v '^ *+' conftest.er1 >conftest.err
15100 rm -f conftest.er1
15101 cat conftest.err >&5
15102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); } && {
15104 test -z "$ac_c_werror_flag" ||
15105 test ! -s conftest.err
15106 } && test -s conftest$ac_exeext && {
15107 test "$cross_compiling" = yes ||
15108 $as_test_x conftest$ac_exeext
15109 }; then
15110 ac_cv_lib_png_png_get_channels=yes
15111 else
15112 $as_echo "$as_me: failed program was:" >&5
15113 sed 's/^/| /' conftest.$ac_ext >&5
15114
15115 ac_cv_lib_png_png_get_channels=no
15116 fi
15117
15118 rm -rf conftest.dSYM
15119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15120 conftest$ac_exeext conftest.$ac_ext
15121 LIBS=$ac_check_lib_save_LIBS
15122 fi
15123 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
15124 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
15125 if test $ac_cv_lib_png_png_get_channels = yes; then
15126 HAVE_PNG=yes
15127 fi
15128
15129 fi
15130 fi
15131
15132 if test "${HAVE_PNG}" = "yes"; then
15133
15134 cat >>confdefs.h <<\_ACEOF
15135 #define HAVE_PNG 1
15136 _ACEOF
15137
15138 LIBPNG="-lpng -lz -lm"
15139 fi
15140 fi
15141
15142
15143 ### Use -ltiff if available, unless `--with-tiff=no'.
15144 HAVE_TIFF=no
15145 LIBTIFF=
15146 if test "${HAVE_X11}" = "yes"; then
15147 if test "${with_tiff}" != "no"; then
15148 if test "${ac_cv_header_tiffio_h+set}" = set; then
15149 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15150 $as_echo_n "checking for tiffio.h... " >&6; }
15151 if test "${ac_cv_header_tiffio_h+set}" = set; then
15152 $as_echo_n "(cached) " >&6
15153 fi
15154 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15155 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15156 else
15157 # Is the header compilable?
15158 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15159 $as_echo_n "checking tiffio.h usability... " >&6; }
15160 cat >conftest.$ac_ext <<_ACEOF
15161 /* confdefs.h. */
15162 _ACEOF
15163 cat confdefs.h >>conftest.$ac_ext
15164 cat >>conftest.$ac_ext <<_ACEOF
15165 /* end confdefs.h. */
15166 $ac_includes_default
15167 #include <tiffio.h>
15168 _ACEOF
15169 rm -f conftest.$ac_objext
15170 if { (ac_try="$ac_compile"
15171 case "(($ac_try" in
15172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15173 *) ac_try_echo=$ac_try;;
15174 esac
15175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15176 $as_echo "$ac_try_echo") >&5
15177 (eval "$ac_compile") 2>conftest.er1
15178 ac_status=$?
15179 grep -v '^ *+' conftest.er1 >conftest.err
15180 rm -f conftest.er1
15181 cat conftest.err >&5
15182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); } && {
15184 test -z "$ac_c_werror_flag" ||
15185 test ! -s conftest.err
15186 } && test -s conftest.$ac_objext; then
15187 ac_header_compiler=yes
15188 else
15189 $as_echo "$as_me: failed program was:" >&5
15190 sed 's/^/| /' conftest.$ac_ext >&5
15191
15192 ac_header_compiler=no
15193 fi
15194
15195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15196 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15197 $as_echo "$ac_header_compiler" >&6; }
15198
15199 # Is the header present?
15200 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15201 $as_echo_n "checking tiffio.h presence... " >&6; }
15202 cat >conftest.$ac_ext <<_ACEOF
15203 /* confdefs.h. */
15204 _ACEOF
15205 cat confdefs.h >>conftest.$ac_ext
15206 cat >>conftest.$ac_ext <<_ACEOF
15207 /* end confdefs.h. */
15208 #include <tiffio.h>
15209 _ACEOF
15210 if { (ac_try="$ac_cpp conftest.$ac_ext"
15211 case "(($ac_try" in
15212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15213 *) ac_try_echo=$ac_try;;
15214 esac
15215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15216 $as_echo "$ac_try_echo") >&5
15217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15218 ac_status=$?
15219 grep -v '^ *+' conftest.er1 >conftest.err
15220 rm -f conftest.er1
15221 cat conftest.err >&5
15222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); } >/dev/null && {
15224 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15225 test ! -s conftest.err
15226 }; then
15227 ac_header_preproc=yes
15228 else
15229 $as_echo "$as_me: failed program was:" >&5
15230 sed 's/^/| /' conftest.$ac_ext >&5
15231
15232 ac_header_preproc=no
15233 fi
15234
15235 rm -f conftest.err conftest.$ac_ext
15236 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15237 $as_echo "$ac_header_preproc" >&6; }
15238
15239 # So? What about this header?
15240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15241 yes:no: )
15242 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15243 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15244 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15245 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15246 ac_header_preproc=yes
15247 ;;
15248 no:yes:* )
15249 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15250 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15251 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15252 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15253 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15254 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15255 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15256 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15257 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15258 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15259 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15260 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15261
15262 ;;
15263 esac
15264 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15265 $as_echo_n "checking for tiffio.h... " >&6; }
15266 if test "${ac_cv_header_tiffio_h+set}" = set; then
15267 $as_echo_n "(cached) " >&6
15268 else
15269 ac_cv_header_tiffio_h=$ac_header_preproc
15270 fi
15271 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15272 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15273
15274 fi
15275 if test $ac_cv_header_tiffio_h = yes; then
15276 tifflibs="-lz -lm"
15277 # At least one tiff package requires the jpeg library.
15278 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
15279 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15280 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15281 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15282 $as_echo_n "(cached) " >&6
15283 else
15284 ac_check_lib_save_LIBS=$LIBS
15285 LIBS="-ltiff $tifflibs $LIBS"
15286 cat >conftest.$ac_ext <<_ACEOF
15287 /* confdefs.h. */
15288 _ACEOF
15289 cat confdefs.h >>conftest.$ac_ext
15290 cat >>conftest.$ac_ext <<_ACEOF
15291 /* end confdefs.h. */
15292
15293 /* Override any GCC internal prototype to avoid an error.
15294 Use char because int might match the return type of a GCC
15295 builtin and then its argument prototype would still apply. */
15296 #ifdef __cplusplus
15297 extern "C"
15298 #endif
15299 char TIFFGetVersion ();
15300 int
15301 main ()
15302 {
15303 return TIFFGetVersion ();
15304 ;
15305 return 0;
15306 }
15307 _ACEOF
15308 rm -f conftest.$ac_objext conftest$ac_exeext
15309 if { (ac_try="$ac_link"
15310 case "(($ac_try" in
15311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15312 *) ac_try_echo=$ac_try;;
15313 esac
15314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15315 $as_echo "$ac_try_echo") >&5
15316 (eval "$ac_link") 2>conftest.er1
15317 ac_status=$?
15318 grep -v '^ *+' conftest.er1 >conftest.err
15319 rm -f conftest.er1
15320 cat conftest.err >&5
15321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); } && {
15323 test -z "$ac_c_werror_flag" ||
15324 test ! -s conftest.err
15325 } && test -s conftest$ac_exeext && {
15326 test "$cross_compiling" = yes ||
15327 $as_test_x conftest$ac_exeext
15328 }; then
15329 ac_cv_lib_tiff_TIFFGetVersion=yes
15330 else
15331 $as_echo "$as_me: failed program was:" >&5
15332 sed 's/^/| /' conftest.$ac_ext >&5
15333
15334 ac_cv_lib_tiff_TIFFGetVersion=no
15335 fi
15336
15337 rm -rf conftest.dSYM
15338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15339 conftest$ac_exeext conftest.$ac_ext
15340 LIBS=$ac_check_lib_save_LIBS
15341 fi
15342 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15343 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15344 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
15345 HAVE_TIFF=yes
15346 fi
15347
15348 fi
15349
15350
15351 fi
15352
15353 if test "${HAVE_TIFF}" = "yes"; then
15354
15355 cat >>confdefs.h <<\_ACEOF
15356 #define HAVE_TIFF 1
15357 _ACEOF
15358
15359 LIBTIFF=-ltiff
15360 fi
15361 fi
15362
15363
15364 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
15365 HAVE_GIF=no
15366 LIBGIF=
15367 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15368 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15369 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15370 $as_echo_n "checking for gif_lib.h... " >&6; }
15371 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15372 $as_echo_n "(cached) " >&6
15373 fi
15374 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15375 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15376 else
15377 # Is the header compilable?
15378 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15379 $as_echo_n "checking gif_lib.h usability... " >&6; }
15380 cat >conftest.$ac_ext <<_ACEOF
15381 /* confdefs.h. */
15382 _ACEOF
15383 cat confdefs.h >>conftest.$ac_ext
15384 cat >>conftest.$ac_ext <<_ACEOF
15385 /* end confdefs.h. */
15386 $ac_includes_default
15387 #include <gif_lib.h>
15388 _ACEOF
15389 rm -f conftest.$ac_objext
15390 if { (ac_try="$ac_compile"
15391 case "(($ac_try" in
15392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15393 *) ac_try_echo=$ac_try;;
15394 esac
15395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15396 $as_echo "$ac_try_echo") >&5
15397 (eval "$ac_compile") 2>conftest.er1
15398 ac_status=$?
15399 grep -v '^ *+' conftest.er1 >conftest.err
15400 rm -f conftest.er1
15401 cat conftest.err >&5
15402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); } && {
15404 test -z "$ac_c_werror_flag" ||
15405 test ! -s conftest.err
15406 } && test -s conftest.$ac_objext; then
15407 ac_header_compiler=yes
15408 else
15409 $as_echo "$as_me: failed program was:" >&5
15410 sed 's/^/| /' conftest.$ac_ext >&5
15411
15412 ac_header_compiler=no
15413 fi
15414
15415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15416 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15417 $as_echo "$ac_header_compiler" >&6; }
15418
15419 # Is the header present?
15420 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15421 $as_echo_n "checking gif_lib.h presence... " >&6; }
15422 cat >conftest.$ac_ext <<_ACEOF
15423 /* confdefs.h. */
15424 _ACEOF
15425 cat confdefs.h >>conftest.$ac_ext
15426 cat >>conftest.$ac_ext <<_ACEOF
15427 /* end confdefs.h. */
15428 #include <gif_lib.h>
15429 _ACEOF
15430 if { (ac_try="$ac_cpp conftest.$ac_ext"
15431 case "(($ac_try" in
15432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15433 *) ac_try_echo=$ac_try;;
15434 esac
15435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15436 $as_echo "$ac_try_echo") >&5
15437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15438 ac_status=$?
15439 grep -v '^ *+' conftest.er1 >conftest.err
15440 rm -f conftest.er1
15441 cat conftest.err >&5
15442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); } >/dev/null && {
15444 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15445 test ! -s conftest.err
15446 }; then
15447 ac_header_preproc=yes
15448 else
15449 $as_echo "$as_me: failed program was:" >&5
15450 sed 's/^/| /' conftest.$ac_ext >&5
15451
15452 ac_header_preproc=no
15453 fi
15454
15455 rm -f conftest.err conftest.$ac_ext
15456 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15457 $as_echo "$ac_header_preproc" >&6; }
15458
15459 # So? What about this header?
15460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15461 yes:no: )
15462 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15463 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15464 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
15465 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
15466 ac_header_preproc=yes
15467 ;;
15468 no:yes:* )
15469 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15470 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15471 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15472 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15473 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15474 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15475 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15476 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15477 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15478 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15479 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15480 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15481
15482 ;;
15483 esac
15484 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15485 $as_echo_n "checking for gif_lib.h... " >&6; }
15486 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15487 $as_echo_n "(cached) " >&6
15488 else
15489 ac_cv_header_gif_lib_h=$ac_header_preproc
15490 fi
15491 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15492 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15493
15494 fi
15495 if test $ac_cv_header_gif_lib_h = yes; then
15496 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15497 # Earlier versions can crash Emacs.
15498 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15499 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15500 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15501 $as_echo_n "(cached) " >&6
15502 else
15503 ac_check_lib_save_LIBS=$LIBS
15504 LIBS="-lgif $LIBS"
15505 cat >conftest.$ac_ext <<_ACEOF
15506 /* confdefs.h. */
15507 _ACEOF
15508 cat confdefs.h >>conftest.$ac_ext
15509 cat >>conftest.$ac_ext <<_ACEOF
15510 /* end confdefs.h. */
15511
15512 /* Override any GCC internal prototype to avoid an error.
15513 Use char because int might match the return type of a GCC
15514 builtin and then its argument prototype would still apply. */
15515 #ifdef __cplusplus
15516 extern "C"
15517 #endif
15518 char EGifPutExtensionLast ();
15519 int
15520 main ()
15521 {
15522 return EGifPutExtensionLast ();
15523 ;
15524 return 0;
15525 }
15526 _ACEOF
15527 rm -f conftest.$ac_objext conftest$ac_exeext
15528 if { (ac_try="$ac_link"
15529 case "(($ac_try" in
15530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15531 *) ac_try_echo=$ac_try;;
15532 esac
15533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15534 $as_echo "$ac_try_echo") >&5
15535 (eval "$ac_link") 2>conftest.er1
15536 ac_status=$?
15537 grep -v '^ *+' conftest.er1 >conftest.err
15538 rm -f conftest.er1
15539 cat conftest.err >&5
15540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); } && {
15542 test -z "$ac_c_werror_flag" ||
15543 test ! -s conftest.err
15544 } && test -s conftest$ac_exeext && {
15545 test "$cross_compiling" = yes ||
15546 $as_test_x conftest$ac_exeext
15547 }; then
15548 ac_cv_lib_gif_EGifPutExtensionLast=yes
15549 else
15550 $as_echo "$as_me: failed program was:" >&5
15551 sed 's/^/| /' conftest.$ac_ext >&5
15552
15553 ac_cv_lib_gif_EGifPutExtensionLast=no
15554 fi
15555
15556 rm -rf conftest.dSYM
15557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15558 conftest$ac_exeext conftest.$ac_ext
15559 LIBS=$ac_check_lib_save_LIBS
15560 fi
15561 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15562 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15563 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15564 HAVE_GIF=yes
15565 else
15566 HAVE_GIF=maybe
15567 fi
15568
15569 fi
15570
15571
15572
15573 if test "$HAVE_GIF" = yes; then
15574 LIBGIF=-lgif
15575 elif test "$HAVE_GIF" = maybe; then
15576 # If gif_lib.h but no libgif, try libungif.
15577 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15578 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15579 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15580 $as_echo_n "(cached) " >&6
15581 else
15582 ac_check_lib_save_LIBS=$LIBS
15583 LIBS="-lungif $LIBS"
15584 cat >conftest.$ac_ext <<_ACEOF
15585 /* confdefs.h. */
15586 _ACEOF
15587 cat confdefs.h >>conftest.$ac_ext
15588 cat >>conftest.$ac_ext <<_ACEOF
15589 /* end confdefs.h. */
15590
15591 /* Override any GCC internal prototype to avoid an error.
15592 Use char because int might match the return type of a GCC
15593 builtin and then its argument prototype would still apply. */
15594 #ifdef __cplusplus
15595 extern "C"
15596 #endif
15597 char EGifPutExtensionLast ();
15598 int
15599 main ()
15600 {
15601 return EGifPutExtensionLast ();
15602 ;
15603 return 0;
15604 }
15605 _ACEOF
15606 rm -f conftest.$ac_objext conftest$ac_exeext
15607 if { (ac_try="$ac_link"
15608 case "(($ac_try" in
15609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15610 *) ac_try_echo=$ac_try;;
15611 esac
15612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15613 $as_echo "$ac_try_echo") >&5
15614 (eval "$ac_link") 2>conftest.er1
15615 ac_status=$?
15616 grep -v '^ *+' conftest.er1 >conftest.err
15617 rm -f conftest.er1
15618 cat conftest.err >&5
15619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); } && {
15621 test -z "$ac_c_werror_flag" ||
15622 test ! -s conftest.err
15623 } && test -s conftest$ac_exeext && {
15624 test "$cross_compiling" = yes ||
15625 $as_test_x conftest$ac_exeext
15626 }; then
15627 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15628 else
15629 $as_echo "$as_me: failed program was:" >&5
15630 sed 's/^/| /' conftest.$ac_ext >&5
15631
15632 ac_cv_lib_ungif_EGifPutExtensionLast=no
15633 fi
15634
15635 rm -rf conftest.dSYM
15636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15637 conftest$ac_exeext conftest.$ac_ext
15638 LIBS=$ac_check_lib_save_LIBS
15639 fi
15640 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15641 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15642 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15643 HAVE_GIF=yes
15644 else
15645 HAVE_GIF=no
15646 fi
15647
15648 test "$HAVE_GIF" = yes && LIBGIF=-lungif
15649 fi
15650
15651 if test "${HAVE_GIF}" = "yes"; then
15652
15653 cat >>confdefs.h <<\_ACEOF
15654 #define HAVE_GIF 1
15655 _ACEOF
15656
15657 fi
15658 fi
15659
15660
15661 if test "${HAVE_X11}" = "yes"; then
15662 MISSING=""
15663 WITH_NO=""
15664 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15665 MISSING="libXpm" && WITH_NO="--with-xpm=no"
15666 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15667 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
15668 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15669 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
15670 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15671 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
15672 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15673 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15674
15675 if test "X${MISSING}" != X; then
15676 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15677 $MISSING
15678 Maybe some development libraries/packages are missing?
15679 If you don't want to link with them give
15680 $WITH_NO
15681 as options to configure" >&5
15682 $as_echo "$as_me: error: The following required libraries were not found:
15683 $MISSING
15684 Maybe some development libraries/packages are missing?
15685 If you don't want to link with them give
15686 $WITH_NO
15687 as options to configure" >&2;}
15688 { (exit 1); exit 1; }; }
15689 fi
15690 fi
15691
15692 ### Use -lgpm if available, unless `--with-gpm=no'.
15693 HAVE_GPM=no
15694 LIBGPM=
15695 if test "${with_gpm}" != "no"; then
15696 if test "${ac_cv_header_gpm_h+set}" = set; then
15697 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15698 $as_echo_n "checking for gpm.h... " >&6; }
15699 if test "${ac_cv_header_gpm_h+set}" = set; then
15700 $as_echo_n "(cached) " >&6
15701 fi
15702 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15703 $as_echo "$ac_cv_header_gpm_h" >&6; }
15704 else
15705 # Is the header compilable?
15706 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
15707 $as_echo_n "checking gpm.h usability... " >&6; }
15708 cat >conftest.$ac_ext <<_ACEOF
15709 /* confdefs.h. */
15710 _ACEOF
15711 cat confdefs.h >>conftest.$ac_ext
15712 cat >>conftest.$ac_ext <<_ACEOF
15713 /* end confdefs.h. */
15714 $ac_includes_default
15715 #include <gpm.h>
15716 _ACEOF
15717 rm -f conftest.$ac_objext
15718 if { (ac_try="$ac_compile"
15719 case "(($ac_try" in
15720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15721 *) ac_try_echo=$ac_try;;
15722 esac
15723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15724 $as_echo "$ac_try_echo") >&5
15725 (eval "$ac_compile") 2>conftest.er1
15726 ac_status=$?
15727 grep -v '^ *+' conftest.er1 >conftest.err
15728 rm -f conftest.er1
15729 cat conftest.err >&5
15730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); } && {
15732 test -z "$ac_c_werror_flag" ||
15733 test ! -s conftest.err
15734 } && test -s conftest.$ac_objext; then
15735 ac_header_compiler=yes
15736 else
15737 $as_echo "$as_me: failed program was:" >&5
15738 sed 's/^/| /' conftest.$ac_ext >&5
15739
15740 ac_header_compiler=no
15741 fi
15742
15743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15744 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15745 $as_echo "$ac_header_compiler" >&6; }
15746
15747 # Is the header present?
15748 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
15749 $as_echo_n "checking gpm.h presence... " >&6; }
15750 cat >conftest.$ac_ext <<_ACEOF
15751 /* confdefs.h. */
15752 _ACEOF
15753 cat confdefs.h >>conftest.$ac_ext
15754 cat >>conftest.$ac_ext <<_ACEOF
15755 /* end confdefs.h. */
15756 #include <gpm.h>
15757 _ACEOF
15758 if { (ac_try="$ac_cpp conftest.$ac_ext"
15759 case "(($ac_try" in
15760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15761 *) ac_try_echo=$ac_try;;
15762 esac
15763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15764 $as_echo "$ac_try_echo") >&5
15765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15766 ac_status=$?
15767 grep -v '^ *+' conftest.er1 >conftest.err
15768 rm -f conftest.er1
15769 cat conftest.err >&5
15770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); } >/dev/null && {
15772 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15773 test ! -s conftest.err
15774 }; then
15775 ac_header_preproc=yes
15776 else
15777 $as_echo "$as_me: failed program was:" >&5
15778 sed 's/^/| /' conftest.$ac_ext >&5
15779
15780 ac_header_preproc=no
15781 fi
15782
15783 rm -f conftest.err conftest.$ac_ext
15784 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15785 $as_echo "$ac_header_preproc" >&6; }
15786
15787 # So? What about this header?
15788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15789 yes:no: )
15790 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15791 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15792 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
15793 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
15794 ac_header_preproc=yes
15795 ;;
15796 no:yes:* )
15797 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
15798 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
15799 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
15800 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
15801 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
15802 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
15803 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
15804 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15805 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
15806 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
15807 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
15808 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
15809
15810 ;;
15811 esac
15812 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15813 $as_echo_n "checking for gpm.h... " >&6; }
15814 if test "${ac_cv_header_gpm_h+set}" = set; then
15815 $as_echo_n "(cached) " >&6
15816 else
15817 ac_cv_header_gpm_h=$ac_header_preproc
15818 fi
15819 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15820 $as_echo "$ac_cv_header_gpm_h" >&6; }
15821
15822 fi
15823 if test $ac_cv_header_gpm_h = yes; then
15824 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
15825 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
15826 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15827 $as_echo_n "(cached) " >&6
15828 else
15829 ac_check_lib_save_LIBS=$LIBS
15830 LIBS="-lgpm $LIBS"
15831 cat >conftest.$ac_ext <<_ACEOF
15832 /* confdefs.h. */
15833 _ACEOF
15834 cat confdefs.h >>conftest.$ac_ext
15835 cat >>conftest.$ac_ext <<_ACEOF
15836 /* end confdefs.h. */
15837
15838 /* Override any GCC internal prototype to avoid an error.
15839 Use char because int might match the return type of a GCC
15840 builtin and then its argument prototype would still apply. */
15841 #ifdef __cplusplus
15842 extern "C"
15843 #endif
15844 char Gpm_Open ();
15845 int
15846 main ()
15847 {
15848 return Gpm_Open ();
15849 ;
15850 return 0;
15851 }
15852 _ACEOF
15853 rm -f conftest.$ac_objext conftest$ac_exeext
15854 if { (ac_try="$ac_link"
15855 case "(($ac_try" in
15856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15857 *) ac_try_echo=$ac_try;;
15858 esac
15859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15860 $as_echo "$ac_try_echo") >&5
15861 (eval "$ac_link") 2>conftest.er1
15862 ac_status=$?
15863 grep -v '^ *+' conftest.er1 >conftest.err
15864 rm -f conftest.er1
15865 cat conftest.err >&5
15866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); } && {
15868 test -z "$ac_c_werror_flag" ||
15869 test ! -s conftest.err
15870 } && test -s conftest$ac_exeext && {
15871 test "$cross_compiling" = yes ||
15872 $as_test_x conftest$ac_exeext
15873 }; then
15874 ac_cv_lib_gpm_Gpm_Open=yes
15875 else
15876 $as_echo "$as_me: failed program was:" >&5
15877 sed 's/^/| /' conftest.$ac_ext >&5
15878
15879 ac_cv_lib_gpm_Gpm_Open=no
15880 fi
15881
15882 rm -rf conftest.dSYM
15883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15884 conftest$ac_exeext conftest.$ac_ext
15885 LIBS=$ac_check_lib_save_LIBS
15886 fi
15887 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
15888 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
15889 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
15890 HAVE_GPM=yes
15891 fi
15892
15893 fi
15894
15895
15896
15897 if test "${HAVE_GPM}" = "yes"; then
15898
15899 cat >>confdefs.h <<\_ACEOF
15900 #define HAVE_GPM 1
15901 _ACEOF
15902
15903 LIBGPM=-lgpm
15904 fi
15905 fi
15906
15907
15908 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15909 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15910 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15911 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15912 $as_echo_n "(cached) " >&6
15913 fi
15914 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15915 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15916 else
15917 # Is the header compilable?
15918 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
15919 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
15920 cat >conftest.$ac_ext <<_ACEOF
15921 /* confdefs.h. */
15922 _ACEOF
15923 cat confdefs.h >>conftest.$ac_ext
15924 cat >>conftest.$ac_ext <<_ACEOF
15925 /* end confdefs.h. */
15926 $ac_includes_default
15927 #include <malloc/malloc.h>
15928 _ACEOF
15929 rm -f conftest.$ac_objext
15930 if { (ac_try="$ac_compile"
15931 case "(($ac_try" in
15932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15933 *) ac_try_echo=$ac_try;;
15934 esac
15935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15936 $as_echo "$ac_try_echo") >&5
15937 (eval "$ac_compile") 2>conftest.er1
15938 ac_status=$?
15939 grep -v '^ *+' conftest.er1 >conftest.err
15940 rm -f conftest.er1
15941 cat conftest.err >&5
15942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 (exit $ac_status); } && {
15944 test -z "$ac_c_werror_flag" ||
15945 test ! -s conftest.err
15946 } && test -s conftest.$ac_objext; then
15947 ac_header_compiler=yes
15948 else
15949 $as_echo "$as_me: failed program was:" >&5
15950 sed 's/^/| /' conftest.$ac_ext >&5
15951
15952 ac_header_compiler=no
15953 fi
15954
15955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15956 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15957 $as_echo "$ac_header_compiler" >&6; }
15958
15959 # Is the header present?
15960 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
15961 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
15962 cat >conftest.$ac_ext <<_ACEOF
15963 /* confdefs.h. */
15964 _ACEOF
15965 cat confdefs.h >>conftest.$ac_ext
15966 cat >>conftest.$ac_ext <<_ACEOF
15967 /* end confdefs.h. */
15968 #include <malloc/malloc.h>
15969 _ACEOF
15970 if { (ac_try="$ac_cpp conftest.$ac_ext"
15971 case "(($ac_try" in
15972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15973 *) ac_try_echo=$ac_try;;
15974 esac
15975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15976 $as_echo "$ac_try_echo") >&5
15977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15978 ac_status=$?
15979 grep -v '^ *+' conftest.er1 >conftest.err
15980 rm -f conftest.er1
15981 cat conftest.err >&5
15982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); } >/dev/null && {
15984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15985 test ! -s conftest.err
15986 }; then
15987 ac_header_preproc=yes
15988 else
15989 $as_echo "$as_me: failed program was:" >&5
15990 sed 's/^/| /' conftest.$ac_ext >&5
15991
15992 ac_header_preproc=no
15993 fi
15994
15995 rm -f conftest.err conftest.$ac_ext
15996 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15997 $as_echo "$ac_header_preproc" >&6; }
15998
15999 # So? What about this header?
16000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16001 yes:no: )
16002 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
16003 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16004 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
16005 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
16006 ac_header_preproc=yes
16007 ;;
16008 no:yes:* )
16009 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
16010 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
16011 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
16012 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
16013 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
16014 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
16015 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
16016 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
16017 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
16018 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
16019 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
16020 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
16021
16022 ;;
16023 esac
16024 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16025 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16026 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16027 $as_echo_n "(cached) " >&6
16028 else
16029 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16030 fi
16031 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16032 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16033
16034 fi
16035 if test $ac_cv_header_malloc_malloc_h = yes; then
16036
16037 cat >>confdefs.h <<\_ACEOF
16038 #define HAVE_MALLOC_MALLOC_H 1
16039 _ACEOF
16040
16041 fi
16042
16043
16044
16045 ### Use NeXTstep API to implement GUI.
16046 if test "${HAVE_NS}" = "yes"; then
16047
16048 cat >>confdefs.h <<\_ACEOF
16049 #define HAVE_NS 1
16050 _ACEOF
16051
16052 if test "${NS_IMPL_COCOA}" = "yes"; then
16053
16054 cat >>confdefs.h <<\_ACEOF
16055 #define NS_IMPL_COCOA 1
16056 _ACEOF
16057
16058 GNU_OBJC_CFLAGS=
16059 fi
16060 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16061
16062 cat >>confdefs.h <<\_ACEOF
16063 #define NS_IMPL_GNUSTEP 1
16064 _ACEOF
16065
16066 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16067 fi
16068 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16069
16070 cat >>confdefs.h <<\_ACEOF
16071 #define NS_HAVE_NSINTEGER 1
16072 _ACEOF
16073
16074 fi
16075 # We also have mouse menus.
16076 HAVE_MENUS=yes
16077 OTHER_FILES=ns-app
16078 fi
16079
16080
16081 ### Use session management (-lSM -lICE) if available
16082 HAVE_X_SM=no
16083 LIBXSM=
16084 if test "${HAVE_X11}" = "yes"; then
16085 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16086 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16087 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16088 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16089 $as_echo_n "(cached) " >&6
16090 fi
16091 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16092 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16093 else
16094 # Is the header compilable?
16095 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16096 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16097 cat >conftest.$ac_ext <<_ACEOF
16098 /* confdefs.h. */
16099 _ACEOF
16100 cat confdefs.h >>conftest.$ac_ext
16101 cat >>conftest.$ac_ext <<_ACEOF
16102 /* end confdefs.h. */
16103 $ac_includes_default
16104 #include <X11/SM/SMlib.h>
16105 _ACEOF
16106 rm -f conftest.$ac_objext
16107 if { (ac_try="$ac_compile"
16108 case "(($ac_try" in
16109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16110 *) ac_try_echo=$ac_try;;
16111 esac
16112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16113 $as_echo "$ac_try_echo") >&5
16114 (eval "$ac_compile") 2>conftest.er1
16115 ac_status=$?
16116 grep -v '^ *+' conftest.er1 >conftest.err
16117 rm -f conftest.er1
16118 cat conftest.err >&5
16119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); } && {
16121 test -z "$ac_c_werror_flag" ||
16122 test ! -s conftest.err
16123 } && test -s conftest.$ac_objext; then
16124 ac_header_compiler=yes
16125 else
16126 $as_echo "$as_me: failed program was:" >&5
16127 sed 's/^/| /' conftest.$ac_ext >&5
16128
16129 ac_header_compiler=no
16130 fi
16131
16132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16133 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16134 $as_echo "$ac_header_compiler" >&6; }
16135
16136 # Is the header present?
16137 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16138 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16139 cat >conftest.$ac_ext <<_ACEOF
16140 /* confdefs.h. */
16141 _ACEOF
16142 cat confdefs.h >>conftest.$ac_ext
16143 cat >>conftest.$ac_ext <<_ACEOF
16144 /* end confdefs.h. */
16145 #include <X11/SM/SMlib.h>
16146 _ACEOF
16147 if { (ac_try="$ac_cpp conftest.$ac_ext"
16148 case "(($ac_try" in
16149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16150 *) ac_try_echo=$ac_try;;
16151 esac
16152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16153 $as_echo "$ac_try_echo") >&5
16154 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16155 ac_status=$?
16156 grep -v '^ *+' conftest.er1 >conftest.err
16157 rm -f conftest.er1
16158 cat conftest.err >&5
16159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); } >/dev/null && {
16161 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16162 test ! -s conftest.err
16163 }; then
16164 ac_header_preproc=yes
16165 else
16166 $as_echo "$as_me: failed program was:" >&5
16167 sed 's/^/| /' conftest.$ac_ext >&5
16168
16169 ac_header_preproc=no
16170 fi
16171
16172 rm -f conftest.err conftest.$ac_ext
16173 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16174 $as_echo "$ac_header_preproc" >&6; }
16175
16176 # So? What about this header?
16177 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16178 yes:no: )
16179 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16180 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16181 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16182 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16183 ac_header_preproc=yes
16184 ;;
16185 no:yes:* )
16186 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16187 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16188 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16189 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16190 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16191 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16192 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16193 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16194 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16195 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16196 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16197 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16198
16199 ;;
16200 esac
16201 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16202 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16203 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16204 $as_echo_n "(cached) " >&6
16205 else
16206 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16207 fi
16208 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16209 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16210
16211 fi
16212 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16213 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16214 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16215 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16216 $as_echo_n "(cached) " >&6
16217 else
16218 ac_check_lib_save_LIBS=$LIBS
16219 LIBS="-lSM -lICE $LIBS"
16220 cat >conftest.$ac_ext <<_ACEOF
16221 /* confdefs.h. */
16222 _ACEOF
16223 cat confdefs.h >>conftest.$ac_ext
16224 cat >>conftest.$ac_ext <<_ACEOF
16225 /* end confdefs.h. */
16226
16227 /* Override any GCC internal prototype to avoid an error.
16228 Use char because int might match the return type of a GCC
16229 builtin and then its argument prototype would still apply. */
16230 #ifdef __cplusplus
16231 extern "C"
16232 #endif
16233 char SmcOpenConnection ();
16234 int
16235 main ()
16236 {
16237 return SmcOpenConnection ();
16238 ;
16239 return 0;
16240 }
16241 _ACEOF
16242 rm -f conftest.$ac_objext conftest$ac_exeext
16243 if { (ac_try="$ac_link"
16244 case "(($ac_try" in
16245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16246 *) ac_try_echo=$ac_try;;
16247 esac
16248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16249 $as_echo "$ac_try_echo") >&5
16250 (eval "$ac_link") 2>conftest.er1
16251 ac_status=$?
16252 grep -v '^ *+' conftest.er1 >conftest.err
16253 rm -f conftest.er1
16254 cat conftest.err >&5
16255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); } && {
16257 test -z "$ac_c_werror_flag" ||
16258 test ! -s conftest.err
16259 } && test -s conftest$ac_exeext && {
16260 test "$cross_compiling" = yes ||
16261 $as_test_x conftest$ac_exeext
16262 }; then
16263 ac_cv_lib_SM_SmcOpenConnection=yes
16264 else
16265 $as_echo "$as_me: failed program was:" >&5
16266 sed 's/^/| /' conftest.$ac_ext >&5
16267
16268 ac_cv_lib_SM_SmcOpenConnection=no
16269 fi
16270
16271 rm -rf conftest.dSYM
16272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16273 conftest$ac_exeext conftest.$ac_ext
16274 LIBS=$ac_check_lib_save_LIBS
16275 fi
16276 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16277 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16278 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
16279 HAVE_X_SM=yes
16280 fi
16281
16282 fi
16283
16284
16285
16286 if test "${HAVE_X_SM}" = "yes"; then
16287
16288 cat >>confdefs.h <<\_ACEOF
16289 #define HAVE_X_SM 1
16290 _ACEOF
16291
16292 LIBXSM="-lSM -lICE"
16293 case "$LIBS" in
16294 *-lSM*) ;;
16295 *) LIBS="$LIBXSM $LIBS" ;;
16296 esac
16297 fi
16298 fi
16299
16300
16301 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16302 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16303 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16304 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16305 $as_echo_n "(cached) " >&6
16306 else
16307 cat >conftest.$ac_ext <<_ACEOF
16308 /* confdefs.h. */
16309 _ACEOF
16310 cat confdefs.h >>conftest.$ac_ext
16311 cat >>conftest.$ac_ext <<_ACEOF
16312 /* end confdefs.h. */
16313 #include <netdb.h>
16314 int
16315 main ()
16316 {
16317 return h_errno;
16318 ;
16319 return 0;
16320 }
16321 _ACEOF
16322 rm -f conftest.$ac_objext conftest$ac_exeext
16323 if { (ac_try="$ac_link"
16324 case "(($ac_try" in
16325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16326 *) ac_try_echo=$ac_try;;
16327 esac
16328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16329 $as_echo "$ac_try_echo") >&5
16330 (eval "$ac_link") 2>conftest.er1
16331 ac_status=$?
16332 grep -v '^ *+' conftest.er1 >conftest.err
16333 rm -f conftest.er1
16334 cat conftest.err >&5
16335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336 (exit $ac_status); } && {
16337 test -z "$ac_c_werror_flag" ||
16338 test ! -s conftest.err
16339 } && test -s conftest$ac_exeext && {
16340 test "$cross_compiling" = yes ||
16341 $as_test_x conftest$ac_exeext
16342 }; then
16343 emacs_cv_netdb_declares_h_errno=yes
16344 else
16345 $as_echo "$as_me: failed program was:" >&5
16346 sed 's/^/| /' conftest.$ac_ext >&5
16347
16348 emacs_cv_netdb_declares_h_errno=no
16349 fi
16350
16351 rm -rf conftest.dSYM
16352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16353 conftest$ac_exeext conftest.$ac_ext
16354 fi
16355 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16356 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16357 if test $emacs_cv_netdb_declares_h_errno = yes; then
16358
16359 cat >>confdefs.h <<\_ACEOF
16360 #define HAVE_H_ERRNO 1
16361 _ACEOF
16362
16363 fi
16364
16365 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16366 # for constant arguments. Useless!
16367 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16368 $as_echo_n "checking for working alloca.h... " >&6; }
16369 if test "${ac_cv_working_alloca_h+set}" = set; then
16370 $as_echo_n "(cached) " >&6
16371 else
16372 cat >conftest.$ac_ext <<_ACEOF
16373 /* confdefs.h. */
16374 _ACEOF
16375 cat confdefs.h >>conftest.$ac_ext
16376 cat >>conftest.$ac_ext <<_ACEOF
16377 /* end confdefs.h. */
16378 #include <alloca.h>
16379 int
16380 main ()
16381 {
16382 char *p = (char *) alloca (2 * sizeof (int));
16383 if (p) return 0;
16384 ;
16385 return 0;
16386 }
16387 _ACEOF
16388 rm -f conftest.$ac_objext conftest$ac_exeext
16389 if { (ac_try="$ac_link"
16390 case "(($ac_try" in
16391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16392 *) ac_try_echo=$ac_try;;
16393 esac
16394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16395 $as_echo "$ac_try_echo") >&5
16396 (eval "$ac_link") 2>conftest.er1
16397 ac_status=$?
16398 grep -v '^ *+' conftest.er1 >conftest.err
16399 rm -f conftest.er1
16400 cat conftest.err >&5
16401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402 (exit $ac_status); } && {
16403 test -z "$ac_c_werror_flag" ||
16404 test ! -s conftest.err
16405 } && test -s conftest$ac_exeext && {
16406 test "$cross_compiling" = yes ||
16407 $as_test_x conftest$ac_exeext
16408 }; then
16409 ac_cv_working_alloca_h=yes
16410 else
16411 $as_echo "$as_me: failed program was:" >&5
16412 sed 's/^/| /' conftest.$ac_ext >&5
16413
16414 ac_cv_working_alloca_h=no
16415 fi
16416
16417 rm -rf conftest.dSYM
16418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16419 conftest$ac_exeext conftest.$ac_ext
16420 fi
16421 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16422 $as_echo "$ac_cv_working_alloca_h" >&6; }
16423 if test $ac_cv_working_alloca_h = yes; then
16424
16425 cat >>confdefs.h <<\_ACEOF
16426 #define HAVE_ALLOCA_H 1
16427 _ACEOF
16428
16429 fi
16430
16431 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16432 $as_echo_n "checking for alloca... " >&6; }
16433 if test "${ac_cv_func_alloca_works+set}" = set; then
16434 $as_echo_n "(cached) " >&6
16435 else
16436 cat >conftest.$ac_ext <<_ACEOF
16437 /* confdefs.h. */
16438 _ACEOF
16439 cat confdefs.h >>conftest.$ac_ext
16440 cat >>conftest.$ac_ext <<_ACEOF
16441 /* end confdefs.h. */
16442 #ifdef __GNUC__
16443 # define alloca __builtin_alloca
16444 #else
16445 # ifdef _MSC_VER
16446 # include <malloc.h>
16447 # define alloca _alloca
16448 # else
16449 # ifdef HAVE_ALLOCA_H
16450 # include <alloca.h>
16451 # else
16452 # ifdef _AIX
16453 #pragma alloca
16454 # else
16455 # ifndef alloca /* predefined by HP cc +Olibcalls */
16456 char *alloca ();
16457 # endif
16458 # endif
16459 # endif
16460 # endif
16461 #endif
16462
16463 int
16464 main ()
16465 {
16466 char *p = (char *) alloca (1);
16467 if (p) return 0;
16468 ;
16469 return 0;
16470 }
16471 _ACEOF
16472 rm -f conftest.$ac_objext conftest$ac_exeext
16473 if { (ac_try="$ac_link"
16474 case "(($ac_try" in
16475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16476 *) ac_try_echo=$ac_try;;
16477 esac
16478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16479 $as_echo "$ac_try_echo") >&5
16480 (eval "$ac_link") 2>conftest.er1
16481 ac_status=$?
16482 grep -v '^ *+' conftest.er1 >conftest.err
16483 rm -f conftest.er1
16484 cat conftest.err >&5
16485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); } && {
16487 test -z "$ac_c_werror_flag" ||
16488 test ! -s conftest.err
16489 } && test -s conftest$ac_exeext && {
16490 test "$cross_compiling" = yes ||
16491 $as_test_x conftest$ac_exeext
16492 }; then
16493 ac_cv_func_alloca_works=yes
16494 else
16495 $as_echo "$as_me: failed program was:" >&5
16496 sed 's/^/| /' conftest.$ac_ext >&5
16497
16498 ac_cv_func_alloca_works=no
16499 fi
16500
16501 rm -rf conftest.dSYM
16502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16503 conftest$ac_exeext conftest.$ac_ext
16504 fi
16505 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16506 $as_echo "$ac_cv_func_alloca_works" >&6; }
16507
16508 if test $ac_cv_func_alloca_works = yes; then
16509
16510 cat >>confdefs.h <<\_ACEOF
16511 #define HAVE_ALLOCA 1
16512 _ACEOF
16513
16514 else
16515 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16516 # that cause trouble. Some versions do not even contain alloca or
16517 # contain a buggy version. If you still want to use their alloca,
16518 # use ar to extract alloca.o from them instead of compiling alloca.c.
16519
16520 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16521
16522 cat >>confdefs.h <<\_ACEOF
16523 #define C_ALLOCA 1
16524 _ACEOF
16525
16526
16527 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16528 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16529 if test "${ac_cv_os_cray+set}" = set; then
16530 $as_echo_n "(cached) " >&6
16531 else
16532 cat >conftest.$ac_ext <<_ACEOF
16533 /* confdefs.h. */
16534 _ACEOF
16535 cat confdefs.h >>conftest.$ac_ext
16536 cat >>conftest.$ac_ext <<_ACEOF
16537 /* end confdefs.h. */
16538 #if defined CRAY && ! defined CRAY2
16539 webecray
16540 #else
16541 wenotbecray
16542 #endif
16543
16544 _ACEOF
16545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16546 $EGREP "webecray" >/dev/null 2>&1; then
16547 ac_cv_os_cray=yes
16548 else
16549 ac_cv_os_cray=no
16550 fi
16551 rm -f conftest*
16552
16553 fi
16554 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16555 $as_echo "$ac_cv_os_cray" >&6; }
16556 if test $ac_cv_os_cray = yes; then
16557 for ac_func in _getb67 GETB67 getb67; do
16558 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16559 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16560 $as_echo_n "checking for $ac_func... " >&6; }
16561 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16562 $as_echo_n "(cached) " >&6
16563 else
16564 cat >conftest.$ac_ext <<_ACEOF
16565 /* confdefs.h. */
16566 _ACEOF
16567 cat confdefs.h >>conftest.$ac_ext
16568 cat >>conftest.$ac_ext <<_ACEOF
16569 /* end confdefs.h. */
16570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16572 #define $ac_func innocuous_$ac_func
16573
16574 /* System header to define __stub macros and hopefully few prototypes,
16575 which can conflict with char $ac_func (); below.
16576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16577 <limits.h> exists even on freestanding compilers. */
16578
16579 #ifdef __STDC__
16580 # include <limits.h>
16581 #else
16582 # include <assert.h>
16583 #endif
16584
16585 #undef $ac_func
16586
16587 /* Override any GCC internal prototype to avoid an error.
16588 Use char because int might match the return type of a GCC
16589 builtin and then its argument prototype would still apply. */
16590 #ifdef __cplusplus
16591 extern "C"
16592 #endif
16593 char $ac_func ();
16594 /* The GNU C library defines this for functions which it implements
16595 to always fail with ENOSYS. Some functions are actually named
16596 something starting with __ and the normal name is an alias. */
16597 #if defined __stub_$ac_func || defined __stub___$ac_func
16598 choke me
16599 #endif
16600
16601 int
16602 main ()
16603 {
16604 return $ac_func ();
16605 ;
16606 return 0;
16607 }
16608 _ACEOF
16609 rm -f conftest.$ac_objext conftest$ac_exeext
16610 if { (ac_try="$ac_link"
16611 case "(($ac_try" in
16612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16613 *) ac_try_echo=$ac_try;;
16614 esac
16615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16616 $as_echo "$ac_try_echo") >&5
16617 (eval "$ac_link") 2>conftest.er1
16618 ac_status=$?
16619 grep -v '^ *+' conftest.er1 >conftest.err
16620 rm -f conftest.er1
16621 cat conftest.err >&5
16622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); } && {
16624 test -z "$ac_c_werror_flag" ||
16625 test ! -s conftest.err
16626 } && test -s conftest$ac_exeext && {
16627 test "$cross_compiling" = yes ||
16628 $as_test_x conftest$ac_exeext
16629 }; then
16630 eval "$as_ac_var=yes"
16631 else
16632 $as_echo "$as_me: failed program was:" >&5
16633 sed 's/^/| /' conftest.$ac_ext >&5
16634
16635 eval "$as_ac_var=no"
16636 fi
16637
16638 rm -rf conftest.dSYM
16639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16640 conftest$ac_exeext conftest.$ac_ext
16641 fi
16642 ac_res=`eval 'as_val=${'$as_ac_var'}
16643 $as_echo "$as_val"'`
16644 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16645 $as_echo "$ac_res" >&6; }
16646 if test `eval 'as_val=${'$as_ac_var'}
16647 $as_echo "$as_val"'` = yes; then
16648
16649 cat >>confdefs.h <<_ACEOF
16650 #define CRAY_STACKSEG_END $ac_func
16651 _ACEOF
16652
16653 break
16654 fi
16655
16656 done
16657 fi
16658
16659 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16660 $as_echo_n "checking stack direction for C alloca... " >&6; }
16661 if test "${ac_cv_c_stack_direction+set}" = set; then
16662 $as_echo_n "(cached) " >&6
16663 else
16664 if test "$cross_compiling" = yes; then
16665 ac_cv_c_stack_direction=0
16666 else
16667 cat >conftest.$ac_ext <<_ACEOF
16668 /* confdefs.h. */
16669 _ACEOF
16670 cat confdefs.h >>conftest.$ac_ext
16671 cat >>conftest.$ac_ext <<_ACEOF
16672 /* end confdefs.h. */
16673 $ac_includes_default
16674 int
16675 find_stack_direction ()
16676 {
16677 static char *addr = 0;
16678 auto char dummy;
16679 if (addr == 0)
16680 {
16681 addr = &dummy;
16682 return find_stack_direction ();
16683 }
16684 else
16685 return (&dummy > addr) ? 1 : -1;
16686 }
16687
16688 int
16689 main ()
16690 {
16691 return find_stack_direction () < 0;
16692 }
16693 _ACEOF
16694 rm -f 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>&5
16703 ac_status=$?
16704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16706 { (case "(($ac_try" in
16707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16708 *) ac_try_echo=$ac_try;;
16709 esac
16710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16711 $as_echo "$ac_try_echo") >&5
16712 (eval "$ac_try") 2>&5
16713 ac_status=$?
16714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; }; then
16716 ac_cv_c_stack_direction=1
16717 else
16718 $as_echo "$as_me: program exited with status $ac_status" >&5
16719 $as_echo "$as_me: failed program was:" >&5
16720 sed 's/^/| /' conftest.$ac_ext >&5
16721
16722 ( exit $ac_status )
16723 ac_cv_c_stack_direction=-1
16724 fi
16725 rm -rf conftest.dSYM
16726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16727 fi
16728
16729
16730 fi
16731 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16732 $as_echo "$ac_cv_c_stack_direction" >&6; }
16733
16734 cat >>confdefs.h <<_ACEOF
16735 #define STACK_DIRECTION $ac_cv_c_stack_direction
16736 _ACEOF
16737
16738
16739 fi
16740
16741
16742 if test x"$ac_cv_func_alloca_works" != xyes; then
16743 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
16744 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
16745 { (exit 1); exit 1; }; }
16746 fi
16747
16748 # fmod, logb, and frexp are found in -lm on most systems.
16749 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16750
16751 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
16752 $as_echo_n "checking for sqrt in -lm... " >&6; }
16753 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16754 $as_echo_n "(cached) " >&6
16755 else
16756 ac_check_lib_save_LIBS=$LIBS
16757 LIBS="-lm $LIBS"
16758 cat >conftest.$ac_ext <<_ACEOF
16759 /* confdefs.h. */
16760 _ACEOF
16761 cat confdefs.h >>conftest.$ac_ext
16762 cat >>conftest.$ac_ext <<_ACEOF
16763 /* end confdefs.h. */
16764
16765 /* Override any GCC internal prototype to avoid an error.
16766 Use char because int might match the return type of a GCC
16767 builtin and then its argument prototype would still apply. */
16768 #ifdef __cplusplus
16769 extern "C"
16770 #endif
16771 char sqrt ();
16772 int
16773 main ()
16774 {
16775 return sqrt ();
16776 ;
16777 return 0;
16778 }
16779 _ACEOF
16780 rm -f conftest.$ac_objext conftest$ac_exeext
16781 if { (ac_try="$ac_link"
16782 case "(($ac_try" in
16783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16784 *) ac_try_echo=$ac_try;;
16785 esac
16786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16787 $as_echo "$ac_try_echo") >&5
16788 (eval "$ac_link") 2>conftest.er1
16789 ac_status=$?
16790 grep -v '^ *+' conftest.er1 >conftest.err
16791 rm -f conftest.er1
16792 cat conftest.err >&5
16793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794 (exit $ac_status); } && {
16795 test -z "$ac_c_werror_flag" ||
16796 test ! -s conftest.err
16797 } && test -s conftest$ac_exeext && {
16798 test "$cross_compiling" = yes ||
16799 $as_test_x conftest$ac_exeext
16800 }; then
16801 ac_cv_lib_m_sqrt=yes
16802 else
16803 $as_echo "$as_me: failed program was:" >&5
16804 sed 's/^/| /' conftest.$ac_ext >&5
16805
16806 ac_cv_lib_m_sqrt=no
16807 fi
16808
16809 rm -rf conftest.dSYM
16810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16811 conftest$ac_exeext conftest.$ac_ext
16812 LIBS=$ac_check_lib_save_LIBS
16813 fi
16814 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
16815 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16816 if test $ac_cv_lib_m_sqrt = yes; then
16817 cat >>confdefs.h <<_ACEOF
16818 #define HAVE_LIBM 1
16819 _ACEOF
16820
16821 LIBS="-lm $LIBS"
16822
16823 fi
16824
16825
16826 # Check for mail-locking functions in a "mail" library. Probably this should
16827 # have the same check as for liblockfile below.
16828 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
16829 $as_echo_n "checking for maillock in -lmail... " >&6; }
16830 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16831 $as_echo_n "(cached) " >&6
16832 else
16833 ac_check_lib_save_LIBS=$LIBS
16834 LIBS="-lmail $LIBS"
16835 cat >conftest.$ac_ext <<_ACEOF
16836 /* confdefs.h. */
16837 _ACEOF
16838 cat confdefs.h >>conftest.$ac_ext
16839 cat >>conftest.$ac_ext <<_ACEOF
16840 /* end confdefs.h. */
16841
16842 /* Override any GCC internal prototype to avoid an error.
16843 Use char because int might match the return type of a GCC
16844 builtin and then its argument prototype would still apply. */
16845 #ifdef __cplusplus
16846 extern "C"
16847 #endif
16848 char maillock ();
16849 int
16850 main ()
16851 {
16852 return maillock ();
16853 ;
16854 return 0;
16855 }
16856 _ACEOF
16857 rm -f conftest.$ac_objext conftest$ac_exeext
16858 if { (ac_try="$ac_link"
16859 case "(($ac_try" in
16860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16861 *) ac_try_echo=$ac_try;;
16862 esac
16863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16864 $as_echo "$ac_try_echo") >&5
16865 (eval "$ac_link") 2>conftest.er1
16866 ac_status=$?
16867 grep -v '^ *+' conftest.er1 >conftest.err
16868 rm -f conftest.er1
16869 cat conftest.err >&5
16870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); } && {
16872 test -z "$ac_c_werror_flag" ||
16873 test ! -s conftest.err
16874 } && test -s conftest$ac_exeext && {
16875 test "$cross_compiling" = yes ||
16876 $as_test_x conftest$ac_exeext
16877 }; then
16878 ac_cv_lib_mail_maillock=yes
16879 else
16880 $as_echo "$as_me: failed program was:" >&5
16881 sed 's/^/| /' conftest.$ac_ext >&5
16882
16883 ac_cv_lib_mail_maillock=no
16884 fi
16885
16886 rm -rf conftest.dSYM
16887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16888 conftest$ac_exeext conftest.$ac_ext
16889 LIBS=$ac_check_lib_save_LIBS
16890 fi
16891 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
16892 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
16893 if test $ac_cv_lib_mail_maillock = yes; then
16894 have_mail=yes
16895 else
16896 have_mail=no
16897 fi
16898
16899 if test $have_mail = yes; then
16900 LIBS_MAIL=-lmail
16901 LIBS="$LIBS_MAIL $LIBS"
16902
16903 cat >>confdefs.h <<\_ACEOF
16904 #define HAVE_LIBMAIL 1
16905 _ACEOF
16906
16907 else
16908 LIBS_MAIL=
16909 fi
16910 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
16911 $as_echo_n "checking for maillock in -llockfile... " >&6; }
16912 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16913 $as_echo_n "(cached) " >&6
16914 else
16915 ac_check_lib_save_LIBS=$LIBS
16916 LIBS="-llockfile $LIBS"
16917 cat >conftest.$ac_ext <<_ACEOF
16918 /* confdefs.h. */
16919 _ACEOF
16920 cat confdefs.h >>conftest.$ac_ext
16921 cat >>conftest.$ac_ext <<_ACEOF
16922 /* end confdefs.h. */
16923
16924 /* Override any GCC internal prototype to avoid an error.
16925 Use char because int might match the return type of a GCC
16926 builtin and then its argument prototype would still apply. */
16927 #ifdef __cplusplus
16928 extern "C"
16929 #endif
16930 char maillock ();
16931 int
16932 main ()
16933 {
16934 return maillock ();
16935 ;
16936 return 0;
16937 }
16938 _ACEOF
16939 rm -f conftest.$ac_objext conftest$ac_exeext
16940 if { (ac_try="$ac_link"
16941 case "(($ac_try" in
16942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16943 *) ac_try_echo=$ac_try;;
16944 esac
16945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16946 $as_echo "$ac_try_echo") >&5
16947 (eval "$ac_link") 2>conftest.er1
16948 ac_status=$?
16949 grep -v '^ *+' conftest.er1 >conftest.err
16950 rm -f conftest.er1
16951 cat conftest.err >&5
16952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); } && {
16954 test -z "$ac_c_werror_flag" ||
16955 test ! -s conftest.err
16956 } && test -s conftest$ac_exeext && {
16957 test "$cross_compiling" = yes ||
16958 $as_test_x conftest$ac_exeext
16959 }; then
16960 ac_cv_lib_lockfile_maillock=yes
16961 else
16962 $as_echo "$as_me: failed program was:" >&5
16963 sed 's/^/| /' conftest.$ac_ext >&5
16964
16965 ac_cv_lib_lockfile_maillock=no
16966 fi
16967
16968 rm -rf conftest.dSYM
16969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16970 conftest$ac_exeext conftest.$ac_ext
16971 LIBS=$ac_check_lib_save_LIBS
16972 fi
16973 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
16974 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
16975 if test $ac_cv_lib_lockfile_maillock = yes; then
16976 have_lockfile=yes
16977 else
16978 have_lockfile=no
16979 fi
16980
16981 if test $have_lockfile = yes; then
16982 LIBS_MAIL=-llockfile
16983 LIBS="$LIBS_MAIL $LIBS"
16984
16985 cat >>confdefs.h <<\_ACEOF
16986 #define HAVE_LIBLOCKFILE 1
16987 _ACEOF
16988
16989 else
16990 # If we have the shared liblockfile, assume we must use it for mail
16991 # locking (e.g. Debian). If we couldn't link against liblockfile
16992 # (no liblockfile.a installed), ensure that we don't need to.
16993 # Extract the first word of "liblockfile.so", so it can be a program name with args.
16994 set dummy liblockfile.so; ac_word=$2
16995 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16996 $as_echo_n "checking for $ac_word... " >&6; }
16997 if test "${ac_cv_prog_liblockfile+set}" = set; then
16998 $as_echo_n "(cached) " >&6
16999 else
17000 if test -n "$liblockfile"; then
17001 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
17002 else
17003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17004 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
17005 for as_dir in $as_dummy
17006 do
17007 IFS=$as_save_IFS
17008 test -z "$as_dir" && as_dir=.
17009 for ac_exec_ext in '' $ac_executable_extensions; do
17010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17011 ac_cv_prog_liblockfile="yes"
17012 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17013 break 2
17014 fi
17015 done
17016 done
17017 IFS=$as_save_IFS
17018
17019 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
17020 fi
17021 fi
17022 liblockfile=$ac_cv_prog_liblockfile
17023 if test -n "$liblockfile"; then
17024 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
17025 $as_echo "$liblockfile" >&6; }
17026 else
17027 { $as_echo "$as_me:$LINENO: result: no" >&5
17028 $as_echo "no" >&6; }
17029 fi
17030
17031
17032 if test $ac_cv_prog_liblockfile = yes; then
17033 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
17034 This probably means that movemail could lose mail.
17035 There may be a \`development' package to install containing liblockfile." >&5
17036 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
17037 This probably means that movemail could lose mail.
17038 There may be a \`development' package to install containing liblockfile." >&2;}
17039 { (exit 1); exit 1; }; }
17040 fi
17041 fi
17042
17043 for ac_func in touchlock
17044 do
17045 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17046 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17047 $as_echo_n "checking for $ac_func... " >&6; }
17048 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17049 $as_echo_n "(cached) " >&6
17050 else
17051 cat >conftest.$ac_ext <<_ACEOF
17052 /* confdefs.h. */
17053 _ACEOF
17054 cat confdefs.h >>conftest.$ac_ext
17055 cat >>conftest.$ac_ext <<_ACEOF
17056 /* end confdefs.h. */
17057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17059 #define $ac_func innocuous_$ac_func
17060
17061 /* System header to define __stub macros and hopefully few prototypes,
17062 which can conflict with char $ac_func (); below.
17063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17064 <limits.h> exists even on freestanding compilers. */
17065
17066 #ifdef __STDC__
17067 # include <limits.h>
17068 #else
17069 # include <assert.h>
17070 #endif
17071
17072 #undef $ac_func
17073
17074 /* Override any GCC internal prototype to avoid an error.
17075 Use char because int might match the return type of a GCC
17076 builtin and then its argument prototype would still apply. */
17077 #ifdef __cplusplus
17078 extern "C"
17079 #endif
17080 char $ac_func ();
17081 /* The GNU C library defines this for functions which it implements
17082 to always fail with ENOSYS. Some functions are actually named
17083 something starting with __ and the normal name is an alias. */
17084 #if defined __stub_$ac_func || defined __stub___$ac_func
17085 choke me
17086 #endif
17087
17088 int
17089 main ()
17090 {
17091 return $ac_func ();
17092 ;
17093 return 0;
17094 }
17095 _ACEOF
17096 rm -f conftest.$ac_objext conftest$ac_exeext
17097 if { (ac_try="$ac_link"
17098 case "(($ac_try" in
17099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17100 *) ac_try_echo=$ac_try;;
17101 esac
17102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17103 $as_echo "$ac_try_echo") >&5
17104 (eval "$ac_link") 2>conftest.er1
17105 ac_status=$?
17106 grep -v '^ *+' conftest.er1 >conftest.err
17107 rm -f conftest.er1
17108 cat conftest.err >&5
17109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); } && {
17111 test -z "$ac_c_werror_flag" ||
17112 test ! -s conftest.err
17113 } && test -s conftest$ac_exeext && {
17114 test "$cross_compiling" = yes ||
17115 $as_test_x conftest$ac_exeext
17116 }; then
17117 eval "$as_ac_var=yes"
17118 else
17119 $as_echo "$as_me: failed program was:" >&5
17120 sed 's/^/| /' conftest.$ac_ext >&5
17121
17122 eval "$as_ac_var=no"
17123 fi
17124
17125 rm -rf conftest.dSYM
17126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17127 conftest$ac_exeext conftest.$ac_ext
17128 fi
17129 ac_res=`eval 'as_val=${'$as_ac_var'}
17130 $as_echo "$as_val"'`
17131 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17132 $as_echo "$ac_res" >&6; }
17133 if test `eval 'as_val=${'$as_ac_var'}
17134 $as_echo "$as_val"'` = yes; then
17135 cat >>confdefs.h <<_ACEOF
17136 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17137 _ACEOF
17138
17139 fi
17140 done
17141
17142
17143 for ac_header in maillock.h
17144 do
17145 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17147 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17148 $as_echo_n "checking for $ac_header... " >&6; }
17149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17150 $as_echo_n "(cached) " >&6
17151 fi
17152 ac_res=`eval 'as_val=${'$as_ac_Header'}
17153 $as_echo "$as_val"'`
17154 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17155 $as_echo "$ac_res" >&6; }
17156 else
17157 # Is the header compilable?
17158 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17159 $as_echo_n "checking $ac_header usability... " >&6; }
17160 cat >conftest.$ac_ext <<_ACEOF
17161 /* confdefs.h. */
17162 _ACEOF
17163 cat confdefs.h >>conftest.$ac_ext
17164 cat >>conftest.$ac_ext <<_ACEOF
17165 /* end confdefs.h. */
17166 $ac_includes_default
17167 #include <$ac_header>
17168 _ACEOF
17169 rm -f conftest.$ac_objext
17170 if { (ac_try="$ac_compile"
17171 case "(($ac_try" in
17172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17173 *) ac_try_echo=$ac_try;;
17174 esac
17175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17176 $as_echo "$ac_try_echo") >&5
17177 (eval "$ac_compile") 2>conftest.er1
17178 ac_status=$?
17179 grep -v '^ *+' conftest.er1 >conftest.err
17180 rm -f conftest.er1
17181 cat conftest.err >&5
17182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); } && {
17184 test -z "$ac_c_werror_flag" ||
17185 test ! -s conftest.err
17186 } && test -s conftest.$ac_objext; then
17187 ac_header_compiler=yes
17188 else
17189 $as_echo "$as_me: failed program was:" >&5
17190 sed 's/^/| /' conftest.$ac_ext >&5
17191
17192 ac_header_compiler=no
17193 fi
17194
17195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17196 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17197 $as_echo "$ac_header_compiler" >&6; }
17198
17199 # Is the header present?
17200 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17201 $as_echo_n "checking $ac_header presence... " >&6; }
17202 cat >conftest.$ac_ext <<_ACEOF
17203 /* confdefs.h. */
17204 _ACEOF
17205 cat confdefs.h >>conftest.$ac_ext
17206 cat >>conftest.$ac_ext <<_ACEOF
17207 /* end confdefs.h. */
17208 #include <$ac_header>
17209 _ACEOF
17210 if { (ac_try="$ac_cpp conftest.$ac_ext"
17211 case "(($ac_try" in
17212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17213 *) ac_try_echo=$ac_try;;
17214 esac
17215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17216 $as_echo "$ac_try_echo") >&5
17217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17218 ac_status=$?
17219 grep -v '^ *+' conftest.er1 >conftest.err
17220 rm -f conftest.er1
17221 cat conftest.err >&5
17222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); } >/dev/null && {
17224 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17225 test ! -s conftest.err
17226 }; then
17227 ac_header_preproc=yes
17228 else
17229 $as_echo "$as_me: failed program was:" >&5
17230 sed 's/^/| /' conftest.$ac_ext >&5
17231
17232 ac_header_preproc=no
17233 fi
17234
17235 rm -f conftest.err conftest.$ac_ext
17236 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17237 $as_echo "$ac_header_preproc" >&6; }
17238
17239 # So? What about this header?
17240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17241 yes:no: )
17242 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17243 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17245 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17246 ac_header_preproc=yes
17247 ;;
17248 no:yes:* )
17249 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17250 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17251 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17252 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17254 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17256 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17257 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17258 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17259 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17260 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17261
17262 ;;
17263 esac
17264 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17265 $as_echo_n "checking for $ac_header... " >&6; }
17266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17267 $as_echo_n "(cached) " >&6
17268 else
17269 eval "$as_ac_Header=\$ac_header_preproc"
17270 fi
17271 ac_res=`eval 'as_val=${'$as_ac_Header'}
17272 $as_echo "$as_val"'`
17273 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17274 $as_echo "$ac_res" >&6; }
17275
17276 fi
17277 if test `eval 'as_val=${'$as_ac_Header'}
17278 $as_echo "$as_val"'` = yes; then
17279 cat >>confdefs.h <<_ACEOF
17280 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17281 _ACEOF
17282
17283 fi
17284
17285 done
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360 for ac_func in gethostname getdomainname dup2 \
17361 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17362 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17363 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17364 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17365 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17366 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17367 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17368 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17369 cfmakeraw cfsetspeed
17370 do
17371 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17372 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17373 $as_echo_n "checking for $ac_func... " >&6; }
17374 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17375 $as_echo_n "(cached) " >&6
17376 else
17377 cat >conftest.$ac_ext <<_ACEOF
17378 /* confdefs.h. */
17379 _ACEOF
17380 cat confdefs.h >>conftest.$ac_ext
17381 cat >>conftest.$ac_ext <<_ACEOF
17382 /* end confdefs.h. */
17383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17385 #define $ac_func innocuous_$ac_func
17386
17387 /* System header to define __stub macros and hopefully few prototypes,
17388 which can conflict with char $ac_func (); below.
17389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17390 <limits.h> exists even on freestanding compilers. */
17391
17392 #ifdef __STDC__
17393 # include <limits.h>
17394 #else
17395 # include <assert.h>
17396 #endif
17397
17398 #undef $ac_func
17399
17400 /* Override any GCC internal prototype to avoid an error.
17401 Use char because int might match the return type of a GCC
17402 builtin and then its argument prototype would still apply. */
17403 #ifdef __cplusplus
17404 extern "C"
17405 #endif
17406 char $ac_func ();
17407 /* The GNU C library defines this for functions which it implements
17408 to always fail with ENOSYS. Some functions are actually named
17409 something starting with __ and the normal name is an alias. */
17410 #if defined __stub_$ac_func || defined __stub___$ac_func
17411 choke me
17412 #endif
17413
17414 int
17415 main ()
17416 {
17417 return $ac_func ();
17418 ;
17419 return 0;
17420 }
17421 _ACEOF
17422 rm -f conftest.$ac_objext conftest$ac_exeext
17423 if { (ac_try="$ac_link"
17424 case "(($ac_try" in
17425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17426 *) ac_try_echo=$ac_try;;
17427 esac
17428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17429 $as_echo "$ac_try_echo") >&5
17430 (eval "$ac_link") 2>conftest.er1
17431 ac_status=$?
17432 grep -v '^ *+' conftest.er1 >conftest.err
17433 rm -f conftest.er1
17434 cat conftest.err >&5
17435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); } && {
17437 test -z "$ac_c_werror_flag" ||
17438 test ! -s conftest.err
17439 } && test -s conftest$ac_exeext && {
17440 test "$cross_compiling" = yes ||
17441 $as_test_x conftest$ac_exeext
17442 }; then
17443 eval "$as_ac_var=yes"
17444 else
17445 $as_echo "$as_me: failed program was:" >&5
17446 sed 's/^/| /' conftest.$ac_ext >&5
17447
17448 eval "$as_ac_var=no"
17449 fi
17450
17451 rm -rf conftest.dSYM
17452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17453 conftest$ac_exeext conftest.$ac_ext
17454 fi
17455 ac_res=`eval 'as_val=${'$as_ac_var'}
17456 $as_echo "$as_val"'`
17457 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17458 $as_echo "$ac_res" >&6; }
17459 if test `eval 'as_val=${'$as_ac_var'}
17460 $as_echo "$as_val"'` = yes; then
17461 cat >>confdefs.h <<_ACEOF
17462 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17463 _ACEOF
17464
17465 fi
17466 done
17467
17468
17469
17470 for ac_header in sys/un.h
17471 do
17472 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17474 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17475 $as_echo_n "checking for $ac_header... " >&6; }
17476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17477 $as_echo_n "(cached) " >&6
17478 fi
17479 ac_res=`eval 'as_val=${'$as_ac_Header'}
17480 $as_echo "$as_val"'`
17481 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17482 $as_echo "$ac_res" >&6; }
17483 else
17484 # Is the header compilable?
17485 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17486 $as_echo_n "checking $ac_header usability... " >&6; }
17487 cat >conftest.$ac_ext <<_ACEOF
17488 /* confdefs.h. */
17489 _ACEOF
17490 cat confdefs.h >>conftest.$ac_ext
17491 cat >>conftest.$ac_ext <<_ACEOF
17492 /* end confdefs.h. */
17493 $ac_includes_default
17494 #include <$ac_header>
17495 _ACEOF
17496 rm -f conftest.$ac_objext
17497 if { (ac_try="$ac_compile"
17498 case "(($ac_try" in
17499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17500 *) ac_try_echo=$ac_try;;
17501 esac
17502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17503 $as_echo "$ac_try_echo") >&5
17504 (eval "$ac_compile") 2>conftest.er1
17505 ac_status=$?
17506 grep -v '^ *+' conftest.er1 >conftest.err
17507 rm -f conftest.er1
17508 cat conftest.err >&5
17509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); } && {
17511 test -z "$ac_c_werror_flag" ||
17512 test ! -s conftest.err
17513 } && test -s conftest.$ac_objext; then
17514 ac_header_compiler=yes
17515 else
17516 $as_echo "$as_me: failed program was:" >&5
17517 sed 's/^/| /' conftest.$ac_ext >&5
17518
17519 ac_header_compiler=no
17520 fi
17521
17522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17523 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17524 $as_echo "$ac_header_compiler" >&6; }
17525
17526 # Is the header present?
17527 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17528 $as_echo_n "checking $ac_header presence... " >&6; }
17529 cat >conftest.$ac_ext <<_ACEOF
17530 /* confdefs.h. */
17531 _ACEOF
17532 cat confdefs.h >>conftest.$ac_ext
17533 cat >>conftest.$ac_ext <<_ACEOF
17534 /* end confdefs.h. */
17535 #include <$ac_header>
17536 _ACEOF
17537 if { (ac_try="$ac_cpp conftest.$ac_ext"
17538 case "(($ac_try" in
17539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17540 *) ac_try_echo=$ac_try;;
17541 esac
17542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17543 $as_echo "$ac_try_echo") >&5
17544 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17545 ac_status=$?
17546 grep -v '^ *+' conftest.er1 >conftest.err
17547 rm -f conftest.er1
17548 cat conftest.err >&5
17549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); } >/dev/null && {
17551 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17552 test ! -s conftest.err
17553 }; then
17554 ac_header_preproc=yes
17555 else
17556 $as_echo "$as_me: failed program was:" >&5
17557 sed 's/^/| /' conftest.$ac_ext >&5
17558
17559 ac_header_preproc=no
17560 fi
17561
17562 rm -f conftest.err conftest.$ac_ext
17563 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17564 $as_echo "$ac_header_preproc" >&6; }
17565
17566 # So? What about this header?
17567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17568 yes:no: )
17569 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17570 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17571 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17572 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17573 ac_header_preproc=yes
17574 ;;
17575 no:yes:* )
17576 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17577 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17578 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17579 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17580 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17581 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17582 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17583 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17584 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17585 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17586 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17587 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17588
17589 ;;
17590 esac
17591 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17592 $as_echo_n "checking for $ac_header... " >&6; }
17593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17594 $as_echo_n "(cached) " >&6
17595 else
17596 eval "$as_ac_Header=\$ac_header_preproc"
17597 fi
17598 ac_res=`eval 'as_val=${'$as_ac_Header'}
17599 $as_echo "$as_val"'`
17600 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17601 $as_echo "$ac_res" >&6; }
17602
17603 fi
17604 if test `eval 'as_val=${'$as_ac_Header'}
17605 $as_echo "$as_val"'` = yes; then
17606 cat >>confdefs.h <<_ACEOF
17607 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17608 _ACEOF
17609
17610 fi
17611
17612 done
17613
17614
17615
17616
17617
17618
17619 for ac_header in $ac_header_list
17620 do
17621 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17623 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17624 $as_echo_n "checking for $ac_header... " >&6; }
17625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17626 $as_echo_n "(cached) " >&6
17627 fi
17628 ac_res=`eval 'as_val=${'$as_ac_Header'}
17629 $as_echo "$as_val"'`
17630 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17631 $as_echo "$ac_res" >&6; }
17632 else
17633 # Is the header compilable?
17634 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17635 $as_echo_n "checking $ac_header usability... " >&6; }
17636 cat >conftest.$ac_ext <<_ACEOF
17637 /* confdefs.h. */
17638 _ACEOF
17639 cat confdefs.h >>conftest.$ac_ext
17640 cat >>conftest.$ac_ext <<_ACEOF
17641 /* end confdefs.h. */
17642 $ac_includes_default
17643 #include <$ac_header>
17644 _ACEOF
17645 rm -f conftest.$ac_objext
17646 if { (ac_try="$ac_compile"
17647 case "(($ac_try" in
17648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17649 *) ac_try_echo=$ac_try;;
17650 esac
17651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17652 $as_echo "$ac_try_echo") >&5
17653 (eval "$ac_compile") 2>conftest.er1
17654 ac_status=$?
17655 grep -v '^ *+' conftest.er1 >conftest.err
17656 rm -f conftest.er1
17657 cat conftest.err >&5
17658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); } && {
17660 test -z "$ac_c_werror_flag" ||
17661 test ! -s conftest.err
17662 } && test -s conftest.$ac_objext; then
17663 ac_header_compiler=yes
17664 else
17665 $as_echo "$as_me: failed program was:" >&5
17666 sed 's/^/| /' conftest.$ac_ext >&5
17667
17668 ac_header_compiler=no
17669 fi
17670
17671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17672 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17673 $as_echo "$ac_header_compiler" >&6; }
17674
17675 # Is the header present?
17676 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17677 $as_echo_n "checking $ac_header presence... " >&6; }
17678 cat >conftest.$ac_ext <<_ACEOF
17679 /* confdefs.h. */
17680 _ACEOF
17681 cat confdefs.h >>conftest.$ac_ext
17682 cat >>conftest.$ac_ext <<_ACEOF
17683 /* end confdefs.h. */
17684 #include <$ac_header>
17685 _ACEOF
17686 if { (ac_try="$ac_cpp conftest.$ac_ext"
17687 case "(($ac_try" in
17688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17689 *) ac_try_echo=$ac_try;;
17690 esac
17691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17692 $as_echo "$ac_try_echo") >&5
17693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17694 ac_status=$?
17695 grep -v '^ *+' conftest.er1 >conftest.err
17696 rm -f conftest.er1
17697 cat conftest.err >&5
17698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); } >/dev/null && {
17700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17701 test ! -s conftest.err
17702 }; then
17703 ac_header_preproc=yes
17704 else
17705 $as_echo "$as_me: failed program was:" >&5
17706 sed 's/^/| /' conftest.$ac_ext >&5
17707
17708 ac_header_preproc=no
17709 fi
17710
17711 rm -f conftest.err conftest.$ac_ext
17712 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17713 $as_echo "$ac_header_preproc" >&6; }
17714
17715 # So? What about this header?
17716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17717 yes:no: )
17718 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17719 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17720 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17721 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17722 ac_header_preproc=yes
17723 ;;
17724 no:yes:* )
17725 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17726 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17727 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17728 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17729 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17730 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17731 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17732 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17733 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17734 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17735 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17736 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17737
17738 ;;
17739 esac
17740 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17741 $as_echo_n "checking for $ac_header... " >&6; }
17742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17743 $as_echo_n "(cached) " >&6
17744 else
17745 eval "$as_ac_Header=\$ac_header_preproc"
17746 fi
17747 ac_res=`eval 'as_val=${'$as_ac_Header'}
17748 $as_echo "$as_val"'`
17749 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17750 $as_echo "$ac_res" >&6; }
17751
17752 fi
17753 if test `eval 'as_val=${'$as_ac_Header'}
17754 $as_echo "$as_val"'` = yes; then
17755 cat >>confdefs.h <<_ACEOF
17756 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17757 _ACEOF
17758
17759 fi
17760
17761 done
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771 for ac_func in $ac_func_list
17772 do
17773 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17774 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17775 $as_echo_n "checking for $ac_func... " >&6; }
17776 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17777 $as_echo_n "(cached) " >&6
17778 else
17779 cat >conftest.$ac_ext <<_ACEOF
17780 /* confdefs.h. */
17781 _ACEOF
17782 cat confdefs.h >>conftest.$ac_ext
17783 cat >>conftest.$ac_ext <<_ACEOF
17784 /* end confdefs.h. */
17785 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17787 #define $ac_func innocuous_$ac_func
17788
17789 /* System header to define __stub macros and hopefully few prototypes,
17790 which can conflict with char $ac_func (); below.
17791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17792 <limits.h> exists even on freestanding compilers. */
17793
17794 #ifdef __STDC__
17795 # include <limits.h>
17796 #else
17797 # include <assert.h>
17798 #endif
17799
17800 #undef $ac_func
17801
17802 /* Override any GCC internal prototype to avoid an error.
17803 Use char because int might match the return type of a GCC
17804 builtin and then its argument prototype would still apply. */
17805 #ifdef __cplusplus
17806 extern "C"
17807 #endif
17808 char $ac_func ();
17809 /* The GNU C library defines this for functions which it implements
17810 to always fail with ENOSYS. Some functions are actually named
17811 something starting with __ and the normal name is an alias. */
17812 #if defined __stub_$ac_func || defined __stub___$ac_func
17813 choke me
17814 #endif
17815
17816 int
17817 main ()
17818 {
17819 return $ac_func ();
17820 ;
17821 return 0;
17822 }
17823 _ACEOF
17824 rm -f conftest.$ac_objext conftest$ac_exeext
17825 if { (ac_try="$ac_link"
17826 case "(($ac_try" in
17827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17828 *) ac_try_echo=$ac_try;;
17829 esac
17830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17831 $as_echo "$ac_try_echo") >&5
17832 (eval "$ac_link") 2>conftest.er1
17833 ac_status=$?
17834 grep -v '^ *+' conftest.er1 >conftest.err
17835 rm -f conftest.er1
17836 cat conftest.err >&5
17837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838 (exit $ac_status); } && {
17839 test -z "$ac_c_werror_flag" ||
17840 test ! -s conftest.err
17841 } && test -s conftest$ac_exeext && {
17842 test "$cross_compiling" = yes ||
17843 $as_test_x conftest$ac_exeext
17844 }; then
17845 eval "$as_ac_var=yes"
17846 else
17847 $as_echo "$as_me: failed program was:" >&5
17848 sed 's/^/| /' conftest.$ac_ext >&5
17849
17850 eval "$as_ac_var=no"
17851 fi
17852
17853 rm -rf conftest.dSYM
17854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17855 conftest$ac_exeext conftest.$ac_ext
17856 fi
17857 ac_res=`eval 'as_val=${'$as_ac_var'}
17858 $as_echo "$as_val"'`
17859 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17860 $as_echo "$ac_res" >&6; }
17861 if test `eval 'as_val=${'$as_ac_var'}
17862 $as_echo "$as_val"'` = yes; then
17863 cat >>confdefs.h <<_ACEOF
17864 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17865 _ACEOF
17866
17867 fi
17868 done
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
17887 $as_echo_n "checking for working mktime... " >&6; }
17888 if test "${ac_cv_func_working_mktime+set}" = set; then
17889 $as_echo_n "(cached) " >&6
17890 else
17891 if test "$cross_compiling" = yes; then
17892 ac_cv_func_working_mktime=no
17893 else
17894 cat >conftest.$ac_ext <<_ACEOF
17895 /* confdefs.h. */
17896 _ACEOF
17897 cat confdefs.h >>conftest.$ac_ext
17898 cat >>conftest.$ac_ext <<_ACEOF
17899 /* end confdefs.h. */
17900 /* Test program from Paul Eggert and Tony Leneis. */
17901 #ifdef TIME_WITH_SYS_TIME
17902 # include <sys/time.h>
17903 # include <time.h>
17904 #else
17905 # ifdef HAVE_SYS_TIME_H
17906 # include <sys/time.h>
17907 # else
17908 # include <time.h>
17909 # endif
17910 #endif
17911
17912 #include <limits.h>
17913 #include <stdlib.h>
17914
17915 #ifdef HAVE_UNISTD_H
17916 # include <unistd.h>
17917 #endif
17918
17919 #ifndef HAVE_ALARM
17920 # define alarm(X) /* empty */
17921 #endif
17922
17923 /* Work around redefinition to rpl_putenv by other config tests. */
17924 #undef putenv
17925
17926 static time_t time_t_max;
17927 static time_t time_t_min;
17928
17929 /* Values we'll use to set the TZ environment variable. */
17930 static char *tz_strings[] = {
17931 (char *) 0, "TZ=GMT0", "TZ=JST-9",
17932 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
17933 };
17934 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17935
17936 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17937 Based on a problem report from Andreas Jaeger. */
17938 static int
17939 spring_forward_gap ()
17940 {
17941 /* glibc (up to about 1998-10-07) failed this test. */
17942 struct tm tm;
17943
17944 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17945 instead of "TZ=America/Vancouver" in order to detect the bug even
17946 on systems that don't support the Olson extension, or don't have the
17947 full zoneinfo tables installed. */
17948 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17949
17950 tm.tm_year = 98;
17951 tm.tm_mon = 3;
17952 tm.tm_mday = 5;
17953 tm.tm_hour = 2;
17954 tm.tm_min = 0;
17955 tm.tm_sec = 0;
17956 tm.tm_isdst = -1;
17957 return mktime (&tm) != (time_t) -1;
17958 }
17959
17960 static int
17961 mktime_test1 (now)
17962 time_t now;
17963 {
17964 struct tm *lt;
17965 return ! (lt = localtime (&now)) || mktime (lt) == now;
17966 }
17967
17968 static int
17969 mktime_test (now)
17970 time_t now;
17971 {
17972 return (mktime_test1 (now)
17973 && mktime_test1 ((time_t) (time_t_max - now))
17974 && mktime_test1 ((time_t) (time_t_min + now)));
17975 }
17976
17977 static int
17978 irix_6_4_bug ()
17979 {
17980 /* Based on code from Ariel Faigon. */
17981 struct tm tm;
17982 tm.tm_year = 96;
17983 tm.tm_mon = 3;
17984 tm.tm_mday = 0;
17985 tm.tm_hour = 0;
17986 tm.tm_min = 0;
17987 tm.tm_sec = 0;
17988 tm.tm_isdst = -1;
17989 mktime (&tm);
17990 return tm.tm_mon == 2 && tm.tm_mday == 31;
17991 }
17992
17993 static int
17994 bigtime_test (j)
17995 int j;
17996 {
17997 struct tm tm;
17998 time_t now;
17999 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
18000 now = mktime (&tm);
18001 if (now != (time_t) -1)
18002 {
18003 struct tm *lt = localtime (&now);
18004 if (! (lt
18005 && lt->tm_year == tm.tm_year
18006 && lt->tm_mon == tm.tm_mon
18007 && lt->tm_mday == tm.tm_mday
18008 && lt->tm_hour == tm.tm_hour
18009 && lt->tm_min == tm.tm_min
18010 && lt->tm_sec == tm.tm_sec
18011 && lt->tm_yday == tm.tm_yday
18012 && lt->tm_wday == tm.tm_wday
18013 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
18014 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
18015 return 0;
18016 }
18017 return 1;
18018 }
18019
18020 static int
18021 year_2050_test ()
18022 {
18023 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
18024 ignoring leap seconds. */
18025 unsigned long int answer = 2527315200UL;
18026
18027 struct tm tm;
18028 time_t t;
18029 tm.tm_year = 2050 - 1900;
18030 tm.tm_mon = 2 - 1;
18031 tm.tm_mday = 1;
18032 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
18033 tm.tm_isdst = -1;
18034
18035 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18036 instead of "TZ=America/Vancouver" in order to detect the bug even
18037 on systems that don't support the Olson extension, or don't have the
18038 full zoneinfo tables installed. */
18039 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
18040
18041 t = mktime (&tm);
18042
18043 /* Check that the result is either a failure, or close enough
18044 to the correct answer that we can assume the discrepancy is
18045 due to leap seconds. */
18046 return (t == (time_t) -1
18047 || (0 < t && answer - 120 <= t && t <= answer + 120));
18048 }
18049
18050 int
18051 main ()
18052 {
18053 time_t t, delta;
18054 int i, j;
18055
18056 /* This test makes some buggy mktime implementations loop.
18057 Give up after 60 seconds; a mktime slower than that
18058 isn't worth using anyway. */
18059 alarm (60);
18060
18061 for (;;)
18062 {
18063 t = (time_t_max << 1) + 1;
18064 if (t <= time_t_max)
18065 break;
18066 time_t_max = t;
18067 }
18068 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
18069
18070 delta = time_t_max / 997; /* a suitable prime number */
18071 for (i = 0; i < N_STRINGS; i++)
18072 {
18073 if (tz_strings[i])
18074 putenv (tz_strings[i]);
18075
18076 for (t = 0; t <= time_t_max - delta; t += delta)
18077 if (! mktime_test (t))
18078 return 1;
18079 if (! (mktime_test ((time_t) 1)
18080 && mktime_test ((time_t) (60 * 60))
18081 && mktime_test ((time_t) (60 * 60 * 24))))
18082 return 1;
18083
18084 for (j = 1; ; j <<= 1)
18085 if (! bigtime_test (j))
18086 return 1;
18087 else if (INT_MAX / 2 < j)
18088 break;
18089 if (! bigtime_test (INT_MAX))
18090 return 1;
18091 }
18092 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18093 }
18094 _ACEOF
18095 rm -f conftest$ac_exeext
18096 if { (ac_try="$ac_link"
18097 case "(($ac_try" in
18098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18099 *) ac_try_echo=$ac_try;;
18100 esac
18101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18102 $as_echo "$ac_try_echo") >&5
18103 (eval "$ac_link") 2>&5
18104 ac_status=$?
18105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18107 { (case "(($ac_try" in
18108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18109 *) ac_try_echo=$ac_try;;
18110 esac
18111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18112 $as_echo "$ac_try_echo") >&5
18113 (eval "$ac_try") 2>&5
18114 ac_status=$?
18115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); }; }; then
18117 ac_cv_func_working_mktime=yes
18118 else
18119 $as_echo "$as_me: program exited with status $ac_status" >&5
18120 $as_echo "$as_me: failed program was:" >&5
18121 sed 's/^/| /' conftest.$ac_ext >&5
18122
18123 ( exit $ac_status )
18124 ac_cv_func_working_mktime=no
18125 fi
18126 rm -rf conftest.dSYM
18127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18128 fi
18129
18130
18131 fi
18132 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
18133 $as_echo "$ac_cv_func_working_mktime" >&6; }
18134 if test $ac_cv_func_working_mktime = no; then
18135 case " $LIBOBJS " in
18136 *" mktime.$ac_objext "* ) ;;
18137 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
18138 ;;
18139 esac
18140
18141 fi
18142
18143 if test "$ac_cv_func_working_mktime" = no; then
18144
18145 cat >>confdefs.h <<\_ACEOF
18146 #define BROKEN_MKTIME 1
18147 _ACEOF
18148
18149 fi
18150
18151 ac_have_func=no # yes means we've found a way to get the load average.
18152
18153 # Make sure getloadavg.c is where it belongs, at configure-time.
18154 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
18155 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
18156 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
18157 { (exit 1); exit 1; }; }
18158
18159 ac_save_LIBS=$LIBS
18160
18161 # Check for getloadavg, but be sure not to touch the cache variable.
18162 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
18163 $as_echo_n "checking for getloadavg... " >&6; }
18164 if test "${ac_cv_func_getloadavg+set}" = set; then
18165 $as_echo_n "(cached) " >&6
18166 else
18167 cat >conftest.$ac_ext <<_ACEOF
18168 /* confdefs.h. */
18169 _ACEOF
18170 cat confdefs.h >>conftest.$ac_ext
18171 cat >>conftest.$ac_ext <<_ACEOF
18172 /* end confdefs.h. */
18173 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18175 #define getloadavg innocuous_getloadavg
18176
18177 /* System header to define __stub macros and hopefully few prototypes,
18178 which can conflict with char getloadavg (); below.
18179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18180 <limits.h> exists even on freestanding compilers. */
18181
18182 #ifdef __STDC__
18183 # include <limits.h>
18184 #else
18185 # include <assert.h>
18186 #endif
18187
18188 #undef getloadavg
18189
18190 /* Override any GCC internal prototype to avoid an error.
18191 Use char because int might match the return type of a GCC
18192 builtin and then its argument prototype would still apply. */
18193 #ifdef __cplusplus
18194 extern "C"
18195 #endif
18196 char getloadavg ();
18197 /* The GNU C library defines this for functions which it implements
18198 to always fail with ENOSYS. Some functions are actually named
18199 something starting with __ and the normal name is an alias. */
18200 #if defined __stub_getloadavg || defined __stub___getloadavg
18201 choke me
18202 #endif
18203
18204 int
18205 main ()
18206 {
18207 return getloadavg ();
18208 ;
18209 return 0;
18210 }
18211 _ACEOF
18212 rm -f conftest.$ac_objext conftest$ac_exeext
18213 if { (ac_try="$ac_link"
18214 case "(($ac_try" in
18215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18216 *) ac_try_echo=$ac_try;;
18217 esac
18218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18219 $as_echo "$ac_try_echo") >&5
18220 (eval "$ac_link") 2>conftest.er1
18221 ac_status=$?
18222 grep -v '^ *+' conftest.er1 >conftest.err
18223 rm -f conftest.er1
18224 cat conftest.err >&5
18225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); } && {
18227 test -z "$ac_c_werror_flag" ||
18228 test ! -s conftest.err
18229 } && test -s conftest$ac_exeext && {
18230 test "$cross_compiling" = yes ||
18231 $as_test_x conftest$ac_exeext
18232 }; then
18233 ac_cv_func_getloadavg=yes
18234 else
18235 $as_echo "$as_me: failed program was:" >&5
18236 sed 's/^/| /' conftest.$ac_ext >&5
18237
18238 ac_cv_func_getloadavg=no
18239 fi
18240
18241 rm -rf conftest.dSYM
18242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18243 conftest$ac_exeext conftest.$ac_ext
18244 fi
18245 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
18246 $as_echo "$ac_cv_func_getloadavg" >&6; }
18247 if test $ac_cv_func_getloadavg = yes; then
18248 exit 0
18249 else
18250 exit 1
18251 fi
18252 ) && ac_have_func=yes
18253
18254 # On HPUX9, an unprivileged user can get load averages through this function.
18255
18256 for ac_func in pstat_getdynamic
18257 do
18258 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18259 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18260 $as_echo_n "checking for $ac_func... " >&6; }
18261 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18262 $as_echo_n "(cached) " >&6
18263 else
18264 cat >conftest.$ac_ext <<_ACEOF
18265 /* confdefs.h. */
18266 _ACEOF
18267 cat confdefs.h >>conftest.$ac_ext
18268 cat >>conftest.$ac_ext <<_ACEOF
18269 /* end confdefs.h. */
18270 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18272 #define $ac_func innocuous_$ac_func
18273
18274 /* System header to define __stub macros and hopefully few prototypes,
18275 which can conflict with char $ac_func (); below.
18276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18277 <limits.h> exists even on freestanding compilers. */
18278
18279 #ifdef __STDC__
18280 # include <limits.h>
18281 #else
18282 # include <assert.h>
18283 #endif
18284
18285 #undef $ac_func
18286
18287 /* Override any GCC internal prototype to avoid an error.
18288 Use char because int might match the return type of a GCC
18289 builtin and then its argument prototype would still apply. */
18290 #ifdef __cplusplus
18291 extern "C"
18292 #endif
18293 char $ac_func ();
18294 /* The GNU C library defines this for functions which it implements
18295 to always fail with ENOSYS. Some functions are actually named
18296 something starting with __ and the normal name is an alias. */
18297 #if defined __stub_$ac_func || defined __stub___$ac_func
18298 choke me
18299 #endif
18300
18301 int
18302 main ()
18303 {
18304 return $ac_func ();
18305 ;
18306 return 0;
18307 }
18308 _ACEOF
18309 rm -f conftest.$ac_objext conftest$ac_exeext
18310 if { (ac_try="$ac_link"
18311 case "(($ac_try" in
18312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18313 *) ac_try_echo=$ac_try;;
18314 esac
18315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18316 $as_echo "$ac_try_echo") >&5
18317 (eval "$ac_link") 2>conftest.er1
18318 ac_status=$?
18319 grep -v '^ *+' conftest.er1 >conftest.err
18320 rm -f conftest.er1
18321 cat conftest.err >&5
18322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323 (exit $ac_status); } && {
18324 test -z "$ac_c_werror_flag" ||
18325 test ! -s conftest.err
18326 } && test -s conftest$ac_exeext && {
18327 test "$cross_compiling" = yes ||
18328 $as_test_x conftest$ac_exeext
18329 }; then
18330 eval "$as_ac_var=yes"
18331 else
18332 $as_echo "$as_me: failed program was:" >&5
18333 sed 's/^/| /' conftest.$ac_ext >&5
18334
18335 eval "$as_ac_var=no"
18336 fi
18337
18338 rm -rf conftest.dSYM
18339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18340 conftest$ac_exeext conftest.$ac_ext
18341 fi
18342 ac_res=`eval 'as_val=${'$as_ac_var'}
18343 $as_echo "$as_val"'`
18344 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18345 $as_echo "$ac_res" >&6; }
18346 if test `eval 'as_val=${'$as_ac_var'}
18347 $as_echo "$as_val"'` = yes; then
18348 cat >>confdefs.h <<_ACEOF
18349 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18350 _ACEOF
18351
18352 fi
18353 done
18354
18355
18356 # Solaris has libkstat which does not require root.
18357
18358 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
18359 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18360 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18361 $as_echo_n "(cached) " >&6
18362 else
18363 ac_check_lib_save_LIBS=$LIBS
18364 LIBS="-lkstat $LIBS"
18365 cat >conftest.$ac_ext <<_ACEOF
18366 /* confdefs.h. */
18367 _ACEOF
18368 cat confdefs.h >>conftest.$ac_ext
18369 cat >>conftest.$ac_ext <<_ACEOF
18370 /* end confdefs.h. */
18371
18372 /* Override any GCC internal prototype to avoid an error.
18373 Use char because int might match the return type of a GCC
18374 builtin and then its argument prototype would still apply. */
18375 #ifdef __cplusplus
18376 extern "C"
18377 #endif
18378 char kstat_open ();
18379 int
18380 main ()
18381 {
18382 return kstat_open ();
18383 ;
18384 return 0;
18385 }
18386 _ACEOF
18387 rm -f conftest.$ac_objext conftest$ac_exeext
18388 if { (ac_try="$ac_link"
18389 case "(($ac_try" in
18390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18391 *) ac_try_echo=$ac_try;;
18392 esac
18393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18394 $as_echo "$ac_try_echo") >&5
18395 (eval "$ac_link") 2>conftest.er1
18396 ac_status=$?
18397 grep -v '^ *+' conftest.er1 >conftest.err
18398 rm -f conftest.er1
18399 cat conftest.err >&5
18400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 (exit $ac_status); } && {
18402 test -z "$ac_c_werror_flag" ||
18403 test ! -s conftest.err
18404 } && test -s conftest$ac_exeext && {
18405 test "$cross_compiling" = yes ||
18406 $as_test_x conftest$ac_exeext
18407 }; then
18408 ac_cv_lib_kstat_kstat_open=yes
18409 else
18410 $as_echo "$as_me: failed program was:" >&5
18411 sed 's/^/| /' conftest.$ac_ext >&5
18412
18413 ac_cv_lib_kstat_kstat_open=no
18414 fi
18415
18416 rm -rf conftest.dSYM
18417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18418 conftest$ac_exeext conftest.$ac_ext
18419 LIBS=$ac_check_lib_save_LIBS
18420 fi
18421 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
18422 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18423 if test $ac_cv_lib_kstat_kstat_open = yes; then
18424 cat >>confdefs.h <<_ACEOF
18425 #define HAVE_LIBKSTAT 1
18426 _ACEOF
18427
18428 LIBS="-lkstat $LIBS"
18429
18430 fi
18431
18432 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18433
18434 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18435 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18436 # to get the right answer into the cache.
18437 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18438 if test $ac_have_func = no; then
18439 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18440 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18441 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18442 $as_echo_n "(cached) " >&6
18443 else
18444 ac_check_lib_save_LIBS=$LIBS
18445 LIBS="-lelf $LIBS"
18446 cat >conftest.$ac_ext <<_ACEOF
18447 /* confdefs.h. */
18448 _ACEOF
18449 cat confdefs.h >>conftest.$ac_ext
18450 cat >>conftest.$ac_ext <<_ACEOF
18451 /* end confdefs.h. */
18452
18453 /* Override any GCC internal prototype to avoid an error.
18454 Use char because int might match the return type of a GCC
18455 builtin and then its argument prototype would still apply. */
18456 #ifdef __cplusplus
18457 extern "C"
18458 #endif
18459 char elf_begin ();
18460 int
18461 main ()
18462 {
18463 return elf_begin ();
18464 ;
18465 return 0;
18466 }
18467 _ACEOF
18468 rm -f conftest.$ac_objext conftest$ac_exeext
18469 if { (ac_try="$ac_link"
18470 case "(($ac_try" in
18471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18472 *) ac_try_echo=$ac_try;;
18473 esac
18474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18475 $as_echo "$ac_try_echo") >&5
18476 (eval "$ac_link") 2>conftest.er1
18477 ac_status=$?
18478 grep -v '^ *+' conftest.er1 >conftest.err
18479 rm -f conftest.er1
18480 cat conftest.err >&5
18481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482 (exit $ac_status); } && {
18483 test -z "$ac_c_werror_flag" ||
18484 test ! -s conftest.err
18485 } && test -s conftest$ac_exeext && {
18486 test "$cross_compiling" = yes ||
18487 $as_test_x conftest$ac_exeext
18488 }; then
18489 ac_cv_lib_elf_elf_begin=yes
18490 else
18491 $as_echo "$as_me: failed program was:" >&5
18492 sed 's/^/| /' conftest.$ac_ext >&5
18493
18494 ac_cv_lib_elf_elf_begin=no
18495 fi
18496
18497 rm -rf conftest.dSYM
18498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18499 conftest$ac_exeext conftest.$ac_ext
18500 LIBS=$ac_check_lib_save_LIBS
18501 fi
18502 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18503 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18504 if test $ac_cv_lib_elf_elf_begin = yes; then
18505 LIBS="-lelf $LIBS"
18506 fi
18507
18508 fi
18509 if test $ac_have_func = no; then
18510 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
18511 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18512 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18513 $as_echo_n "(cached) " >&6
18514 else
18515 ac_check_lib_save_LIBS=$LIBS
18516 LIBS="-lkvm $LIBS"
18517 cat >conftest.$ac_ext <<_ACEOF
18518 /* confdefs.h. */
18519 _ACEOF
18520 cat confdefs.h >>conftest.$ac_ext
18521 cat >>conftest.$ac_ext <<_ACEOF
18522 /* end confdefs.h. */
18523
18524 /* Override any GCC internal prototype to avoid an error.
18525 Use char because int might match the return type of a GCC
18526 builtin and then its argument prototype would still apply. */
18527 #ifdef __cplusplus
18528 extern "C"
18529 #endif
18530 char kvm_open ();
18531 int
18532 main ()
18533 {
18534 return kvm_open ();
18535 ;
18536 return 0;
18537 }
18538 _ACEOF
18539 rm -f conftest.$ac_objext conftest$ac_exeext
18540 if { (ac_try="$ac_link"
18541 case "(($ac_try" in
18542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18543 *) ac_try_echo=$ac_try;;
18544 esac
18545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18546 $as_echo "$ac_try_echo") >&5
18547 (eval "$ac_link") 2>conftest.er1
18548 ac_status=$?
18549 grep -v '^ *+' conftest.er1 >conftest.err
18550 rm -f conftest.er1
18551 cat conftest.err >&5
18552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); } && {
18554 test -z "$ac_c_werror_flag" ||
18555 test ! -s conftest.err
18556 } && test -s conftest$ac_exeext && {
18557 test "$cross_compiling" = yes ||
18558 $as_test_x conftest$ac_exeext
18559 }; then
18560 ac_cv_lib_kvm_kvm_open=yes
18561 else
18562 $as_echo "$as_me: failed program was:" >&5
18563 sed 's/^/| /' conftest.$ac_ext >&5
18564
18565 ac_cv_lib_kvm_kvm_open=no
18566 fi
18567
18568 rm -rf conftest.dSYM
18569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18570 conftest$ac_exeext conftest.$ac_ext
18571 LIBS=$ac_check_lib_save_LIBS
18572 fi
18573 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
18574 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18575 if test $ac_cv_lib_kvm_kvm_open = yes; then
18576 LIBS="-lkvm $LIBS"
18577 fi
18578
18579 # Check for the 4.4BSD definition of getloadavg.
18580 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18581 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18582 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18583 $as_echo_n "(cached) " >&6
18584 else
18585 ac_check_lib_save_LIBS=$LIBS
18586 LIBS="-lutil $LIBS"
18587 cat >conftest.$ac_ext <<_ACEOF
18588 /* confdefs.h. */
18589 _ACEOF
18590 cat confdefs.h >>conftest.$ac_ext
18591 cat >>conftest.$ac_ext <<_ACEOF
18592 /* end confdefs.h. */
18593
18594 /* Override any GCC internal prototype to avoid an error.
18595 Use char because int might match the return type of a GCC
18596 builtin and then its argument prototype would still apply. */
18597 #ifdef __cplusplus
18598 extern "C"
18599 #endif
18600 char getloadavg ();
18601 int
18602 main ()
18603 {
18604 return getloadavg ();
18605 ;
18606 return 0;
18607 }
18608 _ACEOF
18609 rm -f conftest.$ac_objext conftest$ac_exeext
18610 if { (ac_try="$ac_link"
18611 case "(($ac_try" in
18612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18613 *) ac_try_echo=$ac_try;;
18614 esac
18615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18616 $as_echo "$ac_try_echo") >&5
18617 (eval "$ac_link") 2>conftest.er1
18618 ac_status=$?
18619 grep -v '^ *+' conftest.er1 >conftest.err
18620 rm -f conftest.er1
18621 cat conftest.err >&5
18622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); } && {
18624 test -z "$ac_c_werror_flag" ||
18625 test ! -s conftest.err
18626 } && test -s conftest$ac_exeext && {
18627 test "$cross_compiling" = yes ||
18628 $as_test_x conftest$ac_exeext
18629 }; then
18630 ac_cv_lib_util_getloadavg=yes
18631 else
18632 $as_echo "$as_me: failed program was:" >&5
18633 sed 's/^/| /' conftest.$ac_ext >&5
18634
18635 ac_cv_lib_util_getloadavg=no
18636 fi
18637
18638 rm -rf conftest.dSYM
18639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18640 conftest$ac_exeext conftest.$ac_ext
18641 LIBS=$ac_check_lib_save_LIBS
18642 fi
18643 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
18644 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18645 if test $ac_cv_lib_util_getloadavg = yes; then
18646 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18647 fi
18648
18649 fi
18650
18651 if test $ac_have_func = no; then
18652 # There is a commonly available library for RS/6000 AIX.
18653 # Since it is not a standard part of AIX, it might be installed locally.
18654 ac_getloadavg_LIBS=$LIBS
18655 LIBS="-L/usr/local/lib $LIBS"
18656 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
18657 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18658 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18659 $as_echo_n "(cached) " >&6
18660 else
18661 ac_check_lib_save_LIBS=$LIBS
18662 LIBS="-lgetloadavg $LIBS"
18663 cat >conftest.$ac_ext <<_ACEOF
18664 /* confdefs.h. */
18665 _ACEOF
18666 cat confdefs.h >>conftest.$ac_ext
18667 cat >>conftest.$ac_ext <<_ACEOF
18668 /* end confdefs.h. */
18669
18670 /* Override any GCC internal prototype to avoid an error.
18671 Use char because int might match the return type of a GCC
18672 builtin and then its argument prototype would still apply. */
18673 #ifdef __cplusplus
18674 extern "C"
18675 #endif
18676 char getloadavg ();
18677 int
18678 main ()
18679 {
18680 return getloadavg ();
18681 ;
18682 return 0;
18683 }
18684 _ACEOF
18685 rm -f conftest.$ac_objext conftest$ac_exeext
18686 if { (ac_try="$ac_link"
18687 case "(($ac_try" in
18688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18689 *) ac_try_echo=$ac_try;;
18690 esac
18691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18692 $as_echo "$ac_try_echo") >&5
18693 (eval "$ac_link") 2>conftest.er1
18694 ac_status=$?
18695 grep -v '^ *+' conftest.er1 >conftest.err
18696 rm -f conftest.er1
18697 cat conftest.err >&5
18698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); } && {
18700 test -z "$ac_c_werror_flag" ||
18701 test ! -s conftest.err
18702 } && test -s conftest$ac_exeext && {
18703 test "$cross_compiling" = yes ||
18704 $as_test_x conftest$ac_exeext
18705 }; then
18706 ac_cv_lib_getloadavg_getloadavg=yes
18707 else
18708 $as_echo "$as_me: failed program was:" >&5
18709 sed 's/^/| /' conftest.$ac_ext >&5
18710
18711 ac_cv_lib_getloadavg_getloadavg=no
18712 fi
18713
18714 rm -rf conftest.dSYM
18715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18716 conftest$ac_exeext conftest.$ac_ext
18717 LIBS=$ac_check_lib_save_LIBS
18718 fi
18719 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18720 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18721 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18722 LIBS="-lgetloadavg $LIBS"
18723 else
18724 LIBS=$ac_getloadavg_LIBS
18725 fi
18726
18727 fi
18728
18729 # Make sure it is really in the library, if we think we found it,
18730 # otherwise set up the replacement function.
18731
18732 for ac_func in getloadavg
18733 do
18734 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18735 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18736 $as_echo_n "checking for $ac_func... " >&6; }
18737 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18738 $as_echo_n "(cached) " >&6
18739 else
18740 cat >conftest.$ac_ext <<_ACEOF
18741 /* confdefs.h. */
18742 _ACEOF
18743 cat confdefs.h >>conftest.$ac_ext
18744 cat >>conftest.$ac_ext <<_ACEOF
18745 /* end confdefs.h. */
18746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18748 #define $ac_func innocuous_$ac_func
18749
18750 /* System header to define __stub macros and hopefully few prototypes,
18751 which can conflict with char $ac_func (); below.
18752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18753 <limits.h> exists even on freestanding compilers. */
18754
18755 #ifdef __STDC__
18756 # include <limits.h>
18757 #else
18758 # include <assert.h>
18759 #endif
18760
18761 #undef $ac_func
18762
18763 /* Override any GCC internal prototype to avoid an error.
18764 Use char because int might match the return type of a GCC
18765 builtin and then its argument prototype would still apply. */
18766 #ifdef __cplusplus
18767 extern "C"
18768 #endif
18769 char $ac_func ();
18770 /* The GNU C library defines this for functions which it implements
18771 to always fail with ENOSYS. Some functions are actually named
18772 something starting with __ and the normal name is an alias. */
18773 #if defined __stub_$ac_func || defined __stub___$ac_func
18774 choke me
18775 #endif
18776
18777 int
18778 main ()
18779 {
18780 return $ac_func ();
18781 ;
18782 return 0;
18783 }
18784 _ACEOF
18785 rm -f conftest.$ac_objext conftest$ac_exeext
18786 if { (ac_try="$ac_link"
18787 case "(($ac_try" in
18788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18789 *) ac_try_echo=$ac_try;;
18790 esac
18791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18792 $as_echo "$ac_try_echo") >&5
18793 (eval "$ac_link") 2>conftest.er1
18794 ac_status=$?
18795 grep -v '^ *+' conftest.er1 >conftest.err
18796 rm -f conftest.er1
18797 cat conftest.err >&5
18798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); } && {
18800 test -z "$ac_c_werror_flag" ||
18801 test ! -s conftest.err
18802 } && test -s conftest$ac_exeext && {
18803 test "$cross_compiling" = yes ||
18804 $as_test_x conftest$ac_exeext
18805 }; then
18806 eval "$as_ac_var=yes"
18807 else
18808 $as_echo "$as_me: failed program was:" >&5
18809 sed 's/^/| /' conftest.$ac_ext >&5
18810
18811 eval "$as_ac_var=no"
18812 fi
18813
18814 rm -rf conftest.dSYM
18815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18816 conftest$ac_exeext conftest.$ac_ext
18817 fi
18818 ac_res=`eval 'as_val=${'$as_ac_var'}
18819 $as_echo "$as_val"'`
18820 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18821 $as_echo "$ac_res" >&6; }
18822 if test `eval 'as_val=${'$as_ac_var'}
18823 $as_echo "$as_val"'` = yes; then
18824 cat >>confdefs.h <<_ACEOF
18825 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18826 _ACEOF
18827
18828 else
18829 case " $LIBOBJS " in
18830 *" getloadavg.$ac_objext "* ) ;;
18831 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
18832 ;;
18833 esac
18834
18835
18836 cat >>confdefs.h <<\_ACEOF
18837 #define C_GETLOADAVG 1
18838 _ACEOF
18839
18840 # Figure out what our getloadavg.c needs.
18841 ac_have_func=no
18842 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18843 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18844 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18845 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18846 $as_echo_n "(cached) " >&6
18847 fi
18848 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18849 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18850 else
18851 # Is the header compilable?
18852 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
18853 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
18854 cat >conftest.$ac_ext <<_ACEOF
18855 /* confdefs.h. */
18856 _ACEOF
18857 cat confdefs.h >>conftest.$ac_ext
18858 cat >>conftest.$ac_ext <<_ACEOF
18859 /* end confdefs.h. */
18860 $ac_includes_default
18861 #include <sys/dg_sys_info.h>
18862 _ACEOF
18863 rm -f conftest.$ac_objext
18864 if { (ac_try="$ac_compile"
18865 case "(($ac_try" in
18866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18867 *) ac_try_echo=$ac_try;;
18868 esac
18869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18870 $as_echo "$ac_try_echo") >&5
18871 (eval "$ac_compile") 2>conftest.er1
18872 ac_status=$?
18873 grep -v '^ *+' conftest.er1 >conftest.err
18874 rm -f conftest.er1
18875 cat conftest.err >&5
18876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); } && {
18878 test -z "$ac_c_werror_flag" ||
18879 test ! -s conftest.err
18880 } && test -s conftest.$ac_objext; then
18881 ac_header_compiler=yes
18882 else
18883 $as_echo "$as_me: failed program was:" >&5
18884 sed 's/^/| /' conftest.$ac_ext >&5
18885
18886 ac_header_compiler=no
18887 fi
18888
18889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18890 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18891 $as_echo "$ac_header_compiler" >&6; }
18892
18893 # Is the header present?
18894 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
18895 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
18896 cat >conftest.$ac_ext <<_ACEOF
18897 /* confdefs.h. */
18898 _ACEOF
18899 cat confdefs.h >>conftest.$ac_ext
18900 cat >>conftest.$ac_ext <<_ACEOF
18901 /* end confdefs.h. */
18902 #include <sys/dg_sys_info.h>
18903 _ACEOF
18904 if { (ac_try="$ac_cpp conftest.$ac_ext"
18905 case "(($ac_try" in
18906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18907 *) ac_try_echo=$ac_try;;
18908 esac
18909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18910 $as_echo "$ac_try_echo") >&5
18911 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18912 ac_status=$?
18913 grep -v '^ *+' conftest.er1 >conftest.err
18914 rm -f conftest.er1
18915 cat conftest.err >&5
18916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917 (exit $ac_status); } >/dev/null && {
18918 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18919 test ! -s conftest.err
18920 }; then
18921 ac_header_preproc=yes
18922 else
18923 $as_echo "$as_me: failed program was:" >&5
18924 sed 's/^/| /' conftest.$ac_ext >&5
18925
18926 ac_header_preproc=no
18927 fi
18928
18929 rm -f conftest.err conftest.$ac_ext
18930 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18931 $as_echo "$ac_header_preproc" >&6; }
18932
18933 # So? What about this header?
18934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18935 yes:no: )
18936 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
18937 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18938 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
18939 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
18940 ac_header_preproc=yes
18941 ;;
18942 no:yes:* )
18943 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
18944 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
18945 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
18946 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
18947 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
18948 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
18949 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
18950 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
18951 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
18952 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
18953 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
18954 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
18955
18956 ;;
18957 esac
18958 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18959 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18960 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18961 $as_echo_n "(cached) " >&6
18962 else
18963 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
18964 fi
18965 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18966 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18967
18968 fi
18969 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
18970 ac_have_func=yes
18971
18972 cat >>confdefs.h <<\_ACEOF
18973 #define DGUX 1
18974 _ACEOF
18975
18976
18977 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
18978 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
18979 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
18980 $as_echo_n "(cached) " >&6
18981 else
18982 ac_check_lib_save_LIBS=$LIBS
18983 LIBS="-ldgc $LIBS"
18984 cat >conftest.$ac_ext <<_ACEOF
18985 /* confdefs.h. */
18986 _ACEOF
18987 cat confdefs.h >>conftest.$ac_ext
18988 cat >>conftest.$ac_ext <<_ACEOF
18989 /* end confdefs.h. */
18990
18991 /* Override any GCC internal prototype to avoid an error.
18992 Use char because int might match the return type of a GCC
18993 builtin and then its argument prototype would still apply. */
18994 #ifdef __cplusplus
18995 extern "C"
18996 #endif
18997 char dg_sys_info ();
18998 int
18999 main ()
19000 {
19001 return dg_sys_info ();
19002 ;
19003 return 0;
19004 }
19005 _ACEOF
19006 rm -f conftest.$ac_objext conftest$ac_exeext
19007 if { (ac_try="$ac_link"
19008 case "(($ac_try" in
19009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19010 *) ac_try_echo=$ac_try;;
19011 esac
19012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19013 $as_echo "$ac_try_echo") >&5
19014 (eval "$ac_link") 2>conftest.er1
19015 ac_status=$?
19016 grep -v '^ *+' conftest.er1 >conftest.err
19017 rm -f conftest.er1
19018 cat conftest.err >&5
19019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020 (exit $ac_status); } && {
19021 test -z "$ac_c_werror_flag" ||
19022 test ! -s conftest.err
19023 } && test -s conftest$ac_exeext && {
19024 test "$cross_compiling" = yes ||
19025 $as_test_x conftest$ac_exeext
19026 }; then
19027 ac_cv_lib_dgc_dg_sys_info=yes
19028 else
19029 $as_echo "$as_me: failed program was:" >&5
19030 sed 's/^/| /' conftest.$ac_ext >&5
19031
19032 ac_cv_lib_dgc_dg_sys_info=no
19033 fi
19034
19035 rm -rf conftest.dSYM
19036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19037 conftest$ac_exeext conftest.$ac_ext
19038 LIBS=$ac_check_lib_save_LIBS
19039 fi
19040 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19041 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19042 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
19043 cat >>confdefs.h <<_ACEOF
19044 #define HAVE_LIBDGC 1
19045 _ACEOF
19046
19047 LIBS="-ldgc $LIBS"
19048
19049 fi
19050
19051 fi
19052
19053
19054
19055 if test "${ac_cv_header_locale_h+set}" = set; then
19056 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19057 $as_echo_n "checking for locale.h... " >&6; }
19058 if test "${ac_cv_header_locale_h+set}" = set; then
19059 $as_echo_n "(cached) " >&6
19060 fi
19061 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19062 $as_echo "$ac_cv_header_locale_h" >&6; }
19063 else
19064 # Is the header compilable?
19065 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
19066 $as_echo_n "checking locale.h usability... " >&6; }
19067 cat >conftest.$ac_ext <<_ACEOF
19068 /* confdefs.h. */
19069 _ACEOF
19070 cat confdefs.h >>conftest.$ac_ext
19071 cat >>conftest.$ac_ext <<_ACEOF
19072 /* end confdefs.h. */
19073 $ac_includes_default
19074 #include <locale.h>
19075 _ACEOF
19076 rm -f conftest.$ac_objext
19077 if { (ac_try="$ac_compile"
19078 case "(($ac_try" in
19079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19080 *) ac_try_echo=$ac_try;;
19081 esac
19082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19083 $as_echo "$ac_try_echo") >&5
19084 (eval "$ac_compile") 2>conftest.er1
19085 ac_status=$?
19086 grep -v '^ *+' conftest.er1 >conftest.err
19087 rm -f conftest.er1
19088 cat conftest.err >&5
19089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090 (exit $ac_status); } && {
19091 test -z "$ac_c_werror_flag" ||
19092 test ! -s conftest.err
19093 } && test -s conftest.$ac_objext; then
19094 ac_header_compiler=yes
19095 else
19096 $as_echo "$as_me: failed program was:" >&5
19097 sed 's/^/| /' conftest.$ac_ext >&5
19098
19099 ac_header_compiler=no
19100 fi
19101
19102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19103 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19104 $as_echo "$ac_header_compiler" >&6; }
19105
19106 # Is the header present?
19107 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
19108 $as_echo_n "checking locale.h presence... " >&6; }
19109 cat >conftest.$ac_ext <<_ACEOF
19110 /* confdefs.h. */
19111 _ACEOF
19112 cat confdefs.h >>conftest.$ac_ext
19113 cat >>conftest.$ac_ext <<_ACEOF
19114 /* end confdefs.h. */
19115 #include <locale.h>
19116 _ACEOF
19117 if { (ac_try="$ac_cpp conftest.$ac_ext"
19118 case "(($ac_try" in
19119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19120 *) ac_try_echo=$ac_try;;
19121 esac
19122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19123 $as_echo "$ac_try_echo") >&5
19124 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19125 ac_status=$?
19126 grep -v '^ *+' conftest.er1 >conftest.err
19127 rm -f conftest.er1
19128 cat conftest.err >&5
19129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130 (exit $ac_status); } >/dev/null && {
19131 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19132 test ! -s conftest.err
19133 }; then
19134 ac_header_preproc=yes
19135 else
19136 $as_echo "$as_me: failed program was:" >&5
19137 sed 's/^/| /' conftest.$ac_ext >&5
19138
19139 ac_header_preproc=no
19140 fi
19141
19142 rm -f conftest.err conftest.$ac_ext
19143 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19144 $as_echo "$ac_header_preproc" >&6; }
19145
19146 # So? What about this header?
19147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19148 yes:no: )
19149 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
19150 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19151 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
19152 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
19153 ac_header_preproc=yes
19154 ;;
19155 no:yes:* )
19156 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
19157 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
19158 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
19159 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
19160 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
19161 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
19162 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
19163 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
19164 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
19165 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
19166 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
19167 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
19168
19169 ;;
19170 esac
19171 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19172 $as_echo_n "checking for locale.h... " >&6; }
19173 if test "${ac_cv_header_locale_h+set}" = set; then
19174 $as_echo_n "(cached) " >&6
19175 else
19176 ac_cv_header_locale_h=$ac_header_preproc
19177 fi
19178 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19179 $as_echo "$ac_cv_header_locale_h" >&6; }
19180
19181 fi
19182
19183
19184
19185 for ac_func in setlocale
19186 do
19187 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19188 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19189 $as_echo_n "checking for $ac_func... " >&6; }
19190 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19191 $as_echo_n "(cached) " >&6
19192 else
19193 cat >conftest.$ac_ext <<_ACEOF
19194 /* confdefs.h. */
19195 _ACEOF
19196 cat confdefs.h >>conftest.$ac_ext
19197 cat >>conftest.$ac_ext <<_ACEOF
19198 /* end confdefs.h. */
19199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19201 #define $ac_func innocuous_$ac_func
19202
19203 /* System header to define __stub macros and hopefully few prototypes,
19204 which can conflict with char $ac_func (); below.
19205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19206 <limits.h> exists even on freestanding compilers. */
19207
19208 #ifdef __STDC__
19209 # include <limits.h>
19210 #else
19211 # include <assert.h>
19212 #endif
19213
19214 #undef $ac_func
19215
19216 /* Override any GCC internal prototype to avoid an error.
19217 Use char because int might match the return type of a GCC
19218 builtin and then its argument prototype would still apply. */
19219 #ifdef __cplusplus
19220 extern "C"
19221 #endif
19222 char $ac_func ();
19223 /* The GNU C library defines this for functions which it implements
19224 to always fail with ENOSYS. Some functions are actually named
19225 something starting with __ and the normal name is an alias. */
19226 #if defined __stub_$ac_func || defined __stub___$ac_func
19227 choke me
19228 #endif
19229
19230 int
19231 main ()
19232 {
19233 return $ac_func ();
19234 ;
19235 return 0;
19236 }
19237 _ACEOF
19238 rm -f conftest.$ac_objext conftest$ac_exeext
19239 if { (ac_try="$ac_link"
19240 case "(($ac_try" in
19241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19242 *) ac_try_echo=$ac_try;;
19243 esac
19244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19245 $as_echo "$ac_try_echo") >&5
19246 (eval "$ac_link") 2>conftest.er1
19247 ac_status=$?
19248 grep -v '^ *+' conftest.er1 >conftest.err
19249 rm -f conftest.er1
19250 cat conftest.err >&5
19251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); } && {
19253 test -z "$ac_c_werror_flag" ||
19254 test ! -s conftest.err
19255 } && test -s conftest$ac_exeext && {
19256 test "$cross_compiling" = yes ||
19257 $as_test_x conftest$ac_exeext
19258 }; then
19259 eval "$as_ac_var=yes"
19260 else
19261 $as_echo "$as_me: failed program was:" >&5
19262 sed 's/^/| /' conftest.$ac_ext >&5
19263
19264 eval "$as_ac_var=no"
19265 fi
19266
19267 rm -rf conftest.dSYM
19268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19269 conftest$ac_exeext conftest.$ac_ext
19270 fi
19271 ac_res=`eval 'as_val=${'$as_ac_var'}
19272 $as_echo "$as_val"'`
19273 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19274 $as_echo "$ac_res" >&6; }
19275 if test `eval 'as_val=${'$as_ac_var'}
19276 $as_echo "$as_val"'` = yes; then
19277 cat >>confdefs.h <<_ACEOF
19278 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19279 _ACEOF
19280
19281 fi
19282 done
19283
19284
19285 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19286 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19287 # Irix 4.0.5F has the header but not the library.
19288 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19289 ac_have_func=yes
19290
19291 cat >>confdefs.h <<\_ACEOF
19292 #define SVR4 1
19293 _ACEOF
19294
19295 fi
19296
19297 if test $ac_have_func = no; then
19298 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19299 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19300 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19301 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19302 $as_echo_n "(cached) " >&6
19303 fi
19304 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19305 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19306 else
19307 # Is the header compilable?
19308 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
19309 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
19310 cat >conftest.$ac_ext <<_ACEOF
19311 /* confdefs.h. */
19312 _ACEOF
19313 cat confdefs.h >>conftest.$ac_ext
19314 cat >>conftest.$ac_ext <<_ACEOF
19315 /* end confdefs.h. */
19316 $ac_includes_default
19317 #include <inq_stats/cpustats.h>
19318 _ACEOF
19319 rm -f conftest.$ac_objext
19320 if { (ac_try="$ac_compile"
19321 case "(($ac_try" in
19322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19323 *) ac_try_echo=$ac_try;;
19324 esac
19325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19326 $as_echo "$ac_try_echo") >&5
19327 (eval "$ac_compile") 2>conftest.er1
19328 ac_status=$?
19329 grep -v '^ *+' conftest.er1 >conftest.err
19330 rm -f conftest.er1
19331 cat conftest.err >&5
19332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); } && {
19334 test -z "$ac_c_werror_flag" ||
19335 test ! -s conftest.err
19336 } && test -s conftest.$ac_objext; then
19337 ac_header_compiler=yes
19338 else
19339 $as_echo "$as_me: failed program was:" >&5
19340 sed 's/^/| /' conftest.$ac_ext >&5
19341
19342 ac_header_compiler=no
19343 fi
19344
19345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19346 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19347 $as_echo "$ac_header_compiler" >&6; }
19348
19349 # Is the header present?
19350 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
19351 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
19352 cat >conftest.$ac_ext <<_ACEOF
19353 /* confdefs.h. */
19354 _ACEOF
19355 cat confdefs.h >>conftest.$ac_ext
19356 cat >>conftest.$ac_ext <<_ACEOF
19357 /* end confdefs.h. */
19358 #include <inq_stats/cpustats.h>
19359 _ACEOF
19360 if { (ac_try="$ac_cpp conftest.$ac_ext"
19361 case "(($ac_try" in
19362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19363 *) ac_try_echo=$ac_try;;
19364 esac
19365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19366 $as_echo "$ac_try_echo") >&5
19367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19368 ac_status=$?
19369 grep -v '^ *+' conftest.er1 >conftest.err
19370 rm -f conftest.er1
19371 cat conftest.err >&5
19372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); } >/dev/null && {
19374 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19375 test ! -s conftest.err
19376 }; then
19377 ac_header_preproc=yes
19378 else
19379 $as_echo "$as_me: failed program was:" >&5
19380 sed 's/^/| /' conftest.$ac_ext >&5
19381
19382 ac_header_preproc=no
19383 fi
19384
19385 rm -f conftest.err conftest.$ac_ext
19386 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19387 $as_echo "$ac_header_preproc" >&6; }
19388
19389 # So? What about this header?
19390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19391 yes:no: )
19392 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19393 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19394 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
19395 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
19396 ac_header_preproc=yes
19397 ;;
19398 no:yes:* )
19399 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
19400 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
19401 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
19402 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
19403 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
19404 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
19405 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19406 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19407 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19408 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
19409 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
19410 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19411
19412 ;;
19413 esac
19414 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19415 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19416 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19417 $as_echo_n "(cached) " >&6
19418 else
19419 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19420 fi
19421 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19422 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19423
19424 fi
19425 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19426 ac_have_func=yes
19427
19428 cat >>confdefs.h <<\_ACEOF
19429 #define UMAX 1
19430 _ACEOF
19431
19432
19433 cat >>confdefs.h <<\_ACEOF
19434 #define UMAX4_3 1
19435 _ACEOF
19436
19437 fi
19438
19439
19440 fi
19441
19442 if test $ac_have_func = no; then
19443 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19444 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19445 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19446 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19447 $as_echo_n "(cached) " >&6
19448 fi
19449 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19450 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19451 else
19452 # Is the header compilable?
19453 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19454 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
19455 cat >conftest.$ac_ext <<_ACEOF
19456 /* confdefs.h. */
19457 _ACEOF
19458 cat confdefs.h >>conftest.$ac_ext
19459 cat >>conftest.$ac_ext <<_ACEOF
19460 /* end confdefs.h. */
19461 $ac_includes_default
19462 #include <sys/cpustats.h>
19463 _ACEOF
19464 rm -f conftest.$ac_objext
19465 if { (ac_try="$ac_compile"
19466 case "(($ac_try" in
19467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19468 *) ac_try_echo=$ac_try;;
19469 esac
19470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19471 $as_echo "$ac_try_echo") >&5
19472 (eval "$ac_compile") 2>conftest.er1
19473 ac_status=$?
19474 grep -v '^ *+' conftest.er1 >conftest.err
19475 rm -f conftest.er1
19476 cat conftest.err >&5
19477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); } && {
19479 test -z "$ac_c_werror_flag" ||
19480 test ! -s conftest.err
19481 } && test -s conftest.$ac_objext; then
19482 ac_header_compiler=yes
19483 else
19484 $as_echo "$as_me: failed program was:" >&5
19485 sed 's/^/| /' conftest.$ac_ext >&5
19486
19487 ac_header_compiler=no
19488 fi
19489
19490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19491 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19492 $as_echo "$ac_header_compiler" >&6; }
19493
19494 # Is the header present?
19495 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19496 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
19497 cat >conftest.$ac_ext <<_ACEOF
19498 /* confdefs.h. */
19499 _ACEOF
19500 cat confdefs.h >>conftest.$ac_ext
19501 cat >>conftest.$ac_ext <<_ACEOF
19502 /* end confdefs.h. */
19503 #include <sys/cpustats.h>
19504 _ACEOF
19505 if { (ac_try="$ac_cpp conftest.$ac_ext"
19506 case "(($ac_try" in
19507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19508 *) ac_try_echo=$ac_try;;
19509 esac
19510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19511 $as_echo "$ac_try_echo") >&5
19512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19513 ac_status=$?
19514 grep -v '^ *+' conftest.er1 >conftest.err
19515 rm -f conftest.er1
19516 cat conftest.err >&5
19517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); } >/dev/null && {
19519 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19520 test ! -s conftest.err
19521 }; then
19522 ac_header_preproc=yes
19523 else
19524 $as_echo "$as_me: failed program was:" >&5
19525 sed 's/^/| /' conftest.$ac_ext >&5
19526
19527 ac_header_preproc=no
19528 fi
19529
19530 rm -f conftest.err conftest.$ac_ext
19531 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19532 $as_echo "$ac_header_preproc" >&6; }
19533
19534 # So? What about this header?
19535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19536 yes:no: )
19537 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19538 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19539 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19540 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19541 ac_header_preproc=yes
19542 ;;
19543 no:yes:* )
19544 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19545 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19546 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19547 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19548 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19549 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19550 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19551 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19552 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19553 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19554 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19555 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19556
19557 ;;
19558 esac
19559 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19560 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19561 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19562 $as_echo_n "(cached) " >&6
19563 else
19564 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19565 fi
19566 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19567 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19568
19569 fi
19570 if test $ac_cv_header_sys_cpustats_h = yes; then
19571 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19572 #define UMAX 1
19573 _ACEOF
19574
19575 fi
19576
19577
19578 fi
19579
19580 if test $ac_have_func = no; then
19581
19582 for ac_header in mach/mach.h
19583 do
19584 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19586 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19587 $as_echo_n "checking for $ac_header... " >&6; }
19588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19589 $as_echo_n "(cached) " >&6
19590 fi
19591 ac_res=`eval 'as_val=${'$as_ac_Header'}
19592 $as_echo "$as_val"'`
19593 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19594 $as_echo "$ac_res" >&6; }
19595 else
19596 # Is the header compilable?
19597 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19598 $as_echo_n "checking $ac_header usability... " >&6; }
19599 cat >conftest.$ac_ext <<_ACEOF
19600 /* confdefs.h. */
19601 _ACEOF
19602 cat confdefs.h >>conftest.$ac_ext
19603 cat >>conftest.$ac_ext <<_ACEOF
19604 /* end confdefs.h. */
19605 $ac_includes_default
19606 #include <$ac_header>
19607 _ACEOF
19608 rm -f conftest.$ac_objext
19609 if { (ac_try="$ac_compile"
19610 case "(($ac_try" in
19611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19612 *) ac_try_echo=$ac_try;;
19613 esac
19614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19615 $as_echo "$ac_try_echo") >&5
19616 (eval "$ac_compile") 2>conftest.er1
19617 ac_status=$?
19618 grep -v '^ *+' conftest.er1 >conftest.err
19619 rm -f conftest.er1
19620 cat conftest.err >&5
19621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); } && {
19623 test -z "$ac_c_werror_flag" ||
19624 test ! -s conftest.err
19625 } && test -s conftest.$ac_objext; then
19626 ac_header_compiler=yes
19627 else
19628 $as_echo "$as_me: failed program was:" >&5
19629 sed 's/^/| /' conftest.$ac_ext >&5
19630
19631 ac_header_compiler=no
19632 fi
19633
19634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19635 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19636 $as_echo "$ac_header_compiler" >&6; }
19637
19638 # Is the header present?
19639 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19640 $as_echo_n "checking $ac_header presence... " >&6; }
19641 cat >conftest.$ac_ext <<_ACEOF
19642 /* confdefs.h. */
19643 _ACEOF
19644 cat confdefs.h >>conftest.$ac_ext
19645 cat >>conftest.$ac_ext <<_ACEOF
19646 /* end confdefs.h. */
19647 #include <$ac_header>
19648 _ACEOF
19649 if { (ac_try="$ac_cpp conftest.$ac_ext"
19650 case "(($ac_try" in
19651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19652 *) ac_try_echo=$ac_try;;
19653 esac
19654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19655 $as_echo "$ac_try_echo") >&5
19656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19657 ac_status=$?
19658 grep -v '^ *+' conftest.er1 >conftest.err
19659 rm -f conftest.er1
19660 cat conftest.err >&5
19661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); } >/dev/null && {
19663 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19664 test ! -s conftest.err
19665 }; then
19666 ac_header_preproc=yes
19667 else
19668 $as_echo "$as_me: failed program was:" >&5
19669 sed 's/^/| /' conftest.$ac_ext >&5
19670
19671 ac_header_preproc=no
19672 fi
19673
19674 rm -f conftest.err conftest.$ac_ext
19675 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19676 $as_echo "$ac_header_preproc" >&6; }
19677
19678 # So? What about this header?
19679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19680 yes:no: )
19681 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19682 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19684 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19685 ac_header_preproc=yes
19686 ;;
19687 no:yes:* )
19688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19689 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19691 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19693 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19695 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19697 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19699 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19700
19701 ;;
19702 esac
19703 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19704 $as_echo_n "checking for $ac_header... " >&6; }
19705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19706 $as_echo_n "(cached) " >&6
19707 else
19708 eval "$as_ac_Header=\$ac_header_preproc"
19709 fi
19710 ac_res=`eval 'as_val=${'$as_ac_Header'}
19711 $as_echo "$as_val"'`
19712 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19713 $as_echo "$ac_res" >&6; }
19714
19715 fi
19716 if test `eval 'as_val=${'$as_ac_Header'}
19717 $as_echo "$as_val"'` = yes; then
19718 cat >>confdefs.h <<_ACEOF
19719 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19720 _ACEOF
19721
19722 fi
19723
19724 done
19725
19726 fi
19727
19728
19729 for ac_header in nlist.h
19730 do
19731 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19733 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19734 $as_echo_n "checking for $ac_header... " >&6; }
19735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19736 $as_echo_n "(cached) " >&6
19737 fi
19738 ac_res=`eval 'as_val=${'$as_ac_Header'}
19739 $as_echo "$as_val"'`
19740 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19741 $as_echo "$ac_res" >&6; }
19742 else
19743 # Is the header compilable?
19744 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19745 $as_echo_n "checking $ac_header usability... " >&6; }
19746 cat >conftest.$ac_ext <<_ACEOF
19747 /* confdefs.h. */
19748 _ACEOF
19749 cat confdefs.h >>conftest.$ac_ext
19750 cat >>conftest.$ac_ext <<_ACEOF
19751 /* end confdefs.h. */
19752 $ac_includes_default
19753 #include <$ac_header>
19754 _ACEOF
19755 rm -f conftest.$ac_objext
19756 if { (ac_try="$ac_compile"
19757 case "(($ac_try" in
19758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19759 *) ac_try_echo=$ac_try;;
19760 esac
19761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19762 $as_echo "$ac_try_echo") >&5
19763 (eval "$ac_compile") 2>conftest.er1
19764 ac_status=$?
19765 grep -v '^ *+' conftest.er1 >conftest.err
19766 rm -f conftest.er1
19767 cat conftest.err >&5
19768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769 (exit $ac_status); } && {
19770 test -z "$ac_c_werror_flag" ||
19771 test ! -s conftest.err
19772 } && test -s conftest.$ac_objext; then
19773 ac_header_compiler=yes
19774 else
19775 $as_echo "$as_me: failed program was:" >&5
19776 sed 's/^/| /' conftest.$ac_ext >&5
19777
19778 ac_header_compiler=no
19779 fi
19780
19781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19782 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19783 $as_echo "$ac_header_compiler" >&6; }
19784
19785 # Is the header present?
19786 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19787 $as_echo_n "checking $ac_header presence... " >&6; }
19788 cat >conftest.$ac_ext <<_ACEOF
19789 /* confdefs.h. */
19790 _ACEOF
19791 cat confdefs.h >>conftest.$ac_ext
19792 cat >>conftest.$ac_ext <<_ACEOF
19793 /* end confdefs.h. */
19794 #include <$ac_header>
19795 _ACEOF
19796 if { (ac_try="$ac_cpp conftest.$ac_ext"
19797 case "(($ac_try" in
19798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19799 *) ac_try_echo=$ac_try;;
19800 esac
19801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19802 $as_echo "$ac_try_echo") >&5
19803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19804 ac_status=$?
19805 grep -v '^ *+' conftest.er1 >conftest.err
19806 rm -f conftest.er1
19807 cat conftest.err >&5
19808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); } >/dev/null && {
19810 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19811 test ! -s conftest.err
19812 }; then
19813 ac_header_preproc=yes
19814 else
19815 $as_echo "$as_me: failed program was:" >&5
19816 sed 's/^/| /' conftest.$ac_ext >&5
19817
19818 ac_header_preproc=no
19819 fi
19820
19821 rm -f conftest.err conftest.$ac_ext
19822 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19823 $as_echo "$ac_header_preproc" >&6; }
19824
19825 # So? What about this header?
19826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19827 yes:no: )
19828 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19829 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19830 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19831 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19832 ac_header_preproc=yes
19833 ;;
19834 no:yes:* )
19835 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19836 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19837 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19838 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19839 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19840 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19841 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19842 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19844 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19845 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19846 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19847
19848 ;;
19849 esac
19850 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19851 $as_echo_n "checking for $ac_header... " >&6; }
19852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19853 $as_echo_n "(cached) " >&6
19854 else
19855 eval "$as_ac_Header=\$ac_header_preproc"
19856 fi
19857 ac_res=`eval 'as_val=${'$as_ac_Header'}
19858 $as_echo "$as_val"'`
19859 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19860 $as_echo "$ac_res" >&6; }
19861
19862 fi
19863 if test `eval 'as_val=${'$as_ac_Header'}
19864 $as_echo "$as_val"'` = yes; then
19865 cat >>confdefs.h <<_ACEOF
19866 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19867 _ACEOF
19868 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
19869 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
19870 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19871 $as_echo_n "(cached) " >&6
19872 else
19873 cat >conftest.$ac_ext <<_ACEOF
19874 /* confdefs.h. */
19875 _ACEOF
19876 cat confdefs.h >>conftest.$ac_ext
19877 cat >>conftest.$ac_ext <<_ACEOF
19878 /* end confdefs.h. */
19879 #include <nlist.h>
19880
19881 int
19882 main ()
19883 {
19884 static struct nlist ac_aggr;
19885 if (ac_aggr.n_un.n_name)
19886 return 0;
19887 ;
19888 return 0;
19889 }
19890 _ACEOF
19891 rm -f conftest.$ac_objext
19892 if { (ac_try="$ac_compile"
19893 case "(($ac_try" in
19894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19895 *) ac_try_echo=$ac_try;;
19896 esac
19897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19898 $as_echo "$ac_try_echo") >&5
19899 (eval "$ac_compile") 2>conftest.er1
19900 ac_status=$?
19901 grep -v '^ *+' conftest.er1 >conftest.err
19902 rm -f conftest.er1
19903 cat conftest.err >&5
19904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); } && {
19906 test -z "$ac_c_werror_flag" ||
19907 test ! -s conftest.err
19908 } && test -s conftest.$ac_objext; then
19909 ac_cv_member_struct_nlist_n_un_n_name=yes
19910 else
19911 $as_echo "$as_me: failed program was:" >&5
19912 sed 's/^/| /' conftest.$ac_ext >&5
19913
19914 cat >conftest.$ac_ext <<_ACEOF
19915 /* confdefs.h. */
19916 _ACEOF
19917 cat confdefs.h >>conftest.$ac_ext
19918 cat >>conftest.$ac_ext <<_ACEOF
19919 /* end confdefs.h. */
19920 #include <nlist.h>
19921
19922 int
19923 main ()
19924 {
19925 static struct nlist ac_aggr;
19926 if (sizeof ac_aggr.n_un.n_name)
19927 return 0;
19928 ;
19929 return 0;
19930 }
19931 _ACEOF
19932 rm -f conftest.$ac_objext
19933 if { (ac_try="$ac_compile"
19934 case "(($ac_try" in
19935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19936 *) ac_try_echo=$ac_try;;
19937 esac
19938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19939 $as_echo "$ac_try_echo") >&5
19940 (eval "$ac_compile") 2>conftest.er1
19941 ac_status=$?
19942 grep -v '^ *+' conftest.er1 >conftest.err
19943 rm -f conftest.er1
19944 cat conftest.err >&5
19945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946 (exit $ac_status); } && {
19947 test -z "$ac_c_werror_flag" ||
19948 test ! -s conftest.err
19949 } && test -s conftest.$ac_objext; then
19950 ac_cv_member_struct_nlist_n_un_n_name=yes
19951 else
19952 $as_echo "$as_me: failed program was:" >&5
19953 sed 's/^/| /' conftest.$ac_ext >&5
19954
19955 ac_cv_member_struct_nlist_n_un_n_name=no
19956 fi
19957
19958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19959 fi
19960
19961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19962 fi
19963 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
19964 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
19965 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
19966
19967 cat >>confdefs.h <<_ACEOF
19968 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19969 _ACEOF
19970
19971
19972 cat >>confdefs.h <<\_ACEOF
19973 #define NLIST_NAME_UNION 1
19974 _ACEOF
19975
19976 fi
19977
19978
19979 fi
19980
19981 done
19982
19983 fi
19984 done
19985
19986
19987 # Some definitions of getloadavg require that the program be installed setgid.
19988 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
19989 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
19990 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
19991 $as_echo_n "(cached) " >&6
19992 else
19993 cat >conftest.$ac_ext <<_ACEOF
19994 /* confdefs.h. */
19995 _ACEOF
19996 cat confdefs.h >>conftest.$ac_ext
19997 cat >>conftest.$ac_ext <<_ACEOF
19998 /* end confdefs.h. */
19999 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
20000 #ifdef LDAV_PRIVILEGED
20001 Yowza Am I SETGID yet
20002 #endif
20003 _ACEOF
20004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20005 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
20006 ac_cv_func_getloadavg_setgid=yes
20007 else
20008 ac_cv_func_getloadavg_setgid=no
20009 fi
20010 rm -f conftest*
20011
20012 fi
20013 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
20014 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
20015 if test $ac_cv_func_getloadavg_setgid = yes; then
20016 NEED_SETGID=true
20017
20018 cat >>confdefs.h <<\_ACEOF
20019 #define GETLOADAVG_PRIVILEGED 1
20020 _ACEOF
20021
20022 else
20023 NEED_SETGID=false
20024 fi
20025
20026 if test $ac_cv_func_getloadavg_setgid = yes; then
20027 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
20028 $as_echo_n "checking group of /dev/kmem... " >&6; }
20029 if test "${ac_cv_group_kmem+set}" = set; then
20030 $as_echo_n "(cached) " >&6
20031 else
20032 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
20033 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
20034 # If we got an error (system does not support symlinks), try without -L.
20035 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
20036 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
20037 | sed -ne 's/[ ][ ]*/ /g;
20038 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
20039 / /s/.* //;p;'`
20040
20041 fi
20042 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
20043 $as_echo "$ac_cv_group_kmem" >&6; }
20044 KMEM_GROUP=$ac_cv_group_kmem
20045 fi
20046 if test "x$ac_save_LIBS" = x; then
20047 GETLOADAVG_LIBS=$LIBS
20048 else
20049 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
20050 fi
20051 LIBS=$ac_save_LIBS
20052
20053
20054
20055 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
20056 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
20057 if test "${ac_cv_sys_largefile_source+set}" = set; then
20058 $as_echo_n "(cached) " >&6
20059 else
20060 while :; do
20061 cat >conftest.$ac_ext <<_ACEOF
20062 /* confdefs.h. */
20063 _ACEOF
20064 cat confdefs.h >>conftest.$ac_ext
20065 cat >>conftest.$ac_ext <<_ACEOF
20066 /* end confdefs.h. */
20067 #include <sys/types.h> /* for off_t */
20068 #include <stdio.h>
20069 int
20070 main ()
20071 {
20072 int (*fp) (FILE *, off_t, int) = fseeko;
20073 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20074 ;
20075 return 0;
20076 }
20077 _ACEOF
20078 rm -f conftest.$ac_objext conftest$ac_exeext
20079 if { (ac_try="$ac_link"
20080 case "(($ac_try" in
20081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20082 *) ac_try_echo=$ac_try;;
20083 esac
20084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20085 $as_echo "$ac_try_echo") >&5
20086 (eval "$ac_link") 2>conftest.er1
20087 ac_status=$?
20088 grep -v '^ *+' conftest.er1 >conftest.err
20089 rm -f conftest.er1
20090 cat conftest.err >&5
20091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092 (exit $ac_status); } && {
20093 test -z "$ac_c_werror_flag" ||
20094 test ! -s conftest.err
20095 } && test -s conftest$ac_exeext && {
20096 test "$cross_compiling" = yes ||
20097 $as_test_x conftest$ac_exeext
20098 }; then
20099 ac_cv_sys_largefile_source=no; break
20100 else
20101 $as_echo "$as_me: failed program was:" >&5
20102 sed 's/^/| /' conftest.$ac_ext >&5
20103
20104
20105 fi
20106
20107 rm -rf conftest.dSYM
20108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20109 conftest$ac_exeext conftest.$ac_ext
20110 cat >conftest.$ac_ext <<_ACEOF
20111 /* confdefs.h. */
20112 _ACEOF
20113 cat confdefs.h >>conftest.$ac_ext
20114 cat >>conftest.$ac_ext <<_ACEOF
20115 /* end confdefs.h. */
20116 #define _LARGEFILE_SOURCE 1
20117 #include <sys/types.h> /* for off_t */
20118 #include <stdio.h>
20119 int
20120 main ()
20121 {
20122 int (*fp) (FILE *, off_t, int) = fseeko;
20123 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20124 ;
20125 return 0;
20126 }
20127 _ACEOF
20128 rm -f conftest.$ac_objext conftest$ac_exeext
20129 if { (ac_try="$ac_link"
20130 case "(($ac_try" in
20131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20132 *) ac_try_echo=$ac_try;;
20133 esac
20134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20135 $as_echo "$ac_try_echo") >&5
20136 (eval "$ac_link") 2>conftest.er1
20137 ac_status=$?
20138 grep -v '^ *+' conftest.er1 >conftest.err
20139 rm -f conftest.er1
20140 cat conftest.err >&5
20141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142 (exit $ac_status); } && {
20143 test -z "$ac_c_werror_flag" ||
20144 test ! -s conftest.err
20145 } && test -s conftest$ac_exeext && {
20146 test "$cross_compiling" = yes ||
20147 $as_test_x conftest$ac_exeext
20148 }; then
20149 ac_cv_sys_largefile_source=1; break
20150 else
20151 $as_echo "$as_me: failed program was:" >&5
20152 sed 's/^/| /' conftest.$ac_ext >&5
20153
20154
20155 fi
20156
20157 rm -rf conftest.dSYM
20158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20159 conftest$ac_exeext conftest.$ac_ext
20160 ac_cv_sys_largefile_source=unknown
20161 break
20162 done
20163 fi
20164 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20165 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20166 case $ac_cv_sys_largefile_source in #(
20167 no | unknown) ;;
20168 *)
20169 cat >>confdefs.h <<_ACEOF
20170 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20171 _ACEOF
20172 ;;
20173 esac
20174 rm -rf conftest*
20175
20176 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20177 # in glibc 2.1.3, but that breaks too many other things.
20178 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20179 if test $ac_cv_sys_largefile_source != unknown; then
20180
20181 cat >>confdefs.h <<\_ACEOF
20182 #define HAVE_FSEEKO 1
20183 _ACEOF
20184
20185 fi
20186
20187
20188 # Configure getopt.
20189 # getopt.m4 serial 10
20190
20191 # The getopt module assume you want GNU getopt, with getopt_long etc,
20192 # rather than vanilla POSIX getopt. This means your your code should
20193 # always include <getopt.h> for the getopt prototypes.
20194
20195
20196
20197
20198
20199
20200
20201
20202
20203
20204
20205 # Prerequisites of lib/getopt*.
20206
20207
20208
20209
20210 GETOPT_H=
20211
20212 for ac_header in getopt.h
20213 do
20214 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20216 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20217 $as_echo_n "checking for $ac_header... " >&6; }
20218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20219 $as_echo_n "(cached) " >&6
20220 fi
20221 ac_res=`eval 'as_val=${'$as_ac_Header'}
20222 $as_echo "$as_val"'`
20223 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20224 $as_echo "$ac_res" >&6; }
20225 else
20226 # Is the header compilable?
20227 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20228 $as_echo_n "checking $ac_header usability... " >&6; }
20229 cat >conftest.$ac_ext <<_ACEOF
20230 /* confdefs.h. */
20231 _ACEOF
20232 cat confdefs.h >>conftest.$ac_ext
20233 cat >>conftest.$ac_ext <<_ACEOF
20234 /* end confdefs.h. */
20235 $ac_includes_default
20236 #include <$ac_header>
20237 _ACEOF
20238 rm -f conftest.$ac_objext
20239 if { (ac_try="$ac_compile"
20240 case "(($ac_try" in
20241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20242 *) ac_try_echo=$ac_try;;
20243 esac
20244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20245 $as_echo "$ac_try_echo") >&5
20246 (eval "$ac_compile") 2>conftest.er1
20247 ac_status=$?
20248 grep -v '^ *+' conftest.er1 >conftest.err
20249 rm -f conftest.er1
20250 cat conftest.err >&5
20251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252 (exit $ac_status); } && {
20253 test -z "$ac_c_werror_flag" ||
20254 test ! -s conftest.err
20255 } && test -s conftest.$ac_objext; then
20256 ac_header_compiler=yes
20257 else
20258 $as_echo "$as_me: failed program was:" >&5
20259 sed 's/^/| /' conftest.$ac_ext >&5
20260
20261 ac_header_compiler=no
20262 fi
20263
20264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20265 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20266 $as_echo "$ac_header_compiler" >&6; }
20267
20268 # Is the header present?
20269 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20270 $as_echo_n "checking $ac_header presence... " >&6; }
20271 cat >conftest.$ac_ext <<_ACEOF
20272 /* confdefs.h. */
20273 _ACEOF
20274 cat confdefs.h >>conftest.$ac_ext
20275 cat >>conftest.$ac_ext <<_ACEOF
20276 /* end confdefs.h. */
20277 #include <$ac_header>
20278 _ACEOF
20279 if { (ac_try="$ac_cpp conftest.$ac_ext"
20280 case "(($ac_try" in
20281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20282 *) ac_try_echo=$ac_try;;
20283 esac
20284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20285 $as_echo "$ac_try_echo") >&5
20286 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20287 ac_status=$?
20288 grep -v '^ *+' conftest.er1 >conftest.err
20289 rm -f conftest.er1
20290 cat conftest.err >&5
20291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); } >/dev/null && {
20293 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20294 test ! -s conftest.err
20295 }; then
20296 ac_header_preproc=yes
20297 else
20298 $as_echo "$as_me: failed program was:" >&5
20299 sed 's/^/| /' conftest.$ac_ext >&5
20300
20301 ac_header_preproc=no
20302 fi
20303
20304 rm -f conftest.err conftest.$ac_ext
20305 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20306 $as_echo "$ac_header_preproc" >&6; }
20307
20308 # So? What about this header?
20309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20310 yes:no: )
20311 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20312 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20313 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20314 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20315 ac_header_preproc=yes
20316 ;;
20317 no:yes:* )
20318 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20319 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20320 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20321 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20323 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20325 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20327 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20329 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20330
20331 ;;
20332 esac
20333 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20334 $as_echo_n "checking for $ac_header... " >&6; }
20335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20336 $as_echo_n "(cached) " >&6
20337 else
20338 eval "$as_ac_Header=\$ac_header_preproc"
20339 fi
20340 ac_res=`eval 'as_val=${'$as_ac_Header'}
20341 $as_echo "$as_val"'`
20342 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20343 $as_echo "$ac_res" >&6; }
20344
20345 fi
20346 if test `eval 'as_val=${'$as_ac_Header'}
20347 $as_echo "$as_val"'` = yes; then
20348 cat >>confdefs.h <<_ACEOF
20349 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20350 _ACEOF
20351
20352 else
20353 GETOPT_H=getopt.h
20354 fi
20355
20356 done
20357
20358 if test -z "$GETOPT_H"; then
20359
20360 for ac_func in getopt_long_only
20361 do
20362 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20363 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20364 $as_echo_n "checking for $ac_func... " >&6; }
20365 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20366 $as_echo_n "(cached) " >&6
20367 else
20368 cat >conftest.$ac_ext <<_ACEOF
20369 /* confdefs.h. */
20370 _ACEOF
20371 cat confdefs.h >>conftest.$ac_ext
20372 cat >>conftest.$ac_ext <<_ACEOF
20373 /* end confdefs.h. */
20374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20376 #define $ac_func innocuous_$ac_func
20377
20378 /* System header to define __stub macros and hopefully few prototypes,
20379 which can conflict with char $ac_func (); below.
20380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20381 <limits.h> exists even on freestanding compilers. */
20382
20383 #ifdef __STDC__
20384 # include <limits.h>
20385 #else
20386 # include <assert.h>
20387 #endif
20388
20389 #undef $ac_func
20390
20391 /* Override any GCC internal prototype to avoid an error.
20392 Use char because int might match the return type of a GCC
20393 builtin and then its argument prototype would still apply. */
20394 #ifdef __cplusplus
20395 extern "C"
20396 #endif
20397 char $ac_func ();
20398 /* The GNU C library defines this for functions which it implements
20399 to always fail with ENOSYS. Some functions are actually named
20400 something starting with __ and the normal name is an alias. */
20401 #if defined __stub_$ac_func || defined __stub___$ac_func
20402 choke me
20403 #endif
20404
20405 int
20406 main ()
20407 {
20408 return $ac_func ();
20409 ;
20410 return 0;
20411 }
20412 _ACEOF
20413 rm -f conftest.$ac_objext conftest$ac_exeext
20414 if { (ac_try="$ac_link"
20415 case "(($ac_try" in
20416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20417 *) ac_try_echo=$ac_try;;
20418 esac
20419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20420 $as_echo "$ac_try_echo") >&5
20421 (eval "$ac_link") 2>conftest.er1
20422 ac_status=$?
20423 grep -v '^ *+' conftest.er1 >conftest.err
20424 rm -f conftest.er1
20425 cat conftest.err >&5
20426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); } && {
20428 test -z "$ac_c_werror_flag" ||
20429 test ! -s conftest.err
20430 } && test -s conftest$ac_exeext && {
20431 test "$cross_compiling" = yes ||
20432 $as_test_x conftest$ac_exeext
20433 }; then
20434 eval "$as_ac_var=yes"
20435 else
20436 $as_echo "$as_me: failed program was:" >&5
20437 sed 's/^/| /' conftest.$ac_ext >&5
20438
20439 eval "$as_ac_var=no"
20440 fi
20441
20442 rm -rf conftest.dSYM
20443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20444 conftest$ac_exeext conftest.$ac_ext
20445 fi
20446 ac_res=`eval 'as_val=${'$as_ac_var'}
20447 $as_echo "$as_val"'`
20448 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20449 $as_echo "$ac_res" >&6; }
20450 if test `eval 'as_val=${'$as_ac_var'}
20451 $as_echo "$as_val"'` = yes; then
20452 cat >>confdefs.h <<_ACEOF
20453 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20454 _ACEOF
20455
20456 else
20457 GETOPT_H=getopt.h
20458 fi
20459 done
20460
20461 fi
20462
20463 if test -z "$GETOPT_H"; then
20464 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
20465 $as_echo_n "checking whether optreset is declared... " >&6; }
20466 if test "${ac_cv_have_decl_optreset+set}" = set; then
20467 $as_echo_n "(cached) " >&6
20468 else
20469 cat >conftest.$ac_ext <<_ACEOF
20470 /* confdefs.h. */
20471 _ACEOF
20472 cat confdefs.h >>conftest.$ac_ext
20473 cat >>conftest.$ac_ext <<_ACEOF
20474 /* end confdefs.h. */
20475 #include <getopt.h>
20476
20477 int
20478 main ()
20479 {
20480 #ifndef optreset
20481 (void) optreset;
20482 #endif
20483
20484 ;
20485 return 0;
20486 }
20487 _ACEOF
20488 rm -f conftest.$ac_objext
20489 if { (ac_try="$ac_compile"
20490 case "(($ac_try" in
20491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20492 *) ac_try_echo=$ac_try;;
20493 esac
20494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20495 $as_echo "$ac_try_echo") >&5
20496 (eval "$ac_compile") 2>conftest.er1
20497 ac_status=$?
20498 grep -v '^ *+' conftest.er1 >conftest.err
20499 rm -f conftest.er1
20500 cat conftest.err >&5
20501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); } && {
20503 test -z "$ac_c_werror_flag" ||
20504 test ! -s conftest.err
20505 } && test -s conftest.$ac_objext; then
20506 ac_cv_have_decl_optreset=yes
20507 else
20508 $as_echo "$as_me: failed program was:" >&5
20509 sed 's/^/| /' conftest.$ac_ext >&5
20510
20511 ac_cv_have_decl_optreset=no
20512 fi
20513
20514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20515 fi
20516 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20517 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20518 if test $ac_cv_have_decl_optreset = yes; then
20519 GETOPT_H=getopt.h
20520 fi
20521
20522 fi
20523
20524 if test -z "$GETOPT_H"; then
20525 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
20526 $as_echo_n "checking for working GNU getopt function... " >&6; }
20527 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20528 $as_echo_n "(cached) " >&6
20529 else
20530 if test "$cross_compiling" = yes; then
20531 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
20532 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
20533 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20534 $as_echo_n "(cached) " >&6
20535 else
20536 cat >conftest.$ac_ext <<_ACEOF
20537 /* confdefs.h. */
20538 _ACEOF
20539 cat confdefs.h >>conftest.$ac_ext
20540 cat >>conftest.$ac_ext <<_ACEOF
20541 /* end confdefs.h. */
20542 #include <getopt.h>
20543
20544 int
20545 main ()
20546 {
20547 #ifndef getopt_clip
20548 (void) getopt_clip;
20549 #endif
20550
20551 ;
20552 return 0;
20553 }
20554 _ACEOF
20555 rm -f conftest.$ac_objext
20556 if { (ac_try="$ac_compile"
20557 case "(($ac_try" in
20558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20559 *) ac_try_echo=$ac_try;;
20560 esac
20561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20562 $as_echo "$ac_try_echo") >&5
20563 (eval "$ac_compile") 2>conftest.er1
20564 ac_status=$?
20565 grep -v '^ *+' conftest.er1 >conftest.err
20566 rm -f conftest.er1
20567 cat conftest.err >&5
20568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569 (exit $ac_status); } && {
20570 test -z "$ac_c_werror_flag" ||
20571 test ! -s conftest.err
20572 } && test -s conftest.$ac_objext; then
20573 ac_cv_have_decl_getopt_clip=yes
20574 else
20575 $as_echo "$as_me: failed program was:" >&5
20576 sed 's/^/| /' conftest.$ac_ext >&5
20577
20578 ac_cv_have_decl_getopt_clip=no
20579 fi
20580
20581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20582 fi
20583 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20584 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20585 if test $ac_cv_have_decl_getopt_clip = yes; then
20586 gl_cv_func_gnu_getopt=no
20587 else
20588 gl_cv_func_gnu_getopt=yes
20589 fi
20590
20591 else
20592 cat >conftest.$ac_ext <<_ACEOF
20593 /* confdefs.h. */
20594 _ACEOF
20595 cat confdefs.h >>conftest.$ac_ext
20596 cat >>conftest.$ac_ext <<_ACEOF
20597 /* end confdefs.h. */
20598 #include <getopt.h>
20599 int
20600 main ()
20601 {
20602
20603 char *myargv[3];
20604 myargv[0] = "conftest";
20605 myargv[1] = "-+";
20606 myargv[2] = 0;
20607 return getopt (2, myargv, "+a") != '?';
20608
20609 ;
20610 return 0;
20611 }
20612 _ACEOF
20613 rm -f conftest$ac_exeext
20614 if { (ac_try="$ac_link"
20615 case "(($ac_try" in
20616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20617 *) ac_try_echo=$ac_try;;
20618 esac
20619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20620 $as_echo "$ac_try_echo") >&5
20621 (eval "$ac_link") 2>&5
20622 ac_status=$?
20623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20624 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20625 { (case "(($ac_try" in
20626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20627 *) ac_try_echo=$ac_try;;
20628 esac
20629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20630 $as_echo "$ac_try_echo") >&5
20631 (eval "$ac_try") 2>&5
20632 ac_status=$?
20633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); }; }; then
20635 gl_cv_func_gnu_getopt=yes
20636 else
20637 $as_echo "$as_me: program exited with status $ac_status" >&5
20638 $as_echo "$as_me: failed program was:" >&5
20639 sed 's/^/| /' conftest.$ac_ext >&5
20640
20641 ( exit $ac_status )
20642 gl_cv_func_gnu_getopt=no
20643 fi
20644 rm -rf conftest.dSYM
20645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20646 fi
20647
20648
20649 fi
20650 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
20651 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20652 if test "$gl_cv_func_gnu_getopt" = "no"; then
20653 GETOPT_H=getopt.h
20654 fi
20655 fi
20656
20657
20658
20659 if test -n "$GETOPT_H"; then
20660
20661
20662 GETOPT_H=getopt.h
20663
20664 cat >>confdefs.h <<\_ACEOF
20665 #define __GETOPT_PREFIX rpl_
20666 _ACEOF
20667
20668
20669
20670 :
20671 GETOPTOBJS='getopt.o getopt1.o'
20672
20673 fi
20674
20675
20676
20677
20678 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
20679 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
20680 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20681 $as_echo_n "(cached) " >&6
20682 else
20683 # Use it with a single arg.
20684 cat >conftest.$ac_ext <<_ACEOF
20685 /* confdefs.h. */
20686 _ACEOF
20687 cat confdefs.h >>conftest.$ac_ext
20688 cat >>conftest.$ac_ext <<_ACEOF
20689 /* end confdefs.h. */
20690 $ac_includes_default
20691 int
20692 main ()
20693 {
20694 getpgrp (0);
20695 ;
20696 return 0;
20697 }
20698 _ACEOF
20699 rm -f conftest.$ac_objext
20700 if { (ac_try="$ac_compile"
20701 case "(($ac_try" in
20702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20703 *) ac_try_echo=$ac_try;;
20704 esac
20705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20706 $as_echo "$ac_try_echo") >&5
20707 (eval "$ac_compile") 2>conftest.er1
20708 ac_status=$?
20709 grep -v '^ *+' conftest.er1 >conftest.err
20710 rm -f conftest.er1
20711 cat conftest.err >&5
20712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713 (exit $ac_status); } && {
20714 test -z "$ac_c_werror_flag" ||
20715 test ! -s conftest.err
20716 } && test -s conftest.$ac_objext; then
20717 ac_cv_func_getpgrp_void=no
20718 else
20719 $as_echo "$as_me: failed program was:" >&5
20720 sed 's/^/| /' conftest.$ac_ext >&5
20721
20722 ac_cv_func_getpgrp_void=yes
20723 fi
20724
20725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20726
20727 fi
20728 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
20729 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20730 if test $ac_cv_func_getpgrp_void = yes; then
20731
20732 cat >>confdefs.h <<\_ACEOF
20733 #define GETPGRP_VOID 1
20734 _ACEOF
20735
20736 fi
20737
20738
20739
20740 for ac_func in strftime
20741 do
20742 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20743 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20744 $as_echo_n "checking for $ac_func... " >&6; }
20745 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20746 $as_echo_n "(cached) " >&6
20747 else
20748 cat >conftest.$ac_ext <<_ACEOF
20749 /* confdefs.h. */
20750 _ACEOF
20751 cat confdefs.h >>conftest.$ac_ext
20752 cat >>conftest.$ac_ext <<_ACEOF
20753 /* end confdefs.h. */
20754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20756 #define $ac_func innocuous_$ac_func
20757
20758 /* System header to define __stub macros and hopefully few prototypes,
20759 which can conflict with char $ac_func (); below.
20760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20761 <limits.h> exists even on freestanding compilers. */
20762
20763 #ifdef __STDC__
20764 # include <limits.h>
20765 #else
20766 # include <assert.h>
20767 #endif
20768
20769 #undef $ac_func
20770
20771 /* Override any GCC internal prototype to avoid an error.
20772 Use char because int might match the return type of a GCC
20773 builtin and then its argument prototype would still apply. */
20774 #ifdef __cplusplus
20775 extern "C"
20776 #endif
20777 char $ac_func ();
20778 /* The GNU C library defines this for functions which it implements
20779 to always fail with ENOSYS. Some functions are actually named
20780 something starting with __ and the normal name is an alias. */
20781 #if defined __stub_$ac_func || defined __stub___$ac_func
20782 choke me
20783 #endif
20784
20785 int
20786 main ()
20787 {
20788 return $ac_func ();
20789 ;
20790 return 0;
20791 }
20792 _ACEOF
20793 rm -f conftest.$ac_objext conftest$ac_exeext
20794 if { (ac_try="$ac_link"
20795 case "(($ac_try" in
20796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20797 *) ac_try_echo=$ac_try;;
20798 esac
20799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20800 $as_echo "$ac_try_echo") >&5
20801 (eval "$ac_link") 2>conftest.er1
20802 ac_status=$?
20803 grep -v '^ *+' conftest.er1 >conftest.err
20804 rm -f conftest.er1
20805 cat conftest.err >&5
20806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); } && {
20808 test -z "$ac_c_werror_flag" ||
20809 test ! -s conftest.err
20810 } && test -s conftest$ac_exeext && {
20811 test "$cross_compiling" = yes ||
20812 $as_test_x conftest$ac_exeext
20813 }; then
20814 eval "$as_ac_var=yes"
20815 else
20816 $as_echo "$as_me: failed program was:" >&5
20817 sed 's/^/| /' conftest.$ac_ext >&5
20818
20819 eval "$as_ac_var=no"
20820 fi
20821
20822 rm -rf conftest.dSYM
20823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20824 conftest$ac_exeext conftest.$ac_ext
20825 fi
20826 ac_res=`eval 'as_val=${'$as_ac_var'}
20827 $as_echo "$as_val"'`
20828 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20829 $as_echo "$ac_res" >&6; }
20830 if test `eval 'as_val=${'$as_ac_var'}
20831 $as_echo "$as_val"'` = yes; then
20832 cat >>confdefs.h <<_ACEOF
20833 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20834 _ACEOF
20835
20836 else
20837 # strftime is in -lintl on SCO UNIX.
20838 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
20839 $as_echo_n "checking for strftime in -lintl... " >&6; }
20840 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20841 $as_echo_n "(cached) " >&6
20842 else
20843 ac_check_lib_save_LIBS=$LIBS
20844 LIBS="-lintl $LIBS"
20845 cat >conftest.$ac_ext <<_ACEOF
20846 /* confdefs.h. */
20847 _ACEOF
20848 cat confdefs.h >>conftest.$ac_ext
20849 cat >>conftest.$ac_ext <<_ACEOF
20850 /* end confdefs.h. */
20851
20852 /* Override any GCC internal prototype to avoid an error.
20853 Use char because int might match the return type of a GCC
20854 builtin and then its argument prototype would still apply. */
20855 #ifdef __cplusplus
20856 extern "C"
20857 #endif
20858 char strftime ();
20859 int
20860 main ()
20861 {
20862 return strftime ();
20863 ;
20864 return 0;
20865 }
20866 _ACEOF
20867 rm -f conftest.$ac_objext conftest$ac_exeext
20868 if { (ac_try="$ac_link"
20869 case "(($ac_try" in
20870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20871 *) ac_try_echo=$ac_try;;
20872 esac
20873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20874 $as_echo "$ac_try_echo") >&5
20875 (eval "$ac_link") 2>conftest.er1
20876 ac_status=$?
20877 grep -v '^ *+' conftest.er1 >conftest.err
20878 rm -f conftest.er1
20879 cat conftest.err >&5
20880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); } && {
20882 test -z "$ac_c_werror_flag" ||
20883 test ! -s conftest.err
20884 } && test -s conftest$ac_exeext && {
20885 test "$cross_compiling" = yes ||
20886 $as_test_x conftest$ac_exeext
20887 }; then
20888 ac_cv_lib_intl_strftime=yes
20889 else
20890 $as_echo "$as_me: failed program was:" >&5
20891 sed 's/^/| /' conftest.$ac_ext >&5
20892
20893 ac_cv_lib_intl_strftime=no
20894 fi
20895
20896 rm -rf conftest.dSYM
20897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20898 conftest$ac_exeext conftest.$ac_ext
20899 LIBS=$ac_check_lib_save_LIBS
20900 fi
20901 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
20902 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
20903 if test $ac_cv_lib_intl_strftime = yes; then
20904 cat >>confdefs.h <<\_ACEOF
20905 #define HAVE_STRFTIME 1
20906 _ACEOF
20907
20908 LIBS="-lintl $LIBS"
20909 fi
20910
20911 fi
20912 done
20913
20914
20915 # UNIX98 PTYs.
20916
20917 for ac_func in grantpt
20918 do
20919 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20920 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20921 $as_echo_n "checking for $ac_func... " >&6; }
20922 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20923 $as_echo_n "(cached) " >&6
20924 else
20925 cat >conftest.$ac_ext <<_ACEOF
20926 /* confdefs.h. */
20927 _ACEOF
20928 cat confdefs.h >>conftest.$ac_ext
20929 cat >>conftest.$ac_ext <<_ACEOF
20930 /* end confdefs.h. */
20931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20933 #define $ac_func innocuous_$ac_func
20934
20935 /* System header to define __stub macros and hopefully few prototypes,
20936 which can conflict with char $ac_func (); below.
20937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20938 <limits.h> exists even on freestanding compilers. */
20939
20940 #ifdef __STDC__
20941 # include <limits.h>
20942 #else
20943 # include <assert.h>
20944 #endif
20945
20946 #undef $ac_func
20947
20948 /* Override any GCC internal prototype to avoid an error.
20949 Use char because int might match the return type of a GCC
20950 builtin and then its argument prototype would still apply. */
20951 #ifdef __cplusplus
20952 extern "C"
20953 #endif
20954 char $ac_func ();
20955 /* The GNU C library defines this for functions which it implements
20956 to always fail with ENOSYS. Some functions are actually named
20957 something starting with __ and the normal name is an alias. */
20958 #if defined __stub_$ac_func || defined __stub___$ac_func
20959 choke me
20960 #endif
20961
20962 int
20963 main ()
20964 {
20965 return $ac_func ();
20966 ;
20967 return 0;
20968 }
20969 _ACEOF
20970 rm -f conftest.$ac_objext conftest$ac_exeext
20971 if { (ac_try="$ac_link"
20972 case "(($ac_try" in
20973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20974 *) ac_try_echo=$ac_try;;
20975 esac
20976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20977 $as_echo "$ac_try_echo") >&5
20978 (eval "$ac_link") 2>conftest.er1
20979 ac_status=$?
20980 grep -v '^ *+' conftest.er1 >conftest.err
20981 rm -f conftest.er1
20982 cat conftest.err >&5
20983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984 (exit $ac_status); } && {
20985 test -z "$ac_c_werror_flag" ||
20986 test ! -s conftest.err
20987 } && test -s conftest$ac_exeext && {
20988 test "$cross_compiling" = yes ||
20989 $as_test_x conftest$ac_exeext
20990 }; then
20991 eval "$as_ac_var=yes"
20992 else
20993 $as_echo "$as_me: failed program was:" >&5
20994 sed 's/^/| /' conftest.$ac_ext >&5
20995
20996 eval "$as_ac_var=no"
20997 fi
20998
20999 rm -rf conftest.dSYM
21000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21001 conftest$ac_exeext conftest.$ac_ext
21002 fi
21003 ac_res=`eval 'as_val=${'$as_ac_var'}
21004 $as_echo "$as_val"'`
21005 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21006 $as_echo "$ac_res" >&6; }
21007 if test `eval 'as_val=${'$as_ac_var'}
21008 $as_echo "$as_val"'` = yes; then
21009 cat >>confdefs.h <<_ACEOF
21010 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21011 _ACEOF
21012
21013 fi
21014 done
21015
21016
21017 # PTY-related GNU extensions.
21018
21019 for ac_func in getpt
21020 do
21021 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21022 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21023 $as_echo_n "checking for $ac_func... " >&6; }
21024 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21025 $as_echo_n "(cached) " >&6
21026 else
21027 cat >conftest.$ac_ext <<_ACEOF
21028 /* confdefs.h. */
21029 _ACEOF
21030 cat confdefs.h >>conftest.$ac_ext
21031 cat >>conftest.$ac_ext <<_ACEOF
21032 /* end confdefs.h. */
21033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21035 #define $ac_func innocuous_$ac_func
21036
21037 /* System header to define __stub macros and hopefully few prototypes,
21038 which can conflict with char $ac_func (); below.
21039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21040 <limits.h> exists even on freestanding compilers. */
21041
21042 #ifdef __STDC__
21043 # include <limits.h>
21044 #else
21045 # include <assert.h>
21046 #endif
21047
21048 #undef $ac_func
21049
21050 /* Override any GCC internal prototype to avoid an error.
21051 Use char because int might match the return type of a GCC
21052 builtin and then its argument prototype would still apply. */
21053 #ifdef __cplusplus
21054 extern "C"
21055 #endif
21056 char $ac_func ();
21057 /* The GNU C library defines this for functions which it implements
21058 to always fail with ENOSYS. Some functions are actually named
21059 something starting with __ and the normal name is an alias. */
21060 #if defined __stub_$ac_func || defined __stub___$ac_func
21061 choke me
21062 #endif
21063
21064 int
21065 main ()
21066 {
21067 return $ac_func ();
21068 ;
21069 return 0;
21070 }
21071 _ACEOF
21072 rm -f conftest.$ac_objext conftest$ac_exeext
21073 if { (ac_try="$ac_link"
21074 case "(($ac_try" in
21075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21076 *) ac_try_echo=$ac_try;;
21077 esac
21078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21079 $as_echo "$ac_try_echo") >&5
21080 (eval "$ac_link") 2>conftest.er1
21081 ac_status=$?
21082 grep -v '^ *+' conftest.er1 >conftest.err
21083 rm -f conftest.er1
21084 cat conftest.err >&5
21085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); } && {
21087 test -z "$ac_c_werror_flag" ||
21088 test ! -s conftest.err
21089 } && test -s conftest$ac_exeext && {
21090 test "$cross_compiling" = yes ||
21091 $as_test_x conftest$ac_exeext
21092 }; then
21093 eval "$as_ac_var=yes"
21094 else
21095 $as_echo "$as_me: failed program was:" >&5
21096 sed 's/^/| /' conftest.$ac_ext >&5
21097
21098 eval "$as_ac_var=no"
21099 fi
21100
21101 rm -rf conftest.dSYM
21102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21103 conftest$ac_exeext conftest.$ac_ext
21104 fi
21105 ac_res=`eval 'as_val=${'$as_ac_var'}
21106 $as_echo "$as_val"'`
21107 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21108 $as_echo "$ac_res" >&6; }
21109 if test `eval 'as_val=${'$as_ac_var'}
21110 $as_echo "$as_val"'` = yes; then
21111 cat >>confdefs.h <<_ACEOF
21112 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21113 _ACEOF
21114
21115 fi
21116 done
21117
21118
21119 # Check this now, so that we will NOT find the above functions in ncurses.
21120 # That is because we have not set up to link ncurses in lib-src.
21121 # It's better to believe a function is not available
21122 # than to expect to find it in ncurses.
21123 # Also we need tputs and frieds to be able to build at all.
21124 have_tputs_et_al=true
21125 { $as_echo "$as_me:$LINENO: checking for library containing tputs" >&5
21126 $as_echo_n "checking for library containing tputs... " >&6; }
21127 if test "${ac_cv_search_tputs+set}" = set; then
21128 $as_echo_n "(cached) " >&6
21129 else
21130 ac_func_search_save_LIBS=$LIBS
21131 cat >conftest.$ac_ext <<_ACEOF
21132 /* confdefs.h. */
21133 _ACEOF
21134 cat confdefs.h >>conftest.$ac_ext
21135 cat >>conftest.$ac_ext <<_ACEOF
21136 /* end confdefs.h. */
21137
21138 /* Override any GCC internal prototype to avoid an error.
21139 Use char because int might match the return type of a GCC
21140 builtin and then its argument prototype would still apply. */
21141 #ifdef __cplusplus
21142 extern "C"
21143 #endif
21144 char tputs ();
21145 int
21146 main ()
21147 {
21148 return tputs ();
21149 ;
21150 return 0;
21151 }
21152 _ACEOF
21153 for ac_lib in '' ncurses terminfo termcap; do
21154 if test -z "$ac_lib"; then
21155 ac_res="none required"
21156 else
21157 ac_res=-l$ac_lib
21158 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21159 fi
21160 rm -f conftest.$ac_objext conftest$ac_exeext
21161 if { (ac_try="$ac_link"
21162 case "(($ac_try" in
21163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21164 *) ac_try_echo=$ac_try;;
21165 esac
21166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21167 $as_echo "$ac_try_echo") >&5
21168 (eval "$ac_link") 2>conftest.er1
21169 ac_status=$?
21170 grep -v '^ *+' conftest.er1 >conftest.err
21171 rm -f conftest.er1
21172 cat conftest.err >&5
21173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21174 (exit $ac_status); } && {
21175 test -z "$ac_c_werror_flag" ||
21176 test ! -s conftest.err
21177 } && test -s conftest$ac_exeext && {
21178 test "$cross_compiling" = yes ||
21179 $as_test_x conftest$ac_exeext
21180 }; then
21181 ac_cv_search_tputs=$ac_res
21182 else
21183 $as_echo "$as_me: failed program was:" >&5
21184 sed 's/^/| /' conftest.$ac_ext >&5
21185
21186
21187 fi
21188
21189 rm -rf conftest.dSYM
21190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21191 conftest$ac_exeext
21192 if test "${ac_cv_search_tputs+set}" = set; then
21193 break
21194 fi
21195 done
21196 if test "${ac_cv_search_tputs+set}" = set; then
21197 :
21198 else
21199 ac_cv_search_tputs=no
21200 fi
21201 rm conftest.$ac_ext
21202 LIBS=$ac_func_search_save_LIBS
21203 fi
21204 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tputs" >&5
21205 $as_echo "$ac_cv_search_tputs" >&6; }
21206 ac_res=$ac_cv_search_tputs
21207 if test "$ac_res" != no; then
21208 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21209
21210 else
21211 have_tputs_et_al=false
21212 fi
21213
21214 if test "$have_tputs_et_al" != true; then
21215 { { $as_echo "$as_me:$LINENO: error: I couldn't find termcap functions (tputs and friends).
21216 Maybe some development libraries/packages are missing? Try installing
21217 libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21218 $as_echo "$as_me: error: I couldn't find termcap functions (tputs and friends).
21219 Maybe some development libraries/packages are missing? Try installing
21220 libncurses-dev(el), libterminfo-dev(el) or similar." >&2;}
21221 { (exit 1); exit 1; }; }
21222 fi
21223 # Must define this when any termcap library is found.
21224
21225 cat >>confdefs.h <<\_ACEOF
21226 #define HAVE_LIBNCURSES 1
21227 _ACEOF
21228
21229
21230 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21231
21232 resolv=no
21233 cat >conftest.$ac_ext <<_ACEOF
21234 /* confdefs.h. */
21235 _ACEOF
21236 cat confdefs.h >>conftest.$ac_ext
21237 cat >>conftest.$ac_ext <<_ACEOF
21238 /* end confdefs.h. */
21239 #include <netinet/in.h>
21240 #include <arpa/nameser.h>
21241 #include <resolv.h>
21242 int
21243 main ()
21244 {
21245 return res_init();
21246 ;
21247 return 0;
21248 }
21249 _ACEOF
21250 rm -f conftest.$ac_objext conftest$ac_exeext
21251 if { (ac_try="$ac_link"
21252 case "(($ac_try" in
21253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21254 *) ac_try_echo=$ac_try;;
21255 esac
21256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21257 $as_echo "$ac_try_echo") >&5
21258 (eval "$ac_link") 2>conftest.er1
21259 ac_status=$?
21260 grep -v '^ *+' conftest.er1 >conftest.err
21261 rm -f conftest.er1
21262 cat conftest.err >&5
21263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 (exit $ac_status); } && {
21265 test -z "$ac_c_werror_flag" ||
21266 test ! -s conftest.err
21267 } && test -s conftest$ac_exeext && {
21268 test "$cross_compiling" = yes ||
21269 $as_test_x conftest$ac_exeext
21270 }; then
21271 have_res_init=yes
21272 else
21273 $as_echo "$as_me: failed program was:" >&5
21274 sed 's/^/| /' conftest.$ac_ext >&5
21275
21276 have_res_init=no
21277 fi
21278
21279 rm -rf conftest.dSYM
21280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21281 conftest$ac_exeext conftest.$ac_ext
21282 if test "$have_res_init" = no; then
21283 OLIBS="$LIBS"
21284 LIBS="$LIBS -lresolv"
21285 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
21286 $as_echo_n "checking for res_init with -lresolv... " >&6; }
21287 cat >conftest.$ac_ext <<_ACEOF
21288 /* confdefs.h. */
21289 _ACEOF
21290 cat confdefs.h >>conftest.$ac_ext
21291 cat >>conftest.$ac_ext <<_ACEOF
21292 /* end confdefs.h. */
21293 #include <netinet/in.h>
21294 #include <arpa/nameser.h>
21295 #include <resolv.h>
21296 int
21297 main ()
21298 {
21299 return res_init();
21300 ;
21301 return 0;
21302 }
21303 _ACEOF
21304 rm -f conftest.$ac_objext conftest$ac_exeext
21305 if { (ac_try="$ac_link"
21306 case "(($ac_try" in
21307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21308 *) ac_try_echo=$ac_try;;
21309 esac
21310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21311 $as_echo "$ac_try_echo") >&5
21312 (eval "$ac_link") 2>conftest.er1
21313 ac_status=$?
21314 grep -v '^ *+' conftest.er1 >conftest.err
21315 rm -f conftest.er1
21316 cat conftest.err >&5
21317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); } && {
21319 test -z "$ac_c_werror_flag" ||
21320 test ! -s conftest.err
21321 } && test -s conftest$ac_exeext && {
21322 test "$cross_compiling" = yes ||
21323 $as_test_x conftest$ac_exeext
21324 }; then
21325 have_res_init=yes
21326 else
21327 $as_echo "$as_me: failed program was:" >&5
21328 sed 's/^/| /' conftest.$ac_ext >&5
21329
21330 have_res_init=no
21331 fi
21332
21333 rm -rf conftest.dSYM
21334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21335 conftest$ac_exeext conftest.$ac_ext
21336 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
21337 $as_echo "$have_res_init" >&6; }
21338 if test "$have_res_init" = yes ; then
21339 resolv=yes
21340 fi
21341 LIBS="$OLIBS"
21342 fi
21343
21344 if test "$have_res_init" = yes; then
21345
21346 cat >>confdefs.h <<\_ACEOF
21347 #define HAVE_RES_INIT 1
21348 _ACEOF
21349
21350 fi
21351
21352 # Do we need the Hesiod library to provide the support routines?
21353 LIBHESIOD=
21354 if test "$with_hesiod" != no ; then
21355 # Don't set $LIBS here -- see comments above. FIXME which comments?
21356 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
21357 $as_echo_n "checking for res_send... " >&6; }
21358 if test "${ac_cv_func_res_send+set}" = set; then
21359 $as_echo_n "(cached) " >&6
21360 else
21361 cat >conftest.$ac_ext <<_ACEOF
21362 /* confdefs.h. */
21363 _ACEOF
21364 cat confdefs.h >>conftest.$ac_ext
21365 cat >>conftest.$ac_ext <<_ACEOF
21366 /* end confdefs.h. */
21367 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21369 #define res_send innocuous_res_send
21370
21371 /* System header to define __stub macros and hopefully few prototypes,
21372 which can conflict with char res_send (); below.
21373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21374 <limits.h> exists even on freestanding compilers. */
21375
21376 #ifdef __STDC__
21377 # include <limits.h>
21378 #else
21379 # include <assert.h>
21380 #endif
21381
21382 #undef res_send
21383
21384 /* Override any GCC internal prototype to avoid an error.
21385 Use char because int might match the return type of a GCC
21386 builtin and then its argument prototype would still apply. */
21387 #ifdef __cplusplus
21388 extern "C"
21389 #endif
21390 char res_send ();
21391 /* The GNU C library defines this for functions which it implements
21392 to always fail with ENOSYS. Some functions are actually named
21393 something starting with __ and the normal name is an alias. */
21394 #if defined __stub_res_send || defined __stub___res_send
21395 choke me
21396 #endif
21397
21398 int
21399 main ()
21400 {
21401 return res_send ();
21402 ;
21403 return 0;
21404 }
21405 _ACEOF
21406 rm -f conftest.$ac_objext conftest$ac_exeext
21407 if { (ac_try="$ac_link"
21408 case "(($ac_try" in
21409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21410 *) ac_try_echo=$ac_try;;
21411 esac
21412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21413 $as_echo "$ac_try_echo") >&5
21414 (eval "$ac_link") 2>conftest.er1
21415 ac_status=$?
21416 grep -v '^ *+' conftest.er1 >conftest.err
21417 rm -f conftest.er1
21418 cat conftest.err >&5
21419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420 (exit $ac_status); } && {
21421 test -z "$ac_c_werror_flag" ||
21422 test ! -s conftest.err
21423 } && test -s conftest$ac_exeext && {
21424 test "$cross_compiling" = yes ||
21425 $as_test_x conftest$ac_exeext
21426 }; then
21427 ac_cv_func_res_send=yes
21428 else
21429 $as_echo "$as_me: failed program was:" >&5
21430 sed 's/^/| /' conftest.$ac_ext >&5
21431
21432 ac_cv_func_res_send=no
21433 fi
21434
21435 rm -rf conftest.dSYM
21436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21437 conftest$ac_exeext conftest.$ac_ext
21438 fi
21439 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
21440 $as_echo "$ac_cv_func_res_send" >&6; }
21441 if test $ac_cv_func_res_send = yes; then
21442 :
21443 else
21444 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
21445 $as_echo_n "checking for __res_send... " >&6; }
21446 if test "${ac_cv_func___res_send+set}" = set; then
21447 $as_echo_n "(cached) " >&6
21448 else
21449 cat >conftest.$ac_ext <<_ACEOF
21450 /* confdefs.h. */
21451 _ACEOF
21452 cat confdefs.h >>conftest.$ac_ext
21453 cat >>conftest.$ac_ext <<_ACEOF
21454 /* end confdefs.h. */
21455 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21457 #define __res_send innocuous___res_send
21458
21459 /* System header to define __stub macros and hopefully few prototypes,
21460 which can conflict with char __res_send (); below.
21461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21462 <limits.h> exists even on freestanding compilers. */
21463
21464 #ifdef __STDC__
21465 # include <limits.h>
21466 #else
21467 # include <assert.h>
21468 #endif
21469
21470 #undef __res_send
21471
21472 /* Override any GCC internal prototype to avoid an error.
21473 Use char because int might match the return type of a GCC
21474 builtin and then its argument prototype would still apply. */
21475 #ifdef __cplusplus
21476 extern "C"
21477 #endif
21478 char __res_send ();
21479 /* The GNU C library defines this for functions which it implements
21480 to always fail with ENOSYS. Some functions are actually named
21481 something starting with __ and the normal name is an alias. */
21482 #if defined __stub___res_send || defined __stub_____res_send
21483 choke me
21484 #endif
21485
21486 int
21487 main ()
21488 {
21489 return __res_send ();
21490 ;
21491 return 0;
21492 }
21493 _ACEOF
21494 rm -f conftest.$ac_objext conftest$ac_exeext
21495 if { (ac_try="$ac_link"
21496 case "(($ac_try" in
21497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21498 *) ac_try_echo=$ac_try;;
21499 esac
21500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21501 $as_echo "$ac_try_echo") >&5
21502 (eval "$ac_link") 2>conftest.er1
21503 ac_status=$?
21504 grep -v '^ *+' conftest.er1 >conftest.err
21505 rm -f conftest.er1
21506 cat conftest.err >&5
21507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21508 (exit $ac_status); } && {
21509 test -z "$ac_c_werror_flag" ||
21510 test ! -s conftest.err
21511 } && test -s conftest$ac_exeext && {
21512 test "$cross_compiling" = yes ||
21513 $as_test_x conftest$ac_exeext
21514 }; then
21515 ac_cv_func___res_send=yes
21516 else
21517 $as_echo "$as_me: failed program was:" >&5
21518 sed 's/^/| /' conftest.$ac_ext >&5
21519
21520 ac_cv_func___res_send=no
21521 fi
21522
21523 rm -rf conftest.dSYM
21524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21525 conftest$ac_exeext conftest.$ac_ext
21526 fi
21527 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
21528 $as_echo "$ac_cv_func___res_send" >&6; }
21529 if test $ac_cv_func___res_send = yes; then
21530 :
21531 else
21532 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
21533 $as_echo_n "checking for res_send in -lresolv... " >&6; }
21534 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
21535 $as_echo_n "(cached) " >&6
21536 else
21537 ac_check_lib_save_LIBS=$LIBS
21538 LIBS="-lresolv $LIBS"
21539 cat >conftest.$ac_ext <<_ACEOF
21540 /* confdefs.h. */
21541 _ACEOF
21542 cat confdefs.h >>conftest.$ac_ext
21543 cat >>conftest.$ac_ext <<_ACEOF
21544 /* end confdefs.h. */
21545
21546 /* Override any GCC internal prototype to avoid an error.
21547 Use char because int might match the return type of a GCC
21548 builtin and then its argument prototype would still apply. */
21549 #ifdef __cplusplus
21550 extern "C"
21551 #endif
21552 char res_send ();
21553 int
21554 main ()
21555 {
21556 return res_send ();
21557 ;
21558 return 0;
21559 }
21560 _ACEOF
21561 rm -f conftest.$ac_objext conftest$ac_exeext
21562 if { (ac_try="$ac_link"
21563 case "(($ac_try" in
21564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21565 *) ac_try_echo=$ac_try;;
21566 esac
21567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21568 $as_echo "$ac_try_echo") >&5
21569 (eval "$ac_link") 2>conftest.er1
21570 ac_status=$?
21571 grep -v '^ *+' conftest.er1 >conftest.err
21572 rm -f conftest.er1
21573 cat conftest.err >&5
21574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575 (exit $ac_status); } && {
21576 test -z "$ac_c_werror_flag" ||
21577 test ! -s conftest.err
21578 } && test -s conftest$ac_exeext && {
21579 test "$cross_compiling" = yes ||
21580 $as_test_x conftest$ac_exeext
21581 }; then
21582 ac_cv_lib_resolv_res_send=yes
21583 else
21584 $as_echo "$as_me: failed program was:" >&5
21585 sed 's/^/| /' conftest.$ac_ext >&5
21586
21587 ac_cv_lib_resolv_res_send=no
21588 fi
21589
21590 rm -rf conftest.dSYM
21591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21592 conftest$ac_exeext conftest.$ac_ext
21593 LIBS=$ac_check_lib_save_LIBS
21594 fi
21595 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
21596 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21597 if test $ac_cv_lib_resolv_res_send = yes; then
21598 resolv=yes
21599 else
21600 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
21601 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
21602 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
21603 $as_echo_n "(cached) " >&6
21604 else
21605 ac_check_lib_save_LIBS=$LIBS
21606 LIBS="-lresolv $LIBS"
21607 cat >conftest.$ac_ext <<_ACEOF
21608 /* confdefs.h. */
21609 _ACEOF
21610 cat confdefs.h >>conftest.$ac_ext
21611 cat >>conftest.$ac_ext <<_ACEOF
21612 /* end confdefs.h. */
21613
21614 /* Override any GCC internal prototype to avoid an error.
21615 Use char because int might match the return type of a GCC
21616 builtin and then its argument prototype would still apply. */
21617 #ifdef __cplusplus
21618 extern "C"
21619 #endif
21620 char __res_send ();
21621 int
21622 main ()
21623 {
21624 return __res_send ();
21625 ;
21626 return 0;
21627 }
21628 _ACEOF
21629 rm -f conftest.$ac_objext conftest$ac_exeext
21630 if { (ac_try="$ac_link"
21631 case "(($ac_try" in
21632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21633 *) ac_try_echo=$ac_try;;
21634 esac
21635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21636 $as_echo "$ac_try_echo") >&5
21637 (eval "$ac_link") 2>conftest.er1
21638 ac_status=$?
21639 grep -v '^ *+' conftest.er1 >conftest.err
21640 rm -f conftest.er1
21641 cat conftest.err >&5
21642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643 (exit $ac_status); } && {
21644 test -z "$ac_c_werror_flag" ||
21645 test ! -s conftest.err
21646 } && test -s conftest$ac_exeext && {
21647 test "$cross_compiling" = yes ||
21648 $as_test_x conftest$ac_exeext
21649 }; then
21650 ac_cv_lib_resolv___res_send=yes
21651 else
21652 $as_echo "$as_me: failed program was:" >&5
21653 sed 's/^/| /' conftest.$ac_ext >&5
21654
21655 ac_cv_lib_resolv___res_send=no
21656 fi
21657
21658 rm -rf conftest.dSYM
21659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21660 conftest$ac_exeext conftest.$ac_ext
21661 LIBS=$ac_check_lib_save_LIBS
21662 fi
21663 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
21664 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21665 if test $ac_cv_lib_resolv___res_send = yes; then
21666 resolv=yes
21667 fi
21668
21669 fi
21670
21671 fi
21672
21673 fi
21674
21675 if test "$resolv" = yes ; then
21676 RESOLVLIB=-lresolv
21677 else
21678 RESOLVLIB=
21679 fi
21680 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
21681 $as_echo_n "checking for hes_getmailhost... " >&6; }
21682 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21683 $as_echo_n "(cached) " >&6
21684 else
21685 cat >conftest.$ac_ext <<_ACEOF
21686 /* confdefs.h. */
21687 _ACEOF
21688 cat confdefs.h >>conftest.$ac_ext
21689 cat >>conftest.$ac_ext <<_ACEOF
21690 /* end confdefs.h. */
21691 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21693 #define hes_getmailhost innocuous_hes_getmailhost
21694
21695 /* System header to define __stub macros and hopefully few prototypes,
21696 which can conflict with char hes_getmailhost (); below.
21697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21698 <limits.h> exists even on freestanding compilers. */
21699
21700 #ifdef __STDC__
21701 # include <limits.h>
21702 #else
21703 # include <assert.h>
21704 #endif
21705
21706 #undef hes_getmailhost
21707
21708 /* Override any GCC internal prototype to avoid an error.
21709 Use char because int might match the return type of a GCC
21710 builtin and then its argument prototype would still apply. */
21711 #ifdef __cplusplus
21712 extern "C"
21713 #endif
21714 char hes_getmailhost ();
21715 /* The GNU C library defines this for functions which it implements
21716 to always fail with ENOSYS. Some functions are actually named
21717 something starting with __ and the normal name is an alias. */
21718 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21719 choke me
21720 #endif
21721
21722 int
21723 main ()
21724 {
21725 return hes_getmailhost ();
21726 ;
21727 return 0;
21728 }
21729 _ACEOF
21730 rm -f conftest.$ac_objext conftest$ac_exeext
21731 if { (ac_try="$ac_link"
21732 case "(($ac_try" in
21733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21734 *) ac_try_echo=$ac_try;;
21735 esac
21736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21737 $as_echo "$ac_try_echo") >&5
21738 (eval "$ac_link") 2>conftest.er1
21739 ac_status=$?
21740 grep -v '^ *+' conftest.er1 >conftest.err
21741 rm -f conftest.er1
21742 cat conftest.err >&5
21743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744 (exit $ac_status); } && {
21745 test -z "$ac_c_werror_flag" ||
21746 test ! -s conftest.err
21747 } && test -s conftest$ac_exeext && {
21748 test "$cross_compiling" = yes ||
21749 $as_test_x conftest$ac_exeext
21750 }; then
21751 ac_cv_func_hes_getmailhost=yes
21752 else
21753 $as_echo "$as_me: failed program was:" >&5
21754 sed 's/^/| /' conftest.$ac_ext >&5
21755
21756 ac_cv_func_hes_getmailhost=no
21757 fi
21758
21759 rm -rf conftest.dSYM
21760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21761 conftest$ac_exeext conftest.$ac_ext
21762 fi
21763 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
21764 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21765 if test $ac_cv_func_hes_getmailhost = yes; then
21766 :
21767 else
21768 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
21769 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21770 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21771 $as_echo_n "(cached) " >&6
21772 else
21773 ac_check_lib_save_LIBS=$LIBS
21774 LIBS="-lhesiod $RESOLVLIB $LIBS"
21775 cat >conftest.$ac_ext <<_ACEOF
21776 /* confdefs.h. */
21777 _ACEOF
21778 cat confdefs.h >>conftest.$ac_ext
21779 cat >>conftest.$ac_ext <<_ACEOF
21780 /* end confdefs.h. */
21781
21782 /* Override any GCC internal prototype to avoid an error.
21783 Use char because int might match the return type of a GCC
21784 builtin and then its argument prototype would still apply. */
21785 #ifdef __cplusplus
21786 extern "C"
21787 #endif
21788 char hes_getmailhost ();
21789 int
21790 main ()
21791 {
21792 return hes_getmailhost ();
21793 ;
21794 return 0;
21795 }
21796 _ACEOF
21797 rm -f conftest.$ac_objext conftest$ac_exeext
21798 if { (ac_try="$ac_link"
21799 case "(($ac_try" in
21800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21801 *) ac_try_echo=$ac_try;;
21802 esac
21803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21804 $as_echo "$ac_try_echo") >&5
21805 (eval "$ac_link") 2>conftest.er1
21806 ac_status=$?
21807 grep -v '^ *+' conftest.er1 >conftest.err
21808 rm -f conftest.er1
21809 cat conftest.err >&5
21810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811 (exit $ac_status); } && {
21812 test -z "$ac_c_werror_flag" ||
21813 test ! -s conftest.err
21814 } && test -s conftest$ac_exeext && {
21815 test "$cross_compiling" = yes ||
21816 $as_test_x conftest$ac_exeext
21817 }; then
21818 ac_cv_lib_hesiod_hes_getmailhost=yes
21819 else
21820 $as_echo "$as_me: failed program was:" >&5
21821 sed 's/^/| /' conftest.$ac_ext >&5
21822
21823 ac_cv_lib_hesiod_hes_getmailhost=no
21824 fi
21825
21826 rm -rf conftest.dSYM
21827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21828 conftest$ac_exeext conftest.$ac_ext
21829 LIBS=$ac_check_lib_save_LIBS
21830 fi
21831 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21832 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21833 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
21834 hesiod=yes
21835 else
21836 :
21837 fi
21838
21839 fi
21840
21841
21842 if test x"$hesiod" = xyes; then
21843
21844 cat >>confdefs.h <<\_ACEOF
21845 #define HAVE_LIBHESIOD 1
21846 _ACEOF
21847
21848 LIBHESIOD=-lhesiod
21849 fi
21850 fi
21851
21852
21853 # Do we need libresolv (due to res_init or Hesiod)?
21854 if test "$resolv" = yes ; then
21855
21856 cat >>confdefs.h <<\_ACEOF
21857 #define HAVE_LIBRESOLV 1
21858 _ACEOF
21859
21860 LIBRESOLV=-lresolv
21861 else
21862 LIBRESOLV=
21863 fi
21864
21865
21866 # These tell us which Kerberos-related libraries to use.
21867 COM_ERRLIB=
21868 CRYPTOLIB=
21869 KRB5LIB=
21870 DESLIB=
21871 KRB4LIB=
21872
21873 if test "${with_kerberos}" != no; then
21874 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
21875 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
21876 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
21877 $as_echo_n "(cached) " >&6
21878 else
21879 ac_check_lib_save_LIBS=$LIBS
21880 LIBS="-lcom_err $LIBS"
21881 cat >conftest.$ac_ext <<_ACEOF
21882 /* confdefs.h. */
21883 _ACEOF
21884 cat confdefs.h >>conftest.$ac_ext
21885 cat >>conftest.$ac_ext <<_ACEOF
21886 /* end confdefs.h. */
21887
21888 /* Override any GCC internal prototype to avoid an error.
21889 Use char because int might match the return type of a GCC
21890 builtin and then its argument prototype would still apply. */
21891 #ifdef __cplusplus
21892 extern "C"
21893 #endif
21894 char com_err ();
21895 int
21896 main ()
21897 {
21898 return com_err ();
21899 ;
21900 return 0;
21901 }
21902 _ACEOF
21903 rm -f conftest.$ac_objext conftest$ac_exeext
21904 if { (ac_try="$ac_link"
21905 case "(($ac_try" in
21906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21907 *) ac_try_echo=$ac_try;;
21908 esac
21909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21910 $as_echo "$ac_try_echo") >&5
21911 (eval "$ac_link") 2>conftest.er1
21912 ac_status=$?
21913 grep -v '^ *+' conftest.er1 >conftest.err
21914 rm -f conftest.er1
21915 cat conftest.err >&5
21916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917 (exit $ac_status); } && {
21918 test -z "$ac_c_werror_flag" ||
21919 test ! -s conftest.err
21920 } && test -s conftest$ac_exeext && {
21921 test "$cross_compiling" = yes ||
21922 $as_test_x conftest$ac_exeext
21923 }; then
21924 ac_cv_lib_com_err_com_err=yes
21925 else
21926 $as_echo "$as_me: failed program was:" >&5
21927 sed 's/^/| /' conftest.$ac_ext >&5
21928
21929 ac_cv_lib_com_err_com_err=no
21930 fi
21931
21932 rm -rf conftest.dSYM
21933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21934 conftest$ac_exeext conftest.$ac_ext
21935 LIBS=$ac_check_lib_save_LIBS
21936 fi
21937 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
21938 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21939 if test $ac_cv_lib_com_err_com_err = yes; then
21940 have_com_err=yes
21941 else
21942 have_com_err=no
21943 fi
21944
21945 if test $have_com_err = yes; then
21946 COM_ERRLIB=-lcom_err
21947 LIBS="$COM_ERRLIB $LIBS"
21948
21949 cat >>confdefs.h <<\_ACEOF
21950 #define HAVE_LIBCOM_ERR 1
21951 _ACEOF
21952
21953 fi
21954 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
21955 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
21956 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
21957 $as_echo_n "(cached) " >&6
21958 else
21959 ac_check_lib_save_LIBS=$LIBS
21960 LIBS="-lcrypto $LIBS"
21961 cat >conftest.$ac_ext <<_ACEOF
21962 /* confdefs.h. */
21963 _ACEOF
21964 cat confdefs.h >>conftest.$ac_ext
21965 cat >>conftest.$ac_ext <<_ACEOF
21966 /* end confdefs.h. */
21967
21968 /* Override any GCC internal prototype to avoid an error.
21969 Use char because int might match the return type of a GCC
21970 builtin and then its argument prototype would still apply. */
21971 #ifdef __cplusplus
21972 extern "C"
21973 #endif
21974 char mit_des_cbc_encrypt ();
21975 int
21976 main ()
21977 {
21978 return mit_des_cbc_encrypt ();
21979 ;
21980 return 0;
21981 }
21982 _ACEOF
21983 rm -f conftest.$ac_objext conftest$ac_exeext
21984 if { (ac_try="$ac_link"
21985 case "(($ac_try" in
21986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21987 *) ac_try_echo=$ac_try;;
21988 esac
21989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21990 $as_echo "$ac_try_echo") >&5
21991 (eval "$ac_link") 2>conftest.er1
21992 ac_status=$?
21993 grep -v '^ *+' conftest.er1 >conftest.err
21994 rm -f conftest.er1
21995 cat conftest.err >&5
21996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21997 (exit $ac_status); } && {
21998 test -z "$ac_c_werror_flag" ||
21999 test ! -s conftest.err
22000 } && test -s conftest$ac_exeext && {
22001 test "$cross_compiling" = yes ||
22002 $as_test_x conftest$ac_exeext
22003 }; then
22004 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22005 else
22006 $as_echo "$as_me: failed program was:" >&5
22007 sed 's/^/| /' conftest.$ac_ext >&5
22008
22009 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22010 fi
22011
22012 rm -rf conftest.dSYM
22013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22014 conftest$ac_exeext conftest.$ac_ext
22015 LIBS=$ac_check_lib_save_LIBS
22016 fi
22017 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22018 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22019 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
22020 have_crypto=yes
22021 else
22022 have_crypto=no
22023 fi
22024
22025 if test $have_crypto = yes; then
22026 CRYPTOLIB=-lcrypto
22027 LIBS="$CRYPTOLIB $LIBS"
22028
22029 cat >>confdefs.h <<\_ACEOF
22030 #define HAVE_LIBCRYPTO 1
22031 _ACEOF
22032
22033 fi
22034 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
22035 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
22036 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
22037 $as_echo_n "(cached) " >&6
22038 else
22039 ac_check_lib_save_LIBS=$LIBS
22040 LIBS="-lk5crypto $LIBS"
22041 cat >conftest.$ac_ext <<_ACEOF
22042 /* confdefs.h. */
22043 _ACEOF
22044 cat confdefs.h >>conftest.$ac_ext
22045 cat >>conftest.$ac_ext <<_ACEOF
22046 /* end confdefs.h. */
22047
22048 /* Override any GCC internal prototype to avoid an error.
22049 Use char because int might match the return type of a GCC
22050 builtin and then its argument prototype would still apply. */
22051 #ifdef __cplusplus
22052 extern "C"
22053 #endif
22054 char mit_des_cbc_encrypt ();
22055 int
22056 main ()
22057 {
22058 return mit_des_cbc_encrypt ();
22059 ;
22060 return 0;
22061 }
22062 _ACEOF
22063 rm -f conftest.$ac_objext conftest$ac_exeext
22064 if { (ac_try="$ac_link"
22065 case "(($ac_try" in
22066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22067 *) ac_try_echo=$ac_try;;
22068 esac
22069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22070 $as_echo "$ac_try_echo") >&5
22071 (eval "$ac_link") 2>conftest.er1
22072 ac_status=$?
22073 grep -v '^ *+' conftest.er1 >conftest.err
22074 rm -f conftest.er1
22075 cat conftest.err >&5
22076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077 (exit $ac_status); } && {
22078 test -z "$ac_c_werror_flag" ||
22079 test ! -s conftest.err
22080 } && test -s conftest$ac_exeext && {
22081 test "$cross_compiling" = yes ||
22082 $as_test_x conftest$ac_exeext
22083 }; then
22084 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22085 else
22086 $as_echo "$as_me: failed program was:" >&5
22087 sed 's/^/| /' conftest.$ac_ext >&5
22088
22089 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22090 fi
22091
22092 rm -rf conftest.dSYM
22093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22094 conftest$ac_exeext conftest.$ac_ext
22095 LIBS=$ac_check_lib_save_LIBS
22096 fi
22097 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22098 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22099 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
22100 have_k5crypto=yes
22101 else
22102 have_k5crypto=no
22103 fi
22104
22105 if test $have_k5crypto = yes; then
22106 CRYPTOLIB=-lk5crypto
22107 LIBS="$CRYPTOLIB $LIBS"
22108
22109 cat >>confdefs.h <<\_ACEOF
22110 #define HAVE_LIBK5CRYPTO 1
22111 _ACEOF
22112
22113 fi
22114 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
22115 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
22116 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22117 $as_echo_n "(cached) " >&6
22118 else
22119 ac_check_lib_save_LIBS=$LIBS
22120 LIBS="-lkrb5 $LIBS"
22121 cat >conftest.$ac_ext <<_ACEOF
22122 /* confdefs.h. */
22123 _ACEOF
22124 cat confdefs.h >>conftest.$ac_ext
22125 cat >>conftest.$ac_ext <<_ACEOF
22126 /* end confdefs.h. */
22127
22128 /* Override any GCC internal prototype to avoid an error.
22129 Use char because int might match the return type of a GCC
22130 builtin and then its argument prototype would still apply. */
22131 #ifdef __cplusplus
22132 extern "C"
22133 #endif
22134 char krb5_init_context ();
22135 int
22136 main ()
22137 {
22138 return krb5_init_context ();
22139 ;
22140 return 0;
22141 }
22142 _ACEOF
22143 rm -f conftest.$ac_objext conftest$ac_exeext
22144 if { (ac_try="$ac_link"
22145 case "(($ac_try" in
22146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22147 *) ac_try_echo=$ac_try;;
22148 esac
22149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22150 $as_echo "$ac_try_echo") >&5
22151 (eval "$ac_link") 2>conftest.er1
22152 ac_status=$?
22153 grep -v '^ *+' conftest.er1 >conftest.err
22154 rm -f conftest.er1
22155 cat conftest.err >&5
22156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157 (exit $ac_status); } && {
22158 test -z "$ac_c_werror_flag" ||
22159 test ! -s conftest.err
22160 } && test -s conftest$ac_exeext && {
22161 test "$cross_compiling" = yes ||
22162 $as_test_x conftest$ac_exeext
22163 }; then
22164 ac_cv_lib_krb5_krb5_init_context=yes
22165 else
22166 $as_echo "$as_me: failed program was:" >&5
22167 sed 's/^/| /' conftest.$ac_ext >&5
22168
22169 ac_cv_lib_krb5_krb5_init_context=no
22170 fi
22171
22172 rm -rf conftest.dSYM
22173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22174 conftest$ac_exeext conftest.$ac_ext
22175 LIBS=$ac_check_lib_save_LIBS
22176 fi
22177 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
22178 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22179 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
22180 have_krb5=yes
22181 else
22182 have_krb5=no
22183 fi
22184
22185 if test $have_krb5=yes; then
22186 KRB5LIB=-lkrb5
22187 LIBS="$KRB5LIB $LIBS"
22188
22189 cat >>confdefs.h <<\_ACEOF
22190 #define HAVE_LIBKRB5 1
22191 _ACEOF
22192
22193 fi
22194 if test "${with_kerberos5}" = no; then
22195 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
22196 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
22197 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22198 $as_echo_n "(cached) " >&6
22199 else
22200 ac_check_lib_save_LIBS=$LIBS
22201 LIBS="-ldes425 $LIBS"
22202 cat >conftest.$ac_ext <<_ACEOF
22203 /* confdefs.h. */
22204 _ACEOF
22205 cat confdefs.h >>conftest.$ac_ext
22206 cat >>conftest.$ac_ext <<_ACEOF
22207 /* end confdefs.h. */
22208
22209 /* Override any GCC internal prototype to avoid an error.
22210 Use char because int might match the return type of a GCC
22211 builtin and then its argument prototype would still apply. */
22212 #ifdef __cplusplus
22213 extern "C"
22214 #endif
22215 char des_cbc_encrypt ();
22216 int
22217 main ()
22218 {
22219 return des_cbc_encrypt ();
22220 ;
22221 return 0;
22222 }
22223 _ACEOF
22224 rm -f conftest.$ac_objext conftest$ac_exeext
22225 if { (ac_try="$ac_link"
22226 case "(($ac_try" in
22227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22228 *) ac_try_echo=$ac_try;;
22229 esac
22230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22231 $as_echo "$ac_try_echo") >&5
22232 (eval "$ac_link") 2>conftest.er1
22233 ac_status=$?
22234 grep -v '^ *+' conftest.er1 >conftest.err
22235 rm -f conftest.er1
22236 cat conftest.err >&5
22237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22238 (exit $ac_status); } && {
22239 test -z "$ac_c_werror_flag" ||
22240 test ! -s conftest.err
22241 } && test -s conftest$ac_exeext && {
22242 test "$cross_compiling" = yes ||
22243 $as_test_x conftest$ac_exeext
22244 }; then
22245 ac_cv_lib_des425_des_cbc_encrypt=yes
22246 else
22247 $as_echo "$as_me: failed program was:" >&5
22248 sed 's/^/| /' conftest.$ac_ext >&5
22249
22250 ac_cv_lib_des425_des_cbc_encrypt=no
22251 fi
22252
22253 rm -rf conftest.dSYM
22254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22255 conftest$ac_exeext conftest.$ac_ext
22256 LIBS=$ac_check_lib_save_LIBS
22257 fi
22258 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22259 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22260 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
22261 have_des425=yes
22262 else
22263 have_des425=no
22264 fi
22265
22266 if test $have_des425 = yes; then
22267 DESLIB=-ldes425
22268 LIBS="$DESLIB $LIBS"
22269
22270 cat >>confdefs.h <<\_ACEOF
22271 #define HAVE_LIBDES425 1
22272 _ACEOF
22273
22274 else
22275 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
22276 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
22277 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22278 $as_echo_n "(cached) " >&6
22279 else
22280 ac_check_lib_save_LIBS=$LIBS
22281 LIBS="-ldes $LIBS"
22282 cat >conftest.$ac_ext <<_ACEOF
22283 /* confdefs.h. */
22284 _ACEOF
22285 cat confdefs.h >>conftest.$ac_ext
22286 cat >>conftest.$ac_ext <<_ACEOF
22287 /* end confdefs.h. */
22288
22289 /* Override any GCC internal prototype to avoid an error.
22290 Use char because int might match the return type of a GCC
22291 builtin and then its argument prototype would still apply. */
22292 #ifdef __cplusplus
22293 extern "C"
22294 #endif
22295 char des_cbc_encrypt ();
22296 int
22297 main ()
22298 {
22299 return des_cbc_encrypt ();
22300 ;
22301 return 0;
22302 }
22303 _ACEOF
22304 rm -f conftest.$ac_objext conftest$ac_exeext
22305 if { (ac_try="$ac_link"
22306 case "(($ac_try" in
22307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22308 *) ac_try_echo=$ac_try;;
22309 esac
22310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22311 $as_echo "$ac_try_echo") >&5
22312 (eval "$ac_link") 2>conftest.er1
22313 ac_status=$?
22314 grep -v '^ *+' conftest.er1 >conftest.err
22315 rm -f conftest.er1
22316 cat conftest.err >&5
22317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22318 (exit $ac_status); } && {
22319 test -z "$ac_c_werror_flag" ||
22320 test ! -s conftest.err
22321 } && test -s conftest$ac_exeext && {
22322 test "$cross_compiling" = yes ||
22323 $as_test_x conftest$ac_exeext
22324 }; then
22325 ac_cv_lib_des_des_cbc_encrypt=yes
22326 else
22327 $as_echo "$as_me: failed program was:" >&5
22328 sed 's/^/| /' conftest.$ac_ext >&5
22329
22330 ac_cv_lib_des_des_cbc_encrypt=no
22331 fi
22332
22333 rm -rf conftest.dSYM
22334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22335 conftest$ac_exeext conftest.$ac_ext
22336 LIBS=$ac_check_lib_save_LIBS
22337 fi
22338 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
22339 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22340 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
22341 have_des=yes
22342 else
22343 have_des=no
22344 fi
22345
22346 if test $have_des = yes; then
22347 DESLIB=-ldes
22348 LIBS="$DESLIB $LIBS"
22349
22350 cat >>confdefs.h <<\_ACEOF
22351 #define HAVE_LIBDES 1
22352 _ACEOF
22353
22354 fi
22355 fi
22356 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
22357 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
22358 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22359 $as_echo_n "(cached) " >&6
22360 else
22361 ac_check_lib_save_LIBS=$LIBS
22362 LIBS="-lkrb4 $LIBS"
22363 cat >conftest.$ac_ext <<_ACEOF
22364 /* confdefs.h. */
22365 _ACEOF
22366 cat confdefs.h >>conftest.$ac_ext
22367 cat >>conftest.$ac_ext <<_ACEOF
22368 /* end confdefs.h. */
22369
22370 /* Override any GCC internal prototype to avoid an error.
22371 Use char because int might match the return type of a GCC
22372 builtin and then its argument prototype would still apply. */
22373 #ifdef __cplusplus
22374 extern "C"
22375 #endif
22376 char krb_get_cred ();
22377 int
22378 main ()
22379 {
22380 return krb_get_cred ();
22381 ;
22382 return 0;
22383 }
22384 _ACEOF
22385 rm -f conftest.$ac_objext conftest$ac_exeext
22386 if { (ac_try="$ac_link"
22387 case "(($ac_try" in
22388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22389 *) ac_try_echo=$ac_try;;
22390 esac
22391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22392 $as_echo "$ac_try_echo") >&5
22393 (eval "$ac_link") 2>conftest.er1
22394 ac_status=$?
22395 grep -v '^ *+' conftest.er1 >conftest.err
22396 rm -f conftest.er1
22397 cat conftest.err >&5
22398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22399 (exit $ac_status); } && {
22400 test -z "$ac_c_werror_flag" ||
22401 test ! -s conftest.err
22402 } && test -s conftest$ac_exeext && {
22403 test "$cross_compiling" = yes ||
22404 $as_test_x conftest$ac_exeext
22405 }; then
22406 ac_cv_lib_krb4_krb_get_cred=yes
22407 else
22408 $as_echo "$as_me: failed program was:" >&5
22409 sed 's/^/| /' conftest.$ac_ext >&5
22410
22411 ac_cv_lib_krb4_krb_get_cred=no
22412 fi
22413
22414 rm -rf conftest.dSYM
22415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22416 conftest$ac_exeext conftest.$ac_ext
22417 LIBS=$ac_check_lib_save_LIBS
22418 fi
22419 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
22420 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22421 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22422 have_krb4=yes
22423 else
22424 have_krb4=no
22425 fi
22426
22427 if test $have_krb4 = yes; then
22428 KRB4LIB=-lkrb4
22429 LIBS="$KRB4LIB $LIBS"
22430
22431 cat >>confdefs.h <<\_ACEOF
22432 #define HAVE_LIBKRB4 1
22433 _ACEOF
22434
22435 else
22436 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
22437 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
22438 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22439 $as_echo_n "(cached) " >&6
22440 else
22441 ac_check_lib_save_LIBS=$LIBS
22442 LIBS="-lkrb $LIBS"
22443 cat >conftest.$ac_ext <<_ACEOF
22444 /* confdefs.h. */
22445 _ACEOF
22446 cat confdefs.h >>conftest.$ac_ext
22447 cat >>conftest.$ac_ext <<_ACEOF
22448 /* end confdefs.h. */
22449
22450 /* Override any GCC internal prototype to avoid an error.
22451 Use char because int might match the return type of a GCC
22452 builtin and then its argument prototype would still apply. */
22453 #ifdef __cplusplus
22454 extern "C"
22455 #endif
22456 char krb_get_cred ();
22457 int
22458 main ()
22459 {
22460 return krb_get_cred ();
22461 ;
22462 return 0;
22463 }
22464 _ACEOF
22465 rm -f conftest.$ac_objext conftest$ac_exeext
22466 if { (ac_try="$ac_link"
22467 case "(($ac_try" in
22468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22469 *) ac_try_echo=$ac_try;;
22470 esac
22471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22472 $as_echo "$ac_try_echo") >&5
22473 (eval "$ac_link") 2>conftest.er1
22474 ac_status=$?
22475 grep -v '^ *+' conftest.er1 >conftest.err
22476 rm -f conftest.er1
22477 cat conftest.err >&5
22478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22479 (exit $ac_status); } && {
22480 test -z "$ac_c_werror_flag" ||
22481 test ! -s conftest.err
22482 } && test -s conftest$ac_exeext && {
22483 test "$cross_compiling" = yes ||
22484 $as_test_x conftest$ac_exeext
22485 }; then
22486 ac_cv_lib_krb_krb_get_cred=yes
22487 else
22488 $as_echo "$as_me: failed program was:" >&5
22489 sed 's/^/| /' conftest.$ac_ext >&5
22490
22491 ac_cv_lib_krb_krb_get_cred=no
22492 fi
22493
22494 rm -rf conftest.dSYM
22495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22496 conftest$ac_exeext conftest.$ac_ext
22497 LIBS=$ac_check_lib_save_LIBS
22498 fi
22499 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
22500 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22501 if test $ac_cv_lib_krb_krb_get_cred = yes; then
22502 have_krb=yes
22503 else
22504 have_krb=no
22505 fi
22506
22507 if test $have_krb = yes; then
22508 KRB4LIB=-lkrb
22509 LIBS="$KRB4LIB $LIBS"
22510
22511 cat >>confdefs.h <<\_ACEOF
22512 #define HAVE_LIBKRB 1
22513 _ACEOF
22514
22515 fi
22516 fi
22517 fi
22518
22519 if test "${with_kerberos5}" != no; then
22520
22521 for ac_header in krb5.h
22522 do
22523 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22525 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22526 $as_echo_n "checking for $ac_header... " >&6; }
22527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22528 $as_echo_n "(cached) " >&6
22529 fi
22530 ac_res=`eval 'as_val=${'$as_ac_Header'}
22531 $as_echo "$as_val"'`
22532 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22533 $as_echo "$ac_res" >&6; }
22534 else
22535 # Is the header compilable?
22536 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22537 $as_echo_n "checking $ac_header usability... " >&6; }
22538 cat >conftest.$ac_ext <<_ACEOF
22539 /* confdefs.h. */
22540 _ACEOF
22541 cat confdefs.h >>conftest.$ac_ext
22542 cat >>conftest.$ac_ext <<_ACEOF
22543 /* end confdefs.h. */
22544 $ac_includes_default
22545 #include <$ac_header>
22546 _ACEOF
22547 rm -f conftest.$ac_objext
22548 if { (ac_try="$ac_compile"
22549 case "(($ac_try" in
22550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22551 *) ac_try_echo=$ac_try;;
22552 esac
22553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22554 $as_echo "$ac_try_echo") >&5
22555 (eval "$ac_compile") 2>conftest.er1
22556 ac_status=$?
22557 grep -v '^ *+' conftest.er1 >conftest.err
22558 rm -f conftest.er1
22559 cat conftest.err >&5
22560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22561 (exit $ac_status); } && {
22562 test -z "$ac_c_werror_flag" ||
22563 test ! -s conftest.err
22564 } && test -s conftest.$ac_objext; then
22565 ac_header_compiler=yes
22566 else
22567 $as_echo "$as_me: failed program was:" >&5
22568 sed 's/^/| /' conftest.$ac_ext >&5
22569
22570 ac_header_compiler=no
22571 fi
22572
22573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22574 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22575 $as_echo "$ac_header_compiler" >&6; }
22576
22577 # Is the header present?
22578 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22579 $as_echo_n "checking $ac_header presence... " >&6; }
22580 cat >conftest.$ac_ext <<_ACEOF
22581 /* confdefs.h. */
22582 _ACEOF
22583 cat confdefs.h >>conftest.$ac_ext
22584 cat >>conftest.$ac_ext <<_ACEOF
22585 /* end confdefs.h. */
22586 #include <$ac_header>
22587 _ACEOF
22588 if { (ac_try="$ac_cpp conftest.$ac_ext"
22589 case "(($ac_try" in
22590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22591 *) ac_try_echo=$ac_try;;
22592 esac
22593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22594 $as_echo "$ac_try_echo") >&5
22595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22596 ac_status=$?
22597 grep -v '^ *+' conftest.er1 >conftest.err
22598 rm -f conftest.er1
22599 cat conftest.err >&5
22600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22601 (exit $ac_status); } >/dev/null && {
22602 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22603 test ! -s conftest.err
22604 }; then
22605 ac_header_preproc=yes
22606 else
22607 $as_echo "$as_me: failed program was:" >&5
22608 sed 's/^/| /' conftest.$ac_ext >&5
22609
22610 ac_header_preproc=no
22611 fi
22612
22613 rm -f conftest.err conftest.$ac_ext
22614 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22615 $as_echo "$ac_header_preproc" >&6; }
22616
22617 # So? What about this header?
22618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22619 yes:no: )
22620 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22621 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22622 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22623 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22624 ac_header_preproc=yes
22625 ;;
22626 no:yes:* )
22627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22628 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22629 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22630 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22631 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22632 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22633 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22634 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22635 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22636 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22637 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22638 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22639
22640 ;;
22641 esac
22642 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22643 $as_echo_n "checking for $ac_header... " >&6; }
22644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22645 $as_echo_n "(cached) " >&6
22646 else
22647 eval "$as_ac_Header=\$ac_header_preproc"
22648 fi
22649 ac_res=`eval 'as_val=${'$as_ac_Header'}
22650 $as_echo "$as_val"'`
22651 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22652 $as_echo "$ac_res" >&6; }
22653
22654 fi
22655 if test `eval 'as_val=${'$as_ac_Header'}
22656 $as_echo "$as_val"'` = yes; then
22657 cat >>confdefs.h <<_ACEOF
22658 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22659 _ACEOF
22660 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
22661 $as_echo_n "checking for krb5_error.text... " >&6; }
22662 if test "${ac_cv_member_krb5_error_text+set}" = set; then
22663 $as_echo_n "(cached) " >&6
22664 else
22665 cat >conftest.$ac_ext <<_ACEOF
22666 /* confdefs.h. */
22667 _ACEOF
22668 cat confdefs.h >>conftest.$ac_ext
22669 cat >>conftest.$ac_ext <<_ACEOF
22670 /* end confdefs.h. */
22671 #include <krb5.h>
22672
22673 int
22674 main ()
22675 {
22676 static krb5_error ac_aggr;
22677 if (ac_aggr.text)
22678 return 0;
22679 ;
22680 return 0;
22681 }
22682 _ACEOF
22683 rm -f conftest.$ac_objext
22684 if { (ac_try="$ac_compile"
22685 case "(($ac_try" in
22686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22687 *) ac_try_echo=$ac_try;;
22688 esac
22689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22690 $as_echo "$ac_try_echo") >&5
22691 (eval "$ac_compile") 2>conftest.er1
22692 ac_status=$?
22693 grep -v '^ *+' conftest.er1 >conftest.err
22694 rm -f conftest.er1
22695 cat conftest.err >&5
22696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697 (exit $ac_status); } && {
22698 test -z "$ac_c_werror_flag" ||
22699 test ! -s conftest.err
22700 } && test -s conftest.$ac_objext; then
22701 ac_cv_member_krb5_error_text=yes
22702 else
22703 $as_echo "$as_me: failed program was:" >&5
22704 sed 's/^/| /' conftest.$ac_ext >&5
22705
22706 cat >conftest.$ac_ext <<_ACEOF
22707 /* confdefs.h. */
22708 _ACEOF
22709 cat confdefs.h >>conftest.$ac_ext
22710 cat >>conftest.$ac_ext <<_ACEOF
22711 /* end confdefs.h. */
22712 #include <krb5.h>
22713
22714 int
22715 main ()
22716 {
22717 static krb5_error ac_aggr;
22718 if (sizeof ac_aggr.text)
22719 return 0;
22720 ;
22721 return 0;
22722 }
22723 _ACEOF
22724 rm -f conftest.$ac_objext
22725 if { (ac_try="$ac_compile"
22726 case "(($ac_try" in
22727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22728 *) ac_try_echo=$ac_try;;
22729 esac
22730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22731 $as_echo "$ac_try_echo") >&5
22732 (eval "$ac_compile") 2>conftest.er1
22733 ac_status=$?
22734 grep -v '^ *+' conftest.er1 >conftest.err
22735 rm -f conftest.er1
22736 cat conftest.err >&5
22737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22738 (exit $ac_status); } && {
22739 test -z "$ac_c_werror_flag" ||
22740 test ! -s conftest.err
22741 } && test -s conftest.$ac_objext; then
22742 ac_cv_member_krb5_error_text=yes
22743 else
22744 $as_echo "$as_me: failed program was:" >&5
22745 sed 's/^/| /' conftest.$ac_ext >&5
22746
22747 ac_cv_member_krb5_error_text=no
22748 fi
22749
22750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22751 fi
22752
22753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22754 fi
22755 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
22756 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22757 if test $ac_cv_member_krb5_error_text = yes; then
22758
22759 cat >>confdefs.h <<_ACEOF
22760 #define HAVE_KRB5_ERROR_TEXT 1
22761 _ACEOF
22762
22763
22764 fi
22765 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
22766 $as_echo_n "checking for krb5_error.e_text... " >&6; }
22767 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22768 $as_echo_n "(cached) " >&6
22769 else
22770 cat >conftest.$ac_ext <<_ACEOF
22771 /* confdefs.h. */
22772 _ACEOF
22773 cat confdefs.h >>conftest.$ac_ext
22774 cat >>conftest.$ac_ext <<_ACEOF
22775 /* end confdefs.h. */
22776 #include <krb5.h>
22777
22778 int
22779 main ()
22780 {
22781 static krb5_error ac_aggr;
22782 if (ac_aggr.e_text)
22783 return 0;
22784 ;
22785 return 0;
22786 }
22787 _ACEOF
22788 rm -f conftest.$ac_objext
22789 if { (ac_try="$ac_compile"
22790 case "(($ac_try" in
22791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22792 *) ac_try_echo=$ac_try;;
22793 esac
22794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22795 $as_echo "$ac_try_echo") >&5
22796 (eval "$ac_compile") 2>conftest.er1
22797 ac_status=$?
22798 grep -v '^ *+' conftest.er1 >conftest.err
22799 rm -f conftest.er1
22800 cat conftest.err >&5
22801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802 (exit $ac_status); } && {
22803 test -z "$ac_c_werror_flag" ||
22804 test ! -s conftest.err
22805 } && test -s conftest.$ac_objext; then
22806 ac_cv_member_krb5_error_e_text=yes
22807 else
22808 $as_echo "$as_me: failed program was:" >&5
22809 sed 's/^/| /' conftest.$ac_ext >&5
22810
22811 cat >conftest.$ac_ext <<_ACEOF
22812 /* confdefs.h. */
22813 _ACEOF
22814 cat confdefs.h >>conftest.$ac_ext
22815 cat >>conftest.$ac_ext <<_ACEOF
22816 /* end confdefs.h. */
22817 #include <krb5.h>
22818
22819 int
22820 main ()
22821 {
22822 static krb5_error ac_aggr;
22823 if (sizeof ac_aggr.e_text)
22824 return 0;
22825 ;
22826 return 0;
22827 }
22828 _ACEOF
22829 rm -f conftest.$ac_objext
22830 if { (ac_try="$ac_compile"
22831 case "(($ac_try" in
22832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22833 *) ac_try_echo=$ac_try;;
22834 esac
22835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22836 $as_echo "$ac_try_echo") >&5
22837 (eval "$ac_compile") 2>conftest.er1
22838 ac_status=$?
22839 grep -v '^ *+' conftest.er1 >conftest.err
22840 rm -f conftest.er1
22841 cat conftest.err >&5
22842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22843 (exit $ac_status); } && {
22844 test -z "$ac_c_werror_flag" ||
22845 test ! -s conftest.err
22846 } && test -s conftest.$ac_objext; then
22847 ac_cv_member_krb5_error_e_text=yes
22848 else
22849 $as_echo "$as_me: failed program was:" >&5
22850 sed 's/^/| /' conftest.$ac_ext >&5
22851
22852 ac_cv_member_krb5_error_e_text=no
22853 fi
22854
22855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22856 fi
22857
22858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22859 fi
22860 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
22861 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
22862 if test $ac_cv_member_krb5_error_e_text = yes; then
22863
22864 cat >>confdefs.h <<_ACEOF
22865 #define HAVE_KRB5_ERROR_E_TEXT 1
22866 _ACEOF
22867
22868
22869 fi
22870
22871 fi
22872
22873 done
22874
22875 else
22876
22877 for ac_header in des.h
22878 do
22879 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22881 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22882 $as_echo_n "checking for $ac_header... " >&6; }
22883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22884 $as_echo_n "(cached) " >&6
22885 fi
22886 ac_res=`eval 'as_val=${'$as_ac_Header'}
22887 $as_echo "$as_val"'`
22888 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22889 $as_echo "$ac_res" >&6; }
22890 else
22891 # Is the header compilable?
22892 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22893 $as_echo_n "checking $ac_header usability... " >&6; }
22894 cat >conftest.$ac_ext <<_ACEOF
22895 /* confdefs.h. */
22896 _ACEOF
22897 cat confdefs.h >>conftest.$ac_ext
22898 cat >>conftest.$ac_ext <<_ACEOF
22899 /* end confdefs.h. */
22900 $ac_includes_default
22901 #include <$ac_header>
22902 _ACEOF
22903 rm -f conftest.$ac_objext
22904 if { (ac_try="$ac_compile"
22905 case "(($ac_try" in
22906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22907 *) ac_try_echo=$ac_try;;
22908 esac
22909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22910 $as_echo "$ac_try_echo") >&5
22911 (eval "$ac_compile") 2>conftest.er1
22912 ac_status=$?
22913 grep -v '^ *+' conftest.er1 >conftest.err
22914 rm -f conftest.er1
22915 cat conftest.err >&5
22916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917 (exit $ac_status); } && {
22918 test -z "$ac_c_werror_flag" ||
22919 test ! -s conftest.err
22920 } && test -s conftest.$ac_objext; then
22921 ac_header_compiler=yes
22922 else
22923 $as_echo "$as_me: failed program was:" >&5
22924 sed 's/^/| /' conftest.$ac_ext >&5
22925
22926 ac_header_compiler=no
22927 fi
22928
22929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22930 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22931 $as_echo "$ac_header_compiler" >&6; }
22932
22933 # Is the header present?
22934 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22935 $as_echo_n "checking $ac_header presence... " >&6; }
22936 cat >conftest.$ac_ext <<_ACEOF
22937 /* confdefs.h. */
22938 _ACEOF
22939 cat confdefs.h >>conftest.$ac_ext
22940 cat >>conftest.$ac_ext <<_ACEOF
22941 /* end confdefs.h. */
22942 #include <$ac_header>
22943 _ACEOF
22944 if { (ac_try="$ac_cpp conftest.$ac_ext"
22945 case "(($ac_try" in
22946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22947 *) ac_try_echo=$ac_try;;
22948 esac
22949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22950 $as_echo "$ac_try_echo") >&5
22951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22952 ac_status=$?
22953 grep -v '^ *+' conftest.er1 >conftest.err
22954 rm -f conftest.er1
22955 cat conftest.err >&5
22956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22957 (exit $ac_status); } >/dev/null && {
22958 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22959 test ! -s conftest.err
22960 }; then
22961 ac_header_preproc=yes
22962 else
22963 $as_echo "$as_me: failed program was:" >&5
22964 sed 's/^/| /' conftest.$ac_ext >&5
22965
22966 ac_header_preproc=no
22967 fi
22968
22969 rm -f conftest.err conftest.$ac_ext
22970 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22971 $as_echo "$ac_header_preproc" >&6; }
22972
22973 # So? What about this header?
22974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22975 yes:no: )
22976 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22977 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22978 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22979 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22980 ac_header_preproc=yes
22981 ;;
22982 no:yes:* )
22983 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22984 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22985 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22986 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22987 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22988 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22989 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22990 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22991 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22992 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22993 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22994 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22995
22996 ;;
22997 esac
22998 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22999 $as_echo_n "checking for $ac_header... " >&6; }
23000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23001 $as_echo_n "(cached) " >&6
23002 else
23003 eval "$as_ac_Header=\$ac_header_preproc"
23004 fi
23005 ac_res=`eval 'as_val=${'$as_ac_Header'}
23006 $as_echo "$as_val"'`
23007 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23008 $as_echo "$ac_res" >&6; }
23009
23010 fi
23011 if test `eval 'as_val=${'$as_ac_Header'}
23012 $as_echo "$as_val"'` = yes; then
23013 cat >>confdefs.h <<_ACEOF
23014 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23015 _ACEOF
23016
23017 else
23018
23019 for ac_header in kerberosIV/des.h
23020 do
23021 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23023 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23024 $as_echo_n "checking for $ac_header... " >&6; }
23025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23026 $as_echo_n "(cached) " >&6
23027 fi
23028 ac_res=`eval 'as_val=${'$as_ac_Header'}
23029 $as_echo "$as_val"'`
23030 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23031 $as_echo "$ac_res" >&6; }
23032 else
23033 # Is the header compilable?
23034 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23035 $as_echo_n "checking $ac_header usability... " >&6; }
23036 cat >conftest.$ac_ext <<_ACEOF
23037 /* confdefs.h. */
23038 _ACEOF
23039 cat confdefs.h >>conftest.$ac_ext
23040 cat >>conftest.$ac_ext <<_ACEOF
23041 /* end confdefs.h. */
23042 $ac_includes_default
23043 #include <$ac_header>
23044 _ACEOF
23045 rm -f conftest.$ac_objext
23046 if { (ac_try="$ac_compile"
23047 case "(($ac_try" in
23048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23049 *) ac_try_echo=$ac_try;;
23050 esac
23051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23052 $as_echo "$ac_try_echo") >&5
23053 (eval "$ac_compile") 2>conftest.er1
23054 ac_status=$?
23055 grep -v '^ *+' conftest.er1 >conftest.err
23056 rm -f conftest.er1
23057 cat conftest.err >&5
23058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23059 (exit $ac_status); } && {
23060 test -z "$ac_c_werror_flag" ||
23061 test ! -s conftest.err
23062 } && test -s conftest.$ac_objext; then
23063 ac_header_compiler=yes
23064 else
23065 $as_echo "$as_me: failed program was:" >&5
23066 sed 's/^/| /' conftest.$ac_ext >&5
23067
23068 ac_header_compiler=no
23069 fi
23070
23071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23072 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23073 $as_echo "$ac_header_compiler" >&6; }
23074
23075 # Is the header present?
23076 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23077 $as_echo_n "checking $ac_header presence... " >&6; }
23078 cat >conftest.$ac_ext <<_ACEOF
23079 /* confdefs.h. */
23080 _ACEOF
23081 cat confdefs.h >>conftest.$ac_ext
23082 cat >>conftest.$ac_ext <<_ACEOF
23083 /* end confdefs.h. */
23084 #include <$ac_header>
23085 _ACEOF
23086 if { (ac_try="$ac_cpp conftest.$ac_ext"
23087 case "(($ac_try" in
23088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23089 *) ac_try_echo=$ac_try;;
23090 esac
23091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23092 $as_echo "$ac_try_echo") >&5
23093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23094 ac_status=$?
23095 grep -v '^ *+' conftest.er1 >conftest.err
23096 rm -f conftest.er1
23097 cat conftest.err >&5
23098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23099 (exit $ac_status); } >/dev/null && {
23100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23101 test ! -s conftest.err
23102 }; then
23103 ac_header_preproc=yes
23104 else
23105 $as_echo "$as_me: failed program was:" >&5
23106 sed 's/^/| /' conftest.$ac_ext >&5
23107
23108 ac_header_preproc=no
23109 fi
23110
23111 rm -f conftest.err conftest.$ac_ext
23112 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23113 $as_echo "$ac_header_preproc" >&6; }
23114
23115 # So? What about this header?
23116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23117 yes:no: )
23118 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23119 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23120 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23121 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23122 ac_header_preproc=yes
23123 ;;
23124 no:yes:* )
23125 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23126 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23127 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23128 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23129 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23130 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23131 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23132 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23133 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23134 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23136 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23137
23138 ;;
23139 esac
23140 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23141 $as_echo_n "checking for $ac_header... " >&6; }
23142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23143 $as_echo_n "(cached) " >&6
23144 else
23145 eval "$as_ac_Header=\$ac_header_preproc"
23146 fi
23147 ac_res=`eval 'as_val=${'$as_ac_Header'}
23148 $as_echo "$as_val"'`
23149 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23150 $as_echo "$ac_res" >&6; }
23151
23152 fi
23153 if test `eval 'as_val=${'$as_ac_Header'}
23154 $as_echo "$as_val"'` = yes; then
23155 cat >>confdefs.h <<_ACEOF
23156 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23157 _ACEOF
23158
23159 else
23160
23161 for ac_header in kerberos/des.h
23162 do
23163 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23165 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23166 $as_echo_n "checking for $ac_header... " >&6; }
23167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23168 $as_echo_n "(cached) " >&6
23169 fi
23170 ac_res=`eval 'as_val=${'$as_ac_Header'}
23171 $as_echo "$as_val"'`
23172 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23173 $as_echo "$ac_res" >&6; }
23174 else
23175 # Is the header compilable?
23176 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23177 $as_echo_n "checking $ac_header usability... " >&6; }
23178 cat >conftest.$ac_ext <<_ACEOF
23179 /* confdefs.h. */
23180 _ACEOF
23181 cat confdefs.h >>conftest.$ac_ext
23182 cat >>conftest.$ac_ext <<_ACEOF
23183 /* end confdefs.h. */
23184 $ac_includes_default
23185 #include <$ac_header>
23186 _ACEOF
23187 rm -f conftest.$ac_objext
23188 if { (ac_try="$ac_compile"
23189 case "(($ac_try" in
23190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23191 *) ac_try_echo=$ac_try;;
23192 esac
23193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23194 $as_echo "$ac_try_echo") >&5
23195 (eval "$ac_compile") 2>conftest.er1
23196 ac_status=$?
23197 grep -v '^ *+' conftest.er1 >conftest.err
23198 rm -f conftest.er1
23199 cat conftest.err >&5
23200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23201 (exit $ac_status); } && {
23202 test -z "$ac_c_werror_flag" ||
23203 test ! -s conftest.err
23204 } && test -s conftest.$ac_objext; then
23205 ac_header_compiler=yes
23206 else
23207 $as_echo "$as_me: failed program was:" >&5
23208 sed 's/^/| /' conftest.$ac_ext >&5
23209
23210 ac_header_compiler=no
23211 fi
23212
23213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23214 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23215 $as_echo "$ac_header_compiler" >&6; }
23216
23217 # Is the header present?
23218 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23219 $as_echo_n "checking $ac_header presence... " >&6; }
23220 cat >conftest.$ac_ext <<_ACEOF
23221 /* confdefs.h. */
23222 _ACEOF
23223 cat confdefs.h >>conftest.$ac_ext
23224 cat >>conftest.$ac_ext <<_ACEOF
23225 /* end confdefs.h. */
23226 #include <$ac_header>
23227 _ACEOF
23228 if { (ac_try="$ac_cpp conftest.$ac_ext"
23229 case "(($ac_try" in
23230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23231 *) ac_try_echo=$ac_try;;
23232 esac
23233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23234 $as_echo "$ac_try_echo") >&5
23235 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23236 ac_status=$?
23237 grep -v '^ *+' conftest.er1 >conftest.err
23238 rm -f conftest.er1
23239 cat conftest.err >&5
23240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241 (exit $ac_status); } >/dev/null && {
23242 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23243 test ! -s conftest.err
23244 }; then
23245 ac_header_preproc=yes
23246 else
23247 $as_echo "$as_me: failed program was:" >&5
23248 sed 's/^/| /' conftest.$ac_ext >&5
23249
23250 ac_header_preproc=no
23251 fi
23252
23253 rm -f conftest.err conftest.$ac_ext
23254 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23255 $as_echo "$ac_header_preproc" >&6; }
23256
23257 # So? What about this header?
23258 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23259 yes:no: )
23260 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23261 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23262 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23263 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23264 ac_header_preproc=yes
23265 ;;
23266 no:yes:* )
23267 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23268 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23269 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23270 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23271 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23272 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23273 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23274 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23275 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23276 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23277 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23278 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23279
23280 ;;
23281 esac
23282 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23283 $as_echo_n "checking for $ac_header... " >&6; }
23284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23285 $as_echo_n "(cached) " >&6
23286 else
23287 eval "$as_ac_Header=\$ac_header_preproc"
23288 fi
23289 ac_res=`eval 'as_val=${'$as_ac_Header'}
23290 $as_echo "$as_val"'`
23291 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23292 $as_echo "$ac_res" >&6; }
23293
23294 fi
23295 if test `eval 'as_val=${'$as_ac_Header'}
23296 $as_echo "$as_val"'` = yes; then
23297 cat >>confdefs.h <<_ACEOF
23298 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23299 _ACEOF
23300
23301 fi
23302
23303 done
23304
23305 fi
23306
23307 done
23308
23309 fi
23310
23311 done
23312
23313
23314 for ac_header in krb.h
23315 do
23316 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23318 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23319 $as_echo_n "checking for $ac_header... " >&6; }
23320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23321 $as_echo_n "(cached) " >&6
23322 fi
23323 ac_res=`eval 'as_val=${'$as_ac_Header'}
23324 $as_echo "$as_val"'`
23325 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23326 $as_echo "$ac_res" >&6; }
23327 else
23328 # Is the header compilable?
23329 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23330 $as_echo_n "checking $ac_header usability... " >&6; }
23331 cat >conftest.$ac_ext <<_ACEOF
23332 /* confdefs.h. */
23333 _ACEOF
23334 cat confdefs.h >>conftest.$ac_ext
23335 cat >>conftest.$ac_ext <<_ACEOF
23336 /* end confdefs.h. */
23337 $ac_includes_default
23338 #include <$ac_header>
23339 _ACEOF
23340 rm -f conftest.$ac_objext
23341 if { (ac_try="$ac_compile"
23342 case "(($ac_try" in
23343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23344 *) ac_try_echo=$ac_try;;
23345 esac
23346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23347 $as_echo "$ac_try_echo") >&5
23348 (eval "$ac_compile") 2>conftest.er1
23349 ac_status=$?
23350 grep -v '^ *+' conftest.er1 >conftest.err
23351 rm -f conftest.er1
23352 cat conftest.err >&5
23353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23354 (exit $ac_status); } && {
23355 test -z "$ac_c_werror_flag" ||
23356 test ! -s conftest.err
23357 } && test -s conftest.$ac_objext; then
23358 ac_header_compiler=yes
23359 else
23360 $as_echo "$as_me: failed program was:" >&5
23361 sed 's/^/| /' conftest.$ac_ext >&5
23362
23363 ac_header_compiler=no
23364 fi
23365
23366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23367 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23368 $as_echo "$ac_header_compiler" >&6; }
23369
23370 # Is the header present?
23371 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23372 $as_echo_n "checking $ac_header presence... " >&6; }
23373 cat >conftest.$ac_ext <<_ACEOF
23374 /* confdefs.h. */
23375 _ACEOF
23376 cat confdefs.h >>conftest.$ac_ext
23377 cat >>conftest.$ac_ext <<_ACEOF
23378 /* end confdefs.h. */
23379 #include <$ac_header>
23380 _ACEOF
23381 if { (ac_try="$ac_cpp conftest.$ac_ext"
23382 case "(($ac_try" in
23383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23384 *) ac_try_echo=$ac_try;;
23385 esac
23386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23387 $as_echo "$ac_try_echo") >&5
23388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23389 ac_status=$?
23390 grep -v '^ *+' conftest.er1 >conftest.err
23391 rm -f conftest.er1
23392 cat conftest.err >&5
23393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23394 (exit $ac_status); } >/dev/null && {
23395 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23396 test ! -s conftest.err
23397 }; then
23398 ac_header_preproc=yes
23399 else
23400 $as_echo "$as_me: failed program was:" >&5
23401 sed 's/^/| /' conftest.$ac_ext >&5
23402
23403 ac_header_preproc=no
23404 fi
23405
23406 rm -f conftest.err conftest.$ac_ext
23407 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23408 $as_echo "$ac_header_preproc" >&6; }
23409
23410 # So? What about this header?
23411 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23412 yes:no: )
23413 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23414 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23415 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23416 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23417 ac_header_preproc=yes
23418 ;;
23419 no:yes:* )
23420 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23421 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23422 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23423 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23424 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23425 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23426 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23427 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23428 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23429 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23430 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23431 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23432
23433 ;;
23434 esac
23435 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23436 $as_echo_n "checking for $ac_header... " >&6; }
23437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23438 $as_echo_n "(cached) " >&6
23439 else
23440 eval "$as_ac_Header=\$ac_header_preproc"
23441 fi
23442 ac_res=`eval 'as_val=${'$as_ac_Header'}
23443 $as_echo "$as_val"'`
23444 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23445 $as_echo "$ac_res" >&6; }
23446
23447 fi
23448 if test `eval 'as_val=${'$as_ac_Header'}
23449 $as_echo "$as_val"'` = yes; then
23450 cat >>confdefs.h <<_ACEOF
23451 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23452 _ACEOF
23453
23454 else
23455
23456 for ac_header in kerberosIV/krb.h
23457 do
23458 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23460 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23461 $as_echo_n "checking for $ac_header... " >&6; }
23462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23463 $as_echo_n "(cached) " >&6
23464 fi
23465 ac_res=`eval 'as_val=${'$as_ac_Header'}
23466 $as_echo "$as_val"'`
23467 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23468 $as_echo "$ac_res" >&6; }
23469 else
23470 # Is the header compilable?
23471 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23472 $as_echo_n "checking $ac_header usability... " >&6; }
23473 cat >conftest.$ac_ext <<_ACEOF
23474 /* confdefs.h. */
23475 _ACEOF
23476 cat confdefs.h >>conftest.$ac_ext
23477 cat >>conftest.$ac_ext <<_ACEOF
23478 /* end confdefs.h. */
23479 $ac_includes_default
23480 #include <$ac_header>
23481 _ACEOF
23482 rm -f conftest.$ac_objext
23483 if { (ac_try="$ac_compile"
23484 case "(($ac_try" in
23485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23486 *) ac_try_echo=$ac_try;;
23487 esac
23488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23489 $as_echo "$ac_try_echo") >&5
23490 (eval "$ac_compile") 2>conftest.er1
23491 ac_status=$?
23492 grep -v '^ *+' conftest.er1 >conftest.err
23493 rm -f conftest.er1
23494 cat conftest.err >&5
23495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23496 (exit $ac_status); } && {
23497 test -z "$ac_c_werror_flag" ||
23498 test ! -s conftest.err
23499 } && test -s conftest.$ac_objext; then
23500 ac_header_compiler=yes
23501 else
23502 $as_echo "$as_me: failed program was:" >&5
23503 sed 's/^/| /' conftest.$ac_ext >&5
23504
23505 ac_header_compiler=no
23506 fi
23507
23508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23509 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23510 $as_echo "$ac_header_compiler" >&6; }
23511
23512 # Is the header present?
23513 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23514 $as_echo_n "checking $ac_header presence... " >&6; }
23515 cat >conftest.$ac_ext <<_ACEOF
23516 /* confdefs.h. */
23517 _ACEOF
23518 cat confdefs.h >>conftest.$ac_ext
23519 cat >>conftest.$ac_ext <<_ACEOF
23520 /* end confdefs.h. */
23521 #include <$ac_header>
23522 _ACEOF
23523 if { (ac_try="$ac_cpp conftest.$ac_ext"
23524 case "(($ac_try" in
23525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23526 *) ac_try_echo=$ac_try;;
23527 esac
23528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23529 $as_echo "$ac_try_echo") >&5
23530 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23531 ac_status=$?
23532 grep -v '^ *+' conftest.er1 >conftest.err
23533 rm -f conftest.er1
23534 cat conftest.err >&5
23535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23536 (exit $ac_status); } >/dev/null && {
23537 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23538 test ! -s conftest.err
23539 }; then
23540 ac_header_preproc=yes
23541 else
23542 $as_echo "$as_me: failed program was:" >&5
23543 sed 's/^/| /' conftest.$ac_ext >&5
23544
23545 ac_header_preproc=no
23546 fi
23547
23548 rm -f conftest.err conftest.$ac_ext
23549 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23550 $as_echo "$ac_header_preproc" >&6; }
23551
23552 # So? What about this header?
23553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23554 yes:no: )
23555 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23556 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23558 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23559 ac_header_preproc=yes
23560 ;;
23561 no:yes:* )
23562 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23563 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23564 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23565 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23566 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23567 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23568 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23569 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23570 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23571 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23572 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23573 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23574
23575 ;;
23576 esac
23577 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23578 $as_echo_n "checking for $ac_header... " >&6; }
23579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23580 $as_echo_n "(cached) " >&6
23581 else
23582 eval "$as_ac_Header=\$ac_header_preproc"
23583 fi
23584 ac_res=`eval 'as_val=${'$as_ac_Header'}
23585 $as_echo "$as_val"'`
23586 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23587 $as_echo "$ac_res" >&6; }
23588
23589 fi
23590 if test `eval 'as_val=${'$as_ac_Header'}
23591 $as_echo "$as_val"'` = yes; then
23592 cat >>confdefs.h <<_ACEOF
23593 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23594 _ACEOF
23595
23596 else
23597
23598 for ac_header in kerberos/krb.h
23599 do
23600 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23602 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23603 $as_echo_n "checking for $ac_header... " >&6; }
23604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23605 $as_echo_n "(cached) " >&6
23606 fi
23607 ac_res=`eval 'as_val=${'$as_ac_Header'}
23608 $as_echo "$as_val"'`
23609 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23610 $as_echo "$ac_res" >&6; }
23611 else
23612 # Is the header compilable?
23613 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23614 $as_echo_n "checking $ac_header usability... " >&6; }
23615 cat >conftest.$ac_ext <<_ACEOF
23616 /* confdefs.h. */
23617 _ACEOF
23618 cat confdefs.h >>conftest.$ac_ext
23619 cat >>conftest.$ac_ext <<_ACEOF
23620 /* end confdefs.h. */
23621 $ac_includes_default
23622 #include <$ac_header>
23623 _ACEOF
23624 rm -f conftest.$ac_objext
23625 if { (ac_try="$ac_compile"
23626 case "(($ac_try" in
23627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23628 *) ac_try_echo=$ac_try;;
23629 esac
23630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23631 $as_echo "$ac_try_echo") >&5
23632 (eval "$ac_compile") 2>conftest.er1
23633 ac_status=$?
23634 grep -v '^ *+' conftest.er1 >conftest.err
23635 rm -f conftest.er1
23636 cat conftest.err >&5
23637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23638 (exit $ac_status); } && {
23639 test -z "$ac_c_werror_flag" ||
23640 test ! -s conftest.err
23641 } && test -s conftest.$ac_objext; then
23642 ac_header_compiler=yes
23643 else
23644 $as_echo "$as_me: failed program was:" >&5
23645 sed 's/^/| /' conftest.$ac_ext >&5
23646
23647 ac_header_compiler=no
23648 fi
23649
23650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23651 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23652 $as_echo "$ac_header_compiler" >&6; }
23653
23654 # Is the header present?
23655 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23656 $as_echo_n "checking $ac_header presence... " >&6; }
23657 cat >conftest.$ac_ext <<_ACEOF
23658 /* confdefs.h. */
23659 _ACEOF
23660 cat confdefs.h >>conftest.$ac_ext
23661 cat >>conftest.$ac_ext <<_ACEOF
23662 /* end confdefs.h. */
23663 #include <$ac_header>
23664 _ACEOF
23665 if { (ac_try="$ac_cpp conftest.$ac_ext"
23666 case "(($ac_try" in
23667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23668 *) ac_try_echo=$ac_try;;
23669 esac
23670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23671 $as_echo "$ac_try_echo") >&5
23672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23673 ac_status=$?
23674 grep -v '^ *+' conftest.er1 >conftest.err
23675 rm -f conftest.er1
23676 cat conftest.err >&5
23677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23678 (exit $ac_status); } >/dev/null && {
23679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23680 test ! -s conftest.err
23681 }; then
23682 ac_header_preproc=yes
23683 else
23684 $as_echo "$as_me: failed program was:" >&5
23685 sed 's/^/| /' conftest.$ac_ext >&5
23686
23687 ac_header_preproc=no
23688 fi
23689
23690 rm -f conftest.err conftest.$ac_ext
23691 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23692 $as_echo "$ac_header_preproc" >&6; }
23693
23694 # So? What about this header?
23695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23696 yes:no: )
23697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23698 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23700 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23701 ac_header_preproc=yes
23702 ;;
23703 no:yes:* )
23704 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23705 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23706 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23707 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23708 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23709 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23710 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23711 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23712 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23713 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23714 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23715 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23716
23717 ;;
23718 esac
23719 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23720 $as_echo_n "checking for $ac_header... " >&6; }
23721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23722 $as_echo_n "(cached) " >&6
23723 else
23724 eval "$as_ac_Header=\$ac_header_preproc"
23725 fi
23726 ac_res=`eval 'as_val=${'$as_ac_Header'}
23727 $as_echo "$as_val"'`
23728 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23729 $as_echo "$ac_res" >&6; }
23730
23731 fi
23732 if test `eval 'as_val=${'$as_ac_Header'}
23733 $as_echo "$as_val"'` = yes; then
23734 cat >>confdefs.h <<_ACEOF
23735 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23736 _ACEOF
23737
23738 fi
23739
23740 done
23741
23742 fi
23743
23744 done
23745
23746 fi
23747
23748 done
23749
23750 fi
23751
23752 for ac_header in com_err.h
23753 do
23754 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23756 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23757 $as_echo_n "checking for $ac_header... " >&6; }
23758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23759 $as_echo_n "(cached) " >&6
23760 fi
23761 ac_res=`eval 'as_val=${'$as_ac_Header'}
23762 $as_echo "$as_val"'`
23763 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23764 $as_echo "$ac_res" >&6; }
23765 else
23766 # Is the header compilable?
23767 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23768 $as_echo_n "checking $ac_header usability... " >&6; }
23769 cat >conftest.$ac_ext <<_ACEOF
23770 /* confdefs.h. */
23771 _ACEOF
23772 cat confdefs.h >>conftest.$ac_ext
23773 cat >>conftest.$ac_ext <<_ACEOF
23774 /* end confdefs.h. */
23775 $ac_includes_default
23776 #include <$ac_header>
23777 _ACEOF
23778 rm -f conftest.$ac_objext
23779 if { (ac_try="$ac_compile"
23780 case "(($ac_try" in
23781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23782 *) ac_try_echo=$ac_try;;
23783 esac
23784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23785 $as_echo "$ac_try_echo") >&5
23786 (eval "$ac_compile") 2>conftest.er1
23787 ac_status=$?
23788 grep -v '^ *+' conftest.er1 >conftest.err
23789 rm -f conftest.er1
23790 cat conftest.err >&5
23791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23792 (exit $ac_status); } && {
23793 test -z "$ac_c_werror_flag" ||
23794 test ! -s conftest.err
23795 } && test -s conftest.$ac_objext; then
23796 ac_header_compiler=yes
23797 else
23798 $as_echo "$as_me: failed program was:" >&5
23799 sed 's/^/| /' conftest.$ac_ext >&5
23800
23801 ac_header_compiler=no
23802 fi
23803
23804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23805 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23806 $as_echo "$ac_header_compiler" >&6; }
23807
23808 # Is the header present?
23809 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23810 $as_echo_n "checking $ac_header presence... " >&6; }
23811 cat >conftest.$ac_ext <<_ACEOF
23812 /* confdefs.h. */
23813 _ACEOF
23814 cat confdefs.h >>conftest.$ac_ext
23815 cat >>conftest.$ac_ext <<_ACEOF
23816 /* end confdefs.h. */
23817 #include <$ac_header>
23818 _ACEOF
23819 if { (ac_try="$ac_cpp conftest.$ac_ext"
23820 case "(($ac_try" in
23821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23822 *) ac_try_echo=$ac_try;;
23823 esac
23824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23825 $as_echo "$ac_try_echo") >&5
23826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23827 ac_status=$?
23828 grep -v '^ *+' conftest.er1 >conftest.err
23829 rm -f conftest.er1
23830 cat conftest.err >&5
23831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23832 (exit $ac_status); } >/dev/null && {
23833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23834 test ! -s conftest.err
23835 }; then
23836 ac_header_preproc=yes
23837 else
23838 $as_echo "$as_me: failed program was:" >&5
23839 sed 's/^/| /' conftest.$ac_ext >&5
23840
23841 ac_header_preproc=no
23842 fi
23843
23844 rm -f conftest.err conftest.$ac_ext
23845 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23846 $as_echo "$ac_header_preproc" >&6; }
23847
23848 # So? What about this header?
23849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23850 yes:no: )
23851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23852 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23854 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23855 ac_header_preproc=yes
23856 ;;
23857 no:yes:* )
23858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23859 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23861 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23863 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23865 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23867 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23869 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23870
23871 ;;
23872 esac
23873 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23874 $as_echo_n "checking for $ac_header... " >&6; }
23875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23876 $as_echo_n "(cached) " >&6
23877 else
23878 eval "$as_ac_Header=\$ac_header_preproc"
23879 fi
23880 ac_res=`eval 'as_val=${'$as_ac_Header'}
23881 $as_echo "$as_val"'`
23882 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23883 $as_echo "$ac_res" >&6; }
23884
23885 fi
23886 if test `eval 'as_val=${'$as_ac_Header'}
23887 $as_echo "$as_val"'` = yes; then
23888 cat >>confdefs.h <<_ACEOF
23889 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23890 _ACEOF
23891
23892 fi
23893
23894 done
23895
23896 fi
23897
23898
23899
23900
23901
23902
23903
23904 # Solaris requires -lintl if you want strerror (which calls dgettext)
23905 # to return localized messages.
23906
23907 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
23908 $as_echo_n "checking for dgettext in -lintl... " >&6; }
23909 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23910 $as_echo_n "(cached) " >&6
23911 else
23912 ac_check_lib_save_LIBS=$LIBS
23913 LIBS="-lintl $LIBS"
23914 cat >conftest.$ac_ext <<_ACEOF
23915 /* confdefs.h. */
23916 _ACEOF
23917 cat confdefs.h >>conftest.$ac_ext
23918 cat >>conftest.$ac_ext <<_ACEOF
23919 /* end confdefs.h. */
23920
23921 /* Override any GCC internal prototype to avoid an error.
23922 Use char because int might match the return type of a GCC
23923 builtin and then its argument prototype would still apply. */
23924 #ifdef __cplusplus
23925 extern "C"
23926 #endif
23927 char dgettext ();
23928 int
23929 main ()
23930 {
23931 return dgettext ();
23932 ;
23933 return 0;
23934 }
23935 _ACEOF
23936 rm -f conftest.$ac_objext conftest$ac_exeext
23937 if { (ac_try="$ac_link"
23938 case "(($ac_try" in
23939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23940 *) ac_try_echo=$ac_try;;
23941 esac
23942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23943 $as_echo "$ac_try_echo") >&5
23944 (eval "$ac_link") 2>conftest.er1
23945 ac_status=$?
23946 grep -v '^ *+' conftest.er1 >conftest.err
23947 rm -f conftest.er1
23948 cat conftest.err >&5
23949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23950 (exit $ac_status); } && {
23951 test -z "$ac_c_werror_flag" ||
23952 test ! -s conftest.err
23953 } && test -s conftest$ac_exeext && {
23954 test "$cross_compiling" = yes ||
23955 $as_test_x conftest$ac_exeext
23956 }; then
23957 ac_cv_lib_intl_dgettext=yes
23958 else
23959 $as_echo "$as_me: failed program was:" >&5
23960 sed 's/^/| /' conftest.$ac_ext >&5
23961
23962 ac_cv_lib_intl_dgettext=no
23963 fi
23964
23965 rm -rf conftest.dSYM
23966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23967 conftest$ac_exeext conftest.$ac_ext
23968 LIBS=$ac_check_lib_save_LIBS
23969 fi
23970 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
23971 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
23972 if test $ac_cv_lib_intl_dgettext = yes; then
23973 cat >>confdefs.h <<_ACEOF
23974 #define HAVE_LIBINTL 1
23975 _ACEOF
23976
23977 LIBS="-lintl $LIBS"
23978
23979 fi
23980
23981
23982 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
23983 $as_echo_n "checking whether localtime caches TZ... " >&6; }
23984 if test "${emacs_cv_localtime_cache+set}" = set; then
23985 $as_echo_n "(cached) " >&6
23986 else
23987 if test x$ac_cv_func_tzset = xyes; then
23988 if test "$cross_compiling" = yes; then
23989 # If we have tzset, assume the worst when cross-compiling.
23990 emacs_cv_localtime_cache=yes
23991 else
23992 cat >conftest.$ac_ext <<_ACEOF
23993 /* confdefs.h. */
23994 _ACEOF
23995 cat confdefs.h >>conftest.$ac_ext
23996 cat >>conftest.$ac_ext <<_ACEOF
23997 /* end confdefs.h. */
23998 #include <time.h>
23999 extern char **environ;
24000 unset_TZ ()
24001 {
24002 char **from, **to;
24003 for (to = from = environ; (*to = *from); from++)
24004 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
24005 to++;
24006 }
24007 char TZ_GMT0[] = "TZ=GMT0";
24008 char TZ_PST8[] = "TZ=PST8";
24009 main()
24010 {
24011 time_t now = time ((time_t *) 0);
24012 int hour_GMT0, hour_unset;
24013 if (putenv (TZ_GMT0) != 0)
24014 exit (1);
24015 hour_GMT0 = localtime (&now)->tm_hour;
24016 unset_TZ ();
24017 hour_unset = localtime (&now)->tm_hour;
24018 if (putenv (TZ_PST8) != 0)
24019 exit (1);
24020 if (localtime (&now)->tm_hour == hour_GMT0)
24021 exit (1);
24022 unset_TZ ();
24023 if (localtime (&now)->tm_hour != hour_unset)
24024 exit (1);
24025 exit (0);
24026 }
24027 _ACEOF
24028 rm -f conftest$ac_exeext
24029 if { (ac_try="$ac_link"
24030 case "(($ac_try" in
24031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24032 *) ac_try_echo=$ac_try;;
24033 esac
24034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24035 $as_echo "$ac_try_echo") >&5
24036 (eval "$ac_link") 2>&5
24037 ac_status=$?
24038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24039 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24040 { (case "(($ac_try" in
24041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24042 *) ac_try_echo=$ac_try;;
24043 esac
24044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24045 $as_echo "$ac_try_echo") >&5
24046 (eval "$ac_try") 2>&5
24047 ac_status=$?
24048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24049 (exit $ac_status); }; }; then
24050 emacs_cv_localtime_cache=no
24051 else
24052 $as_echo "$as_me: program exited with status $ac_status" >&5
24053 $as_echo "$as_me: failed program was:" >&5
24054 sed 's/^/| /' conftest.$ac_ext >&5
24055
24056 ( exit $ac_status )
24057 emacs_cv_localtime_cache=yes
24058 fi
24059 rm -rf conftest.dSYM
24060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24061 fi
24062
24063
24064 else
24065 # If we lack tzset, report that localtime does not cache TZ,
24066 # since we can't invalidate the cache if we don't have tzset.
24067 emacs_cv_localtime_cache=no
24068 fi
24069 fi
24070 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
24071 $as_echo "$emacs_cv_localtime_cache" >&6; }
24072 if test $emacs_cv_localtime_cache = yes; then
24073
24074 cat >>confdefs.h <<\_ACEOF
24075 #define LOCALTIME_CACHE 1
24076 _ACEOF
24077
24078 fi
24079
24080 if test "x$HAVE_TIMEVAL" = xyes; then
24081
24082 for ac_func in gettimeofday
24083 do
24084 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24085 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24086 $as_echo_n "checking for $ac_func... " >&6; }
24087 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24088 $as_echo_n "(cached) " >&6
24089 else
24090 cat >conftest.$ac_ext <<_ACEOF
24091 /* confdefs.h. */
24092 _ACEOF
24093 cat confdefs.h >>conftest.$ac_ext
24094 cat >>conftest.$ac_ext <<_ACEOF
24095 /* end confdefs.h. */
24096 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24098 #define $ac_func innocuous_$ac_func
24099
24100 /* System header to define __stub macros and hopefully few prototypes,
24101 which can conflict with char $ac_func (); below.
24102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24103 <limits.h> exists even on freestanding compilers. */
24104
24105 #ifdef __STDC__
24106 # include <limits.h>
24107 #else
24108 # include <assert.h>
24109 #endif
24110
24111 #undef $ac_func
24112
24113 /* Override any GCC internal prototype to avoid an error.
24114 Use char because int might match the return type of a GCC
24115 builtin and then its argument prototype would still apply. */
24116 #ifdef __cplusplus
24117 extern "C"
24118 #endif
24119 char $ac_func ();
24120 /* The GNU C library defines this for functions which it implements
24121 to always fail with ENOSYS. Some functions are actually named
24122 something starting with __ and the normal name is an alias. */
24123 #if defined __stub_$ac_func || defined __stub___$ac_func
24124 choke me
24125 #endif
24126
24127 int
24128 main ()
24129 {
24130 return $ac_func ();
24131 ;
24132 return 0;
24133 }
24134 _ACEOF
24135 rm -f conftest.$ac_objext conftest$ac_exeext
24136 if { (ac_try="$ac_link"
24137 case "(($ac_try" in
24138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24139 *) ac_try_echo=$ac_try;;
24140 esac
24141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24142 $as_echo "$ac_try_echo") >&5
24143 (eval "$ac_link") 2>conftest.er1
24144 ac_status=$?
24145 grep -v '^ *+' conftest.er1 >conftest.err
24146 rm -f conftest.er1
24147 cat conftest.err >&5
24148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24149 (exit $ac_status); } && {
24150 test -z "$ac_c_werror_flag" ||
24151 test ! -s conftest.err
24152 } && test -s conftest$ac_exeext && {
24153 test "$cross_compiling" = yes ||
24154 $as_test_x conftest$ac_exeext
24155 }; then
24156 eval "$as_ac_var=yes"
24157 else
24158 $as_echo "$as_me: failed program was:" >&5
24159 sed 's/^/| /' conftest.$ac_ext >&5
24160
24161 eval "$as_ac_var=no"
24162 fi
24163
24164 rm -rf conftest.dSYM
24165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24166 conftest$ac_exeext conftest.$ac_ext
24167 fi
24168 ac_res=`eval 'as_val=${'$as_ac_var'}
24169 $as_echo "$as_val"'`
24170 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24171 $as_echo "$ac_res" >&6; }
24172 if test `eval 'as_val=${'$as_ac_var'}
24173 $as_echo "$as_val"'` = yes; then
24174 cat >>confdefs.h <<_ACEOF
24175 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24176 _ACEOF
24177
24178 fi
24179 done
24180
24181 if test $ac_cv_func_gettimeofday = yes; then
24182 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
24183 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
24184 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24185 $as_echo_n "(cached) " >&6
24186 else
24187 cat >conftest.$ac_ext <<_ACEOF
24188 /* confdefs.h. */
24189 _ACEOF
24190 cat confdefs.h >>conftest.$ac_ext
24191 cat >>conftest.$ac_ext <<_ACEOF
24192 /* end confdefs.h. */
24193
24194 #ifdef TIME_WITH_SYS_TIME
24195 #include <sys/time.h>
24196 #include <time.h>
24197 #else
24198 #ifdef HAVE_SYS_TIME_H
24199 #include <sys/time.h>
24200 #else
24201 #include <time.h>
24202 #endif
24203 #endif
24204 int
24205 main ()
24206 {
24207 struct timeval time;
24208 gettimeofday (&time, 0);
24209 ;
24210 return 0;
24211 }
24212 _ACEOF
24213 rm -f conftest.$ac_objext
24214 if { (ac_try="$ac_compile"
24215 case "(($ac_try" in
24216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24217 *) ac_try_echo=$ac_try;;
24218 esac
24219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24220 $as_echo "$ac_try_echo") >&5
24221 (eval "$ac_compile") 2>conftest.er1
24222 ac_status=$?
24223 grep -v '^ *+' conftest.er1 >conftest.err
24224 rm -f conftest.er1
24225 cat conftest.err >&5
24226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24227 (exit $ac_status); } && {
24228 test -z "$ac_c_werror_flag" ||
24229 test ! -s conftest.err
24230 } && test -s conftest.$ac_objext; then
24231 emacs_cv_gettimeofday_two_arguments=yes
24232 else
24233 $as_echo "$as_me: failed program was:" >&5
24234 sed 's/^/| /' conftest.$ac_ext >&5
24235
24236 emacs_cv_gettimeofday_two_arguments=no
24237 fi
24238
24239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24240 fi
24241 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
24242 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24243 if test $emacs_cv_gettimeofday_two_arguments = no; then
24244
24245 cat >>confdefs.h <<\_ACEOF
24246 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24247 _ACEOF
24248
24249 fi
24250 fi
24251 fi
24252
24253 ok_so_far=yes
24254 { $as_echo "$as_me:$LINENO: checking for socket" >&5
24255 $as_echo_n "checking for socket... " >&6; }
24256 if test "${ac_cv_func_socket+set}" = set; then
24257 $as_echo_n "(cached) " >&6
24258 else
24259 cat >conftest.$ac_ext <<_ACEOF
24260 /* confdefs.h. */
24261 _ACEOF
24262 cat confdefs.h >>conftest.$ac_ext
24263 cat >>conftest.$ac_ext <<_ACEOF
24264 /* end confdefs.h. */
24265 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24267 #define socket innocuous_socket
24268
24269 /* System header to define __stub macros and hopefully few prototypes,
24270 which can conflict with char socket (); below.
24271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24272 <limits.h> exists even on freestanding compilers. */
24273
24274 #ifdef __STDC__
24275 # include <limits.h>
24276 #else
24277 # include <assert.h>
24278 #endif
24279
24280 #undef socket
24281
24282 /* Override any GCC internal prototype to avoid an error.
24283 Use char because int might match the return type of a GCC
24284 builtin and then its argument prototype would still apply. */
24285 #ifdef __cplusplus
24286 extern "C"
24287 #endif
24288 char socket ();
24289 /* The GNU C library defines this for functions which it implements
24290 to always fail with ENOSYS. Some functions are actually named
24291 something starting with __ and the normal name is an alias. */
24292 #if defined __stub_socket || defined __stub___socket
24293 choke me
24294 #endif
24295
24296 int
24297 main ()
24298 {
24299 return socket ();
24300 ;
24301 return 0;
24302 }
24303 _ACEOF
24304 rm -f conftest.$ac_objext conftest$ac_exeext
24305 if { (ac_try="$ac_link"
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_link") 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); } && {
24319 test -z "$ac_c_werror_flag" ||
24320 test ! -s conftest.err
24321 } && test -s conftest$ac_exeext && {
24322 test "$cross_compiling" = yes ||
24323 $as_test_x conftest$ac_exeext
24324 }; then
24325 ac_cv_func_socket=yes
24326 else
24327 $as_echo "$as_me: failed program was:" >&5
24328 sed 's/^/| /' conftest.$ac_ext >&5
24329
24330 ac_cv_func_socket=no
24331 fi
24332
24333 rm -rf conftest.dSYM
24334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24335 conftest$ac_exeext conftest.$ac_ext
24336 fi
24337 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24338 $as_echo "$ac_cv_func_socket" >&6; }
24339 if test $ac_cv_func_socket = yes; then
24340 :
24341 else
24342 ok_so_far=no
24343 fi
24344
24345 if test $ok_so_far = yes; then
24346 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24347 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24348 $as_echo_n "checking for netinet/in.h... " >&6; }
24349 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24350 $as_echo_n "(cached) " >&6
24351 fi
24352 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24353 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24354 else
24355 # Is the header compilable?
24356 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
24357 $as_echo_n "checking netinet/in.h usability... " >&6; }
24358 cat >conftest.$ac_ext <<_ACEOF
24359 /* confdefs.h. */
24360 _ACEOF
24361 cat confdefs.h >>conftest.$ac_ext
24362 cat >>conftest.$ac_ext <<_ACEOF
24363 /* end confdefs.h. */
24364 $ac_includes_default
24365 #include <netinet/in.h>
24366 _ACEOF
24367 rm -f conftest.$ac_objext
24368 if { (ac_try="$ac_compile"
24369 case "(($ac_try" in
24370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24371 *) ac_try_echo=$ac_try;;
24372 esac
24373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24374 $as_echo "$ac_try_echo") >&5
24375 (eval "$ac_compile") 2>conftest.er1
24376 ac_status=$?
24377 grep -v '^ *+' conftest.er1 >conftest.err
24378 rm -f conftest.er1
24379 cat conftest.err >&5
24380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24381 (exit $ac_status); } && {
24382 test -z "$ac_c_werror_flag" ||
24383 test ! -s conftest.err
24384 } && test -s conftest.$ac_objext; then
24385 ac_header_compiler=yes
24386 else
24387 $as_echo "$as_me: failed program was:" >&5
24388 sed 's/^/| /' conftest.$ac_ext >&5
24389
24390 ac_header_compiler=no
24391 fi
24392
24393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24394 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24395 $as_echo "$ac_header_compiler" >&6; }
24396
24397 # Is the header present?
24398 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
24399 $as_echo_n "checking netinet/in.h presence... " >&6; }
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 #include <netinet/in.h>
24407 _ACEOF
24408 if { (ac_try="$ac_cpp conftest.$ac_ext"
24409 case "(($ac_try" in
24410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24411 *) ac_try_echo=$ac_try;;
24412 esac
24413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24414 $as_echo "$ac_try_echo") >&5
24415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24416 ac_status=$?
24417 grep -v '^ *+' conftest.er1 >conftest.err
24418 rm -f conftest.er1
24419 cat conftest.err >&5
24420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24421 (exit $ac_status); } >/dev/null && {
24422 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24423 test ! -s conftest.err
24424 }; then
24425 ac_header_preproc=yes
24426 else
24427 $as_echo "$as_me: failed program was:" >&5
24428 sed 's/^/| /' conftest.$ac_ext >&5
24429
24430 ac_header_preproc=no
24431 fi
24432
24433 rm -f conftest.err conftest.$ac_ext
24434 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24435 $as_echo "$ac_header_preproc" >&6; }
24436
24437 # So? What about this header?
24438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24439 yes:no: )
24440 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
24441 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24442 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
24443 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
24444 ac_header_preproc=yes
24445 ;;
24446 no:yes:* )
24447 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
24448 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
24449 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
24450 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
24451 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
24452 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
24453 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
24454 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
24455 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
24456 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
24457 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
24458 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
24459
24460 ;;
24461 esac
24462 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24463 $as_echo_n "checking for netinet/in.h... " >&6; }
24464 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24465 $as_echo_n "(cached) " >&6
24466 else
24467 ac_cv_header_netinet_in_h=$ac_header_preproc
24468 fi
24469 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24470 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24471
24472 fi
24473 if test $ac_cv_header_netinet_in_h = yes; then
24474 :
24475 else
24476 ok_so_far=no
24477 fi
24478
24479
24480 fi
24481 if test $ok_so_far = yes; then
24482 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24483 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24484 $as_echo_n "checking for arpa/inet.h... " >&6; }
24485 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24486 $as_echo_n "(cached) " >&6
24487 fi
24488 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24489 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24490 else
24491 # Is the header compilable?
24492 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
24493 $as_echo_n "checking arpa/inet.h usability... " >&6; }
24494 cat >conftest.$ac_ext <<_ACEOF
24495 /* confdefs.h. */
24496 _ACEOF
24497 cat confdefs.h >>conftest.$ac_ext
24498 cat >>conftest.$ac_ext <<_ACEOF
24499 /* end confdefs.h. */
24500 $ac_includes_default
24501 #include <arpa/inet.h>
24502 _ACEOF
24503 rm -f conftest.$ac_objext
24504 if { (ac_try="$ac_compile"
24505 case "(($ac_try" in
24506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24507 *) ac_try_echo=$ac_try;;
24508 esac
24509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24510 $as_echo "$ac_try_echo") >&5
24511 (eval "$ac_compile") 2>conftest.er1
24512 ac_status=$?
24513 grep -v '^ *+' conftest.er1 >conftest.err
24514 rm -f conftest.er1
24515 cat conftest.err >&5
24516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24517 (exit $ac_status); } && {
24518 test -z "$ac_c_werror_flag" ||
24519 test ! -s conftest.err
24520 } && test -s conftest.$ac_objext; then
24521 ac_header_compiler=yes
24522 else
24523 $as_echo "$as_me: failed program was:" >&5
24524 sed 's/^/| /' conftest.$ac_ext >&5
24525
24526 ac_header_compiler=no
24527 fi
24528
24529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24530 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24531 $as_echo "$ac_header_compiler" >&6; }
24532
24533 # Is the header present?
24534 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
24535 $as_echo_n "checking arpa/inet.h presence... " >&6; }
24536 cat >conftest.$ac_ext <<_ACEOF
24537 /* confdefs.h. */
24538 _ACEOF
24539 cat confdefs.h >>conftest.$ac_ext
24540 cat >>conftest.$ac_ext <<_ACEOF
24541 /* end confdefs.h. */
24542 #include <arpa/inet.h>
24543 _ACEOF
24544 if { (ac_try="$ac_cpp conftest.$ac_ext"
24545 case "(($ac_try" in
24546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24547 *) ac_try_echo=$ac_try;;
24548 esac
24549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24550 $as_echo "$ac_try_echo") >&5
24551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24552 ac_status=$?
24553 grep -v '^ *+' conftest.er1 >conftest.err
24554 rm -f conftest.er1
24555 cat conftest.err >&5
24556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24557 (exit $ac_status); } >/dev/null && {
24558 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24559 test ! -s conftest.err
24560 }; then
24561 ac_header_preproc=yes
24562 else
24563 $as_echo "$as_me: failed program was:" >&5
24564 sed 's/^/| /' conftest.$ac_ext >&5
24565
24566 ac_header_preproc=no
24567 fi
24568
24569 rm -f conftest.err conftest.$ac_ext
24570 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24571 $as_echo "$ac_header_preproc" >&6; }
24572
24573 # So? What about this header?
24574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24575 yes:no: )
24576 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
24577 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24578 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
24579 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
24580 ac_header_preproc=yes
24581 ;;
24582 no:yes:* )
24583 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
24584 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
24585 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
24586 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
24587 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
24588 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
24589 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
24590 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
24591 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
24592 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
24593 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
24594 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
24595
24596 ;;
24597 esac
24598 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24599 $as_echo_n "checking for arpa/inet.h... " >&6; }
24600 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24601 $as_echo_n "(cached) " >&6
24602 else
24603 ac_cv_header_arpa_inet_h=$ac_header_preproc
24604 fi
24605 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24606 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24607
24608 fi
24609 if test $ac_cv_header_arpa_inet_h = yes; then
24610 :
24611 else
24612 ok_so_far=no
24613 fi
24614
24615
24616 fi
24617 if test $ok_so_far = yes; then
24618
24619 cat >>confdefs.h <<\_ACEOF
24620 #define HAVE_INET_SOCKETS 1
24621 _ACEOF
24622
24623 fi
24624
24625
24626 for ac_header in sys/ioctl.h
24627 do
24628 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24630 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24631 $as_echo_n "checking for $ac_header... " >&6; }
24632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24633 $as_echo_n "(cached) " >&6
24634 fi
24635 ac_res=`eval 'as_val=${'$as_ac_Header'}
24636 $as_echo "$as_val"'`
24637 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24638 $as_echo "$ac_res" >&6; }
24639 else
24640 # Is the header compilable?
24641 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24642 $as_echo_n "checking $ac_header usability... " >&6; }
24643 cat >conftest.$ac_ext <<_ACEOF
24644 /* confdefs.h. */
24645 _ACEOF
24646 cat confdefs.h >>conftest.$ac_ext
24647 cat >>conftest.$ac_ext <<_ACEOF
24648 /* end confdefs.h. */
24649 $ac_includes_default
24650 #include <$ac_header>
24651 _ACEOF
24652 rm -f conftest.$ac_objext
24653 if { (ac_try="$ac_compile"
24654 case "(($ac_try" in
24655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24656 *) ac_try_echo=$ac_try;;
24657 esac
24658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24659 $as_echo "$ac_try_echo") >&5
24660 (eval "$ac_compile") 2>conftest.er1
24661 ac_status=$?
24662 grep -v '^ *+' conftest.er1 >conftest.err
24663 rm -f conftest.er1
24664 cat conftest.err >&5
24665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24666 (exit $ac_status); } && {
24667 test -z "$ac_c_werror_flag" ||
24668 test ! -s conftest.err
24669 } && test -s conftest.$ac_objext; then
24670 ac_header_compiler=yes
24671 else
24672 $as_echo "$as_me: failed program was:" >&5
24673 sed 's/^/| /' conftest.$ac_ext >&5
24674
24675 ac_header_compiler=no
24676 fi
24677
24678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24679 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24680 $as_echo "$ac_header_compiler" >&6; }
24681
24682 # Is the header present?
24683 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24684 $as_echo_n "checking $ac_header presence... " >&6; }
24685 cat >conftest.$ac_ext <<_ACEOF
24686 /* confdefs.h. */
24687 _ACEOF
24688 cat confdefs.h >>conftest.$ac_ext
24689 cat >>conftest.$ac_ext <<_ACEOF
24690 /* end confdefs.h. */
24691 #include <$ac_header>
24692 _ACEOF
24693 if { (ac_try="$ac_cpp conftest.$ac_ext"
24694 case "(($ac_try" in
24695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24696 *) ac_try_echo=$ac_try;;
24697 esac
24698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24699 $as_echo "$ac_try_echo") >&5
24700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24701 ac_status=$?
24702 grep -v '^ *+' conftest.er1 >conftest.err
24703 rm -f conftest.er1
24704 cat conftest.err >&5
24705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24706 (exit $ac_status); } >/dev/null && {
24707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24708 test ! -s conftest.err
24709 }; then
24710 ac_header_preproc=yes
24711 else
24712 $as_echo "$as_me: failed program was:" >&5
24713 sed 's/^/| /' conftest.$ac_ext >&5
24714
24715 ac_header_preproc=no
24716 fi
24717
24718 rm -f conftest.err conftest.$ac_ext
24719 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24720 $as_echo "$ac_header_preproc" >&6; }
24721
24722 # So? What about this header?
24723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24724 yes:no: )
24725 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24726 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24727 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24728 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24729 ac_header_preproc=yes
24730 ;;
24731 no:yes:* )
24732 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24733 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24734 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24735 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24736 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24737 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24738 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24739 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24740 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24741 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24742 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24743 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24744
24745 ;;
24746 esac
24747 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24748 $as_echo_n "checking for $ac_header... " >&6; }
24749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24750 $as_echo_n "(cached) " >&6
24751 else
24752 eval "$as_ac_Header=\$ac_header_preproc"
24753 fi
24754 ac_res=`eval 'as_val=${'$as_ac_Header'}
24755 $as_echo "$as_val"'`
24756 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24757 $as_echo "$ac_res" >&6; }
24758
24759 fi
24760 if test `eval 'as_val=${'$as_ac_Header'}
24761 $as_echo "$as_val"'` = yes; then
24762 cat >>confdefs.h <<_ACEOF
24763 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24764 _ACEOF
24765
24766 fi
24767
24768 done
24769
24770
24771 if test -f /usr/lpp/X11/bin/smt.exp; then
24772
24773 cat >>confdefs.h <<\_ACEOF
24774 #define HAVE_AIX_SMT_EXP 1
24775 _ACEOF
24776
24777 fi
24778
24779 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
24780 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
24781 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
24782 { $as_echo "$as_me:$LINENO: result: yes" >&5
24783 $as_echo "yes" >&6; }
24784
24785 cat >>confdefs.h <<\_ACEOF
24786 #define HAVE_DEV_PTMX 1
24787 _ACEOF
24788
24789 else
24790 { $as_echo "$as_me:$LINENO: result: no" >&5
24791 $as_echo "no" >&6; }
24792 fi
24793
24794 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
24795 $as_echo_n "checking for pid_t... " >&6; }
24796 if test "${ac_cv_type_pid_t+set}" = set; then
24797 $as_echo_n "(cached) " >&6
24798 else
24799 ac_cv_type_pid_t=no
24800 cat >conftest.$ac_ext <<_ACEOF
24801 /* confdefs.h. */
24802 _ACEOF
24803 cat confdefs.h >>conftest.$ac_ext
24804 cat >>conftest.$ac_ext <<_ACEOF
24805 /* end confdefs.h. */
24806 $ac_includes_default
24807 int
24808 main ()
24809 {
24810 if (sizeof (pid_t))
24811 return 0;
24812 ;
24813 return 0;
24814 }
24815 _ACEOF
24816 rm -f conftest.$ac_objext
24817 if { (ac_try="$ac_compile"
24818 case "(($ac_try" in
24819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24820 *) ac_try_echo=$ac_try;;
24821 esac
24822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24823 $as_echo "$ac_try_echo") >&5
24824 (eval "$ac_compile") 2>conftest.er1
24825 ac_status=$?
24826 grep -v '^ *+' conftest.er1 >conftest.err
24827 rm -f conftest.er1
24828 cat conftest.err >&5
24829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24830 (exit $ac_status); } && {
24831 test -z "$ac_c_werror_flag" ||
24832 test ! -s conftest.err
24833 } && test -s conftest.$ac_objext; then
24834 cat >conftest.$ac_ext <<_ACEOF
24835 /* confdefs.h. */
24836 _ACEOF
24837 cat confdefs.h >>conftest.$ac_ext
24838 cat >>conftest.$ac_ext <<_ACEOF
24839 /* end confdefs.h. */
24840 $ac_includes_default
24841 int
24842 main ()
24843 {
24844 if (sizeof ((pid_t)))
24845 return 0;
24846 ;
24847 return 0;
24848 }
24849 _ACEOF
24850 rm -f conftest.$ac_objext
24851 if { (ac_try="$ac_compile"
24852 case "(($ac_try" in
24853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24854 *) ac_try_echo=$ac_try;;
24855 esac
24856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24857 $as_echo "$ac_try_echo") >&5
24858 (eval "$ac_compile") 2>conftest.er1
24859 ac_status=$?
24860 grep -v '^ *+' conftest.er1 >conftest.err
24861 rm -f conftest.er1
24862 cat conftest.err >&5
24863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24864 (exit $ac_status); } && {
24865 test -z "$ac_c_werror_flag" ||
24866 test ! -s conftest.err
24867 } && test -s conftest.$ac_objext; then
24868 :
24869 else
24870 $as_echo "$as_me: failed program was:" >&5
24871 sed 's/^/| /' conftest.$ac_ext >&5
24872
24873 ac_cv_type_pid_t=yes
24874 fi
24875
24876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24877 else
24878 $as_echo "$as_me: failed program was:" >&5
24879 sed 's/^/| /' conftest.$ac_ext >&5
24880
24881
24882 fi
24883
24884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24885 fi
24886 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24887 $as_echo "$ac_cv_type_pid_t" >&6; }
24888 if test $ac_cv_type_pid_t = yes; then
24889 :
24890 else
24891
24892 cat >>confdefs.h <<_ACEOF
24893 #define pid_t int
24894 _ACEOF
24895
24896 fi
24897
24898
24899 for ac_header in vfork.h
24900 do
24901 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24903 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24904 $as_echo_n "checking for $ac_header... " >&6; }
24905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24906 $as_echo_n "(cached) " >&6
24907 fi
24908 ac_res=`eval 'as_val=${'$as_ac_Header'}
24909 $as_echo "$as_val"'`
24910 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24911 $as_echo "$ac_res" >&6; }
24912 else
24913 # Is the header compilable?
24914 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24915 $as_echo_n "checking $ac_header usability... " >&6; }
24916 cat >conftest.$ac_ext <<_ACEOF
24917 /* confdefs.h. */
24918 _ACEOF
24919 cat confdefs.h >>conftest.$ac_ext
24920 cat >>conftest.$ac_ext <<_ACEOF
24921 /* end confdefs.h. */
24922 $ac_includes_default
24923 #include <$ac_header>
24924 _ACEOF
24925 rm -f conftest.$ac_objext
24926 if { (ac_try="$ac_compile"
24927 case "(($ac_try" in
24928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24929 *) ac_try_echo=$ac_try;;
24930 esac
24931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24932 $as_echo "$ac_try_echo") >&5
24933 (eval "$ac_compile") 2>conftest.er1
24934 ac_status=$?
24935 grep -v '^ *+' conftest.er1 >conftest.err
24936 rm -f conftest.er1
24937 cat conftest.err >&5
24938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939 (exit $ac_status); } && {
24940 test -z "$ac_c_werror_flag" ||
24941 test ! -s conftest.err
24942 } && test -s conftest.$ac_objext; then
24943 ac_header_compiler=yes
24944 else
24945 $as_echo "$as_me: failed program was:" >&5
24946 sed 's/^/| /' conftest.$ac_ext >&5
24947
24948 ac_header_compiler=no
24949 fi
24950
24951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24952 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24953 $as_echo "$ac_header_compiler" >&6; }
24954
24955 # Is the header present?
24956 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24957 $as_echo_n "checking $ac_header presence... " >&6; }
24958 cat >conftest.$ac_ext <<_ACEOF
24959 /* confdefs.h. */
24960 _ACEOF
24961 cat confdefs.h >>conftest.$ac_ext
24962 cat >>conftest.$ac_ext <<_ACEOF
24963 /* end confdefs.h. */
24964 #include <$ac_header>
24965 _ACEOF
24966 if { (ac_try="$ac_cpp conftest.$ac_ext"
24967 case "(($ac_try" in
24968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24969 *) ac_try_echo=$ac_try;;
24970 esac
24971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24972 $as_echo "$ac_try_echo") >&5
24973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24974 ac_status=$?
24975 grep -v '^ *+' conftest.er1 >conftest.err
24976 rm -f conftest.er1
24977 cat conftest.err >&5
24978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24979 (exit $ac_status); } >/dev/null && {
24980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24981 test ! -s conftest.err
24982 }; then
24983 ac_header_preproc=yes
24984 else
24985 $as_echo "$as_me: failed program was:" >&5
24986 sed 's/^/| /' conftest.$ac_ext >&5
24987
24988 ac_header_preproc=no
24989 fi
24990
24991 rm -f conftest.err conftest.$ac_ext
24992 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24993 $as_echo "$ac_header_preproc" >&6; }
24994
24995 # So? What about this header?
24996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24997 yes:no: )
24998 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24999 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25000 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25001 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25002 ac_header_preproc=yes
25003 ;;
25004 no:yes:* )
25005 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25006 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25007 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25008 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25009 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25010 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25012 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25014 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25016 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25017
25018 ;;
25019 esac
25020 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25021 $as_echo_n "checking for $ac_header... " >&6; }
25022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25023 $as_echo_n "(cached) " >&6
25024 else
25025 eval "$as_ac_Header=\$ac_header_preproc"
25026 fi
25027 ac_res=`eval 'as_val=${'$as_ac_Header'}
25028 $as_echo "$as_val"'`
25029 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25030 $as_echo "$ac_res" >&6; }
25031
25032 fi
25033 if test `eval 'as_val=${'$as_ac_Header'}
25034 $as_echo "$as_val"'` = yes; then
25035 cat >>confdefs.h <<_ACEOF
25036 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25037 _ACEOF
25038
25039 fi
25040
25041 done
25042
25043
25044
25045 for ac_func in fork vfork
25046 do
25047 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25048 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25049 $as_echo_n "checking for $ac_func... " >&6; }
25050 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25051 $as_echo_n "(cached) " >&6
25052 else
25053 cat >conftest.$ac_ext <<_ACEOF
25054 /* confdefs.h. */
25055 _ACEOF
25056 cat confdefs.h >>conftest.$ac_ext
25057 cat >>conftest.$ac_ext <<_ACEOF
25058 /* end confdefs.h. */
25059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25061 #define $ac_func innocuous_$ac_func
25062
25063 /* System header to define __stub macros and hopefully few prototypes,
25064 which can conflict with char $ac_func (); below.
25065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25066 <limits.h> exists even on freestanding compilers. */
25067
25068 #ifdef __STDC__
25069 # include <limits.h>
25070 #else
25071 # include <assert.h>
25072 #endif
25073
25074 #undef $ac_func
25075
25076 /* Override any GCC internal prototype to avoid an error.
25077 Use char because int might match the return type of a GCC
25078 builtin and then its argument prototype would still apply. */
25079 #ifdef __cplusplus
25080 extern "C"
25081 #endif
25082 char $ac_func ();
25083 /* The GNU C library defines this for functions which it implements
25084 to always fail with ENOSYS. Some functions are actually named
25085 something starting with __ and the normal name is an alias. */
25086 #if defined __stub_$ac_func || defined __stub___$ac_func
25087 choke me
25088 #endif
25089
25090 int
25091 main ()
25092 {
25093 return $ac_func ();
25094 ;
25095 return 0;
25096 }
25097 _ACEOF
25098 rm -f conftest.$ac_objext conftest$ac_exeext
25099 if { (ac_try="$ac_link"
25100 case "(($ac_try" in
25101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25102 *) ac_try_echo=$ac_try;;
25103 esac
25104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25105 $as_echo "$ac_try_echo") >&5
25106 (eval "$ac_link") 2>conftest.er1
25107 ac_status=$?
25108 grep -v '^ *+' conftest.er1 >conftest.err
25109 rm -f conftest.er1
25110 cat conftest.err >&5
25111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25112 (exit $ac_status); } && {
25113 test -z "$ac_c_werror_flag" ||
25114 test ! -s conftest.err
25115 } && test -s conftest$ac_exeext && {
25116 test "$cross_compiling" = yes ||
25117 $as_test_x conftest$ac_exeext
25118 }; then
25119 eval "$as_ac_var=yes"
25120 else
25121 $as_echo "$as_me: failed program was:" >&5
25122 sed 's/^/| /' conftest.$ac_ext >&5
25123
25124 eval "$as_ac_var=no"
25125 fi
25126
25127 rm -rf conftest.dSYM
25128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25129 conftest$ac_exeext conftest.$ac_ext
25130 fi
25131 ac_res=`eval 'as_val=${'$as_ac_var'}
25132 $as_echo "$as_val"'`
25133 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25134 $as_echo "$ac_res" >&6; }
25135 if test `eval 'as_val=${'$as_ac_var'}
25136 $as_echo "$as_val"'` = yes; then
25137 cat >>confdefs.h <<_ACEOF
25138 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25139 _ACEOF
25140
25141 fi
25142 done
25143
25144 if test "x$ac_cv_func_fork" = xyes; then
25145 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
25146 $as_echo_n "checking for working fork... " >&6; }
25147 if test "${ac_cv_func_fork_works+set}" = set; then
25148 $as_echo_n "(cached) " >&6
25149 else
25150 if test "$cross_compiling" = yes; then
25151 ac_cv_func_fork_works=cross
25152 else
25153 cat >conftest.$ac_ext <<_ACEOF
25154 /* confdefs.h. */
25155 _ACEOF
25156 cat confdefs.h >>conftest.$ac_ext
25157 cat >>conftest.$ac_ext <<_ACEOF
25158 /* end confdefs.h. */
25159 $ac_includes_default
25160 int
25161 main ()
25162 {
25163
25164 /* By Ruediger Kuhlmann. */
25165 return fork () < 0;
25166
25167 ;
25168 return 0;
25169 }
25170 _ACEOF
25171 rm -f conftest$ac_exeext
25172 if { (ac_try="$ac_link"
25173 case "(($ac_try" in
25174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25175 *) ac_try_echo=$ac_try;;
25176 esac
25177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25178 $as_echo "$ac_try_echo") >&5
25179 (eval "$ac_link") 2>&5
25180 ac_status=$?
25181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25182 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25183 { (case "(($ac_try" in
25184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25185 *) ac_try_echo=$ac_try;;
25186 esac
25187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25188 $as_echo "$ac_try_echo") >&5
25189 (eval "$ac_try") 2>&5
25190 ac_status=$?
25191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25192 (exit $ac_status); }; }; then
25193 ac_cv_func_fork_works=yes
25194 else
25195 $as_echo "$as_me: program exited with status $ac_status" >&5
25196 $as_echo "$as_me: failed program was:" >&5
25197 sed 's/^/| /' conftest.$ac_ext >&5
25198
25199 ( exit $ac_status )
25200 ac_cv_func_fork_works=no
25201 fi
25202 rm -rf conftest.dSYM
25203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25204 fi
25205
25206
25207 fi
25208 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25209 $as_echo "$ac_cv_func_fork_works" >&6; }
25210
25211 else
25212 ac_cv_func_fork_works=$ac_cv_func_fork
25213 fi
25214 if test "x$ac_cv_func_fork_works" = xcross; then
25215 case $host in
25216 *-*-amigaos* | *-*-msdosdjgpp*)
25217 # Override, as these systems have only a dummy fork() stub
25218 ac_cv_func_fork_works=no
25219 ;;
25220 *)
25221 ac_cv_func_fork_works=yes
25222 ;;
25223 esac
25224 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25225 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25226 fi
25227 ac_cv_func_vfork_works=$ac_cv_func_vfork
25228 if test "x$ac_cv_func_vfork" = xyes; then
25229 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
25230 $as_echo_n "checking for working vfork... " >&6; }
25231 if test "${ac_cv_func_vfork_works+set}" = set; then
25232 $as_echo_n "(cached) " >&6
25233 else
25234 if test "$cross_compiling" = yes; then
25235 ac_cv_func_vfork_works=cross
25236 else
25237 cat >conftest.$ac_ext <<_ACEOF
25238 /* confdefs.h. */
25239 _ACEOF
25240 cat confdefs.h >>conftest.$ac_ext
25241 cat >>conftest.$ac_ext <<_ACEOF
25242 /* end confdefs.h. */
25243 /* Thanks to Paul Eggert for this test. */
25244 $ac_includes_default
25245 #include <sys/wait.h>
25246 #ifdef HAVE_VFORK_H
25247 # include <vfork.h>
25248 #endif
25249 /* On some sparc systems, changes by the child to local and incoming
25250 argument registers are propagated back to the parent. The compiler
25251 is told about this with #include <vfork.h>, but some compilers
25252 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25253 static variable whose address is put into a register that is
25254 clobbered by the vfork. */
25255 static void
25256 #ifdef __cplusplus
25257 sparc_address_test (int arg)
25258 # else
25259 sparc_address_test (arg) int arg;
25260 #endif
25261 {
25262 static pid_t child;
25263 if (!child) {
25264 child = vfork ();
25265 if (child < 0) {
25266 perror ("vfork");
25267 _exit(2);
25268 }
25269 if (!child) {
25270 arg = getpid();
25271 write(-1, "", 0);
25272 _exit (arg);
25273 }
25274 }
25275 }
25276
25277 int
25278 main ()
25279 {
25280 pid_t parent = getpid ();
25281 pid_t child;
25282
25283 sparc_address_test (0);
25284
25285 child = vfork ();
25286
25287 if (child == 0) {
25288 /* Here is another test for sparc vfork register problems. This
25289 test uses lots of local variables, at least as many local
25290 variables as main has allocated so far including compiler
25291 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25292 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25293 reuse the register of parent for one of the local variables,
25294 since it will think that parent can't possibly be used any more
25295 in this routine. Assigning to the local variable will thus
25296 munge parent in the parent process. */
25297 pid_t
25298 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25299 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25300 /* Convince the compiler that p..p7 are live; otherwise, it might
25301 use the same hardware register for all 8 local variables. */
25302 if (p != p1 || p != p2 || p != p3 || p != p4
25303 || p != p5 || p != p6 || p != p7)
25304 _exit(1);
25305
25306 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25307 from child file descriptors. If the child closes a descriptor
25308 before it execs or exits, this munges the parent's descriptor
25309 as well. Test for this by closing stdout in the child. */
25310 _exit(close(fileno(stdout)) != 0);
25311 } else {
25312 int status;
25313 struct stat st;
25314
25315 while (wait(&status) != child)
25316 ;
25317 return (
25318 /* Was there some problem with vforking? */
25319 child < 0
25320
25321 /* Did the child fail? (This shouldn't happen.) */
25322 || status
25323
25324 /* Did the vfork/compiler bug occur? */
25325 || parent != getpid()
25326
25327 /* Did the file descriptor bug occur? */
25328 || fstat(fileno(stdout), &st) != 0
25329 );
25330 }
25331 }
25332 _ACEOF
25333 rm -f conftest$ac_exeext
25334 if { (ac_try="$ac_link"
25335 case "(($ac_try" in
25336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25337 *) ac_try_echo=$ac_try;;
25338 esac
25339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25340 $as_echo "$ac_try_echo") >&5
25341 (eval "$ac_link") 2>&5
25342 ac_status=$?
25343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25344 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25345 { (case "(($ac_try" in
25346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25347 *) ac_try_echo=$ac_try;;
25348 esac
25349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25350 $as_echo "$ac_try_echo") >&5
25351 (eval "$ac_try") 2>&5
25352 ac_status=$?
25353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25354 (exit $ac_status); }; }; then
25355 ac_cv_func_vfork_works=yes
25356 else
25357 $as_echo "$as_me: program exited with status $ac_status" >&5
25358 $as_echo "$as_me: failed program was:" >&5
25359 sed 's/^/| /' conftest.$ac_ext >&5
25360
25361 ( exit $ac_status )
25362 ac_cv_func_vfork_works=no
25363 fi
25364 rm -rf conftest.dSYM
25365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25366 fi
25367
25368
25369 fi
25370 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25371 $as_echo "$ac_cv_func_vfork_works" >&6; }
25372
25373 fi;
25374 if test "x$ac_cv_func_fork_works" = xcross; then
25375 ac_cv_func_vfork_works=$ac_cv_func_vfork
25376 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25377 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25378 fi
25379
25380 if test "x$ac_cv_func_vfork_works" = xyes; then
25381
25382 cat >>confdefs.h <<\_ACEOF
25383 #define HAVE_WORKING_VFORK 1
25384 _ACEOF
25385
25386 else
25387
25388 cat >>confdefs.h <<\_ACEOF
25389 #define vfork fork
25390 _ACEOF
25391
25392 fi
25393 if test "x$ac_cv_func_fork_works" = xyes; then
25394
25395 cat >>confdefs.h <<\_ACEOF
25396 #define HAVE_WORKING_FORK 1
25397 _ACEOF
25398
25399 fi
25400
25401
25402 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
25403 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
25404 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25405 $as_echo_n "(cached) " >&6
25406 else
25407 cat >conftest.$ac_ext <<_ACEOF
25408 /* confdefs.h. */
25409 _ACEOF
25410 cat confdefs.h >>conftest.$ac_ext
25411 cat >>conftest.$ac_ext <<_ACEOF
25412 /* end confdefs.h. */
25413 #include <langinfo.h>
25414 int
25415 main ()
25416 {
25417 char* cs = nl_langinfo(CODESET);
25418 ;
25419 return 0;
25420 }
25421 _ACEOF
25422 rm -f conftest.$ac_objext conftest$ac_exeext
25423 if { (ac_try="$ac_link"
25424 case "(($ac_try" in
25425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25426 *) ac_try_echo=$ac_try;;
25427 esac
25428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25429 $as_echo "$ac_try_echo") >&5
25430 (eval "$ac_link") 2>conftest.er1
25431 ac_status=$?
25432 grep -v '^ *+' conftest.er1 >conftest.err
25433 rm -f conftest.er1
25434 cat conftest.err >&5
25435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25436 (exit $ac_status); } && {
25437 test -z "$ac_c_werror_flag" ||
25438 test ! -s conftest.err
25439 } && test -s conftest$ac_exeext && {
25440 test "$cross_compiling" = yes ||
25441 $as_test_x conftest$ac_exeext
25442 }; then
25443 emacs_cv_langinfo_codeset=yes
25444 else
25445 $as_echo "$as_me: failed program was:" >&5
25446 sed 's/^/| /' conftest.$ac_ext >&5
25447
25448 emacs_cv_langinfo_codeset=no
25449 fi
25450
25451 rm -rf conftest.dSYM
25452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25453 conftest$ac_exeext conftest.$ac_ext
25454
25455 fi
25456 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
25457 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25458 if test $emacs_cv_langinfo_codeset = yes; then
25459
25460 cat >>confdefs.h <<\_ACEOF
25461 #define HAVE_LANGINFO_CODESET 1
25462 _ACEOF
25463
25464 fi
25465
25466 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
25467 $as_echo_n "checking for size_t... " >&6; }
25468 if test "${ac_cv_type_size_t+set}" = set; then
25469 $as_echo_n "(cached) " >&6
25470 else
25471 ac_cv_type_size_t=no
25472 cat >conftest.$ac_ext <<_ACEOF
25473 /* confdefs.h. */
25474 _ACEOF
25475 cat confdefs.h >>conftest.$ac_ext
25476 cat >>conftest.$ac_ext <<_ACEOF
25477 /* end confdefs.h. */
25478 $ac_includes_default
25479 int
25480 main ()
25481 {
25482 if (sizeof (size_t))
25483 return 0;
25484 ;
25485 return 0;
25486 }
25487 _ACEOF
25488 rm -f conftest.$ac_objext
25489 if { (ac_try="$ac_compile"
25490 case "(($ac_try" in
25491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25492 *) ac_try_echo=$ac_try;;
25493 esac
25494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25495 $as_echo "$ac_try_echo") >&5
25496 (eval "$ac_compile") 2>conftest.er1
25497 ac_status=$?
25498 grep -v '^ *+' conftest.er1 >conftest.err
25499 rm -f conftest.er1
25500 cat conftest.err >&5
25501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25502 (exit $ac_status); } && {
25503 test -z "$ac_c_werror_flag" ||
25504 test ! -s conftest.err
25505 } && test -s conftest.$ac_objext; then
25506 cat >conftest.$ac_ext <<_ACEOF
25507 /* confdefs.h. */
25508 _ACEOF
25509 cat confdefs.h >>conftest.$ac_ext
25510 cat >>conftest.$ac_ext <<_ACEOF
25511 /* end confdefs.h. */
25512 $ac_includes_default
25513 int
25514 main ()
25515 {
25516 if (sizeof ((size_t)))
25517 return 0;
25518 ;
25519 return 0;
25520 }
25521 _ACEOF
25522 rm -f conftest.$ac_objext
25523 if { (ac_try="$ac_compile"
25524 case "(($ac_try" in
25525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25526 *) ac_try_echo=$ac_try;;
25527 esac
25528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25529 $as_echo "$ac_try_echo") >&5
25530 (eval "$ac_compile") 2>conftest.er1
25531 ac_status=$?
25532 grep -v '^ *+' conftest.er1 >conftest.err
25533 rm -f conftest.er1
25534 cat conftest.err >&5
25535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25536 (exit $ac_status); } && {
25537 test -z "$ac_c_werror_flag" ||
25538 test ! -s conftest.err
25539 } && test -s conftest.$ac_objext; then
25540 :
25541 else
25542 $as_echo "$as_me: failed program was:" >&5
25543 sed 's/^/| /' conftest.$ac_ext >&5
25544
25545 ac_cv_type_size_t=yes
25546 fi
25547
25548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25549 else
25550 $as_echo "$as_me: failed program was:" >&5
25551 sed 's/^/| /' conftest.$ac_ext >&5
25552
25553
25554 fi
25555
25556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25557 fi
25558 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25559 $as_echo "$ac_cv_type_size_t" >&6; }
25560 if test $ac_cv_type_size_t = yes; then
25561
25562 cat >>confdefs.h <<_ACEOF
25563 #define HAVE_SIZE_T 1
25564 _ACEOF
25565
25566
25567 fi
25568
25569
25570 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
25571 $as_echo_n "checking for mbstate_t... " >&6; }
25572 if test "${ac_cv_type_mbstate_t+set}" = set; then
25573 $as_echo_n "(cached) " >&6
25574 else
25575 cat >conftest.$ac_ext <<_ACEOF
25576 /* confdefs.h. */
25577 _ACEOF
25578 cat confdefs.h >>conftest.$ac_ext
25579 cat >>conftest.$ac_ext <<_ACEOF
25580 /* end confdefs.h. */
25581 $ac_includes_default
25582 # include <wchar.h>
25583 int
25584 main ()
25585 {
25586 mbstate_t x; return sizeof x;
25587 ;
25588 return 0;
25589 }
25590 _ACEOF
25591 rm -f conftest.$ac_objext
25592 if { (ac_try="$ac_compile"
25593 case "(($ac_try" in
25594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25595 *) ac_try_echo=$ac_try;;
25596 esac
25597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25598 $as_echo "$ac_try_echo") >&5
25599 (eval "$ac_compile") 2>conftest.er1
25600 ac_status=$?
25601 grep -v '^ *+' conftest.er1 >conftest.err
25602 rm -f conftest.er1
25603 cat conftest.err >&5
25604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25605 (exit $ac_status); } && {
25606 test -z "$ac_c_werror_flag" ||
25607 test ! -s conftest.err
25608 } && test -s conftest.$ac_objext; then
25609 ac_cv_type_mbstate_t=yes
25610 else
25611 $as_echo "$as_me: failed program was:" >&5
25612 sed 's/^/| /' conftest.$ac_ext >&5
25613
25614 ac_cv_type_mbstate_t=no
25615 fi
25616
25617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25618 fi
25619 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
25620 $as_echo "$ac_cv_type_mbstate_t" >&6; }
25621 if test $ac_cv_type_mbstate_t = yes; then
25622
25623 cat >>confdefs.h <<\_ACEOF
25624 #define HAVE_MBSTATE_T 1
25625 _ACEOF
25626
25627 else
25628
25629 cat >>confdefs.h <<\_ACEOF
25630 #define mbstate_t int
25631 _ACEOF
25632
25633 fi
25634
25635 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
25636 $as_echo_n "checking for C restrict keyword... " >&6; }
25637 if test "${emacs_cv_c_restrict+set}" = set; then
25638 $as_echo_n "(cached) " >&6
25639 else
25640 cat >conftest.$ac_ext <<_ACEOF
25641 /* confdefs.h. */
25642 _ACEOF
25643 cat confdefs.h >>conftest.$ac_ext
25644 cat >>conftest.$ac_ext <<_ACEOF
25645 /* end confdefs.h. */
25646 void fred (int *restrict x);
25647 int
25648 main ()
25649 {
25650
25651 ;
25652 return 0;
25653 }
25654 _ACEOF
25655 rm -f conftest.$ac_objext
25656 if { (ac_try="$ac_compile"
25657 case "(($ac_try" in
25658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25659 *) ac_try_echo=$ac_try;;
25660 esac
25661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25662 $as_echo "$ac_try_echo") >&5
25663 (eval "$ac_compile") 2>conftest.er1
25664 ac_status=$?
25665 grep -v '^ *+' conftest.er1 >conftest.err
25666 rm -f conftest.er1
25667 cat conftest.err >&5
25668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25669 (exit $ac_status); } && {
25670 test -z "$ac_c_werror_flag" ||
25671 test ! -s conftest.err
25672 } && test -s conftest.$ac_objext; then
25673 emacs_cv_c_restrict=yes
25674 else
25675 $as_echo "$as_me: failed program was:" >&5
25676 sed 's/^/| /' conftest.$ac_ext >&5
25677
25678 cat >conftest.$ac_ext <<_ACEOF
25679 /* confdefs.h. */
25680 _ACEOF
25681 cat confdefs.h >>conftest.$ac_ext
25682 cat >>conftest.$ac_ext <<_ACEOF
25683 /* end confdefs.h. */
25684 void fred (int *__restrict x);
25685 int
25686 main ()
25687 {
25688
25689 ;
25690 return 0;
25691 }
25692 _ACEOF
25693 rm -f conftest.$ac_objext
25694 if { (ac_try="$ac_compile"
25695 case "(($ac_try" in
25696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25697 *) ac_try_echo=$ac_try;;
25698 esac
25699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25700 $as_echo "$ac_try_echo") >&5
25701 (eval "$ac_compile") 2>conftest.er1
25702 ac_status=$?
25703 grep -v '^ *+' conftest.er1 >conftest.err
25704 rm -f conftest.er1
25705 cat conftest.err >&5
25706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25707 (exit $ac_status); } && {
25708 test -z "$ac_c_werror_flag" ||
25709 test ! -s conftest.err
25710 } && test -s conftest.$ac_objext; then
25711 emacs_cv_c_restrict=__restrict
25712 else
25713 $as_echo "$as_me: failed program was:" >&5
25714 sed 's/^/| /' conftest.$ac_ext >&5
25715
25716 emacs_cv_c_restrict=no
25717 fi
25718
25719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25720 fi
25721
25722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25723 fi
25724 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
25725 $as_echo "$emacs_cv_c_restrict" >&6; }
25726 case "$emacs_cv_c_restrict" in
25727 yes) emacs_restrict=restrict;;
25728 no) emacs_restrict="";;
25729 *) emacs_restrict="$emacs_cv_c_restrict";;
25730 esac
25731 if test "$emacs_restrict" != __restrict; then
25732
25733 cat >>confdefs.h <<_ACEOF
25734 #define __restrict $emacs_restrict
25735 _ACEOF
25736
25737 fi
25738
25739 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
25740 $as_echo_n "checking for C restricted array declarations... " >&6; }
25741 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25742 $as_echo_n "(cached) " >&6
25743 else
25744 cat >conftest.$ac_ext <<_ACEOF
25745 /* confdefs.h. */
25746 _ACEOF
25747 cat confdefs.h >>conftest.$ac_ext
25748 cat >>conftest.$ac_ext <<_ACEOF
25749 /* end confdefs.h. */
25750 void fred (int x[__restrict]);
25751 int
25752 main ()
25753 {
25754
25755 ;
25756 return 0;
25757 }
25758 _ACEOF
25759 rm -f conftest.$ac_objext
25760 if { (ac_try="$ac_compile"
25761 case "(($ac_try" in
25762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25763 *) ac_try_echo=$ac_try;;
25764 esac
25765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25766 $as_echo "$ac_try_echo") >&5
25767 (eval "$ac_compile") 2>conftest.er1
25768 ac_status=$?
25769 grep -v '^ *+' conftest.er1 >conftest.err
25770 rm -f conftest.er1
25771 cat conftest.err >&5
25772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25773 (exit $ac_status); } && {
25774 test -z "$ac_c_werror_flag" ||
25775 test ! -s conftest.err
25776 } && test -s conftest.$ac_objext; then
25777 emacs_cv_c_restrict_arr=yes
25778 else
25779 $as_echo "$as_me: failed program was:" >&5
25780 sed 's/^/| /' conftest.$ac_ext >&5
25781
25782 emacs_cv_c_restrict_arr=no
25783 fi
25784
25785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25786 fi
25787 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
25788 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25789 if test "$emacs_cv_c_restrict_arr" = yes; then
25790
25791 cat >>confdefs.h <<\_ACEOF
25792 #define __restrict_arr __restrict
25793 _ACEOF
25794
25795 fi
25796
25797
25798
25799 # Set up the CFLAGS for real compilation, so we can substitute it.
25800 CFLAGS="$REAL_CFLAGS"
25801 CPPFLAGS="$REAL_CPPFLAGS"
25802
25803 #### Find out which version of Emacs this is.
25804 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25805 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
25806 if test x"${version}" = x; then
25807 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
25808 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
25809 { (exit 1); exit 1; }; }
25810 fi
25811 if test x"${version}" != x"$PACKAGE_VERSION"; then
25812 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
25813 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
25814 fi
25815
25816 ### Specify what sort of things we'll be editing into Makefile and config.h.
25817 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25818
25819
25820
25821
25822
25823
25824
25825
25826
25827
25828
25829
25830
25831
25832
25833
25834
25835
25836
25837
25838
25839
25840
25841
25842
25843
25844
25845
25846
25847
25848
25849
25850
25851
25852
25853
25854
25855
25856
25857
25858
25859
25860
25861
25862 cat >>confdefs.h <<_ACEOF
25863 #define EMACS_CONFIGURATION "${canonical}"
25864 _ACEOF
25865
25866
25867 cat >>confdefs.h <<_ACEOF
25868 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
25869 _ACEOF
25870
25871
25872 cat >>confdefs.h <<_ACEOF
25873 #define config_machfile "${machfile}"
25874 _ACEOF
25875
25876
25877 cat >>confdefs.h <<_ACEOF
25878 #define config_opsysfile "${opsysfile}"
25879 _ACEOF
25880
25881
25882 cat >>confdefs.h <<_ACEOF
25883 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
25884 _ACEOF
25885
25886
25887 cat >>confdefs.h <<_ACEOF
25888 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
25889 _ACEOF
25890
25891
25892 cat >>confdefs.h <<_ACEOF
25893 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
25894 _ACEOF
25895
25896
25897 cat >>confdefs.h <<_ACEOF
25898 #define UNEXEC_SRC ${UNEXEC_SRC}
25899 _ACEOF
25900
25901
25902 XMENU_OBJ=
25903 XOBJ=
25904 if test "${HAVE_X_WINDOWS}" = "yes" ; then
25905
25906 cat >>confdefs.h <<\_ACEOF
25907 #define HAVE_X_WINDOWS 1
25908 _ACEOF
25909
25910 XMENU_OBJ=xmenu.o
25911 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
25912 fi
25913
25914
25915
25916 if test "${USE_X_TOOLKIT}" != "none" ; then
25917
25918 cat >>confdefs.h <<\_ACEOF
25919 #define USE_X_TOOLKIT 1
25920 _ACEOF
25921
25922 if test "${USE_X_TOOLKIT}" = "LUCID"; then
25923
25924 cat >>confdefs.h <<\_ACEOF
25925 #define USE_LUCID 1
25926 _ACEOF
25927
25928 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
25929
25930 cat >>confdefs.h <<\_ACEOF
25931 #define USE_MOTIF 1
25932 _ACEOF
25933
25934 fi
25935 fi
25936 if test "${HAVE_X11}" = "yes" ; then
25937
25938 cat >>confdefs.h <<\_ACEOF
25939 #define HAVE_X11 1
25940 _ACEOF
25941
25942 fi
25943 if test "${HAVE_MENUS}" = "yes" ; then
25944
25945 cat >>confdefs.h <<\_ACEOF
25946 #define HAVE_MENUS 1
25947 _ACEOF
25948
25949 fi
25950 if test "${GNU_MALLOC}" = "yes" ; then
25951
25952 cat >>confdefs.h <<\_ACEOF
25953 #define GNU_MALLOC 1
25954 _ACEOF
25955
25956 fi
25957 if test "${REL_ALLOC}" = "yes" ; then
25958
25959 cat >>confdefs.h <<\_ACEOF
25960 #define REL_ALLOC 1
25961 _ACEOF
25962
25963 fi
25964
25965
25966
25967
25968
25969
25970 #### Report on what we decided to do.
25971 #### Report GTK as a toolkit, even if it doesn't use Xt.
25972 #### It makes printing result more understandable as using GTK sets
25973 #### toolkit_scroll_bars to yes by default.
25974 if test "${HAVE_GTK}" = "yes"; then
25975 USE_X_TOOLKIT=GTK
25976 fi
25977
25978 echo "
25979 Configured for \`${canonical}'.
25980
25981 Where should the build process find the source code? ${srcdir}
25982 What operating system and machine description files should Emacs use?
25983 \`${opsysfile}' and \`${machfile}'
25984 What compiler should emacs be built with? ${CC} ${CFLAGS}
25985 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
25986 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
25987 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
25988 What window system should Emacs use? ${window_system}
25989 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
25990
25991 if test -n "${x_includes}"; then
25992 echo " Where do we find X Windows header files? ${x_includes}"
25993 else
25994 echo " Where do we find X Windows header files? Standard dirs"
25995 fi
25996 if test -n "${x_libraries}"; then
25997 echo " Where do we find X Windows libraries? ${x_libraries}"
25998 else
25999 echo " Where do we find X Windows libraries? Standard dirs"
26000 fi
26001
26002 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
26003 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
26004 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
26005 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
26006 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
26007 echo " Does Emacs use -lpng? ${HAVE_PNG}"
26008 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
26009 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
26010 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
26011 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
26012 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
26013
26014 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
26015 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
26016 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
26017 echo " Does Emacs use -lxft? ${HAVE_XFT}"
26018
26019 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26020 echo
26021
26022 if test $USE_XASSERTS = yes; then
26023 echo " Compiling with asserts turned on."
26024 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
26025 fi
26026
26027 echo
26028
26029 if test "$HAVE_NS" = "yes"; then
26030 echo
26031 echo "You must run \"make install\" in order to test the built application.
26032 The installed application will go to nextstep/Emacs.app and can be
26033 run or moved from there."
26034 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26035 echo "The application will be fully self-contained."
26036 else
26037 echo "The lisp resources for the application will be installed under ${prefix}.
26038 You may need to run \"make install\" with sudo. The application will fail
26039 to run if these resources are not installed."
26040 fi
26041 echo
26042 fi
26043
26044 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
26045 echo "D-Bus integration has been tested for GNU/Linux only."
26046 echo
26047 fi
26048
26049
26050 # Remove any trailing slashes in these variables.
26051 test "${prefix}" != NONE &&
26052 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26053 test "${exec_prefix}" != NONE &&
26054 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26055
26056 # Now get this: Some word that is part of the ${srcdir} directory name
26057 # or the ${configuration} value might, just might, happen to be an
26058 # identifier like `sun4' or `i386' or something, and be predefined by
26059 # the C preprocessor to some helpful value like 1, or maybe the empty
26060 # string. Needless to say consequent macro substitutions are less
26061 # than conducive to the makefile finding the correct directory.
26062 cpp_undefs="`echo $srcdir $configuration $canonical |
26063 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
26064 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
26065
26066 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
26067 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
26068 ## from Makefile.c can correctly provide the arg `-traditional' to the
26069 ## C preprocessor.
26070
26071 cat >conftest.$ac_ext <<_ACEOF
26072 /* confdefs.h. */
26073 _ACEOF
26074 cat confdefs.h >>conftest.$ac_ext
26075 cat >>conftest.$ac_ext <<_ACEOF
26076 /* end confdefs.h. */
26077 yes..yes
26078 _ACEOF
26079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26080 $EGREP "yes..yes" >/dev/null 2>&1; then
26081 CPP_NEED_TRADITIONAL=no
26082 else
26083 CPP_NEED_TRADITIONAL=yes
26084 fi
26085 rm -f conftest*
26086
26087
26088 ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile.c:src/Makefile.in lwlib/Makefile lisp/Makefile leim/Makefile"
26089
26090 ac_config_commands="$ac_config_commands default"
26091
26092 cat >confcache <<\_ACEOF
26093 # This file is a shell script that caches the results of configure
26094 # tests run on this system so they can be shared between configure
26095 # scripts and configure runs, see configure's option --config-cache.
26096 # It is not useful on other systems. If it contains results you don't
26097 # want to keep, you may remove or edit it.
26098 #
26099 # config.status only pays attention to the cache file if you give it
26100 # the --recheck option to rerun configure.
26101 #
26102 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26103 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26104 # following values.
26105
26106 _ACEOF
26107
26108 # The following way of writing the cache mishandles newlines in values,
26109 # but we know of no workaround that is simple, portable, and efficient.
26110 # So, we kill variables containing newlines.
26111 # Ultrix sh set writes to stderr and can't be redirected directly,
26112 # and sets the high bit in the cache file unless we assign to the vars.
26113 (
26114 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26115 eval ac_val=\$$ac_var
26116 case $ac_val in #(
26117 *${as_nl}*)
26118 case $ac_var in #(
26119 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26120 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26121 esac
26122 case $ac_var in #(
26123 _ | IFS | as_nl) ;; #(
26124 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26125 *) $as_unset $ac_var ;;
26126 esac ;;
26127 esac
26128 done
26129
26130 (set) 2>&1 |
26131 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26132 *${as_nl}ac_space=\ *)
26133 # `set' does not quote correctly, so add quotes (double-quote
26134 # substitution turns \\\\ into \\, and sed turns \\ into \).
26135 sed -n \
26136 "s/'/'\\\\''/g;
26137 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26138 ;; #(
26139 *)
26140 # `set' quotes correctly as required by POSIX, so do not add quotes.
26141 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26142 ;;
26143 esac |
26144 sort
26145 ) |
26146 sed '
26147 /^ac_cv_env_/b end
26148 t clear
26149 :clear
26150 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26151 t end
26152 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26153 :end' >>confcache
26154 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26155 if test -w "$cache_file"; then
26156 test "x$cache_file" != "x/dev/null" &&
26157 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26158 $as_echo "$as_me: updating cache $cache_file" >&6;}
26159 cat confcache >$cache_file
26160 else
26161 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26162 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26163 fi
26164 fi
26165 rm -f confcache
26166
26167 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26168 # Let make expand exec_prefix.
26169 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26170
26171 DEFS=-DHAVE_CONFIG_H
26172
26173 ac_libobjs=
26174 ac_ltlibobjs=
26175 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26176 # 1. Remove the extension, and $U if already installed.
26177 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26178 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26179 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26180 # will be set to the directory where LIBOBJS objects are built.
26181 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26182 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26183 done
26184 LIBOBJS=$ac_libobjs
26185
26186 LTLIBOBJS=$ac_ltlibobjs
26187
26188
26189
26190 : ${CONFIG_STATUS=./config.status}
26191 ac_write_fail=0
26192 ac_clean_files_save=$ac_clean_files
26193 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26194 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26195 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26196 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26197 #! $SHELL
26198 # Generated by $as_me.
26199 # Run this file to recreate the current configuration.
26200 # Compiler output produced by configure, useful for debugging
26201 # configure, is in config.log if it exists.
26202
26203 debug=false
26204 ac_cs_recheck=false
26205 ac_cs_silent=false
26206 SHELL=\${CONFIG_SHELL-$SHELL}
26207 _ACEOF
26208
26209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26210 ## --------------------- ##
26211 ## M4sh Initialization. ##
26212 ## --------------------- ##
26213
26214 # Be more Bourne compatible
26215 DUALCASE=1; export DUALCASE # for MKS sh
26216 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26217 emulate sh
26218 NULLCMD=:
26219 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26220 # is contrary to our usage. Disable this feature.
26221 alias -g '${1+"$@"}'='"$@"'
26222 setopt NO_GLOB_SUBST
26223 else
26224 case `(set -o) 2>/dev/null` in
26225 *posix*) set -o posix ;;
26226 esac
26227
26228 fi
26229
26230
26231
26232
26233 # PATH needs CR
26234 # Avoid depending upon Character Ranges.
26235 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26236 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26237 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26238 as_cr_digits='0123456789'
26239 as_cr_alnum=$as_cr_Letters$as_cr_digits
26240
26241 as_nl='
26242 '
26243 export as_nl
26244 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26245 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26246 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26247 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26248 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26249 as_echo='printf %s\n'
26250 as_echo_n='printf %s'
26251 else
26252 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26253 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26254 as_echo_n='/usr/ucb/echo -n'
26255 else
26256 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26257 as_echo_n_body='eval
26258 arg=$1;
26259 case $arg in
26260 *"$as_nl"*)
26261 expr "X$arg" : "X\\(.*\\)$as_nl";
26262 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26263 esac;
26264 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26265 '
26266 export as_echo_n_body
26267 as_echo_n='sh -c $as_echo_n_body as_echo'
26268 fi
26269 export as_echo_body
26270 as_echo='sh -c $as_echo_body as_echo'
26271 fi
26272
26273 # The user is always right.
26274 if test "${PATH_SEPARATOR+set}" != set; then
26275 PATH_SEPARATOR=:
26276 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26277 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26278 PATH_SEPARATOR=';'
26279 }
26280 fi
26281
26282 # Support unset when possible.
26283 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26284 as_unset=unset
26285 else
26286 as_unset=false
26287 fi
26288
26289
26290 # IFS
26291 # We need space, tab and new line, in precisely that order. Quoting is
26292 # there to prevent editors from complaining about space-tab.
26293 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26294 # splitting by setting IFS to empty value.)
26295 IFS=" "" $as_nl"
26296
26297 # Find who we are. Look in the path if we contain no directory separator.
26298 case $0 in
26299 *[\\/]* ) as_myself=$0 ;;
26300 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26301 for as_dir in $PATH
26302 do
26303 IFS=$as_save_IFS
26304 test -z "$as_dir" && as_dir=.
26305 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26306 done
26307 IFS=$as_save_IFS
26308
26309 ;;
26310 esac
26311 # We did not find ourselves, most probably we were run as `sh COMMAND'
26312 # in which case we are not to be found in the path.
26313 if test "x$as_myself" = x; then
26314 as_myself=$0
26315 fi
26316 if test ! -f "$as_myself"; then
26317 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26318 { (exit 1); exit 1; }
26319 fi
26320
26321 # Work around bugs in pre-3.0 UWIN ksh.
26322 for as_var in ENV MAIL MAILPATH
26323 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26324 done
26325 PS1='$ '
26326 PS2='> '
26327 PS4='+ '
26328
26329 # NLS nuisances.
26330 LC_ALL=C
26331 export LC_ALL
26332 LANGUAGE=C
26333 export LANGUAGE
26334
26335 # Required to use basename.
26336 if expr a : '\(a\)' >/dev/null 2>&1 &&
26337 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26338 as_expr=expr
26339 else
26340 as_expr=false
26341 fi
26342
26343 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26344 as_basename=basename
26345 else
26346 as_basename=false
26347 fi
26348
26349
26350 # Name of the executable.
26351 as_me=`$as_basename -- "$0" ||
26352 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26353 X"$0" : 'X\(//\)$' \| \
26354 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26355 $as_echo X/"$0" |
26356 sed '/^.*\/\([^/][^/]*\)\/*$/{
26357 s//\1/
26358 q
26359 }
26360 /^X\/\(\/\/\)$/{
26361 s//\1/
26362 q
26363 }
26364 /^X\/\(\/\).*/{
26365 s//\1/
26366 q
26367 }
26368 s/.*/./; q'`
26369
26370 # CDPATH.
26371 $as_unset CDPATH
26372
26373
26374
26375 as_lineno_1=$LINENO
26376 as_lineno_2=$LINENO
26377 test "x$as_lineno_1" != "x$as_lineno_2" &&
26378 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26379
26380 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26381 # uniformly replaced by the line number. The first 'sed' inserts a
26382 # line-number line after each line using $LINENO; the second 'sed'
26383 # does the real work. The second script uses 'N' to pair each
26384 # line-number line with the line containing $LINENO, and appends
26385 # trailing '-' during substitution so that $LINENO is not a special
26386 # case at line end.
26387 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26388 # scripts with optimization help from Paolo Bonzini. Blame Lee
26389 # E. McMahon (1931-1989) for sed's syntax. :-)
26390 sed -n '
26391 p
26392 /[$]LINENO/=
26393 ' <$as_myself |
26394 sed '
26395 s/[$]LINENO.*/&-/
26396 t lineno
26397 b
26398 :lineno
26399 N
26400 :loop
26401 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26402 t loop
26403 s/-\n.*//
26404 ' >$as_me.lineno &&
26405 chmod +x "$as_me.lineno" ||
26406 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26407 { (exit 1); exit 1; }; }
26408
26409 # Don't try to exec as it changes $[0], causing all sort of problems
26410 # (the dirname of $[0] is not the place where we might find the
26411 # original and so on. Autoconf is especially sensitive to this).
26412 . "./$as_me.lineno"
26413 # Exit status is that of the last command.
26414 exit
26415 }
26416
26417
26418 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26419 as_dirname=dirname
26420 else
26421 as_dirname=false
26422 fi
26423
26424 ECHO_C= ECHO_N= ECHO_T=
26425 case `echo -n x` in
26426 -n*)
26427 case `echo 'x\c'` in
26428 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26429 *) ECHO_C='\c';;
26430 esac;;
26431 *)
26432 ECHO_N='-n';;
26433 esac
26434 if expr a : '\(a\)' >/dev/null 2>&1 &&
26435 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26436 as_expr=expr
26437 else
26438 as_expr=false
26439 fi
26440
26441 rm -f conf$$ conf$$.exe conf$$.file
26442 if test -d conf$$.dir; then
26443 rm -f conf$$.dir/conf$$.file
26444 else
26445 rm -f conf$$.dir
26446 mkdir conf$$.dir 2>/dev/null
26447 fi
26448 if (echo >conf$$.file) 2>/dev/null; then
26449 if ln -s conf$$.file conf$$ 2>/dev/null; then
26450 as_ln_s='ln -s'
26451 # ... but there are two gotchas:
26452 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26453 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26454 # In both cases, we have to default to `cp -p'.
26455 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26456 as_ln_s='cp -p'
26457 elif ln conf$$.file conf$$ 2>/dev/null; then
26458 as_ln_s=ln
26459 else
26460 as_ln_s='cp -p'
26461 fi
26462 else
26463 as_ln_s='cp -p'
26464 fi
26465 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26466 rmdir conf$$.dir 2>/dev/null
26467
26468 if mkdir -p . 2>/dev/null; then
26469 as_mkdir_p=:
26470 else
26471 test -d ./-p && rmdir ./-p
26472 as_mkdir_p=false
26473 fi
26474
26475 if test -x / >/dev/null 2>&1; then
26476 as_test_x='test -x'
26477 else
26478 if ls -dL / >/dev/null 2>&1; then
26479 as_ls_L_option=L
26480 else
26481 as_ls_L_option=
26482 fi
26483 as_test_x='
26484 eval sh -c '\''
26485 if test -d "$1"; then
26486 test -d "$1/.";
26487 else
26488 case $1 in
26489 -*)set "./$1";;
26490 esac;
26491 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26492 ???[sx]*):;;*)false;;esac;fi
26493 '\'' sh
26494 '
26495 fi
26496 as_executable_p=$as_test_x
26497
26498 # Sed expression to map a string onto a valid CPP name.
26499 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26500
26501 # Sed expression to map a string onto a valid variable name.
26502 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26503
26504
26505 exec 6>&1
26506
26507 # Save the log message, to keep $[0] and so on meaningful, and to
26508 # report actual input values of CONFIG_FILES etc. instead of their
26509 # values after options handling.
26510 ac_log="
26511 This file was extended by emacs $as_me 24.0.50, which was
26512 generated by GNU Autoconf 2.62. Invocation command line was
26513
26514 CONFIG_FILES = $CONFIG_FILES
26515 CONFIG_HEADERS = $CONFIG_HEADERS
26516 CONFIG_LINKS = $CONFIG_LINKS
26517 CONFIG_COMMANDS = $CONFIG_COMMANDS
26518 $ $0 $@
26519
26520 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26521 "
26522
26523 _ACEOF
26524
26525 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26526 # Files that config.status was made for.
26527 config_files="$ac_config_files"
26528 config_headers="$ac_config_headers"
26529 config_commands="$ac_config_commands"
26530
26531 _ACEOF
26532
26533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26534 ac_cs_usage="\
26535 \`$as_me' instantiates files from templates according to the
26536 current configuration.
26537
26538 Usage: $0 [OPTIONS] [FILE]...
26539
26540 -h, --help print this help, then exit
26541 -V, --version print version number and configuration settings, then exit
26542 -q, --quiet do not print progress messages
26543 -d, --debug don't remove temporary files
26544 --recheck update $as_me by reconfiguring in the same conditions
26545 --file=FILE[:TEMPLATE]
26546 instantiate the configuration file FILE
26547 --header=FILE[:TEMPLATE]
26548 instantiate the configuration header FILE
26549
26550 Configuration files:
26551 $config_files
26552
26553 Configuration headers:
26554 $config_headers
26555
26556 Configuration commands:
26557 $config_commands
26558
26559 Report bugs to <bug-autoconf@gnu.org>."
26560
26561 _ACEOF
26562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26563 ac_cs_version="\\
26564 emacs config.status 24.0.50
26565 configured by $0, generated by GNU Autoconf 2.62,
26566 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26567
26568 Copyright (C) 2008 Free Software Foundation, Inc.
26569 This config.status script is free software; the Free Software Foundation
26570 gives unlimited permission to copy, distribute and modify it."
26571
26572 ac_pwd='$ac_pwd'
26573 srcdir='$srcdir'
26574 INSTALL='$INSTALL'
26575 test -n "\$AWK" || AWK=awk
26576 _ACEOF
26577
26578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26579 # The default lists apply if the user does not specify any file.
26580 ac_need_defaults=:
26581 while test $# != 0
26582 do
26583 case $1 in
26584 --*=*)
26585 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26586 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26587 ac_shift=:
26588 ;;
26589 *)
26590 ac_option=$1
26591 ac_optarg=$2
26592 ac_shift=shift
26593 ;;
26594 esac
26595
26596 case $ac_option in
26597 # Handling of the options.
26598 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26599 ac_cs_recheck=: ;;
26600 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26601 $as_echo "$ac_cs_version"; exit ;;
26602 --debug | --debu | --deb | --de | --d | -d )
26603 debug=: ;;
26604 --file | --fil | --fi | --f )
26605 $ac_shift
26606 case $ac_optarg in
26607 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26608 esac
26609 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
26610 ac_need_defaults=false;;
26611 --header | --heade | --head | --hea )
26612 $ac_shift
26613 case $ac_optarg in
26614 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26615 esac
26616 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
26617 ac_need_defaults=false;;
26618 --he | --h)
26619 # Conflict between --help and --header
26620 { $as_echo "$as_me: error: ambiguous option: $1
26621 Try \`$0 --help' for more information." >&2
26622 { (exit 1); exit 1; }; };;
26623 --help | --hel | -h )
26624 $as_echo "$ac_cs_usage"; exit ;;
26625 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26626 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26627 ac_cs_silent=: ;;
26628
26629 # This is an error.
26630 -*) { $as_echo "$as_me: error: unrecognized option: $1
26631 Try \`$0 --help' for more information." >&2
26632 { (exit 1); exit 1; }; } ;;
26633
26634 *) ac_config_targets="$ac_config_targets $1"
26635 ac_need_defaults=false ;;
26636
26637 esac
26638 shift
26639 done
26640
26641 ac_configure_extra_args=
26642
26643 if $ac_cs_silent; then
26644 exec 6>/dev/null
26645 ac_configure_extra_args="$ac_configure_extra_args --silent"
26646 fi
26647
26648 _ACEOF
26649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26650 if \$ac_cs_recheck; then
26651 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26652 shift
26653 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26654 CONFIG_SHELL='$SHELL'
26655 export CONFIG_SHELL
26656 exec "\$@"
26657 fi
26658
26659 _ACEOF
26660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26661 exec 5>>config.log
26662 {
26663 echo
26664 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26665 ## Running $as_me. ##
26666 _ASBOX
26667 $as_echo "$ac_log"
26668 } >&5
26669
26670 _ACEOF
26671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26672 #
26673 # INIT-COMMANDS
26674 #
26675 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
26676
26677 _ACEOF
26678
26679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26680
26681 # Handling of arguments.
26682 for ac_config_target in $ac_config_targets
26683 do
26684 case $ac_config_target in
26685 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26686 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26687 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
26688 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
26689 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
26690 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
26691 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
26692 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
26693 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
26694 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
26695 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
26696 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
26697 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26698
26699 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26700 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26701 { (exit 1); exit 1; }; };;
26702 esac
26703 done
26704
26705
26706 # If the user did not use the arguments to specify the items to instantiate,
26707 # then the envvar interface is used. Set only those that are not.
26708 # We use the long form for the default assignment because of an extremely
26709 # bizarre bug on SunOS 4.1.3.
26710 if $ac_need_defaults; then
26711 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26712 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26713 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26714 fi
26715
26716 # Have a temporary directory for convenience. Make it in the build tree
26717 # simply because there is no reason against having it here, and in addition,
26718 # creating and moving files from /tmp can sometimes cause problems.
26719 # Hook for its removal unless debugging.
26720 # Note that there is a small window in which the directory will not be cleaned:
26721 # after its creation but before its name has been assigned to `$tmp'.
26722 $debug ||
26723 {
26724 tmp=
26725 trap 'exit_status=$?
26726 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26727 ' 0
26728 trap '{ (exit 1); exit 1; }' 1 2 13 15
26729 }
26730 # Create a (secure) tmp directory for tmp files.
26731
26732 {
26733 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26734 test -n "$tmp" && test -d "$tmp"
26735 } ||
26736 {
26737 tmp=./conf$$-$RANDOM
26738 (umask 077 && mkdir "$tmp")
26739 } ||
26740 {
26741 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26742 { (exit 1); exit 1; }
26743 }
26744
26745 # Set up the scripts for CONFIG_FILES section.
26746 # No need to generate them if there are no CONFIG_FILES.
26747 # This happens for instance with `./config.status config.h'.
26748 if test -n "$CONFIG_FILES"; then
26749
26750
26751 ac_cr=' '
26752 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26753 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26754 ac_cs_awk_cr='\\r'
26755 else
26756 ac_cs_awk_cr=$ac_cr
26757 fi
26758
26759 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26760 _ACEOF
26761
26762
26763 {
26764 echo "cat >conf$$subs.awk <<_ACEOF" &&
26765 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26766 echo "_ACEOF"
26767 } >conf$$subs.sh ||
26768 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26769 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26770 { (exit 1); exit 1; }; }
26771 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26772 ac_delim='%!_!# '
26773 for ac_last_try in false false false false false :; do
26774 . ./conf$$subs.sh ||
26775 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26776 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26777 { (exit 1); exit 1; }; }
26778
26779 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
26780 break
26781 elif $ac_last_try; then
26782 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26783 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26784 { (exit 1); exit 1; }; }
26785 else
26786 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26787 fi
26788 done
26789 rm -f conf$$subs.sh
26790
26791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26792 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26793 _ACEOF
26794 sed -n '
26795 h
26796 s/^/S["/; s/!.*/"]=/
26797 p
26798 g
26799 s/^[^!]*!//
26800 :repl
26801 t repl
26802 s/'"$ac_delim"'$//
26803 t delim
26804 :nl
26805 h
26806 s/\(.\{148\}\).*/\1/
26807 t more1
26808 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26809 p
26810 n
26811 b repl
26812 :more1
26813 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26814 p
26815 g
26816 s/.\{148\}//
26817 t nl
26818 :delim
26819 h
26820 s/\(.\{148\}\).*/\1/
26821 t more2
26822 s/["\\]/\\&/g; s/^/"/; s/$/"/
26823 p
26824 b
26825 :more2
26826 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26827 p
26828 g
26829 s/.\{148\}//
26830 t delim
26831 ' <conf$$subs.awk | sed '
26832 /^[^""]/{
26833 N
26834 s/\n//
26835 }
26836 ' >>$CONFIG_STATUS || ac_write_fail=1
26837 rm -f conf$$subs.awk
26838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26839 _ACAWK
26840 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26841 for (key in S) S_is_set[key] = 1
26842 FS = "\a"
26843
26844 }
26845 {
26846 line = $ 0
26847 nfields = split(line, field, "@")
26848 substed = 0
26849 len = length(field[1])
26850 for (i = 2; i < nfields; i++) {
26851 key = field[i]
26852 keylen = length(key)
26853 if (S_is_set[key]) {
26854 value = S[key]
26855 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26856 len += length(value) + length(field[++i])
26857 substed = 1
26858 } else
26859 len += 1 + keylen
26860 }
26861
26862 print line
26863 }
26864
26865 _ACAWK
26866 _ACEOF
26867 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26868 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26869 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26870 else
26871 cat
26872 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26873 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
26874 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
26875 { (exit 1); exit 1; }; }
26876 _ACEOF
26877
26878 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26879 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26880 # trailing colons and then remove the whole line if VPATH becomes empty
26881 # (actually we leave an empty line to preserve line numbers).
26882 if test "x$srcdir" = x.; then
26883 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26884 s/:*\$(srcdir):*/:/
26885 s/:*\${srcdir}:*/:/
26886 s/:*@srcdir@:*/:/
26887 s/^\([^=]*=[ ]*\):*/\1/
26888 s/:*$//
26889 s/^[^=]*=[ ]*$//
26890 }'
26891 fi
26892
26893 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26894 fi # test -n "$CONFIG_FILES"
26895
26896 # Set up the scripts for CONFIG_HEADERS section.
26897 # No need to generate them if there are no CONFIG_HEADERS.
26898 # This happens for instance with `./config.status Makefile'.
26899 if test -n "$CONFIG_HEADERS"; then
26900 cat >"$tmp/defines.awk" <<\_ACAWK ||
26901 BEGIN {
26902 _ACEOF
26903
26904 # Transform confdefs.h into an awk script `defines.awk', embedded as
26905 # here-document in config.status, that substitutes the proper values into
26906 # config.h.in to produce config.h.
26907
26908 # Create a delimiter string that does not exist in confdefs.h, to ease
26909 # handling of long lines.
26910 ac_delim='%!_!# '
26911 for ac_last_try in false false :; do
26912 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26913 if test -z "$ac_t"; then
26914 break
26915 elif $ac_last_try; then
26916 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
26917 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
26918 { (exit 1); exit 1; }; }
26919 else
26920 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26921 fi
26922 done
26923
26924 # For the awk script, D is an array of macro values keyed by name,
26925 # likewise P contains macro parameters if any. Preserve backslash
26926 # newline sequences.
26927
26928 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26929 sed -n '
26930 s/.\{148\}/&'"$ac_delim"'/g
26931 t rset
26932 :rset
26933 s/^[ ]*#[ ]*define[ ][ ]*/ /
26934 t def
26935 d
26936 :def
26937 s/\\$//
26938 t bsnl
26939 s/["\\]/\\&/g
26940 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26941 D["\1"]=" \3"/p
26942 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26943 d
26944 :bsnl
26945 s/["\\]/\\&/g
26946 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26947 D["\1"]=" \3\\\\\\n"\\/p
26948 t cont
26949 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26950 t cont
26951 d
26952 :cont
26953 n
26954 s/.\{148\}/&'"$ac_delim"'/g
26955 t clear
26956 :clear
26957 s/\\$//
26958 t bsnlc
26959 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26960 d
26961 :bsnlc
26962 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26963 b cont
26964 ' <confdefs.h | sed '
26965 s/'"$ac_delim"'/"\\\
26966 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26967
26968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26969 for (key in D) D_is_set[key] = 1
26970 FS = "\a"
26971 }
26972 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26973 line = \$ 0
26974 split(line, arg, " ")
26975 if (arg[1] == "#") {
26976 defundef = arg[2]
26977 mac1 = arg[3]
26978 } else {
26979 defundef = substr(arg[1], 2)
26980 mac1 = arg[2]
26981 }
26982 split(mac1, mac2, "(") #)
26983 macro = mac2[1]
26984 if (D_is_set[macro]) {
26985 # Preserve the white space surrounding the "#".
26986 prefix = substr(line, 1, index(line, defundef) - 1)
26987 print prefix "define", macro P[macro] D[macro]
26988 next
26989 } else {
26990 # Replace #undef with comments. This is necessary, for example,
26991 # in the case of _POSIX_SOURCE, which is predefined and required
26992 # on some systems where configure will not decide to define it.
26993 if (defundef == "undef") {
26994 print "/*", line, "*/"
26995 next
26996 }
26997 }
26998 }
26999 { print }
27000 _ACAWK
27001 _ACEOF
27002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27003 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27004 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27005 { (exit 1); exit 1; }; }
27006 fi # test -n "$CONFIG_HEADERS"
27007
27008
27009 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27010 shift
27011 for ac_tag
27012 do
27013 case $ac_tag in
27014 :[FHLC]) ac_mode=$ac_tag; continue;;
27015 esac
27016 case $ac_mode$ac_tag in
27017 :[FHL]*:*);;
27018 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27019 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27020 { (exit 1); exit 1; }; };;
27021 :[FH]-) ac_tag=-:-;;
27022 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27023 esac
27024 ac_save_IFS=$IFS
27025 IFS=:
27026 set x $ac_tag
27027 IFS=$ac_save_IFS
27028 shift
27029 ac_file=$1
27030 shift
27031
27032 case $ac_mode in
27033 :L) ac_source=$1;;
27034 :[FH])
27035 ac_file_inputs=
27036 for ac_f
27037 do
27038 case $ac_f in
27039 -) ac_f="$tmp/stdin";;
27040 *) # Look for the file first in the build tree, then in the source tree
27041 # (if the path is not absolute). The absolute path cannot be DOS-style,
27042 # because $ac_f cannot contain `:'.
27043 test -f "$ac_f" ||
27044 case $ac_f in
27045 [\\/$]*) false;;
27046 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27047 esac ||
27048 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27049 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27050 { (exit 1); exit 1; }; };;
27051 esac
27052 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27053 ac_file_inputs="$ac_file_inputs '$ac_f'"
27054 done
27055
27056 # Let's still pretend it is `configure' which instantiates (i.e., don't
27057 # use $as_me), people would be surprised to read:
27058 # /* config.h. Generated by config.status. */
27059 configure_input='Generated from '`
27060 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27061 `' by configure.'
27062 if test x"$ac_file" != x-; then
27063 configure_input="$ac_file. $configure_input"
27064 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27065 $as_echo "$as_me: creating $ac_file" >&6;}
27066 fi
27067 # Neutralize special characters interpreted by sed in replacement strings.
27068 case $configure_input in #(
27069 *\&* | *\|* | *\\* )
27070 ac_sed_conf_input=`$as_echo "$configure_input" |
27071 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27072 *) ac_sed_conf_input=$configure_input;;
27073 esac
27074
27075 case $ac_tag in
27076 *:-:* | *:-) cat >"$tmp/stdin" \
27077 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27078 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27079 { (exit 1); exit 1; }; } ;;
27080 esac
27081 ;;
27082 esac
27083
27084 ac_dir=`$as_dirname -- "$ac_file" ||
27085 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27086 X"$ac_file" : 'X\(//\)[^/]' \| \
27087 X"$ac_file" : 'X\(//\)$' \| \
27088 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27089 $as_echo X"$ac_file" |
27090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27091 s//\1/
27092 q
27093 }
27094 /^X\(\/\/\)[^/].*/{
27095 s//\1/
27096 q
27097 }
27098 /^X\(\/\/\)$/{
27099 s//\1/
27100 q
27101 }
27102 /^X\(\/\).*/{
27103 s//\1/
27104 q
27105 }
27106 s/.*/./; q'`
27107 { as_dir="$ac_dir"
27108 case $as_dir in #(
27109 -*) as_dir=./$as_dir;;
27110 esac
27111 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27112 as_dirs=
27113 while :; do
27114 case $as_dir in #(
27115 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27116 *) as_qdir=$as_dir;;
27117 esac
27118 as_dirs="'$as_qdir' $as_dirs"
27119 as_dir=`$as_dirname -- "$as_dir" ||
27120 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27121 X"$as_dir" : 'X\(//\)[^/]' \| \
27122 X"$as_dir" : 'X\(//\)$' \| \
27123 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27124 $as_echo X"$as_dir" |
27125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27126 s//\1/
27127 q
27128 }
27129 /^X\(\/\/\)[^/].*/{
27130 s//\1/
27131 q
27132 }
27133 /^X\(\/\/\)$/{
27134 s//\1/
27135 q
27136 }
27137 /^X\(\/\).*/{
27138 s//\1/
27139 q
27140 }
27141 s/.*/./; q'`
27142 test -d "$as_dir" && break
27143 done
27144 test -z "$as_dirs" || eval "mkdir $as_dirs"
27145 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27146 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27147 { (exit 1); exit 1; }; }; }
27148 ac_builddir=.
27149
27150 case "$ac_dir" in
27151 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27152 *)
27153 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27154 # A ".." for each directory in $ac_dir_suffix.
27155 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27156 case $ac_top_builddir_sub in
27157 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27158 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27159 esac ;;
27160 esac
27161 ac_abs_top_builddir=$ac_pwd
27162 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27163 # for backward compatibility:
27164 ac_top_builddir=$ac_top_build_prefix
27165
27166 case $srcdir in
27167 .) # We are building in place.
27168 ac_srcdir=.
27169 ac_top_srcdir=$ac_top_builddir_sub
27170 ac_abs_top_srcdir=$ac_pwd ;;
27171 [\\/]* | ?:[\\/]* ) # Absolute name.
27172 ac_srcdir=$srcdir$ac_dir_suffix;
27173 ac_top_srcdir=$srcdir
27174 ac_abs_top_srcdir=$srcdir ;;
27175 *) # Relative name.
27176 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27177 ac_top_srcdir=$ac_top_build_prefix$srcdir
27178 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27179 esac
27180 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27181
27182
27183 case $ac_mode in
27184 :F)
27185 #
27186 # CONFIG_FILE
27187 #
27188
27189 case $INSTALL in
27190 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27191 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27192 esac
27193 _ACEOF
27194
27195 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27196 # If the template does not know about datarootdir, expand it.
27197 # FIXME: This hack should be removed a few years after 2.60.
27198 ac_datarootdir_hack=; ac_datarootdir_seen=
27199
27200 ac_sed_dataroot='
27201 /datarootdir/ {
27202 p
27203 q
27204 }
27205 /@datadir@/p
27206 /@docdir@/p
27207 /@infodir@/p
27208 /@localedir@/p
27209 /@mandir@/p
27210 '
27211 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27212 *datarootdir*) ac_datarootdir_seen=yes;;
27213 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27214 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27215 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27216 _ACEOF
27217 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27218 ac_datarootdir_hack='
27219 s&@datadir@&$datadir&g
27220 s&@docdir@&$docdir&g
27221 s&@infodir@&$infodir&g
27222 s&@localedir@&$localedir&g
27223 s&@mandir@&$mandir&g
27224 s&\\\${datarootdir}&$datarootdir&g' ;;
27225 esac
27226 _ACEOF
27227
27228 # Neutralize VPATH when `$srcdir' = `.'.
27229 # Shell code in configure.ac might set extrasub.
27230 # FIXME: do we really want to maintain this feature?
27231 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27232 ac_sed_extra="$ac_vpsub
27233 $extrasub
27234 _ACEOF
27235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27236 :t
27237 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27238 s|@configure_input@|$ac_sed_conf_input|;t t
27239 s&@top_builddir@&$ac_top_builddir_sub&;t t
27240 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27241 s&@srcdir@&$ac_srcdir&;t t
27242 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27243 s&@top_srcdir@&$ac_top_srcdir&;t t
27244 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27245 s&@builddir@&$ac_builddir&;t t
27246 s&@abs_builddir@&$ac_abs_builddir&;t t
27247 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27248 s&@INSTALL@&$ac_INSTALL&;t t
27249 $ac_datarootdir_hack
27250 "
27251 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
27252 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27253 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27254 { (exit 1); exit 1; }; }
27255
27256 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27257 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27258 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27259 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27260 which seems to be undefined. Please make sure it is defined." >&5
27261 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27262 which seems to be undefined. Please make sure it is defined." >&2;}
27263
27264 rm -f "$tmp/stdin"
27265 case $ac_file in
27266 -) cat "$tmp/out" && rm -f "$tmp/out";;
27267 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27268 esac \
27269 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27270 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27271 { (exit 1); exit 1; }; }
27272 ;;
27273 :H)
27274 #
27275 # CONFIG_HEADER
27276 #
27277 if test x"$ac_file" != x-; then
27278 {
27279 $as_echo "/* $configure_input */" \
27280 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27281 } >"$tmp/config.h" \
27282 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27283 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27284 { (exit 1); exit 1; }; }
27285 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27286 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27287 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27288 else
27289 rm -f "$ac_file"
27290 mv "$tmp/config.h" "$ac_file" \
27291 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27292 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27293 { (exit 1); exit 1; }; }
27294 fi
27295 else
27296 $as_echo "/* $configure_input */" \
27297 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27298 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27299 $as_echo "$as_me: error: could not create -" >&2;}
27300 { (exit 1); exit 1; }; }
27301 fi
27302 ;;
27303
27304 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
27305 $as_echo "$as_me: executing $ac_file commands" >&6;}
27306 ;;
27307 esac
27308
27309
27310 case $ac_file$ac_mode in
27311 "default":C)
27312
27313 ### Make the necessary directories, if they don't exist.
27314 for dir in etc lisp ; do
27315 test -d ${dir} || mkdir ${dir}
27316 done
27317
27318 # Build src/Makefile from ${srcdir}/src/Makefile.c
27319 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
27320 # This must be done after src/config.h is built, since we rely on that file.
27321
27322 echo creating src/epaths.h
27323 ${MAKE-make} epaths-force
27324
27325 # As of 2000-11-19, newest development versions of GNU cpp preprocess
27326 # `..' to `. .' unless invoked with -traditional
27327
27328 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
27329 CPPFLAGS="$CPPFLAGS -traditional"
27330 fi
27331
27332 echo creating lib-src/Makefile
27333 ( cd lib-src
27334 rm -f junk.c junk1.c junk2.c
27335 sed -e '/start of cpp stuff/q' \
27336 < Makefile.c > junk1.c
27337 sed -e '1,/start of cpp stuff/d'\
27338 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27339 < Makefile.c > junk.c
27340 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
27341 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27342 cat junk1.c junk2.c > Makefile.new
27343 rm -f junk.c junk1.c junk2.c
27344 chmod 444 Makefile.new
27345 mv -f Makefile.new Makefile
27346 )
27347
27348 echo creating src/Makefile
27349 ( cd src
27350 rm -f junk.c junk1.c junk2.c
27351 sed -e '/start of cpp stuff/q' \
27352 < Makefile.c > junk1.c
27353 sed -e '1,/start of cpp stuff/d'\
27354 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27355 < Makefile.c > junk.c
27356 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
27357 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27358 cat junk1.c junk2.c > Makefile.new
27359 rm -f junk.c junk1.c junk2.c
27360 chmod 444 Makefile.new
27361 mv -f Makefile.new Makefile
27362 )
27363
27364 if ! test -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
27365 echo creating src/.gdbinit
27366 echo source $srcdir/src/.gdbinit > src/.gdbinit
27367 fi
27368
27369 ;;
27370
27371 esac
27372 done # for ac_tag
27373
27374
27375 { (exit 0); exit 0; }
27376 _ACEOF
27377 chmod +x $CONFIG_STATUS
27378 ac_clean_files=$ac_clean_files_save
27379
27380 test $ac_write_fail = 0 ||
27381 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27382 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27383 { (exit 1); exit 1; }; }
27384
27385
27386 # configure is writing to config.log, and then calls config.status.
27387 # config.status does its own redirection, appending to config.log.
27388 # Unfortunately, on DOS this fails, as config.log is still kept open
27389 # by configure, so config.status won't be able to write to it; its
27390 # output is simply discarded. So we exec the FD to /dev/null,
27391 # effectively closing config.log, so it can be properly (re)opened and
27392 # appended to by config.status. When coming back to configure, we
27393 # need to make the FD available again.
27394 if test "$no_create" != yes; then
27395 ac_cs_success=:
27396 ac_config_status_args=
27397 test "$silent" = yes &&
27398 ac_config_status_args="$ac_config_status_args --quiet"
27399 exec 5>/dev/null
27400 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27401 exec 5>>config.log
27402 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27403 # would make configure fail if this is the last instruction.
27404 $ac_cs_success || { (exit 1); exit 1; }
27405 fi
27406 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27407 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
27408 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
27409 fi
27410
27411