]> code.delx.au - gnu-emacs/blob - configure
Regenerate configure, src/config.in.
[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 CRT_DIR
706 LIBSOUND
707 PKG_CONFIG
708 ALSA_CFLAGS
709 ALSA_LIBS
710 CFLAGS_SOUND
711 SET_MAKE
712 XMKMF
713 HAVE_XSERVER
714 RSVG_CFLAGS
715 RSVG_LIBS
716 GTK_CFLAGS
717 GTK_LIBS
718 GTK_OBJ
719 DBUS_CFLAGS
720 DBUS_LIBS
721 DBUS_OBJ
722 GCONF_CFLAGS
723 GCONF_LIBS
724 LIBSELINUX_LIBS
725 FONTCONFIG_CFLAGS
726 FONTCONFIG_LIBS
727 XFT_CFLAGS
728 XFT_LIBS
729 LIBOTF_CFLAGS
730 LIBOTF_LIBS
731 M17N_FLT_CFLAGS
732 M17N_FLT_LIBS
733 FREETYPE_CFLAGS
734 FREETYPE_LIBS
735 LIBXPM
736 LIBJPEG
737 LIBPNG
738 LIBTIFF
739 LIBGIF
740 LIBGPM
741 LIBXSM
742 ALLOCA
743 liblockfile
744 LIBS_MAIL
745 LIBOBJS
746 NEED_SETGID
747 KMEM_GROUP
748 GETLOADAVG_LIBS
749 GETOPT_H
750 GETOPTOBJS
751 LIBHESIOD
752 LIBRESOLV
753 COM_ERRLIB
754 CRYPTOLIB
755 KRB5LIB
756 DESLIB
757 KRB4LIB
758 version
759 configuration
760 canonical
761 srcdir
762 lispdir
763 locallisppath
764 lisppath
765 x_default_search_path
766 etcdir
767 archlibdir
768 bitmapdir
769 gamedir
770 gameuser
771 c_switch_system
772 c_switch_machine
773 LD_SWITCH_X_SITE
774 LD_SWITCH_X_SITE_AUX
775 C_SWITCH_X_SITE
776 X_TOOLKIT_TYPE
777 machfile
778 opsysfile
779 ns_appdir
780 ns_appbindir
781 ns_appresdir
782 ns_appsrc
783 GNUSTEP_MAKEFILES
784 GNUSTEP_SYSTEM_HEADERS
785 GNUSTEP_SYSTEM_LIBRARIES
786 GNU_OBJC_CFLAGS
787 LIB_SRC_EXTRA_INSTALLABLES
788 OTHER_FILES
789 XMENU_OBJ
790 XOBJ
791 LTLIBOBJS'
792 ac_subst_files=''
793 ac_user_opts='
794 enable_option_checking
795 with_pop
796 with_kerberos
797 with_kerberos5
798 with_hesiod
799 with_mmdf
800 with_mail_unlink
801 with_mailhost
802 with_sound
803 with_sync_input
804 with_x_toolkit
805 with_xpm
806 with_jpeg
807 with_tiff
808 with_gif
809 with_png
810 with_rsvg
811 with_xft
812 with_libotf
813 with_m17n_flt
814 with_toolkit_scroll_bars
815 with_xaw3d
816 with_xim
817 with_ns
818 with_gpm
819 with_dbus
820 with_gconf
821 with_selinux
822 with_makeinfo
823 with_gtk
824 with_gcc
825 with_pkg_config_prog
826 with_crt_dir
827 with_gnustep_conf
828 enable_ns_self_contained
829 enable_asserts
830 enable_maintainer_mode
831 enable_locallisppath
832 enable_checking
833 enable_profiling
834 enable_autodepend
835 enable_largefile
836 with_x
837 '
838 ac_precious_vars='build_alias
839 host_alias
840 target_alias
841 CC
842 CFLAGS
843 LDFLAGS
844 LIBS
845 CPPFLAGS
846 CPP
847 XMKMF'
848
849
850 # Initialize some variables set by options.
851 ac_init_help=
852 ac_init_version=false
853 ac_unrecognized_opts=
854 ac_unrecognized_sep=
855 # The variables have the same names as the options, with
856 # dashes changed to underlines.
857 cache_file=/dev/null
858 exec_prefix=NONE
859 no_create=
860 no_recursion=
861 prefix=NONE
862 program_prefix=NONE
863 program_suffix=NONE
864 program_transform_name=s,x,x,
865 silent=
866 site=
867 srcdir=
868 verbose=
869 x_includes=NONE
870 x_libraries=NONE
871
872 # Installation directory options.
873 # These are left unexpanded so users can "make install exec_prefix=/foo"
874 # and all the variables that are supposed to be based on exec_prefix
875 # by default will actually change.
876 # Use braces instead of parens because sh, perl, etc. also accept them.
877 # (The list follows the same order as the GNU Coding Standards.)
878 bindir='${exec_prefix}/bin'
879 sbindir='${exec_prefix}/sbin'
880 libexecdir='${exec_prefix}/libexec'
881 datarootdir='${prefix}/share'
882 datadir='${datarootdir}'
883 sysconfdir='${prefix}/etc'
884 sharedstatedir='${prefix}/com'
885 localstatedir='${prefix}/var'
886 includedir='${prefix}/include'
887 oldincludedir='/usr/include'
888 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
889 infodir='${datarootdir}/info'
890 htmldir='${docdir}'
891 dvidir='${docdir}'
892 pdfdir='${docdir}'
893 psdir='${docdir}'
894 libdir='${exec_prefix}/lib'
895 localedir='${datarootdir}/locale'
896 mandir='${datarootdir}/man'
897
898 ac_prev=
899 ac_dashdash=
900 for ac_option
901 do
902 # If the previous option needs an argument, assign it.
903 if test -n "$ac_prev"; then
904 eval $ac_prev=\$ac_option
905 ac_prev=
906 continue
907 fi
908
909 case $ac_option in
910 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
911 *) ac_optarg=yes ;;
912 esac
913
914 # Accept the important Cygnus configure options, so we can diagnose typos.
915
916 case $ac_dashdash$ac_option in
917 --)
918 ac_dashdash=yes ;;
919
920 -bindir | --bindir | --bindi | --bind | --bin | --bi)
921 ac_prev=bindir ;;
922 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
923 bindir=$ac_optarg ;;
924
925 -build | --build | --buil | --bui | --bu)
926 ac_prev=build_alias ;;
927 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
928 build_alias=$ac_optarg ;;
929
930 -cache-file | --cache-file | --cache-fil | --cache-fi \
931 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
932 ac_prev=cache_file ;;
933 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
934 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
935 cache_file=$ac_optarg ;;
936
937 --config-cache | -C)
938 cache_file=config.cache ;;
939
940 -datadir | --datadir | --datadi | --datad)
941 ac_prev=datadir ;;
942 -datadir=* | --datadir=* | --datadi=* | --datad=*)
943 datadir=$ac_optarg ;;
944
945 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
946 | --dataroo | --dataro | --datar)
947 ac_prev=datarootdir ;;
948 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
949 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
950 datarootdir=$ac_optarg ;;
951
952 -disable-* | --disable-*)
953 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
954 # Reject names that are not valid shell variable names.
955 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
956 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
957 { (exit 1); exit 1; }; }
958 ac_useropt_orig=$ac_useropt
959 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
960 case $ac_user_opts in
961 *"
962 "enable_$ac_useropt"
963 "*) ;;
964 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
965 ac_unrecognized_sep=', ';;
966 esac
967 eval enable_$ac_useropt=no ;;
968
969 -docdir | --docdir | --docdi | --doc | --do)
970 ac_prev=docdir ;;
971 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
972 docdir=$ac_optarg ;;
973
974 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
975 ac_prev=dvidir ;;
976 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
977 dvidir=$ac_optarg ;;
978
979 -enable-* | --enable-*)
980 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
981 # Reject names that are not valid shell variable names.
982 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
983 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
984 { (exit 1); exit 1; }; }
985 ac_useropt_orig=$ac_useropt
986 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
987 case $ac_user_opts in
988 *"
989 "enable_$ac_useropt"
990 "*) ;;
991 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
992 ac_unrecognized_sep=', ';;
993 esac
994 eval enable_$ac_useropt=\$ac_optarg ;;
995
996 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
997 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
998 | --exec | --exe | --ex)
999 ac_prev=exec_prefix ;;
1000 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1001 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1002 | --exec=* | --exe=* | --ex=*)
1003 exec_prefix=$ac_optarg ;;
1004
1005 -gas | --gas | --ga | --g)
1006 # Obsolete; use --with-gas.
1007 with_gas=yes ;;
1008
1009 -help | --help | --hel | --he | -h)
1010 ac_init_help=long ;;
1011 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1012 ac_init_help=recursive ;;
1013 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1014 ac_init_help=short ;;
1015
1016 -host | --host | --hos | --ho)
1017 ac_prev=host_alias ;;
1018 -host=* | --host=* | --hos=* | --ho=*)
1019 host_alias=$ac_optarg ;;
1020
1021 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1022 ac_prev=htmldir ;;
1023 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1024 | --ht=*)
1025 htmldir=$ac_optarg ;;
1026
1027 -includedir | --includedir | --includedi | --included | --include \
1028 | --includ | --inclu | --incl | --inc)
1029 ac_prev=includedir ;;
1030 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1031 | --includ=* | --inclu=* | --incl=* | --inc=*)
1032 includedir=$ac_optarg ;;
1033
1034 -infodir | --infodir | --infodi | --infod | --info | --inf)
1035 ac_prev=infodir ;;
1036 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1037 infodir=$ac_optarg ;;
1038
1039 -libdir | --libdir | --libdi | --libd)
1040 ac_prev=libdir ;;
1041 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1042 libdir=$ac_optarg ;;
1043
1044 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1045 | --libexe | --libex | --libe)
1046 ac_prev=libexecdir ;;
1047 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1048 | --libexe=* | --libex=* | --libe=*)
1049 libexecdir=$ac_optarg ;;
1050
1051 -localedir | --localedir | --localedi | --localed | --locale)
1052 ac_prev=localedir ;;
1053 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1054 localedir=$ac_optarg ;;
1055
1056 -localstatedir | --localstatedir | --localstatedi | --localstated \
1057 | --localstate | --localstat | --localsta | --localst | --locals)
1058 ac_prev=localstatedir ;;
1059 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1060 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1061 localstatedir=$ac_optarg ;;
1062
1063 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1064 ac_prev=mandir ;;
1065 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1066 mandir=$ac_optarg ;;
1067
1068 -nfp | --nfp | --nf)
1069 # Obsolete; use --without-fp.
1070 with_fp=no ;;
1071
1072 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1073 | --no-cr | --no-c | -n)
1074 no_create=yes ;;
1075
1076 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1077 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1078 no_recursion=yes ;;
1079
1080 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1081 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1082 | --oldin | --oldi | --old | --ol | --o)
1083 ac_prev=oldincludedir ;;
1084 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1085 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1086 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1087 oldincludedir=$ac_optarg ;;
1088
1089 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1090 ac_prev=prefix ;;
1091 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1092 prefix=$ac_optarg ;;
1093
1094 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1095 | --program-pre | --program-pr | --program-p)
1096 ac_prev=program_prefix ;;
1097 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1098 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1099 program_prefix=$ac_optarg ;;
1100
1101 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1102 | --program-suf | --program-su | --program-s)
1103 ac_prev=program_suffix ;;
1104 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1105 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1106 program_suffix=$ac_optarg ;;
1107
1108 -program-transform-name | --program-transform-name \
1109 | --program-transform-nam | --program-transform-na \
1110 | --program-transform-n | --program-transform- \
1111 | --program-transform | --program-transfor \
1112 | --program-transfo | --program-transf \
1113 | --program-trans | --program-tran \
1114 | --progr-tra | --program-tr | --program-t)
1115 ac_prev=program_transform_name ;;
1116 -program-transform-name=* | --program-transform-name=* \
1117 | --program-transform-nam=* | --program-transform-na=* \
1118 | --program-transform-n=* | --program-transform-=* \
1119 | --program-transform=* | --program-transfor=* \
1120 | --program-transfo=* | --program-transf=* \
1121 | --program-trans=* | --program-tran=* \
1122 | --progr-tra=* | --program-tr=* | --program-t=*)
1123 program_transform_name=$ac_optarg ;;
1124
1125 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1126 ac_prev=pdfdir ;;
1127 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1128 pdfdir=$ac_optarg ;;
1129
1130 -psdir | --psdir | --psdi | --psd | --ps)
1131 ac_prev=psdir ;;
1132 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1133 psdir=$ac_optarg ;;
1134
1135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1136 | -silent | --silent | --silen | --sile | --sil)
1137 silent=yes ;;
1138
1139 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1140 ac_prev=sbindir ;;
1141 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1142 | --sbi=* | --sb=*)
1143 sbindir=$ac_optarg ;;
1144
1145 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1146 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1147 | --sharedst | --shareds | --shared | --share | --shar \
1148 | --sha | --sh)
1149 ac_prev=sharedstatedir ;;
1150 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1151 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1152 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1153 | --sha=* | --sh=*)
1154 sharedstatedir=$ac_optarg ;;
1155
1156 -site | --site | --sit)
1157 ac_prev=site ;;
1158 -site=* | --site=* | --sit=*)
1159 site=$ac_optarg ;;
1160
1161 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1162 ac_prev=srcdir ;;
1163 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1164 srcdir=$ac_optarg ;;
1165
1166 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1167 | --syscon | --sysco | --sysc | --sys | --sy)
1168 ac_prev=sysconfdir ;;
1169 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1170 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1171 sysconfdir=$ac_optarg ;;
1172
1173 -target | --target | --targe | --targ | --tar | --ta | --t)
1174 ac_prev=target_alias ;;
1175 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1176 target_alias=$ac_optarg ;;
1177
1178 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1179 verbose=yes ;;
1180
1181 -version | --version | --versio | --versi | --vers | -V)
1182 ac_init_version=: ;;
1183
1184 -with-* | --with-*)
1185 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1189 { (exit 1); exit 1; }; }
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1193 *"
1194 "with_$ac_useropt"
1195 "*) ;;
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1198 esac
1199 eval with_$ac_useropt=\$ac_optarg ;;
1200
1201 -without-* | --without-*)
1202 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1203 # Reject names that are not valid shell variable names.
1204 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1205 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1206 { (exit 1); exit 1; }; }
1207 ac_useropt_orig=$ac_useropt
1208 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1209 case $ac_user_opts in
1210 *"
1211 "with_$ac_useropt"
1212 "*) ;;
1213 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1214 ac_unrecognized_sep=', ';;
1215 esac
1216 eval with_$ac_useropt=no ;;
1217
1218 --x)
1219 # Obsolete; use --with-x.
1220 with_x=yes ;;
1221
1222 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1223 | --x-incl | --x-inc | --x-in | --x-i)
1224 ac_prev=x_includes ;;
1225 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1226 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1227 x_includes=$ac_optarg ;;
1228
1229 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1230 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1231 ac_prev=x_libraries ;;
1232 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1233 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1234 x_libraries=$ac_optarg ;;
1235
1236 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1237 Try \`$0 --help' for more information." >&2
1238 { (exit 1); exit 1; }; }
1239 ;;
1240
1241 *=*)
1242 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1243 # Reject names that are not valid shell variable names.
1244 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1245 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1246 { (exit 1); exit 1; }; }
1247 eval $ac_envvar=\$ac_optarg
1248 export $ac_envvar ;;
1249
1250 *)
1251 # FIXME: should be removed in autoconf 3.0.
1252 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1253 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1254 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1255 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1256 ;;
1257
1258 esac
1259 done
1260
1261 if test -n "$ac_prev"; then
1262 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1263 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1264 { (exit 1); exit 1; }; }
1265 fi
1266
1267 if test -n "$ac_unrecognized_opts"; then
1268 case $enable_option_checking in
1269 no) ;;
1270 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1271 { (exit 1); exit 1; }; } ;;
1272 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1273 esac
1274 fi
1275
1276 # Check all directory arguments for consistency.
1277 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1278 datadir sysconfdir sharedstatedir localstatedir includedir \
1279 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1280 libdir localedir mandir
1281 do
1282 eval ac_val=\$$ac_var
1283 # Remove trailing slashes.
1284 case $ac_val in
1285 */ )
1286 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1287 eval $ac_var=\$ac_val;;
1288 esac
1289 # Be sure to have absolute directory names.
1290 case $ac_val in
1291 [\\/$]* | ?:[\\/]* ) continue;;
1292 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1293 esac
1294 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1295 { (exit 1); exit 1; }; }
1296 done
1297
1298 # There might be people who depend on the old broken behavior: `$host'
1299 # used to hold the argument of --host etc.
1300 # FIXME: To remove some day.
1301 build=$build_alias
1302 host=$host_alias
1303 target=$target_alias
1304
1305 # FIXME: To remove some day.
1306 if test "x$host_alias" != x; then
1307 if test "x$build_alias" = x; then
1308 cross_compiling=maybe
1309 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1310 If a cross compiler is detected then cross compile mode will be used." >&2
1311 elif test "x$build_alias" != "x$host_alias"; then
1312 cross_compiling=yes
1313 fi
1314 fi
1315
1316 ac_tool_prefix=
1317 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1318
1319 test "$silent" = yes && exec 6>/dev/null
1320
1321
1322 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1323 ac_ls_di=`ls -di .` &&
1324 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1325 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1326 { (exit 1); exit 1; }; }
1327 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1328 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1329 { (exit 1); exit 1; }; }
1330
1331
1332 # Find the source files, if location was not specified.
1333 if test -z "$srcdir"; then
1334 ac_srcdir_defaulted=yes
1335 # Try the directory containing this script, then the parent directory.
1336 ac_confdir=`$as_dirname -- "$as_myself" ||
1337 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338 X"$as_myself" : 'X\(//\)[^/]' \| \
1339 X"$as_myself" : 'X\(//\)$' \| \
1340 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1341 $as_echo X"$as_myself" |
1342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\/\)[^/].*/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\/\)$/{
1351 s//\1/
1352 q
1353 }
1354 /^X\(\/\).*/{
1355 s//\1/
1356 q
1357 }
1358 s/.*/./; q'`
1359 srcdir=$ac_confdir
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361 srcdir=..
1362 fi
1363 else
1364 ac_srcdir_defaulted=no
1365 fi
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1368 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1369 { (exit 1); exit 1; }; }
1370 fi
1371 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1372 ac_abs_confdir=`(
1373 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1374 { (exit 1); exit 1; }; }
1375 pwd)`
1376 # When building in place, set srcdir=.
1377 if test "$ac_abs_confdir" = "$ac_pwd"; then
1378 srcdir=.
1379 fi
1380 # Remove unnecessary trailing slashes from srcdir.
1381 # Double slashes in file names in object file debugging info
1382 # mess up M-x gdb in Emacs.
1383 case $srcdir in
1384 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1385 esac
1386 for ac_var in $ac_precious_vars; do
1387 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_env_${ac_var}_value=\$${ac_var}
1389 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1391 done
1392
1393 #
1394 # Report the --help message.
1395 #
1396 if test "$ac_init_help" = "long"; then
1397 # Omit some internal or obsolete options to make the list less imposing.
1398 # This message is too long to be a string in the A/UX 3.1 sh.
1399 cat <<_ACEOF
1400 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1401
1402 Usage: $0 [OPTION]... [VAR=VALUE]...
1403
1404 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1405 VAR=VALUE. See below for descriptions of some of the useful variables.
1406
1407 Defaults for the options are specified in brackets.
1408
1409 Configuration:
1410 -h, --help display this help and exit
1411 --help=short display options specific to this package
1412 --help=recursive display the short help of all the included packages
1413 -V, --version display version information and exit
1414 -q, --quiet, --silent do not print \`checking...' messages
1415 --cache-file=FILE cache test results in FILE [disabled]
1416 -C, --config-cache alias for \`--cache-file=config.cache'
1417 -n, --no-create do not create output files
1418 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1419
1420 Installation directories:
1421 --prefix=PREFIX install architecture-independent files in PREFIX
1422 [$ac_default_prefix]
1423 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1424 [PREFIX]
1425
1426 By default, \`make install' will install all the files in
1427 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1428 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1429 for instance \`--prefix=\$HOME'.
1430
1431 For better control, use the options below.
1432
1433 Fine tuning of the installation directories:
1434 --bindir=DIR user executables [EPREFIX/bin]
1435 --sbindir=DIR system admin executables [EPREFIX/sbin]
1436 --libexecdir=DIR program executables [EPREFIX/libexec]
1437 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1438 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1439 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1440 --libdir=DIR object code libraries [EPREFIX/lib]
1441 --includedir=DIR C header files [PREFIX/include]
1442 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1443 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1444 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1445 --infodir=DIR info documentation [DATAROOTDIR/info]
1446 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1447 --mandir=DIR man documentation [DATAROOTDIR/man]
1448 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1449 --htmldir=DIR html documentation [DOCDIR]
1450 --dvidir=DIR dvi documentation [DOCDIR]
1451 --pdfdir=DIR pdf documentation [DOCDIR]
1452 --psdir=DIR ps documentation [DOCDIR]
1453 _ACEOF
1454
1455 cat <<\_ACEOF
1456
1457 Program names:
1458 --program-prefix=PREFIX prepend PREFIX to installed program names
1459 --program-suffix=SUFFIX append SUFFIX to installed program names
1460 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1461
1462 X features:
1463 --x-includes=DIR X include files are in DIR
1464 --x-libraries=DIR X library files are in DIR
1465
1466 System types:
1467 --build=BUILD configure for building on BUILD [guessed]
1468 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1469 _ACEOF
1470 fi
1471
1472 if test -n "$ac_init_help"; then
1473 case $ac_init_help in
1474 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1475 esac
1476 cat <<\_ACEOF
1477
1478 Optional Features:
1479 --disable-option-checking ignore unrecognized --enable/--with options
1480 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1481 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1482 --disable-ns-self-contained
1483 disable self contained build under NeXTstep
1484 --enable-asserts compile code with asserts enabled
1485 --enable-maintainer-mode
1486 enable make rules and dependencies not useful (and
1487 sometimes confusing) to the casual installer
1488 --enable-locallisppath=PATH
1489 directories Emacs should search for lisp files
1490 specific to this site
1491 --enable-checking[=LIST]
1492 enable expensive run-time checks. With LIST, enable
1493 only specific categories of checks. Categories are:
1494 all,yes,no. Flags are: stringbytes, stringoverrun,
1495 stringfreelist, xmallocoverrun, conslist
1496 --enable-profiling build emacs with profiling support. This might not
1497 work on all platforms
1498 --enable-autodepend automatically generate dependencies to .h-files.
1499 Requires GNU Make and Gcc. Enabled if GNU Make and
1500 Gcc is found
1501 --disable-largefile omit support for large files
1502
1503 Optional Packages:
1504 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1505 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1506 --without-pop don't support POP mail retrieval with movemail
1507 --with-kerberos support Kerberos-authenticated POP
1508 --with-kerberos5 support Kerberos version 5 authenticated POP
1509 --with-hesiod support Hesiod to get the POP server host
1510 --with-mmdf support MMDF mailboxes
1511 --with-mail-unlink unlink, rather than empty, mail spool after reading
1512 --with-mailhost=HOSTNAME
1513 string giving default POP mail host
1514 --without-sound don't compile with sound support
1515 --without-sync-input process async input synchronously
1516 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, lucid or
1517 athena, motif, no)
1518 --without-xpm don't compile with XPM image support
1519 --without-jpeg don't compile with JPEG image support
1520 --without-tiff don't compile with TIFF image support
1521 --without-gif don't compile with GIF image support
1522 --without-png don't compile with PNG image support
1523 --without-rsvg don't compile with SVG image support
1524 --without-xft don't use XFT for anti aliased fonts
1525 --without-libotf don't use libotf for OpenType font support
1526 --without-m17n-flt don't use m17n-flt for text shaping
1527 --without-toolkit-scroll-bars
1528 don't use Motif or Xaw3d scroll bars
1529 --without-xaw3d don't use Xaw3d
1530 --without-xim don't use X11 XIM
1531 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1532 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1533 console
1534 --without-dbus don't compile with D-Bus support
1535 --without-gconf don't compile with GConf support
1536 --without-selinux don't compile with SELinux support
1537 --without-makeinfo don't require makeinfo for building manuals
1538
1539 --with-pkg-config-prog=PATH
1540 path to pkg-config for finding GTK and librsvg
1541 --with-crt-dir=DIR directory containing crtn.o etc. This option is only
1542 used on x86-64 and s390x GNU/Linux architectures.
1543 --with-gnustep-conf=PATH
1544 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1545 or /etc/GNUstep/GNUstep.conf
1546 --with-x use the X Window System
1547
1548 Some influential environment variables:
1549 CC C compiler command
1550 CFLAGS C compiler flags
1551 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1552 nonstandard directory <lib dir>
1553 LIBS libraries to pass to the linker, e.g. -l<library>
1554 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1555 you have headers in a nonstandard directory <include dir>
1556 CPP C preprocessor
1557 XMKMF Path to xmkmf, Makefile generator for X Window System
1558
1559 Use these variables to override the choices made by `configure' or to help
1560 it to find libraries and programs with nonstandard names/locations.
1561
1562 _ACEOF
1563 ac_status=$?
1564 fi
1565
1566 if test "$ac_init_help" = "recursive"; then
1567 # If there are subdirs, report their specific --help.
1568 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1569 test -d "$ac_dir" ||
1570 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1571 continue
1572 ac_builddir=.
1573
1574 case "$ac_dir" in
1575 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576 *)
1577 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1578 # A ".." for each directory in $ac_dir_suffix.
1579 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1580 case $ac_top_builddir_sub in
1581 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1583 esac ;;
1584 esac
1585 ac_abs_top_builddir=$ac_pwd
1586 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1587 # for backward compatibility:
1588 ac_top_builddir=$ac_top_build_prefix
1589
1590 case $srcdir in
1591 .) # We are building in place.
1592 ac_srcdir=.
1593 ac_top_srcdir=$ac_top_builddir_sub
1594 ac_abs_top_srcdir=$ac_pwd ;;
1595 [\\/]* | ?:[\\/]* ) # Absolute name.
1596 ac_srcdir=$srcdir$ac_dir_suffix;
1597 ac_top_srcdir=$srcdir
1598 ac_abs_top_srcdir=$srcdir ;;
1599 *) # Relative name.
1600 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1601 ac_top_srcdir=$ac_top_build_prefix$srcdir
1602 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1603 esac
1604 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1605
1606 cd "$ac_dir" || { ac_status=$?; continue; }
1607 # Check for guested configure.
1608 if test -f "$ac_srcdir/configure.gnu"; then
1609 echo &&
1610 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1611 elif test -f "$ac_srcdir/configure"; then
1612 echo &&
1613 $SHELL "$ac_srcdir/configure" --help=recursive
1614 else
1615 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1616 fi || ac_status=$?
1617 cd "$ac_pwd" || { ac_status=$?; break; }
1618 done
1619 fi
1620
1621 test -n "$ac_init_help" && exit $ac_status
1622 if $ac_init_version; then
1623 cat <<\_ACEOF
1624 emacs configure 24.0.50
1625 generated by GNU Autoconf 2.62
1626
1627 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1628 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1629 This configure script is free software; the Free Software Foundation
1630 gives unlimited permission to copy, distribute and modify it.
1631 _ACEOF
1632 exit
1633 fi
1634 cat >config.log <<_ACEOF
1635 This file contains any messages produced by compilers while
1636 running configure, to aid debugging if configure makes a mistake.
1637
1638 It was created by emacs $as_me 24.0.50, which was
1639 generated by GNU Autoconf 2.62. Invocation command line was
1640
1641 $ $0 $@
1642
1643 _ACEOF
1644 exec 5>>config.log
1645 {
1646 cat <<_ASUNAME
1647 ## --------- ##
1648 ## Platform. ##
1649 ## --------- ##
1650
1651 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1652 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1653 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1654 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1655 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1656
1657 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1658 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1659
1660 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1661 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1662 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1663 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1664 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1665 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1666 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1667
1668 _ASUNAME
1669
1670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1671 for as_dir in $PATH
1672 do
1673 IFS=$as_save_IFS
1674 test -z "$as_dir" && as_dir=.
1675 $as_echo "PATH: $as_dir"
1676 done
1677 IFS=$as_save_IFS
1678
1679 } >&5
1680
1681 cat >&5 <<_ACEOF
1682
1683
1684 ## ----------- ##
1685 ## Core tests. ##
1686 ## ----------- ##
1687
1688 _ACEOF
1689
1690
1691 # Keep a trace of the command line.
1692 # Strip out --no-create and --no-recursion so they do not pile up.
1693 # Strip out --silent because we don't want to record it for future runs.
1694 # Also quote any args containing shell meta-characters.
1695 # Make two passes to allow for proper duplicate-argument suppression.
1696 ac_configure_args=
1697 ac_configure_args0=
1698 ac_configure_args1=
1699 ac_must_keep_next=false
1700 for ac_pass in 1 2
1701 do
1702 for ac_arg
1703 do
1704 case $ac_arg in
1705 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1706 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1707 | -silent | --silent | --silen | --sile | --sil)
1708 continue ;;
1709 *\'*)
1710 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1711 esac
1712 case $ac_pass in
1713 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1714 2)
1715 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1716 if test $ac_must_keep_next = true; then
1717 ac_must_keep_next=false # Got value, back to normal.
1718 else
1719 case $ac_arg in
1720 *=* | --config-cache | -C | -disable-* | --disable-* \
1721 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1722 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1723 | -with-* | --with-* | -without-* | --without-* | --x)
1724 case "$ac_configure_args0 " in
1725 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1726 esac
1727 ;;
1728 -* ) ac_must_keep_next=true ;;
1729 esac
1730 fi
1731 ac_configure_args="$ac_configure_args '$ac_arg'"
1732 ;;
1733 esac
1734 done
1735 done
1736 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1737 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1738
1739 # When interrupted or exit'd, cleanup temporary files, and complete
1740 # config.log. We remove comments because anyway the quotes in there
1741 # would cause problems or look ugly.
1742 # WARNING: Use '\'' to represent an apostrophe within the trap.
1743 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1744 trap 'exit_status=$?
1745 # Save into config.log some information that might help in debugging.
1746 {
1747 echo
1748
1749 cat <<\_ASBOX
1750 ## ---------------- ##
1751 ## Cache variables. ##
1752 ## ---------------- ##
1753 _ASBOX
1754 echo
1755 # The following way of writing the cache mishandles newlines in values,
1756 (
1757 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1758 eval ac_val=\$$ac_var
1759 case $ac_val in #(
1760 *${as_nl}*)
1761 case $ac_var in #(
1762 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1763 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1764 esac
1765 case $ac_var in #(
1766 _ | IFS | as_nl) ;; #(
1767 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1768 *) $as_unset $ac_var ;;
1769 esac ;;
1770 esac
1771 done
1772 (set) 2>&1 |
1773 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1774 *${as_nl}ac_space=\ *)
1775 sed -n \
1776 "s/'\''/'\''\\\\'\'''\''/g;
1777 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1778 ;; #(
1779 *)
1780 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1781 ;;
1782 esac |
1783 sort
1784 )
1785 echo
1786
1787 cat <<\_ASBOX
1788 ## ----------------- ##
1789 ## Output variables. ##
1790 ## ----------------- ##
1791 _ASBOX
1792 echo
1793 for ac_var in $ac_subst_vars
1794 do
1795 eval ac_val=\$$ac_var
1796 case $ac_val in
1797 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1798 esac
1799 $as_echo "$ac_var='\''$ac_val'\''"
1800 done | sort
1801 echo
1802
1803 if test -n "$ac_subst_files"; then
1804 cat <<\_ASBOX
1805 ## ------------------- ##
1806 ## File substitutions. ##
1807 ## ------------------- ##
1808 _ASBOX
1809 echo
1810 for ac_var in $ac_subst_files
1811 do
1812 eval ac_val=\$$ac_var
1813 case $ac_val in
1814 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1815 esac
1816 $as_echo "$ac_var='\''$ac_val'\''"
1817 done | sort
1818 echo
1819 fi
1820
1821 if test -s confdefs.h; then
1822 cat <<\_ASBOX
1823 ## ----------- ##
1824 ## confdefs.h. ##
1825 ## ----------- ##
1826 _ASBOX
1827 echo
1828 cat confdefs.h
1829 echo
1830 fi
1831 test "$ac_signal" != 0 &&
1832 $as_echo "$as_me: caught signal $ac_signal"
1833 $as_echo "$as_me: exit $exit_status"
1834 } >&5
1835 rm -f core *.core core.conftest.* &&
1836 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1837 exit $exit_status
1838 ' 0
1839 for ac_signal in 1 2 13 15; do
1840 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1841 done
1842 ac_signal=0
1843
1844 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1845 rm -f -r conftest* confdefs.h
1846
1847 # Predefined preprocessor variables.
1848
1849 cat >>confdefs.h <<_ACEOF
1850 #define PACKAGE_NAME "$PACKAGE_NAME"
1851 _ACEOF
1852
1853
1854 cat >>confdefs.h <<_ACEOF
1855 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1856 _ACEOF
1857
1858
1859 cat >>confdefs.h <<_ACEOF
1860 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1861 _ACEOF
1862
1863
1864 cat >>confdefs.h <<_ACEOF
1865 #define PACKAGE_STRING "$PACKAGE_STRING"
1866 _ACEOF
1867
1868
1869 cat >>confdefs.h <<_ACEOF
1870 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1871 _ACEOF
1872
1873
1874 # Let the site file select an alternate cache file if it wants to.
1875 # Prefer an explicitly selected file to automatically selected ones.
1876 ac_site_file1=NONE
1877 ac_site_file2=NONE
1878 if test -n "$CONFIG_SITE"; then
1879 ac_site_file1=$CONFIG_SITE
1880 elif test "x$prefix" != xNONE; then
1881 ac_site_file1=$prefix/share/config.site
1882 ac_site_file2=$prefix/etc/config.site
1883 else
1884 ac_site_file1=$ac_default_prefix/share/config.site
1885 ac_site_file2=$ac_default_prefix/etc/config.site
1886 fi
1887 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1888 do
1889 test "x$ac_site_file" = xNONE && continue
1890 if test -r "$ac_site_file"; then
1891 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1892 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1893 sed 's/^/| /' "$ac_site_file" >&5
1894 . "$ac_site_file"
1895 fi
1896 done
1897
1898 if test -r "$cache_file"; then
1899 # Some versions of bash will fail to source /dev/null (special
1900 # files actually), so we avoid doing that.
1901 if test -f "$cache_file"; then
1902 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1903 $as_echo "$as_me: loading cache $cache_file" >&6;}
1904 case $cache_file in
1905 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1906 *) . "./$cache_file";;
1907 esac
1908 fi
1909 else
1910 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1911 $as_echo "$as_me: creating cache $cache_file" >&6;}
1912 >$cache_file
1913 fi
1914
1915 ac_header_list="$ac_header_list sys/time.h"
1916 ac_header_list="$ac_header_list unistd.h"
1917 ac_func_list="$ac_func_list alarm"
1918 # Check that the precious variables saved in the cache have kept the same
1919 # value.
1920 ac_cache_corrupted=false
1921 for ac_var in $ac_precious_vars; do
1922 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1923 eval ac_new_set=\$ac_env_${ac_var}_set
1924 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1925 eval ac_new_val=\$ac_env_${ac_var}_value
1926 case $ac_old_set,$ac_new_set in
1927 set,)
1928 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1929 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1930 ac_cache_corrupted=: ;;
1931 ,set)
1932 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1933 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1934 ac_cache_corrupted=: ;;
1935 ,);;
1936 *)
1937 if test "x$ac_old_val" != "x$ac_new_val"; then
1938 # differences in whitespace do not lead to failure.
1939 ac_old_val_w=`echo x $ac_old_val`
1940 ac_new_val_w=`echo x $ac_new_val`
1941 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1942 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1943 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1944 ac_cache_corrupted=:
1945 else
1946 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1947 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1948 eval $ac_var=\$ac_old_val
1949 fi
1950 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1951 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1952 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1953 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1954 fi;;
1955 esac
1956 # Pass precious variables to config.status.
1957 if test "$ac_new_set" = set; then
1958 case $ac_new_val in
1959 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1960 *) ac_arg=$ac_var=$ac_new_val ;;
1961 esac
1962 case " $ac_configure_args " in
1963 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1964 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1965 esac
1966 fi
1967 done
1968 if $ac_cache_corrupted; then
1969 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1970 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1971 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1972 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1973 { (exit 1); exit 1; }; }
1974 fi
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000 ac_ext=c
2001 ac_cpp='$CPP $CPPFLAGS'
2002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2005
2006
2007 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2008
2009
2010
2011 test "$program_prefix" != NONE &&
2012 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2013 # Use a double $ so make ignores it.
2014 test "$program_suffix" != NONE &&
2015 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2016 # Double any \ or $.
2017 # By default was `s,x,x', remove it if useless.
2018 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2019 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2020
2021
2022 lispdir='${datadir}/emacs/${version}/lisp'
2023 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2024 '${datadir}/emacs/site-lisp'
2025 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2026 etcdir='${datadir}/emacs/${version}/etc'
2027 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2028 docdir='${datadir}/emacs/${version}/etc'
2029 gamedir='${localstatedir}/games/emacs'
2030
2031 gameuser=games
2032
2033
2034
2035
2036 # Check whether --with-pop was given.
2037 if test "${with_pop+set}" = set; then
2038 withval=$with_pop;
2039 else
2040 with_pop=yes
2041 fi
2042
2043 if test "$with_pop" = yes; then
2044 cat >>confdefs.h <<\_ACEOF
2045 #define MAIL_USE_POP 1
2046 _ACEOF
2047
2048 fi
2049
2050
2051
2052 # Check whether --with-kerberos was given.
2053 if test "${with_kerberos+set}" = set; then
2054 withval=$with_kerberos;
2055 else
2056 with_kerberos=no
2057 fi
2058
2059 if test "$with_kerberos" != no; then
2060 cat >>confdefs.h <<\_ACEOF
2061 #define KERBEROS 1
2062 _ACEOF
2063
2064 fi
2065
2066
2067
2068 # Check whether --with-kerberos5 was given.
2069 if test "${with_kerberos5+set}" = set; then
2070 withval=$with_kerberos5;
2071 else
2072 with_kerberos5=no
2073 fi
2074
2075 if test "${with_kerberos5}" != no; then
2076 if test "${with_kerberos}" = no; then
2077 with_kerberos=yes
2078 cat >>confdefs.h <<\_ACEOF
2079 #define KERBEROS 1
2080 _ACEOF
2081
2082 fi
2083
2084 cat >>confdefs.h <<\_ACEOF
2085 #define KERBEROS5 1
2086 _ACEOF
2087
2088 fi
2089
2090
2091 # Check whether --with-hesiod was given.
2092 if test "${with_hesiod+set}" = set; then
2093 withval=$with_hesiod;
2094 else
2095 with_hesiod=no
2096 fi
2097
2098 if test "$with_hesiod" != no; then
2099
2100 cat >>confdefs.h <<\_ACEOF
2101 #define HESIOD 1
2102 _ACEOF
2103
2104 fi
2105
2106
2107 # Check whether --with-mmdf was given.
2108 if test "${with_mmdf+set}" = set; then
2109 withval=$with_mmdf;
2110 else
2111 with_mmdf=no
2112 fi
2113
2114 if test "$with_mmdf" != no; then
2115
2116 cat >>confdefs.h <<\_ACEOF
2117 #define MAIL_USE_MMDF 1
2118 _ACEOF
2119
2120 fi
2121
2122
2123 # Check whether --with-mail-unlink was given.
2124 if test "${with_mail_unlink+set}" = set; then
2125 withval=$with_mail_unlink;
2126 else
2127 with_mail_unlink=no
2128 fi
2129
2130 if test "$with_mail_unlink" != no; then
2131
2132 cat >>confdefs.h <<\_ACEOF
2133 #define MAIL_UNLINK_SPOOL 1
2134 _ACEOF
2135
2136 fi
2137
2138
2139 # Check whether --with-mailhost was given.
2140 if test "${with_mailhost+set}" = set; then
2141 withval=$with_mailhost;
2142 cat >>confdefs.h <<_ACEOF
2143 #define MAILHOST "$withval"
2144 _ACEOF
2145
2146 fi
2147
2148
2149
2150 # Check whether --with-sound was given.
2151 if test "${with_sound+set}" = set; then
2152 withval=$with_sound;
2153 else
2154 with_sound=yes
2155 fi
2156
2157
2158
2159 # Check whether --with-sync-input was given.
2160 if test "${with_sync_input+set}" = set; then
2161 withval=$with_sync_input;
2162 else
2163 with_sync_input=yes
2164 fi
2165
2166 if test "$with_sync_input" = yes; then
2167
2168 cat >>confdefs.h <<\_ACEOF
2169 #define SYNC_INPUT 1
2170 _ACEOF
2171
2172 fi
2173
2174
2175 # Check whether --with-x-toolkit was given.
2176 if test "${with_x_toolkit+set}" = set; then
2177 withval=$with_x_toolkit; case "${withval}" in
2178 y | ye | yes ) val=gtk ;;
2179 n | no ) val=no ;;
2180 l | lu | luc | luci | lucid ) val=lucid ;;
2181 a | at | ath | athe | athen | athena ) val=athena ;;
2182 m | mo | mot | moti | motif ) val=motif ;;
2183 g | gt | gtk ) val=gtk ;;
2184 * )
2185 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2186 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2187 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2188 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2189 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2190 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2191 { (exit 1); exit 1; }; }
2192 ;;
2193 esac
2194 with_x_toolkit=$val
2195
2196 fi
2197
2198
2199
2200 # Check whether --with-xpm was given.
2201 if test "${with_xpm+set}" = set; then
2202 withval=$with_xpm;
2203 else
2204 with_xpm=yes
2205 fi
2206
2207
2208 # Check whether --with-jpeg was given.
2209 if test "${with_jpeg+set}" = set; then
2210 withval=$with_jpeg;
2211 else
2212 with_jpeg=yes
2213 fi
2214
2215
2216 # Check whether --with-tiff was given.
2217 if test "${with_tiff+set}" = set; then
2218 withval=$with_tiff;
2219 else
2220 with_tiff=yes
2221 fi
2222
2223
2224 # Check whether --with-gif was given.
2225 if test "${with_gif+set}" = set; then
2226 withval=$with_gif;
2227 else
2228 with_gif=yes
2229 fi
2230
2231
2232 # Check whether --with-png was given.
2233 if test "${with_png+set}" = set; then
2234 withval=$with_png;
2235 else
2236 with_png=yes
2237 fi
2238
2239
2240 # Check whether --with-rsvg was given.
2241 if test "${with_rsvg+set}" = set; then
2242 withval=$with_rsvg;
2243 else
2244 with_rsvg=yes
2245 fi
2246
2247
2248
2249 # Check whether --with-xft was given.
2250 if test "${with_xft+set}" = set; then
2251 withval=$with_xft;
2252 else
2253 with_xft=yes
2254 fi
2255
2256
2257 # Check whether --with-libotf was given.
2258 if test "${with_libotf+set}" = set; then
2259 withval=$with_libotf;
2260 else
2261 with_libotf=yes
2262 fi
2263
2264
2265 # Check whether --with-m17n-flt was given.
2266 if test "${with_m17n_flt+set}" = set; then
2267 withval=$with_m17n_flt;
2268 else
2269 with_m17n_flt=yes
2270 fi
2271
2272
2273
2274 # Check whether --with-toolkit-scroll-bars was given.
2275 if test "${with_toolkit_scroll_bars+set}" = set; then
2276 withval=$with_toolkit_scroll_bars;
2277 else
2278 with_toolkit_scroll_bars=yes
2279 fi
2280
2281
2282 # Check whether --with-xaw3d was given.
2283 if test "${with_xaw3d+set}" = set; then
2284 withval=$with_xaw3d;
2285 else
2286 with_xaw3d=yes
2287 fi
2288
2289
2290 # Check whether --with-xim was given.
2291 if test "${with_xim+set}" = set; then
2292 withval=$with_xim;
2293 else
2294 with_xim=yes
2295 fi
2296
2297
2298 # Check whether --with-ns was given.
2299 if test "${with_ns+set}" = set; then
2300 withval=$with_ns;
2301 else
2302 with_ns=no
2303 fi
2304
2305
2306
2307 # Check whether --with-gpm was given.
2308 if test "${with_gpm+set}" = set; then
2309 withval=$with_gpm;
2310 else
2311 with_gpm=yes
2312 fi
2313
2314
2315 # Check whether --with-dbus was given.
2316 if test "${with_dbus+set}" = set; then
2317 withval=$with_dbus;
2318 else
2319 with_dbus=yes
2320 fi
2321
2322
2323 # Check whether --with-gconf was given.
2324 if test "${with_gconf+set}" = set; then
2325 withval=$with_gconf;
2326 else
2327 with_gconf=yes
2328 fi
2329
2330
2331 # Check whether --with-selinux was given.
2332 if test "${with_selinux+set}" = set; then
2333 withval=$with_selinux;
2334 else
2335 with_selinux=yes
2336 fi
2337
2338
2339 ## For the times when you want to build Emacs but don't have
2340 ## a suitable makeinfo, and can live without the manuals.
2341
2342 # Check whether --with-makeinfo was given.
2343 if test "${with_makeinfo+set}" = set; then
2344 withval=$with_makeinfo;
2345 else
2346 with_makeinfo=yes
2347 fi
2348
2349
2350
2351 # Check whether --with-gtk was given.
2352 if test "${with_gtk+set}" = set; then
2353 withval=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2354 specify a toolkit." >&5
2355 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2356 specify a toolkit." >&2;}
2357 { (exit 1); exit 1; }; }
2358 fi
2359
2360
2361
2362 # Check whether --with-gcc was given.
2363 if test "${with_gcc+set}" = set; then
2364 withval=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2365 variable to specify a compiler." >&5
2366 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2367 variable to specify a compiler." >&2;}
2368 { (exit 1); exit 1; }; }
2369 fi
2370
2371
2372
2373 # Check whether --with-pkg-config-prog was given.
2374 if test "${with_pkg_config_prog+set}" = set; then
2375 withval=$with_pkg_config_prog;
2376 fi
2377
2378 if test "X${with_pkg_config_prog}" != X; then
2379 if test "${with_pkg_config_prog}" != yes; then
2380 PKG_CONFIG="${with_pkg_config_prog}"
2381 fi
2382 fi
2383
2384 CRT_DIR=
2385
2386 # Check whether --with-crt-dir was given.
2387 if test "${with_crt_dir+set}" = set; then
2388 withval=$with_crt_dir;
2389 fi
2390
2391 CRT_DIR="${with_crt_dir}"
2392
2393
2394 # Check whether --with-gnustep-conf was given.
2395 if test "${with_gnustep_conf+set}" = set; then
2396 withval=$with_gnustep_conf;
2397 fi
2398
2399 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2400 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2401 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2402 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2403
2404 # Check whether --enable-ns-self-contained was given.
2405 if test "${enable_ns_self_contained+set}" = set; then
2406 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2407 else
2408 EN_NS_SELF_CONTAINED=yes
2409 fi
2410
2411
2412 # Check whether --enable-asserts was given.
2413 if test "${enable_asserts+set}" = set; then
2414 enableval=$enable_asserts; USE_XASSERTS=$enableval
2415 else
2416 USE_XASSERTS=no
2417 fi
2418
2419
2420 # Check whether --enable-maintainer-mode was given.
2421 if test "${enable_maintainer_mode+set}" = set; then
2422 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2423 else
2424 USE_MAINTAINER_MODE=no
2425 fi
2426
2427 if test $USE_MAINTAINER_MODE = yes; then
2428 MAINT=
2429 else
2430 MAINT=#
2431 fi
2432
2433
2434 # Check whether --enable-locallisppath was given.
2435 if test "${enable_locallisppath+set}" = set; then
2436 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2437 locallisppath=
2438 elif test "${enableval}" != "yes"; then
2439 locallisppath=${enableval}
2440 fi
2441 fi
2442
2443
2444 # Check whether --enable-checking was given.
2445 if test "${enable_checking+set}" = set; then
2446 enableval=$enable_checking; ac_checking_flags="${enableval}"
2447 fi
2448
2449 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2450 for check in $ac_checking_flags
2451 do
2452 case $check in
2453 # these set all the flags to specific states
2454 yes) ac_enable_checking=1 ;;
2455 no) ac_enable_checking= ;
2456 ac_gc_check_stringbytes= ;
2457 ac_gc_check_string_overrun= ;
2458 ac_gc_check_string_free_list= ;
2459 ac_xmalloc_overrun= ;
2460 ac_gc_check_cons_list= ;;
2461 all) ac_enable_checking=1 ;
2462 ac_gc_check_stringbytes=1 ;
2463 ac_gc_check_string_overrun=1 ;
2464 ac_gc_check_string_free_list=1 ;
2465 ac_xmalloc_overrun=1 ;
2466 ac_gc_check_cons_list=1 ;;
2467 # these enable particular checks
2468 stringbytes) ac_gc_check_stringbytes=1 ;;
2469 stringoverrun) ac_gc_check_string_overrun=1 ;;
2470 stringfreelist) ac_gc_check_string_free_list=1 ;;
2471 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2472 conslist) ac_gc_check_cons_list=1 ;;
2473 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2474 $as_echo "$as_me: error: unknown check category $check" >&2;}
2475 { (exit 1); exit 1; }; } ;;
2476 esac
2477 done
2478 IFS="$ac_save_IFS"
2479
2480 if test x$ac_enable_checking != x ; then
2481
2482 cat >>confdefs.h <<\_ACEOF
2483 #define ENABLE_CHECKING 1
2484 _ACEOF
2485
2486 fi
2487 if test x$ac_gc_check_stringbytes != x ; then
2488
2489 cat >>confdefs.h <<\_ACEOF
2490 #define GC_CHECK_STRING_BYTES 1
2491 _ACEOF
2492
2493 fi
2494 if test x$ac_gc_check_stringoverrun != x ; then
2495
2496 cat >>confdefs.h <<\_ACEOF
2497 #define GC_CHECK_STRING_OVERRUN 1
2498 _ACEOF
2499
2500 fi
2501 if test x$ac_gc_check_string_free_list != x ; then
2502
2503 cat >>confdefs.h <<\_ACEOF
2504 #define GC_CHECK_STRING_FREE_LIST 1
2505 _ACEOF
2506
2507 fi
2508 if test x$ac_xmalloc_overrun != x ; then
2509
2510 cat >>confdefs.h <<\_ACEOF
2511 #define XMALLOC_OVERRUN_CHECK 1
2512 _ACEOF
2513
2514 fi
2515 if test x$ac_gc_check_cons_list != x ; then
2516
2517 cat >>confdefs.h <<\_ACEOF
2518 #define GC_CHECK_CONS_LIST 1
2519 _ACEOF
2520
2521 fi
2522
2523 # Check whether --enable-profiling was given.
2524 if test "${enable_profiling+set}" = set; then
2525 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2526 fi
2527
2528 if test x$ac_enable_profiling != x ; then
2529 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2530 PROFILING_LDFLAGS="-pg"
2531 else
2532 PROFILING_CFLAGS=
2533 PROFILING_LDFLAGS=
2534 fi
2535
2536 # Check whether --enable-autodepend was given.
2537 if test "${enable_autodepend+set}" = set; then
2538 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2539 else
2540 ac_enable_autodepend=yes
2541 fi
2542
2543
2544 #### Make srcdir absolute, if it isn't already. It's important to
2545 #### avoid running the path through pwd unnecessarily, since pwd can
2546 #### give you automounter prefixes, which can go away. We do all this
2547 #### so Emacs can find its files when run uninstalled.
2548 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2549 unset CDPATH
2550 case "${srcdir}" in
2551 /* ) ;;
2552 . )
2553 ## We may be able to use the $PWD environment variable to make this
2554 ## absolute. But sometimes PWD is inaccurate.
2555 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2556 ## but that tested only for a well-formed and valid PWD,
2557 ## it did not object when PWD was well-formed and valid but just wrong.
2558 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2559 then
2560 srcdir="$PWD"
2561 else
2562 srcdir="`(cd ${srcdir}; pwd)`"
2563 fi
2564 ;;
2565 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2566 esac
2567
2568 #### Check if the source directory already has a configured system in it.
2569 if test `pwd` != `(cd ${srcdir} && pwd)` \
2570 && test -f "${srcdir}/src/config.h" ; then
2571 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2572 as a build directory right now; it has been configured in its own
2573 right. To configure in another directory as well, you MUST
2574 use GNU make. If you do not have GNU make, then you must
2575 now do \`make distclean' in ${srcdir},
2576 and then run $0 again." >&5
2577 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2578 as a build directory right now; it has been configured in its own
2579 right. To configure in another directory as well, you MUST
2580 use GNU make. If you do not have GNU make, then you must
2581 now do \`make distclean' in ${srcdir},
2582 and then run $0 again." >&2;}
2583 fi
2584
2585 #### Given the configuration name, set machfile and opsysfile to the
2586 #### names of the m/*.h and s/*.h files we should use.
2587
2588 ### Canonicalize the configuration name.
2589
2590 ac_aux_dir=
2591 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2592 if test -f "$ac_dir/install-sh"; then
2593 ac_aux_dir=$ac_dir
2594 ac_install_sh="$ac_aux_dir/install-sh -c"
2595 break
2596 elif test -f "$ac_dir/install.sh"; then
2597 ac_aux_dir=$ac_dir
2598 ac_install_sh="$ac_aux_dir/install.sh -c"
2599 break
2600 elif test -f "$ac_dir/shtool"; then
2601 ac_aux_dir=$ac_dir
2602 ac_install_sh="$ac_aux_dir/shtool install -c"
2603 break
2604 fi
2605 done
2606 if test -z "$ac_aux_dir"; then
2607 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2608 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2609 { (exit 1); exit 1; }; }
2610 fi
2611
2612 # These three variables are undocumented and unsupported,
2613 # and are intended to be withdrawn in a future Autoconf release.
2614 # They can cause serious problems if a builder's source tree is in a directory
2615 # whose full name contains unusual characters.
2616 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2617 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2618 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2619
2620
2621 # Make sure we can run config.sub.
2622 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2623 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2624 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2625 { (exit 1); exit 1; }; }
2626
2627 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2628 $as_echo_n "checking build system type... " >&6; }
2629 if test "${ac_cv_build+set}" = set; then
2630 $as_echo_n "(cached) " >&6
2631 else
2632 ac_build_alias=$build_alias
2633 test "x$ac_build_alias" = x &&
2634 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2635 test "x$ac_build_alias" = x &&
2636 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2637 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2638 { (exit 1); exit 1; }; }
2639 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2640 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2641 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2642 { (exit 1); exit 1; }; }
2643
2644 fi
2645 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2646 $as_echo "$ac_cv_build" >&6; }
2647 case $ac_cv_build in
2648 *-*-*) ;;
2649 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2650 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2651 { (exit 1); exit 1; }; };;
2652 esac
2653 build=$ac_cv_build
2654 ac_save_IFS=$IFS; IFS='-'
2655 set x $ac_cv_build
2656 shift
2657 build_cpu=$1
2658 build_vendor=$2
2659 shift; shift
2660 # Remember, the first character of IFS is used to create $*,
2661 # except with old shells:
2662 build_os=$*
2663 IFS=$ac_save_IFS
2664 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2665
2666
2667 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2668 $as_echo_n "checking host system type... " >&6; }
2669 if test "${ac_cv_host+set}" = set; then
2670 $as_echo_n "(cached) " >&6
2671 else
2672 if test "x$host_alias" = x; then
2673 ac_cv_host=$ac_cv_build
2674 else
2675 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2676 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2677 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2678 { (exit 1); exit 1; }; }
2679 fi
2680
2681 fi
2682 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2683 $as_echo "$ac_cv_host" >&6; }
2684 case $ac_cv_host in
2685 *-*-*) ;;
2686 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2687 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2688 { (exit 1); exit 1; }; };;
2689 esac
2690 host=$ac_cv_host
2691 ac_save_IFS=$IFS; IFS='-'
2692 set x $ac_cv_host
2693 shift
2694 host_cpu=$1
2695 host_vendor=$2
2696 shift; shift
2697 # Remember, the first character of IFS is used to create $*,
2698 # except with old shells:
2699 host_os=$*
2700 IFS=$ac_save_IFS
2701 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2702
2703
2704 canonical=$host
2705 configuration=${host_alias-${build_alias-$host}}
2706
2707
2708
2709 ### If you add support for a new configuration, add code to this
2710 ### switch statement to recognize your configuration name and select
2711 ### the appropriate operating system and machine description files.
2712
2713 ### You would hope that you could choose an m/*.h file pretty much
2714 ### based on the machine portion of the configuration name, and an s-
2715 ### file based on the operating system portion. However, it turns out
2716 ### that each m/*.h file is pretty manufacturer-specific - for
2717 ### example mips.h is MIPS
2718 ### So we basically have to have a special case for each
2719 ### configuration name.
2720 ###
2721 ### As far as handling version numbers on operating systems is
2722 ### concerned, make sure things will fail in a fixable way. If
2723 ### /etc/MACHINES doesn't say anything about version numbers, be
2724 ### prepared to handle anything reasonably. If version numbers
2725 ### matter, be sure /etc/MACHINES says something about it.
2726 ###
2727 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2728 ### "System V Release 4"; he writes, "The old convention encouraged
2729 ### confusion between `system' and `release' levels'."
2730
2731 machine='' opsys='' unported=no
2732 case "${canonical}" in
2733
2734 ## FreeBSD ports
2735 *-*-freebsd* )
2736 opsys=freebsd
2737 case "${canonical}" in
2738 alpha*-*-freebsd*) machine=alpha ;;
2739 arm*-*-freebsd*) machine=arm ;;
2740 ia64-*-freebsd*) machine=ia64 ;;
2741 sparc-*-freebsd*) machine=sparc ;;
2742 sparc64-*-freebsd*) machine=sparc ;;
2743 powerpc-*-freebsd*) machine=macppc ;;
2744 i[3456]86-*-freebsd*) machine=intel386 ;;
2745 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2746 esac
2747 ;;
2748
2749 ## FreeBSD kernel + glibc based userland
2750 *-*-kfreebsd*gnu* )
2751 opsys=gnu-kfreebsd
2752 case "${canonical}" in
2753 alpha*-*-kfreebsd*) machine=alpha ;;
2754 ia64-*-kfreebsd*) machine=ia64 ;;
2755 sparc-*-kfreebsd*) machine=sparc ;;
2756 sparc64-*-kfreebsd*) machine=sparc ;;
2757 powerpc-*-kfreebsd*) machine=macppc ;;
2758 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2759 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2760 esac
2761 ;;
2762
2763 ## NetBSD ports
2764 *-*-netbsd* )
2765 opsys=netbsd
2766 if test -f /usr/lib/crti.o; then
2767
2768 cat >>confdefs.h <<\_ACEOF
2769 #define HAVE_CRTIN /**/
2770 _ACEOF
2771
2772 fi
2773
2774 case "${canonical}" in
2775 alpha*-*-netbsd*) machine=alpha ;;
2776 i[3456]86-*-netbsd*) machine=intel386 ;;
2777 mips-*-netbsd*) machine=mips ;;
2778 mipsel-*-netbsd*) machine=mips ;;
2779 mipseb-*-netbsd*) machine=mips ;;
2780 powerpc-*-netbsd*) machine=macppc ;;
2781 sparc*-*-netbsd*) machine=sparc ;;
2782 vax-*-netbsd*) machine=vax ;;
2783 arm-*-netbsd*) machine=arm ;;
2784 x86_64-*-netbsd*) machine=amdx86-64 ;;
2785 hppa-*-netbsd*) machine=hp800 ;;
2786 m68k-*-netbsd*) machine=m68k ;;
2787 esac
2788 ;;
2789
2790 ## OpenBSD ports
2791 *-*-openbsd* )
2792 opsys=openbsd
2793 case "${canonical}" in
2794 alpha*-*-openbsd*) machine=alpha ;;
2795 arm-*-openbsd*) machine=arm ;;
2796 i386-*-openbsd*) machine=intel386 ;;
2797 powerpc-*-openbsd*) machine=macppc ;;
2798 sparc*-*-openbsd*) machine=sparc ;;
2799 vax-*-openbsd*) machine=vax ;;
2800 x86_64-*-openbsd*) machine=amdx86-64 ;;
2801 hppa-*-openbsd*) machine=hp800 ;;
2802 esac
2803 ;;
2804
2805 alpha*-*-linux-gnu* )
2806 machine=alpha opsys=gnu-linux
2807 ;;
2808
2809 arm*-*-linux-gnu* )
2810 machine=arm opsys=gnu-linux
2811 ;;
2812
2813 ## Apple Darwin / Mac OS X
2814 *-apple-darwin* )
2815 case "${canonical}" in
2816 i[3456]86-* ) machine=intel386 ;;
2817 powerpc-* ) machine=macppc ;;
2818 x86_64-* ) machine=amdx86-64 ;;
2819 * ) unported=yes ;;
2820 esac
2821 opsys=darwin
2822 # Define CPP as follows to make autoconf work correctly.
2823 CPP="${CC-cc} -E -no-cpp-precomp"
2824 # Use fink packages if available.
2825 if test -d /sw/include && test -d /sw/lib; then
2826 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2827 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2828 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2829 fi
2830 ;;
2831
2832 ## HP 9000 series 700 and 800, running HP/UX
2833 hppa*-hp-hpux10.2* )
2834 machine=hp800 opsys=hpux10-20
2835 ;;
2836 hppa*-hp-hpux1[1-9]* )
2837 machine=hp800 opsys=hpux11
2838 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2839 ;;
2840
2841 hppa*-*-linux-gnu* )
2842 machine=hp800 opsys=gnu-linux
2843 ;;
2844
2845 ## IBM machines
2846 s390-*-linux-gnu* )
2847 machine=ibms390 opsys=gnu-linux
2848 ;;
2849 s390x-*-linux-gnu* )
2850 machine=ibms390x opsys=gnu-linux
2851 ;;
2852 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2853 machine=ibmrs6000 opsys=aix4-2
2854 ;;
2855 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2856 machine=ibmrs6000 opsys=aix4-2
2857 ;;
2858 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2859 machine=ibmrs6000 opsys=aix4-2
2860 ;;
2861 rs6000-ibm-aix6* | powerpc-ibm-aix6* )
2862 machine=ibmrs6000 opsys=aix4-2
2863 ;;
2864
2865 ## Macintosh PowerPC
2866 powerpc*-*-linux-gnu* )
2867 machine=macppc opsys=gnu-linux
2868 ;;
2869
2870 ## Silicon Graphics machines
2871 ## Iris 4D
2872 mips-sgi-irix6.5 )
2873 machine=iris4d opsys=irix6-5
2874 # Without defining _LANGUAGE_C, things get masked out in the headers
2875 # so that, for instance, grepping for `free' in stdlib.h fails and
2876 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2877 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2878 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2879 ;;
2880
2881 ## Suns
2882 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2883 machine=sparc opsys=gnu-linux
2884 ;;
2885
2886 *-sun-solaris* \
2887 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
2888 | x86_64-*-solaris2* | x86_64-*-sunos5*)
2889 case "${canonical}" in
2890 i[3456]86-*-* ) machine=intel386 ;;
2891 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2892 sparc* ) machine=sparc ;;
2893 * ) unported=yes ;;
2894 esac
2895 case "${canonical}" in
2896 *-sunos5.6* | *-solaris2.6* )
2897 opsys=sol2-6
2898 NON_GNU_CPP=/usr/ccs/lib/cpp
2899 RANLIB="ar -ts"
2900 ;;
2901 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
2902 opsys=sol2-6
2903 emacs_check_sunpro_c=yes
2904 NON_GNU_CPP=/usr/ccs/lib/cpp
2905 ;;
2906 *-sunos5* | *-solaris* )
2907 opsys=sol2-10
2908 emacs_check_sunpro_c=yes
2909 NON_GNU_CPP=/usr/ccs/lib/cpp
2910 ;;
2911 esac
2912 ## Watch out for a compiler that we know will not work.
2913 case "${canonical}" in
2914 *-solaris* | *-sunos5* )
2915 if [ "x$CC" = x/usr/ucb/cc ]; then
2916 ## /usr/ucb/cc doesn't work;
2917 ## we should find some other compiler that does work.
2918 unset CC
2919 fi
2920 ;;
2921 *) ;;
2922 esac
2923 ;;
2924
2925 ## IA-64
2926 ia64*-*-linux* )
2927 machine=ia64 opsys=gnu-linux
2928 ;;
2929
2930 ## Intel 386 machines where we don't care about the manufacturer
2931 i[3456]86-*-* )
2932 machine=intel386
2933 case "${canonical}" in
2934 *-cygwin ) opsys=cygwin ;;
2935 *-darwin* ) opsys=darwin
2936 CPP="${CC-cc} -E -no-cpp-precomp"
2937 ;;
2938 *-linux-gnu* ) opsys=gnu-linux ;;
2939 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2940 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2941 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2942 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2943 esac
2944 ;;
2945
2946 ## m68k Linux-based GNU system
2947 m68k-*-linux-gnu* )
2948 machine=m68k opsys=gnu-linux
2949 ;;
2950
2951 ## Mips Linux-based GNU system
2952 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
2953 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
2954 machine=mips opsys=gnu-linux
2955 ;;
2956
2957 ## AMD x86-64 Linux-based GNU system
2958 x86_64-*-linux-gnu* )
2959 machine=amdx86-64 opsys=gnu-linux
2960 ;;
2961
2962 ## Tensilica Xtensa Linux-based GNU system
2963 xtensa*-*-linux-gnu* )
2964 machine=xtensa opsys=gnu-linux
2965 ;;
2966
2967 ## SuperH Linux-based GNU system
2968 sh[34]*-*-linux-gnu* )
2969 machine=sh3 opsys=gnu-linux
2970 ;;
2971
2972 * )
2973 unported=yes
2974 ;;
2975 esac
2976
2977 ### If the code above didn't choose an operating system, just choose
2978 ### an operating system based on the configuration name. You really
2979 ### only want to use this when you have no idea what the right
2980 ### operating system is; if you know what operating systems a machine
2981 ### runs, it's cleaner to make it explicit in the case statement
2982 ### above.
2983 if test x"${opsys}" = x; then
2984 case "${canonical}" in
2985 *-gnu* ) opsys=gnu ;;
2986 * )
2987 unported=yes
2988 ;;
2989 esac
2990 fi
2991
2992
2993
2994 if test $unported = yes; then
2995 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2996 Check \`etc/MACHINES' for recognized configuration names." >&5
2997 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2998 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2999 { (exit 1); exit 1; }; }
3000 fi
3001
3002 machfile="m/${machine}.h"
3003 opsysfile="s/${opsys}.h"
3004
3005
3006 #### Choose a compiler.
3007 test -n "$CC" && cc_specified=yes
3008
3009 # Save the value of CFLAGS that the user specified.
3010 SPECIFIED_CFLAGS="$CFLAGS"
3011
3012 ac_ext=c
3013 ac_cpp='$CPP $CPPFLAGS'
3014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3017 if test -n "$ac_tool_prefix"; then
3018 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3019 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3020 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3021 $as_echo_n "checking for $ac_word... " >&6; }
3022 if test "${ac_cv_prog_CC+set}" = set; then
3023 $as_echo_n "(cached) " >&6
3024 else
3025 if test -n "$CC"; then
3026 ac_cv_prog_CC="$CC" # Let the user override the test.
3027 else
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029 for as_dir in $PATH
3030 do
3031 IFS=$as_save_IFS
3032 test -z "$as_dir" && as_dir=.
3033 for ac_exec_ext in '' $ac_executable_extensions; do
3034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3035 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3036 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3037 break 2
3038 fi
3039 done
3040 done
3041 IFS=$as_save_IFS
3042
3043 fi
3044 fi
3045 CC=$ac_cv_prog_CC
3046 if test -n "$CC"; then
3047 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3048 $as_echo "$CC" >&6; }
3049 else
3050 { $as_echo "$as_me:$LINENO: result: no" >&5
3051 $as_echo "no" >&6; }
3052 fi
3053
3054
3055 fi
3056 if test -z "$ac_cv_prog_CC"; then
3057 ac_ct_CC=$CC
3058 # Extract the first word of "gcc", so it can be a program name with args.
3059 set dummy gcc; ac_word=$2
3060 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3061 $as_echo_n "checking for $ac_word... " >&6; }
3062 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3063 $as_echo_n "(cached) " >&6
3064 else
3065 if test -n "$ac_ct_CC"; then
3066 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3067 else
3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069 for as_dir in $PATH
3070 do
3071 IFS=$as_save_IFS
3072 test -z "$as_dir" && as_dir=.
3073 for ac_exec_ext in '' $ac_executable_extensions; do
3074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3075 ac_cv_prog_ac_ct_CC="gcc"
3076 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3077 break 2
3078 fi
3079 done
3080 done
3081 IFS=$as_save_IFS
3082
3083 fi
3084 fi
3085 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3086 if test -n "$ac_ct_CC"; then
3087 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3088 $as_echo "$ac_ct_CC" >&6; }
3089 else
3090 { $as_echo "$as_me:$LINENO: result: no" >&5
3091 $as_echo "no" >&6; }
3092 fi
3093
3094 if test "x$ac_ct_CC" = x; then
3095 CC=""
3096 else
3097 case $cross_compiling:$ac_tool_warned in
3098 yes:)
3099 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3100 whose name does not start with the host triplet. If you think this
3101 configuration is useful to you, please write to autoconf@gnu.org." >&5
3102 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3103 whose name does not start with the host triplet. If you think this
3104 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3105 ac_tool_warned=yes ;;
3106 esac
3107 CC=$ac_ct_CC
3108 fi
3109 else
3110 CC="$ac_cv_prog_CC"
3111 fi
3112
3113 if test -z "$CC"; then
3114 if test -n "$ac_tool_prefix"; then
3115 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3116 set dummy ${ac_tool_prefix}cc; ac_word=$2
3117 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3118 $as_echo_n "checking for $ac_word... " >&6; }
3119 if test "${ac_cv_prog_CC+set}" = set; then
3120 $as_echo_n "(cached) " >&6
3121 else
3122 if test -n "$CC"; then
3123 ac_cv_prog_CC="$CC" # Let the user override the test.
3124 else
3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126 for as_dir in $PATH
3127 do
3128 IFS=$as_save_IFS
3129 test -z "$as_dir" && as_dir=.
3130 for ac_exec_ext in '' $ac_executable_extensions; do
3131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3132 ac_cv_prog_CC="${ac_tool_prefix}cc"
3133 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3134 break 2
3135 fi
3136 done
3137 done
3138 IFS=$as_save_IFS
3139
3140 fi
3141 fi
3142 CC=$ac_cv_prog_CC
3143 if test -n "$CC"; then
3144 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3145 $as_echo "$CC" >&6; }
3146 else
3147 { $as_echo "$as_me:$LINENO: result: no" >&5
3148 $as_echo "no" >&6; }
3149 fi
3150
3151
3152 fi
3153 fi
3154 if test -z "$CC"; then
3155 # Extract the first word of "cc", so it can be a program name with args.
3156 set dummy cc; ac_word=$2
3157 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3158 $as_echo_n "checking for $ac_word... " >&6; }
3159 if test "${ac_cv_prog_CC+set}" = set; then
3160 $as_echo_n "(cached) " >&6
3161 else
3162 if test -n "$CC"; then
3163 ac_cv_prog_CC="$CC" # Let the user override the test.
3164 else
3165 ac_prog_rejected=no
3166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167 for as_dir in $PATH
3168 do
3169 IFS=$as_save_IFS
3170 test -z "$as_dir" && as_dir=.
3171 for ac_exec_ext in '' $ac_executable_extensions; do
3172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3173 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3174 ac_prog_rejected=yes
3175 continue
3176 fi
3177 ac_cv_prog_CC="cc"
3178 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 break 2
3180 fi
3181 done
3182 done
3183 IFS=$as_save_IFS
3184
3185 if test $ac_prog_rejected = yes; then
3186 # We found a bogon in the path, so make sure we never use it.
3187 set dummy $ac_cv_prog_CC
3188 shift
3189 if test $# != 0; then
3190 # We chose a different compiler from the bogus one.
3191 # However, it has the same basename, so the bogon will be chosen
3192 # first if we set CC to just the basename; use the full file name.
3193 shift
3194 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3195 fi
3196 fi
3197 fi
3198 fi
3199 CC=$ac_cv_prog_CC
3200 if test -n "$CC"; then
3201 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3202 $as_echo "$CC" >&6; }
3203 else
3204 { $as_echo "$as_me:$LINENO: result: no" >&5
3205 $as_echo "no" >&6; }
3206 fi
3207
3208
3209 fi
3210 if test -z "$CC"; then
3211 if test -n "$ac_tool_prefix"; then
3212 for ac_prog in cl.exe
3213 do
3214 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3215 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3216 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3217 $as_echo_n "checking for $ac_word... " >&6; }
3218 if test "${ac_cv_prog_CC+set}" = set; then
3219 $as_echo_n "(cached) " >&6
3220 else
3221 if test -n "$CC"; then
3222 ac_cv_prog_CC="$CC" # Let the user override the test.
3223 else
3224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225 for as_dir in $PATH
3226 do
3227 IFS=$as_save_IFS
3228 test -z "$as_dir" && as_dir=.
3229 for ac_exec_ext in '' $ac_executable_extensions; do
3230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3231 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3232 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3233 break 2
3234 fi
3235 done
3236 done
3237 IFS=$as_save_IFS
3238
3239 fi
3240 fi
3241 CC=$ac_cv_prog_CC
3242 if test -n "$CC"; then
3243 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3244 $as_echo "$CC" >&6; }
3245 else
3246 { $as_echo "$as_me:$LINENO: result: no" >&5
3247 $as_echo "no" >&6; }
3248 fi
3249
3250
3251 test -n "$CC" && break
3252 done
3253 fi
3254 if test -z "$CC"; then
3255 ac_ct_CC=$CC
3256 for ac_prog in cl.exe
3257 do
3258 # Extract the first word of "$ac_prog", so it can be a program name with args.
3259 set dummy $ac_prog; ac_word=$2
3260 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3261 $as_echo_n "checking for $ac_word... " >&6; }
3262 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3263 $as_echo_n "(cached) " >&6
3264 else
3265 if test -n "$ac_ct_CC"; then
3266 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3267 else
3268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269 for as_dir in $PATH
3270 do
3271 IFS=$as_save_IFS
3272 test -z "$as_dir" && as_dir=.
3273 for ac_exec_ext in '' $ac_executable_extensions; do
3274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3275 ac_cv_prog_ac_ct_CC="$ac_prog"
3276 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3277 break 2
3278 fi
3279 done
3280 done
3281 IFS=$as_save_IFS
3282
3283 fi
3284 fi
3285 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3286 if test -n "$ac_ct_CC"; then
3287 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3288 $as_echo "$ac_ct_CC" >&6; }
3289 else
3290 { $as_echo "$as_me:$LINENO: result: no" >&5
3291 $as_echo "no" >&6; }
3292 fi
3293
3294
3295 test -n "$ac_ct_CC" && break
3296 done
3297
3298 if test "x$ac_ct_CC" = x; then
3299 CC=""
3300 else
3301 case $cross_compiling:$ac_tool_warned in
3302 yes:)
3303 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3304 whose name does not start with the host triplet. If you think this
3305 configuration is useful to you, please write to autoconf@gnu.org." >&5
3306 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3307 whose name does not start with the host triplet. If you think this
3308 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3309 ac_tool_warned=yes ;;
3310 esac
3311 CC=$ac_ct_CC
3312 fi
3313 fi
3314
3315 fi
3316
3317
3318 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3319 See \`config.log' for more details." >&5
3320 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3321 See \`config.log' for more details." >&2;}
3322 { (exit 1); exit 1; }; }
3323
3324 # Provide some information about the compiler.
3325 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3326 set X $ac_compile
3327 ac_compiler=$2
3328 { (ac_try="$ac_compiler --version >&5"
3329 case "(($ac_try" in
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3332 esac
3333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3334 $as_echo "$ac_try_echo") >&5
3335 (eval "$ac_compiler --version >&5") 2>&5
3336 ac_status=$?
3337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); }
3339 { (ac_try="$ac_compiler -v >&5"
3340 case "(($ac_try" in
3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342 *) ac_try_echo=$ac_try;;
3343 esac
3344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3345 $as_echo "$ac_try_echo") >&5
3346 (eval "$ac_compiler -v >&5") 2>&5
3347 ac_status=$?
3348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }
3350 { (ac_try="$ac_compiler -V >&5"
3351 case "(($ac_try" in
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3354 esac
3355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3356 $as_echo "$ac_try_echo") >&5
3357 (eval "$ac_compiler -V >&5") 2>&5
3358 ac_status=$?
3359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); }
3361
3362 cat >conftest.$ac_ext <<_ACEOF
3363 /* confdefs.h. */
3364 _ACEOF
3365 cat confdefs.h >>conftest.$ac_ext
3366 cat >>conftest.$ac_ext <<_ACEOF
3367 /* end confdefs.h. */
3368
3369 int
3370 main ()
3371 {
3372
3373 ;
3374 return 0;
3375 }
3376 _ACEOF
3377 ac_clean_files_save=$ac_clean_files
3378 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3379 # Try to create an executable without -o first, disregard a.out.
3380 # It will help us diagnose broken compilers, and finding out an intuition
3381 # of exeext.
3382 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3383 $as_echo_n "checking for C compiler default output file name... " >&6; }
3384 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3385
3386 # The possible output files:
3387 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3388
3389 ac_rmfiles=
3390 for ac_file in $ac_files
3391 do
3392 case $ac_file in
3393 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3394 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3395 esac
3396 done
3397 rm -f $ac_rmfiles
3398
3399 if { (ac_try="$ac_link_default"
3400 case "(($ac_try" in
3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402 *) ac_try_echo=$ac_try;;
3403 esac
3404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3405 $as_echo "$ac_try_echo") >&5
3406 (eval "$ac_link_default") 2>&5
3407 ac_status=$?
3408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); }; then
3410 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3411 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3412 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3413 # so that the user can short-circuit this test for compilers unknown to
3414 # Autoconf.
3415 for ac_file in $ac_files ''
3416 do
3417 test -f "$ac_file" || continue
3418 case $ac_file in
3419 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3420 ;;
3421 [ab].out )
3422 # We found the default executable, but exeext='' is most
3423 # certainly right.
3424 break;;
3425 *.* )
3426 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3427 then :; else
3428 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3429 fi
3430 # We set ac_cv_exeext here because the later test for it is not
3431 # safe: cross compilers may not add the suffix if given an `-o'
3432 # argument, so we may need to know it at that point already.
3433 # Even if this section looks crufty: it has the advantage of
3434 # actually working.
3435 break;;
3436 * )
3437 break;;
3438 esac
3439 done
3440 test "$ac_cv_exeext" = no && ac_cv_exeext=
3441
3442 else
3443 ac_file=''
3444 fi
3445
3446 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3447 $as_echo "$ac_file" >&6; }
3448 if test -z "$ac_file"; then
3449 $as_echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3451
3452 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3453 See \`config.log' for more details." >&5
3454 $as_echo "$as_me: error: C compiler cannot create executables
3455 See \`config.log' for more details." >&2;}
3456 { (exit 77); exit 77; }; }
3457 fi
3458
3459 ac_exeext=$ac_cv_exeext
3460
3461 # Check that the compiler produces executables we can run. If not, either
3462 # the compiler is broken, or we cross compile.
3463 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3464 $as_echo_n "checking whether the C compiler works... " >&6; }
3465 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3466 # If not cross compiling, check that we can run a simple program.
3467 if test "$cross_compiling" != yes; then
3468 if { ac_try='./$ac_file'
3469 { (case "(($ac_try" in
3470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471 *) ac_try_echo=$ac_try;;
3472 esac
3473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3474 $as_echo "$ac_try_echo") >&5
3475 (eval "$ac_try") 2>&5
3476 ac_status=$?
3477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); }; }; then
3479 cross_compiling=no
3480 else
3481 if test "$cross_compiling" = maybe; then
3482 cross_compiling=yes
3483 else
3484 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3485 If you meant to cross compile, use \`--host'.
3486 See \`config.log' for more details." >&5
3487 $as_echo "$as_me: error: cannot run C compiled programs.
3488 If you meant to cross compile, use \`--host'.
3489 See \`config.log' for more details." >&2;}
3490 { (exit 1); exit 1; }; }
3491 fi
3492 fi
3493 fi
3494 { $as_echo "$as_me:$LINENO: result: yes" >&5
3495 $as_echo "yes" >&6; }
3496
3497 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3498 ac_clean_files=$ac_clean_files_save
3499 # Check that the compiler produces executables we can run. If not, either
3500 # the compiler is broken, or we cross compile.
3501 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3502 $as_echo_n "checking whether we are cross compiling... " >&6; }
3503 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3504 $as_echo "$cross_compiling" >&6; }
3505
3506 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3507 $as_echo_n "checking for suffix of executables... " >&6; }
3508 if { (ac_try="$ac_link"
3509 case "(($ac_try" in
3510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511 *) ac_try_echo=$ac_try;;
3512 esac
3513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3514 $as_echo "$ac_try_echo") >&5
3515 (eval "$ac_link") 2>&5
3516 ac_status=$?
3517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); }; then
3519 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3520 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3521 # work properly (i.e., refer to `conftest.exe'), while it won't with
3522 # `rm'.
3523 for ac_file in conftest.exe conftest conftest.*; do
3524 test -f "$ac_file" || continue
3525 case $ac_file in
3526 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3527 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3528 break;;
3529 * ) break;;
3530 esac
3531 done
3532 else
3533 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3534 See \`config.log' for more details." >&5
3535 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3536 See \`config.log' for more details." >&2;}
3537 { (exit 1); exit 1; }; }
3538 fi
3539
3540 rm -f conftest$ac_cv_exeext
3541 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3542 $as_echo "$ac_cv_exeext" >&6; }
3543
3544 rm -f conftest.$ac_ext
3545 EXEEXT=$ac_cv_exeext
3546 ac_exeext=$EXEEXT
3547 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3548 $as_echo_n "checking for suffix of object files... " >&6; }
3549 if test "${ac_cv_objext+set}" = set; then
3550 $as_echo_n "(cached) " >&6
3551 else
3552 cat >conftest.$ac_ext <<_ACEOF
3553 /* confdefs.h. */
3554 _ACEOF
3555 cat confdefs.h >>conftest.$ac_ext
3556 cat >>conftest.$ac_ext <<_ACEOF
3557 /* end confdefs.h. */
3558
3559 int
3560 main ()
3561 {
3562
3563 ;
3564 return 0;
3565 }
3566 _ACEOF
3567 rm -f conftest.o conftest.obj
3568 if { (ac_try="$ac_compile"
3569 case "(($ac_try" in
3570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571 *) ac_try_echo=$ac_try;;
3572 esac
3573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3574 $as_echo "$ac_try_echo") >&5
3575 (eval "$ac_compile") 2>&5
3576 ac_status=$?
3577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); }; then
3579 for ac_file in conftest.o conftest.obj conftest.*; do
3580 test -f "$ac_file" || continue;
3581 case $ac_file in
3582 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3583 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3584 break;;
3585 esac
3586 done
3587 else
3588 $as_echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3590
3591 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3592 See \`config.log' for more details." >&5
3593 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3594 See \`config.log' for more details." >&2;}
3595 { (exit 1); exit 1; }; }
3596 fi
3597
3598 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3599 fi
3600 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3601 $as_echo "$ac_cv_objext" >&6; }
3602 OBJEXT=$ac_cv_objext
3603 ac_objext=$OBJEXT
3604 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3605 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3606 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3607 $as_echo_n "(cached) " >&6
3608 else
3609 cat >conftest.$ac_ext <<_ACEOF
3610 /* confdefs.h. */
3611 _ACEOF
3612 cat confdefs.h >>conftest.$ac_ext
3613 cat >>conftest.$ac_ext <<_ACEOF
3614 /* end confdefs.h. */
3615
3616 int
3617 main ()
3618 {
3619 #ifndef __GNUC__
3620 choke me
3621 #endif
3622
3623 ;
3624 return 0;
3625 }
3626 _ACEOF
3627 rm -f conftest.$ac_objext
3628 if { (ac_try="$ac_compile"
3629 case "(($ac_try" in
3630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3631 *) ac_try_echo=$ac_try;;
3632 esac
3633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3634 $as_echo "$ac_try_echo") >&5
3635 (eval "$ac_compile") 2>conftest.er1
3636 ac_status=$?
3637 grep -v '^ *+' conftest.er1 >conftest.err
3638 rm -f conftest.er1
3639 cat conftest.err >&5
3640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); } && {
3642 test -z "$ac_c_werror_flag" ||
3643 test ! -s conftest.err
3644 } && test -s conftest.$ac_objext; then
3645 ac_compiler_gnu=yes
3646 else
3647 $as_echo "$as_me: failed program was:" >&5
3648 sed 's/^/| /' conftest.$ac_ext >&5
3649
3650 ac_compiler_gnu=no
3651 fi
3652
3653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3654 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3655
3656 fi
3657 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3658 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3659 if test $ac_compiler_gnu = yes; then
3660 GCC=yes
3661 else
3662 GCC=
3663 fi
3664 ac_test_CFLAGS=${CFLAGS+set}
3665 ac_save_CFLAGS=$CFLAGS
3666 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3667 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3668 if test "${ac_cv_prog_cc_g+set}" = set; then
3669 $as_echo_n "(cached) " >&6
3670 else
3671 ac_save_c_werror_flag=$ac_c_werror_flag
3672 ac_c_werror_flag=yes
3673 ac_cv_prog_cc_g=no
3674 CFLAGS="-g"
3675 cat >conftest.$ac_ext <<_ACEOF
3676 /* confdefs.h. */
3677 _ACEOF
3678 cat confdefs.h >>conftest.$ac_ext
3679 cat >>conftest.$ac_ext <<_ACEOF
3680 /* end confdefs.h. */
3681
3682 int
3683 main ()
3684 {
3685
3686 ;
3687 return 0;
3688 }
3689 _ACEOF
3690 rm -f conftest.$ac_objext
3691 if { (ac_try="$ac_compile"
3692 case "(($ac_try" in
3693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694 *) ac_try_echo=$ac_try;;
3695 esac
3696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3697 $as_echo "$ac_try_echo") >&5
3698 (eval "$ac_compile") 2>conftest.er1
3699 ac_status=$?
3700 grep -v '^ *+' conftest.er1 >conftest.err
3701 rm -f conftest.er1
3702 cat conftest.err >&5
3703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); } && {
3705 test -z "$ac_c_werror_flag" ||
3706 test ! -s conftest.err
3707 } && test -s conftest.$ac_objext; then
3708 ac_cv_prog_cc_g=yes
3709 else
3710 $as_echo "$as_me: failed program was:" >&5
3711 sed 's/^/| /' conftest.$ac_ext >&5
3712
3713 CFLAGS=""
3714 cat >conftest.$ac_ext <<_ACEOF
3715 /* confdefs.h. */
3716 _ACEOF
3717 cat confdefs.h >>conftest.$ac_ext
3718 cat >>conftest.$ac_ext <<_ACEOF
3719 /* end confdefs.h. */
3720
3721 int
3722 main ()
3723 {
3724
3725 ;
3726 return 0;
3727 }
3728 _ACEOF
3729 rm -f conftest.$ac_objext
3730 if { (ac_try="$ac_compile"
3731 case "(($ac_try" in
3732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733 *) ac_try_echo=$ac_try;;
3734 esac
3735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3736 $as_echo "$ac_try_echo") >&5
3737 (eval "$ac_compile") 2>conftest.er1
3738 ac_status=$?
3739 grep -v '^ *+' conftest.er1 >conftest.err
3740 rm -f conftest.er1
3741 cat conftest.err >&5
3742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); } && {
3744 test -z "$ac_c_werror_flag" ||
3745 test ! -s conftest.err
3746 } && test -s conftest.$ac_objext; then
3747 :
3748 else
3749 $as_echo "$as_me: failed program was:" >&5
3750 sed 's/^/| /' conftest.$ac_ext >&5
3751
3752 ac_c_werror_flag=$ac_save_c_werror_flag
3753 CFLAGS="-g"
3754 cat >conftest.$ac_ext <<_ACEOF
3755 /* confdefs.h. */
3756 _ACEOF
3757 cat confdefs.h >>conftest.$ac_ext
3758 cat >>conftest.$ac_ext <<_ACEOF
3759 /* end confdefs.h. */
3760
3761 int
3762 main ()
3763 {
3764
3765 ;
3766 return 0;
3767 }
3768 _ACEOF
3769 rm -f conftest.$ac_objext
3770 if { (ac_try="$ac_compile"
3771 case "(($ac_try" in
3772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773 *) ac_try_echo=$ac_try;;
3774 esac
3775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3776 $as_echo "$ac_try_echo") >&5
3777 (eval "$ac_compile") 2>conftest.er1
3778 ac_status=$?
3779 grep -v '^ *+' conftest.er1 >conftest.err
3780 rm -f conftest.er1
3781 cat conftest.err >&5
3782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); } && {
3784 test -z "$ac_c_werror_flag" ||
3785 test ! -s conftest.err
3786 } && test -s conftest.$ac_objext; then
3787 ac_cv_prog_cc_g=yes
3788 else
3789 $as_echo "$as_me: failed program was:" >&5
3790 sed 's/^/| /' conftest.$ac_ext >&5
3791
3792
3793 fi
3794
3795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3796 fi
3797
3798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3799 fi
3800
3801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3802 ac_c_werror_flag=$ac_save_c_werror_flag
3803 fi
3804 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3805 $as_echo "$ac_cv_prog_cc_g" >&6; }
3806 if test "$ac_test_CFLAGS" = set; then
3807 CFLAGS=$ac_save_CFLAGS
3808 elif test $ac_cv_prog_cc_g = yes; then
3809 if test "$GCC" = yes; then
3810 CFLAGS="-g -O2"
3811 else
3812 CFLAGS="-g"
3813 fi
3814 else
3815 if test "$GCC" = yes; then
3816 CFLAGS="-O2"
3817 else
3818 CFLAGS=
3819 fi
3820 fi
3821 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3822 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3823 if test "${ac_cv_prog_cc_c89+set}" = set; then
3824 $as_echo_n "(cached) " >&6
3825 else
3826 ac_cv_prog_cc_c89=no
3827 ac_save_CC=$CC
3828 cat >conftest.$ac_ext <<_ACEOF
3829 /* confdefs.h. */
3830 _ACEOF
3831 cat confdefs.h >>conftest.$ac_ext
3832 cat >>conftest.$ac_ext <<_ACEOF
3833 /* end confdefs.h. */
3834 #include <stdarg.h>
3835 #include <stdio.h>
3836 #include <sys/types.h>
3837 #include <sys/stat.h>
3838 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3839 struct buf { int x; };
3840 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3841 static char *e (p, i)
3842 char **p;
3843 int i;
3844 {
3845 return p[i];
3846 }
3847 static char *f (char * (*g) (char **, int), char **p, ...)
3848 {
3849 char *s;
3850 va_list v;
3851 va_start (v,p);
3852 s = g (p, va_arg (v,int));
3853 va_end (v);
3854 return s;
3855 }
3856
3857 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3858 function prototypes and stuff, but not '\xHH' hex character constants.
3859 These don't provoke an error unfortunately, instead are silently treated
3860 as 'x'. The following induces an error, until -std is added to get
3861 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3862 array size at least. It's necessary to write '\x00'==0 to get something
3863 that's true only with -std. */
3864 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3865
3866 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3867 inside strings and character constants. */
3868 #define FOO(x) 'x'
3869 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3870
3871 int test (int i, double x);
3872 struct s1 {int (*f) (int a);};
3873 struct s2 {int (*f) (double a);};
3874 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3875 int argc;
3876 char **argv;
3877 int
3878 main ()
3879 {
3880 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3881 ;
3882 return 0;
3883 }
3884 _ACEOF
3885 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3886 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3887 do
3888 CC="$ac_save_CC $ac_arg"
3889 rm -f conftest.$ac_objext
3890 if { (ac_try="$ac_compile"
3891 case "(($ac_try" in
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3894 esac
3895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3896 $as_echo "$ac_try_echo") >&5
3897 (eval "$ac_compile") 2>conftest.er1
3898 ac_status=$?
3899 grep -v '^ *+' conftest.er1 >conftest.err
3900 rm -f conftest.er1
3901 cat conftest.err >&5
3902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); } && {
3904 test -z "$ac_c_werror_flag" ||
3905 test ! -s conftest.err
3906 } && test -s conftest.$ac_objext; then
3907 ac_cv_prog_cc_c89=$ac_arg
3908 else
3909 $as_echo "$as_me: failed program was:" >&5
3910 sed 's/^/| /' conftest.$ac_ext >&5
3911
3912
3913 fi
3914
3915 rm -f core conftest.err conftest.$ac_objext
3916 test "x$ac_cv_prog_cc_c89" != "xno" && break
3917 done
3918 rm -f conftest.$ac_ext
3919 CC=$ac_save_CC
3920
3921 fi
3922 # AC_CACHE_VAL
3923 case "x$ac_cv_prog_cc_c89" in
3924 x)
3925 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3926 $as_echo "none needed" >&6; } ;;
3927 xno)
3928 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3929 $as_echo "unsupported" >&6; } ;;
3930 *)
3931 CC="$CC $ac_cv_prog_cc_c89"
3932 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3933 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3934 esac
3935
3936
3937 ac_ext=c
3938 ac_cpp='$CPP $CPPFLAGS'
3939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3942
3943
3944 # On Suns, sometimes $CPP names a directory.
3945 if test -n "$CPP" && test -d "$CPP"; then
3946 CPP=
3947 fi
3948
3949 ## If not using gcc, and on Solaris, and no CPP specified, see if
3950 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3951 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3952 test x"$CPP" = x; then
3953 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3954 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
3955
3956 if test "${emacs_cv_sunpro_c+set}" = set; then
3957 $as_echo_n "(cached) " >&6
3958 else
3959 cat >conftest.$ac_ext <<_ACEOF
3960 /* confdefs.h. */
3961 _ACEOF
3962 cat confdefs.h >>conftest.$ac_ext
3963 cat >>conftest.$ac_ext <<_ACEOF
3964 /* end confdefs.h. */
3965
3966 int
3967 main ()
3968 {
3969 #ifndef __SUNPRO_C
3970 fail;
3971 #endif
3972
3973 ;
3974 return 0;
3975 }
3976 _ACEOF
3977 rm -f conftest.$ac_objext conftest$ac_exeext
3978 if { (ac_try="$ac_link"
3979 case "(($ac_try" in
3980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981 *) ac_try_echo=$ac_try;;
3982 esac
3983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3984 $as_echo "$ac_try_echo") >&5
3985 (eval "$ac_link") 2>conftest.er1
3986 ac_status=$?
3987 grep -v '^ *+' conftest.er1 >conftest.err
3988 rm -f conftest.er1
3989 cat conftest.err >&5
3990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); } && {
3992 test -z "$ac_c_werror_flag" ||
3993 test ! -s conftest.err
3994 } && test -s conftest$ac_exeext && {
3995 test "$cross_compiling" = yes ||
3996 $as_test_x conftest$ac_exeext
3997 }; then
3998 emacs_cv_sunpro_c=yes
3999 else
4000 $as_echo "$as_me: failed program was:" >&5
4001 sed 's/^/| /' conftest.$ac_ext >&5
4002
4003 emacs_cv_sunpro_c=no
4004 fi
4005
4006 rm -rf conftest.dSYM
4007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4008 conftest$ac_exeext conftest.$ac_ext
4009 fi
4010
4011 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4012 $as_echo "$emacs_cv_sunpro_c" >&6; }
4013
4014 if test x"$emacs_cv_sunpro_c" = xyes; then
4015 NON_GNU_CPP="$CC -E -Xs"
4016 fi
4017 fi
4018
4019 #### Some systems specify a CPP to use unless we are using GCC.
4020 #### Now that we know whether we are using GCC, we can decide whether
4021 #### to use that one.
4022 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4023 then
4024 CPP="$NON_GNU_CPP"
4025 fi
4026
4027 #### Some systems specify a CC to use unless we are using GCC.
4028 #### Now that we know whether we are using GCC, we can decide whether
4029 #### to use that one.
4030 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4031 test x$cc_specified != xyes
4032 then
4033 CC="$NON_GNU_CC"
4034 fi
4035
4036 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4037 then
4038 CC="$CC $GCC_TEST_OPTIONS"
4039 fi
4040
4041 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4042 then
4043 CC="$CC $NON_GCC_TEST_OPTIONS"
4044 fi
4045
4046 ac_ext=c
4047 ac_cpp='$CPP $CPPFLAGS'
4048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4051 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4052 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4053 # On Suns, sometimes $CPP names a directory.
4054 if test -n "$CPP" && test -d "$CPP"; then
4055 CPP=
4056 fi
4057 if test -z "$CPP"; then
4058 if test "${ac_cv_prog_CPP+set}" = set; then
4059 $as_echo_n "(cached) " >&6
4060 else
4061 # Double quotes because CPP needs to be expanded
4062 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4063 do
4064 ac_preproc_ok=false
4065 for ac_c_preproc_warn_flag in '' yes
4066 do
4067 # Use a header file that comes with gcc, so configuring glibc
4068 # with a fresh cross-compiler works.
4069 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4070 # <limits.h> exists even on freestanding compilers.
4071 # On the NeXT, cc -E runs the code through the compiler's parser,
4072 # not just through cpp. "Syntax error" is here to catch this case.
4073 cat >conftest.$ac_ext <<_ACEOF
4074 /* confdefs.h. */
4075 _ACEOF
4076 cat confdefs.h >>conftest.$ac_ext
4077 cat >>conftest.$ac_ext <<_ACEOF
4078 /* end confdefs.h. */
4079 #ifdef __STDC__
4080 # include <limits.h>
4081 #else
4082 # include <assert.h>
4083 #endif
4084 Syntax error
4085 _ACEOF
4086 if { (ac_try="$ac_cpp conftest.$ac_ext"
4087 case "(($ac_try" in
4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4090 esac
4091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4092 $as_echo "$ac_try_echo") >&5
4093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4094 ac_status=$?
4095 grep -v '^ *+' conftest.er1 >conftest.err
4096 rm -f conftest.er1
4097 cat conftest.err >&5
4098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); } >/dev/null && {
4100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4101 test ! -s conftest.err
4102 }; then
4103 :
4104 else
4105 $as_echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4107
4108 # Broken: fails on valid input.
4109 continue
4110 fi
4111
4112 rm -f conftest.err conftest.$ac_ext
4113
4114 # OK, works on sane cases. Now check whether nonexistent headers
4115 # can be detected and how.
4116 cat >conftest.$ac_ext <<_ACEOF
4117 /* confdefs.h. */
4118 _ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h. */
4122 #include <ac_nonexistent.h>
4123 _ACEOF
4124 if { (ac_try="$ac_cpp conftest.$ac_ext"
4125 case "(($ac_try" in
4126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4127 *) ac_try_echo=$ac_try;;
4128 esac
4129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4130 $as_echo "$ac_try_echo") >&5
4131 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4132 ac_status=$?
4133 grep -v '^ *+' conftest.er1 >conftest.err
4134 rm -f conftest.er1
4135 cat conftest.err >&5
4136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); } >/dev/null && {
4138 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4139 test ! -s conftest.err
4140 }; then
4141 # Broken: success on invalid input.
4142 continue
4143 else
4144 $as_echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.$ac_ext >&5
4146
4147 # Passes both tests.
4148 ac_preproc_ok=:
4149 break
4150 fi
4151
4152 rm -f conftest.err conftest.$ac_ext
4153
4154 done
4155 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4156 rm -f conftest.err conftest.$ac_ext
4157 if $ac_preproc_ok; then
4158 break
4159 fi
4160
4161 done
4162 ac_cv_prog_CPP=$CPP
4163
4164 fi
4165 CPP=$ac_cv_prog_CPP
4166 else
4167 ac_cv_prog_CPP=$CPP
4168 fi
4169 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4170 $as_echo "$CPP" >&6; }
4171 ac_preproc_ok=false
4172 for ac_c_preproc_warn_flag in '' yes
4173 do
4174 # Use a header file that comes with gcc, so configuring glibc
4175 # with a fresh cross-compiler works.
4176 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4177 # <limits.h> exists even on freestanding compilers.
4178 # On the NeXT, cc -E runs the code through the compiler's parser,
4179 # not just through cpp. "Syntax error" is here to catch this case.
4180 cat >conftest.$ac_ext <<_ACEOF
4181 /* confdefs.h. */
4182 _ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h. */
4186 #ifdef __STDC__
4187 # include <limits.h>
4188 #else
4189 # include <assert.h>
4190 #endif
4191 Syntax error
4192 _ACEOF
4193 if { (ac_try="$ac_cpp conftest.$ac_ext"
4194 case "(($ac_try" in
4195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196 *) ac_try_echo=$ac_try;;
4197 esac
4198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4199 $as_echo "$ac_try_echo") >&5
4200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4201 ac_status=$?
4202 grep -v '^ *+' conftest.er1 >conftest.err
4203 rm -f conftest.er1
4204 cat conftest.err >&5
4205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); } >/dev/null && {
4207 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4208 test ! -s conftest.err
4209 }; then
4210 :
4211 else
4212 $as_echo "$as_me: failed program was:" >&5
4213 sed 's/^/| /' conftest.$ac_ext >&5
4214
4215 # Broken: fails on valid input.
4216 continue
4217 fi
4218
4219 rm -f conftest.err conftest.$ac_ext
4220
4221 # OK, works on sane cases. Now check whether nonexistent headers
4222 # can be detected and how.
4223 cat >conftest.$ac_ext <<_ACEOF
4224 /* confdefs.h. */
4225 _ACEOF
4226 cat confdefs.h >>conftest.$ac_ext
4227 cat >>conftest.$ac_ext <<_ACEOF
4228 /* end confdefs.h. */
4229 #include <ac_nonexistent.h>
4230 _ACEOF
4231 if { (ac_try="$ac_cpp conftest.$ac_ext"
4232 case "(($ac_try" in
4233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234 *) ac_try_echo=$ac_try;;
4235 esac
4236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4237 $as_echo "$ac_try_echo") >&5
4238 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4239 ac_status=$?
4240 grep -v '^ *+' conftest.er1 >conftest.err
4241 rm -f conftest.er1
4242 cat conftest.err >&5
4243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); } >/dev/null && {
4245 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4246 test ! -s conftest.err
4247 }; then
4248 # Broken: success on invalid input.
4249 continue
4250 else
4251 $as_echo "$as_me: failed program was:" >&5
4252 sed 's/^/| /' conftest.$ac_ext >&5
4253
4254 # Passes both tests.
4255 ac_preproc_ok=:
4256 break
4257 fi
4258
4259 rm -f conftest.err conftest.$ac_ext
4260
4261 done
4262 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4263 rm -f conftest.err conftest.$ac_ext
4264 if $ac_preproc_ok; then
4265 :
4266 else
4267 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4268 See \`config.log' for more details." >&5
4269 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4270 See \`config.log' for more details." >&2;}
4271 { (exit 1); exit 1; }; }
4272 fi
4273
4274 ac_ext=c
4275 ac_cpp='$CPP $CPPFLAGS'
4276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4279
4280
4281 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4282 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4283 if test "${ac_cv_path_GREP+set}" = set; then
4284 $as_echo_n "(cached) " >&6
4285 else
4286 if test -z "$GREP"; then
4287 ac_path_GREP_found=false
4288 # Loop through the user's path and test for each of PROGNAME-LIST
4289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4290 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4291 do
4292 IFS=$as_save_IFS
4293 test -z "$as_dir" && as_dir=.
4294 for ac_prog in grep ggrep; do
4295 for ac_exec_ext in '' $ac_executable_extensions; do
4296 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4297 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4298 # Check for GNU ac_path_GREP and select it if it is found.
4299 # Check for GNU $ac_path_GREP
4300 case `"$ac_path_GREP" --version 2>&1` in
4301 *GNU*)
4302 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4303 *)
4304 ac_count=0
4305 $as_echo_n 0123456789 >"conftest.in"
4306 while :
4307 do
4308 cat "conftest.in" "conftest.in" >"conftest.tmp"
4309 mv "conftest.tmp" "conftest.in"
4310 cp "conftest.in" "conftest.nl"
4311 $as_echo 'GREP' >> "conftest.nl"
4312 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4313 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4314 ac_count=`expr $ac_count + 1`
4315 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4316 # Best one so far, save it but keep looking for a better one
4317 ac_cv_path_GREP="$ac_path_GREP"
4318 ac_path_GREP_max=$ac_count
4319 fi
4320 # 10*(2^10) chars as input seems more than enough
4321 test $ac_count -gt 10 && break
4322 done
4323 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4324 esac
4325
4326 $ac_path_GREP_found && break 3
4327 done
4328 done
4329 done
4330 IFS=$as_save_IFS
4331 if test -z "$ac_cv_path_GREP"; then
4332 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4333 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4334 { (exit 1); exit 1; }; }
4335 fi
4336 else
4337 ac_cv_path_GREP=$GREP
4338 fi
4339
4340 fi
4341 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4342 $as_echo "$ac_cv_path_GREP" >&6; }
4343 GREP="$ac_cv_path_GREP"
4344
4345
4346 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4347 $as_echo_n "checking for egrep... " >&6; }
4348 if test "${ac_cv_path_EGREP+set}" = set; then
4349 $as_echo_n "(cached) " >&6
4350 else
4351 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4352 then ac_cv_path_EGREP="$GREP -E"
4353 else
4354 if test -z "$EGREP"; then
4355 ac_path_EGREP_found=false
4356 # Loop through the user's path and test for each of PROGNAME-LIST
4357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4359 do
4360 IFS=$as_save_IFS
4361 test -z "$as_dir" && as_dir=.
4362 for ac_prog in egrep; do
4363 for ac_exec_ext in '' $ac_executable_extensions; do
4364 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4365 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4366 # Check for GNU ac_path_EGREP and select it if it is found.
4367 # Check for GNU $ac_path_EGREP
4368 case `"$ac_path_EGREP" --version 2>&1` in
4369 *GNU*)
4370 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4371 *)
4372 ac_count=0
4373 $as_echo_n 0123456789 >"conftest.in"
4374 while :
4375 do
4376 cat "conftest.in" "conftest.in" >"conftest.tmp"
4377 mv "conftest.tmp" "conftest.in"
4378 cp "conftest.in" "conftest.nl"
4379 $as_echo 'EGREP' >> "conftest.nl"
4380 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4381 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4382 ac_count=`expr $ac_count + 1`
4383 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4384 # Best one so far, save it but keep looking for a better one
4385 ac_cv_path_EGREP="$ac_path_EGREP"
4386 ac_path_EGREP_max=$ac_count
4387 fi
4388 # 10*(2^10) chars as input seems more than enough
4389 test $ac_count -gt 10 && break
4390 done
4391 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4392 esac
4393
4394 $ac_path_EGREP_found && break 3
4395 done
4396 done
4397 done
4398 IFS=$as_save_IFS
4399 if test -z "$ac_cv_path_EGREP"; then
4400 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4401 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4402 { (exit 1); exit 1; }; }
4403 fi
4404 else
4405 ac_cv_path_EGREP=$EGREP
4406 fi
4407
4408 fi
4409 fi
4410 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4411 $as_echo "$ac_cv_path_EGREP" >&6; }
4412 EGREP="$ac_cv_path_EGREP"
4413
4414
4415 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4416 $as_echo_n "checking for ANSI C header files... " >&6; }
4417 if test "${ac_cv_header_stdc+set}" = set; then
4418 $as_echo_n "(cached) " >&6
4419 else
4420 cat >conftest.$ac_ext <<_ACEOF
4421 /* confdefs.h. */
4422 _ACEOF
4423 cat confdefs.h >>conftest.$ac_ext
4424 cat >>conftest.$ac_ext <<_ACEOF
4425 /* end confdefs.h. */
4426 #include <stdlib.h>
4427 #include <stdarg.h>
4428 #include <string.h>
4429 #include <float.h>
4430
4431 int
4432 main ()
4433 {
4434
4435 ;
4436 return 0;
4437 }
4438 _ACEOF
4439 rm -f conftest.$ac_objext
4440 if { (ac_try="$ac_compile"
4441 case "(($ac_try" in
4442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4443 *) ac_try_echo=$ac_try;;
4444 esac
4445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4446 $as_echo "$ac_try_echo") >&5
4447 (eval "$ac_compile") 2>conftest.er1
4448 ac_status=$?
4449 grep -v '^ *+' conftest.er1 >conftest.err
4450 rm -f conftest.er1
4451 cat conftest.err >&5
4452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); } && {
4454 test -z "$ac_c_werror_flag" ||
4455 test ! -s conftest.err
4456 } && test -s conftest.$ac_objext; then
4457 ac_cv_header_stdc=yes
4458 else
4459 $as_echo "$as_me: failed program was:" >&5
4460 sed 's/^/| /' conftest.$ac_ext >&5
4461
4462 ac_cv_header_stdc=no
4463 fi
4464
4465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4466
4467 if test $ac_cv_header_stdc = yes; then
4468 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4469 cat >conftest.$ac_ext <<_ACEOF
4470 /* confdefs.h. */
4471 _ACEOF
4472 cat confdefs.h >>conftest.$ac_ext
4473 cat >>conftest.$ac_ext <<_ACEOF
4474 /* end confdefs.h. */
4475 #include <string.h>
4476
4477 _ACEOF
4478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4479 $EGREP "memchr" >/dev/null 2>&1; then
4480 :
4481 else
4482 ac_cv_header_stdc=no
4483 fi
4484 rm -f conftest*
4485
4486 fi
4487
4488 if test $ac_cv_header_stdc = yes; then
4489 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4490 cat >conftest.$ac_ext <<_ACEOF
4491 /* confdefs.h. */
4492 _ACEOF
4493 cat confdefs.h >>conftest.$ac_ext
4494 cat >>conftest.$ac_ext <<_ACEOF
4495 /* end confdefs.h. */
4496 #include <stdlib.h>
4497
4498 _ACEOF
4499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4500 $EGREP "free" >/dev/null 2>&1; then
4501 :
4502 else
4503 ac_cv_header_stdc=no
4504 fi
4505 rm -f conftest*
4506
4507 fi
4508
4509 if test $ac_cv_header_stdc = yes; then
4510 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4511 if test "$cross_compiling" = yes; then
4512 :
4513 else
4514 cat >conftest.$ac_ext <<_ACEOF
4515 /* confdefs.h. */
4516 _ACEOF
4517 cat confdefs.h >>conftest.$ac_ext
4518 cat >>conftest.$ac_ext <<_ACEOF
4519 /* end confdefs.h. */
4520 #include <ctype.h>
4521 #include <stdlib.h>
4522 #if ((' ' & 0x0FF) == 0x020)
4523 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4524 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4525 #else
4526 # define ISLOWER(c) \
4527 (('a' <= (c) && (c) <= 'i') \
4528 || ('j' <= (c) && (c) <= 'r') \
4529 || ('s' <= (c) && (c) <= 'z'))
4530 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4531 #endif
4532
4533 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4534 int
4535 main ()
4536 {
4537 int i;
4538 for (i = 0; i < 256; i++)
4539 if (XOR (islower (i), ISLOWER (i))
4540 || toupper (i) != TOUPPER (i))
4541 return 2;
4542 return 0;
4543 }
4544 _ACEOF
4545 rm -f conftest$ac_exeext
4546 if { (ac_try="$ac_link"
4547 case "(($ac_try" in
4548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4549 *) ac_try_echo=$ac_try;;
4550 esac
4551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4552 $as_echo "$ac_try_echo") >&5
4553 (eval "$ac_link") 2>&5
4554 ac_status=$?
4555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4557 { (case "(($ac_try" in
4558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559 *) ac_try_echo=$ac_try;;
4560 esac
4561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4562 $as_echo "$ac_try_echo") >&5
4563 (eval "$ac_try") 2>&5
4564 ac_status=$?
4565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }; }; then
4567 :
4568 else
4569 $as_echo "$as_me: program exited with status $ac_status" >&5
4570 $as_echo "$as_me: failed program was:" >&5
4571 sed 's/^/| /' conftest.$ac_ext >&5
4572
4573 ( exit $ac_status )
4574 ac_cv_header_stdc=no
4575 fi
4576 rm -rf conftest.dSYM
4577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4578 fi
4579
4580
4581 fi
4582 fi
4583 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4584 $as_echo "$ac_cv_header_stdc" >&6; }
4585 if test $ac_cv_header_stdc = yes; then
4586
4587 cat >>confdefs.h <<\_ACEOF
4588 #define STDC_HEADERS 1
4589 _ACEOF
4590
4591 fi
4592
4593 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4604 inttypes.h stdint.h unistd.h
4605 do
4606 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4607 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4608 $as_echo_n "checking for $ac_header... " >&6; }
4609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4610 $as_echo_n "(cached) " >&6
4611 else
4612 cat >conftest.$ac_ext <<_ACEOF
4613 /* confdefs.h. */
4614 _ACEOF
4615 cat confdefs.h >>conftest.$ac_ext
4616 cat >>conftest.$ac_ext <<_ACEOF
4617 /* end confdefs.h. */
4618 $ac_includes_default
4619
4620 #include <$ac_header>
4621 _ACEOF
4622 rm -f conftest.$ac_objext
4623 if { (ac_try="$ac_compile"
4624 case "(($ac_try" in
4625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4626 *) ac_try_echo=$ac_try;;
4627 esac
4628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4629 $as_echo "$ac_try_echo") >&5
4630 (eval "$ac_compile") 2>conftest.er1
4631 ac_status=$?
4632 grep -v '^ *+' conftest.er1 >conftest.err
4633 rm -f conftest.er1
4634 cat conftest.err >&5
4635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); } && {
4637 test -z "$ac_c_werror_flag" ||
4638 test ! -s conftest.err
4639 } && test -s conftest.$ac_objext; then
4640 eval "$as_ac_Header=yes"
4641 else
4642 $as_echo "$as_me: failed program was:" >&5
4643 sed 's/^/| /' conftest.$ac_ext >&5
4644
4645 eval "$as_ac_Header=no"
4646 fi
4647
4648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4649 fi
4650 ac_res=`eval 'as_val=${'$as_ac_Header'}
4651 $as_echo "$as_val"'`
4652 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4653 $as_echo "$ac_res" >&6; }
4654 if test `eval 'as_val=${'$as_ac_Header'}
4655 $as_echo "$as_val"'` = yes; then
4656 cat >>confdefs.h <<_ACEOF
4657 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4658 _ACEOF
4659
4660 fi
4661
4662 done
4663
4664
4665
4666 if test "${ac_cv_header_minix_config_h+set}" = set; then
4667 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4668 $as_echo_n "checking for minix/config.h... " >&6; }
4669 if test "${ac_cv_header_minix_config_h+set}" = set; then
4670 $as_echo_n "(cached) " >&6
4671 fi
4672 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4673 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4674 else
4675 # Is the header compilable?
4676 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4677 $as_echo_n "checking minix/config.h usability... " >&6; }
4678 cat >conftest.$ac_ext <<_ACEOF
4679 /* confdefs.h. */
4680 _ACEOF
4681 cat confdefs.h >>conftest.$ac_ext
4682 cat >>conftest.$ac_ext <<_ACEOF
4683 /* end confdefs.h. */
4684 $ac_includes_default
4685 #include <minix/config.h>
4686 _ACEOF
4687 rm -f conftest.$ac_objext
4688 if { (ac_try="$ac_compile"
4689 case "(($ac_try" in
4690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4691 *) ac_try_echo=$ac_try;;
4692 esac
4693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4694 $as_echo "$ac_try_echo") >&5
4695 (eval "$ac_compile") 2>conftest.er1
4696 ac_status=$?
4697 grep -v '^ *+' conftest.er1 >conftest.err
4698 rm -f conftest.er1
4699 cat conftest.err >&5
4700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); } && {
4702 test -z "$ac_c_werror_flag" ||
4703 test ! -s conftest.err
4704 } && test -s conftest.$ac_objext; then
4705 ac_header_compiler=yes
4706 else
4707 $as_echo "$as_me: failed program was:" >&5
4708 sed 's/^/| /' conftest.$ac_ext >&5
4709
4710 ac_header_compiler=no
4711 fi
4712
4713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4714 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4715 $as_echo "$ac_header_compiler" >&6; }
4716
4717 # Is the header present?
4718 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4719 $as_echo_n "checking minix/config.h presence... " >&6; }
4720 cat >conftest.$ac_ext <<_ACEOF
4721 /* confdefs.h. */
4722 _ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h. */
4726 #include <minix/config.h>
4727 _ACEOF
4728 if { (ac_try="$ac_cpp conftest.$ac_ext"
4729 case "(($ac_try" in
4730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4731 *) ac_try_echo=$ac_try;;
4732 esac
4733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4734 $as_echo "$ac_try_echo") >&5
4735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4736 ac_status=$?
4737 grep -v '^ *+' conftest.er1 >conftest.err
4738 rm -f conftest.er1
4739 cat conftest.err >&5
4740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } >/dev/null && {
4742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4743 test ! -s conftest.err
4744 }; then
4745 ac_header_preproc=yes
4746 else
4747 $as_echo "$as_me: failed program was:" >&5
4748 sed 's/^/| /' conftest.$ac_ext >&5
4749
4750 ac_header_preproc=no
4751 fi
4752
4753 rm -f conftest.err conftest.$ac_ext
4754 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4755 $as_echo "$ac_header_preproc" >&6; }
4756
4757 # So? What about this header?
4758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4759 yes:no: )
4760 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4761 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4762 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4763 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4764 ac_header_preproc=yes
4765 ;;
4766 no:yes:* )
4767 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4768 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4769 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4770 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4771 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4772 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4773 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4774 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4775 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4776 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4777 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4778 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4779
4780 ;;
4781 esac
4782 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4783 $as_echo_n "checking for minix/config.h... " >&6; }
4784 if test "${ac_cv_header_minix_config_h+set}" = set; then
4785 $as_echo_n "(cached) " >&6
4786 else
4787 ac_cv_header_minix_config_h=$ac_header_preproc
4788 fi
4789 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4790 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4791
4792 fi
4793 if test $ac_cv_header_minix_config_h = yes; then
4794 MINIX=yes
4795 else
4796 MINIX=
4797 fi
4798
4799
4800 if test "$MINIX" = yes; then
4801
4802 cat >>confdefs.h <<\_ACEOF
4803 #define _POSIX_SOURCE 1
4804 _ACEOF
4805
4806
4807 cat >>confdefs.h <<\_ACEOF
4808 #define _POSIX_1_SOURCE 2
4809 _ACEOF
4810
4811
4812 cat >>confdefs.h <<\_ACEOF
4813 #define _MINIX 1
4814 _ACEOF
4815
4816 fi
4817
4818
4819
4820 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4821 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4822 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4823 $as_echo_n "(cached) " >&6
4824 else
4825 cat >conftest.$ac_ext <<_ACEOF
4826 /* confdefs.h. */
4827 _ACEOF
4828 cat confdefs.h >>conftest.$ac_ext
4829 cat >>conftest.$ac_ext <<_ACEOF
4830 /* end confdefs.h. */
4831
4832 # define __EXTENSIONS__ 1
4833 $ac_includes_default
4834 int
4835 main ()
4836 {
4837
4838 ;
4839 return 0;
4840 }
4841 _ACEOF
4842 rm -f conftest.$ac_objext
4843 if { (ac_try="$ac_compile"
4844 case "(($ac_try" in
4845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4846 *) ac_try_echo=$ac_try;;
4847 esac
4848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4849 $as_echo "$ac_try_echo") >&5
4850 (eval "$ac_compile") 2>conftest.er1
4851 ac_status=$?
4852 grep -v '^ *+' conftest.er1 >conftest.err
4853 rm -f conftest.er1
4854 cat conftest.err >&5
4855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); } && {
4857 test -z "$ac_c_werror_flag" ||
4858 test ! -s conftest.err
4859 } && test -s conftest.$ac_objext; then
4860 ac_cv_safe_to_define___extensions__=yes
4861 else
4862 $as_echo "$as_me: failed program was:" >&5
4863 sed 's/^/| /' conftest.$ac_ext >&5
4864
4865 ac_cv_safe_to_define___extensions__=no
4866 fi
4867
4868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4869 fi
4870 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4871 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4872 test $ac_cv_safe_to_define___extensions__ = yes &&
4873 cat >>confdefs.h <<\_ACEOF
4874 #define __EXTENSIONS__ 1
4875 _ACEOF
4876
4877 cat >>confdefs.h <<\_ACEOF
4878 #define _ALL_SOURCE 1
4879 _ACEOF
4880
4881 cat >>confdefs.h <<\_ACEOF
4882 #define _GNU_SOURCE 1
4883 _ACEOF
4884
4885 cat >>confdefs.h <<\_ACEOF
4886 #define _POSIX_PTHREAD_SEMANTICS 1
4887 _ACEOF
4888
4889 cat >>confdefs.h <<\_ACEOF
4890 #define _TANDEM_SOURCE 1
4891 _ACEOF
4892
4893
4894
4895 ### Use -Wno-pointer-sign if the compiler supports it
4896 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4897 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4898 SAVE_CFLAGS="$CFLAGS"
4899 CFLAGS="$CFLAGS -Wno-pointer-sign"
4900 cat >conftest.$ac_ext <<_ACEOF
4901 /* confdefs.h. */
4902 _ACEOF
4903 cat confdefs.h >>conftest.$ac_ext
4904 cat >>conftest.$ac_ext <<_ACEOF
4905 /* end confdefs.h. */
4906
4907 int
4908 main ()
4909 {
4910
4911 ;
4912 return 0;
4913 }
4914 _ACEOF
4915 rm -f conftest.$ac_objext
4916 if { (ac_try="$ac_compile"
4917 case "(($ac_try" in
4918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4919 *) ac_try_echo=$ac_try;;
4920 esac
4921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4922 $as_echo "$ac_try_echo") >&5
4923 (eval "$ac_compile") 2>conftest.er1
4924 ac_status=$?
4925 grep -v '^ *+' conftest.er1 >conftest.err
4926 rm -f conftest.er1
4927 cat conftest.err >&5
4928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); } && {
4930 test -z "$ac_c_werror_flag" ||
4931 test ! -s conftest.err
4932 } && test -s conftest.$ac_objext; then
4933 has_option=yes
4934 else
4935 $as_echo "$as_me: failed program was:" >&5
4936 sed 's/^/| /' conftest.$ac_ext >&5
4937
4938 has_option=no
4939 fi
4940
4941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4942 if test $has_option = yes; then
4943 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4944 fi
4945 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4946 $as_echo "$has_option" >&6; }
4947 CFLAGS="$SAVE_CFLAGS"
4948 unset has_option
4949 unset SAVE_CFLAGS
4950
4951 ### Use -Wdeclaration-after-statement if the compiler supports it
4952 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4953 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4954 SAVE_CFLAGS="$CFLAGS"
4955 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4956 cat >conftest.$ac_ext <<_ACEOF
4957 /* confdefs.h. */
4958 _ACEOF
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h. */
4962
4963 int
4964 main ()
4965 {
4966
4967 ;
4968 return 0;
4969 }
4970 _ACEOF
4971 rm -f conftest.$ac_objext
4972 if { (ac_try="$ac_compile"
4973 case "(($ac_try" in
4974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4975 *) ac_try_echo=$ac_try;;
4976 esac
4977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4978 $as_echo "$ac_try_echo") >&5
4979 (eval "$ac_compile") 2>conftest.er1
4980 ac_status=$?
4981 grep -v '^ *+' conftest.er1 >conftest.err
4982 rm -f conftest.er1
4983 cat conftest.err >&5
4984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } && {
4986 test -z "$ac_c_werror_flag" ||
4987 test ! -s conftest.err
4988 } && test -s conftest.$ac_objext; then
4989 has_option=yes
4990 else
4991 $as_echo "$as_me: failed program was:" >&5
4992 sed 's/^/| /' conftest.$ac_ext >&5
4993
4994 has_option=no
4995 fi
4996
4997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4998 if test $has_option = yes; then
4999 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5000 fi
5001 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
5002 $as_echo "$has_option" >&6; }
5003 CFLAGS="$SAVE_CFLAGS"
5004 unset has_option
5005 unset SAVE_CFLAGS
5006
5007 #### Some other nice autoconf tests.
5008
5009 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5010 $as_echo_n "checking whether ln -s works... " >&6; }
5011 LN_S=$as_ln_s
5012 if test "$LN_S" = "ln -s"; then
5013 { $as_echo "$as_me:$LINENO: result: yes" >&5
5014 $as_echo "yes" >&6; }
5015 else
5016 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5017 $as_echo "no, using $LN_S" >&6; }
5018 fi
5019
5020 ac_ext=c
5021 ac_cpp='$CPP $CPPFLAGS'
5022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5025 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5026 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5027 # On Suns, sometimes $CPP names a directory.
5028 if test -n "$CPP" && test -d "$CPP"; then
5029 CPP=
5030 fi
5031 if test -z "$CPP"; then
5032 if test "${ac_cv_prog_CPP+set}" = set; then
5033 $as_echo_n "(cached) " >&6
5034 else
5035 # Double quotes because CPP needs to be expanded
5036 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5037 do
5038 ac_preproc_ok=false
5039 for ac_c_preproc_warn_flag in '' yes
5040 do
5041 # Use a header file that comes with gcc, so configuring glibc
5042 # with a fresh cross-compiler works.
5043 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5044 # <limits.h> exists even on freestanding compilers.
5045 # On the NeXT, cc -E runs the code through the compiler's parser,
5046 # not just through cpp. "Syntax error" is here to catch this case.
5047 cat >conftest.$ac_ext <<_ACEOF
5048 /* confdefs.h. */
5049 _ACEOF
5050 cat confdefs.h >>conftest.$ac_ext
5051 cat >>conftest.$ac_ext <<_ACEOF
5052 /* end confdefs.h. */
5053 #ifdef __STDC__
5054 # include <limits.h>
5055 #else
5056 # include <assert.h>
5057 #endif
5058 Syntax error
5059 _ACEOF
5060 if { (ac_try="$ac_cpp conftest.$ac_ext"
5061 case "(($ac_try" in
5062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5063 *) ac_try_echo=$ac_try;;
5064 esac
5065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5066 $as_echo "$ac_try_echo") >&5
5067 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5068 ac_status=$?
5069 grep -v '^ *+' conftest.er1 >conftest.err
5070 rm -f conftest.er1
5071 cat conftest.err >&5
5072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); } >/dev/null && {
5074 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5075 test ! -s conftest.err
5076 }; then
5077 :
5078 else
5079 $as_echo "$as_me: failed program was:" >&5
5080 sed 's/^/| /' conftest.$ac_ext >&5
5081
5082 # Broken: fails on valid input.
5083 continue
5084 fi
5085
5086 rm -f conftest.err conftest.$ac_ext
5087
5088 # OK, works on sane cases. Now check whether nonexistent headers
5089 # can be detected and how.
5090 cat >conftest.$ac_ext <<_ACEOF
5091 /* confdefs.h. */
5092 _ACEOF
5093 cat confdefs.h >>conftest.$ac_ext
5094 cat >>conftest.$ac_ext <<_ACEOF
5095 /* end confdefs.h. */
5096 #include <ac_nonexistent.h>
5097 _ACEOF
5098 if { (ac_try="$ac_cpp conftest.$ac_ext"
5099 case "(($ac_try" in
5100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5101 *) ac_try_echo=$ac_try;;
5102 esac
5103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5104 $as_echo "$ac_try_echo") >&5
5105 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5106 ac_status=$?
5107 grep -v '^ *+' conftest.er1 >conftest.err
5108 rm -f conftest.er1
5109 cat conftest.err >&5
5110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); } >/dev/null && {
5112 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5113 test ! -s conftest.err
5114 }; then
5115 # Broken: success on invalid input.
5116 continue
5117 else
5118 $as_echo "$as_me: failed program was:" >&5
5119 sed 's/^/| /' conftest.$ac_ext >&5
5120
5121 # Passes both tests.
5122 ac_preproc_ok=:
5123 break
5124 fi
5125
5126 rm -f conftest.err conftest.$ac_ext
5127
5128 done
5129 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5130 rm -f conftest.err conftest.$ac_ext
5131 if $ac_preproc_ok; then
5132 break
5133 fi
5134
5135 done
5136 ac_cv_prog_CPP=$CPP
5137
5138 fi
5139 CPP=$ac_cv_prog_CPP
5140 else
5141 ac_cv_prog_CPP=$CPP
5142 fi
5143 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5144 $as_echo "$CPP" >&6; }
5145 ac_preproc_ok=false
5146 for ac_c_preproc_warn_flag in '' yes
5147 do
5148 # Use a header file that comes with gcc, so configuring glibc
5149 # with a fresh cross-compiler works.
5150 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5151 # <limits.h> exists even on freestanding compilers.
5152 # On the NeXT, cc -E runs the code through the compiler's parser,
5153 # not just through cpp. "Syntax error" is here to catch this case.
5154 cat >conftest.$ac_ext <<_ACEOF
5155 /* confdefs.h. */
5156 _ACEOF
5157 cat confdefs.h >>conftest.$ac_ext
5158 cat >>conftest.$ac_ext <<_ACEOF
5159 /* end confdefs.h. */
5160 #ifdef __STDC__
5161 # include <limits.h>
5162 #else
5163 # include <assert.h>
5164 #endif
5165 Syntax error
5166 _ACEOF
5167 if { (ac_try="$ac_cpp conftest.$ac_ext"
5168 case "(($ac_try" in
5169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5170 *) ac_try_echo=$ac_try;;
5171 esac
5172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5173 $as_echo "$ac_try_echo") >&5
5174 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5175 ac_status=$?
5176 grep -v '^ *+' conftest.er1 >conftest.err
5177 rm -f conftest.er1
5178 cat conftest.err >&5
5179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); } >/dev/null && {
5181 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5182 test ! -s conftest.err
5183 }; then
5184 :
5185 else
5186 $as_echo "$as_me: failed program was:" >&5
5187 sed 's/^/| /' conftest.$ac_ext >&5
5188
5189 # Broken: fails on valid input.
5190 continue
5191 fi
5192
5193 rm -f conftest.err conftest.$ac_ext
5194
5195 # OK, works on sane cases. Now check whether nonexistent headers
5196 # can be detected and how.
5197 cat >conftest.$ac_ext <<_ACEOF
5198 /* confdefs.h. */
5199 _ACEOF
5200 cat confdefs.h >>conftest.$ac_ext
5201 cat >>conftest.$ac_ext <<_ACEOF
5202 /* end confdefs.h. */
5203 #include <ac_nonexistent.h>
5204 _ACEOF
5205 if { (ac_try="$ac_cpp conftest.$ac_ext"
5206 case "(($ac_try" in
5207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5208 *) ac_try_echo=$ac_try;;
5209 esac
5210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5211 $as_echo "$ac_try_echo") >&5
5212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5213 ac_status=$?
5214 grep -v '^ *+' conftest.er1 >conftest.err
5215 rm -f conftest.er1
5216 cat conftest.err >&5
5217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); } >/dev/null && {
5219 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5220 test ! -s conftest.err
5221 }; then
5222 # Broken: success on invalid input.
5223 continue
5224 else
5225 $as_echo "$as_me: failed program was:" >&5
5226 sed 's/^/| /' conftest.$ac_ext >&5
5227
5228 # Passes both tests.
5229 ac_preproc_ok=:
5230 break
5231 fi
5232
5233 rm -f conftest.err conftest.$ac_ext
5234
5235 done
5236 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5237 rm -f conftest.err conftest.$ac_ext
5238 if $ac_preproc_ok; then
5239 :
5240 else
5241 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5242 See \`config.log' for more details." >&5
5243 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5244 See \`config.log' for more details." >&2;}
5245 { (exit 1); exit 1; }; }
5246 fi
5247
5248 ac_ext=c
5249 ac_cpp='$CPP $CPPFLAGS'
5250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5253
5254 # Find a good install program. We prefer a C program (faster),
5255 # so one script is as good as another. But avoid the broken or
5256 # incompatible versions:
5257 # SysV /etc/install, /usr/sbin/install
5258 # SunOS /usr/etc/install
5259 # IRIX /sbin/install
5260 # AIX /bin/install
5261 # AmigaOS /C/install, which installs bootblocks on floppy discs
5262 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5263 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5264 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5265 # OS/2's system install, which has a completely different semantic
5266 # ./install, which can be erroneously created by make from ./install.sh.
5267 # Reject install programs that cannot install multiple files.
5268 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5269 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5270 if test -z "$INSTALL"; then
5271 if test "${ac_cv_path_install+set}" = set; then
5272 $as_echo_n "(cached) " >&6
5273 else
5274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275 for as_dir in $PATH
5276 do
5277 IFS=$as_save_IFS
5278 test -z "$as_dir" && as_dir=.
5279 # Account for people who put trailing slashes in PATH elements.
5280 case $as_dir/ in
5281 ./ | .// | /cC/* | \
5282 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5283 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5284 /usr/ucb/* ) ;;
5285 *)
5286 # OSF1 and SCO ODT 3.0 have their own names for install.
5287 # Don't use installbsd from OSF since it installs stuff as root
5288 # by default.
5289 for ac_prog in ginstall scoinst install; do
5290 for ac_exec_ext in '' $ac_executable_extensions; do
5291 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5292 if test $ac_prog = install &&
5293 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5294 # AIX install. It has an incompatible calling convention.
5295 :
5296 elif test $ac_prog = install &&
5297 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5298 # program-specific install script used by HP pwplus--don't use.
5299 :
5300 else
5301 rm -rf conftest.one conftest.two conftest.dir
5302 echo one > conftest.one
5303 echo two > conftest.two
5304 mkdir conftest.dir
5305 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5306 test -s conftest.one && test -s conftest.two &&
5307 test -s conftest.dir/conftest.one &&
5308 test -s conftest.dir/conftest.two
5309 then
5310 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5311 break 3
5312 fi
5313 fi
5314 fi
5315 done
5316 done
5317 ;;
5318 esac
5319
5320 done
5321 IFS=$as_save_IFS
5322
5323 rm -rf conftest.one conftest.two conftest.dir
5324
5325 fi
5326 if test "${ac_cv_path_install+set}" = set; then
5327 INSTALL=$ac_cv_path_install
5328 else
5329 # As a last resort, use the slow shell script. Don't cache a
5330 # value for INSTALL within a source directory, because that will
5331 # break other packages using the cache if that directory is
5332 # removed, or if the value is a relative name.
5333 INSTALL=$ac_install_sh
5334 fi
5335 fi
5336 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5337 $as_echo "$INSTALL" >&6; }
5338
5339 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5340 # It thinks the first close brace ends the variable substitution.
5341 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5342
5343 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5344
5345 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5346
5347 if test "x$RANLIB" = x; then
5348 if test -n "$ac_tool_prefix"; then
5349 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5350 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5351 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5352 $as_echo_n "checking for $ac_word... " >&6; }
5353 if test "${ac_cv_prog_RANLIB+set}" = set; then
5354 $as_echo_n "(cached) " >&6
5355 else
5356 if test -n "$RANLIB"; then
5357 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5358 else
5359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360 for as_dir in $PATH
5361 do
5362 IFS=$as_save_IFS
5363 test -z "$as_dir" && as_dir=.
5364 for ac_exec_ext in '' $ac_executable_extensions; do
5365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5366 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5367 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5368 break 2
5369 fi
5370 done
5371 done
5372 IFS=$as_save_IFS
5373
5374 fi
5375 fi
5376 RANLIB=$ac_cv_prog_RANLIB
5377 if test -n "$RANLIB"; then
5378 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5379 $as_echo "$RANLIB" >&6; }
5380 else
5381 { $as_echo "$as_me:$LINENO: result: no" >&5
5382 $as_echo "no" >&6; }
5383 fi
5384
5385
5386 fi
5387 if test -z "$ac_cv_prog_RANLIB"; then
5388 ac_ct_RANLIB=$RANLIB
5389 # Extract the first word of "ranlib", so it can be a program name with args.
5390 set dummy ranlib; ac_word=$2
5391 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5392 $as_echo_n "checking for $ac_word... " >&6; }
5393 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5394 $as_echo_n "(cached) " >&6
5395 else
5396 if test -n "$ac_ct_RANLIB"; then
5397 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5398 else
5399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400 for as_dir in $PATH
5401 do
5402 IFS=$as_save_IFS
5403 test -z "$as_dir" && as_dir=.
5404 for ac_exec_ext in '' $ac_executable_extensions; do
5405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5406 ac_cv_prog_ac_ct_RANLIB="ranlib"
5407 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5408 break 2
5409 fi
5410 done
5411 done
5412 IFS=$as_save_IFS
5413
5414 fi
5415 fi
5416 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5417 if test -n "$ac_ct_RANLIB"; then
5418 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5419 $as_echo "$ac_ct_RANLIB" >&6; }
5420 else
5421 { $as_echo "$as_me:$LINENO: result: no" >&5
5422 $as_echo "no" >&6; }
5423 fi
5424
5425 if test "x$ac_ct_RANLIB" = x; then
5426 RANLIB=":"
5427 else
5428 case $cross_compiling:$ac_tool_warned in
5429 yes:)
5430 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5431 whose name does not start with the host triplet. If you think this
5432 configuration is useful to you, please write to autoconf@gnu.org." >&5
5433 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5434 whose name does not start with the host triplet. If you think this
5435 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5436 ac_tool_warned=yes ;;
5437 esac
5438 RANLIB=$ac_ct_RANLIB
5439 fi
5440 else
5441 RANLIB="$ac_cv_prog_RANLIB"
5442 fi
5443
5444 fi
5445 # Extract the first word of "install-info", so it can be a program name with args.
5446 set dummy install-info; ac_word=$2
5447 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5448 $as_echo_n "checking for $ac_word... " >&6; }
5449 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5450 $as_echo_n "(cached) " >&6
5451 else
5452 case $INSTALL_INFO in
5453 [\\/]* | ?:[\\/]*)
5454 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5455 ;;
5456 *)
5457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458 for as_dir in $PATH
5459 do
5460 IFS=$as_save_IFS
5461 test -z "$as_dir" && as_dir=.
5462 for ac_exec_ext in '' $ac_executable_extensions; do
5463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5465 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5466 break 2
5467 fi
5468 done
5469 done
5470 IFS=$as_save_IFS
5471
5472 ;;
5473 esac
5474 fi
5475 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5476 if test -n "$INSTALL_INFO"; then
5477 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5478 $as_echo "$INSTALL_INFO" >&6; }
5479 else
5480 { $as_echo "$as_me:$LINENO: result: no" >&5
5481 $as_echo "no" >&6; }
5482 fi
5483
5484
5485 # Extract the first word of "install-info", so it can be a program name with args.
5486 set dummy install-info; ac_word=$2
5487 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5488 $as_echo_n "checking for $ac_word... " >&6; }
5489 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5490 $as_echo_n "(cached) " >&6
5491 else
5492 case $INSTALL_INFO in
5493 [\\/]* | ?:[\\/]*)
5494 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5495 ;;
5496 *)
5497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498 for as_dir in /usr/sbin
5499 do
5500 IFS=$as_save_IFS
5501 test -z "$as_dir" && as_dir=.
5502 for ac_exec_ext in '' $ac_executable_extensions; do
5503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5504 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5505 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5506 break 2
5507 fi
5508 done
5509 done
5510 IFS=$as_save_IFS
5511
5512 ;;
5513 esac
5514 fi
5515 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5516 if test -n "$INSTALL_INFO"; then
5517 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5518 $as_echo "$INSTALL_INFO" >&6; }
5519 else
5520 { $as_echo "$as_me:$LINENO: result: no" >&5
5521 $as_echo "no" >&6; }
5522 fi
5523
5524
5525 # Extract the first word of "install-info", so it can be a program name with args.
5526 set dummy install-info; ac_word=$2
5527 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5528 $as_echo_n "checking for $ac_word... " >&6; }
5529 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5530 $as_echo_n "(cached) " >&6
5531 else
5532 case $INSTALL_INFO in
5533 [\\/]* | ?:[\\/]*)
5534 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5535 ;;
5536 *)
5537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5538 for as_dir in /sbin
5539 do
5540 IFS=$as_save_IFS
5541 test -z "$as_dir" && as_dir=.
5542 for ac_exec_ext in '' $ac_executable_extensions; do
5543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5544 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5545 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5546 break 2
5547 fi
5548 done
5549 done
5550 IFS=$as_save_IFS
5551
5552 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5553 ;;
5554 esac
5555 fi
5556 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5557 if test -n "$INSTALL_INFO"; then
5558 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5559 $as_echo "$INSTALL_INFO" >&6; }
5560 else
5561 { $as_echo "$as_me:$LINENO: result: no" >&5
5562 $as_echo "no" >&6; }
5563 fi
5564
5565
5566 # Extract the first word of "gzip", so it can be a program name with args.
5567 set dummy gzip; ac_word=$2
5568 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5569 $as_echo_n "checking for $ac_word... " >&6; }
5570 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5571 $as_echo_n "(cached) " >&6
5572 else
5573 case $GZIP_PROG in
5574 [\\/]* | ?:[\\/]*)
5575 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5576 ;;
5577 *)
5578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579 for as_dir in $PATH
5580 do
5581 IFS=$as_save_IFS
5582 test -z "$as_dir" && as_dir=.
5583 for ac_exec_ext in '' $ac_executable_extensions; do
5584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5585 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5586 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5587 break 2
5588 fi
5589 done
5590 done
5591 IFS=$as_save_IFS
5592
5593 ;;
5594 esac
5595 fi
5596 GZIP_PROG=$ac_cv_path_GZIP_PROG
5597 if test -n "$GZIP_PROG"; then
5598 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5599 $as_echo "$GZIP_PROG" >&6; }
5600 else
5601 { $as_echo "$as_me:$LINENO: result: no" >&5
5602 $as_echo "no" >&6; }
5603 fi
5604
5605
5606
5607
5608 ## Need makeinfo >= 4.6 (?) to build the manuals.
5609 # Extract the first word of "makeinfo", so it can be a program name with args.
5610 set dummy makeinfo; ac_word=$2
5611 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5612 $as_echo_n "checking for $ac_word... " >&6; }
5613 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5614 $as_echo_n "(cached) " >&6
5615 else
5616 case $MAKEINFO in
5617 [\\/]* | ?:[\\/]*)
5618 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5619 ;;
5620 *)
5621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5622 for as_dir in $PATH
5623 do
5624 IFS=$as_save_IFS
5625 test -z "$as_dir" && as_dir=.
5626 for ac_exec_ext in '' $ac_executable_extensions; do
5627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5628 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5629 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5630 break 2
5631 fi
5632 done
5633 done
5634 IFS=$as_save_IFS
5635
5636 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5637 ;;
5638 esac
5639 fi
5640 MAKEINFO=$ac_cv_path_MAKEINFO
5641 if test -n "$MAKEINFO"; then
5642 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5643 $as_echo "$MAKEINFO" >&6; }
5644 else
5645 { $as_echo "$as_me:$LINENO: result: no" >&5
5646 $as_echo "no" >&6; }
5647 fi
5648
5649
5650 if test "$MAKEINFO" != "no" && \
5651 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
5652 MAKEINFO=no
5653 fi
5654
5655 ## Makeinfo is unusual. For a released Emacs, the manuals are
5656 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5657 ## therefore in the category of "special tools" not normally required, which
5658 ## configure does not have to check for (eg autoconf itself).
5659 ## In a Bazaar checkout on the other hand, the manuals are not included.
5660 ## So makeinfo is a requirement to build from Bazaar, and configure
5661 ## should test for it as it does for any other build requirement.
5662 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5663 ## with pre-built manuals, from a Bazaar checkout.
5664 if test "$MAKEINFO" = "no"; then
5665 if test "x${with_makeinfo}" = "xno"; then
5666 MAKEINFO=off
5667 elif test ! -e $srcdir/info/emacs; then
5668 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5669 source tree does not seem to have pre-built manuals in the \`info' directory.
5670 Either install a suitable version of makeinfo, or re-run configure
5671 with the \`--without-makeinfo' option to build without the manuals. " >&5
5672 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5673 source tree does not seem to have pre-built manuals in the \`info' directory.
5674 Either install a suitable version of makeinfo, or re-run configure
5675 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5676 { (exit 1); exit 1; }; }
5677 fi
5678 fi
5679
5680
5681 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5682 then
5683 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5684 fi
5685
5686 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5687 then
5688 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5689 fi
5690
5691
5692 late_LDFLAGS=$LDFLAGS
5693 if test "$GCC" = yes; then
5694 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5695 else
5696 LDFLAGS="$LDFLAGS -znocombreloc"
5697 fi
5698
5699 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5700 $as_echo_n "checking for -znocombreloc... " >&6; }
5701 cat >conftest.$ac_ext <<_ACEOF
5702 main(){return 0;}
5703 _ACEOF
5704 rm -f conftest.$ac_objext conftest$ac_exeext
5705 if { (ac_try="$ac_link"
5706 case "(($ac_try" in
5707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5708 *) ac_try_echo=$ac_try;;
5709 esac
5710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5711 $as_echo "$ac_try_echo") >&5
5712 (eval "$ac_link") 2>conftest.er1
5713 ac_status=$?
5714 grep -v '^ *+' conftest.er1 >conftest.err
5715 rm -f conftest.er1
5716 cat conftest.err >&5
5717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); } && {
5719 test -z "$ac_c_werror_flag" ||
5720 test ! -s conftest.err
5721 } && test -s conftest$ac_exeext && {
5722 test "$cross_compiling" = yes ||
5723 $as_test_x conftest$ac_exeext
5724 }; then
5725 { $as_echo "$as_me:$LINENO: result: yes" >&5
5726 $as_echo "yes" >&6; }
5727 else
5728 $as_echo "$as_me: failed program was:" >&5
5729 sed 's/^/| /' conftest.$ac_ext >&5
5730
5731 LDFLAGS=$late_LDFLAGS
5732 { $as_echo "$as_me:$LINENO: result: no" >&5
5733 $as_echo "no" >&6; }
5734 fi
5735
5736 rm -rf conftest.dSYM
5737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5738 conftest$ac_exeext conftest.$ac_ext
5739
5740 #### Extract some information from the operating system and machine files.
5741
5742 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5743 - which libraries the lib-src programs will want, and
5744 - whether the GNU malloc routines are usable..." >&5
5745 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5746 - which libraries the lib-src programs will want, and
5747 - whether the GNU malloc routines are usable..." >&6;}
5748
5749 ### First figure out CFLAGS (which we use for running the compiler here)
5750 ### and REAL_CFLAGS (which we use for real compilation).
5751 ### The two are the same except on a few systems, where they are made
5752 ### different to work around various lossages. For example,
5753 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5754 ### as implying static linking.
5755
5756 ### If the CFLAGS env var is specified, we use that value
5757 ### instead of the default.
5758
5759 ### It's not important that this name contain the PID; you can't run
5760 ### two configures in the same directory and have anything work
5761 ### anyway.
5762 tempcname="conftest.c"
5763
5764 echo '
5765 #include "'${srcdir}'/src/'${opsysfile}'"
5766 #include "'${srcdir}'/src/'${machfile}'"
5767 #ifndef LIBS_MACHINE
5768 #define LIBS_MACHINE
5769 #endif
5770 #ifndef LIBS_SYSTEM
5771 #define LIBS_SYSTEM
5772 #endif
5773 #ifndef C_SWITCH_SYSTEM
5774 #define C_SWITCH_SYSTEM
5775 #endif
5776 #ifndef C_SWITCH_MACHINE
5777 #define C_SWITCH_MACHINE
5778 #endif
5779 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5780 configure___ c_switch_system=C_SWITCH_SYSTEM
5781 configure___ c_switch_machine=C_SWITCH_MACHINE
5782
5783 #ifndef LIB_X11_LIB
5784 #define LIB_X11_LIB -lX11
5785 #endif
5786
5787 configure___ LIBX=LIB_X11_LIB
5788
5789 #ifdef UNEXEC
5790 configure___ unexec=UNEXEC
5791 #else
5792 configure___ unexec=unexec.o
5793 #endif
5794
5795 #ifdef SYSTEM_MALLOC
5796 configure___ system_malloc=yes
5797 #else
5798 configure___ system_malloc=no
5799 #endif
5800
5801 #ifdef USE_MMAP_FOR_BUFFERS
5802 configure___ use_mmap_for_buffers=yes
5803 #else
5804 configure___ use_mmap_for_buffers=no
5805 #endif
5806
5807 #ifndef C_OPTIMIZE_SWITCH
5808 #ifdef __GNUC__
5809 #define C_OPTIMIZE_SWITCH -O2
5810 #else
5811 #define C_OPTIMIZE_SWITCH -O
5812 #endif
5813 #endif
5814
5815 #ifndef C_WARNINGS_SWITCH
5816 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5817 #endif
5818
5819 #ifndef LD_SWITCH_MACHINE
5820 #define LD_SWITCH_MACHINE
5821 #endif
5822
5823 #ifndef LD_SWITCH_SYSTEM
5824 #define LD_SWITCH_SYSTEM
5825 #endif
5826
5827 #ifndef LD_SWITCH_X_SITE_AUX
5828 #define LD_SWITCH_X_SITE_AUX
5829 #endif
5830
5831 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5832 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5833
5834 #ifdef THIS_IS_CONFIGURE
5835
5836 /* Get the CFLAGS for tests in configure. */
5837 #ifdef __GNUC__
5838 configure___ CFLAGS=-g C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5839 #else
5840 configure___ CFLAGS='${SPECIFIED_CFLAGS}'
5841 #endif
5842
5843 #else /* not THIS_IS_CONFIGURE */
5844
5845 /* Get the CFLAGS for real compilation. */
5846 #ifdef __GNUC__
5847 configure___ REAL_CFLAGS=-g C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5848 #else
5849 configure___ REAL_CFLAGS='${SPECIFIED_CFLAGS}'
5850 #endif
5851
5852 #endif /* not THIS_IS_CONFIGURE */
5853 ' > ${tempcname}
5854
5855 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5856
5857 # The value of CPP is a quoted variable reference, so we need to do this
5858 # to get its actual value...
5859 CPP=`eval "echo $CPP"`
5860 eval `${CPP} -Isrc ${tempcname} \
5861 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5862 if test "x$SPECIFIED_CFLAGS" = x; then
5863 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5864 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5865 else
5866 REAL_CFLAGS="$CFLAGS"
5867 fi
5868 rm ${tempcname}
5869
5870 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5871
5872 ### Make sure subsequent tests use flags consistent with the build flags.
5873
5874 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5875 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5876 else
5877 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5878 fi
5879
5880
5881
5882 # Check whether --enable-largefile was given.
5883 if test "${enable_largefile+set}" = set; then
5884 enableval=$enable_largefile;
5885 fi
5886
5887 if test "$enable_largefile" != no; then
5888
5889 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5890 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5891 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5892 $as_echo_n "(cached) " >&6
5893 else
5894 ac_cv_sys_largefile_CC=no
5895 if test "$GCC" != yes; then
5896 ac_save_CC=$CC
5897 while :; do
5898 # IRIX 6.2 and later do not support large files by default,
5899 # so use the C compiler's -n32 option if that helps.
5900 cat >conftest.$ac_ext <<_ACEOF
5901 /* confdefs.h. */
5902 _ACEOF
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h. */
5906 #include <sys/types.h>
5907 /* Check that off_t can represent 2**63 - 1 correctly.
5908 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5909 since some C++ compilers masquerading as C compilers
5910 incorrectly reject 9223372036854775807. */
5911 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5912 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5913 && LARGE_OFF_T % 2147483647 == 1)
5914 ? 1 : -1];
5915 int
5916 main ()
5917 {
5918
5919 ;
5920 return 0;
5921 }
5922 _ACEOF
5923 rm -f conftest.$ac_objext
5924 if { (ac_try="$ac_compile"
5925 case "(($ac_try" in
5926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5927 *) ac_try_echo=$ac_try;;
5928 esac
5929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5930 $as_echo "$ac_try_echo") >&5
5931 (eval "$ac_compile") 2>conftest.er1
5932 ac_status=$?
5933 grep -v '^ *+' conftest.er1 >conftest.err
5934 rm -f conftest.er1
5935 cat conftest.err >&5
5936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } && {
5938 test -z "$ac_c_werror_flag" ||
5939 test ! -s conftest.err
5940 } && test -s conftest.$ac_objext; then
5941 break
5942 else
5943 $as_echo "$as_me: failed program was:" >&5
5944 sed 's/^/| /' conftest.$ac_ext >&5
5945
5946
5947 fi
5948
5949 rm -f core conftest.err conftest.$ac_objext
5950 CC="$CC -n32"
5951 rm -f conftest.$ac_objext
5952 if { (ac_try="$ac_compile"
5953 case "(($ac_try" in
5954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5955 *) ac_try_echo=$ac_try;;
5956 esac
5957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5958 $as_echo "$ac_try_echo") >&5
5959 (eval "$ac_compile") 2>conftest.er1
5960 ac_status=$?
5961 grep -v '^ *+' conftest.er1 >conftest.err
5962 rm -f conftest.er1
5963 cat conftest.err >&5
5964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); } && {
5966 test -z "$ac_c_werror_flag" ||
5967 test ! -s conftest.err
5968 } && test -s conftest.$ac_objext; then
5969 ac_cv_sys_largefile_CC=' -n32'; break
5970 else
5971 $as_echo "$as_me: failed program was:" >&5
5972 sed 's/^/| /' conftest.$ac_ext >&5
5973
5974
5975 fi
5976
5977 rm -f core conftest.err conftest.$ac_objext
5978 break
5979 done
5980 CC=$ac_save_CC
5981 rm -f conftest.$ac_ext
5982 fi
5983 fi
5984 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5985 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5986 if test "$ac_cv_sys_largefile_CC" != no; then
5987 CC=$CC$ac_cv_sys_largefile_CC
5988 fi
5989
5990 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5991 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5992 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5993 $as_echo_n "(cached) " >&6
5994 else
5995 while :; do
5996 cat >conftest.$ac_ext <<_ACEOF
5997 /* confdefs.h. */
5998 _ACEOF
5999 cat confdefs.h >>conftest.$ac_ext
6000 cat >>conftest.$ac_ext <<_ACEOF
6001 /* end confdefs.h. */
6002 #include <sys/types.h>
6003 /* Check that off_t can represent 2**63 - 1 correctly.
6004 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6005 since some C++ compilers masquerading as C compilers
6006 incorrectly reject 9223372036854775807. */
6007 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6008 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6009 && LARGE_OFF_T % 2147483647 == 1)
6010 ? 1 : -1];
6011 int
6012 main ()
6013 {
6014
6015 ;
6016 return 0;
6017 }
6018 _ACEOF
6019 rm -f conftest.$ac_objext
6020 if { (ac_try="$ac_compile"
6021 case "(($ac_try" in
6022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6023 *) ac_try_echo=$ac_try;;
6024 esac
6025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6026 $as_echo "$ac_try_echo") >&5
6027 (eval "$ac_compile") 2>conftest.er1
6028 ac_status=$?
6029 grep -v '^ *+' conftest.er1 >conftest.err
6030 rm -f conftest.er1
6031 cat conftest.err >&5
6032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); } && {
6034 test -z "$ac_c_werror_flag" ||
6035 test ! -s conftest.err
6036 } && test -s conftest.$ac_objext; then
6037 ac_cv_sys_file_offset_bits=no; break
6038 else
6039 $as_echo "$as_me: failed program was:" >&5
6040 sed 's/^/| /' conftest.$ac_ext >&5
6041
6042
6043 fi
6044
6045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6046 cat >conftest.$ac_ext <<_ACEOF
6047 /* confdefs.h. */
6048 _ACEOF
6049 cat confdefs.h >>conftest.$ac_ext
6050 cat >>conftest.$ac_ext <<_ACEOF
6051 /* end confdefs.h. */
6052 #define _FILE_OFFSET_BITS 64
6053 #include <sys/types.h>
6054 /* Check that off_t can represent 2**63 - 1 correctly.
6055 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6056 since some C++ compilers masquerading as C compilers
6057 incorrectly reject 9223372036854775807. */
6058 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6059 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6060 && LARGE_OFF_T % 2147483647 == 1)
6061 ? 1 : -1];
6062 int
6063 main ()
6064 {
6065
6066 ;
6067 return 0;
6068 }
6069 _ACEOF
6070 rm -f conftest.$ac_objext
6071 if { (ac_try="$ac_compile"
6072 case "(($ac_try" in
6073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6074 *) ac_try_echo=$ac_try;;
6075 esac
6076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6077 $as_echo "$ac_try_echo") >&5
6078 (eval "$ac_compile") 2>conftest.er1
6079 ac_status=$?
6080 grep -v '^ *+' conftest.er1 >conftest.err
6081 rm -f conftest.er1
6082 cat conftest.err >&5
6083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); } && {
6085 test -z "$ac_c_werror_flag" ||
6086 test ! -s conftest.err
6087 } && test -s conftest.$ac_objext; then
6088 ac_cv_sys_file_offset_bits=64; break
6089 else
6090 $as_echo "$as_me: failed program was:" >&5
6091 sed 's/^/| /' conftest.$ac_ext >&5
6092
6093
6094 fi
6095
6096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6097 ac_cv_sys_file_offset_bits=unknown
6098 break
6099 done
6100 fi
6101 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6102 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6103 case $ac_cv_sys_file_offset_bits in #(
6104 no | unknown) ;;
6105 *)
6106 cat >>confdefs.h <<_ACEOF
6107 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6108 _ACEOF
6109 ;;
6110 esac
6111 rm -rf conftest*
6112 if test $ac_cv_sys_file_offset_bits = unknown; then
6113 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6114 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6115 if test "${ac_cv_sys_large_files+set}" = set; then
6116 $as_echo_n "(cached) " >&6
6117 else
6118 while :; do
6119 cat >conftest.$ac_ext <<_ACEOF
6120 /* confdefs.h. */
6121 _ACEOF
6122 cat confdefs.h >>conftest.$ac_ext
6123 cat >>conftest.$ac_ext <<_ACEOF
6124 /* end confdefs.h. */
6125 #include <sys/types.h>
6126 /* Check that off_t can represent 2**63 - 1 correctly.
6127 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6128 since some C++ compilers masquerading as C compilers
6129 incorrectly reject 9223372036854775807. */
6130 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6131 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6132 && LARGE_OFF_T % 2147483647 == 1)
6133 ? 1 : -1];
6134 int
6135 main ()
6136 {
6137
6138 ;
6139 return 0;
6140 }
6141 _ACEOF
6142 rm -f conftest.$ac_objext
6143 if { (ac_try="$ac_compile"
6144 case "(($ac_try" in
6145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6146 *) ac_try_echo=$ac_try;;
6147 esac
6148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6149 $as_echo "$ac_try_echo") >&5
6150 (eval "$ac_compile") 2>conftest.er1
6151 ac_status=$?
6152 grep -v '^ *+' conftest.er1 >conftest.err
6153 rm -f conftest.er1
6154 cat conftest.err >&5
6155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); } && {
6157 test -z "$ac_c_werror_flag" ||
6158 test ! -s conftest.err
6159 } && test -s conftest.$ac_objext; then
6160 ac_cv_sys_large_files=no; break
6161 else
6162 $as_echo "$as_me: failed program was:" >&5
6163 sed 's/^/| /' conftest.$ac_ext >&5
6164
6165
6166 fi
6167
6168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6169 cat >conftest.$ac_ext <<_ACEOF
6170 /* confdefs.h. */
6171 _ACEOF
6172 cat confdefs.h >>conftest.$ac_ext
6173 cat >>conftest.$ac_ext <<_ACEOF
6174 /* end confdefs.h. */
6175 #define _LARGE_FILES 1
6176 #include <sys/types.h>
6177 /* Check that off_t can represent 2**63 - 1 correctly.
6178 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6179 since some C++ compilers masquerading as C compilers
6180 incorrectly reject 9223372036854775807. */
6181 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6182 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6183 && LARGE_OFF_T % 2147483647 == 1)
6184 ? 1 : -1];
6185 int
6186 main ()
6187 {
6188
6189 ;
6190 return 0;
6191 }
6192 _ACEOF
6193 rm -f conftest.$ac_objext
6194 if { (ac_try="$ac_compile"
6195 case "(($ac_try" in
6196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6197 *) ac_try_echo=$ac_try;;
6198 esac
6199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6200 $as_echo "$ac_try_echo") >&5
6201 (eval "$ac_compile") 2>conftest.er1
6202 ac_status=$?
6203 grep -v '^ *+' conftest.er1 >conftest.err
6204 rm -f conftest.er1
6205 cat conftest.err >&5
6206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); } && {
6208 test -z "$ac_c_werror_flag" ||
6209 test ! -s conftest.err
6210 } && test -s conftest.$ac_objext; then
6211 ac_cv_sys_large_files=1; break
6212 else
6213 $as_echo "$as_me: failed program was:" >&5
6214 sed 's/^/| /' conftest.$ac_ext >&5
6215
6216
6217 fi
6218
6219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6220 ac_cv_sys_large_files=unknown
6221 break
6222 done
6223 fi
6224 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6225 $as_echo "$ac_cv_sys_large_files" >&6; }
6226 case $ac_cv_sys_large_files in #(
6227 no | unknown) ;;
6228 *)
6229 cat >>confdefs.h <<_ACEOF
6230 #define _LARGE_FILES $ac_cv_sys_large_files
6231 _ACEOF
6232 ;;
6233 esac
6234 rm -rf conftest*
6235 fi
6236 fi
6237
6238
6239
6240 ## Note: at present CRT_DIR is only used for amdx86-64 and ibms390x.
6241 ## Other machine types hard-code the location in src/[ms]/*.h.
6242 case "${canonical}" in
6243 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6244
6245 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6246 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6247 ## For anything else (eg /usr/lib32), it is up the user to specify
6248 ## the location (bug#5655).
6249 ## Test for crtn.o, not just the directory, because sometimes the
6250 ## directory exists but does not have the relevant files (bug#1287).
6251 ## If user specified a crt-dir, use that unconditionally.
6252 if test "X$CRT_DIR" = "X"; then
6253 CRT_DIR=/usr/lib
6254 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
6255 fi
6256
6257 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
6258 { { $as_echo "$as_me:$LINENO: error: crt*.o not found. Use --with-crt-dir to specify the location." >&5
6259 $as_echo "$as_me: error: crt*.o not found. Use --with-crt-dir to specify the location." >&2;}
6260 { (exit 1); exit 1; }; }
6261 ;;
6262
6263 esac
6264 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
6265
6266
6267
6268
6269
6270
6271 if test "${with_sound}" != "no"; then
6272 # Sound support for GNU/Linux and the free BSDs.
6273
6274
6275
6276 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6277 do
6278 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6280 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6281 $as_echo_n "checking for $ac_header... " >&6; }
6282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6283 $as_echo_n "(cached) " >&6
6284 fi
6285 ac_res=`eval 'as_val=${'$as_ac_Header'}
6286 $as_echo "$as_val"'`
6287 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6288 $as_echo "$ac_res" >&6; }
6289 else
6290 # Is the header compilable?
6291 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6292 $as_echo_n "checking $ac_header usability... " >&6; }
6293 cat >conftest.$ac_ext <<_ACEOF
6294 /* confdefs.h. */
6295 _ACEOF
6296 cat confdefs.h >>conftest.$ac_ext
6297 cat >>conftest.$ac_ext <<_ACEOF
6298 /* end confdefs.h. */
6299 $ac_includes_default
6300 #include <$ac_header>
6301 _ACEOF
6302 rm -f conftest.$ac_objext
6303 if { (ac_try="$ac_compile"
6304 case "(($ac_try" in
6305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6306 *) ac_try_echo=$ac_try;;
6307 esac
6308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6309 $as_echo "$ac_try_echo") >&5
6310 (eval "$ac_compile") 2>conftest.er1
6311 ac_status=$?
6312 grep -v '^ *+' conftest.er1 >conftest.err
6313 rm -f conftest.er1
6314 cat conftest.err >&5
6315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); } && {
6317 test -z "$ac_c_werror_flag" ||
6318 test ! -s conftest.err
6319 } && test -s conftest.$ac_objext; then
6320 ac_header_compiler=yes
6321 else
6322 $as_echo "$as_me: failed program was:" >&5
6323 sed 's/^/| /' conftest.$ac_ext >&5
6324
6325 ac_header_compiler=no
6326 fi
6327
6328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6329 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6330 $as_echo "$ac_header_compiler" >&6; }
6331
6332 # Is the header present?
6333 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6334 $as_echo_n "checking $ac_header presence... " >&6; }
6335 cat >conftest.$ac_ext <<_ACEOF
6336 /* confdefs.h. */
6337 _ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h. */
6341 #include <$ac_header>
6342 _ACEOF
6343 if { (ac_try="$ac_cpp conftest.$ac_ext"
6344 case "(($ac_try" in
6345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346 *) ac_try_echo=$ac_try;;
6347 esac
6348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6349 $as_echo "$ac_try_echo") >&5
6350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6351 ac_status=$?
6352 grep -v '^ *+' conftest.er1 >conftest.err
6353 rm -f conftest.er1
6354 cat conftest.err >&5
6355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); } >/dev/null && {
6357 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6358 test ! -s conftest.err
6359 }; then
6360 ac_header_preproc=yes
6361 else
6362 $as_echo "$as_me: failed program was:" >&5
6363 sed 's/^/| /' conftest.$ac_ext >&5
6364
6365 ac_header_preproc=no
6366 fi
6367
6368 rm -f conftest.err conftest.$ac_ext
6369 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6370 $as_echo "$ac_header_preproc" >&6; }
6371
6372 # So? What about this header?
6373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6374 yes:no: )
6375 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6376 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6377 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6378 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6379 ac_header_preproc=yes
6380 ;;
6381 no:yes:* )
6382 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6383 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6384 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6385 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6386 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6387 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6388 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6389 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6390 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6391 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6392 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6393 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6394
6395 ;;
6396 esac
6397 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6398 $as_echo_n "checking for $ac_header... " >&6; }
6399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6400 $as_echo_n "(cached) " >&6
6401 else
6402 eval "$as_ac_Header=\$ac_header_preproc"
6403 fi
6404 ac_res=`eval 'as_val=${'$as_ac_Header'}
6405 $as_echo "$as_val"'`
6406 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6407 $as_echo "$ac_res" >&6; }
6408
6409 fi
6410 if test `eval 'as_val=${'$as_ac_Header'}
6411 $as_echo "$as_val"'` = yes; then
6412 cat >>confdefs.h <<_ACEOF
6413 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6414 _ACEOF
6415
6416 fi
6417
6418 done
6419
6420 # Emulation library used on NetBSD.
6421 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6422 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6423 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6424 $as_echo_n "(cached) " >&6
6425 else
6426 ac_check_lib_save_LIBS=$LIBS
6427 LIBS="-lossaudio $LIBS"
6428 cat >conftest.$ac_ext <<_ACEOF
6429 /* confdefs.h. */
6430 _ACEOF
6431 cat confdefs.h >>conftest.$ac_ext
6432 cat >>conftest.$ac_ext <<_ACEOF
6433 /* end confdefs.h. */
6434
6435 /* Override any GCC internal prototype to avoid an error.
6436 Use char because int might match the return type of a GCC
6437 builtin and then its argument prototype would still apply. */
6438 #ifdef __cplusplus
6439 extern "C"
6440 #endif
6441 char _oss_ioctl ();
6442 int
6443 main ()
6444 {
6445 return _oss_ioctl ();
6446 ;
6447 return 0;
6448 }
6449 _ACEOF
6450 rm -f conftest.$ac_objext conftest$ac_exeext
6451 if { (ac_try="$ac_link"
6452 case "(($ac_try" in
6453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6454 *) ac_try_echo=$ac_try;;
6455 esac
6456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6457 $as_echo "$ac_try_echo") >&5
6458 (eval "$ac_link") 2>conftest.er1
6459 ac_status=$?
6460 grep -v '^ *+' conftest.er1 >conftest.err
6461 rm -f conftest.er1
6462 cat conftest.err >&5
6463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); } && {
6465 test -z "$ac_c_werror_flag" ||
6466 test ! -s conftest.err
6467 } && test -s conftest$ac_exeext && {
6468 test "$cross_compiling" = yes ||
6469 $as_test_x conftest$ac_exeext
6470 }; then
6471 ac_cv_lib_ossaudio__oss_ioctl=yes
6472 else
6473 $as_echo "$as_me: failed program was:" >&5
6474 sed 's/^/| /' conftest.$ac_ext >&5
6475
6476 ac_cv_lib_ossaudio__oss_ioctl=no
6477 fi
6478
6479 rm -rf conftest.dSYM
6480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6481 conftest$ac_exeext conftest.$ac_ext
6482 LIBS=$ac_check_lib_save_LIBS
6483 fi
6484 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6485 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6486 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6487 LIBSOUND=-lossaudio
6488 else
6489 LIBSOUND=
6490 fi
6491
6492
6493
6494 ALSA_REQUIRED=1.0.0
6495 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6496
6497 succeeded=no
6498
6499 # Extract the first word of "pkg-config", so it can be a program name with args.
6500 set dummy pkg-config; ac_word=$2
6501 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6502 $as_echo_n "checking for $ac_word... " >&6; }
6503 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6504 $as_echo_n "(cached) " >&6
6505 else
6506 case $PKG_CONFIG in
6507 [\\/]* | ?:[\\/]*)
6508 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6509 ;;
6510 *)
6511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512 for as_dir in $PATH
6513 do
6514 IFS=$as_save_IFS
6515 test -z "$as_dir" && as_dir=.
6516 for ac_exec_ext in '' $ac_executable_extensions; do
6517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6518 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6519 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6520 break 2
6521 fi
6522 done
6523 done
6524 IFS=$as_save_IFS
6525
6526 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6527 ;;
6528 esac
6529 fi
6530 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6531 if test -n "$PKG_CONFIG"; then
6532 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6533 $as_echo "$PKG_CONFIG" >&6; }
6534 else
6535 { $as_echo "$as_me:$LINENO: result: no" >&5
6536 $as_echo "no" >&6; }
6537 fi
6538
6539
6540
6541 if test "$PKG_CONFIG" = "no" ; then
6542 HAVE_ALSA=no
6543 else
6544 PKG_CONFIG_MIN_VERSION=0.9.0
6545 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6546 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6547 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6548
6549 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6550 { $as_echo "$as_me:$LINENO: result: yes" >&5
6551 $as_echo "yes" >&6; }
6552 succeeded=yes
6553
6554 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6555 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6556 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6557 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6558 $as_echo "$ALSA_CFLAGS" >&6; }
6559
6560 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6561 $as_echo_n "checking ALSA_LIBS... " >&6; }
6562 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6563 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6564 $as_echo "$ALSA_LIBS" >&6; }
6565 else
6566 { $as_echo "$as_me:$LINENO: result: no" >&5
6567 $as_echo "no" >&6; }
6568 ALSA_CFLAGS=""
6569 ALSA_LIBS=""
6570 ## If we have a custom action on failure, don't print errors, but
6571 ## do set a variable so people can do so.
6572 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6573
6574 fi
6575
6576
6577
6578 else
6579 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6580 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6581 fi
6582 fi
6583
6584 if test $succeeded = yes; then
6585 HAVE_ALSA=yes
6586 else
6587 HAVE_ALSA=no
6588 fi
6589
6590 if test $HAVE_ALSA = yes; then
6591 SAVE_CFLAGS="$CFLAGS"
6592 SAVE_LDFLAGS="$LDFLAGS"
6593 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6594 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6595 cat >conftest.$ac_ext <<_ACEOF
6596 /* confdefs.h. */
6597 _ACEOF
6598 cat confdefs.h >>conftest.$ac_ext
6599 cat >>conftest.$ac_ext <<_ACEOF
6600 /* end confdefs.h. */
6601 #include <asoundlib.h>
6602 int
6603 main ()
6604 {
6605 snd_lib_error_set_handler (0);
6606 ;
6607 return 0;
6608 }
6609 _ACEOF
6610 rm -f conftest.$ac_objext
6611 if { (ac_try="$ac_compile"
6612 case "(($ac_try" in
6613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6614 *) ac_try_echo=$ac_try;;
6615 esac
6616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6617 $as_echo "$ac_try_echo") >&5
6618 (eval "$ac_compile") 2>conftest.er1
6619 ac_status=$?
6620 grep -v '^ *+' conftest.er1 >conftest.err
6621 rm -f conftest.er1
6622 cat conftest.err >&5
6623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); } && {
6625 test -z "$ac_c_werror_flag" ||
6626 test ! -s conftest.err
6627 } && test -s conftest.$ac_objext; then
6628 emacs_alsa_normal=yes
6629 else
6630 $as_echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.$ac_ext >&5
6632
6633 emacs_alsa_normal=no
6634 fi
6635
6636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6637 if test "$emacs_alsa_normal" != yes; then
6638 cat >conftest.$ac_ext <<_ACEOF
6639 /* confdefs.h. */
6640 _ACEOF
6641 cat confdefs.h >>conftest.$ac_ext
6642 cat >>conftest.$ac_ext <<_ACEOF
6643 /* end confdefs.h. */
6644 #include <alsa/asoundlib.h>
6645 int
6646 main ()
6647 {
6648 snd_lib_error_set_handler (0);
6649 ;
6650 return 0;
6651 }
6652 _ACEOF
6653 rm -f conftest.$ac_objext
6654 if { (ac_try="$ac_compile"
6655 case "(($ac_try" in
6656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6657 *) ac_try_echo=$ac_try;;
6658 esac
6659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6660 $as_echo "$ac_try_echo") >&5
6661 (eval "$ac_compile") 2>conftest.er1
6662 ac_status=$?
6663 grep -v '^ *+' conftest.er1 >conftest.err
6664 rm -f conftest.er1
6665 cat conftest.err >&5
6666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); } && {
6668 test -z "$ac_c_werror_flag" ||
6669 test ! -s conftest.err
6670 } && test -s conftest.$ac_objext; then
6671 emacs_alsa_subdir=yes
6672 else
6673 $as_echo "$as_me: failed program was:" >&5
6674 sed 's/^/| /' conftest.$ac_ext >&5
6675
6676 emacs_alsa_subdir=no
6677 fi
6678
6679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6680 if test "$emacs_alsa_subdir" != yes; then
6681 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6682 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6683 { (exit 1); exit 1; }; }
6684 fi
6685 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6686 fi
6687
6688 CFLAGS="$SAVE_CFLAGS"
6689 LDFLAGS="$SAVE_LDFLAGS"
6690 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6691 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6692
6693 cat >>confdefs.h <<\_ACEOF
6694 #define HAVE_ALSA 1
6695 _ACEOF
6696
6697 fi
6698
6699 fi
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6727 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6728 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6729 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6730 sys/utsname.h pwd.h utmp.h
6731 do
6732 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6734 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6735 $as_echo_n "checking for $ac_header... " >&6; }
6736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6737 $as_echo_n "(cached) " >&6
6738 fi
6739 ac_res=`eval 'as_val=${'$as_ac_Header'}
6740 $as_echo "$as_val"'`
6741 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6742 $as_echo "$ac_res" >&6; }
6743 else
6744 # Is the header compilable?
6745 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6746 $as_echo_n "checking $ac_header usability... " >&6; }
6747 cat >conftest.$ac_ext <<_ACEOF
6748 /* confdefs.h. */
6749 _ACEOF
6750 cat confdefs.h >>conftest.$ac_ext
6751 cat >>conftest.$ac_ext <<_ACEOF
6752 /* end confdefs.h. */
6753 $ac_includes_default
6754 #include <$ac_header>
6755 _ACEOF
6756 rm -f conftest.$ac_objext
6757 if { (ac_try="$ac_compile"
6758 case "(($ac_try" in
6759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6760 *) ac_try_echo=$ac_try;;
6761 esac
6762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6763 $as_echo "$ac_try_echo") >&5
6764 (eval "$ac_compile") 2>conftest.er1
6765 ac_status=$?
6766 grep -v '^ *+' conftest.er1 >conftest.err
6767 rm -f conftest.er1
6768 cat conftest.err >&5
6769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); } && {
6771 test -z "$ac_c_werror_flag" ||
6772 test ! -s conftest.err
6773 } && test -s conftest.$ac_objext; then
6774 ac_header_compiler=yes
6775 else
6776 $as_echo "$as_me: failed program was:" >&5
6777 sed 's/^/| /' conftest.$ac_ext >&5
6778
6779 ac_header_compiler=no
6780 fi
6781
6782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6783 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6784 $as_echo "$ac_header_compiler" >&6; }
6785
6786 # Is the header present?
6787 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6788 $as_echo_n "checking $ac_header presence... " >&6; }
6789 cat >conftest.$ac_ext <<_ACEOF
6790 /* confdefs.h. */
6791 _ACEOF
6792 cat confdefs.h >>conftest.$ac_ext
6793 cat >>conftest.$ac_ext <<_ACEOF
6794 /* end confdefs.h. */
6795 #include <$ac_header>
6796 _ACEOF
6797 if { (ac_try="$ac_cpp conftest.$ac_ext"
6798 case "(($ac_try" in
6799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6800 *) ac_try_echo=$ac_try;;
6801 esac
6802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6803 $as_echo "$ac_try_echo") >&5
6804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6805 ac_status=$?
6806 grep -v '^ *+' conftest.er1 >conftest.err
6807 rm -f conftest.er1
6808 cat conftest.err >&5
6809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); } >/dev/null && {
6811 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6812 test ! -s conftest.err
6813 }; then
6814 ac_header_preproc=yes
6815 else
6816 $as_echo "$as_me: failed program was:" >&5
6817 sed 's/^/| /' conftest.$ac_ext >&5
6818
6819 ac_header_preproc=no
6820 fi
6821
6822 rm -f conftest.err conftest.$ac_ext
6823 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6824 $as_echo "$ac_header_preproc" >&6; }
6825
6826 # So? What about this header?
6827 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6828 yes:no: )
6829 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6830 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6831 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6832 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6833 ac_header_preproc=yes
6834 ;;
6835 no:yes:* )
6836 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6837 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6838 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6839 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6840 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6841 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6842 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6843 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6844 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6845 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6847 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6848
6849 ;;
6850 esac
6851 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6852 $as_echo_n "checking for $ac_header... " >&6; }
6853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6854 $as_echo_n "(cached) " >&6
6855 else
6856 eval "$as_ac_Header=\$ac_header_preproc"
6857 fi
6858 ac_res=`eval 'as_val=${'$as_ac_Header'}
6859 $as_echo "$as_val"'`
6860 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6861 $as_echo "$ac_res" >&6; }
6862
6863 fi
6864 if test `eval 'as_val=${'$as_ac_Header'}
6865 $as_echo "$as_val"'` = yes; then
6866 cat >>confdefs.h <<_ACEOF
6867 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6868 _ACEOF
6869
6870 fi
6871
6872 done
6873
6874
6875 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6876 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6877 cat >conftest.$ac_ext <<_ACEOF
6878 /* confdefs.h. */
6879 _ACEOF
6880 cat confdefs.h >>conftest.$ac_ext
6881 cat >>conftest.$ac_ext <<_ACEOF
6882 /* end confdefs.h. */
6883 #include <sys/personality.h>
6884 int
6885 main ()
6886 {
6887 personality (PER_LINUX32)
6888 ;
6889 return 0;
6890 }
6891 _ACEOF
6892 rm -f conftest.$ac_objext
6893 if { (ac_try="$ac_compile"
6894 case "(($ac_try" in
6895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6896 *) ac_try_echo=$ac_try;;
6897 esac
6898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6899 $as_echo "$ac_try_echo") >&5
6900 (eval "$ac_compile") 2>conftest.er1
6901 ac_status=$?
6902 grep -v '^ *+' conftest.er1 >conftest.err
6903 rm -f conftest.er1
6904 cat conftest.err >&5
6905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); } && {
6907 test -z "$ac_c_werror_flag" ||
6908 test ! -s conftest.err
6909 } && test -s conftest.$ac_objext; then
6910 emacs_cv_personality_linux32=yes
6911 else
6912 $as_echo "$as_me: failed program was:" >&5
6913 sed 's/^/| /' conftest.$ac_ext >&5
6914
6915 emacs_cv_personality_linux32=no
6916 fi
6917
6918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6919 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6920 $as_echo "$emacs_cv_personality_linux32" >&6; }
6921
6922 if test $emacs_cv_personality_linux32 = yes; then
6923
6924 cat >>confdefs.h <<\_ACEOF
6925 #define HAVE_PERSONALITY_LINUX32 1
6926 _ACEOF
6927
6928 fi
6929
6930
6931 for ac_header in term.h
6932 do
6933 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6934 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6935 $as_echo_n "checking for $ac_header... " >&6; }
6936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6937 $as_echo_n "(cached) " >&6
6938 else
6939 cat >conftest.$ac_ext <<_ACEOF
6940 /* confdefs.h. */
6941 _ACEOF
6942 cat confdefs.h >>conftest.$ac_ext
6943 cat >>conftest.$ac_ext <<_ACEOF
6944 /* end confdefs.h. */
6945 #include <$ac_header>
6946 _ACEOF
6947 if { (ac_try="$ac_cpp conftest.$ac_ext"
6948 case "(($ac_try" in
6949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6950 *) ac_try_echo=$ac_try;;
6951 esac
6952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6953 $as_echo "$ac_try_echo") >&5
6954 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6955 ac_status=$?
6956 grep -v '^ *+' conftest.er1 >conftest.err
6957 rm -f conftest.er1
6958 cat conftest.err >&5
6959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); } >/dev/null && {
6961 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6962 test ! -s conftest.err
6963 }; then
6964 eval "$as_ac_Header=yes"
6965 else
6966 $as_echo "$as_me: failed program was:" >&5
6967 sed 's/^/| /' conftest.$ac_ext >&5
6968
6969 eval "$as_ac_Header=no"
6970 fi
6971
6972 rm -f conftest.err conftest.$ac_ext
6973 fi
6974 ac_res=`eval 'as_val=${'$as_ac_Header'}
6975 $as_echo "$as_val"'`
6976 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6977 $as_echo "$ac_res" >&6; }
6978 if test `eval 'as_val=${'$as_ac_Header'}
6979 $as_echo "$as_val"'` = yes; then
6980 cat >>confdefs.h <<_ACEOF
6981 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6982 _ACEOF
6983
6984 fi
6985
6986 done
6987
6988 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6989 $as_echo_n "checking for ANSI C header files... " >&6; }
6990 if test "${ac_cv_header_stdc+set}" = set; then
6991 $as_echo_n "(cached) " >&6
6992 else
6993 cat >conftest.$ac_ext <<_ACEOF
6994 /* confdefs.h. */
6995 _ACEOF
6996 cat confdefs.h >>conftest.$ac_ext
6997 cat >>conftest.$ac_ext <<_ACEOF
6998 /* end confdefs.h. */
6999 #include <stdlib.h>
7000 #include <stdarg.h>
7001 #include <string.h>
7002 #include <float.h>
7003
7004 int
7005 main ()
7006 {
7007
7008 ;
7009 return 0;
7010 }
7011 _ACEOF
7012 rm -f conftest.$ac_objext
7013 if { (ac_try="$ac_compile"
7014 case "(($ac_try" in
7015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7016 *) ac_try_echo=$ac_try;;
7017 esac
7018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7019 $as_echo "$ac_try_echo") >&5
7020 (eval "$ac_compile") 2>conftest.er1
7021 ac_status=$?
7022 grep -v '^ *+' conftest.er1 >conftest.err
7023 rm -f conftest.er1
7024 cat conftest.err >&5
7025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); } && {
7027 test -z "$ac_c_werror_flag" ||
7028 test ! -s conftest.err
7029 } && test -s conftest.$ac_objext; then
7030 ac_cv_header_stdc=yes
7031 else
7032 $as_echo "$as_me: failed program was:" >&5
7033 sed 's/^/| /' conftest.$ac_ext >&5
7034
7035 ac_cv_header_stdc=no
7036 fi
7037
7038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7039
7040 if test $ac_cv_header_stdc = yes; then
7041 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7042 cat >conftest.$ac_ext <<_ACEOF
7043 /* confdefs.h. */
7044 _ACEOF
7045 cat confdefs.h >>conftest.$ac_ext
7046 cat >>conftest.$ac_ext <<_ACEOF
7047 /* end confdefs.h. */
7048 #include <string.h>
7049
7050 _ACEOF
7051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7052 $EGREP "memchr" >/dev/null 2>&1; then
7053 :
7054 else
7055 ac_cv_header_stdc=no
7056 fi
7057 rm -f conftest*
7058
7059 fi
7060
7061 if test $ac_cv_header_stdc = yes; then
7062 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7063 cat >conftest.$ac_ext <<_ACEOF
7064 /* confdefs.h. */
7065 _ACEOF
7066 cat confdefs.h >>conftest.$ac_ext
7067 cat >>conftest.$ac_ext <<_ACEOF
7068 /* end confdefs.h. */
7069 #include <stdlib.h>
7070
7071 _ACEOF
7072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7073 $EGREP "free" >/dev/null 2>&1; then
7074 :
7075 else
7076 ac_cv_header_stdc=no
7077 fi
7078 rm -f conftest*
7079
7080 fi
7081
7082 if test $ac_cv_header_stdc = yes; then
7083 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7084 if test "$cross_compiling" = yes; then
7085 :
7086 else
7087 cat >conftest.$ac_ext <<_ACEOF
7088 /* confdefs.h. */
7089 _ACEOF
7090 cat confdefs.h >>conftest.$ac_ext
7091 cat >>conftest.$ac_ext <<_ACEOF
7092 /* end confdefs.h. */
7093 #include <ctype.h>
7094 #include <stdlib.h>
7095 #if ((' ' & 0x0FF) == 0x020)
7096 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7097 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7098 #else
7099 # define ISLOWER(c) \
7100 (('a' <= (c) && (c) <= 'i') \
7101 || ('j' <= (c) && (c) <= 'r') \
7102 || ('s' <= (c) && (c) <= 'z'))
7103 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7104 #endif
7105
7106 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7107 int
7108 main ()
7109 {
7110 int i;
7111 for (i = 0; i < 256; i++)
7112 if (XOR (islower (i), ISLOWER (i))
7113 || toupper (i) != TOUPPER (i))
7114 return 2;
7115 return 0;
7116 }
7117 _ACEOF
7118 rm -f conftest$ac_exeext
7119 if { (ac_try="$ac_link"
7120 case "(($ac_try" in
7121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7122 *) ac_try_echo=$ac_try;;
7123 esac
7124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7125 $as_echo "$ac_try_echo") >&5
7126 (eval "$ac_link") 2>&5
7127 ac_status=$?
7128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7130 { (case "(($ac_try" in
7131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7132 *) ac_try_echo=$ac_try;;
7133 esac
7134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7135 $as_echo "$ac_try_echo") >&5
7136 (eval "$ac_try") 2>&5
7137 ac_status=$?
7138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); }; }; then
7140 :
7141 else
7142 $as_echo "$as_me: program exited with status $ac_status" >&5
7143 $as_echo "$as_me: failed program was:" >&5
7144 sed 's/^/| /' conftest.$ac_ext >&5
7145
7146 ( exit $ac_status )
7147 ac_cv_header_stdc=no
7148 fi
7149 rm -rf conftest.dSYM
7150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7151 fi
7152
7153
7154 fi
7155 fi
7156 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7157 $as_echo "$ac_cv_header_stdc" >&6; }
7158 if test $ac_cv_header_stdc = yes; then
7159
7160 cat >>confdefs.h <<\_ACEOF
7161 #define STDC_HEADERS 1
7162 _ACEOF
7163
7164 fi
7165
7166 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7167 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7168 if test "${ac_cv_header_time+set}" = set; then
7169 $as_echo_n "(cached) " >&6
7170 else
7171 cat >conftest.$ac_ext <<_ACEOF
7172 /* confdefs.h. */
7173 _ACEOF
7174 cat confdefs.h >>conftest.$ac_ext
7175 cat >>conftest.$ac_ext <<_ACEOF
7176 /* end confdefs.h. */
7177 #include <sys/types.h>
7178 #include <sys/time.h>
7179 #include <time.h>
7180
7181 int
7182 main ()
7183 {
7184 if ((struct tm *) 0)
7185 return 0;
7186 ;
7187 return 0;
7188 }
7189 _ACEOF
7190 rm -f conftest.$ac_objext
7191 if { (ac_try="$ac_compile"
7192 case "(($ac_try" in
7193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7194 *) ac_try_echo=$ac_try;;
7195 esac
7196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7197 $as_echo "$ac_try_echo") >&5
7198 (eval "$ac_compile") 2>conftest.er1
7199 ac_status=$?
7200 grep -v '^ *+' conftest.er1 >conftest.err
7201 rm -f conftest.er1
7202 cat conftest.err >&5
7203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); } && {
7205 test -z "$ac_c_werror_flag" ||
7206 test ! -s conftest.err
7207 } && test -s conftest.$ac_objext; then
7208 ac_cv_header_time=yes
7209 else
7210 $as_echo "$as_me: failed program was:" >&5
7211 sed 's/^/| /' conftest.$ac_ext >&5
7212
7213 ac_cv_header_time=no
7214 fi
7215
7216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7217 fi
7218 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7219 $as_echo "$ac_cv_header_time" >&6; }
7220 if test $ac_cv_header_time = yes; then
7221
7222 cat >>confdefs.h <<\_ACEOF
7223 #define TIME_WITH_SYS_TIME 1
7224 _ACEOF
7225
7226 fi
7227
7228 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7229 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7230 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7231 $as_echo_n "(cached) " >&6
7232 else
7233 cat >conftest.$ac_ext <<_ACEOF
7234 /* confdefs.h. */
7235 _ACEOF
7236 cat confdefs.h >>conftest.$ac_ext
7237 cat >>conftest.$ac_ext <<_ACEOF
7238 /* end confdefs.h. */
7239 $ac_includes_default
7240 int
7241 main ()
7242 {
7243 #ifndef sys_siglist
7244 (void) sys_siglist;
7245 #endif
7246
7247 ;
7248 return 0;
7249 }
7250 _ACEOF
7251 rm -f conftest.$ac_objext
7252 if { (ac_try="$ac_compile"
7253 case "(($ac_try" in
7254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7255 *) ac_try_echo=$ac_try;;
7256 esac
7257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7258 $as_echo "$ac_try_echo") >&5
7259 (eval "$ac_compile") 2>conftest.er1
7260 ac_status=$?
7261 grep -v '^ *+' conftest.er1 >conftest.err
7262 rm -f conftest.er1
7263 cat conftest.err >&5
7264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); } && {
7266 test -z "$ac_c_werror_flag" ||
7267 test ! -s conftest.err
7268 } && test -s conftest.$ac_objext; then
7269 ac_cv_have_decl_sys_siglist=yes
7270 else
7271 $as_echo "$as_me: failed program was:" >&5
7272 sed 's/^/| /' conftest.$ac_ext >&5
7273
7274 ac_cv_have_decl_sys_siglist=no
7275 fi
7276
7277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7278 fi
7279 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7280 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7281 if test $ac_cv_have_decl_sys_siglist = yes; then
7282
7283 cat >>confdefs.h <<_ACEOF
7284 #define HAVE_DECL_SYS_SIGLIST 1
7285 _ACEOF
7286
7287
7288 else
7289 cat >>confdefs.h <<_ACEOF
7290 #define HAVE_DECL_SYS_SIGLIST 0
7291 _ACEOF
7292
7293
7294 fi
7295
7296
7297 if test $ac_cv_have_decl_sys_siglist != yes; then
7298 # For Tru64, at least:
7299 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7300 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7301 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7302 $as_echo_n "(cached) " >&6
7303 else
7304 cat >conftest.$ac_ext <<_ACEOF
7305 /* confdefs.h. */
7306 _ACEOF
7307 cat confdefs.h >>conftest.$ac_ext
7308 cat >>conftest.$ac_ext <<_ACEOF
7309 /* end confdefs.h. */
7310 $ac_includes_default
7311 int
7312 main ()
7313 {
7314 #ifndef __sys_siglist
7315 (void) __sys_siglist;
7316 #endif
7317
7318 ;
7319 return 0;
7320 }
7321 _ACEOF
7322 rm -f conftest.$ac_objext
7323 if { (ac_try="$ac_compile"
7324 case "(($ac_try" in
7325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7326 *) ac_try_echo=$ac_try;;
7327 esac
7328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7329 $as_echo "$ac_try_echo") >&5
7330 (eval "$ac_compile") 2>conftest.er1
7331 ac_status=$?
7332 grep -v '^ *+' conftest.er1 >conftest.err
7333 rm -f conftest.er1
7334 cat conftest.err >&5
7335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); } && {
7337 test -z "$ac_c_werror_flag" ||
7338 test ! -s conftest.err
7339 } && test -s conftest.$ac_objext; then
7340 ac_cv_have_decl___sys_siglist=yes
7341 else
7342 $as_echo "$as_me: failed program was:" >&5
7343 sed 's/^/| /' conftest.$ac_ext >&5
7344
7345 ac_cv_have_decl___sys_siglist=no
7346 fi
7347
7348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7349 fi
7350 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7351 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7352 if test $ac_cv_have_decl___sys_siglist = yes; then
7353
7354 cat >>confdefs.h <<_ACEOF
7355 #define HAVE_DECL___SYS_SIGLIST 1
7356 _ACEOF
7357
7358
7359 else
7360 cat >>confdefs.h <<_ACEOF
7361 #define HAVE_DECL___SYS_SIGLIST 0
7362 _ACEOF
7363
7364
7365 fi
7366
7367
7368 if test $ac_cv_have_decl___sys_siglist = yes; then
7369
7370 cat >>confdefs.h <<\_ACEOF
7371 #define sys_siglist __sys_siglist
7372 _ACEOF
7373
7374 fi
7375 fi
7376 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7377 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7378 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7379 $as_echo_n "(cached) " >&6
7380 else
7381 cat >conftest.$ac_ext <<_ACEOF
7382 /* confdefs.h. */
7383 _ACEOF
7384 cat confdefs.h >>conftest.$ac_ext
7385 cat >>conftest.$ac_ext <<_ACEOF
7386 /* end confdefs.h. */
7387 #include <sys/types.h>
7388 #include <sys/wait.h>
7389 #ifndef WEXITSTATUS
7390 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7391 #endif
7392 #ifndef WIFEXITED
7393 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7394 #endif
7395
7396 int
7397 main ()
7398 {
7399 int s;
7400 wait (&s);
7401 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7402 ;
7403 return 0;
7404 }
7405 _ACEOF
7406 rm -f conftest.$ac_objext
7407 if { (ac_try="$ac_compile"
7408 case "(($ac_try" in
7409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7410 *) ac_try_echo=$ac_try;;
7411 esac
7412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7413 $as_echo "$ac_try_echo") >&5
7414 (eval "$ac_compile") 2>conftest.er1
7415 ac_status=$?
7416 grep -v '^ *+' conftest.er1 >conftest.err
7417 rm -f conftest.er1
7418 cat conftest.err >&5
7419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420 (exit $ac_status); } && {
7421 test -z "$ac_c_werror_flag" ||
7422 test ! -s conftest.err
7423 } && test -s conftest.$ac_objext; then
7424 ac_cv_header_sys_wait_h=yes
7425 else
7426 $as_echo "$as_me: failed program was:" >&5
7427 sed 's/^/| /' conftest.$ac_ext >&5
7428
7429 ac_cv_header_sys_wait_h=no
7430 fi
7431
7432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7433 fi
7434 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7435 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7436 if test $ac_cv_header_sys_wait_h = yes; then
7437
7438 cat >>confdefs.h <<\_ACEOF
7439 #define HAVE_SYS_WAIT_H 1
7440 _ACEOF
7441
7442 fi
7443
7444
7445 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7446 $as_echo_n "checking for struct utimbuf... " >&6; }
7447 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7448 $as_echo_n "(cached) " >&6
7449 else
7450 cat >conftest.$ac_ext <<_ACEOF
7451 /* confdefs.h. */
7452 _ACEOF
7453 cat confdefs.h >>conftest.$ac_ext
7454 cat >>conftest.$ac_ext <<_ACEOF
7455 /* end confdefs.h. */
7456 #ifdef TIME_WITH_SYS_TIME
7457 #include <sys/time.h>
7458 #include <time.h>
7459 #else
7460 #ifdef HAVE_SYS_TIME_H
7461 #include <sys/time.h>
7462 #else
7463 #include <time.h>
7464 #endif
7465 #endif
7466 #ifdef HAVE_UTIME_H
7467 #include <utime.h>
7468 #endif
7469 int
7470 main ()
7471 {
7472 static struct utimbuf x; x.actime = x.modtime;
7473 ;
7474 return 0;
7475 }
7476 _ACEOF
7477 rm -f conftest.$ac_objext
7478 if { (ac_try="$ac_compile"
7479 case "(($ac_try" in
7480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7481 *) ac_try_echo=$ac_try;;
7482 esac
7483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7484 $as_echo "$ac_try_echo") >&5
7485 (eval "$ac_compile") 2>conftest.er1
7486 ac_status=$?
7487 grep -v '^ *+' conftest.er1 >conftest.err
7488 rm -f conftest.er1
7489 cat conftest.err >&5
7490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); } && {
7492 test -z "$ac_c_werror_flag" ||
7493 test ! -s conftest.err
7494 } && test -s conftest.$ac_objext; then
7495 emacs_cv_struct_utimbuf=yes
7496 else
7497 $as_echo "$as_me: failed program was:" >&5
7498 sed 's/^/| /' conftest.$ac_ext >&5
7499
7500 emacs_cv_struct_utimbuf=no
7501 fi
7502
7503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7504 fi
7505 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7506 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7507 if test $emacs_cv_struct_utimbuf = yes; then
7508
7509 cat >>confdefs.h <<\_ACEOF
7510 #define HAVE_STRUCT_UTIMBUF 1
7511 _ACEOF
7512
7513 fi
7514
7515 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7516 $as_echo_n "checking return type of signal handlers... " >&6; }
7517 if test "${ac_cv_type_signal+set}" = set; then
7518 $as_echo_n "(cached) " >&6
7519 else
7520 cat >conftest.$ac_ext <<_ACEOF
7521 /* confdefs.h. */
7522 _ACEOF
7523 cat confdefs.h >>conftest.$ac_ext
7524 cat >>conftest.$ac_ext <<_ACEOF
7525 /* end confdefs.h. */
7526 #include <sys/types.h>
7527 #include <signal.h>
7528
7529 int
7530 main ()
7531 {
7532 return *(signal (0, 0)) (0) == 1;
7533 ;
7534 return 0;
7535 }
7536 _ACEOF
7537 rm -f conftest.$ac_objext
7538 if { (ac_try="$ac_compile"
7539 case "(($ac_try" in
7540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7541 *) ac_try_echo=$ac_try;;
7542 esac
7543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7544 $as_echo "$ac_try_echo") >&5
7545 (eval "$ac_compile") 2>conftest.er1
7546 ac_status=$?
7547 grep -v '^ *+' conftest.er1 >conftest.err
7548 rm -f conftest.er1
7549 cat conftest.err >&5
7550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); } && {
7552 test -z "$ac_c_werror_flag" ||
7553 test ! -s conftest.err
7554 } && test -s conftest.$ac_objext; then
7555 ac_cv_type_signal=int
7556 else
7557 $as_echo "$as_me: failed program was:" >&5
7558 sed 's/^/| /' conftest.$ac_ext >&5
7559
7560 ac_cv_type_signal=void
7561 fi
7562
7563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7564 fi
7565 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7566 $as_echo "$ac_cv_type_signal" >&6; }
7567
7568 cat >>confdefs.h <<_ACEOF
7569 #define RETSIGTYPE $ac_cv_type_signal
7570 _ACEOF
7571
7572
7573
7574 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7575 $as_echo_n "checking for speed_t... " >&6; }
7576 if test "${emacs_cv_speed_t+set}" = set; then
7577 $as_echo_n "(cached) " >&6
7578 else
7579 cat >conftest.$ac_ext <<_ACEOF
7580 /* confdefs.h. */
7581 _ACEOF
7582 cat confdefs.h >>conftest.$ac_ext
7583 cat >>conftest.$ac_ext <<_ACEOF
7584 /* end confdefs.h. */
7585 #include <termios.h>
7586 int
7587 main ()
7588 {
7589 speed_t x = 1;
7590 ;
7591 return 0;
7592 }
7593 _ACEOF
7594 rm -f conftest.$ac_objext
7595 if { (ac_try="$ac_compile"
7596 case "(($ac_try" in
7597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7598 *) ac_try_echo=$ac_try;;
7599 esac
7600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7601 $as_echo "$ac_try_echo") >&5
7602 (eval "$ac_compile") 2>conftest.er1
7603 ac_status=$?
7604 grep -v '^ *+' conftest.er1 >conftest.err
7605 rm -f conftest.er1
7606 cat conftest.err >&5
7607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); } && {
7609 test -z "$ac_c_werror_flag" ||
7610 test ! -s conftest.err
7611 } && test -s conftest.$ac_objext; then
7612 emacs_cv_speed_t=yes
7613 else
7614 $as_echo "$as_me: failed program was:" >&5
7615 sed 's/^/| /' conftest.$ac_ext >&5
7616
7617 emacs_cv_speed_t=no
7618 fi
7619
7620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7621 fi
7622 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7623 $as_echo "$emacs_cv_speed_t" >&6; }
7624 if test $emacs_cv_speed_t = yes; then
7625
7626 cat >>confdefs.h <<\_ACEOF
7627 #define HAVE_SPEED_T 1
7628 _ACEOF
7629
7630 fi
7631
7632 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7633 $as_echo_n "checking for struct timeval... " >&6; }
7634 if test "${emacs_cv_struct_timeval+set}" = set; then
7635 $as_echo_n "(cached) " >&6
7636 else
7637 cat >conftest.$ac_ext <<_ACEOF
7638 /* confdefs.h. */
7639 _ACEOF
7640 cat confdefs.h >>conftest.$ac_ext
7641 cat >>conftest.$ac_ext <<_ACEOF
7642 /* end confdefs.h. */
7643 #ifdef TIME_WITH_SYS_TIME
7644 #include <sys/time.h>
7645 #include <time.h>
7646 #else
7647 #ifdef HAVE_SYS_TIME_H
7648 #include <sys/time.h>
7649 #else
7650 #include <time.h>
7651 #endif
7652 #endif
7653 int
7654 main ()
7655 {
7656 static struct timeval x; x.tv_sec = x.tv_usec;
7657 ;
7658 return 0;
7659 }
7660 _ACEOF
7661 rm -f conftest.$ac_objext
7662 if { (ac_try="$ac_compile"
7663 case "(($ac_try" in
7664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7665 *) ac_try_echo=$ac_try;;
7666 esac
7667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7668 $as_echo "$ac_try_echo") >&5
7669 (eval "$ac_compile") 2>conftest.er1
7670 ac_status=$?
7671 grep -v '^ *+' conftest.er1 >conftest.err
7672 rm -f conftest.er1
7673 cat conftest.err >&5
7674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); } && {
7676 test -z "$ac_c_werror_flag" ||
7677 test ! -s conftest.err
7678 } && test -s conftest.$ac_objext; then
7679 emacs_cv_struct_timeval=yes
7680 else
7681 $as_echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.$ac_ext >&5
7683
7684 emacs_cv_struct_timeval=no
7685 fi
7686
7687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7688 fi
7689 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7690 $as_echo "$emacs_cv_struct_timeval" >&6; }
7691 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7692 if test $emacs_cv_struct_timeval = yes; then
7693
7694 cat >>confdefs.h <<\_ACEOF
7695 #define HAVE_TIMEVAL 1
7696 _ACEOF
7697
7698 fi
7699
7700 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7701 $as_echo_n "checking for struct exception... " >&6; }
7702 if test "${emacs_cv_struct_exception+set}" = set; then
7703 $as_echo_n "(cached) " >&6
7704 else
7705 cat >conftest.$ac_ext <<_ACEOF
7706 /* confdefs.h. */
7707 _ACEOF
7708 cat confdefs.h >>conftest.$ac_ext
7709 cat >>conftest.$ac_ext <<_ACEOF
7710 /* end confdefs.h. */
7711 #include <math.h>
7712 int
7713 main ()
7714 {
7715 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7716 ;
7717 return 0;
7718 }
7719 _ACEOF
7720 rm -f conftest.$ac_objext
7721 if { (ac_try="$ac_compile"
7722 case "(($ac_try" in
7723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7724 *) ac_try_echo=$ac_try;;
7725 esac
7726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7727 $as_echo "$ac_try_echo") >&5
7728 (eval "$ac_compile") 2>conftest.er1
7729 ac_status=$?
7730 grep -v '^ *+' conftest.er1 >conftest.err
7731 rm -f conftest.er1
7732 cat conftest.err >&5
7733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734 (exit $ac_status); } && {
7735 test -z "$ac_c_werror_flag" ||
7736 test ! -s conftest.err
7737 } && test -s conftest.$ac_objext; then
7738 emacs_cv_struct_exception=yes
7739 else
7740 $as_echo "$as_me: failed program was:" >&5
7741 sed 's/^/| /' conftest.$ac_ext >&5
7742
7743 emacs_cv_struct_exception=no
7744 fi
7745
7746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7747 fi
7748 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7749 $as_echo "$emacs_cv_struct_exception" >&6; }
7750 HAVE_EXCEPTION=$emacs_cv_struct_exception
7751 if test $emacs_cv_struct_exception != yes; then
7752
7753 cat >>confdefs.h <<\_ACEOF
7754 #define NO_MATHERR 1
7755 _ACEOF
7756
7757 fi
7758
7759
7760 for ac_header in sys/socket.h
7761 do
7762 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7764 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7765 $as_echo_n "checking for $ac_header... " >&6; }
7766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7767 $as_echo_n "(cached) " >&6
7768 fi
7769 ac_res=`eval 'as_val=${'$as_ac_Header'}
7770 $as_echo "$as_val"'`
7771 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7772 $as_echo "$ac_res" >&6; }
7773 else
7774 # Is the header compilable?
7775 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7776 $as_echo_n "checking $ac_header usability... " >&6; }
7777 cat >conftest.$ac_ext <<_ACEOF
7778 /* confdefs.h. */
7779 _ACEOF
7780 cat confdefs.h >>conftest.$ac_ext
7781 cat >>conftest.$ac_ext <<_ACEOF
7782 /* end confdefs.h. */
7783 $ac_includes_default
7784 #include <$ac_header>
7785 _ACEOF
7786 rm -f conftest.$ac_objext
7787 if { (ac_try="$ac_compile"
7788 case "(($ac_try" in
7789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7790 *) ac_try_echo=$ac_try;;
7791 esac
7792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7793 $as_echo "$ac_try_echo") >&5
7794 (eval "$ac_compile") 2>conftest.er1
7795 ac_status=$?
7796 grep -v '^ *+' conftest.er1 >conftest.err
7797 rm -f conftest.er1
7798 cat conftest.err >&5
7799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800 (exit $ac_status); } && {
7801 test -z "$ac_c_werror_flag" ||
7802 test ! -s conftest.err
7803 } && test -s conftest.$ac_objext; then
7804 ac_header_compiler=yes
7805 else
7806 $as_echo "$as_me: failed program was:" >&5
7807 sed 's/^/| /' conftest.$ac_ext >&5
7808
7809 ac_header_compiler=no
7810 fi
7811
7812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7813 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7814 $as_echo "$ac_header_compiler" >&6; }
7815
7816 # Is the header present?
7817 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7818 $as_echo_n "checking $ac_header presence... " >&6; }
7819 cat >conftest.$ac_ext <<_ACEOF
7820 /* confdefs.h. */
7821 _ACEOF
7822 cat confdefs.h >>conftest.$ac_ext
7823 cat >>conftest.$ac_ext <<_ACEOF
7824 /* end confdefs.h. */
7825 #include <$ac_header>
7826 _ACEOF
7827 if { (ac_try="$ac_cpp conftest.$ac_ext"
7828 case "(($ac_try" in
7829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7830 *) ac_try_echo=$ac_try;;
7831 esac
7832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7833 $as_echo "$ac_try_echo") >&5
7834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7835 ac_status=$?
7836 grep -v '^ *+' conftest.er1 >conftest.err
7837 rm -f conftest.er1
7838 cat conftest.err >&5
7839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); } >/dev/null && {
7841 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7842 test ! -s conftest.err
7843 }; then
7844 ac_header_preproc=yes
7845 else
7846 $as_echo "$as_me: failed program was:" >&5
7847 sed 's/^/| /' conftest.$ac_ext >&5
7848
7849 ac_header_preproc=no
7850 fi
7851
7852 rm -f conftest.err conftest.$ac_ext
7853 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7854 $as_echo "$ac_header_preproc" >&6; }
7855
7856 # So? What about this header?
7857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7858 yes:no: )
7859 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7860 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7861 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7862 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7863 ac_header_preproc=yes
7864 ;;
7865 no:yes:* )
7866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7867 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7869 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7870 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7871 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7872 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7873 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7875 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7877 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7878
7879 ;;
7880 esac
7881 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7882 $as_echo_n "checking for $ac_header... " >&6; }
7883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7884 $as_echo_n "(cached) " >&6
7885 else
7886 eval "$as_ac_Header=\$ac_header_preproc"
7887 fi
7888 ac_res=`eval 'as_val=${'$as_ac_Header'}
7889 $as_echo "$as_val"'`
7890 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7891 $as_echo "$ac_res" >&6; }
7892
7893 fi
7894 if test `eval 'as_val=${'$as_ac_Header'}
7895 $as_echo "$as_val"'` = yes; then
7896 cat >>confdefs.h <<_ACEOF
7897 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7898 _ACEOF
7899
7900 fi
7901
7902 done
7903
7904
7905 for ac_header in net/if.h
7906 do
7907 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7908 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7909 $as_echo_n "checking for $ac_header... " >&6; }
7910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7911 $as_echo_n "(cached) " >&6
7912 else
7913 cat >conftest.$ac_ext <<_ACEOF
7914 /* confdefs.h. */
7915 _ACEOF
7916 cat confdefs.h >>conftest.$ac_ext
7917 cat >>conftest.$ac_ext <<_ACEOF
7918 /* end confdefs.h. */
7919 $ac_includes_default
7920 #if HAVE_SYS_SOCKET_H
7921 #include <sys/socket.h>
7922 #endif
7923
7924 #include <$ac_header>
7925 _ACEOF
7926 rm -f conftest.$ac_objext
7927 if { (ac_try="$ac_compile"
7928 case "(($ac_try" in
7929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7930 *) ac_try_echo=$ac_try;;
7931 esac
7932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7933 $as_echo "$ac_try_echo") >&5
7934 (eval "$ac_compile") 2>conftest.er1
7935 ac_status=$?
7936 grep -v '^ *+' conftest.er1 >conftest.err
7937 rm -f conftest.er1
7938 cat conftest.err >&5
7939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); } && {
7941 test -z "$ac_c_werror_flag" ||
7942 test ! -s conftest.err
7943 } && test -s conftest.$ac_objext; then
7944 eval "$as_ac_Header=yes"
7945 else
7946 $as_echo "$as_me: failed program was:" >&5
7947 sed 's/^/| /' conftest.$ac_ext >&5
7948
7949 eval "$as_ac_Header=no"
7950 fi
7951
7952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7953 fi
7954 ac_res=`eval 'as_val=${'$as_ac_Header'}
7955 $as_echo "$as_val"'`
7956 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7957 $as_echo "$ac_res" >&6; }
7958 if test `eval 'as_val=${'$as_ac_Header'}
7959 $as_echo "$as_val"'` = yes; then
7960 cat >>confdefs.h <<_ACEOF
7961 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7962 _ACEOF
7963
7964 fi
7965
7966 done
7967
7968
7969 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7970 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7971 if test "${ac_cv_struct_tm+set}" = set; then
7972 $as_echo_n "(cached) " >&6
7973 else
7974 cat >conftest.$ac_ext <<_ACEOF
7975 /* confdefs.h. */
7976 _ACEOF
7977 cat confdefs.h >>conftest.$ac_ext
7978 cat >>conftest.$ac_ext <<_ACEOF
7979 /* end confdefs.h. */
7980 #include <sys/types.h>
7981 #include <time.h>
7982
7983 int
7984 main ()
7985 {
7986 struct tm tm;
7987 int *p = &tm.tm_sec;
7988 return !p;
7989 ;
7990 return 0;
7991 }
7992 _ACEOF
7993 rm -f conftest.$ac_objext
7994 if { (ac_try="$ac_compile"
7995 case "(($ac_try" in
7996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7997 *) ac_try_echo=$ac_try;;
7998 esac
7999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8000 $as_echo "$ac_try_echo") >&5
8001 (eval "$ac_compile") 2>conftest.er1
8002 ac_status=$?
8003 grep -v '^ *+' conftest.er1 >conftest.err
8004 rm -f conftest.er1
8005 cat conftest.err >&5
8006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); } && {
8008 test -z "$ac_c_werror_flag" ||
8009 test ! -s conftest.err
8010 } && test -s conftest.$ac_objext; then
8011 ac_cv_struct_tm=time.h
8012 else
8013 $as_echo "$as_me: failed program was:" >&5
8014 sed 's/^/| /' conftest.$ac_ext >&5
8015
8016 ac_cv_struct_tm=sys/time.h
8017 fi
8018
8019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8020 fi
8021 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8022 $as_echo "$ac_cv_struct_tm" >&6; }
8023 if test $ac_cv_struct_tm = sys/time.h; then
8024
8025 cat >>confdefs.h <<\_ACEOF
8026 #define TM_IN_SYS_TIME 1
8027 _ACEOF
8028
8029 fi
8030
8031 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8032 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8033 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8034 $as_echo_n "(cached) " >&6
8035 else
8036 cat >conftest.$ac_ext <<_ACEOF
8037 /* confdefs.h. */
8038 _ACEOF
8039 cat confdefs.h >>conftest.$ac_ext
8040 cat >>conftest.$ac_ext <<_ACEOF
8041 /* end confdefs.h. */
8042 #include <sys/types.h>
8043 #include <$ac_cv_struct_tm>
8044
8045
8046 int
8047 main ()
8048 {
8049 static struct tm ac_aggr;
8050 if (ac_aggr.tm_zone)
8051 return 0;
8052 ;
8053 return 0;
8054 }
8055 _ACEOF
8056 rm -f conftest.$ac_objext
8057 if { (ac_try="$ac_compile"
8058 case "(($ac_try" in
8059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8060 *) ac_try_echo=$ac_try;;
8061 esac
8062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8063 $as_echo "$ac_try_echo") >&5
8064 (eval "$ac_compile") 2>conftest.er1
8065 ac_status=$?
8066 grep -v '^ *+' conftest.er1 >conftest.err
8067 rm -f conftest.er1
8068 cat conftest.err >&5
8069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); } && {
8071 test -z "$ac_c_werror_flag" ||
8072 test ! -s conftest.err
8073 } && test -s conftest.$ac_objext; then
8074 ac_cv_member_struct_tm_tm_zone=yes
8075 else
8076 $as_echo "$as_me: failed program was:" >&5
8077 sed 's/^/| /' conftest.$ac_ext >&5
8078
8079 cat >conftest.$ac_ext <<_ACEOF
8080 /* confdefs.h. */
8081 _ACEOF
8082 cat confdefs.h >>conftest.$ac_ext
8083 cat >>conftest.$ac_ext <<_ACEOF
8084 /* end confdefs.h. */
8085 #include <sys/types.h>
8086 #include <$ac_cv_struct_tm>
8087
8088
8089 int
8090 main ()
8091 {
8092 static struct tm ac_aggr;
8093 if (sizeof ac_aggr.tm_zone)
8094 return 0;
8095 ;
8096 return 0;
8097 }
8098 _ACEOF
8099 rm -f conftest.$ac_objext
8100 if { (ac_try="$ac_compile"
8101 case "(($ac_try" in
8102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8103 *) ac_try_echo=$ac_try;;
8104 esac
8105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8106 $as_echo "$ac_try_echo") >&5
8107 (eval "$ac_compile") 2>conftest.er1
8108 ac_status=$?
8109 grep -v '^ *+' conftest.er1 >conftest.err
8110 rm -f conftest.er1
8111 cat conftest.err >&5
8112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); } && {
8114 test -z "$ac_c_werror_flag" ||
8115 test ! -s conftest.err
8116 } && test -s conftest.$ac_objext; then
8117 ac_cv_member_struct_tm_tm_zone=yes
8118 else
8119 $as_echo "$as_me: failed program was:" >&5
8120 sed 's/^/| /' conftest.$ac_ext >&5
8121
8122 ac_cv_member_struct_tm_tm_zone=no
8123 fi
8124
8125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8126 fi
8127
8128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8129 fi
8130 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8131 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8132 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8133
8134 cat >>confdefs.h <<_ACEOF
8135 #define HAVE_STRUCT_TM_TM_ZONE 1
8136 _ACEOF
8137
8138
8139 fi
8140
8141 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8142
8143 cat >>confdefs.h <<\_ACEOF
8144 #define HAVE_TM_ZONE 1
8145 _ACEOF
8146
8147 else
8148 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8149 $as_echo_n "checking whether tzname is declared... " >&6; }
8150 if test "${ac_cv_have_decl_tzname+set}" = set; then
8151 $as_echo_n "(cached) " >&6
8152 else
8153 cat >conftest.$ac_ext <<_ACEOF
8154 /* confdefs.h. */
8155 _ACEOF
8156 cat confdefs.h >>conftest.$ac_ext
8157 cat >>conftest.$ac_ext <<_ACEOF
8158 /* end confdefs.h. */
8159 #include <time.h>
8160
8161 int
8162 main ()
8163 {
8164 #ifndef tzname
8165 (void) tzname;
8166 #endif
8167
8168 ;
8169 return 0;
8170 }
8171 _ACEOF
8172 rm -f conftest.$ac_objext
8173 if { (ac_try="$ac_compile"
8174 case "(($ac_try" in
8175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8176 *) ac_try_echo=$ac_try;;
8177 esac
8178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8179 $as_echo "$ac_try_echo") >&5
8180 (eval "$ac_compile") 2>conftest.er1
8181 ac_status=$?
8182 grep -v '^ *+' conftest.er1 >conftest.err
8183 rm -f conftest.er1
8184 cat conftest.err >&5
8185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); } && {
8187 test -z "$ac_c_werror_flag" ||
8188 test ! -s conftest.err
8189 } && test -s conftest.$ac_objext; then
8190 ac_cv_have_decl_tzname=yes
8191 else
8192 $as_echo "$as_me: failed program was:" >&5
8193 sed 's/^/| /' conftest.$ac_ext >&5
8194
8195 ac_cv_have_decl_tzname=no
8196 fi
8197
8198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8199 fi
8200 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8201 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8202 if test $ac_cv_have_decl_tzname = yes; then
8203
8204 cat >>confdefs.h <<_ACEOF
8205 #define HAVE_DECL_TZNAME 1
8206 _ACEOF
8207
8208
8209 else
8210 cat >>confdefs.h <<_ACEOF
8211 #define HAVE_DECL_TZNAME 0
8212 _ACEOF
8213
8214
8215 fi
8216
8217
8218 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8219 $as_echo_n "checking for tzname... " >&6; }
8220 if test "${ac_cv_var_tzname+set}" = set; then
8221 $as_echo_n "(cached) " >&6
8222 else
8223 cat >conftest.$ac_ext <<_ACEOF
8224 /* confdefs.h. */
8225 _ACEOF
8226 cat confdefs.h >>conftest.$ac_ext
8227 cat >>conftest.$ac_ext <<_ACEOF
8228 /* end confdefs.h. */
8229 #include <time.h>
8230 #if !HAVE_DECL_TZNAME
8231 extern char *tzname[];
8232 #endif
8233
8234 int
8235 main ()
8236 {
8237 return tzname[0][0];
8238 ;
8239 return 0;
8240 }
8241 _ACEOF
8242 rm -f conftest.$ac_objext conftest$ac_exeext
8243 if { (ac_try="$ac_link"
8244 case "(($ac_try" in
8245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8246 *) ac_try_echo=$ac_try;;
8247 esac
8248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8249 $as_echo "$ac_try_echo") >&5
8250 (eval "$ac_link") 2>conftest.er1
8251 ac_status=$?
8252 grep -v '^ *+' conftest.er1 >conftest.err
8253 rm -f conftest.er1
8254 cat conftest.err >&5
8255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); } && {
8257 test -z "$ac_c_werror_flag" ||
8258 test ! -s conftest.err
8259 } && test -s conftest$ac_exeext && {
8260 test "$cross_compiling" = yes ||
8261 $as_test_x conftest$ac_exeext
8262 }; then
8263 ac_cv_var_tzname=yes
8264 else
8265 $as_echo "$as_me: failed program was:" >&5
8266 sed 's/^/| /' conftest.$ac_ext >&5
8267
8268 ac_cv_var_tzname=no
8269 fi
8270
8271 rm -rf conftest.dSYM
8272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8273 conftest$ac_exeext conftest.$ac_ext
8274 fi
8275 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8276 $as_echo "$ac_cv_var_tzname" >&6; }
8277 if test $ac_cv_var_tzname = yes; then
8278
8279 cat >>confdefs.h <<\_ACEOF
8280 #define HAVE_TZNAME 1
8281 _ACEOF
8282
8283 fi
8284 fi
8285
8286 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8287 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8288 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8289 $as_echo_n "(cached) " >&6
8290 else
8291 cat >conftest.$ac_ext <<_ACEOF
8292 /* confdefs.h. */
8293 _ACEOF
8294 cat confdefs.h >>conftest.$ac_ext
8295 cat >>conftest.$ac_ext <<_ACEOF
8296 /* end confdefs.h. */
8297 #include <time.h>
8298
8299 int
8300 main ()
8301 {
8302 static struct tm ac_aggr;
8303 if (ac_aggr.tm_gmtoff)
8304 return 0;
8305 ;
8306 return 0;
8307 }
8308 _ACEOF
8309 rm -f conftest.$ac_objext
8310 if { (ac_try="$ac_compile"
8311 case "(($ac_try" in
8312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313 *) ac_try_echo=$ac_try;;
8314 esac
8315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8316 $as_echo "$ac_try_echo") >&5
8317 (eval "$ac_compile") 2>conftest.er1
8318 ac_status=$?
8319 grep -v '^ *+' conftest.er1 >conftest.err
8320 rm -f conftest.er1
8321 cat conftest.err >&5
8322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); } && {
8324 test -z "$ac_c_werror_flag" ||
8325 test ! -s conftest.err
8326 } && test -s conftest.$ac_objext; then
8327 ac_cv_member_struct_tm_tm_gmtoff=yes
8328 else
8329 $as_echo "$as_me: failed program was:" >&5
8330 sed 's/^/| /' conftest.$ac_ext >&5
8331
8332 cat >conftest.$ac_ext <<_ACEOF
8333 /* confdefs.h. */
8334 _ACEOF
8335 cat confdefs.h >>conftest.$ac_ext
8336 cat >>conftest.$ac_ext <<_ACEOF
8337 /* end confdefs.h. */
8338 #include <time.h>
8339
8340 int
8341 main ()
8342 {
8343 static struct tm ac_aggr;
8344 if (sizeof ac_aggr.tm_gmtoff)
8345 return 0;
8346 ;
8347 return 0;
8348 }
8349 _ACEOF
8350 rm -f conftest.$ac_objext
8351 if { (ac_try="$ac_compile"
8352 case "(($ac_try" in
8353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8354 *) ac_try_echo=$ac_try;;
8355 esac
8356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8357 $as_echo "$ac_try_echo") >&5
8358 (eval "$ac_compile") 2>conftest.er1
8359 ac_status=$?
8360 grep -v '^ *+' conftest.er1 >conftest.err
8361 rm -f conftest.er1
8362 cat conftest.err >&5
8363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); } && {
8365 test -z "$ac_c_werror_flag" ||
8366 test ! -s conftest.err
8367 } && test -s conftest.$ac_objext; then
8368 ac_cv_member_struct_tm_tm_gmtoff=yes
8369 else
8370 $as_echo "$as_me: failed program was:" >&5
8371 sed 's/^/| /' conftest.$ac_ext >&5
8372
8373 ac_cv_member_struct_tm_tm_gmtoff=no
8374 fi
8375
8376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8377 fi
8378
8379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8380 fi
8381 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8382 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8383 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8384
8385 cat >>confdefs.h <<\_ACEOF
8386 #define HAVE_TM_GMTOFF 1
8387 _ACEOF
8388
8389 fi
8390
8391 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8392 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8393 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8394 $as_echo_n "(cached) " >&6
8395 else
8396 cat >conftest.$ac_ext <<_ACEOF
8397 /* confdefs.h. */
8398 _ACEOF
8399 cat confdefs.h >>conftest.$ac_ext
8400 cat >>conftest.$ac_ext <<_ACEOF
8401 /* end confdefs.h. */
8402 $ac_includes_default
8403 #if HAVE_SYS_SOCKET_H
8404 #include <sys/socket.h>
8405 #endif
8406 #if HAVE_NET_IF_H
8407 #include <net/if.h>
8408 #endif
8409
8410 int
8411 main ()
8412 {
8413 static struct ifreq ac_aggr;
8414 if (ac_aggr.ifr_flags)
8415 return 0;
8416 ;
8417 return 0;
8418 }
8419 _ACEOF
8420 rm -f conftest.$ac_objext
8421 if { (ac_try="$ac_compile"
8422 case "(($ac_try" in
8423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8424 *) ac_try_echo=$ac_try;;
8425 esac
8426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8427 $as_echo "$ac_try_echo") >&5
8428 (eval "$ac_compile") 2>conftest.er1
8429 ac_status=$?
8430 grep -v '^ *+' conftest.er1 >conftest.err
8431 rm -f conftest.er1
8432 cat conftest.err >&5
8433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 (exit $ac_status); } && {
8435 test -z "$ac_c_werror_flag" ||
8436 test ! -s conftest.err
8437 } && test -s conftest.$ac_objext; then
8438 ac_cv_member_struct_ifreq_ifr_flags=yes
8439 else
8440 $as_echo "$as_me: failed program was:" >&5
8441 sed 's/^/| /' conftest.$ac_ext >&5
8442
8443 cat >conftest.$ac_ext <<_ACEOF
8444 /* confdefs.h. */
8445 _ACEOF
8446 cat confdefs.h >>conftest.$ac_ext
8447 cat >>conftest.$ac_ext <<_ACEOF
8448 /* end confdefs.h. */
8449 $ac_includes_default
8450 #if HAVE_SYS_SOCKET_H
8451 #include <sys/socket.h>
8452 #endif
8453 #if HAVE_NET_IF_H
8454 #include <net/if.h>
8455 #endif
8456
8457 int
8458 main ()
8459 {
8460 static struct ifreq ac_aggr;
8461 if (sizeof ac_aggr.ifr_flags)
8462 return 0;
8463 ;
8464 return 0;
8465 }
8466 _ACEOF
8467 rm -f conftest.$ac_objext
8468 if { (ac_try="$ac_compile"
8469 case "(($ac_try" in
8470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8471 *) ac_try_echo=$ac_try;;
8472 esac
8473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8474 $as_echo "$ac_try_echo") >&5
8475 (eval "$ac_compile") 2>conftest.er1
8476 ac_status=$?
8477 grep -v '^ *+' conftest.er1 >conftest.err
8478 rm -f conftest.er1
8479 cat conftest.err >&5
8480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); } && {
8482 test -z "$ac_c_werror_flag" ||
8483 test ! -s conftest.err
8484 } && test -s conftest.$ac_objext; then
8485 ac_cv_member_struct_ifreq_ifr_flags=yes
8486 else
8487 $as_echo "$as_me: failed program was:" >&5
8488 sed 's/^/| /' conftest.$ac_ext >&5
8489
8490 ac_cv_member_struct_ifreq_ifr_flags=no
8491 fi
8492
8493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8494 fi
8495
8496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8497 fi
8498 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8499 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8500 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8501
8502 cat >>confdefs.h <<_ACEOF
8503 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8504 _ACEOF
8505
8506
8507 fi
8508 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8509 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8510 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8511 $as_echo_n "(cached) " >&6
8512 else
8513 cat >conftest.$ac_ext <<_ACEOF
8514 /* confdefs.h. */
8515 _ACEOF
8516 cat confdefs.h >>conftest.$ac_ext
8517 cat >>conftest.$ac_ext <<_ACEOF
8518 /* end confdefs.h. */
8519 $ac_includes_default
8520 #if HAVE_SYS_SOCKET_H
8521 #include <sys/socket.h>
8522 #endif
8523 #if HAVE_NET_IF_H
8524 #include <net/if.h>
8525 #endif
8526
8527 int
8528 main ()
8529 {
8530 static struct ifreq ac_aggr;
8531 if (ac_aggr.ifr_hwaddr)
8532 return 0;
8533 ;
8534 return 0;
8535 }
8536 _ACEOF
8537 rm -f conftest.$ac_objext
8538 if { (ac_try="$ac_compile"
8539 case "(($ac_try" in
8540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8541 *) ac_try_echo=$ac_try;;
8542 esac
8543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8544 $as_echo "$ac_try_echo") >&5
8545 (eval "$ac_compile") 2>conftest.er1
8546 ac_status=$?
8547 grep -v '^ *+' conftest.er1 >conftest.err
8548 rm -f conftest.er1
8549 cat conftest.err >&5
8550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); } && {
8552 test -z "$ac_c_werror_flag" ||
8553 test ! -s conftest.err
8554 } && test -s conftest.$ac_objext; then
8555 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8556 else
8557 $as_echo "$as_me: failed program was:" >&5
8558 sed 's/^/| /' conftest.$ac_ext >&5
8559
8560 cat >conftest.$ac_ext <<_ACEOF
8561 /* confdefs.h. */
8562 _ACEOF
8563 cat confdefs.h >>conftest.$ac_ext
8564 cat >>conftest.$ac_ext <<_ACEOF
8565 /* end confdefs.h. */
8566 $ac_includes_default
8567 #if HAVE_SYS_SOCKET_H
8568 #include <sys/socket.h>
8569 #endif
8570 #if HAVE_NET_IF_H
8571 #include <net/if.h>
8572 #endif
8573
8574 int
8575 main ()
8576 {
8577 static struct ifreq ac_aggr;
8578 if (sizeof ac_aggr.ifr_hwaddr)
8579 return 0;
8580 ;
8581 return 0;
8582 }
8583 _ACEOF
8584 rm -f conftest.$ac_objext
8585 if { (ac_try="$ac_compile"
8586 case "(($ac_try" in
8587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8588 *) ac_try_echo=$ac_try;;
8589 esac
8590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8591 $as_echo "$ac_try_echo") >&5
8592 (eval "$ac_compile") 2>conftest.er1
8593 ac_status=$?
8594 grep -v '^ *+' conftest.er1 >conftest.err
8595 rm -f conftest.er1
8596 cat conftest.err >&5
8597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); } && {
8599 test -z "$ac_c_werror_flag" ||
8600 test ! -s conftest.err
8601 } && test -s conftest.$ac_objext; then
8602 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8603 else
8604 $as_echo "$as_me: failed program was:" >&5
8605 sed 's/^/| /' conftest.$ac_ext >&5
8606
8607 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8608 fi
8609
8610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8611 fi
8612
8613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8614 fi
8615 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8616 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8617 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8618
8619 cat >>confdefs.h <<_ACEOF
8620 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8621 _ACEOF
8622
8623
8624 fi
8625 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8626 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8627 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8628 $as_echo_n "(cached) " >&6
8629 else
8630 cat >conftest.$ac_ext <<_ACEOF
8631 /* confdefs.h. */
8632 _ACEOF
8633 cat confdefs.h >>conftest.$ac_ext
8634 cat >>conftest.$ac_ext <<_ACEOF
8635 /* end confdefs.h. */
8636 $ac_includes_default
8637 #if HAVE_SYS_SOCKET_H
8638 #include <sys/socket.h>
8639 #endif
8640 #if HAVE_NET_IF_H
8641 #include <net/if.h>
8642 #endif
8643
8644 int
8645 main ()
8646 {
8647 static struct ifreq ac_aggr;
8648 if (ac_aggr.ifr_netmask)
8649 return 0;
8650 ;
8651 return 0;
8652 }
8653 _ACEOF
8654 rm -f conftest.$ac_objext
8655 if { (ac_try="$ac_compile"
8656 case "(($ac_try" in
8657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8658 *) ac_try_echo=$ac_try;;
8659 esac
8660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8661 $as_echo "$ac_try_echo") >&5
8662 (eval "$ac_compile") 2>conftest.er1
8663 ac_status=$?
8664 grep -v '^ *+' conftest.er1 >conftest.err
8665 rm -f conftest.er1
8666 cat conftest.err >&5
8667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); } && {
8669 test -z "$ac_c_werror_flag" ||
8670 test ! -s conftest.err
8671 } && test -s conftest.$ac_objext; then
8672 ac_cv_member_struct_ifreq_ifr_netmask=yes
8673 else
8674 $as_echo "$as_me: failed program was:" >&5
8675 sed 's/^/| /' conftest.$ac_ext >&5
8676
8677 cat >conftest.$ac_ext <<_ACEOF
8678 /* confdefs.h. */
8679 _ACEOF
8680 cat confdefs.h >>conftest.$ac_ext
8681 cat >>conftest.$ac_ext <<_ACEOF
8682 /* end confdefs.h. */
8683 $ac_includes_default
8684 #if HAVE_SYS_SOCKET_H
8685 #include <sys/socket.h>
8686 #endif
8687 #if HAVE_NET_IF_H
8688 #include <net/if.h>
8689 #endif
8690
8691 int
8692 main ()
8693 {
8694 static struct ifreq ac_aggr;
8695 if (sizeof ac_aggr.ifr_netmask)
8696 return 0;
8697 ;
8698 return 0;
8699 }
8700 _ACEOF
8701 rm -f conftest.$ac_objext
8702 if { (ac_try="$ac_compile"
8703 case "(($ac_try" in
8704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8705 *) ac_try_echo=$ac_try;;
8706 esac
8707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8708 $as_echo "$ac_try_echo") >&5
8709 (eval "$ac_compile") 2>conftest.er1
8710 ac_status=$?
8711 grep -v '^ *+' conftest.er1 >conftest.err
8712 rm -f conftest.er1
8713 cat conftest.err >&5
8714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); } && {
8716 test -z "$ac_c_werror_flag" ||
8717 test ! -s conftest.err
8718 } && test -s conftest.$ac_objext; then
8719 ac_cv_member_struct_ifreq_ifr_netmask=yes
8720 else
8721 $as_echo "$as_me: failed program was:" >&5
8722 sed 's/^/| /' conftest.$ac_ext >&5
8723
8724 ac_cv_member_struct_ifreq_ifr_netmask=no
8725 fi
8726
8727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8728 fi
8729
8730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8731 fi
8732 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8733 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8734 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8735
8736 cat >>confdefs.h <<_ACEOF
8737 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8738 _ACEOF
8739
8740
8741 fi
8742 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8743 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8744 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8745 $as_echo_n "(cached) " >&6
8746 else
8747 cat >conftest.$ac_ext <<_ACEOF
8748 /* confdefs.h. */
8749 _ACEOF
8750 cat confdefs.h >>conftest.$ac_ext
8751 cat >>conftest.$ac_ext <<_ACEOF
8752 /* end confdefs.h. */
8753 $ac_includes_default
8754 #if HAVE_SYS_SOCKET_H
8755 #include <sys/socket.h>
8756 #endif
8757 #if HAVE_NET_IF_H
8758 #include <net/if.h>
8759 #endif
8760
8761 int
8762 main ()
8763 {
8764 static struct ifreq ac_aggr;
8765 if (ac_aggr.ifr_broadaddr)
8766 return 0;
8767 ;
8768 return 0;
8769 }
8770 _ACEOF
8771 rm -f conftest.$ac_objext
8772 if { (ac_try="$ac_compile"
8773 case "(($ac_try" in
8774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8775 *) ac_try_echo=$ac_try;;
8776 esac
8777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8778 $as_echo "$ac_try_echo") >&5
8779 (eval "$ac_compile") 2>conftest.er1
8780 ac_status=$?
8781 grep -v '^ *+' conftest.er1 >conftest.err
8782 rm -f conftest.er1
8783 cat conftest.err >&5
8784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); } && {
8786 test -z "$ac_c_werror_flag" ||
8787 test ! -s conftest.err
8788 } && test -s conftest.$ac_objext; then
8789 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8790 else
8791 $as_echo "$as_me: failed program was:" >&5
8792 sed 's/^/| /' conftest.$ac_ext >&5
8793
8794 cat >conftest.$ac_ext <<_ACEOF
8795 /* confdefs.h. */
8796 _ACEOF
8797 cat confdefs.h >>conftest.$ac_ext
8798 cat >>conftest.$ac_ext <<_ACEOF
8799 /* end confdefs.h. */
8800 $ac_includes_default
8801 #if HAVE_SYS_SOCKET_H
8802 #include <sys/socket.h>
8803 #endif
8804 #if HAVE_NET_IF_H
8805 #include <net/if.h>
8806 #endif
8807
8808 int
8809 main ()
8810 {
8811 static struct ifreq ac_aggr;
8812 if (sizeof ac_aggr.ifr_broadaddr)
8813 return 0;
8814 ;
8815 return 0;
8816 }
8817 _ACEOF
8818 rm -f conftest.$ac_objext
8819 if { (ac_try="$ac_compile"
8820 case "(($ac_try" in
8821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8822 *) ac_try_echo=$ac_try;;
8823 esac
8824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8825 $as_echo "$ac_try_echo") >&5
8826 (eval "$ac_compile") 2>conftest.er1
8827 ac_status=$?
8828 grep -v '^ *+' conftest.er1 >conftest.err
8829 rm -f conftest.er1
8830 cat conftest.err >&5
8831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); } && {
8833 test -z "$ac_c_werror_flag" ||
8834 test ! -s conftest.err
8835 } && test -s conftest.$ac_objext; then
8836 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8837 else
8838 $as_echo "$as_me: failed program was:" >&5
8839 sed 's/^/| /' conftest.$ac_ext >&5
8840
8841 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8842 fi
8843
8844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8845 fi
8846
8847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8848 fi
8849 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8850 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8851 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8852
8853 cat >>confdefs.h <<_ACEOF
8854 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8855 _ACEOF
8856
8857
8858 fi
8859 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8860 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8861 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8862 $as_echo_n "(cached) " >&6
8863 else
8864 cat >conftest.$ac_ext <<_ACEOF
8865 /* confdefs.h. */
8866 _ACEOF
8867 cat confdefs.h >>conftest.$ac_ext
8868 cat >>conftest.$ac_ext <<_ACEOF
8869 /* end confdefs.h. */
8870 $ac_includes_default
8871 #if HAVE_SYS_SOCKET_H
8872 #include <sys/socket.h>
8873 #endif
8874 #if HAVE_NET_IF_H
8875 #include <net/if.h>
8876 #endif
8877
8878 int
8879 main ()
8880 {
8881 static struct ifreq ac_aggr;
8882 if (ac_aggr.ifr_addr)
8883 return 0;
8884 ;
8885 return 0;
8886 }
8887 _ACEOF
8888 rm -f conftest.$ac_objext
8889 if { (ac_try="$ac_compile"
8890 case "(($ac_try" in
8891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8892 *) ac_try_echo=$ac_try;;
8893 esac
8894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8895 $as_echo "$ac_try_echo") >&5
8896 (eval "$ac_compile") 2>conftest.er1
8897 ac_status=$?
8898 grep -v '^ *+' conftest.er1 >conftest.err
8899 rm -f conftest.er1
8900 cat conftest.err >&5
8901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); } && {
8903 test -z "$ac_c_werror_flag" ||
8904 test ! -s conftest.err
8905 } && test -s conftest.$ac_objext; then
8906 ac_cv_member_struct_ifreq_ifr_addr=yes
8907 else
8908 $as_echo "$as_me: failed program was:" >&5
8909 sed 's/^/| /' conftest.$ac_ext >&5
8910
8911 cat >conftest.$ac_ext <<_ACEOF
8912 /* confdefs.h. */
8913 _ACEOF
8914 cat confdefs.h >>conftest.$ac_ext
8915 cat >>conftest.$ac_ext <<_ACEOF
8916 /* end confdefs.h. */
8917 $ac_includes_default
8918 #if HAVE_SYS_SOCKET_H
8919 #include <sys/socket.h>
8920 #endif
8921 #if HAVE_NET_IF_H
8922 #include <net/if.h>
8923 #endif
8924
8925 int
8926 main ()
8927 {
8928 static struct ifreq ac_aggr;
8929 if (sizeof ac_aggr.ifr_addr)
8930 return 0;
8931 ;
8932 return 0;
8933 }
8934 _ACEOF
8935 rm -f conftest.$ac_objext
8936 if { (ac_try="$ac_compile"
8937 case "(($ac_try" in
8938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8939 *) ac_try_echo=$ac_try;;
8940 esac
8941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8942 $as_echo "$ac_try_echo") >&5
8943 (eval "$ac_compile") 2>conftest.er1
8944 ac_status=$?
8945 grep -v '^ *+' conftest.er1 >conftest.err
8946 rm -f conftest.er1
8947 cat conftest.err >&5
8948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); } && {
8950 test -z "$ac_c_werror_flag" ||
8951 test ! -s conftest.err
8952 } && test -s conftest.$ac_objext; then
8953 ac_cv_member_struct_ifreq_ifr_addr=yes
8954 else
8955 $as_echo "$as_me: failed program was:" >&5
8956 sed 's/^/| /' conftest.$ac_ext >&5
8957
8958 ac_cv_member_struct_ifreq_ifr_addr=no
8959 fi
8960
8961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8962 fi
8963
8964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8965 fi
8966 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8967 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8968 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8969
8970 cat >>confdefs.h <<_ACEOF
8971 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8972 _ACEOF
8973
8974
8975 fi
8976
8977
8978
8979 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
8980 $as_echo_n "checking for function prototypes... " >&6; }
8981 if test "$ac_cv_prog_cc_c89" != no; then
8982 { $as_echo "$as_me:$LINENO: result: yes" >&5
8983 $as_echo "yes" >&6; }
8984
8985 cat >>confdefs.h <<\_ACEOF
8986 #define PROTOTYPES 1
8987 _ACEOF
8988
8989
8990 cat >>confdefs.h <<\_ACEOF
8991 #define __PROTOTYPES 1
8992 _ACEOF
8993
8994 else
8995 { $as_echo "$as_me:$LINENO: result: no" >&5
8996 $as_echo "no" >&6; }
8997 fi
8998
8999 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
9000 $as_echo_n "checking for working volatile... " >&6; }
9001 if test "${ac_cv_c_volatile+set}" = set; then
9002 $as_echo_n "(cached) " >&6
9003 else
9004 cat >conftest.$ac_ext <<_ACEOF
9005 /* confdefs.h. */
9006 _ACEOF
9007 cat confdefs.h >>conftest.$ac_ext
9008 cat >>conftest.$ac_ext <<_ACEOF
9009 /* end confdefs.h. */
9010
9011 int
9012 main ()
9013 {
9014
9015 volatile int x;
9016 int * volatile y = (int *) 0;
9017 return !x && !y;
9018 ;
9019 return 0;
9020 }
9021 _ACEOF
9022 rm -f conftest.$ac_objext
9023 if { (ac_try="$ac_compile"
9024 case "(($ac_try" in
9025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9026 *) ac_try_echo=$ac_try;;
9027 esac
9028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9029 $as_echo "$ac_try_echo") >&5
9030 (eval "$ac_compile") 2>conftest.er1
9031 ac_status=$?
9032 grep -v '^ *+' conftest.er1 >conftest.err
9033 rm -f conftest.er1
9034 cat conftest.err >&5
9035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); } && {
9037 test -z "$ac_c_werror_flag" ||
9038 test ! -s conftest.err
9039 } && test -s conftest.$ac_objext; then
9040 ac_cv_c_volatile=yes
9041 else
9042 $as_echo "$as_me: failed program was:" >&5
9043 sed 's/^/| /' conftest.$ac_ext >&5
9044
9045 ac_cv_c_volatile=no
9046 fi
9047
9048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9049 fi
9050 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9051 $as_echo "$ac_cv_c_volatile" >&6; }
9052 if test $ac_cv_c_volatile = no; then
9053
9054 cat >>confdefs.h <<\_ACEOF
9055 #define volatile /**/
9056 _ACEOF
9057
9058 fi
9059
9060 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9061 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9062 if test "${ac_cv_c_const+set}" = set; then
9063 $as_echo_n "(cached) " >&6
9064 else
9065 cat >conftest.$ac_ext <<_ACEOF
9066 /* confdefs.h. */
9067 _ACEOF
9068 cat confdefs.h >>conftest.$ac_ext
9069 cat >>conftest.$ac_ext <<_ACEOF
9070 /* end confdefs.h. */
9071
9072 int
9073 main ()
9074 {
9075 /* FIXME: Include the comments suggested by Paul. */
9076 #ifndef __cplusplus
9077 /* Ultrix mips cc rejects this. */
9078 typedef int charset[2];
9079 const charset cs;
9080 /* SunOS 4.1.1 cc rejects this. */
9081 char const *const *pcpcc;
9082 char **ppc;
9083 /* NEC SVR4.0.2 mips cc rejects this. */
9084 struct point {int x, y;};
9085 static struct point const zero = {0,0};
9086 /* AIX XL C 1.02.0.0 rejects this.
9087 It does not let you subtract one const X* pointer from another in
9088 an arm of an if-expression whose if-part is not a constant
9089 expression */
9090 const char *g = "string";
9091 pcpcc = &g + (g ? g-g : 0);
9092 /* HPUX 7.0 cc rejects these. */
9093 ++pcpcc;
9094 ppc = (char**) pcpcc;
9095 pcpcc = (char const *const *) ppc;
9096 { /* SCO 3.2v4 cc rejects this. */
9097 char *t;
9098 char const *s = 0 ? (char *) 0 : (char const *) 0;
9099
9100 *t++ = 0;
9101 if (s) return 0;
9102 }
9103 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9104 int x[] = {25, 17};
9105 const int *foo = &x[0];
9106 ++foo;
9107 }
9108 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9109 typedef const int *iptr;
9110 iptr p = 0;
9111 ++p;
9112 }
9113 { /* AIX XL C 1.02.0.0 rejects this saying
9114 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9115 struct s { int j; const int *ap[3]; };
9116 struct s *b; b->j = 5;
9117 }
9118 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9119 const int foo = 10;
9120 if (!foo) return 0;
9121 }
9122 return !cs[0] && !zero.x;
9123 #endif
9124
9125 ;
9126 return 0;
9127 }
9128 _ACEOF
9129 rm -f conftest.$ac_objext
9130 if { (ac_try="$ac_compile"
9131 case "(($ac_try" in
9132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9133 *) ac_try_echo=$ac_try;;
9134 esac
9135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9136 $as_echo "$ac_try_echo") >&5
9137 (eval "$ac_compile") 2>conftest.er1
9138 ac_status=$?
9139 grep -v '^ *+' conftest.er1 >conftest.err
9140 rm -f conftest.er1
9141 cat conftest.err >&5
9142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); } && {
9144 test -z "$ac_c_werror_flag" ||
9145 test ! -s conftest.err
9146 } && test -s conftest.$ac_objext; then
9147 ac_cv_c_const=yes
9148 else
9149 $as_echo "$as_me: failed program was:" >&5
9150 sed 's/^/| /' conftest.$ac_ext >&5
9151
9152 ac_cv_c_const=no
9153 fi
9154
9155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9156 fi
9157 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9158 $as_echo "$ac_cv_c_const" >&6; }
9159 if test $ac_cv_c_const = no; then
9160
9161 cat >>confdefs.h <<\_ACEOF
9162 #define const /**/
9163 _ACEOF
9164
9165 fi
9166
9167 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9168 $as_echo_n "checking for void * support... " >&6; }
9169 if test "${emacs_cv_void_star+set}" = set; then
9170 $as_echo_n "(cached) " >&6
9171 else
9172 cat >conftest.$ac_ext <<_ACEOF
9173 /* confdefs.h. */
9174 _ACEOF
9175 cat confdefs.h >>conftest.$ac_ext
9176 cat >>conftest.$ac_ext <<_ACEOF
9177 /* end confdefs.h. */
9178
9179 int
9180 main ()
9181 {
9182 void * foo;
9183 ;
9184 return 0;
9185 }
9186 _ACEOF
9187 rm -f conftest.$ac_objext
9188 if { (ac_try="$ac_compile"
9189 case "(($ac_try" in
9190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9191 *) ac_try_echo=$ac_try;;
9192 esac
9193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9194 $as_echo "$ac_try_echo") >&5
9195 (eval "$ac_compile") 2>conftest.er1
9196 ac_status=$?
9197 grep -v '^ *+' conftest.er1 >conftest.err
9198 rm -f conftest.er1
9199 cat conftest.err >&5
9200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); } && {
9202 test -z "$ac_c_werror_flag" ||
9203 test ! -s conftest.err
9204 } && test -s conftest.$ac_objext; then
9205 emacs_cv_void_star=yes
9206 else
9207 $as_echo "$as_me: failed program was:" >&5
9208 sed 's/^/| /' conftest.$ac_ext >&5
9209
9210 emacs_cv_void_star=no
9211 fi
9212
9213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9214 fi
9215 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9216 $as_echo "$emacs_cv_void_star" >&6; }
9217 if test $emacs_cv_void_star = yes; then
9218 cat >>confdefs.h <<\_ACEOF
9219 #define POINTER_TYPE void
9220 _ACEOF
9221
9222 else
9223 cat >>confdefs.h <<\_ACEOF
9224 #define POINTER_TYPE char
9225 _ACEOF
9226
9227 fi
9228
9229
9230
9231
9232
9233 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9234 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9235 set x ${MAKE-make}
9236 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9237 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9238 $as_echo_n "(cached) " >&6
9239 else
9240 cat >conftest.make <<\_ACEOF
9241 SHELL = /bin/sh
9242 all:
9243 @echo '@@@%%%=$(MAKE)=@@@%%%'
9244 _ACEOF
9245 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9246 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9247 *@@@%%%=?*=@@@%%%*)
9248 eval ac_cv_prog_make_${ac_make}_set=yes;;
9249 *)
9250 eval ac_cv_prog_make_${ac_make}_set=no;;
9251 esac
9252 rm -f conftest.make
9253 fi
9254 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9255 { $as_echo "$as_me:$LINENO: result: yes" >&5
9256 $as_echo "yes" >&6; }
9257 SET_MAKE=
9258 else
9259 { $as_echo "$as_me:$LINENO: result: no" >&5
9260 $as_echo "no" >&6; }
9261 SET_MAKE="MAKE=${MAKE-make}"
9262 fi
9263
9264
9265 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9266 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9267 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9268 HAVE_GNU_MAKE=no
9269 testval=`make --version 2>/dev/null | grep 'GNU Make'`
9270 if test "x$testval" != x; then
9271 HAVE_GNU_MAKE=yes
9272 else
9273 ac_enable_autodepend=no
9274 fi
9275 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9276 $as_echo "$HAVE_GNU_MAKE" >&6; }
9277 if test $HAVE_GNU_MAKE = yes; then
9278 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9279 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9280 SAVE_CFLAGS="$CFLAGS"
9281 CFLAGS="$CFLAGS -MMD -MF deps.d"
9282 cat >conftest.$ac_ext <<_ACEOF
9283 /* confdefs.h. */
9284 _ACEOF
9285 cat confdefs.h >>conftest.$ac_ext
9286 cat >>conftest.$ac_ext <<_ACEOF
9287 /* end confdefs.h. */
9288
9289 int
9290 main ()
9291 {
9292
9293 ;
9294 return 0;
9295 }
9296 _ACEOF
9297 rm -f conftest.$ac_objext
9298 if { (ac_try="$ac_compile"
9299 case "(($ac_try" in
9300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9301 *) ac_try_echo=$ac_try;;
9302 esac
9303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9304 $as_echo "$ac_try_echo") >&5
9305 (eval "$ac_compile") 2>conftest.er1
9306 ac_status=$?
9307 grep -v '^ *+' conftest.er1 >conftest.err
9308 rm -f conftest.er1
9309 cat conftest.err >&5
9310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 (exit $ac_status); } && {
9312 test -z "$ac_c_werror_flag" ||
9313 test ! -s conftest.err
9314 } && test -s conftest.$ac_objext; then
9315 :
9316 else
9317 $as_echo "$as_me: failed program was:" >&5
9318 sed 's/^/| /' conftest.$ac_ext >&5
9319
9320 ac_enable_autodepend=no
9321 fi
9322
9323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9324 CFLAGS="$SAVE_CFLAGS"
9325 test -f deps.d || ac_enable_autodepend=no
9326 rm -rf deps.d
9327 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9328 $as_echo "$ac_enable_autodepend" >&6; }
9329 fi
9330 if test $ac_enable_autodepend = yes; then
9331
9332 cat >>confdefs.h <<\_ACEOF
9333 #define AUTO_DEPEND 1
9334 _ACEOF
9335
9336 fi
9337 fi
9338
9339 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9340 $as_echo_n "checking for long file names... " >&6; }
9341 if test "${ac_cv_sys_long_file_names+set}" = set; then
9342 $as_echo_n "(cached) " >&6
9343 else
9344 ac_cv_sys_long_file_names=yes
9345 # Test for long file names in all the places we know might matter:
9346 # . the current directory, where building will happen
9347 # $prefix/lib where we will be installing things
9348 # $exec_prefix/lib likewise
9349 # $TMPDIR if set, where it might want to write temporary files
9350 # /tmp where it might want to write temporary files
9351 # /var/tmp likewise
9352 # /usr/tmp likewise
9353 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9354 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9355 # in the usual case where exec_prefix is '${prefix}'.
9356 case $ac_dir in #(
9357 . | /* | ?:[\\/]*) ;; #(
9358 *) continue;;
9359 esac
9360 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9361 ac_xdir=$ac_dir/cf$$
9362 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9363 ac_tf1=$ac_xdir/conftest9012345
9364 ac_tf2=$ac_xdir/conftest9012346
9365 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9366 ac_cv_sys_long_file_names=no
9367 rm -f -r "$ac_xdir" 2>/dev/null
9368 test $ac_cv_sys_long_file_names = no && break
9369 done
9370 fi
9371 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9372 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9373 if test $ac_cv_sys_long_file_names = yes; then
9374
9375 cat >>confdefs.h <<\_ACEOF
9376 #define HAVE_LONG_FILE_NAMES 1
9377 _ACEOF
9378
9379 fi
9380
9381
9382 #### Choose a window system.
9383
9384 { $as_echo "$as_me:$LINENO: checking for X" >&5
9385 $as_echo_n "checking for X... " >&6; }
9386
9387
9388 # Check whether --with-x was given.
9389 if test "${with_x+set}" = set; then
9390 withval=$with_x;
9391 fi
9392
9393 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9394 if test "x$with_x" = xno; then
9395 # The user explicitly disabled X.
9396 have_x=disabled
9397 else
9398 case $x_includes,$x_libraries in #(
9399 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9400 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9401 { (exit 1); exit 1; }; };; #(
9402 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9403 $as_echo_n "(cached) " >&6
9404 else
9405 # One or both of the vars are not set, and there is no cached value.
9406 ac_x_includes=no ac_x_libraries=no
9407 rm -f -r conftest.dir
9408 if mkdir conftest.dir; then
9409 cd conftest.dir
9410 cat >Imakefile <<'_ACEOF'
9411 incroot:
9412 @echo incroot='${INCROOT}'
9413 usrlibdir:
9414 @echo usrlibdir='${USRLIBDIR}'
9415 libdir:
9416 @echo libdir='${LIBDIR}'
9417 _ACEOF
9418 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9419 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9420 for ac_var in incroot usrlibdir libdir; do
9421 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9422 done
9423 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9424 for ac_extension in a so sl dylib la dll; do
9425 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9426 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9427 ac_im_usrlibdir=$ac_im_libdir; break
9428 fi
9429 done
9430 # Screen out bogus values from the imake configuration. They are
9431 # bogus both because they are the default anyway, and because
9432 # using them would break gcc on systems where it needs fixed includes.
9433 case $ac_im_incroot in
9434 /usr/include) ac_x_includes= ;;
9435 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9436 esac
9437 case $ac_im_usrlibdir in
9438 /usr/lib | /lib) ;;
9439 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9440 esac
9441 fi
9442 cd ..
9443 rm -f -r conftest.dir
9444 fi
9445
9446 # Standard set of common directories for X headers.
9447 # Check X11 before X11Rn because it is often a symlink to the current release.
9448 ac_x_header_dirs='
9449 /usr/X11/include
9450 /usr/X11R6/include
9451 /usr/X11R5/include
9452 /usr/X11R4/include
9453
9454 /usr/include/X11
9455 /usr/include/X11R6
9456 /usr/include/X11R5
9457 /usr/include/X11R4
9458
9459 /usr/local/X11/include
9460 /usr/local/X11R6/include
9461 /usr/local/X11R5/include
9462 /usr/local/X11R4/include
9463
9464 /usr/local/include/X11
9465 /usr/local/include/X11R6
9466 /usr/local/include/X11R5
9467 /usr/local/include/X11R4
9468
9469 /usr/X386/include
9470 /usr/x386/include
9471 /usr/XFree86/include/X11
9472
9473 /usr/include
9474 /usr/local/include
9475 /usr/unsupported/include
9476 /usr/athena/include
9477 /usr/local/x11r5/include
9478 /usr/lpp/Xamples/include
9479
9480 /usr/openwin/include
9481 /usr/openwin/share/include'
9482
9483 if test "$ac_x_includes" = no; then
9484 # Guess where to find include files, by looking for Xlib.h.
9485 # First, try using that file with no special directory specified.
9486 cat >conftest.$ac_ext <<_ACEOF
9487 /* confdefs.h. */
9488 _ACEOF
9489 cat confdefs.h >>conftest.$ac_ext
9490 cat >>conftest.$ac_ext <<_ACEOF
9491 /* end confdefs.h. */
9492 #include <X11/Xlib.h>
9493 _ACEOF
9494 if { (ac_try="$ac_cpp conftest.$ac_ext"
9495 case "(($ac_try" in
9496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9497 *) ac_try_echo=$ac_try;;
9498 esac
9499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9500 $as_echo "$ac_try_echo") >&5
9501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9502 ac_status=$?
9503 grep -v '^ *+' conftest.er1 >conftest.err
9504 rm -f conftest.er1
9505 cat conftest.err >&5
9506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); } >/dev/null && {
9508 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9509 test ! -s conftest.err
9510 }; then
9511 # We can compile using X headers with no special include directory.
9512 ac_x_includes=
9513 else
9514 $as_echo "$as_me: failed program was:" >&5
9515 sed 's/^/| /' conftest.$ac_ext >&5
9516
9517 for ac_dir in $ac_x_header_dirs; do
9518 if test -r "$ac_dir/X11/Xlib.h"; then
9519 ac_x_includes=$ac_dir
9520 break
9521 fi
9522 done
9523 fi
9524
9525 rm -f conftest.err conftest.$ac_ext
9526 fi # $ac_x_includes = no
9527
9528 if test "$ac_x_libraries" = no; then
9529 # Check for the libraries.
9530 # See if we find them without any special options.
9531 # Don't add to $LIBS permanently.
9532 ac_save_LIBS=$LIBS
9533 LIBS="-lX11 $LIBS"
9534 cat >conftest.$ac_ext <<_ACEOF
9535 /* confdefs.h. */
9536 _ACEOF
9537 cat confdefs.h >>conftest.$ac_ext
9538 cat >>conftest.$ac_ext <<_ACEOF
9539 /* end confdefs.h. */
9540 #include <X11/Xlib.h>
9541 int
9542 main ()
9543 {
9544 XrmInitialize ()
9545 ;
9546 return 0;
9547 }
9548 _ACEOF
9549 rm -f conftest.$ac_objext conftest$ac_exeext
9550 if { (ac_try="$ac_link"
9551 case "(($ac_try" in
9552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9553 *) ac_try_echo=$ac_try;;
9554 esac
9555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9556 $as_echo "$ac_try_echo") >&5
9557 (eval "$ac_link") 2>conftest.er1
9558 ac_status=$?
9559 grep -v '^ *+' conftest.er1 >conftest.err
9560 rm -f conftest.er1
9561 cat conftest.err >&5
9562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); } && {
9564 test -z "$ac_c_werror_flag" ||
9565 test ! -s conftest.err
9566 } && test -s conftest$ac_exeext && {
9567 test "$cross_compiling" = yes ||
9568 $as_test_x conftest$ac_exeext
9569 }; then
9570 LIBS=$ac_save_LIBS
9571 # We can link X programs with no special library path.
9572 ac_x_libraries=
9573 else
9574 $as_echo "$as_me: failed program was:" >&5
9575 sed 's/^/| /' conftest.$ac_ext >&5
9576
9577 LIBS=$ac_save_LIBS
9578 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9579 do
9580 # Don't even attempt the hair of trying to link an X program!
9581 for ac_extension in a so sl dylib la dll; do
9582 if test -r "$ac_dir/libX11.$ac_extension"; then
9583 ac_x_libraries=$ac_dir
9584 break 2
9585 fi
9586 done
9587 done
9588 fi
9589
9590 rm -rf conftest.dSYM
9591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9592 conftest$ac_exeext conftest.$ac_ext
9593 fi # $ac_x_libraries = no
9594
9595 case $ac_x_includes,$ac_x_libraries in #(
9596 no,* | *,no | *\'*)
9597 # Didn't find X, or a directory has "'" in its name.
9598 ac_cv_have_x="have_x=no";; #(
9599 *)
9600 # Record where we found X for the cache.
9601 ac_cv_have_x="have_x=yes\
9602 ac_x_includes='$ac_x_includes'\
9603 ac_x_libraries='$ac_x_libraries'"
9604 esac
9605 fi
9606 ;; #(
9607 *) have_x=yes;;
9608 esac
9609 eval "$ac_cv_have_x"
9610 fi # $with_x != no
9611
9612 if test "$have_x" != yes; then
9613 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9614 $as_echo "$have_x" >&6; }
9615 no_x=yes
9616 else
9617 # If each of the values was on the command line, it overrides each guess.
9618 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9619 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9620 # Update the cache value to reflect the command line values.
9621 ac_cv_have_x="have_x=yes\
9622 ac_x_includes='$x_includes'\
9623 ac_x_libraries='$x_libraries'"
9624 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9625 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9626 fi
9627
9628 if test "$no_x" = yes; then
9629 window_system=none
9630 else
9631 window_system=x11
9632 fi
9633
9634 ## Workaround for bug in autoconf <= 2.62.
9635 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9636 ## No need to do anything special for these standard directories.
9637 ## This is an experiment, take it out if it causes problems.
9638 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9639
9640 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9641
9642 fi
9643
9644 if test "${x_libraries}" != NONE; then
9645 if test -n "${x_libraries}"; then
9646 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9647 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9648 fi
9649 x_default_search_path=""
9650 x_search_path=${x_libraries}
9651 if test -z "${x_search_path}"; then
9652 x_search_path=/usr/lib
9653 fi
9654 for x_library in `echo ${x_search_path}: | \
9655 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9656 x_search_path="\
9657 ${x_library}/X11/%L/%T/%N%C%S:\
9658 ${x_library}/X11/%l/%T/%N%C%S:\
9659 ${x_library}/X11/%T/%N%C%S:\
9660 ${x_library}/X11/%L/%T/%N%S:\
9661 ${x_library}/X11/%l/%T/%N%S:\
9662 ${x_library}/X11/%T/%N%S"
9663 if test x"${x_default_search_path}" = x; then
9664 x_default_search_path=${x_search_path}
9665 else
9666 x_default_search_path="${x_search_path}:${x_default_search_path}"
9667 fi
9668 done
9669 fi
9670 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9671 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9672 fi
9673
9674 if test x"${x_includes}" = x; then
9675 bitmapdir=/usr/include/X11/bitmaps
9676 else
9677 # accumulate include directories that have X11 bitmap subdirectories
9678 bmd_acc="dummyval"
9679 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9680 if test -d "${bmd}/X11/bitmaps"; then
9681 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9682 fi
9683 if test -d "${bmd}/bitmaps"; then
9684 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9685 fi
9686 done
9687 if test ${bmd_acc} != "dummyval"; then
9688 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9689 fi
9690 fi
9691
9692 HAVE_NS=no
9693 NS_IMPL_COCOA=no
9694 NS_IMPL_GNUSTEP=no
9695 tmp_CPPFLAGS="$CPPFLAGS"
9696 tmp_CFLAGS="$CFLAGS"
9697 CPPFLAGS="$CPPFLAGS -x objective-c"
9698 CFLAGS="$CFLAGS -x objective-c"
9699 if test "${with_ns}" != no; then
9700 if test "${opsys}" = darwin; then
9701 NS_IMPL_COCOA=yes
9702 ns_appdir=`pwd`/nextstep/Emacs.app
9703 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9704 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9705 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9706 elif test -f $GNUSTEP_CONFIG_FILE; then
9707 NS_IMPL_GNUSTEP=yes
9708 ns_appdir=`pwd`/nextstep/Emacs.app
9709 ns_appbindir=`pwd`/nextstep/Emacs.app
9710 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9711 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9712 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9713 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9714 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9715 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9716 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9717 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9718 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9719 fi
9720 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9721 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9722 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9723 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9724 $as_echo_n "(cached) " >&6
9725 fi
9726 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9727 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9728 else
9729 # Is the header compilable?
9730 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9731 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9732 cat >conftest.$ac_ext <<_ACEOF
9733 /* confdefs.h. */
9734 _ACEOF
9735 cat confdefs.h >>conftest.$ac_ext
9736 cat >>conftest.$ac_ext <<_ACEOF
9737 /* end confdefs.h. */
9738 $ac_includes_default
9739 #include <AppKit/AppKit.h>
9740 _ACEOF
9741 rm -f conftest.$ac_objext
9742 if { (ac_try="$ac_compile"
9743 case "(($ac_try" in
9744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9745 *) ac_try_echo=$ac_try;;
9746 esac
9747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9748 $as_echo "$ac_try_echo") >&5
9749 (eval "$ac_compile") 2>conftest.er1
9750 ac_status=$?
9751 grep -v '^ *+' conftest.er1 >conftest.err
9752 rm -f conftest.er1
9753 cat conftest.err >&5
9754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); } && {
9756 test -z "$ac_c_werror_flag" ||
9757 test ! -s conftest.err
9758 } && test -s conftest.$ac_objext; then
9759 ac_header_compiler=yes
9760 else
9761 $as_echo "$as_me: failed program was:" >&5
9762 sed 's/^/| /' conftest.$ac_ext >&5
9763
9764 ac_header_compiler=no
9765 fi
9766
9767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9768 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9769 $as_echo "$ac_header_compiler" >&6; }
9770
9771 # Is the header present?
9772 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9773 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9774 cat >conftest.$ac_ext <<_ACEOF
9775 /* confdefs.h. */
9776 _ACEOF
9777 cat confdefs.h >>conftest.$ac_ext
9778 cat >>conftest.$ac_ext <<_ACEOF
9779 /* end confdefs.h. */
9780 #include <AppKit/AppKit.h>
9781 _ACEOF
9782 if { (ac_try="$ac_cpp conftest.$ac_ext"
9783 case "(($ac_try" in
9784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9785 *) ac_try_echo=$ac_try;;
9786 esac
9787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9788 $as_echo "$ac_try_echo") >&5
9789 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9790 ac_status=$?
9791 grep -v '^ *+' conftest.er1 >conftest.err
9792 rm -f conftest.er1
9793 cat conftest.err >&5
9794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } >/dev/null && {
9796 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9797 test ! -s conftest.err
9798 }; then
9799 ac_header_preproc=yes
9800 else
9801 $as_echo "$as_me: failed program was:" >&5
9802 sed 's/^/| /' conftest.$ac_ext >&5
9803
9804 ac_header_preproc=no
9805 fi
9806
9807 rm -f conftest.err conftest.$ac_ext
9808 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9809 $as_echo "$ac_header_preproc" >&6; }
9810
9811 # So? What about this header?
9812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9813 yes:no: )
9814 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9815 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9816 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9817 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9818 ac_header_preproc=yes
9819 ;;
9820 no:yes:* )
9821 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9822 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9823 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9824 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9825 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9826 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9827 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9828 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9829 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9830 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9831 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9832 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9833
9834 ;;
9835 esac
9836 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9837 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9838 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9839 $as_echo_n "(cached) " >&6
9840 else
9841 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9842 fi
9843 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9844 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9845
9846 fi
9847 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9848 HAVE_NS=yes
9849 else
9850 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9851 files are missing or cannot be compiled." >&5
9852 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
9853 files are missing or cannot be compiled." >&2;}
9854 { (exit 1); exit 1; }; }
9855 fi
9856
9857
9858 NS_HAVE_NSINTEGER=yes
9859 cat >conftest.$ac_ext <<_ACEOF
9860 /* confdefs.h. */
9861 _ACEOF
9862 cat confdefs.h >>conftest.$ac_ext
9863 cat >>conftest.$ac_ext <<_ACEOF
9864 /* end confdefs.h. */
9865 #include <Foundation/NSObjCRuntime.h>
9866 int
9867 main ()
9868 {
9869 NSInteger i;
9870 ;
9871 return 0;
9872 }
9873 _ACEOF
9874 rm -f conftest.$ac_objext
9875 if { (ac_try="$ac_compile"
9876 case "(($ac_try" in
9877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878 *) ac_try_echo=$ac_try;;
9879 esac
9880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9881 $as_echo "$ac_try_echo") >&5
9882 (eval "$ac_compile") 2>conftest.er1
9883 ac_status=$?
9884 grep -v '^ *+' conftest.er1 >conftest.err
9885 rm -f conftest.er1
9886 cat conftest.err >&5
9887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); } && {
9889 test -z "$ac_c_werror_flag" ||
9890 test ! -s conftest.err
9891 } && test -s conftest.$ac_objext; then
9892 ns_have_nsinteger=yes
9893 else
9894 $as_echo "$as_me: failed program was:" >&5
9895 sed 's/^/| /' conftest.$ac_ext >&5
9896
9897 ns_have_nsinteger=no
9898 fi
9899
9900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9901 if test $ns_have_nsinteger = no; then
9902 NS_HAVE_NSINTEGER=no
9903 fi
9904 fi
9905 if test "${HAVE_NS}" = yes; then
9906 window_system=nextstep
9907 with_xft=no
9908 # set up packaging dirs
9909 exec_prefix=${ns_appbindir}
9910 libexecdir=${ns_appbindir}/libexec
9911 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9912 prefix=${ns_appresdir}
9913 fi
9914 fi
9915 CFLAGS="$tmp_CFLAGS"
9916 CPPFLAGS="$tmp_CPPFLAGS"
9917
9918 case "${window_system}" in
9919 x11 )
9920 HAVE_X_WINDOWS=yes
9921 HAVE_X11=yes
9922 case "${with_x_toolkit}" in
9923 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9924 motif ) USE_X_TOOLKIT=MOTIF ;;
9925 gtk ) with_gtk=yes
9926 USE_X_TOOLKIT=none ;;
9927 no ) USE_X_TOOLKIT=none ;;
9928 * ) USE_X_TOOLKIT=maybe ;;
9929 esac
9930 ;;
9931 nextstep | none )
9932 HAVE_X_WINDOWS=no
9933 HAVE_X11=no
9934 USE_X_TOOLKIT=none
9935 ;;
9936 esac
9937
9938 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9939 # Extract the first word of "X", so it can be a program name with args.
9940 set dummy X; ac_word=$2
9941 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9942 $as_echo_n "checking for $ac_word... " >&6; }
9943 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9944 $as_echo_n "(cached) " >&6
9945 else
9946 if test -n "$HAVE_XSERVER"; then
9947 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9948 else
9949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9950 for as_dir in $PATH
9951 do
9952 IFS=$as_save_IFS
9953 test -z "$as_dir" && as_dir=.
9954 for ac_exec_ext in '' $ac_executable_extensions; do
9955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9956 ac_cv_prog_HAVE_XSERVER="true"
9957 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9958 break 2
9959 fi
9960 done
9961 done
9962 IFS=$as_save_IFS
9963
9964 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9965 fi
9966 fi
9967 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9968 if test -n "$HAVE_XSERVER"; then
9969 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9970 $as_echo "$HAVE_XSERVER" >&6; }
9971 else
9972 { $as_echo "$as_me:$LINENO: result: no" >&5
9973 $as_echo "no" >&6; }
9974 fi
9975
9976
9977 if test "$HAVE_XSERVER" = true ||
9978 test -n "$DISPLAY" ||
9979 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9980 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9981 were found. You should install the relevant development files for X
9982 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9983 sure you have development files for image handling, i.e.
9984 tiff, gif, jpeg, png and xpm.
9985 If you are sure you want Emacs compiled without X window support, pass
9986 --without-x
9987 to configure." >&5
9988 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
9989 were found. You should install the relevant development files for X
9990 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9991 sure you have development files for image handling, i.e.
9992 tiff, gif, jpeg, png and xpm.
9993 If you are sure you want Emacs compiled without X window support, pass
9994 --without-x
9995 to configure." >&2;}
9996 { (exit 1); exit 1; }; }
9997 fi
9998 fi
9999
10000 ### If we're using X11, we should use the X menu package.
10001 HAVE_MENUS=no
10002 case ${HAVE_X11} in
10003 yes ) HAVE_MENUS=yes ;;
10004 esac
10005
10006 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10007 # Assume not, until told otherwise.
10008 GNU_MALLOC=yes
10009 doug_lea_malloc=yes
10010 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
10011 $as_echo_n "checking for malloc_get_state... " >&6; }
10012 if test "${ac_cv_func_malloc_get_state+set}" = set; then
10013 $as_echo_n "(cached) " >&6
10014 else
10015 cat >conftest.$ac_ext <<_ACEOF
10016 /* confdefs.h. */
10017 _ACEOF
10018 cat confdefs.h >>conftest.$ac_ext
10019 cat >>conftest.$ac_ext <<_ACEOF
10020 /* end confdefs.h. */
10021 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10023 #define malloc_get_state innocuous_malloc_get_state
10024
10025 /* System header to define __stub macros and hopefully few prototypes,
10026 which can conflict with char malloc_get_state (); below.
10027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10028 <limits.h> exists even on freestanding compilers. */
10029
10030 #ifdef __STDC__
10031 # include <limits.h>
10032 #else
10033 # include <assert.h>
10034 #endif
10035
10036 #undef malloc_get_state
10037
10038 /* Override any GCC internal prototype to avoid an error.
10039 Use char because int might match the return type of a GCC
10040 builtin and then its argument prototype would still apply. */
10041 #ifdef __cplusplus
10042 extern "C"
10043 #endif
10044 char malloc_get_state ();
10045 /* The GNU C library defines this for functions which it implements
10046 to always fail with ENOSYS. Some functions are actually named
10047 something starting with __ and the normal name is an alias. */
10048 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10049 choke me
10050 #endif
10051
10052 int
10053 main ()
10054 {
10055 return malloc_get_state ();
10056 ;
10057 return 0;
10058 }
10059 _ACEOF
10060 rm -f conftest.$ac_objext conftest$ac_exeext
10061 if { (ac_try="$ac_link"
10062 case "(($ac_try" in
10063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10064 *) ac_try_echo=$ac_try;;
10065 esac
10066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10067 $as_echo "$ac_try_echo") >&5
10068 (eval "$ac_link") 2>conftest.er1
10069 ac_status=$?
10070 grep -v '^ *+' conftest.er1 >conftest.err
10071 rm -f conftest.er1
10072 cat conftest.err >&5
10073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); } && {
10075 test -z "$ac_c_werror_flag" ||
10076 test ! -s conftest.err
10077 } && test -s conftest$ac_exeext && {
10078 test "$cross_compiling" = yes ||
10079 $as_test_x conftest$ac_exeext
10080 }; then
10081 ac_cv_func_malloc_get_state=yes
10082 else
10083 $as_echo "$as_me: failed program was:" >&5
10084 sed 's/^/| /' conftest.$ac_ext >&5
10085
10086 ac_cv_func_malloc_get_state=no
10087 fi
10088
10089 rm -rf conftest.dSYM
10090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10091 conftest$ac_exeext conftest.$ac_ext
10092 fi
10093 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10094 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10095 if test $ac_cv_func_malloc_get_state = yes; then
10096 :
10097 else
10098 doug_lea_malloc=no
10099 fi
10100
10101 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10102 $as_echo_n "checking for malloc_set_state... " >&6; }
10103 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10104 $as_echo_n "(cached) " >&6
10105 else
10106 cat >conftest.$ac_ext <<_ACEOF
10107 /* confdefs.h. */
10108 _ACEOF
10109 cat confdefs.h >>conftest.$ac_ext
10110 cat >>conftest.$ac_ext <<_ACEOF
10111 /* end confdefs.h. */
10112 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10114 #define malloc_set_state innocuous_malloc_set_state
10115
10116 /* System header to define __stub macros and hopefully few prototypes,
10117 which can conflict with char malloc_set_state (); below.
10118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10119 <limits.h> exists even on freestanding compilers. */
10120
10121 #ifdef __STDC__
10122 # include <limits.h>
10123 #else
10124 # include <assert.h>
10125 #endif
10126
10127 #undef malloc_set_state
10128
10129 /* Override any GCC internal prototype to avoid an error.
10130 Use char because int might match the return type of a GCC
10131 builtin and then its argument prototype would still apply. */
10132 #ifdef __cplusplus
10133 extern "C"
10134 #endif
10135 char malloc_set_state ();
10136 /* The GNU C library defines this for functions which it implements
10137 to always fail with ENOSYS. Some functions are actually named
10138 something starting with __ and the normal name is an alias. */
10139 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10140 choke me
10141 #endif
10142
10143 int
10144 main ()
10145 {
10146 return malloc_set_state ();
10147 ;
10148 return 0;
10149 }
10150 _ACEOF
10151 rm -f conftest.$ac_objext conftest$ac_exeext
10152 if { (ac_try="$ac_link"
10153 case "(($ac_try" in
10154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10155 *) ac_try_echo=$ac_try;;
10156 esac
10157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10158 $as_echo "$ac_try_echo") >&5
10159 (eval "$ac_link") 2>conftest.er1
10160 ac_status=$?
10161 grep -v '^ *+' conftest.er1 >conftest.err
10162 rm -f conftest.er1
10163 cat conftest.err >&5
10164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); } && {
10166 test -z "$ac_c_werror_flag" ||
10167 test ! -s conftest.err
10168 } && test -s conftest$ac_exeext && {
10169 test "$cross_compiling" = yes ||
10170 $as_test_x conftest$ac_exeext
10171 }; then
10172 ac_cv_func_malloc_set_state=yes
10173 else
10174 $as_echo "$as_me: failed program was:" >&5
10175 sed 's/^/| /' conftest.$ac_ext >&5
10176
10177 ac_cv_func_malloc_set_state=no
10178 fi
10179
10180 rm -rf conftest.dSYM
10181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10182 conftest$ac_exeext conftest.$ac_ext
10183 fi
10184 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10185 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10186 if test $ac_cv_func_malloc_set_state = yes; then
10187 :
10188 else
10189 doug_lea_malloc=no
10190 fi
10191
10192 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10193 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10194 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10195 $as_echo_n "(cached) " >&6
10196 else
10197 cat >conftest.$ac_ext <<_ACEOF
10198 /* confdefs.h. */
10199 _ACEOF
10200 cat confdefs.h >>conftest.$ac_ext
10201 cat >>conftest.$ac_ext <<_ACEOF
10202 /* end confdefs.h. */
10203 extern void (* __after_morecore_hook)();
10204 int
10205 main ()
10206 {
10207 __after_morecore_hook = 0
10208 ;
10209 return 0;
10210 }
10211 _ACEOF
10212 rm -f conftest.$ac_objext conftest$ac_exeext
10213 if { (ac_try="$ac_link"
10214 case "(($ac_try" in
10215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10216 *) ac_try_echo=$ac_try;;
10217 esac
10218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10219 $as_echo "$ac_try_echo") >&5
10220 (eval "$ac_link") 2>conftest.er1
10221 ac_status=$?
10222 grep -v '^ *+' conftest.er1 >conftest.err
10223 rm -f conftest.er1
10224 cat conftest.err >&5
10225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); } && {
10227 test -z "$ac_c_werror_flag" ||
10228 test ! -s conftest.err
10229 } && test -s conftest$ac_exeext && {
10230 test "$cross_compiling" = yes ||
10231 $as_test_x conftest$ac_exeext
10232 }; then
10233 emacs_cv_var___after_morecore_hook=yes
10234 else
10235 $as_echo "$as_me: failed program was:" >&5
10236 sed 's/^/| /' conftest.$ac_ext >&5
10237
10238 emacs_cv_var___after_morecore_hook=no
10239 fi
10240
10241 rm -rf conftest.dSYM
10242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10243 conftest$ac_exeext conftest.$ac_ext
10244 fi
10245 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10246 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10247 if test $emacs_cv_var___after_morecore_hook = no; then
10248 doug_lea_malloc=no
10249 fi
10250 if test "${system_malloc}" = "yes"; then
10251 GNU_MALLOC=no
10252 GNU_MALLOC_reason="
10253 (The GNU allocators don't work with this system configuration.)"
10254 fi
10255 if test "$doug_lea_malloc" = "yes" ; then
10256 if test "$GNU_MALLOC" = yes ; then
10257 GNU_MALLOC_reason="
10258 (Using Doug Lea's new malloc from the GNU C Library.)"
10259 fi
10260
10261 cat >>confdefs.h <<\_ACEOF
10262 #define DOUG_LEA_MALLOC 1
10263 _ACEOF
10264
10265 fi
10266
10267 if test x"${REL_ALLOC}" = x; then
10268 REL_ALLOC=${GNU_MALLOC}
10269 fi
10270
10271
10272
10273
10274 for ac_header in stdlib.h unistd.h
10275 do
10276 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10278 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10279 $as_echo_n "checking for $ac_header... " >&6; }
10280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10281 $as_echo_n "(cached) " >&6
10282 fi
10283 ac_res=`eval 'as_val=${'$as_ac_Header'}
10284 $as_echo "$as_val"'`
10285 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10286 $as_echo "$ac_res" >&6; }
10287 else
10288 # Is the header compilable?
10289 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10290 $as_echo_n "checking $ac_header usability... " >&6; }
10291 cat >conftest.$ac_ext <<_ACEOF
10292 /* confdefs.h. */
10293 _ACEOF
10294 cat confdefs.h >>conftest.$ac_ext
10295 cat >>conftest.$ac_ext <<_ACEOF
10296 /* end confdefs.h. */
10297 $ac_includes_default
10298 #include <$ac_header>
10299 _ACEOF
10300 rm -f conftest.$ac_objext
10301 if { (ac_try="$ac_compile"
10302 case "(($ac_try" in
10303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10304 *) ac_try_echo=$ac_try;;
10305 esac
10306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10307 $as_echo "$ac_try_echo") >&5
10308 (eval "$ac_compile") 2>conftest.er1
10309 ac_status=$?
10310 grep -v '^ *+' conftest.er1 >conftest.err
10311 rm -f conftest.er1
10312 cat conftest.err >&5
10313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); } && {
10315 test -z "$ac_c_werror_flag" ||
10316 test ! -s conftest.err
10317 } && test -s conftest.$ac_objext; then
10318 ac_header_compiler=yes
10319 else
10320 $as_echo "$as_me: failed program was:" >&5
10321 sed 's/^/| /' conftest.$ac_ext >&5
10322
10323 ac_header_compiler=no
10324 fi
10325
10326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10327 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10328 $as_echo "$ac_header_compiler" >&6; }
10329
10330 # Is the header present?
10331 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10332 $as_echo_n "checking $ac_header presence... " >&6; }
10333 cat >conftest.$ac_ext <<_ACEOF
10334 /* confdefs.h. */
10335 _ACEOF
10336 cat confdefs.h >>conftest.$ac_ext
10337 cat >>conftest.$ac_ext <<_ACEOF
10338 /* end confdefs.h. */
10339 #include <$ac_header>
10340 _ACEOF
10341 if { (ac_try="$ac_cpp conftest.$ac_ext"
10342 case "(($ac_try" in
10343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10344 *) ac_try_echo=$ac_try;;
10345 esac
10346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10347 $as_echo "$ac_try_echo") >&5
10348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10349 ac_status=$?
10350 grep -v '^ *+' conftest.er1 >conftest.err
10351 rm -f conftest.er1
10352 cat conftest.err >&5
10353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); } >/dev/null && {
10355 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10356 test ! -s conftest.err
10357 }; then
10358 ac_header_preproc=yes
10359 else
10360 $as_echo "$as_me: failed program was:" >&5
10361 sed 's/^/| /' conftest.$ac_ext >&5
10362
10363 ac_header_preproc=no
10364 fi
10365
10366 rm -f conftest.err conftest.$ac_ext
10367 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10368 $as_echo "$ac_header_preproc" >&6; }
10369
10370 # So? What about this header?
10371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10372 yes:no: )
10373 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10374 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10375 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10376 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10377 ac_header_preproc=yes
10378 ;;
10379 no:yes:* )
10380 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10381 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10382 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10383 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10384 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10385 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10386 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10387 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10388 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10389 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10390 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10391 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10392
10393 ;;
10394 esac
10395 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10396 $as_echo_n "checking for $ac_header... " >&6; }
10397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10398 $as_echo_n "(cached) " >&6
10399 else
10400 eval "$as_ac_Header=\$ac_header_preproc"
10401 fi
10402 ac_res=`eval 'as_val=${'$as_ac_Header'}
10403 $as_echo "$as_val"'`
10404 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10405 $as_echo "$ac_res" >&6; }
10406
10407 fi
10408 if test `eval 'as_val=${'$as_ac_Header'}
10409 $as_echo "$as_val"'` = yes; then
10410 cat >>confdefs.h <<_ACEOF
10411 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10412 _ACEOF
10413
10414 fi
10415
10416 done
10417
10418
10419 for ac_func in getpagesize
10420 do
10421 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10422 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10423 $as_echo_n "checking for $ac_func... " >&6; }
10424 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10425 $as_echo_n "(cached) " >&6
10426 else
10427 cat >conftest.$ac_ext <<_ACEOF
10428 /* confdefs.h. */
10429 _ACEOF
10430 cat confdefs.h >>conftest.$ac_ext
10431 cat >>conftest.$ac_ext <<_ACEOF
10432 /* end confdefs.h. */
10433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10435 #define $ac_func innocuous_$ac_func
10436
10437 /* System header to define __stub macros and hopefully few prototypes,
10438 which can conflict with char $ac_func (); below.
10439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10440 <limits.h> exists even on freestanding compilers. */
10441
10442 #ifdef __STDC__
10443 # include <limits.h>
10444 #else
10445 # include <assert.h>
10446 #endif
10447
10448 #undef $ac_func
10449
10450 /* Override any GCC internal prototype to avoid an error.
10451 Use char because int might match the return type of a GCC
10452 builtin and then its argument prototype would still apply. */
10453 #ifdef __cplusplus
10454 extern "C"
10455 #endif
10456 char $ac_func ();
10457 /* The GNU C library defines this for functions which it implements
10458 to always fail with ENOSYS. Some functions are actually named
10459 something starting with __ and the normal name is an alias. */
10460 #if defined __stub_$ac_func || defined __stub___$ac_func
10461 choke me
10462 #endif
10463
10464 int
10465 main ()
10466 {
10467 return $ac_func ();
10468 ;
10469 return 0;
10470 }
10471 _ACEOF
10472 rm -f conftest.$ac_objext conftest$ac_exeext
10473 if { (ac_try="$ac_link"
10474 case "(($ac_try" in
10475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10476 *) ac_try_echo=$ac_try;;
10477 esac
10478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10479 $as_echo "$ac_try_echo") >&5
10480 (eval "$ac_link") 2>conftest.er1
10481 ac_status=$?
10482 grep -v '^ *+' conftest.er1 >conftest.err
10483 rm -f conftest.er1
10484 cat conftest.err >&5
10485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); } && {
10487 test -z "$ac_c_werror_flag" ||
10488 test ! -s conftest.err
10489 } && test -s conftest$ac_exeext && {
10490 test "$cross_compiling" = yes ||
10491 $as_test_x conftest$ac_exeext
10492 }; then
10493 eval "$as_ac_var=yes"
10494 else
10495 $as_echo "$as_me: failed program was:" >&5
10496 sed 's/^/| /' conftest.$ac_ext >&5
10497
10498 eval "$as_ac_var=no"
10499 fi
10500
10501 rm -rf conftest.dSYM
10502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10503 conftest$ac_exeext conftest.$ac_ext
10504 fi
10505 ac_res=`eval 'as_val=${'$as_ac_var'}
10506 $as_echo "$as_val"'`
10507 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10508 $as_echo "$ac_res" >&6; }
10509 if test `eval 'as_val=${'$as_ac_var'}
10510 $as_echo "$as_val"'` = yes; then
10511 cat >>confdefs.h <<_ACEOF
10512 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10513 _ACEOF
10514
10515 fi
10516 done
10517
10518 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10519 $as_echo_n "checking for working mmap... " >&6; }
10520 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10521 $as_echo_n "(cached) " >&6
10522 else
10523 if test "$cross_compiling" = yes; then
10524 ac_cv_func_mmap_fixed_mapped=no
10525 else
10526 cat >conftest.$ac_ext <<_ACEOF
10527 /* confdefs.h. */
10528 _ACEOF
10529 cat confdefs.h >>conftest.$ac_ext
10530 cat >>conftest.$ac_ext <<_ACEOF
10531 /* end confdefs.h. */
10532 $ac_includes_default
10533 /* malloc might have been renamed as rpl_malloc. */
10534 #undef malloc
10535
10536 /* Thanks to Mike Haertel and Jim Avera for this test.
10537 Here is a matrix of mmap possibilities:
10538 mmap private not fixed
10539 mmap private fixed at somewhere currently unmapped
10540 mmap private fixed at somewhere already mapped
10541 mmap shared not fixed
10542 mmap shared fixed at somewhere currently unmapped
10543 mmap shared fixed at somewhere already mapped
10544 For private mappings, we should verify that changes cannot be read()
10545 back from the file, nor mmap's back from the file at a different
10546 address. (There have been systems where private was not correctly
10547 implemented like the infamous i386 svr4.0, and systems where the
10548 VM page cache was not coherent with the file system buffer cache
10549 like early versions of FreeBSD and possibly contemporary NetBSD.)
10550 For shared mappings, we should conversely verify that changes get
10551 propagated back to all the places they're supposed to be.
10552
10553 Grep wants private fixed already mapped.
10554 The main things grep needs to know about mmap are:
10555 * does it exist and is it safe to write into the mmap'd area
10556 * how to use it (BSD variants) */
10557
10558 #include <fcntl.h>
10559 #include <sys/mman.h>
10560
10561 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10562 char *malloc ();
10563 #endif
10564
10565 /* This mess was copied from the GNU getpagesize.h. */
10566 #ifndef HAVE_GETPAGESIZE
10567 /* Assume that all systems that can run configure have sys/param.h. */
10568 # ifndef HAVE_SYS_PARAM_H
10569 # define HAVE_SYS_PARAM_H 1
10570 # endif
10571
10572 # ifdef _SC_PAGESIZE
10573 # define getpagesize() sysconf(_SC_PAGESIZE)
10574 # else /* no _SC_PAGESIZE */
10575 # ifdef HAVE_SYS_PARAM_H
10576 # include <sys/param.h>
10577 # ifdef EXEC_PAGESIZE
10578 # define getpagesize() EXEC_PAGESIZE
10579 # else /* no EXEC_PAGESIZE */
10580 # ifdef NBPG
10581 # define getpagesize() NBPG * CLSIZE
10582 # ifndef CLSIZE
10583 # define CLSIZE 1
10584 # endif /* no CLSIZE */
10585 # else /* no NBPG */
10586 # ifdef NBPC
10587 # define getpagesize() NBPC
10588 # else /* no NBPC */
10589 # ifdef PAGESIZE
10590 # define getpagesize() PAGESIZE
10591 # endif /* PAGESIZE */
10592 # endif /* no NBPC */
10593 # endif /* no NBPG */
10594 # endif /* no EXEC_PAGESIZE */
10595 # else /* no HAVE_SYS_PARAM_H */
10596 # define getpagesize() 8192 /* punt totally */
10597 # endif /* no HAVE_SYS_PARAM_H */
10598 # endif /* no _SC_PAGESIZE */
10599
10600 #endif /* no HAVE_GETPAGESIZE */
10601
10602 int
10603 main ()
10604 {
10605 char *data, *data2, *data3;
10606 int i, pagesize;
10607 int fd;
10608
10609 pagesize = getpagesize ();
10610
10611 /* First, make a file with some known garbage in it. */
10612 data = (char *) malloc (pagesize);
10613 if (!data)
10614 return 1;
10615 for (i = 0; i < pagesize; ++i)
10616 *(data + i) = rand ();
10617 umask (0);
10618 fd = creat ("conftest.mmap", 0600);
10619 if (fd < 0)
10620 return 1;
10621 if (write (fd, data, pagesize) != pagesize)
10622 return 1;
10623 close (fd);
10624
10625 /* Next, try to mmap the file at a fixed address which already has
10626 something else allocated at it. If we can, also make sure that
10627 we see the same garbage. */
10628 fd = open ("conftest.mmap", O_RDWR);
10629 if (fd < 0)
10630 return 1;
10631 data2 = (char *) malloc (2 * pagesize);
10632 if (!data2)
10633 return 1;
10634 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10635 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10636 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10637 return 1;
10638 for (i = 0; i < pagesize; ++i)
10639 if (*(data + i) != *(data2 + i))
10640 return 1;
10641
10642 /* Finally, make sure that changes to the mapped area do not
10643 percolate back to the file as seen by read(). (This is a bug on
10644 some variants of i386 svr4.0.) */
10645 for (i = 0; i < pagesize; ++i)
10646 *(data2 + i) = *(data2 + i) + 1;
10647 data3 = (char *) malloc (pagesize);
10648 if (!data3)
10649 return 1;
10650 if (read (fd, data3, pagesize) != pagesize)
10651 return 1;
10652 for (i = 0; i < pagesize; ++i)
10653 if (*(data + i) != *(data3 + i))
10654 return 1;
10655 close (fd);
10656 return 0;
10657 }
10658 _ACEOF
10659 rm -f conftest$ac_exeext
10660 if { (ac_try="$ac_link"
10661 case "(($ac_try" in
10662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10663 *) ac_try_echo=$ac_try;;
10664 esac
10665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10666 $as_echo "$ac_try_echo") >&5
10667 (eval "$ac_link") 2>&5
10668 ac_status=$?
10669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10671 { (case "(($ac_try" in
10672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10673 *) ac_try_echo=$ac_try;;
10674 esac
10675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10676 $as_echo "$ac_try_echo") >&5
10677 (eval "$ac_try") 2>&5
10678 ac_status=$?
10679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); }; }; then
10681 ac_cv_func_mmap_fixed_mapped=yes
10682 else
10683 $as_echo "$as_me: program exited with status $ac_status" >&5
10684 $as_echo "$as_me: failed program was:" >&5
10685 sed 's/^/| /' conftest.$ac_ext >&5
10686
10687 ( exit $ac_status )
10688 ac_cv_func_mmap_fixed_mapped=no
10689 fi
10690 rm -rf conftest.dSYM
10691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10692 fi
10693
10694
10695 fi
10696 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10697 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10698 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10699
10700 cat >>confdefs.h <<\_ACEOF
10701 #define HAVE_MMAP 1
10702 _ACEOF
10703
10704 fi
10705 rm -f conftest.mmap
10706
10707 if test $use_mmap_for_buffers = yes; then
10708 REL_ALLOC=no
10709 fi
10710
10711 LIBS="$libsrc_libs $LIBS"
10712
10713
10714 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10715 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10716 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10717 $as_echo_n "(cached) " >&6
10718 else
10719 ac_check_lib_save_LIBS=$LIBS
10720 LIBS="-ldnet $LIBS"
10721 cat >conftest.$ac_ext <<_ACEOF
10722 /* confdefs.h. */
10723 _ACEOF
10724 cat confdefs.h >>conftest.$ac_ext
10725 cat >>conftest.$ac_ext <<_ACEOF
10726 /* end confdefs.h. */
10727
10728 /* Override any GCC internal prototype to avoid an error.
10729 Use char because int might match the return type of a GCC
10730 builtin and then its argument prototype would still apply. */
10731 #ifdef __cplusplus
10732 extern "C"
10733 #endif
10734 char dnet_ntoa ();
10735 int
10736 main ()
10737 {
10738 return dnet_ntoa ();
10739 ;
10740 return 0;
10741 }
10742 _ACEOF
10743 rm -f conftest.$ac_objext conftest$ac_exeext
10744 if { (ac_try="$ac_link"
10745 case "(($ac_try" in
10746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10747 *) ac_try_echo=$ac_try;;
10748 esac
10749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10750 $as_echo "$ac_try_echo") >&5
10751 (eval "$ac_link") 2>conftest.er1
10752 ac_status=$?
10753 grep -v '^ *+' conftest.er1 >conftest.err
10754 rm -f conftest.er1
10755 cat conftest.err >&5
10756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); } && {
10758 test -z "$ac_c_werror_flag" ||
10759 test ! -s conftest.err
10760 } && test -s conftest$ac_exeext && {
10761 test "$cross_compiling" = yes ||
10762 $as_test_x conftest$ac_exeext
10763 }; then
10764 ac_cv_lib_dnet_dnet_ntoa=yes
10765 else
10766 $as_echo "$as_me: failed program was:" >&5
10767 sed 's/^/| /' conftest.$ac_ext >&5
10768
10769 ac_cv_lib_dnet_dnet_ntoa=no
10770 fi
10771
10772 rm -rf conftest.dSYM
10773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10774 conftest$ac_exeext conftest.$ac_ext
10775 LIBS=$ac_check_lib_save_LIBS
10776 fi
10777 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10778 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10779 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10780 cat >>confdefs.h <<_ACEOF
10781 #define HAVE_LIBDNET 1
10782 _ACEOF
10783
10784 LIBS="-ldnet $LIBS"
10785
10786 fi
10787
10788
10789 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10790 $as_echo_n "checking for main in -lXbsd... " >&6; }
10791 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10792 $as_echo_n "(cached) " >&6
10793 else
10794 ac_check_lib_save_LIBS=$LIBS
10795 LIBS="-lXbsd $LIBS"
10796 cat >conftest.$ac_ext <<_ACEOF
10797 /* confdefs.h. */
10798 _ACEOF
10799 cat confdefs.h >>conftest.$ac_ext
10800 cat >>conftest.$ac_ext <<_ACEOF
10801 /* end confdefs.h. */
10802
10803
10804 int
10805 main ()
10806 {
10807 return main ();
10808 ;
10809 return 0;
10810 }
10811 _ACEOF
10812 rm -f conftest.$ac_objext conftest$ac_exeext
10813 if { (ac_try="$ac_link"
10814 case "(($ac_try" in
10815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10816 *) ac_try_echo=$ac_try;;
10817 esac
10818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10819 $as_echo "$ac_try_echo") >&5
10820 (eval "$ac_link") 2>conftest.er1
10821 ac_status=$?
10822 grep -v '^ *+' conftest.er1 >conftest.err
10823 rm -f conftest.er1
10824 cat conftest.err >&5
10825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); } && {
10827 test -z "$ac_c_werror_flag" ||
10828 test ! -s conftest.err
10829 } && test -s conftest$ac_exeext && {
10830 test "$cross_compiling" = yes ||
10831 $as_test_x conftest$ac_exeext
10832 }; then
10833 ac_cv_lib_Xbsd_main=yes
10834 else
10835 $as_echo "$as_me: failed program was:" >&5
10836 sed 's/^/| /' conftest.$ac_ext >&5
10837
10838 ac_cv_lib_Xbsd_main=no
10839 fi
10840
10841 rm -rf conftest.dSYM
10842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10843 conftest$ac_exeext conftest.$ac_ext
10844 LIBS=$ac_check_lib_save_LIBS
10845 fi
10846 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10847 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10848 if test $ac_cv_lib_Xbsd_main = yes; then
10849 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10850 fi
10851
10852
10853
10854 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10855 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10856 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10857 $as_echo_n "(cached) " >&6
10858 else
10859 ac_check_lib_save_LIBS=$LIBS
10860 LIBS="-lpthreads $LIBS"
10861 cat >conftest.$ac_ext <<_ACEOF
10862 /* confdefs.h. */
10863 _ACEOF
10864 cat confdefs.h >>conftest.$ac_ext
10865 cat >>conftest.$ac_ext <<_ACEOF
10866 /* end confdefs.h. */
10867
10868 /* Override any GCC internal prototype to avoid an error.
10869 Use char because int might match the return type of a GCC
10870 builtin and then its argument prototype would still apply. */
10871 #ifdef __cplusplus
10872 extern "C"
10873 #endif
10874 char cma_open ();
10875 int
10876 main ()
10877 {
10878 return cma_open ();
10879 ;
10880 return 0;
10881 }
10882 _ACEOF
10883 rm -f conftest.$ac_objext conftest$ac_exeext
10884 if { (ac_try="$ac_link"
10885 case "(($ac_try" in
10886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10887 *) ac_try_echo=$ac_try;;
10888 esac
10889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10890 $as_echo "$ac_try_echo") >&5
10891 (eval "$ac_link") 2>conftest.er1
10892 ac_status=$?
10893 grep -v '^ *+' conftest.er1 >conftest.err
10894 rm -f conftest.er1
10895 cat conftest.err >&5
10896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); } && {
10898 test -z "$ac_c_werror_flag" ||
10899 test ! -s conftest.err
10900 } && test -s conftest$ac_exeext && {
10901 test "$cross_compiling" = yes ||
10902 $as_test_x conftest$ac_exeext
10903 }; then
10904 ac_cv_lib_pthreads_cma_open=yes
10905 else
10906 $as_echo "$as_me: failed program was:" >&5
10907 sed 's/^/| /' conftest.$ac_ext >&5
10908
10909 ac_cv_lib_pthreads_cma_open=no
10910 fi
10911
10912 rm -rf conftest.dSYM
10913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10914 conftest$ac_exeext conftest.$ac_ext
10915 LIBS=$ac_check_lib_save_LIBS
10916 fi
10917 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10918 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10919 if test $ac_cv_lib_pthreads_cma_open = yes; then
10920 cat >>confdefs.h <<_ACEOF
10921 #define HAVE_LIBPTHREADS 1
10922 _ACEOF
10923
10924 LIBS="-lpthreads $LIBS"
10925
10926 fi
10927
10928
10929
10930 case ${host_os} in
10931 aix*)
10932 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10933 $as_echo_n "checking for -bbigtoc option... " >&6; }
10934 if test "${gdb_cv_bigtoc+set}" = set; then
10935 $as_echo_n "(cached) " >&6
10936 else
10937
10938 case $GCC in
10939 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10940 *) gdb_cv_bigtoc=-bbigtoc ;;
10941 esac
10942
10943 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10944 cat >conftest.$ac_ext <<_ACEOF
10945 /* confdefs.h. */
10946 _ACEOF
10947 cat confdefs.h >>conftest.$ac_ext
10948 cat >>conftest.$ac_ext <<_ACEOF
10949 /* end confdefs.h. */
10950
10951 int
10952 main ()
10953 {
10954 int i;
10955 ;
10956 return 0;
10957 }
10958 _ACEOF
10959 rm -f conftest.$ac_objext conftest$ac_exeext
10960 if { (ac_try="$ac_link"
10961 case "(($ac_try" in
10962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963 *) ac_try_echo=$ac_try;;
10964 esac
10965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10966 $as_echo "$ac_try_echo") >&5
10967 (eval "$ac_link") 2>conftest.er1
10968 ac_status=$?
10969 grep -v '^ *+' conftest.er1 >conftest.err
10970 rm -f conftest.er1
10971 cat conftest.err >&5
10972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); } && {
10974 test -z "$ac_c_werror_flag" ||
10975 test ! -s conftest.err
10976 } && test -s conftest$ac_exeext && {
10977 test "$cross_compiling" = yes ||
10978 $as_test_x conftest$ac_exeext
10979 }; then
10980 :
10981 else
10982 $as_echo "$as_me: failed program was:" >&5
10983 sed 's/^/| /' conftest.$ac_ext >&5
10984
10985 gdb_cv_bigtoc=
10986 fi
10987
10988 rm -rf conftest.dSYM
10989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10990 conftest$ac_exeext conftest.$ac_ext
10991
10992 fi
10993 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10994 $as_echo "$gdb_cv_bigtoc" >&6; }
10995 ;;
10996 esac
10997
10998 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10999 # used for the tests that follow. We set them back to REAL_CFLAGS and
11000 # REAL_CPPFLAGS later on.
11001
11002 REAL_CPPFLAGS="$CPPFLAGS"
11003
11004 if test "${HAVE_X11}" = "yes"; then
11005 DEFS="$C_SWITCH_X_SITE $DEFS"
11006 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11007 LIBS="$LIBX $LIBS"
11008 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11009 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11010
11011 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11012 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
11013 # but it's more convenient here to set LD_RUN_PATH
11014 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11015 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11016 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11017 export LD_RUN_PATH
11018 fi
11019
11020 if test "${opsys}" = "gnu-linux"; then
11021 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
11022 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11023 cat >conftest.$ac_ext <<_ACEOF
11024 /* confdefs.h. */
11025 _ACEOF
11026 cat confdefs.h >>conftest.$ac_ext
11027 cat >>conftest.$ac_ext <<_ACEOF
11028 /* end confdefs.h. */
11029
11030 int
11031 main ()
11032 {
11033 XOpenDisplay ("foo");
11034 ;
11035 return 0;
11036 }
11037 _ACEOF
11038 rm -f conftest.$ac_objext conftest$ac_exeext
11039 if { (ac_try="$ac_link"
11040 case "(($ac_try" in
11041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11042 *) ac_try_echo=$ac_try;;
11043 esac
11044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11045 $as_echo "$ac_try_echo") >&5
11046 (eval "$ac_link") 2>conftest.er1
11047 ac_status=$?
11048 grep -v '^ *+' conftest.er1 >conftest.err
11049 rm -f conftest.er1
11050 cat conftest.err >&5
11051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); } && {
11053 test -z "$ac_c_werror_flag" ||
11054 test ! -s conftest.err
11055 } && test -s conftest$ac_exeext && {
11056 test "$cross_compiling" = yes ||
11057 $as_test_x conftest$ac_exeext
11058 }; then
11059 xlinux_first_failure=no
11060 else
11061 $as_echo "$as_me: failed program was:" >&5
11062 sed 's/^/| /' conftest.$ac_ext >&5
11063
11064 xlinux_first_failure=yes
11065 fi
11066
11067 rm -rf conftest.dSYM
11068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11069 conftest$ac_exeext conftest.$ac_ext
11070 if test "${xlinux_first_failure}" = "yes"; then
11071 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11072 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
11073 OLD_CPPFLAGS="$CPPFLAGS"
11074 OLD_LIBS="$LIBS"
11075 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
11076 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
11077 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
11078 LIBS="$LIBS -b i486-linuxaout"
11079 cat >conftest.$ac_ext <<_ACEOF
11080 /* confdefs.h. */
11081 _ACEOF
11082 cat confdefs.h >>conftest.$ac_ext
11083 cat >>conftest.$ac_ext <<_ACEOF
11084 /* end confdefs.h. */
11085
11086 int
11087 main ()
11088 {
11089 XOpenDisplay ("foo");
11090 ;
11091 return 0;
11092 }
11093 _ACEOF
11094 rm -f conftest.$ac_objext conftest$ac_exeext
11095 if { (ac_try="$ac_link"
11096 case "(($ac_try" in
11097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11098 *) ac_try_echo=$ac_try;;
11099 esac
11100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11101 $as_echo "$ac_try_echo") >&5
11102 (eval "$ac_link") 2>conftest.er1
11103 ac_status=$?
11104 grep -v '^ *+' conftest.er1 >conftest.err
11105 rm -f conftest.er1
11106 cat conftest.err >&5
11107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); } && {
11109 test -z "$ac_c_werror_flag" ||
11110 test ! -s conftest.err
11111 } && test -s conftest$ac_exeext && {
11112 test "$cross_compiling" = yes ||
11113 $as_test_x conftest$ac_exeext
11114 }; then
11115 xlinux_second_failure=no
11116 else
11117 $as_echo "$as_me: failed program was:" >&5
11118 sed 's/^/| /' conftest.$ac_ext >&5
11119
11120 xlinux_second_failure=yes
11121 fi
11122
11123 rm -rf conftest.dSYM
11124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11125 conftest$ac_exeext conftest.$ac_ext
11126 if test "${xlinux_second_failure}" = "yes"; then
11127 # If we get the same failure with -b, there is no use adding -b.
11128 # So take it out. This plays safe.
11129 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11130 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11131 CPPFLAGS="$OLD_CPPFLAGS"
11132 LIBS="$OLD_LIBS"
11133 { $as_echo "$as_me:$LINENO: result: no" >&5
11134 $as_echo "no" >&6; }
11135 else
11136 { $as_echo "$as_me:$LINENO: result: yes" >&5
11137 $as_echo "yes" >&6; }
11138 fi
11139 else
11140 { $as_echo "$as_me:$LINENO: result: no" >&5
11141 $as_echo "no" >&6; }
11142 fi
11143 fi
11144
11145 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11146 # header files included from there.
11147 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11148 $as_echo_n "checking for Xkb... " >&6; }
11149 cat >conftest.$ac_ext <<_ACEOF
11150 /* confdefs.h. */
11151 _ACEOF
11152 cat confdefs.h >>conftest.$ac_ext
11153 cat >>conftest.$ac_ext <<_ACEOF
11154 /* end confdefs.h. */
11155 #include <X11/Xlib.h>
11156 #include <X11/XKBlib.h>
11157 int
11158 main ()
11159 {
11160 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11161 ;
11162 return 0;
11163 }
11164 _ACEOF
11165 rm -f conftest.$ac_objext conftest$ac_exeext
11166 if { (ac_try="$ac_link"
11167 case "(($ac_try" in
11168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11169 *) ac_try_echo=$ac_try;;
11170 esac
11171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11172 $as_echo "$ac_try_echo") >&5
11173 (eval "$ac_link") 2>conftest.er1
11174 ac_status=$?
11175 grep -v '^ *+' conftest.er1 >conftest.err
11176 rm -f conftest.er1
11177 cat conftest.err >&5
11178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); } && {
11180 test -z "$ac_c_werror_flag" ||
11181 test ! -s conftest.err
11182 } && test -s conftest$ac_exeext && {
11183 test "$cross_compiling" = yes ||
11184 $as_test_x conftest$ac_exeext
11185 }; then
11186 emacs_xkb=yes
11187 else
11188 $as_echo "$as_me: failed program was:" >&5
11189 sed 's/^/| /' conftest.$ac_ext >&5
11190
11191 emacs_xkb=no
11192 fi
11193
11194 rm -rf conftest.dSYM
11195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11196 conftest$ac_exeext conftest.$ac_ext
11197 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11198 $as_echo "$emacs_xkb" >&6; }
11199 if test $emacs_xkb = yes; then
11200
11201 cat >>confdefs.h <<\_ACEOF
11202 #define HAVE_XKBGETKEYBOARD 1
11203 _ACEOF
11204
11205 fi
11206
11207
11208
11209
11210
11211 for ac_func in XrmSetDatabase XScreenResourceString \
11212 XScreenNumberOfScreen XSetWMProtocols
11213 do
11214 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11215 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11216 $as_echo_n "checking for $ac_func... " >&6; }
11217 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11218 $as_echo_n "(cached) " >&6
11219 else
11220 cat >conftest.$ac_ext <<_ACEOF
11221 /* confdefs.h. */
11222 _ACEOF
11223 cat confdefs.h >>conftest.$ac_ext
11224 cat >>conftest.$ac_ext <<_ACEOF
11225 /* end confdefs.h. */
11226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11228 #define $ac_func innocuous_$ac_func
11229
11230 /* System header to define __stub macros and hopefully few prototypes,
11231 which can conflict with char $ac_func (); below.
11232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11233 <limits.h> exists even on freestanding compilers. */
11234
11235 #ifdef __STDC__
11236 # include <limits.h>
11237 #else
11238 # include <assert.h>
11239 #endif
11240
11241 #undef $ac_func
11242
11243 /* Override any GCC internal prototype to avoid an error.
11244 Use char because int might match the return type of a GCC
11245 builtin and then its argument prototype would still apply. */
11246 #ifdef __cplusplus
11247 extern "C"
11248 #endif
11249 char $ac_func ();
11250 /* The GNU C library defines this for functions which it implements
11251 to always fail with ENOSYS. Some functions are actually named
11252 something starting with __ and the normal name is an alias. */
11253 #if defined __stub_$ac_func || defined __stub___$ac_func
11254 choke me
11255 #endif
11256
11257 int
11258 main ()
11259 {
11260 return $ac_func ();
11261 ;
11262 return 0;
11263 }
11264 _ACEOF
11265 rm -f conftest.$ac_objext conftest$ac_exeext
11266 if { (ac_try="$ac_link"
11267 case "(($ac_try" in
11268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269 *) ac_try_echo=$ac_try;;
11270 esac
11271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11272 $as_echo "$ac_try_echo") >&5
11273 (eval "$ac_link") 2>conftest.er1
11274 ac_status=$?
11275 grep -v '^ *+' conftest.er1 >conftest.err
11276 rm -f conftest.er1
11277 cat conftest.err >&5
11278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); } && {
11280 test -z "$ac_c_werror_flag" ||
11281 test ! -s conftest.err
11282 } && test -s conftest$ac_exeext && {
11283 test "$cross_compiling" = yes ||
11284 $as_test_x conftest$ac_exeext
11285 }; then
11286 eval "$as_ac_var=yes"
11287 else
11288 $as_echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.$ac_ext >&5
11290
11291 eval "$as_ac_var=no"
11292 fi
11293
11294 rm -rf conftest.dSYM
11295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11296 conftest$ac_exeext conftest.$ac_ext
11297 fi
11298 ac_res=`eval 'as_val=${'$as_ac_var'}
11299 $as_echo "$as_val"'`
11300 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11301 $as_echo "$ac_res" >&6; }
11302 if test `eval 'as_val=${'$as_ac_var'}
11303 $as_echo "$as_val"'` = yes; then
11304 cat >>confdefs.h <<_ACEOF
11305 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11306 _ACEOF
11307
11308 fi
11309 done
11310
11311 fi
11312
11313 if test "${window_system}" = "x11"; then
11314 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11315 $as_echo_n "checking X11 version 6... " >&6; }
11316 if test "${emacs_cv_x11_version_6+set}" = set; then
11317 $as_echo_n "(cached) " >&6
11318 else
11319 cat >conftest.$ac_ext <<_ACEOF
11320 /* confdefs.h. */
11321 _ACEOF
11322 cat confdefs.h >>conftest.$ac_ext
11323 cat >>conftest.$ac_ext <<_ACEOF
11324 /* end confdefs.h. */
11325 #include <X11/Xlib.h>
11326 int
11327 main ()
11328 {
11329 #if XlibSpecificationRelease < 6
11330 fail;
11331 #endif
11332
11333 ;
11334 return 0;
11335 }
11336 _ACEOF
11337 rm -f conftest.$ac_objext conftest$ac_exeext
11338 if { (ac_try="$ac_link"
11339 case "(($ac_try" in
11340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11341 *) ac_try_echo=$ac_try;;
11342 esac
11343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11344 $as_echo "$ac_try_echo") >&5
11345 (eval "$ac_link") 2>conftest.er1
11346 ac_status=$?
11347 grep -v '^ *+' conftest.er1 >conftest.err
11348 rm -f conftest.er1
11349 cat conftest.err >&5
11350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); } && {
11352 test -z "$ac_c_werror_flag" ||
11353 test ! -s conftest.err
11354 } && test -s conftest$ac_exeext && {
11355 test "$cross_compiling" = yes ||
11356 $as_test_x conftest$ac_exeext
11357 }; then
11358 emacs_cv_x11_version_6=yes
11359 else
11360 $as_echo "$as_me: failed program was:" >&5
11361 sed 's/^/| /' conftest.$ac_ext >&5
11362
11363 emacs_cv_x11_version_6=no
11364 fi
11365
11366 rm -rf conftest.dSYM
11367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11368 conftest$ac_exeext conftest.$ac_ext
11369 fi
11370
11371 if test $emacs_cv_x11_version_6 = yes; then
11372 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11373 $as_echo "6 or newer" >&6; }
11374
11375 cat >>confdefs.h <<\_ACEOF
11376 #define HAVE_X11R6 1
11377 _ACEOF
11378
11379 else
11380 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11381 $as_echo "before 6" >&6; }
11382 fi
11383 fi
11384
11385
11386 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11387 HAVE_RSVG=no
11388 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
11389 if test "${with_rsvg}" != "no"; then
11390 RSVG_REQUIRED=2.11.0
11391 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11392
11393
11394 succeeded=no
11395
11396 # Extract the first word of "pkg-config", so it can be a program name with args.
11397 set dummy pkg-config; ac_word=$2
11398 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11399 $as_echo_n "checking for $ac_word... " >&6; }
11400 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11401 $as_echo_n "(cached) " >&6
11402 else
11403 case $PKG_CONFIG in
11404 [\\/]* | ?:[\\/]*)
11405 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11406 ;;
11407 *)
11408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11409 for as_dir in $PATH
11410 do
11411 IFS=$as_save_IFS
11412 test -z "$as_dir" && as_dir=.
11413 for ac_exec_ext in '' $ac_executable_extensions; do
11414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11415 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11416 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11417 break 2
11418 fi
11419 done
11420 done
11421 IFS=$as_save_IFS
11422
11423 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11424 ;;
11425 esac
11426 fi
11427 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11428 if test -n "$PKG_CONFIG"; then
11429 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11430 $as_echo "$PKG_CONFIG" >&6; }
11431 else
11432 { $as_echo "$as_me:$LINENO: result: no" >&5
11433 $as_echo "no" >&6; }
11434 fi
11435
11436
11437
11438 if test "$PKG_CONFIG" = "no" ; then
11439 :
11440 else
11441 PKG_CONFIG_MIN_VERSION=0.9.0
11442 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11443 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11444 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11445
11446 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11447 { $as_echo "$as_me:$LINENO: result: yes" >&5
11448 $as_echo "yes" >&6; }
11449 succeeded=yes
11450
11451 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11452 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11453 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11454 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11455 $as_echo "$RSVG_CFLAGS" >&6; }
11456
11457 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11458 $as_echo_n "checking RSVG_LIBS... " >&6; }
11459 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11460 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11461 $as_echo "$RSVG_LIBS" >&6; }
11462 else
11463 { $as_echo "$as_me:$LINENO: result: no" >&5
11464 $as_echo "no" >&6; }
11465 RSVG_CFLAGS=""
11466 RSVG_LIBS=""
11467 ## If we have a custom action on failure, don't print errors, but
11468 ## do set a variable so people can do so.
11469 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11470
11471 fi
11472
11473
11474
11475 else
11476 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11477 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11478 fi
11479 fi
11480
11481 if test $succeeded = yes; then
11482 :
11483 else
11484 :
11485 fi
11486
11487
11488
11489
11490 if test ".${RSVG_CFLAGS}" != "."; then
11491 HAVE_RSVG=yes
11492
11493 cat >>confdefs.h <<\_ACEOF
11494 #define HAVE_RSVG 1
11495 _ACEOF
11496
11497 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11498 LIBS="$RSVG_LIBS $LIBS"
11499 fi
11500 fi
11501 fi
11502
11503
11504 HAVE_GTK=no
11505 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11506 GLIB_REQUIRED=2.6
11507 GTK_REQUIRED=2.6
11508 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11509
11510
11511 succeeded=no
11512
11513 # Extract the first word of "pkg-config", so it can be a program name with args.
11514 set dummy pkg-config; ac_word=$2
11515 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11516 $as_echo_n "checking for $ac_word... " >&6; }
11517 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11518 $as_echo_n "(cached) " >&6
11519 else
11520 case $PKG_CONFIG in
11521 [\\/]* | ?:[\\/]*)
11522 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11523 ;;
11524 *)
11525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11526 for as_dir in $PATH
11527 do
11528 IFS=$as_save_IFS
11529 test -z "$as_dir" && as_dir=.
11530 for ac_exec_ext in '' $ac_executable_extensions; do
11531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11532 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11533 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11534 break 2
11535 fi
11536 done
11537 done
11538 IFS=$as_save_IFS
11539
11540 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11541 ;;
11542 esac
11543 fi
11544 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11545 if test -n "$PKG_CONFIG"; then
11546 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11547 $as_echo "$PKG_CONFIG" >&6; }
11548 else
11549 { $as_echo "$as_me:$LINENO: result: no" >&5
11550 $as_echo "no" >&6; }
11551 fi
11552
11553
11554
11555 if test "$PKG_CONFIG" = "no" ; then
11556 pkg_check_gtk=no
11557 else
11558 PKG_CONFIG_MIN_VERSION=0.9.0
11559 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11560 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11561 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11562
11563 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11564 { $as_echo "$as_me:$LINENO: result: yes" >&5
11565 $as_echo "yes" >&6; }
11566 succeeded=yes
11567
11568 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11569 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11570 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11571 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11572 $as_echo "$GTK_CFLAGS" >&6; }
11573
11574 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11575 $as_echo_n "checking GTK_LIBS... " >&6; }
11576 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11577 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11578 $as_echo "$GTK_LIBS" >&6; }
11579 else
11580 { $as_echo "$as_me:$LINENO: result: no" >&5
11581 $as_echo "no" >&6; }
11582 GTK_CFLAGS=""
11583 GTK_LIBS=""
11584 ## If we have a custom action on failure, don't print errors, but
11585 ## do set a variable so people can do so.
11586 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11587
11588 fi
11589
11590
11591
11592 else
11593 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11594 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11595 fi
11596 fi
11597
11598 if test $succeeded = yes; then
11599 pkg_check_gtk=yes
11600 else
11601 pkg_check_gtk=no
11602 fi
11603
11604 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11605 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11606 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11607 { (exit 1); exit 1; }; }
11608 fi
11609 fi
11610
11611
11612 GTK_OBJ=
11613 if test x"$pkg_check_gtk" = xyes; then
11614
11615
11616
11617 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11618 CFLAGS="$CFLAGS $GTK_CFLAGS"
11619 LIBS="$GTK_LIBS $LIBS"
11620 GTK_COMPILES=no
11621
11622 for ac_func in gtk_main
11623 do
11624 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11625 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11626 $as_echo_n "checking for $ac_func... " >&6; }
11627 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11628 $as_echo_n "(cached) " >&6
11629 else
11630 cat >conftest.$ac_ext <<_ACEOF
11631 /* confdefs.h. */
11632 _ACEOF
11633 cat confdefs.h >>conftest.$ac_ext
11634 cat >>conftest.$ac_ext <<_ACEOF
11635 /* end confdefs.h. */
11636 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11638 #define $ac_func innocuous_$ac_func
11639
11640 /* System header to define __stub macros and hopefully few prototypes,
11641 which can conflict with char $ac_func (); below.
11642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11643 <limits.h> exists even on freestanding compilers. */
11644
11645 #ifdef __STDC__
11646 # include <limits.h>
11647 #else
11648 # include <assert.h>
11649 #endif
11650
11651 #undef $ac_func
11652
11653 /* Override any GCC internal prototype to avoid an error.
11654 Use char because int might match the return type of a GCC
11655 builtin and then its argument prototype would still apply. */
11656 #ifdef __cplusplus
11657 extern "C"
11658 #endif
11659 char $ac_func ();
11660 /* The GNU C library defines this for functions which it implements
11661 to always fail with ENOSYS. Some functions are actually named
11662 something starting with __ and the normal name is an alias. */
11663 #if defined __stub_$ac_func || defined __stub___$ac_func
11664 choke me
11665 #endif
11666
11667 int
11668 main ()
11669 {
11670 return $ac_func ();
11671 ;
11672 return 0;
11673 }
11674 _ACEOF
11675 rm -f conftest.$ac_objext conftest$ac_exeext
11676 if { (ac_try="$ac_link"
11677 case "(($ac_try" in
11678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11679 *) ac_try_echo=$ac_try;;
11680 esac
11681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11682 $as_echo "$ac_try_echo") >&5
11683 (eval "$ac_link") 2>conftest.er1
11684 ac_status=$?
11685 grep -v '^ *+' conftest.er1 >conftest.err
11686 rm -f conftest.er1
11687 cat conftest.err >&5
11688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); } && {
11690 test -z "$ac_c_werror_flag" ||
11691 test ! -s conftest.err
11692 } && test -s conftest$ac_exeext && {
11693 test "$cross_compiling" = yes ||
11694 $as_test_x conftest$ac_exeext
11695 }; then
11696 eval "$as_ac_var=yes"
11697 else
11698 $as_echo "$as_me: failed program was:" >&5
11699 sed 's/^/| /' conftest.$ac_ext >&5
11700
11701 eval "$as_ac_var=no"
11702 fi
11703
11704 rm -rf conftest.dSYM
11705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11706 conftest$ac_exeext conftest.$ac_ext
11707 fi
11708 ac_res=`eval 'as_val=${'$as_ac_var'}
11709 $as_echo "$as_val"'`
11710 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11711 $as_echo "$ac_res" >&6; }
11712 if test `eval 'as_val=${'$as_ac_var'}
11713 $as_echo "$as_val"'` = yes; then
11714 cat >>confdefs.h <<_ACEOF
11715 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11716 _ACEOF
11717 GTK_COMPILES=yes
11718 fi
11719 done
11720
11721 if test "${GTK_COMPILES}" != "yes"; then
11722 if test "$USE_X_TOOLKIT" != "maybe"; then
11723 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11724 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11725 { (exit 1); exit 1; }; };
11726 fi
11727 else
11728 HAVE_GTK=yes
11729
11730 cat >>confdefs.h <<\_ACEOF
11731 #define USE_GTK 1
11732 _ACEOF
11733
11734 GTK_OBJ=gtkutil.o
11735 USE_X_TOOLKIT=none
11736 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11737 :
11738 else
11739 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11740 closing open displays. This is no problem if you just use
11741 one display, but if you use more than one and close one of them
11742 Emacs may crash." >&5
11743 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11744 closing open displays. This is no problem if you just use
11745 one display, but if you use more than one and close one of them
11746 Emacs may crash." >&2;}
11747 sleep 3
11748 fi
11749 fi
11750
11751 fi
11752
11753
11754
11755 if test "${HAVE_GTK}" = "yes"; then
11756
11757 if test "$with_toolkit_scroll_bars" != no; then
11758 with_toolkit_scroll_bars=yes
11759 fi
11760
11761 HAVE_GTK_MULTIDISPLAY=no
11762
11763 for ac_func in gdk_display_open
11764 do
11765 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11766 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11767 $as_echo_n "checking for $ac_func... " >&6; }
11768 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11769 $as_echo_n "(cached) " >&6
11770 else
11771 cat >conftest.$ac_ext <<_ACEOF
11772 /* confdefs.h. */
11773 _ACEOF
11774 cat confdefs.h >>conftest.$ac_ext
11775 cat >>conftest.$ac_ext <<_ACEOF
11776 /* end confdefs.h. */
11777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11779 #define $ac_func innocuous_$ac_func
11780
11781 /* System header to define __stub macros and hopefully few prototypes,
11782 which can conflict with char $ac_func (); below.
11783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11784 <limits.h> exists even on freestanding compilers. */
11785
11786 #ifdef __STDC__
11787 # include <limits.h>
11788 #else
11789 # include <assert.h>
11790 #endif
11791
11792 #undef $ac_func
11793
11794 /* Override any GCC internal prototype to avoid an error.
11795 Use char because int might match the return type of a GCC
11796 builtin and then its argument prototype would still apply. */
11797 #ifdef __cplusplus
11798 extern "C"
11799 #endif
11800 char $ac_func ();
11801 /* The GNU C library defines this for functions which it implements
11802 to always fail with ENOSYS. Some functions are actually named
11803 something starting with __ and the normal name is an alias. */
11804 #if defined __stub_$ac_func || defined __stub___$ac_func
11805 choke me
11806 #endif
11807
11808 int
11809 main ()
11810 {
11811 return $ac_func ();
11812 ;
11813 return 0;
11814 }
11815 _ACEOF
11816 rm -f conftest.$ac_objext conftest$ac_exeext
11817 if { (ac_try="$ac_link"
11818 case "(($ac_try" in
11819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11820 *) ac_try_echo=$ac_try;;
11821 esac
11822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11823 $as_echo "$ac_try_echo") >&5
11824 (eval "$ac_link") 2>conftest.er1
11825 ac_status=$?
11826 grep -v '^ *+' conftest.er1 >conftest.err
11827 rm -f conftest.er1
11828 cat conftest.err >&5
11829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); } && {
11831 test -z "$ac_c_werror_flag" ||
11832 test ! -s conftest.err
11833 } && test -s conftest$ac_exeext && {
11834 test "$cross_compiling" = yes ||
11835 $as_test_x conftest$ac_exeext
11836 }; then
11837 eval "$as_ac_var=yes"
11838 else
11839 $as_echo "$as_me: failed program was:" >&5
11840 sed 's/^/| /' conftest.$ac_ext >&5
11841
11842 eval "$as_ac_var=no"
11843 fi
11844
11845 rm -rf conftest.dSYM
11846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11847 conftest$ac_exeext conftest.$ac_ext
11848 fi
11849 ac_res=`eval 'as_val=${'$as_ac_var'}
11850 $as_echo "$as_val"'`
11851 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11852 $as_echo "$ac_res" >&6; }
11853 if test `eval 'as_val=${'$as_ac_var'}
11854 $as_echo "$as_val"'` = yes; then
11855 cat >>confdefs.h <<_ACEOF
11856 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11857 _ACEOF
11858 HAVE_GTK_MULTIDISPLAY=yes
11859 fi
11860 done
11861
11862 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11863
11864 cat >>confdefs.h <<\_ACEOF
11865 #define HAVE_GTK_MULTIDISPLAY 1
11866 _ACEOF
11867
11868 fi
11869
11870 HAVE_GTK_FILE_SELECTION=no
11871 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
11872 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
11873 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11874 $as_echo_n "(cached) " >&6
11875 else
11876 cat >conftest.$ac_ext <<_ACEOF
11877 /* confdefs.h. */
11878 _ACEOF
11879 cat confdefs.h >>conftest.$ac_ext
11880 cat >>conftest.$ac_ext <<_ACEOF
11881 /* end confdefs.h. */
11882 $ac_includes_default
11883 #include <gtk/gtk.h>
11884
11885 int
11886 main ()
11887 {
11888 #ifndef GTK_TYPE_FILE_SELECTION
11889 (void) GTK_TYPE_FILE_SELECTION;
11890 #endif
11891
11892 ;
11893 return 0;
11894 }
11895 _ACEOF
11896 rm -f conftest.$ac_objext
11897 if { (ac_try="$ac_compile"
11898 case "(($ac_try" in
11899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11900 *) ac_try_echo=$ac_try;;
11901 esac
11902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11903 $as_echo "$ac_try_echo") >&5
11904 (eval "$ac_compile") 2>conftest.er1
11905 ac_status=$?
11906 grep -v '^ *+' conftest.er1 >conftest.err
11907 rm -f conftest.er1
11908 cat conftest.err >&5
11909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); } && {
11911 test -z "$ac_c_werror_flag" ||
11912 test ! -s conftest.err
11913 } && test -s conftest.$ac_objext; then
11914 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
11915 else
11916 $as_echo "$as_me: failed program was:" >&5
11917 sed 's/^/| /' conftest.$ac_ext >&5
11918
11919 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
11920 fi
11921
11922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11923 fi
11924 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
11925 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
11926 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
11927 HAVE_GTK_FILE_SELECTION=yes
11928 else
11929 HAVE_GTK_FILE_SELECTION=no
11930 fi
11931
11932 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11933
11934 for ac_func in gtk_file_selection_new
11935 do
11936 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11937 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11938 $as_echo_n "checking for $ac_func... " >&6; }
11939 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11940 $as_echo_n "(cached) " >&6
11941 else
11942 cat >conftest.$ac_ext <<_ACEOF
11943 /* confdefs.h. */
11944 _ACEOF
11945 cat confdefs.h >>conftest.$ac_ext
11946 cat >>conftest.$ac_ext <<_ACEOF
11947 /* end confdefs.h. */
11948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11950 #define $ac_func innocuous_$ac_func
11951
11952 /* System header to define __stub macros and hopefully few prototypes,
11953 which can conflict with char $ac_func (); below.
11954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11955 <limits.h> exists even on freestanding compilers. */
11956
11957 #ifdef __STDC__
11958 # include <limits.h>
11959 #else
11960 # include <assert.h>
11961 #endif
11962
11963 #undef $ac_func
11964
11965 /* Override any GCC internal prototype to avoid an error.
11966 Use char because int might match the return type of a GCC
11967 builtin and then its argument prototype would still apply. */
11968 #ifdef __cplusplus
11969 extern "C"
11970 #endif
11971 char $ac_func ();
11972 /* The GNU C library defines this for functions which it implements
11973 to always fail with ENOSYS. Some functions are actually named
11974 something starting with __ and the normal name is an alias. */
11975 #if defined __stub_$ac_func || defined __stub___$ac_func
11976 choke me
11977 #endif
11978
11979 int
11980 main ()
11981 {
11982 return $ac_func ();
11983 ;
11984 return 0;
11985 }
11986 _ACEOF
11987 rm -f conftest.$ac_objext conftest$ac_exeext
11988 if { (ac_try="$ac_link"
11989 case "(($ac_try" in
11990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11991 *) ac_try_echo=$ac_try;;
11992 esac
11993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11994 $as_echo "$ac_try_echo") >&5
11995 (eval "$ac_link") 2>conftest.er1
11996 ac_status=$?
11997 grep -v '^ *+' conftest.er1 >conftest.err
11998 rm -f conftest.er1
11999 cat conftest.err >&5
12000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); } && {
12002 test -z "$ac_c_werror_flag" ||
12003 test ! -s conftest.err
12004 } && test -s conftest$ac_exeext && {
12005 test "$cross_compiling" = yes ||
12006 $as_test_x conftest$ac_exeext
12007 }; then
12008 eval "$as_ac_var=yes"
12009 else
12010 $as_echo "$as_me: failed program was:" >&5
12011 sed 's/^/| /' conftest.$ac_ext >&5
12012
12013 eval "$as_ac_var=no"
12014 fi
12015
12016 rm -rf conftest.dSYM
12017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12018 conftest$ac_exeext conftest.$ac_ext
12019 fi
12020 ac_res=`eval 'as_val=${'$as_ac_var'}
12021 $as_echo "$as_val"'`
12022 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12023 $as_echo "$ac_res" >&6; }
12024 if test `eval 'as_val=${'$as_ac_var'}
12025 $as_echo "$as_val"'` = yes; then
12026 cat >>confdefs.h <<_ACEOF
12027 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12028 _ACEOF
12029 HAVE_GTK_FILE_SELECTION=yes
12030 else
12031 HAVE_GTK_FILE_SELECTION=no
12032 fi
12033 done
12034
12035 fi
12036
12037 HAVE_GTK_FILE_CHOOSER=no
12038 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12039 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12040 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12041 $as_echo_n "(cached) " >&6
12042 else
12043 cat >conftest.$ac_ext <<_ACEOF
12044 /* confdefs.h. */
12045 _ACEOF
12046 cat confdefs.h >>conftest.$ac_ext
12047 cat >>conftest.$ac_ext <<_ACEOF
12048 /* end confdefs.h. */
12049 $ac_includes_default
12050 #include <gtk/gtk.h>
12051
12052 int
12053 main ()
12054 {
12055 #ifndef GTK_TYPE_FILE_CHOOSER
12056 (void) GTK_TYPE_FILE_CHOOSER;
12057 #endif
12058
12059 ;
12060 return 0;
12061 }
12062 _ACEOF
12063 rm -f conftest.$ac_objext
12064 if { (ac_try="$ac_compile"
12065 case "(($ac_try" in
12066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12067 *) ac_try_echo=$ac_try;;
12068 esac
12069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12070 $as_echo "$ac_try_echo") >&5
12071 (eval "$ac_compile") 2>conftest.er1
12072 ac_status=$?
12073 grep -v '^ *+' conftest.er1 >conftest.err
12074 rm -f conftest.er1
12075 cat conftest.err >&5
12076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); } && {
12078 test -z "$ac_c_werror_flag" ||
12079 test ! -s conftest.err
12080 } && test -s conftest.$ac_objext; then
12081 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12082 else
12083 $as_echo "$as_me: failed program was:" >&5
12084 sed 's/^/| /' conftest.$ac_ext >&5
12085
12086 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12087 fi
12088
12089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12090 fi
12091 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12092 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12093 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
12094 HAVE_GTK_FILE_CHOOSER=yes
12095 else
12096 HAVE_GTK_FILE_CHOOSER=no
12097 fi
12098
12099 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12100
12101 for ac_func in gtk_file_chooser_dialog_new
12102 do
12103 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12104 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12105 $as_echo_n "checking for $ac_func... " >&6; }
12106 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12107 $as_echo_n "(cached) " >&6
12108 else
12109 cat >conftest.$ac_ext <<_ACEOF
12110 /* confdefs.h. */
12111 _ACEOF
12112 cat confdefs.h >>conftest.$ac_ext
12113 cat >>conftest.$ac_ext <<_ACEOF
12114 /* end confdefs.h. */
12115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12117 #define $ac_func innocuous_$ac_func
12118
12119 /* System header to define __stub macros and hopefully few prototypes,
12120 which can conflict with char $ac_func (); below.
12121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12122 <limits.h> exists even on freestanding compilers. */
12123
12124 #ifdef __STDC__
12125 # include <limits.h>
12126 #else
12127 # include <assert.h>
12128 #endif
12129
12130 #undef $ac_func
12131
12132 /* Override any GCC internal prototype to avoid an error.
12133 Use char because int might match the return type of a GCC
12134 builtin and then its argument prototype would still apply. */
12135 #ifdef __cplusplus
12136 extern "C"
12137 #endif
12138 char $ac_func ();
12139 /* The GNU C library defines this for functions which it implements
12140 to always fail with ENOSYS. Some functions are actually named
12141 something starting with __ and the normal name is an alias. */
12142 #if defined __stub_$ac_func || defined __stub___$ac_func
12143 choke me
12144 #endif
12145
12146 int
12147 main ()
12148 {
12149 return $ac_func ();
12150 ;
12151 return 0;
12152 }
12153 _ACEOF
12154 rm -f conftest.$ac_objext conftest$ac_exeext
12155 if { (ac_try="$ac_link"
12156 case "(($ac_try" in
12157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12158 *) ac_try_echo=$ac_try;;
12159 esac
12160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12161 $as_echo "$ac_try_echo") >&5
12162 (eval "$ac_link") 2>conftest.er1
12163 ac_status=$?
12164 grep -v '^ *+' conftest.er1 >conftest.err
12165 rm -f conftest.er1
12166 cat conftest.err >&5
12167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); } && {
12169 test -z "$ac_c_werror_flag" ||
12170 test ! -s conftest.err
12171 } && test -s conftest$ac_exeext && {
12172 test "$cross_compiling" = yes ||
12173 $as_test_x conftest$ac_exeext
12174 }; then
12175 eval "$as_ac_var=yes"
12176 else
12177 $as_echo "$as_me: failed program was:" >&5
12178 sed 's/^/| /' conftest.$ac_ext >&5
12179
12180 eval "$as_ac_var=no"
12181 fi
12182
12183 rm -rf conftest.dSYM
12184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12185 conftest$ac_exeext conftest.$ac_ext
12186 fi
12187 ac_res=`eval 'as_val=${'$as_ac_var'}
12188 $as_echo "$as_val"'`
12189 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12190 $as_echo "$ac_res" >&6; }
12191 if test `eval 'as_val=${'$as_ac_var'}
12192 $as_echo "$as_val"'` = yes; then
12193 cat >>confdefs.h <<_ACEOF
12194 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12195 _ACEOF
12196 HAVE_GTK_FILE_CHOOSER=yes
12197 else
12198 HAVE_GTK_FILE_CHOOSER=no
12199 fi
12200 done
12201
12202 fi
12203
12204 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12205 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12206
12207 cat >>confdefs.h <<\_ACEOF
12208 #define HAVE_GTK_FILE_BOTH 1
12209 _ACEOF
12210
12211 fi
12212
12213 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12214 HAVE_GTK_AND_PTHREAD=no
12215
12216 for ac_header in pthread.h
12217 do
12218 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12220 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12221 $as_echo_n "checking for $ac_header... " >&6; }
12222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12223 $as_echo_n "(cached) " >&6
12224 fi
12225 ac_res=`eval 'as_val=${'$as_ac_Header'}
12226 $as_echo "$as_val"'`
12227 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12228 $as_echo "$ac_res" >&6; }
12229 else
12230 # Is the header compilable?
12231 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12232 $as_echo_n "checking $ac_header usability... " >&6; }
12233 cat >conftest.$ac_ext <<_ACEOF
12234 /* confdefs.h. */
12235 _ACEOF
12236 cat confdefs.h >>conftest.$ac_ext
12237 cat >>conftest.$ac_ext <<_ACEOF
12238 /* end confdefs.h. */
12239 $ac_includes_default
12240 #include <$ac_header>
12241 _ACEOF
12242 rm -f conftest.$ac_objext
12243 if { (ac_try="$ac_compile"
12244 case "(($ac_try" in
12245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12246 *) ac_try_echo=$ac_try;;
12247 esac
12248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12249 $as_echo "$ac_try_echo") >&5
12250 (eval "$ac_compile") 2>conftest.er1
12251 ac_status=$?
12252 grep -v '^ *+' conftest.er1 >conftest.err
12253 rm -f conftest.er1
12254 cat conftest.err >&5
12255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); } && {
12257 test -z "$ac_c_werror_flag" ||
12258 test ! -s conftest.err
12259 } && test -s conftest.$ac_objext; then
12260 ac_header_compiler=yes
12261 else
12262 $as_echo "$as_me: failed program was:" >&5
12263 sed 's/^/| /' conftest.$ac_ext >&5
12264
12265 ac_header_compiler=no
12266 fi
12267
12268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12269 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12270 $as_echo "$ac_header_compiler" >&6; }
12271
12272 # Is the header present?
12273 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12274 $as_echo_n "checking $ac_header presence... " >&6; }
12275 cat >conftest.$ac_ext <<_ACEOF
12276 /* confdefs.h. */
12277 _ACEOF
12278 cat confdefs.h >>conftest.$ac_ext
12279 cat >>conftest.$ac_ext <<_ACEOF
12280 /* end confdefs.h. */
12281 #include <$ac_header>
12282 _ACEOF
12283 if { (ac_try="$ac_cpp conftest.$ac_ext"
12284 case "(($ac_try" in
12285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12286 *) ac_try_echo=$ac_try;;
12287 esac
12288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12289 $as_echo "$ac_try_echo") >&5
12290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12291 ac_status=$?
12292 grep -v '^ *+' conftest.er1 >conftest.err
12293 rm -f conftest.er1
12294 cat conftest.err >&5
12295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); } >/dev/null && {
12297 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12298 test ! -s conftest.err
12299 }; then
12300 ac_header_preproc=yes
12301 else
12302 $as_echo "$as_me: failed program was:" >&5
12303 sed 's/^/| /' conftest.$ac_ext >&5
12304
12305 ac_header_preproc=no
12306 fi
12307
12308 rm -f conftest.err conftest.$ac_ext
12309 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12310 $as_echo "$ac_header_preproc" >&6; }
12311
12312 # So? What about this header?
12313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12314 yes:no: )
12315 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12316 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12317 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12318 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12319 ac_header_preproc=yes
12320 ;;
12321 no:yes:* )
12322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12323 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12325 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12327 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12329 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12331 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12333 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12334
12335 ;;
12336 esac
12337 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12338 $as_echo_n "checking for $ac_header... " >&6; }
12339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12340 $as_echo_n "(cached) " >&6
12341 else
12342 eval "$as_ac_Header=\$ac_header_preproc"
12343 fi
12344 ac_res=`eval 'as_val=${'$as_ac_Header'}
12345 $as_echo "$as_val"'`
12346 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12347 $as_echo "$ac_res" >&6; }
12348
12349 fi
12350 if test `eval 'as_val=${'$as_ac_Header'}
12351 $as_echo "$as_val"'` = yes; then
12352 cat >>confdefs.h <<_ACEOF
12353 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12354 _ACEOF
12355
12356 fi
12357
12358 done
12359
12360 if test "$ac_cv_header_pthread_h"; then
12361 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12362 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12363 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12364 $as_echo_n "(cached) " >&6
12365 else
12366 ac_check_lib_save_LIBS=$LIBS
12367 LIBS="-lpthread $LIBS"
12368 cat >conftest.$ac_ext <<_ACEOF
12369 /* confdefs.h. */
12370 _ACEOF
12371 cat confdefs.h >>conftest.$ac_ext
12372 cat >>conftest.$ac_ext <<_ACEOF
12373 /* end confdefs.h. */
12374
12375 /* Override any GCC internal prototype to avoid an error.
12376 Use char because int might match the return type of a GCC
12377 builtin and then its argument prototype would still apply. */
12378 #ifdef __cplusplus
12379 extern "C"
12380 #endif
12381 char pthread_self ();
12382 int
12383 main ()
12384 {
12385 return pthread_self ();
12386 ;
12387 return 0;
12388 }
12389 _ACEOF
12390 rm -f conftest.$ac_objext conftest$ac_exeext
12391 if { (ac_try="$ac_link"
12392 case "(($ac_try" in
12393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12394 *) ac_try_echo=$ac_try;;
12395 esac
12396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12397 $as_echo "$ac_try_echo") >&5
12398 (eval "$ac_link") 2>conftest.er1
12399 ac_status=$?
12400 grep -v '^ *+' conftest.er1 >conftest.err
12401 rm -f conftest.er1
12402 cat conftest.err >&5
12403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); } && {
12405 test -z "$ac_c_werror_flag" ||
12406 test ! -s conftest.err
12407 } && test -s conftest$ac_exeext && {
12408 test "$cross_compiling" = yes ||
12409 $as_test_x conftest$ac_exeext
12410 }; then
12411 ac_cv_lib_pthread_pthread_self=yes
12412 else
12413 $as_echo "$as_me: failed program was:" >&5
12414 sed 's/^/| /' conftest.$ac_ext >&5
12415
12416 ac_cv_lib_pthread_pthread_self=no
12417 fi
12418
12419 rm -rf conftest.dSYM
12420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12421 conftest$ac_exeext conftest.$ac_ext
12422 LIBS=$ac_check_lib_save_LIBS
12423 fi
12424 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12425 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12426 if test $ac_cv_lib_pthread_pthread_self = yes; then
12427 HAVE_GTK_AND_PTHREAD=yes
12428 fi
12429
12430 fi
12431 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12432 case "${canonical}" in
12433 *-hpux*) ;;
12434 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12435 esac
12436
12437 cat >>confdefs.h <<\_ACEOF
12438 #define HAVE_GTK_AND_PTHREAD 1
12439 _ACEOF
12440
12441 fi
12442 fi
12443 fi
12444
12445 HAVE_DBUS=no
12446 DBUS_OBJ=
12447 if test "${with_dbus}" = "yes"; then
12448
12449 succeeded=no
12450
12451 # Extract the first word of "pkg-config", so it can be a program name with args.
12452 set dummy pkg-config; ac_word=$2
12453 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12454 $as_echo_n "checking for $ac_word... " >&6; }
12455 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12456 $as_echo_n "(cached) " >&6
12457 else
12458 case $PKG_CONFIG in
12459 [\\/]* | ?:[\\/]*)
12460 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12461 ;;
12462 *)
12463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12464 for as_dir in $PATH
12465 do
12466 IFS=$as_save_IFS
12467 test -z "$as_dir" && as_dir=.
12468 for ac_exec_ext in '' $ac_executable_extensions; do
12469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12470 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12471 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12472 break 2
12473 fi
12474 done
12475 done
12476 IFS=$as_save_IFS
12477
12478 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12479 ;;
12480 esac
12481 fi
12482 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12483 if test -n "$PKG_CONFIG"; then
12484 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12485 $as_echo "$PKG_CONFIG" >&6; }
12486 else
12487 { $as_echo "$as_me:$LINENO: result: no" >&5
12488 $as_echo "no" >&6; }
12489 fi
12490
12491
12492
12493 if test "$PKG_CONFIG" = "no" ; then
12494 HAVE_DBUS=no
12495 else
12496 PKG_CONFIG_MIN_VERSION=0.9.0
12497 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12498 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12499 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12500
12501 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12502 { $as_echo "$as_me:$LINENO: result: yes" >&5
12503 $as_echo "yes" >&6; }
12504 succeeded=yes
12505
12506 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12507 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12508 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12509 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12510 $as_echo "$DBUS_CFLAGS" >&6; }
12511
12512 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12513 $as_echo_n "checking DBUS_LIBS... " >&6; }
12514 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12515 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12516 $as_echo "$DBUS_LIBS" >&6; }
12517 else
12518 { $as_echo "$as_me:$LINENO: result: no" >&5
12519 $as_echo "no" >&6; }
12520 DBUS_CFLAGS=""
12521 DBUS_LIBS=""
12522 ## If we have a custom action on failure, don't print errors, but
12523 ## do set a variable so people can do so.
12524 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12525
12526 fi
12527
12528
12529
12530 else
12531 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12532 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12533 fi
12534 fi
12535
12536 if test $succeeded = yes; then
12537 HAVE_DBUS=yes
12538 else
12539 HAVE_DBUS=no
12540 fi
12541
12542 if test "$HAVE_DBUS" = yes; then
12543 LIBS="$LIBS $DBUS_LIBS"
12544
12545 cat >>confdefs.h <<\_ACEOF
12546 #define HAVE_DBUS 1
12547 _ACEOF
12548
12549
12550 for ac_func in dbus_watch_get_unix_fd
12551 do
12552 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12553 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12554 $as_echo_n "checking for $ac_func... " >&6; }
12555 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12556 $as_echo_n "(cached) " >&6
12557 else
12558 cat >conftest.$ac_ext <<_ACEOF
12559 /* confdefs.h. */
12560 _ACEOF
12561 cat confdefs.h >>conftest.$ac_ext
12562 cat >>conftest.$ac_ext <<_ACEOF
12563 /* end confdefs.h. */
12564 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12566 #define $ac_func innocuous_$ac_func
12567
12568 /* System header to define __stub macros and hopefully few prototypes,
12569 which can conflict with char $ac_func (); below.
12570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12571 <limits.h> exists even on freestanding compilers. */
12572
12573 #ifdef __STDC__
12574 # include <limits.h>
12575 #else
12576 # include <assert.h>
12577 #endif
12578
12579 #undef $ac_func
12580
12581 /* Override any GCC internal prototype to avoid an error.
12582 Use char because int might match the return type of a GCC
12583 builtin and then its argument prototype would still apply. */
12584 #ifdef __cplusplus
12585 extern "C"
12586 #endif
12587 char $ac_func ();
12588 /* The GNU C library defines this for functions which it implements
12589 to always fail with ENOSYS. Some functions are actually named
12590 something starting with __ and the normal name is an alias. */
12591 #if defined __stub_$ac_func || defined __stub___$ac_func
12592 choke me
12593 #endif
12594
12595 int
12596 main ()
12597 {
12598 return $ac_func ();
12599 ;
12600 return 0;
12601 }
12602 _ACEOF
12603 rm -f conftest.$ac_objext conftest$ac_exeext
12604 if { (ac_try="$ac_link"
12605 case "(($ac_try" in
12606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12607 *) ac_try_echo=$ac_try;;
12608 esac
12609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12610 $as_echo "$ac_try_echo") >&5
12611 (eval "$ac_link") 2>conftest.er1
12612 ac_status=$?
12613 grep -v '^ *+' conftest.er1 >conftest.err
12614 rm -f conftest.er1
12615 cat conftest.err >&5
12616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617 (exit $ac_status); } && {
12618 test -z "$ac_c_werror_flag" ||
12619 test ! -s conftest.err
12620 } && test -s conftest$ac_exeext && {
12621 test "$cross_compiling" = yes ||
12622 $as_test_x conftest$ac_exeext
12623 }; then
12624 eval "$as_ac_var=yes"
12625 else
12626 $as_echo "$as_me: failed program was:" >&5
12627 sed 's/^/| /' conftest.$ac_ext >&5
12628
12629 eval "$as_ac_var=no"
12630 fi
12631
12632 rm -rf conftest.dSYM
12633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12634 conftest$ac_exeext conftest.$ac_ext
12635 fi
12636 ac_res=`eval 'as_val=${'$as_ac_var'}
12637 $as_echo "$as_val"'`
12638 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12639 $as_echo "$ac_res" >&6; }
12640 if test `eval 'as_val=${'$as_ac_var'}
12641 $as_echo "$as_val"'` = yes; then
12642 cat >>confdefs.h <<_ACEOF
12643 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12644 _ACEOF
12645
12646 fi
12647 done
12648
12649 DBUS_OBJ=dbusbind.o
12650 fi
12651 fi
12652
12653
12654 HAVE_GCONF=no
12655 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12656
12657 succeeded=no
12658
12659 # Extract the first word of "pkg-config", so it can be a program name with args.
12660 set dummy pkg-config; ac_word=$2
12661 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12662 $as_echo_n "checking for $ac_word... " >&6; }
12663 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12664 $as_echo_n "(cached) " >&6
12665 else
12666 case $PKG_CONFIG in
12667 [\\/]* | ?:[\\/]*)
12668 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12669 ;;
12670 *)
12671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12672 for as_dir in $PATH
12673 do
12674 IFS=$as_save_IFS
12675 test -z "$as_dir" && as_dir=.
12676 for ac_exec_ext in '' $ac_executable_extensions; do
12677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12678 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12679 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12680 break 2
12681 fi
12682 done
12683 done
12684 IFS=$as_save_IFS
12685
12686 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12687 ;;
12688 esac
12689 fi
12690 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12691 if test -n "$PKG_CONFIG"; then
12692 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12693 $as_echo "$PKG_CONFIG" >&6; }
12694 else
12695 { $as_echo "$as_me:$LINENO: result: no" >&5
12696 $as_echo "no" >&6; }
12697 fi
12698
12699
12700
12701 if test "$PKG_CONFIG" = "no" ; then
12702 HAVE_GCONF=no
12703 else
12704 PKG_CONFIG_MIN_VERSION=0.9.0
12705 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12706 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
12707 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12708
12709 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
12710 { $as_echo "$as_me:$LINENO: result: yes" >&5
12711 $as_echo "yes" >&6; }
12712 succeeded=yes
12713
12714 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
12715 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
12716 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12717 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
12718 $as_echo "$GCONF_CFLAGS" >&6; }
12719
12720 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
12721 $as_echo_n "checking GCONF_LIBS... " >&6; }
12722 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12723 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
12724 $as_echo "$GCONF_LIBS" >&6; }
12725 else
12726 { $as_echo "$as_me:$LINENO: result: no" >&5
12727 $as_echo "no" >&6; }
12728 GCONF_CFLAGS=""
12729 GCONF_LIBS=""
12730 ## If we have a custom action on failure, don't print errors, but
12731 ## do set a variable so people can do so.
12732 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
12733
12734 fi
12735
12736
12737
12738 else
12739 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12740 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12741 fi
12742 fi
12743
12744 if test $succeeded = yes; then
12745 HAVE_GCONF=yes
12746 else
12747 HAVE_GCONF=no
12748 fi
12749
12750 if test "$HAVE_GCONF" = yes; then
12751
12752 cat >>confdefs.h <<\_ACEOF
12753 #define HAVE_GCONF 1
12754 _ACEOF
12755
12756 fi
12757 fi
12758
12759 HAVE_LIBSELINUX=no
12760 LIBSELINUX_LIBS=
12761 if test "${with_selinux}" = "yes"; then
12762 { $as_echo "$as_me:$LINENO: checking for lgetfilecon in -lselinux" >&5
12763 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
12764 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then
12765 $as_echo_n "(cached) " >&6
12766 else
12767 ac_check_lib_save_LIBS=$LIBS
12768 LIBS="-lselinux $LIBS"
12769 cat >conftest.$ac_ext <<_ACEOF
12770 /* confdefs.h. */
12771 _ACEOF
12772 cat confdefs.h >>conftest.$ac_ext
12773 cat >>conftest.$ac_ext <<_ACEOF
12774 /* end confdefs.h. */
12775
12776 /* Override any GCC internal prototype to avoid an error.
12777 Use char because int might match the return type of a GCC
12778 builtin and then its argument prototype would still apply. */
12779 #ifdef __cplusplus
12780 extern "C"
12781 #endif
12782 char lgetfilecon ();
12783 int
12784 main ()
12785 {
12786 return lgetfilecon ();
12787 ;
12788 return 0;
12789 }
12790 _ACEOF
12791 rm -f conftest.$ac_objext conftest$ac_exeext
12792 if { (ac_try="$ac_link"
12793 case "(($ac_try" in
12794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12795 *) ac_try_echo=$ac_try;;
12796 esac
12797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12798 $as_echo "$ac_try_echo") >&5
12799 (eval "$ac_link") 2>conftest.er1
12800 ac_status=$?
12801 grep -v '^ *+' conftest.er1 >conftest.err
12802 rm -f conftest.er1
12803 cat conftest.err >&5
12804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); } && {
12806 test -z "$ac_c_werror_flag" ||
12807 test ! -s conftest.err
12808 } && test -s conftest$ac_exeext && {
12809 test "$cross_compiling" = yes ||
12810 $as_test_x conftest$ac_exeext
12811 }; then
12812 ac_cv_lib_selinux_lgetfilecon=yes
12813 else
12814 $as_echo "$as_me: failed program was:" >&5
12815 sed 's/^/| /' conftest.$ac_ext >&5
12816
12817 ac_cv_lib_selinux_lgetfilecon=no
12818 fi
12819
12820 rm -rf conftest.dSYM
12821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12822 conftest$ac_exeext conftest.$ac_ext
12823 LIBS=$ac_check_lib_save_LIBS
12824 fi
12825 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_lgetfilecon" >&5
12826 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
12827 if test $ac_cv_lib_selinux_lgetfilecon = yes; then
12828 HAVE_LIBSELINUX=yes
12829 else
12830 HAVE_LIBSELINUX=no
12831 fi
12832
12833 if test "$HAVE_LIBSELINUX" = yes; then
12834
12835 cat >>confdefs.h <<\_ACEOF
12836 #define HAVE_LIBSELINUX 1
12837 _ACEOF
12838
12839 LIBSELINUX_LIBS=-lselinux
12840 fi
12841 fi
12842
12843
12844 HAVE_XAW3D=no
12845 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12846 if test "$with_xaw3d" != no; then
12847 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
12848 $as_echo_n "checking for xaw3d... " >&6; }
12849 if test "${emacs_cv_xaw3d+set}" = set; then
12850 $as_echo_n "(cached) " >&6
12851 else
12852 cat >conftest.$ac_ext <<_ACEOF
12853 /* confdefs.h. */
12854 _ACEOF
12855 cat confdefs.h >>conftest.$ac_ext
12856 cat >>conftest.$ac_ext <<_ACEOF
12857 /* end confdefs.h. */
12858
12859 #include <X11/Intrinsic.h>
12860 #include <X11/Xaw3d/Simple.h>
12861 int
12862 main ()
12863 {
12864
12865 ;
12866 return 0;
12867 }
12868 _ACEOF
12869 rm -f conftest.$ac_objext conftest$ac_exeext
12870 if { (ac_try="$ac_link"
12871 case "(($ac_try" in
12872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12873 *) ac_try_echo=$ac_try;;
12874 esac
12875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12876 $as_echo "$ac_try_echo") >&5
12877 (eval "$ac_link") 2>conftest.er1
12878 ac_status=$?
12879 grep -v '^ *+' conftest.er1 >conftest.err
12880 rm -f conftest.er1
12881 cat conftest.err >&5
12882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); } && {
12884 test -z "$ac_c_werror_flag" ||
12885 test ! -s conftest.err
12886 } && test -s conftest$ac_exeext && {
12887 test "$cross_compiling" = yes ||
12888 $as_test_x conftest$ac_exeext
12889 }; then
12890 emacs_cv_xaw3d=yes
12891 else
12892 $as_echo "$as_me: failed program was:" >&5
12893 sed 's/^/| /' conftest.$ac_ext >&5
12894
12895 emacs_cv_xaw3d=no
12896 fi
12897
12898 rm -rf conftest.dSYM
12899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12900 conftest$ac_exeext conftest.$ac_ext
12901 fi
12902
12903 else
12904 emacs_cv_xaw3d=no
12905 fi
12906 if test $emacs_cv_xaw3d = yes; then
12907 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12908 $as_echo "yes; using Lucid toolkit" >&6; }
12909 USE_X_TOOLKIT=LUCID
12910 HAVE_XAW3D=yes
12911
12912 cat >>confdefs.h <<\_ACEOF
12913 #define HAVE_XAW3D 1
12914 _ACEOF
12915
12916 else
12917 { $as_echo "$as_me:$LINENO: result: no" >&5
12918 $as_echo "no" >&6; }
12919 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
12920 $as_echo_n "checking for libXaw... " >&6; }
12921 if test "${emacs_cv_xaw+set}" = set; then
12922 $as_echo_n "(cached) " >&6
12923 else
12924 cat >conftest.$ac_ext <<_ACEOF
12925 /* confdefs.h. */
12926 _ACEOF
12927 cat confdefs.h >>conftest.$ac_ext
12928 cat >>conftest.$ac_ext <<_ACEOF
12929 /* end confdefs.h. */
12930
12931 #include <X11/Intrinsic.h>
12932 #include <X11/Xaw/Simple.h>
12933 int
12934 main ()
12935 {
12936
12937 ;
12938 return 0;
12939 }
12940 _ACEOF
12941 rm -f conftest.$ac_objext conftest$ac_exeext
12942 if { (ac_try="$ac_link"
12943 case "(($ac_try" in
12944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12945 *) ac_try_echo=$ac_try;;
12946 esac
12947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12948 $as_echo "$ac_try_echo") >&5
12949 (eval "$ac_link") 2>conftest.er1
12950 ac_status=$?
12951 grep -v '^ *+' conftest.er1 >conftest.err
12952 rm -f conftest.er1
12953 cat conftest.err >&5
12954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); } && {
12956 test -z "$ac_c_werror_flag" ||
12957 test ! -s conftest.err
12958 } && test -s conftest$ac_exeext && {
12959 test "$cross_compiling" = yes ||
12960 $as_test_x conftest$ac_exeext
12961 }; then
12962 emacs_cv_xaw=yes
12963 else
12964 $as_echo "$as_me: failed program was:" >&5
12965 sed 's/^/| /' conftest.$ac_ext >&5
12966
12967 emacs_cv_xaw=no
12968 fi
12969
12970 rm -rf conftest.dSYM
12971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12972 conftest$ac_exeext conftest.$ac_ext
12973 fi
12974
12975 if test $emacs_cv_xaw = yes; then
12976 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12977 $as_echo "yes; using Lucid toolkit" >&6; }
12978 USE_X_TOOLKIT=LUCID
12979 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12980 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12981 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12982 { (exit 1); exit 1; }; }
12983 else
12984 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12985 $as_echo "no; do not use toolkit by default" >&6; }
12986 USE_X_TOOLKIT=none
12987 fi
12988 fi
12989 fi
12990
12991 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12992
12993 if test "${USE_X_TOOLKIT}" != "none"; then
12994 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12995 $as_echo_n "checking X11 toolkit version... " >&6; }
12996 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12997 $as_echo_n "(cached) " >&6
12998 else
12999 cat >conftest.$ac_ext <<_ACEOF
13000 /* confdefs.h. */
13001 _ACEOF
13002 cat confdefs.h >>conftest.$ac_ext
13003 cat >>conftest.$ac_ext <<_ACEOF
13004 /* end confdefs.h. */
13005 #include <X11/Intrinsic.h>
13006 int
13007 main ()
13008 {
13009 #if XtSpecificationRelease < 6
13010 fail;
13011 #endif
13012
13013 ;
13014 return 0;
13015 }
13016 _ACEOF
13017 rm -f conftest.$ac_objext conftest$ac_exeext
13018 if { (ac_try="$ac_link"
13019 case "(($ac_try" in
13020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13021 *) ac_try_echo=$ac_try;;
13022 esac
13023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13024 $as_echo "$ac_try_echo") >&5
13025 (eval "$ac_link") 2>conftest.er1
13026 ac_status=$?
13027 grep -v '^ *+' conftest.er1 >conftest.err
13028 rm -f conftest.er1
13029 cat conftest.err >&5
13030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); } && {
13032 test -z "$ac_c_werror_flag" ||
13033 test ! -s conftest.err
13034 } && test -s conftest$ac_exeext && {
13035 test "$cross_compiling" = yes ||
13036 $as_test_x conftest$ac_exeext
13037 }; then
13038 emacs_cv_x11_toolkit_version_6=yes
13039 else
13040 $as_echo "$as_me: failed program was:" >&5
13041 sed 's/^/| /' conftest.$ac_ext >&5
13042
13043 emacs_cv_x11_toolkit_version_6=no
13044 fi
13045
13046 rm -rf conftest.dSYM
13047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13048 conftest$ac_exeext conftest.$ac_ext
13049 fi
13050
13051 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
13052 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13053 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
13054 $as_echo "6 or newer" >&6; }
13055
13056 cat >>confdefs.h <<\_ACEOF
13057 #define HAVE_X11XTR6 1
13058 _ACEOF
13059
13060 else
13061 { $as_echo "$as_me:$LINENO: result: before 6" >&5
13062 $as_echo "before 6" >&6; }
13063 fi
13064
13065 OLDLIBS="$LIBS"
13066 if test x$HAVE_X11XTR6 = xyes; then
13067 LIBS="-lXt -lSM -lICE $LIBS"
13068 else
13069 LIBS="-lXt $LIBS"
13070 fi
13071
13072 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13073 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
13074 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13075 $as_echo_n "(cached) " >&6
13076 else
13077 ac_check_lib_save_LIBS=$LIBS
13078 LIBS="-lXmu $LIBS"
13079 cat >conftest.$ac_ext <<_ACEOF
13080 /* confdefs.h. */
13081 _ACEOF
13082 cat confdefs.h >>conftest.$ac_ext
13083 cat >>conftest.$ac_ext <<_ACEOF
13084 /* end confdefs.h. */
13085
13086 /* Override any GCC internal prototype to avoid an error.
13087 Use char because int might match the return type of a GCC
13088 builtin and then its argument prototype would still apply. */
13089 #ifdef __cplusplus
13090 extern "C"
13091 #endif
13092 char XmuConvertStandardSelection ();
13093 int
13094 main ()
13095 {
13096 return XmuConvertStandardSelection ();
13097 ;
13098 return 0;
13099 }
13100 _ACEOF
13101 rm -f conftest.$ac_objext conftest$ac_exeext
13102 if { (ac_try="$ac_link"
13103 case "(($ac_try" in
13104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13105 *) ac_try_echo=$ac_try;;
13106 esac
13107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13108 $as_echo "$ac_try_echo") >&5
13109 (eval "$ac_link") 2>conftest.er1
13110 ac_status=$?
13111 grep -v '^ *+' conftest.er1 >conftest.err
13112 rm -f conftest.er1
13113 cat conftest.err >&5
13114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); } && {
13116 test -z "$ac_c_werror_flag" ||
13117 test ! -s conftest.err
13118 } && test -s conftest$ac_exeext && {
13119 test "$cross_compiling" = yes ||
13120 $as_test_x conftest$ac_exeext
13121 }; then
13122 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13123 else
13124 $as_echo "$as_me: failed program was:" >&5
13125 sed 's/^/| /' conftest.$ac_ext >&5
13126
13127 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13128 fi
13129
13130 rm -rf conftest.dSYM
13131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13132 conftest$ac_exeext conftest.$ac_ext
13133 LIBS=$ac_check_lib_save_LIBS
13134 fi
13135 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13136 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13137 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
13138 cat >>confdefs.h <<_ACEOF
13139 #define HAVE_LIBXMU 1
13140 _ACEOF
13141
13142 LIBS="-lXmu $LIBS"
13143
13144 fi
13145
13146 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13147 fi
13148
13149 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13150 if test "${HAVE_X11}" = "yes"; then
13151 if test "${USE_X_TOOLKIT}" != "none"; then
13152
13153 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13154 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13155 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13156 $as_echo_n "(cached) " >&6
13157 else
13158 ac_check_lib_save_LIBS=$LIBS
13159 LIBS="-lXext $LIBS"
13160 cat >conftest.$ac_ext <<_ACEOF
13161 /* confdefs.h. */
13162 _ACEOF
13163 cat confdefs.h >>conftest.$ac_ext
13164 cat >>conftest.$ac_ext <<_ACEOF
13165 /* end confdefs.h. */
13166
13167 /* Override any GCC internal prototype to avoid an error.
13168 Use char because int might match the return type of a GCC
13169 builtin and then its argument prototype would still apply. */
13170 #ifdef __cplusplus
13171 extern "C"
13172 #endif
13173 char XShapeQueryExtension ();
13174 int
13175 main ()
13176 {
13177 return XShapeQueryExtension ();
13178 ;
13179 return 0;
13180 }
13181 _ACEOF
13182 rm -f conftest.$ac_objext conftest$ac_exeext
13183 if { (ac_try="$ac_link"
13184 case "(($ac_try" in
13185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13186 *) ac_try_echo=$ac_try;;
13187 esac
13188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13189 $as_echo "$ac_try_echo") >&5
13190 (eval "$ac_link") 2>conftest.er1
13191 ac_status=$?
13192 grep -v '^ *+' conftest.er1 >conftest.err
13193 rm -f conftest.er1
13194 cat conftest.err >&5
13195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 (exit $ac_status); } && {
13197 test -z "$ac_c_werror_flag" ||
13198 test ! -s conftest.err
13199 } && test -s conftest$ac_exeext && {
13200 test "$cross_compiling" = yes ||
13201 $as_test_x conftest$ac_exeext
13202 }; then
13203 ac_cv_lib_Xext_XShapeQueryExtension=yes
13204 else
13205 $as_echo "$as_me: failed program was:" >&5
13206 sed 's/^/| /' conftest.$ac_ext >&5
13207
13208 ac_cv_lib_Xext_XShapeQueryExtension=no
13209 fi
13210
13211 rm -rf conftest.dSYM
13212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13213 conftest$ac_exeext conftest.$ac_ext
13214 LIBS=$ac_check_lib_save_LIBS
13215 fi
13216 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13217 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13218 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13219 cat >>confdefs.h <<_ACEOF
13220 #define HAVE_LIBXEXT 1
13221 _ACEOF
13222
13223 LIBS="-lXext $LIBS"
13224
13225 fi
13226
13227 fi
13228 fi
13229
13230 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13231 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13232 $as_echo_n "checking for Motif version 2.1... " >&6; }
13233 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13234 $as_echo_n "(cached) " >&6
13235 else
13236 cat >conftest.$ac_ext <<_ACEOF
13237 /* confdefs.h. */
13238 _ACEOF
13239 cat confdefs.h >>conftest.$ac_ext
13240 cat >>conftest.$ac_ext <<_ACEOF
13241 /* end confdefs.h. */
13242 #include <Xm/Xm.h>
13243 int
13244 main ()
13245 {
13246 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13247 int x = 5;
13248 #else
13249 Motif version prior to 2.1.
13250 #endif
13251 ;
13252 return 0;
13253 }
13254 _ACEOF
13255 rm -f conftest.$ac_objext
13256 if { (ac_try="$ac_compile"
13257 case "(($ac_try" in
13258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13259 *) ac_try_echo=$ac_try;;
13260 esac
13261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13262 $as_echo "$ac_try_echo") >&5
13263 (eval "$ac_compile") 2>conftest.er1
13264 ac_status=$?
13265 grep -v '^ *+' conftest.er1 >conftest.err
13266 rm -f conftest.er1
13267 cat conftest.err >&5
13268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 (exit $ac_status); } && {
13270 test -z "$ac_c_werror_flag" ||
13271 test ! -s conftest.err
13272 } && test -s conftest.$ac_objext; then
13273 emacs_cv_motif_version_2_1=yes
13274 else
13275 $as_echo "$as_me: failed program was:" >&5
13276 sed 's/^/| /' conftest.$ac_ext >&5
13277
13278 emacs_cv_motif_version_2_1=no
13279 fi
13280
13281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13282 fi
13283 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13284 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13285 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
13286 if test $emacs_cv_motif_version_2_1 = yes; then
13287 HAVE_LIBXP=no
13288
13289 cat >>confdefs.h <<\_ACEOF
13290 #define HAVE_MOTIF_2_1 1
13291 _ACEOF
13292
13293 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13294 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13295 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13296 $as_echo_n "(cached) " >&6
13297 else
13298 ac_check_lib_save_LIBS=$LIBS
13299 LIBS="-lXp $LIBS"
13300 cat >conftest.$ac_ext <<_ACEOF
13301 /* confdefs.h. */
13302 _ACEOF
13303 cat confdefs.h >>conftest.$ac_ext
13304 cat >>conftest.$ac_ext <<_ACEOF
13305 /* end confdefs.h. */
13306
13307 /* Override any GCC internal prototype to avoid an error.
13308 Use char because int might match the return type of a GCC
13309 builtin and then its argument prototype would still apply. */
13310 #ifdef __cplusplus
13311 extern "C"
13312 #endif
13313 char XpCreateContext ();
13314 int
13315 main ()
13316 {
13317 return XpCreateContext ();
13318 ;
13319 return 0;
13320 }
13321 _ACEOF
13322 rm -f conftest.$ac_objext conftest$ac_exeext
13323 if { (ac_try="$ac_link"
13324 case "(($ac_try" in
13325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13326 *) ac_try_echo=$ac_try;;
13327 esac
13328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13329 $as_echo "$ac_try_echo") >&5
13330 (eval "$ac_link") 2>conftest.er1
13331 ac_status=$?
13332 grep -v '^ *+' conftest.er1 >conftest.err
13333 rm -f conftest.er1
13334 cat conftest.err >&5
13335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); } && {
13337 test -z "$ac_c_werror_flag" ||
13338 test ! -s conftest.err
13339 } && test -s conftest$ac_exeext && {
13340 test "$cross_compiling" = yes ||
13341 $as_test_x conftest$ac_exeext
13342 }; then
13343 ac_cv_lib_Xp_XpCreateContext=yes
13344 else
13345 $as_echo "$as_me: failed program was:" >&5
13346 sed 's/^/| /' conftest.$ac_ext >&5
13347
13348 ac_cv_lib_Xp_XpCreateContext=no
13349 fi
13350
13351 rm -rf conftest.dSYM
13352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13353 conftest$ac_exeext conftest.$ac_ext
13354 LIBS=$ac_check_lib_save_LIBS
13355 fi
13356 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13357 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13358 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13359 HAVE_LIBXP=yes
13360 fi
13361
13362 if test ${HAVE_LIBXP} = yes; then
13363
13364 cat >>confdefs.h <<\_ACEOF
13365 #define HAVE_LIBXP 1
13366 _ACEOF
13367
13368 fi
13369 else
13370 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13371 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13372 if test "${emacs_cv_lesstif+set}" = set; then
13373 $as_echo_n "(cached) " >&6
13374 else
13375 # We put this in CFLAGS temporarily to precede other -I options
13376 # that might be in CFLAGS temporarily.
13377 # We put this in CPPFLAGS where it precedes the other -I options.
13378 OLD_CPPFLAGS=$CPPFLAGS
13379 OLD_CFLAGS=$CFLAGS
13380 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13381 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13382 cat >conftest.$ac_ext <<_ACEOF
13383 /* confdefs.h. */
13384 _ACEOF
13385 cat confdefs.h >>conftest.$ac_ext
13386 cat >>conftest.$ac_ext <<_ACEOF
13387 /* end confdefs.h. */
13388 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13389 int
13390 main ()
13391 {
13392 int x = 5;
13393 ;
13394 return 0;
13395 }
13396 _ACEOF
13397 rm -f conftest.$ac_objext
13398 if { (ac_try="$ac_compile"
13399 case "(($ac_try" in
13400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13401 *) ac_try_echo=$ac_try;;
13402 esac
13403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13404 $as_echo "$ac_try_echo") >&5
13405 (eval "$ac_compile") 2>conftest.er1
13406 ac_status=$?
13407 grep -v '^ *+' conftest.er1 >conftest.err
13408 rm -f conftest.er1
13409 cat conftest.err >&5
13410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); } && {
13412 test -z "$ac_c_werror_flag" ||
13413 test ! -s conftest.err
13414 } && test -s conftest.$ac_objext; then
13415 emacs_cv_lesstif=yes
13416 else
13417 $as_echo "$as_me: failed program was:" >&5
13418 sed 's/^/| /' conftest.$ac_ext >&5
13419
13420 emacs_cv_lesstif=no
13421 fi
13422
13423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13424 fi
13425 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13426 $as_echo "$emacs_cv_lesstif" >&6; }
13427 if test $emacs_cv_lesstif = yes; then
13428 # Make sure this -I option remains in CPPFLAGS after it is set
13429 # back to REAL_CPPFLAGS.
13430 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13431 # have those other -I options anyway. Ultimately, having this
13432 # directory ultimately in CPPFLAGS will be enough.
13433 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13434 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13435 else
13436 CFLAGS=$OLD_CFLAGS
13437 CPPFLAGS=$OLD_CPPFLAGS
13438 fi
13439 fi
13440 fi
13441
13442
13443
13444 USE_TOOLKIT_SCROLL_BARS=no
13445 if test "${with_toolkit_scroll_bars}" != "no"; then
13446 if test "${USE_X_TOOLKIT}" != "none"; then
13447 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13448 cat >>confdefs.h <<\_ACEOF
13449 #define USE_TOOLKIT_SCROLL_BARS 1
13450 _ACEOF
13451
13452 HAVE_XAW3D=no
13453 USE_TOOLKIT_SCROLL_BARS=yes
13454 elif test "${HAVE_XAW3D}" = "yes"; then
13455 cat >>confdefs.h <<\_ACEOF
13456 #define USE_TOOLKIT_SCROLL_BARS 1
13457 _ACEOF
13458
13459 USE_TOOLKIT_SCROLL_BARS=yes
13460 fi
13461 elif test "${HAVE_GTK}" = "yes"; then
13462 cat >>confdefs.h <<\_ACEOF
13463 #define USE_TOOLKIT_SCROLL_BARS 1
13464 _ACEOF
13465
13466 USE_TOOLKIT_SCROLL_BARS=yes
13467 elif test "${HAVE_NS}" = "yes"; then
13468 cat >>confdefs.h <<\_ACEOF
13469 #define USE_TOOLKIT_SCROLL_BARS 1
13470 _ACEOF
13471
13472 USE_TOOLKIT_SCROLL_BARS=yes
13473 fi
13474 fi
13475
13476 cat >conftest.$ac_ext <<_ACEOF
13477 /* confdefs.h. */
13478 _ACEOF
13479 cat confdefs.h >>conftest.$ac_ext
13480 cat >>conftest.$ac_ext <<_ACEOF
13481 /* end confdefs.h. */
13482
13483 #include <X11/Xlib.h>
13484 #include <X11/Xresource.h>
13485 int
13486 main ()
13487 {
13488 XIMProc callback;
13489 ;
13490 return 0;
13491 }
13492 _ACEOF
13493 rm -f conftest.$ac_objext
13494 if { (ac_try="$ac_compile"
13495 case "(($ac_try" in
13496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13497 *) ac_try_echo=$ac_try;;
13498 esac
13499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13500 $as_echo "$ac_try_echo") >&5
13501 (eval "$ac_compile") 2>conftest.er1
13502 ac_status=$?
13503 grep -v '^ *+' conftest.er1 >conftest.err
13504 rm -f conftest.er1
13505 cat conftest.err >&5
13506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 (exit $ac_status); } && {
13508 test -z "$ac_c_werror_flag" ||
13509 test ! -s conftest.err
13510 } && test -s conftest.$ac_objext; then
13511 HAVE_XIM=yes
13512
13513 cat >>confdefs.h <<\_ACEOF
13514 #define HAVE_XIM 1
13515 _ACEOF
13516
13517 else
13518 $as_echo "$as_me: failed program was:" >&5
13519 sed 's/^/| /' conftest.$ac_ext >&5
13520
13521 HAVE_XIM=no
13522 fi
13523
13524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13525
13526
13527 if test "${with_xim}" != "no"; then
13528
13529 cat >>confdefs.h <<\_ACEOF
13530 #define USE_XIM 1
13531 _ACEOF
13532
13533 fi
13534
13535
13536 if test "${HAVE_XIM}" != "no"; then
13537 late_CFLAGS=$CFLAGS
13538 if test "$GCC" = yes; then
13539 CFLAGS="$CFLAGS --pedantic-errors"
13540 fi
13541 cat >conftest.$ac_ext <<_ACEOF
13542 /* confdefs.h. */
13543 _ACEOF
13544 cat confdefs.h >>conftest.$ac_ext
13545 cat >>conftest.$ac_ext <<_ACEOF
13546 /* end confdefs.h. */
13547
13548 #include <X11/Xlib.h>
13549 #include <X11/Xresource.h>
13550 int
13551 main ()
13552 {
13553 Display *display;
13554 XrmDatabase db;
13555 char *res_name;
13556 char *res_class;
13557 XIMProc callback;
13558 XPointer *client_data;
13559 #ifndef __GNUC__
13560 /* If we're not using GCC, it's probably not XFree86, and this is
13561 probably right, but we can't use something like --pedantic-errors. */
13562 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13563 char*, XIMProc, XPointer*);
13564 #endif
13565 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13566 client_data);
13567 ;
13568 return 0;
13569 }
13570 _ACEOF
13571 rm -f conftest.$ac_objext
13572 if { (ac_try="$ac_compile"
13573 case "(($ac_try" in
13574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13575 *) ac_try_echo=$ac_try;;
13576 esac
13577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13578 $as_echo "$ac_try_echo") >&5
13579 (eval "$ac_compile") 2>conftest.er1
13580 ac_status=$?
13581 grep -v '^ *+' conftest.er1 >conftest.err
13582 rm -f conftest.er1
13583 cat conftest.err >&5
13584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); } && {
13586 test -z "$ac_c_werror_flag" ||
13587 test ! -s conftest.err
13588 } && test -s conftest.$ac_objext; then
13589 emacs_cv_arg6_star=yes
13590 else
13591 $as_echo "$as_me: failed program was:" >&5
13592 sed 's/^/| /' conftest.$ac_ext >&5
13593
13594
13595 fi
13596
13597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13598
13599 if test "$emacs_cv_arg6_star" = yes; then
13600 cat >>confdefs.h <<\_ACEOF
13601 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13602 _ACEOF
13603
13604 else
13605 cat >>confdefs.h <<\_ACEOF
13606 #define XRegisterIMInstantiateCallback_arg6 XPointer
13607 _ACEOF
13608
13609 fi
13610 CFLAGS=$late_CFLAGS
13611 fi
13612
13613 ### Start of font-backend (under any platform) section.
13614 # (nothing here yet -- this is a placeholder)
13615 ### End of font-backend (under any platform) section.
13616
13617 ### Start of font-backend (under X11) section.
13618 if test "${HAVE_X11}" = "yes"; then
13619
13620 succeeded=no
13621
13622 # Extract the first word of "pkg-config", so it can be a program name with args.
13623 set dummy pkg-config; ac_word=$2
13624 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13625 $as_echo_n "checking for $ac_word... " >&6; }
13626 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13627 $as_echo_n "(cached) " >&6
13628 else
13629 case $PKG_CONFIG in
13630 [\\/]* | ?:[\\/]*)
13631 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13632 ;;
13633 *)
13634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13635 for as_dir in $PATH
13636 do
13637 IFS=$as_save_IFS
13638 test -z "$as_dir" && as_dir=.
13639 for ac_exec_ext in '' $ac_executable_extensions; do
13640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13641 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13642 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13643 break 2
13644 fi
13645 done
13646 done
13647 IFS=$as_save_IFS
13648
13649 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13650 ;;
13651 esac
13652 fi
13653 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13654 if test -n "$PKG_CONFIG"; then
13655 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13656 $as_echo "$PKG_CONFIG" >&6; }
13657 else
13658 { $as_echo "$as_me:$LINENO: result: no" >&5
13659 $as_echo "no" >&6; }
13660 fi
13661
13662
13663
13664 if test "$PKG_CONFIG" = "no" ; then
13665 HAVE_FC=no
13666 else
13667 PKG_CONFIG_MIN_VERSION=0.9.0
13668 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13669 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13670 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13671
13672 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13673 { $as_echo "$as_me:$LINENO: result: yes" >&5
13674 $as_echo "yes" >&6; }
13675 succeeded=yes
13676
13677 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13678 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13679 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13680 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13681 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13682
13683 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13684 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13685 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13686 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13687 $as_echo "$FONTCONFIG_LIBS" >&6; }
13688 else
13689 { $as_echo "$as_me:$LINENO: result: no" >&5
13690 $as_echo "no" >&6; }
13691 FONTCONFIG_CFLAGS=""
13692 FONTCONFIG_LIBS=""
13693 ## If we have a custom action on failure, don't print errors, but
13694 ## do set a variable so people can do so.
13695 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13696
13697 fi
13698
13699
13700
13701 else
13702 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13703 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13704 fi
13705 fi
13706
13707 if test $succeeded = yes; then
13708 HAVE_FC=yes
13709 else
13710 HAVE_FC=no
13711 fi
13712
13713
13714 ## Use -lXft if available, unless `--with-xft=no'.
13715 HAVE_XFT=maybe
13716 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
13717 with_xft="no";
13718 fi
13719 if test "x${with_xft}" != "xno"; then
13720
13721
13722 succeeded=no
13723
13724 # Extract the first word of "pkg-config", so it can be a program name with args.
13725 set dummy pkg-config; ac_word=$2
13726 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13727 $as_echo_n "checking for $ac_word... " >&6; }
13728 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13729 $as_echo_n "(cached) " >&6
13730 else
13731 case $PKG_CONFIG in
13732 [\\/]* | ?:[\\/]*)
13733 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13734 ;;
13735 *)
13736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13737 for as_dir in $PATH
13738 do
13739 IFS=$as_save_IFS
13740 test -z "$as_dir" && as_dir=.
13741 for ac_exec_ext in '' $ac_executable_extensions; do
13742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13743 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13744 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13745 break 2
13746 fi
13747 done
13748 done
13749 IFS=$as_save_IFS
13750
13751 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13752 ;;
13753 esac
13754 fi
13755 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13756 if test -n "$PKG_CONFIG"; then
13757 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13758 $as_echo "$PKG_CONFIG" >&6; }
13759 else
13760 { $as_echo "$as_me:$LINENO: result: no" >&5
13761 $as_echo "no" >&6; }
13762 fi
13763
13764
13765
13766 if test "$PKG_CONFIG" = "no" ; then
13767 HAVE_XFT=no
13768 else
13769 PKG_CONFIG_MIN_VERSION=0.9.0
13770 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13771 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
13772 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13773
13774 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
13775 { $as_echo "$as_me:$LINENO: result: yes" >&5
13776 $as_echo "yes" >&6; }
13777 succeeded=yes
13778
13779 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
13780 $as_echo_n "checking XFT_CFLAGS... " >&6; }
13781 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13782 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
13783 $as_echo "$XFT_CFLAGS" >&6; }
13784
13785 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
13786 $as_echo_n "checking XFT_LIBS... " >&6; }
13787 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13788 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
13789 $as_echo "$XFT_LIBS" >&6; }
13790 else
13791 { $as_echo "$as_me:$LINENO: result: no" >&5
13792 $as_echo "no" >&6; }
13793 XFT_CFLAGS=""
13794 XFT_LIBS=""
13795 ## If we have a custom action on failure, don't print errors, but
13796 ## do set a variable so people can do so.
13797 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
13798
13799 fi
13800
13801
13802
13803 else
13804 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13805 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13806 fi
13807 fi
13808
13809 if test $succeeded = yes; then
13810 :
13811 else
13812 HAVE_XFT=no
13813 fi
13814
13815 ## Because xftfont.c uses XRenderQueryExtension, we also
13816 ## need to link to -lXrender.
13817 HAVE_XRENDER=no
13818 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
13819 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
13820 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
13821 $as_echo_n "(cached) " >&6
13822 else
13823 ac_check_lib_save_LIBS=$LIBS
13824 LIBS="-lXrender $LIBS"
13825 cat >conftest.$ac_ext <<_ACEOF
13826 /* confdefs.h. */
13827 _ACEOF
13828 cat confdefs.h >>conftest.$ac_ext
13829 cat >>conftest.$ac_ext <<_ACEOF
13830 /* end confdefs.h. */
13831
13832 /* Override any GCC internal prototype to avoid an error.
13833 Use char because int might match the return type of a GCC
13834 builtin and then its argument prototype would still apply. */
13835 #ifdef __cplusplus
13836 extern "C"
13837 #endif
13838 char XRenderQueryExtension ();
13839 int
13840 main ()
13841 {
13842 return XRenderQueryExtension ();
13843 ;
13844 return 0;
13845 }
13846 _ACEOF
13847 rm -f conftest.$ac_objext conftest$ac_exeext
13848 if { (ac_try="$ac_link"
13849 case "(($ac_try" in
13850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13851 *) ac_try_echo=$ac_try;;
13852 esac
13853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13854 $as_echo "$ac_try_echo") >&5
13855 (eval "$ac_link") 2>conftest.er1
13856 ac_status=$?
13857 grep -v '^ *+' conftest.er1 >conftest.err
13858 rm -f conftest.er1
13859 cat conftest.err >&5
13860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); } && {
13862 test -z "$ac_c_werror_flag" ||
13863 test ! -s conftest.err
13864 } && test -s conftest$ac_exeext && {
13865 test "$cross_compiling" = yes ||
13866 $as_test_x conftest$ac_exeext
13867 }; then
13868 ac_cv_lib_Xrender_XRenderQueryExtension=yes
13869 else
13870 $as_echo "$as_me: failed program was:" >&5
13871 sed 's/^/| /' conftest.$ac_ext >&5
13872
13873 ac_cv_lib_Xrender_XRenderQueryExtension=no
13874 fi
13875
13876 rm -rf conftest.dSYM
13877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13878 conftest$ac_exeext conftest.$ac_ext
13879 LIBS=$ac_check_lib_save_LIBS
13880 fi
13881 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
13882 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
13883 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
13884 HAVE_XRENDER=yes
13885 fi
13886
13887 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
13888 OLD_CPPFLAGS="$CPPFLAGS"
13889 OLD_CFLAGS="$CFLAGS"
13890 OLD_LIBS="$LIBS"
13891 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13892 CFLAGS="$CFLAGS $XFT_CFLAGS"
13893 XFT_LIBS="-lXrender $XFT_LIBS"
13894 LIBS="$XFT_LIBS $LIBS"
13895 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13896 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13897 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13898 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13899 $as_echo_n "(cached) " >&6
13900 fi
13901 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13902 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13903 else
13904 # Is the header compilable?
13905 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
13906 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
13907 cat >conftest.$ac_ext <<_ACEOF
13908 /* confdefs.h. */
13909 _ACEOF
13910 cat confdefs.h >>conftest.$ac_ext
13911 cat >>conftest.$ac_ext <<_ACEOF
13912 /* end confdefs.h. */
13913 $ac_includes_default
13914 #include <X11/Xft/Xft.h>
13915 _ACEOF
13916 rm -f conftest.$ac_objext
13917 if { (ac_try="$ac_compile"
13918 case "(($ac_try" in
13919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13920 *) ac_try_echo=$ac_try;;
13921 esac
13922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13923 $as_echo "$ac_try_echo") >&5
13924 (eval "$ac_compile") 2>conftest.er1
13925 ac_status=$?
13926 grep -v '^ *+' conftest.er1 >conftest.err
13927 rm -f conftest.er1
13928 cat conftest.err >&5
13929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930 (exit $ac_status); } && {
13931 test -z "$ac_c_werror_flag" ||
13932 test ! -s conftest.err
13933 } && test -s conftest.$ac_objext; then
13934 ac_header_compiler=yes
13935 else
13936 $as_echo "$as_me: failed program was:" >&5
13937 sed 's/^/| /' conftest.$ac_ext >&5
13938
13939 ac_header_compiler=no
13940 fi
13941
13942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13943 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13944 $as_echo "$ac_header_compiler" >&6; }
13945
13946 # Is the header present?
13947 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
13948 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
13949 cat >conftest.$ac_ext <<_ACEOF
13950 /* confdefs.h. */
13951 _ACEOF
13952 cat confdefs.h >>conftest.$ac_ext
13953 cat >>conftest.$ac_ext <<_ACEOF
13954 /* end confdefs.h. */
13955 #include <X11/Xft/Xft.h>
13956 _ACEOF
13957 if { (ac_try="$ac_cpp conftest.$ac_ext"
13958 case "(($ac_try" in
13959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13960 *) ac_try_echo=$ac_try;;
13961 esac
13962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13963 $as_echo "$ac_try_echo") >&5
13964 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13965 ac_status=$?
13966 grep -v '^ *+' conftest.er1 >conftest.err
13967 rm -f conftest.er1
13968 cat conftest.err >&5
13969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); } >/dev/null && {
13971 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13972 test ! -s conftest.err
13973 }; then
13974 ac_header_preproc=yes
13975 else
13976 $as_echo "$as_me: failed program was:" >&5
13977 sed 's/^/| /' conftest.$ac_ext >&5
13978
13979 ac_header_preproc=no
13980 fi
13981
13982 rm -f conftest.err conftest.$ac_ext
13983 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13984 $as_echo "$ac_header_preproc" >&6; }
13985
13986 # So? What about this header?
13987 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13988 yes:no: )
13989 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
13990 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13991 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
13992 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
13993 ac_header_preproc=yes
13994 ;;
13995 no:yes:* )
13996 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
13997 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
13998 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
13999 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
14000 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
14001 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
14002 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
14003 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
14004 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
14005 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
14006 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
14007 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
14008
14009 ;;
14010 esac
14011 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14012 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14013 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14014 $as_echo_n "(cached) " >&6
14015 else
14016 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
14017 fi
14018 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14019 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14020
14021 fi
14022 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
14023 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
14024 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
14025 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
14026 $as_echo_n "(cached) " >&6
14027 else
14028 ac_check_lib_save_LIBS=$LIBS
14029 LIBS="-lXft $XFT_LIBS $LIBS"
14030 cat >conftest.$ac_ext <<_ACEOF
14031 /* confdefs.h. */
14032 _ACEOF
14033 cat confdefs.h >>conftest.$ac_ext
14034 cat >>conftest.$ac_ext <<_ACEOF
14035 /* end confdefs.h. */
14036
14037 /* Override any GCC internal prototype to avoid an error.
14038 Use char because int might match the return type of a GCC
14039 builtin and then its argument prototype would still apply. */
14040 #ifdef __cplusplus
14041 extern "C"
14042 #endif
14043 char XftFontOpen ();
14044 int
14045 main ()
14046 {
14047 return XftFontOpen ();
14048 ;
14049 return 0;
14050 }
14051 _ACEOF
14052 rm -f conftest.$ac_objext conftest$ac_exeext
14053 if { (ac_try="$ac_link"
14054 case "(($ac_try" in
14055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14056 *) ac_try_echo=$ac_try;;
14057 esac
14058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14059 $as_echo "$ac_try_echo") >&5
14060 (eval "$ac_link") 2>conftest.er1
14061 ac_status=$?
14062 grep -v '^ *+' conftest.er1 >conftest.err
14063 rm -f conftest.er1
14064 cat conftest.err >&5
14065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); } && {
14067 test -z "$ac_c_werror_flag" ||
14068 test ! -s conftest.err
14069 } && test -s conftest$ac_exeext && {
14070 test "$cross_compiling" = yes ||
14071 $as_test_x conftest$ac_exeext
14072 }; then
14073 ac_cv_lib_Xft_XftFontOpen=yes
14074 else
14075 $as_echo "$as_me: failed program was:" >&5
14076 sed 's/^/| /' conftest.$ac_ext >&5
14077
14078 ac_cv_lib_Xft_XftFontOpen=no
14079 fi
14080
14081 rm -rf conftest.dSYM
14082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14083 conftest$ac_exeext conftest.$ac_ext
14084 LIBS=$ac_check_lib_save_LIBS
14085 fi
14086 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
14087 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14088 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
14089 HAVE_XFT=yes
14090 fi
14091
14092 fi
14093
14094
14095
14096 if test "${HAVE_XFT}" = "yes"; then
14097
14098 cat >>confdefs.h <<\_ACEOF
14099 #define HAVE_XFT 1
14100 _ACEOF
14101
14102
14103 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
14104 else
14105 CPPFLAGS="$OLD_CPPFLAGS"
14106 CFLAGS="$OLD_CFLAGS"
14107 LIBS="$OLD_LIBS"
14108 fi # "${HAVE_XFT}" = "yes"
14109 fi # "$HAVE_XFT" != no
14110 fi # "x${with_xft}" != "xno"
14111
14112 if test "$HAVE_XFT" != "yes"; then
14113 HAVE_XFT=no
14114 fi
14115
14116
14117 HAVE_FREETYPE=no
14118 ## We used to allow building with FreeType and without Xft.
14119 ## However, the ftx font backend driver is not in good shape.
14120 if test "${HAVE_XFT}" = "yes"; then
14121 HAVE_FREETYPE=yes
14122 FONTCONFIG_CFLAGS=
14123 FONTCONFIG_LIBS=
14124 fi
14125
14126 HAVE_LIBOTF=no
14127 if test "${HAVE_FREETYPE}" = "yes"; then
14128
14129 cat >>confdefs.h <<\_ACEOF
14130 #define HAVE_FREETYPE 1
14131 _ACEOF
14132
14133 if test "${with_libotf}" != "no"; then
14134
14135 succeeded=no
14136
14137 # Extract the first word of "pkg-config", so it can be a program name with args.
14138 set dummy pkg-config; ac_word=$2
14139 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14140 $as_echo_n "checking for $ac_word... " >&6; }
14141 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14142 $as_echo_n "(cached) " >&6
14143 else
14144 case $PKG_CONFIG in
14145 [\\/]* | ?:[\\/]*)
14146 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14147 ;;
14148 *)
14149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14150 for as_dir in $PATH
14151 do
14152 IFS=$as_save_IFS
14153 test -z "$as_dir" && as_dir=.
14154 for ac_exec_ext in '' $ac_executable_extensions; do
14155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14156 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14157 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14158 break 2
14159 fi
14160 done
14161 done
14162 IFS=$as_save_IFS
14163
14164 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14165 ;;
14166 esac
14167 fi
14168 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14169 if test -n "$PKG_CONFIG"; then
14170 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14171 $as_echo "$PKG_CONFIG" >&6; }
14172 else
14173 { $as_echo "$as_me:$LINENO: result: no" >&5
14174 $as_echo "no" >&6; }
14175 fi
14176
14177
14178
14179 if test "$PKG_CONFIG" = "no" ; then
14180 HAVE_LIBOTF=no
14181 else
14182 PKG_CONFIG_MIN_VERSION=0.9.0
14183 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14184 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
14185 $as_echo_n "checking for libotf... " >&6; }
14186
14187 if $PKG_CONFIG --exists "libotf" 2>&5; then
14188 { $as_echo "$as_me:$LINENO: result: yes" >&5
14189 $as_echo "yes" >&6; }
14190 succeeded=yes
14191
14192 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
14193 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14194 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14195 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
14196 $as_echo "$LIBOTF_CFLAGS" >&6; }
14197
14198 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
14199 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
14200 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14201 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
14202 $as_echo "$LIBOTF_LIBS" >&6; }
14203 else
14204 { $as_echo "$as_me:$LINENO: result: no" >&5
14205 $as_echo "no" >&6; }
14206 LIBOTF_CFLAGS=""
14207 LIBOTF_LIBS=""
14208 ## If we have a custom action on failure, don't print errors, but
14209 ## do set a variable so people can do so.
14210 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
14211
14212 fi
14213
14214
14215
14216 else
14217 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14218 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14219 fi
14220 fi
14221
14222 if test $succeeded = yes; then
14223 HAVE_LIBOTF=yes
14224 else
14225 HAVE_LIBOTF=no
14226 fi
14227
14228 if test "$HAVE_LIBOTF" = "yes"; then
14229
14230 cat >>confdefs.h <<\_ACEOF
14231 #define HAVE_LIBOTF 1
14232 _ACEOF
14233
14234 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14235 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14236 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14237 $as_echo_n "(cached) " >&6
14238 else
14239 ac_check_lib_save_LIBS=$LIBS
14240 LIBS="-lotf $LIBS"
14241 cat >conftest.$ac_ext <<_ACEOF
14242 /* confdefs.h. */
14243 _ACEOF
14244 cat confdefs.h >>conftest.$ac_ext
14245 cat >>conftest.$ac_ext <<_ACEOF
14246 /* end confdefs.h. */
14247
14248 /* Override any GCC internal prototype to avoid an error.
14249 Use char because int might match the return type of a GCC
14250 builtin and then its argument prototype would still apply. */
14251 #ifdef __cplusplus
14252 extern "C"
14253 #endif
14254 char OTF_get_variation_glyphs ();
14255 int
14256 main ()
14257 {
14258 return OTF_get_variation_glyphs ();
14259 ;
14260 return 0;
14261 }
14262 _ACEOF
14263 rm -f conftest.$ac_objext conftest$ac_exeext
14264 if { (ac_try="$ac_link"
14265 case "(($ac_try" in
14266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14267 *) ac_try_echo=$ac_try;;
14268 esac
14269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14270 $as_echo "$ac_try_echo") >&5
14271 (eval "$ac_link") 2>conftest.er1
14272 ac_status=$?
14273 grep -v '^ *+' conftest.er1 >conftest.err
14274 rm -f conftest.er1
14275 cat conftest.err >&5
14276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); } && {
14278 test -z "$ac_c_werror_flag" ||
14279 test ! -s conftest.err
14280 } && test -s conftest$ac_exeext && {
14281 test "$cross_compiling" = yes ||
14282 $as_test_x conftest$ac_exeext
14283 }; then
14284 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14285 else
14286 $as_echo "$as_me: failed program was:" >&5
14287 sed 's/^/| /' conftest.$ac_ext >&5
14288
14289 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14290 fi
14291
14292 rm -rf conftest.dSYM
14293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14294 conftest$ac_exeext conftest.$ac_ext
14295 LIBS=$ac_check_lib_save_LIBS
14296 fi
14297 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14298 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14299 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
14300 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14301 else
14302 HAVE_OTF_GET_VARIATION_GLYPHS=no
14303 fi
14304
14305 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14306
14307 cat >>confdefs.h <<\_ACEOF
14308 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14309 _ACEOF
14310
14311 fi
14312 fi
14313 fi
14314 fi
14315
14316 HAVE_M17N_FLT=no
14317 if test "${HAVE_LIBOTF}" = yes; then
14318 if test "${with_m17n_flt}" != "no"; then
14319
14320 succeeded=no
14321
14322 # Extract the first word of "pkg-config", so it can be a program name with args.
14323 set dummy pkg-config; ac_word=$2
14324 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14325 $as_echo_n "checking for $ac_word... " >&6; }
14326 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14327 $as_echo_n "(cached) " >&6
14328 else
14329 case $PKG_CONFIG in
14330 [\\/]* | ?:[\\/]*)
14331 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14332 ;;
14333 *)
14334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14335 for as_dir in $PATH
14336 do
14337 IFS=$as_save_IFS
14338 test -z "$as_dir" && as_dir=.
14339 for ac_exec_ext in '' $ac_executable_extensions; do
14340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14341 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14342 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14343 break 2
14344 fi
14345 done
14346 done
14347 IFS=$as_save_IFS
14348
14349 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14350 ;;
14351 esac
14352 fi
14353 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14354 if test -n "$PKG_CONFIG"; then
14355 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14356 $as_echo "$PKG_CONFIG" >&6; }
14357 else
14358 { $as_echo "$as_me:$LINENO: result: no" >&5
14359 $as_echo "no" >&6; }
14360 fi
14361
14362
14363
14364 if test "$PKG_CONFIG" = "no" ; then
14365 HAVE_M17N_FLT=no
14366 else
14367 PKG_CONFIG_MIN_VERSION=0.9.0
14368 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14369 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14370 $as_echo_n "checking for m17n-flt... " >&6; }
14371
14372 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14373 { $as_echo "$as_me:$LINENO: result: yes" >&5
14374 $as_echo "yes" >&6; }
14375 succeeded=yes
14376
14377 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14378 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14379 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
14380 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14381 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14382
14383 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14384 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14385 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
14386 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14387 $as_echo "$M17N_FLT_LIBS" >&6; }
14388 else
14389 { $as_echo "$as_me:$LINENO: result: no" >&5
14390 $as_echo "no" >&6; }
14391 M17N_FLT_CFLAGS=""
14392 M17N_FLT_LIBS=""
14393 ## If we have a custom action on failure, don't print errors, but
14394 ## do set a variable so people can do so.
14395 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14396
14397 fi
14398
14399
14400
14401 else
14402 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14403 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14404 fi
14405 fi
14406
14407 if test $succeeded = yes; then
14408 HAVE_M17N_FLT=yes
14409 else
14410 HAVE_M17N_FLT=no
14411 fi
14412
14413 if test "$HAVE_M17N_FLT" = "yes"; then
14414
14415 cat >>confdefs.h <<\_ACEOF
14416 #define HAVE_M17N_FLT 1
14417 _ACEOF
14418
14419 fi
14420 fi
14421 fi
14422 else
14423 HAVE_XFT=no
14424 HAVE_FREETYPE=no
14425 HAVE_LIBOTF=no
14426 HAVE_M17N_FLT=no
14427 fi
14428 ### End of font-backend (under X11) section.
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439 ### Use -lXpm if available, unless `--with-xpm=no'.
14440 HAVE_XPM=no
14441 LIBXPM=
14442 if test "${HAVE_X11}" = "yes"; then
14443 if test "${with_xpm}" != "no"; then
14444 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14445 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14446 $as_echo_n "checking for X11/xpm.h... " >&6; }
14447 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14448 $as_echo_n "(cached) " >&6
14449 fi
14450 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14451 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14452 else
14453 # Is the header compilable?
14454 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14455 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14456 cat >conftest.$ac_ext <<_ACEOF
14457 /* confdefs.h. */
14458 _ACEOF
14459 cat confdefs.h >>conftest.$ac_ext
14460 cat >>conftest.$ac_ext <<_ACEOF
14461 /* end confdefs.h. */
14462 $ac_includes_default
14463 #include <X11/xpm.h>
14464 _ACEOF
14465 rm -f conftest.$ac_objext
14466 if { (ac_try="$ac_compile"
14467 case "(($ac_try" in
14468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14469 *) ac_try_echo=$ac_try;;
14470 esac
14471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14472 $as_echo "$ac_try_echo") >&5
14473 (eval "$ac_compile") 2>conftest.er1
14474 ac_status=$?
14475 grep -v '^ *+' conftest.er1 >conftest.err
14476 rm -f conftest.er1
14477 cat conftest.err >&5
14478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); } && {
14480 test -z "$ac_c_werror_flag" ||
14481 test ! -s conftest.err
14482 } && test -s conftest.$ac_objext; then
14483 ac_header_compiler=yes
14484 else
14485 $as_echo "$as_me: failed program was:" >&5
14486 sed 's/^/| /' conftest.$ac_ext >&5
14487
14488 ac_header_compiler=no
14489 fi
14490
14491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14492 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14493 $as_echo "$ac_header_compiler" >&6; }
14494
14495 # Is the header present?
14496 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14497 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14498 cat >conftest.$ac_ext <<_ACEOF
14499 /* confdefs.h. */
14500 _ACEOF
14501 cat confdefs.h >>conftest.$ac_ext
14502 cat >>conftest.$ac_ext <<_ACEOF
14503 /* end confdefs.h. */
14504 #include <X11/xpm.h>
14505 _ACEOF
14506 if { (ac_try="$ac_cpp conftest.$ac_ext"
14507 case "(($ac_try" in
14508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14509 *) ac_try_echo=$ac_try;;
14510 esac
14511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14512 $as_echo "$ac_try_echo") >&5
14513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14514 ac_status=$?
14515 grep -v '^ *+' conftest.er1 >conftest.err
14516 rm -f conftest.er1
14517 cat conftest.err >&5
14518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); } >/dev/null && {
14520 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14521 test ! -s conftest.err
14522 }; then
14523 ac_header_preproc=yes
14524 else
14525 $as_echo "$as_me: failed program was:" >&5
14526 sed 's/^/| /' conftest.$ac_ext >&5
14527
14528 ac_header_preproc=no
14529 fi
14530
14531 rm -f conftest.err conftest.$ac_ext
14532 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14533 $as_echo "$ac_header_preproc" >&6; }
14534
14535 # So? What about this header?
14536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14537 yes:no: )
14538 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14539 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14540 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14541 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14542 ac_header_preproc=yes
14543 ;;
14544 no:yes:* )
14545 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14546 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14547 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14548 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14549 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14550 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14551 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14552 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14553 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14554 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14555 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14556 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14557
14558 ;;
14559 esac
14560 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14561 $as_echo_n "checking for X11/xpm.h... " >&6; }
14562 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14563 $as_echo_n "(cached) " >&6
14564 else
14565 ac_cv_header_X11_xpm_h=$ac_header_preproc
14566 fi
14567 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14568 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14569
14570 fi
14571 if test $ac_cv_header_X11_xpm_h = yes; then
14572 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14573 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14574 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14575 $as_echo_n "(cached) " >&6
14576 else
14577 ac_check_lib_save_LIBS=$LIBS
14578 LIBS="-lXpm -lX11 $LIBS"
14579 cat >conftest.$ac_ext <<_ACEOF
14580 /* confdefs.h. */
14581 _ACEOF
14582 cat confdefs.h >>conftest.$ac_ext
14583 cat >>conftest.$ac_ext <<_ACEOF
14584 /* end confdefs.h. */
14585
14586 /* Override any GCC internal prototype to avoid an error.
14587 Use char because int might match the return type of a GCC
14588 builtin and then its argument prototype would still apply. */
14589 #ifdef __cplusplus
14590 extern "C"
14591 #endif
14592 char XpmReadFileToPixmap ();
14593 int
14594 main ()
14595 {
14596 return XpmReadFileToPixmap ();
14597 ;
14598 return 0;
14599 }
14600 _ACEOF
14601 rm -f conftest.$ac_objext conftest$ac_exeext
14602 if { (ac_try="$ac_link"
14603 case "(($ac_try" in
14604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14605 *) ac_try_echo=$ac_try;;
14606 esac
14607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14608 $as_echo "$ac_try_echo") >&5
14609 (eval "$ac_link") 2>conftest.er1
14610 ac_status=$?
14611 grep -v '^ *+' conftest.er1 >conftest.err
14612 rm -f conftest.er1
14613 cat conftest.err >&5
14614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); } && {
14616 test -z "$ac_c_werror_flag" ||
14617 test ! -s conftest.err
14618 } && test -s conftest$ac_exeext && {
14619 test "$cross_compiling" = yes ||
14620 $as_test_x conftest$ac_exeext
14621 }; then
14622 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14623 else
14624 $as_echo "$as_me: failed program was:" >&5
14625 sed 's/^/| /' conftest.$ac_ext >&5
14626
14627 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14628 fi
14629
14630 rm -rf conftest.dSYM
14631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14632 conftest$ac_exeext conftest.$ac_ext
14633 LIBS=$ac_check_lib_save_LIBS
14634 fi
14635 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14636 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14637 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14638 HAVE_XPM=yes
14639 fi
14640
14641 fi
14642
14643
14644 if test "${HAVE_XPM}" = "yes"; then
14645 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14646 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14647 cat >conftest.$ac_ext <<_ACEOF
14648 /* confdefs.h. */
14649 _ACEOF
14650 cat confdefs.h >>conftest.$ac_ext
14651 cat >>conftest.$ac_ext <<_ACEOF
14652 /* end confdefs.h. */
14653 #include "X11/xpm.h"
14654 #ifndef XpmReturnAllocPixels
14655 no_return_alloc_pixels
14656 #endif
14657
14658 _ACEOF
14659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14660 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14661 HAVE_XPM=no
14662 else
14663 HAVE_XPM=yes
14664 fi
14665 rm -f conftest*
14666
14667
14668 if test "${HAVE_XPM}" = "yes"; then
14669 { $as_echo "$as_me:$LINENO: result: yes" >&5
14670 $as_echo "yes" >&6; }
14671 else
14672 { $as_echo "$as_me:$LINENO: result: no" >&5
14673 $as_echo "no" >&6; }
14674 fi
14675 fi
14676 fi
14677
14678 if test "${HAVE_XPM}" = "yes"; then
14679
14680 cat >>confdefs.h <<\_ACEOF
14681 #define HAVE_XPM 1
14682 _ACEOF
14683
14684 LIBXPM=-lXpm
14685 fi
14686 fi
14687
14688
14689 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14690 HAVE_JPEG=no
14691 LIBJPEG=
14692 if test "${HAVE_X11}" = "yes"; then
14693 if test "${with_jpeg}" != "no"; then
14694 if test "${ac_cv_header_jerror_h+set}" = set; then
14695 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14696 $as_echo_n "checking for jerror.h... " >&6; }
14697 if test "${ac_cv_header_jerror_h+set}" = set; then
14698 $as_echo_n "(cached) " >&6
14699 fi
14700 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14701 $as_echo "$ac_cv_header_jerror_h" >&6; }
14702 else
14703 # Is the header compilable?
14704 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14705 $as_echo_n "checking jerror.h usability... " >&6; }
14706 cat >conftest.$ac_ext <<_ACEOF
14707 /* confdefs.h. */
14708 _ACEOF
14709 cat confdefs.h >>conftest.$ac_ext
14710 cat >>conftest.$ac_ext <<_ACEOF
14711 /* end confdefs.h. */
14712 $ac_includes_default
14713 #include <jerror.h>
14714 _ACEOF
14715 rm -f conftest.$ac_objext
14716 if { (ac_try="$ac_compile"
14717 case "(($ac_try" in
14718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14719 *) ac_try_echo=$ac_try;;
14720 esac
14721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14722 $as_echo "$ac_try_echo") >&5
14723 (eval "$ac_compile") 2>conftest.er1
14724 ac_status=$?
14725 grep -v '^ *+' conftest.er1 >conftest.err
14726 rm -f conftest.er1
14727 cat conftest.err >&5
14728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); } && {
14730 test -z "$ac_c_werror_flag" ||
14731 test ! -s conftest.err
14732 } && test -s conftest.$ac_objext; then
14733 ac_header_compiler=yes
14734 else
14735 $as_echo "$as_me: failed program was:" >&5
14736 sed 's/^/| /' conftest.$ac_ext >&5
14737
14738 ac_header_compiler=no
14739 fi
14740
14741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14742 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14743 $as_echo "$ac_header_compiler" >&6; }
14744
14745 # Is the header present?
14746 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
14747 $as_echo_n "checking jerror.h presence... " >&6; }
14748 cat >conftest.$ac_ext <<_ACEOF
14749 /* confdefs.h. */
14750 _ACEOF
14751 cat confdefs.h >>conftest.$ac_ext
14752 cat >>conftest.$ac_ext <<_ACEOF
14753 /* end confdefs.h. */
14754 #include <jerror.h>
14755 _ACEOF
14756 if { (ac_try="$ac_cpp conftest.$ac_ext"
14757 case "(($ac_try" in
14758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14759 *) ac_try_echo=$ac_try;;
14760 esac
14761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14762 $as_echo "$ac_try_echo") >&5
14763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14764 ac_status=$?
14765 grep -v '^ *+' conftest.er1 >conftest.err
14766 rm -f conftest.er1
14767 cat conftest.err >&5
14768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 (exit $ac_status); } >/dev/null && {
14770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14771 test ! -s conftest.err
14772 }; then
14773 ac_header_preproc=yes
14774 else
14775 $as_echo "$as_me: failed program was:" >&5
14776 sed 's/^/| /' conftest.$ac_ext >&5
14777
14778 ac_header_preproc=no
14779 fi
14780
14781 rm -f conftest.err conftest.$ac_ext
14782 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14783 $as_echo "$ac_header_preproc" >&6; }
14784
14785 # So? What about this header?
14786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14787 yes:no: )
14788 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14789 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14790 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14791 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14792 ac_header_preproc=yes
14793 ;;
14794 no:yes:* )
14795 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14796 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14797 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14798 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14799 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14800 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14801 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14802 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14803 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14804 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14805 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14806 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14807
14808 ;;
14809 esac
14810 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14811 $as_echo_n "checking for jerror.h... " >&6; }
14812 if test "${ac_cv_header_jerror_h+set}" = set; then
14813 $as_echo_n "(cached) " >&6
14814 else
14815 ac_cv_header_jerror_h=$ac_header_preproc
14816 fi
14817 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14818 $as_echo "$ac_cv_header_jerror_h" >&6; }
14819
14820 fi
14821 if test $ac_cv_header_jerror_h = yes; then
14822 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14823 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
14824 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14825 $as_echo_n "(cached) " >&6
14826 else
14827 ac_check_lib_save_LIBS=$LIBS
14828 LIBS="-ljpeg $LIBS"
14829 cat >conftest.$ac_ext <<_ACEOF
14830 /* confdefs.h. */
14831 _ACEOF
14832 cat confdefs.h >>conftest.$ac_ext
14833 cat >>conftest.$ac_ext <<_ACEOF
14834 /* end confdefs.h. */
14835
14836 /* Override any GCC internal prototype to avoid an error.
14837 Use char because int might match the return type of a GCC
14838 builtin and then its argument prototype would still apply. */
14839 #ifdef __cplusplus
14840 extern "C"
14841 #endif
14842 char jpeg_destroy_compress ();
14843 int
14844 main ()
14845 {
14846 return jpeg_destroy_compress ();
14847 ;
14848 return 0;
14849 }
14850 _ACEOF
14851 rm -f conftest.$ac_objext conftest$ac_exeext
14852 if { (ac_try="$ac_link"
14853 case "(($ac_try" in
14854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14855 *) ac_try_echo=$ac_try;;
14856 esac
14857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14858 $as_echo "$ac_try_echo") >&5
14859 (eval "$ac_link") 2>conftest.er1
14860 ac_status=$?
14861 grep -v '^ *+' conftest.er1 >conftest.err
14862 rm -f conftest.er1
14863 cat conftest.err >&5
14864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); } && {
14866 test -z "$ac_c_werror_flag" ||
14867 test ! -s conftest.err
14868 } && test -s conftest$ac_exeext && {
14869 test "$cross_compiling" = yes ||
14870 $as_test_x conftest$ac_exeext
14871 }; then
14872 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14873 else
14874 $as_echo "$as_me: failed program was:" >&5
14875 sed 's/^/| /' conftest.$ac_ext >&5
14876
14877 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14878 fi
14879
14880 rm -rf conftest.dSYM
14881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14882 conftest$ac_exeext conftest.$ac_ext
14883 LIBS=$ac_check_lib_save_LIBS
14884 fi
14885 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14886 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14887 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
14888 HAVE_JPEG=yes
14889 fi
14890
14891 fi
14892
14893
14894 fi
14895
14896
14897 if test "${HAVE_JPEG}" = "yes"; then
14898 cat >>confdefs.h <<\_ACEOF
14899 #define HAVE_JPEG 1
14900 _ACEOF
14901
14902 cat >conftest.$ac_ext <<_ACEOF
14903 /* confdefs.h. */
14904 _ACEOF
14905 cat confdefs.h >>conftest.$ac_ext
14906 cat >>conftest.$ac_ext <<_ACEOF
14907 /* end confdefs.h. */
14908 #include <jpeglib.h>
14909 version=JPEG_LIB_VERSION
14910
14911 _ACEOF
14912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14913 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
14914 cat >>confdefs.h <<\_ACEOF
14915 #define HAVE_JPEG 1
14916 _ACEOF
14917
14918 else
14919 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
14920 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
14921 HAVE_JPEG=no
14922 fi
14923 rm -f conftest*
14924
14925 fi
14926 if test "${HAVE_JPEG}" = "yes"; then
14927 LIBJPEG=-ljpeg
14928 fi
14929 fi
14930
14931
14932 ### Use -lpng if available, unless `--with-png=no'.
14933 HAVE_PNG=no
14934 LIBPNG=
14935 if test "${HAVE_X11}" = "yes"; then
14936 if test "${with_png}" != "no"; then
14937 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14938 # in /usr/include/libpng.
14939
14940
14941 for ac_header in png.h libpng/png.h
14942 do
14943 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14945 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14946 $as_echo_n "checking for $ac_header... " >&6; }
14947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14948 $as_echo_n "(cached) " >&6
14949 fi
14950 ac_res=`eval 'as_val=${'$as_ac_Header'}
14951 $as_echo "$as_val"'`
14952 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14953 $as_echo "$ac_res" >&6; }
14954 else
14955 # Is the header compilable?
14956 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14957 $as_echo_n "checking $ac_header usability... " >&6; }
14958 cat >conftest.$ac_ext <<_ACEOF
14959 /* confdefs.h. */
14960 _ACEOF
14961 cat confdefs.h >>conftest.$ac_ext
14962 cat >>conftest.$ac_ext <<_ACEOF
14963 /* end confdefs.h. */
14964 $ac_includes_default
14965 #include <$ac_header>
14966 _ACEOF
14967 rm -f conftest.$ac_objext
14968 if { (ac_try="$ac_compile"
14969 case "(($ac_try" in
14970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14971 *) ac_try_echo=$ac_try;;
14972 esac
14973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14974 $as_echo "$ac_try_echo") >&5
14975 (eval "$ac_compile") 2>conftest.er1
14976 ac_status=$?
14977 grep -v '^ *+' conftest.er1 >conftest.err
14978 rm -f conftest.er1
14979 cat conftest.err >&5
14980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); } && {
14982 test -z "$ac_c_werror_flag" ||
14983 test ! -s conftest.err
14984 } && test -s conftest.$ac_objext; then
14985 ac_header_compiler=yes
14986 else
14987 $as_echo "$as_me: failed program was:" >&5
14988 sed 's/^/| /' conftest.$ac_ext >&5
14989
14990 ac_header_compiler=no
14991 fi
14992
14993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14994 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14995 $as_echo "$ac_header_compiler" >&6; }
14996
14997 # Is the header present?
14998 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14999 $as_echo_n "checking $ac_header presence... " >&6; }
15000 cat >conftest.$ac_ext <<_ACEOF
15001 /* confdefs.h. */
15002 _ACEOF
15003 cat confdefs.h >>conftest.$ac_ext
15004 cat >>conftest.$ac_ext <<_ACEOF
15005 /* end confdefs.h. */
15006 #include <$ac_header>
15007 _ACEOF
15008 if { (ac_try="$ac_cpp conftest.$ac_ext"
15009 case "(($ac_try" in
15010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15011 *) ac_try_echo=$ac_try;;
15012 esac
15013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15014 $as_echo "$ac_try_echo") >&5
15015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15016 ac_status=$?
15017 grep -v '^ *+' conftest.er1 >conftest.err
15018 rm -f conftest.er1
15019 cat conftest.err >&5
15020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021 (exit $ac_status); } >/dev/null && {
15022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15023 test ! -s conftest.err
15024 }; then
15025 ac_header_preproc=yes
15026 else
15027 $as_echo "$as_me: failed program was:" >&5
15028 sed 's/^/| /' conftest.$ac_ext >&5
15029
15030 ac_header_preproc=no
15031 fi
15032
15033 rm -f conftest.err conftest.$ac_ext
15034 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15035 $as_echo "$ac_header_preproc" >&6; }
15036
15037 # So? What about this header?
15038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15039 yes:no: )
15040 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15041 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15042 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15043 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15044 ac_header_preproc=yes
15045 ;;
15046 no:yes:* )
15047 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15048 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15049 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15050 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15051 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15052 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15053 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15054 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15055 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15056 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15057 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15058 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15059
15060 ;;
15061 esac
15062 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15063 $as_echo_n "checking for $ac_header... " >&6; }
15064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15065 $as_echo_n "(cached) " >&6
15066 else
15067 eval "$as_ac_Header=\$ac_header_preproc"
15068 fi
15069 ac_res=`eval 'as_val=${'$as_ac_Header'}
15070 $as_echo "$as_val"'`
15071 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15072 $as_echo "$ac_res" >&6; }
15073
15074 fi
15075 if test `eval 'as_val=${'$as_ac_Header'}
15076 $as_echo "$as_val"'` = yes; then
15077 cat >>confdefs.h <<_ACEOF
15078 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15079 _ACEOF
15080
15081 fi
15082
15083 done
15084
15085 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
15086 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
15087 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
15088 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
15089 $as_echo_n "(cached) " >&6
15090 else
15091 ac_check_lib_save_LIBS=$LIBS
15092 LIBS="-lpng -lz -lm $LIBS"
15093 cat >conftest.$ac_ext <<_ACEOF
15094 /* confdefs.h. */
15095 _ACEOF
15096 cat confdefs.h >>conftest.$ac_ext
15097 cat >>conftest.$ac_ext <<_ACEOF
15098 /* end confdefs.h. */
15099
15100 /* Override any GCC internal prototype to avoid an error.
15101 Use char because int might match the return type of a GCC
15102 builtin and then its argument prototype would still apply. */
15103 #ifdef __cplusplus
15104 extern "C"
15105 #endif
15106 char png_get_channels ();
15107 int
15108 main ()
15109 {
15110 return png_get_channels ();
15111 ;
15112 return 0;
15113 }
15114 _ACEOF
15115 rm -f conftest.$ac_objext conftest$ac_exeext
15116 if { (ac_try="$ac_link"
15117 case "(($ac_try" in
15118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15119 *) ac_try_echo=$ac_try;;
15120 esac
15121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15122 $as_echo "$ac_try_echo") >&5
15123 (eval "$ac_link") 2>conftest.er1
15124 ac_status=$?
15125 grep -v '^ *+' conftest.er1 >conftest.err
15126 rm -f conftest.er1
15127 cat conftest.err >&5
15128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); } && {
15130 test -z "$ac_c_werror_flag" ||
15131 test ! -s conftest.err
15132 } && test -s conftest$ac_exeext && {
15133 test "$cross_compiling" = yes ||
15134 $as_test_x conftest$ac_exeext
15135 }; then
15136 ac_cv_lib_png_png_get_channels=yes
15137 else
15138 $as_echo "$as_me: failed program was:" >&5
15139 sed 's/^/| /' conftest.$ac_ext >&5
15140
15141 ac_cv_lib_png_png_get_channels=no
15142 fi
15143
15144 rm -rf conftest.dSYM
15145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15146 conftest$ac_exeext conftest.$ac_ext
15147 LIBS=$ac_check_lib_save_LIBS
15148 fi
15149 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
15150 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
15151 if test $ac_cv_lib_png_png_get_channels = yes; then
15152 HAVE_PNG=yes
15153 fi
15154
15155 fi
15156 fi
15157
15158 if test "${HAVE_PNG}" = "yes"; then
15159
15160 cat >>confdefs.h <<\_ACEOF
15161 #define HAVE_PNG 1
15162 _ACEOF
15163
15164 LIBPNG="-lpng -lz -lm"
15165 fi
15166 fi
15167
15168
15169 ### Use -ltiff if available, unless `--with-tiff=no'.
15170 HAVE_TIFF=no
15171 LIBTIFF=
15172 if test "${HAVE_X11}" = "yes"; then
15173 if test "${with_tiff}" != "no"; then
15174 if test "${ac_cv_header_tiffio_h+set}" = set; then
15175 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15176 $as_echo_n "checking for tiffio.h... " >&6; }
15177 if test "${ac_cv_header_tiffio_h+set}" = set; then
15178 $as_echo_n "(cached) " >&6
15179 fi
15180 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15181 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15182 else
15183 # Is the header compilable?
15184 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15185 $as_echo_n "checking tiffio.h usability... " >&6; }
15186 cat >conftest.$ac_ext <<_ACEOF
15187 /* confdefs.h. */
15188 _ACEOF
15189 cat confdefs.h >>conftest.$ac_ext
15190 cat >>conftest.$ac_ext <<_ACEOF
15191 /* end confdefs.h. */
15192 $ac_includes_default
15193 #include <tiffio.h>
15194 _ACEOF
15195 rm -f conftest.$ac_objext
15196 if { (ac_try="$ac_compile"
15197 case "(($ac_try" in
15198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15199 *) ac_try_echo=$ac_try;;
15200 esac
15201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15202 $as_echo "$ac_try_echo") >&5
15203 (eval "$ac_compile") 2>conftest.er1
15204 ac_status=$?
15205 grep -v '^ *+' conftest.er1 >conftest.err
15206 rm -f conftest.er1
15207 cat conftest.err >&5
15208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209 (exit $ac_status); } && {
15210 test -z "$ac_c_werror_flag" ||
15211 test ! -s conftest.err
15212 } && test -s conftest.$ac_objext; then
15213 ac_header_compiler=yes
15214 else
15215 $as_echo "$as_me: failed program was:" >&5
15216 sed 's/^/| /' conftest.$ac_ext >&5
15217
15218 ac_header_compiler=no
15219 fi
15220
15221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15222 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15223 $as_echo "$ac_header_compiler" >&6; }
15224
15225 # Is the header present?
15226 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15227 $as_echo_n "checking tiffio.h presence... " >&6; }
15228 cat >conftest.$ac_ext <<_ACEOF
15229 /* confdefs.h. */
15230 _ACEOF
15231 cat confdefs.h >>conftest.$ac_ext
15232 cat >>conftest.$ac_ext <<_ACEOF
15233 /* end confdefs.h. */
15234 #include <tiffio.h>
15235 _ACEOF
15236 if { (ac_try="$ac_cpp conftest.$ac_ext"
15237 case "(($ac_try" in
15238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15239 *) ac_try_echo=$ac_try;;
15240 esac
15241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15242 $as_echo "$ac_try_echo") >&5
15243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15244 ac_status=$?
15245 grep -v '^ *+' conftest.er1 >conftest.err
15246 rm -f conftest.er1
15247 cat conftest.err >&5
15248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); } >/dev/null && {
15250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15251 test ! -s conftest.err
15252 }; then
15253 ac_header_preproc=yes
15254 else
15255 $as_echo "$as_me: failed program was:" >&5
15256 sed 's/^/| /' conftest.$ac_ext >&5
15257
15258 ac_header_preproc=no
15259 fi
15260
15261 rm -f conftest.err conftest.$ac_ext
15262 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15263 $as_echo "$ac_header_preproc" >&6; }
15264
15265 # So? What about this header?
15266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15267 yes:no: )
15268 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15269 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15270 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15271 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15272 ac_header_preproc=yes
15273 ;;
15274 no:yes:* )
15275 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15276 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15277 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15278 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15279 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15280 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15281 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15282 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15283 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15284 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15285 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15286 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15287
15288 ;;
15289 esac
15290 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15291 $as_echo_n "checking for tiffio.h... " >&6; }
15292 if test "${ac_cv_header_tiffio_h+set}" = set; then
15293 $as_echo_n "(cached) " >&6
15294 else
15295 ac_cv_header_tiffio_h=$ac_header_preproc
15296 fi
15297 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15298 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15299
15300 fi
15301 if test $ac_cv_header_tiffio_h = yes; then
15302 tifflibs="-lz -lm"
15303 # At least one tiff package requires the jpeg library.
15304 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
15305 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15306 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15307 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15308 $as_echo_n "(cached) " >&6
15309 else
15310 ac_check_lib_save_LIBS=$LIBS
15311 LIBS="-ltiff $tifflibs $LIBS"
15312 cat >conftest.$ac_ext <<_ACEOF
15313 /* confdefs.h. */
15314 _ACEOF
15315 cat confdefs.h >>conftest.$ac_ext
15316 cat >>conftest.$ac_ext <<_ACEOF
15317 /* end confdefs.h. */
15318
15319 /* Override any GCC internal prototype to avoid an error.
15320 Use char because int might match the return type of a GCC
15321 builtin and then its argument prototype would still apply. */
15322 #ifdef __cplusplus
15323 extern "C"
15324 #endif
15325 char TIFFGetVersion ();
15326 int
15327 main ()
15328 {
15329 return TIFFGetVersion ();
15330 ;
15331 return 0;
15332 }
15333 _ACEOF
15334 rm -f conftest.$ac_objext conftest$ac_exeext
15335 if { (ac_try="$ac_link"
15336 case "(($ac_try" in
15337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15338 *) ac_try_echo=$ac_try;;
15339 esac
15340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15341 $as_echo "$ac_try_echo") >&5
15342 (eval "$ac_link") 2>conftest.er1
15343 ac_status=$?
15344 grep -v '^ *+' conftest.er1 >conftest.err
15345 rm -f conftest.er1
15346 cat conftest.err >&5
15347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); } && {
15349 test -z "$ac_c_werror_flag" ||
15350 test ! -s conftest.err
15351 } && test -s conftest$ac_exeext && {
15352 test "$cross_compiling" = yes ||
15353 $as_test_x conftest$ac_exeext
15354 }; then
15355 ac_cv_lib_tiff_TIFFGetVersion=yes
15356 else
15357 $as_echo "$as_me: failed program was:" >&5
15358 sed 's/^/| /' conftest.$ac_ext >&5
15359
15360 ac_cv_lib_tiff_TIFFGetVersion=no
15361 fi
15362
15363 rm -rf conftest.dSYM
15364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15365 conftest$ac_exeext conftest.$ac_ext
15366 LIBS=$ac_check_lib_save_LIBS
15367 fi
15368 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15369 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15370 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
15371 HAVE_TIFF=yes
15372 fi
15373
15374 fi
15375
15376
15377 fi
15378
15379 if test "${HAVE_TIFF}" = "yes"; then
15380
15381 cat >>confdefs.h <<\_ACEOF
15382 #define HAVE_TIFF 1
15383 _ACEOF
15384
15385 LIBTIFF=-ltiff
15386 fi
15387 fi
15388
15389
15390 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
15391 HAVE_GIF=no
15392 LIBGIF=
15393 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15394 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15395 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15396 $as_echo_n "checking for gif_lib.h... " >&6; }
15397 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15398 $as_echo_n "(cached) " >&6
15399 fi
15400 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15401 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15402 else
15403 # Is the header compilable?
15404 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15405 $as_echo_n "checking gif_lib.h usability... " >&6; }
15406 cat >conftest.$ac_ext <<_ACEOF
15407 /* confdefs.h. */
15408 _ACEOF
15409 cat confdefs.h >>conftest.$ac_ext
15410 cat >>conftest.$ac_ext <<_ACEOF
15411 /* end confdefs.h. */
15412 $ac_includes_default
15413 #include <gif_lib.h>
15414 _ACEOF
15415 rm -f conftest.$ac_objext
15416 if { (ac_try="$ac_compile"
15417 case "(($ac_try" in
15418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15419 *) ac_try_echo=$ac_try;;
15420 esac
15421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15422 $as_echo "$ac_try_echo") >&5
15423 (eval "$ac_compile") 2>conftest.er1
15424 ac_status=$?
15425 grep -v '^ *+' conftest.er1 >conftest.err
15426 rm -f conftest.er1
15427 cat conftest.err >&5
15428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); } && {
15430 test -z "$ac_c_werror_flag" ||
15431 test ! -s conftest.err
15432 } && test -s conftest.$ac_objext; then
15433 ac_header_compiler=yes
15434 else
15435 $as_echo "$as_me: failed program was:" >&5
15436 sed 's/^/| /' conftest.$ac_ext >&5
15437
15438 ac_header_compiler=no
15439 fi
15440
15441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15442 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15443 $as_echo "$ac_header_compiler" >&6; }
15444
15445 # Is the header present?
15446 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15447 $as_echo_n "checking gif_lib.h presence... " >&6; }
15448 cat >conftest.$ac_ext <<_ACEOF
15449 /* confdefs.h. */
15450 _ACEOF
15451 cat confdefs.h >>conftest.$ac_ext
15452 cat >>conftest.$ac_ext <<_ACEOF
15453 /* end confdefs.h. */
15454 #include <gif_lib.h>
15455 _ACEOF
15456 if { (ac_try="$ac_cpp conftest.$ac_ext"
15457 case "(($ac_try" in
15458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15459 *) ac_try_echo=$ac_try;;
15460 esac
15461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15462 $as_echo "$ac_try_echo") >&5
15463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15464 ac_status=$?
15465 grep -v '^ *+' conftest.er1 >conftest.err
15466 rm -f conftest.er1
15467 cat conftest.err >&5
15468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); } >/dev/null && {
15470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15471 test ! -s conftest.err
15472 }; then
15473 ac_header_preproc=yes
15474 else
15475 $as_echo "$as_me: failed program was:" >&5
15476 sed 's/^/| /' conftest.$ac_ext >&5
15477
15478 ac_header_preproc=no
15479 fi
15480
15481 rm -f conftest.err conftest.$ac_ext
15482 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15483 $as_echo "$ac_header_preproc" >&6; }
15484
15485 # So? What about this header?
15486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15487 yes:no: )
15488 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15489 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15490 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
15491 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
15492 ac_header_preproc=yes
15493 ;;
15494 no:yes:* )
15495 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15496 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15497 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15498 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15499 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15500 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15501 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15502 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15503 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15504 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15505 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15506 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15507
15508 ;;
15509 esac
15510 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15511 $as_echo_n "checking for gif_lib.h... " >&6; }
15512 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15513 $as_echo_n "(cached) " >&6
15514 else
15515 ac_cv_header_gif_lib_h=$ac_header_preproc
15516 fi
15517 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15518 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15519
15520 fi
15521 if test $ac_cv_header_gif_lib_h = yes; then
15522 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15523 # Earlier versions can crash Emacs.
15524 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15525 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15526 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15527 $as_echo_n "(cached) " >&6
15528 else
15529 ac_check_lib_save_LIBS=$LIBS
15530 LIBS="-lgif $LIBS"
15531 cat >conftest.$ac_ext <<_ACEOF
15532 /* confdefs.h. */
15533 _ACEOF
15534 cat confdefs.h >>conftest.$ac_ext
15535 cat >>conftest.$ac_ext <<_ACEOF
15536 /* end confdefs.h. */
15537
15538 /* Override any GCC internal prototype to avoid an error.
15539 Use char because int might match the return type of a GCC
15540 builtin and then its argument prototype would still apply. */
15541 #ifdef __cplusplus
15542 extern "C"
15543 #endif
15544 char EGifPutExtensionLast ();
15545 int
15546 main ()
15547 {
15548 return EGifPutExtensionLast ();
15549 ;
15550 return 0;
15551 }
15552 _ACEOF
15553 rm -f conftest.$ac_objext conftest$ac_exeext
15554 if { (ac_try="$ac_link"
15555 case "(($ac_try" in
15556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15557 *) ac_try_echo=$ac_try;;
15558 esac
15559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15560 $as_echo "$ac_try_echo") >&5
15561 (eval "$ac_link") 2>conftest.er1
15562 ac_status=$?
15563 grep -v '^ *+' conftest.er1 >conftest.err
15564 rm -f conftest.er1
15565 cat conftest.err >&5
15566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); } && {
15568 test -z "$ac_c_werror_flag" ||
15569 test ! -s conftest.err
15570 } && test -s conftest$ac_exeext && {
15571 test "$cross_compiling" = yes ||
15572 $as_test_x conftest$ac_exeext
15573 }; then
15574 ac_cv_lib_gif_EGifPutExtensionLast=yes
15575 else
15576 $as_echo "$as_me: failed program was:" >&5
15577 sed 's/^/| /' conftest.$ac_ext >&5
15578
15579 ac_cv_lib_gif_EGifPutExtensionLast=no
15580 fi
15581
15582 rm -rf conftest.dSYM
15583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15584 conftest$ac_exeext conftest.$ac_ext
15585 LIBS=$ac_check_lib_save_LIBS
15586 fi
15587 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15588 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15589 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15590 HAVE_GIF=yes
15591 else
15592 HAVE_GIF=maybe
15593 fi
15594
15595 fi
15596
15597
15598
15599 if test "$HAVE_GIF" = yes; then
15600 LIBGIF=-lgif
15601 elif test "$HAVE_GIF" = maybe; then
15602 # If gif_lib.h but no libgif, try libungif.
15603 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15604 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15605 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15606 $as_echo_n "(cached) " >&6
15607 else
15608 ac_check_lib_save_LIBS=$LIBS
15609 LIBS="-lungif $LIBS"
15610 cat >conftest.$ac_ext <<_ACEOF
15611 /* confdefs.h. */
15612 _ACEOF
15613 cat confdefs.h >>conftest.$ac_ext
15614 cat >>conftest.$ac_ext <<_ACEOF
15615 /* end confdefs.h. */
15616
15617 /* Override any GCC internal prototype to avoid an error.
15618 Use char because int might match the return type of a GCC
15619 builtin and then its argument prototype would still apply. */
15620 #ifdef __cplusplus
15621 extern "C"
15622 #endif
15623 char EGifPutExtensionLast ();
15624 int
15625 main ()
15626 {
15627 return EGifPutExtensionLast ();
15628 ;
15629 return 0;
15630 }
15631 _ACEOF
15632 rm -f conftest.$ac_objext conftest$ac_exeext
15633 if { (ac_try="$ac_link"
15634 case "(($ac_try" in
15635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15636 *) ac_try_echo=$ac_try;;
15637 esac
15638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15639 $as_echo "$ac_try_echo") >&5
15640 (eval "$ac_link") 2>conftest.er1
15641 ac_status=$?
15642 grep -v '^ *+' conftest.er1 >conftest.err
15643 rm -f conftest.er1
15644 cat conftest.err >&5
15645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); } && {
15647 test -z "$ac_c_werror_flag" ||
15648 test ! -s conftest.err
15649 } && test -s conftest$ac_exeext && {
15650 test "$cross_compiling" = yes ||
15651 $as_test_x conftest$ac_exeext
15652 }; then
15653 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15654 else
15655 $as_echo "$as_me: failed program was:" >&5
15656 sed 's/^/| /' conftest.$ac_ext >&5
15657
15658 ac_cv_lib_ungif_EGifPutExtensionLast=no
15659 fi
15660
15661 rm -rf conftest.dSYM
15662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15663 conftest$ac_exeext conftest.$ac_ext
15664 LIBS=$ac_check_lib_save_LIBS
15665 fi
15666 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15667 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15668 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15669 HAVE_GIF=yes
15670 else
15671 HAVE_GIF=no
15672 fi
15673
15674 test "$HAVE_GIF" = yes && LIBGIF=-lungif
15675 fi
15676
15677 if test "${HAVE_GIF}" = "yes"; then
15678
15679 cat >>confdefs.h <<\_ACEOF
15680 #define HAVE_GIF 1
15681 _ACEOF
15682
15683 fi
15684 fi
15685
15686
15687 if test "${HAVE_X11}" = "yes"; then
15688 MISSING=""
15689 WITH_NO=""
15690 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15691 MISSING="libXpm" && WITH_NO="--with-xpm=no"
15692 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15693 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
15694 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15695 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
15696 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15697 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
15698 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15699 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15700
15701 if test "X${MISSING}" != X; then
15702 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15703 $MISSING
15704 Maybe some development libraries/packages are missing?
15705 If you don't want to link with them give
15706 $WITH_NO
15707 as options to configure" >&5
15708 $as_echo "$as_me: error: The following required libraries were not found:
15709 $MISSING
15710 Maybe some development libraries/packages are missing?
15711 If you don't want to link with them give
15712 $WITH_NO
15713 as options to configure" >&2;}
15714 { (exit 1); exit 1; }; }
15715 fi
15716 fi
15717
15718 ### Use -lgpm if available, unless `--with-gpm=no'.
15719 HAVE_GPM=no
15720 LIBGPM=
15721 if test "${with_gpm}" != "no"; then
15722 if test "${ac_cv_header_gpm_h+set}" = set; then
15723 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15724 $as_echo_n "checking for gpm.h... " >&6; }
15725 if test "${ac_cv_header_gpm_h+set}" = set; then
15726 $as_echo_n "(cached) " >&6
15727 fi
15728 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15729 $as_echo "$ac_cv_header_gpm_h" >&6; }
15730 else
15731 # Is the header compilable?
15732 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
15733 $as_echo_n "checking gpm.h usability... " >&6; }
15734 cat >conftest.$ac_ext <<_ACEOF
15735 /* confdefs.h. */
15736 _ACEOF
15737 cat confdefs.h >>conftest.$ac_ext
15738 cat >>conftest.$ac_ext <<_ACEOF
15739 /* end confdefs.h. */
15740 $ac_includes_default
15741 #include <gpm.h>
15742 _ACEOF
15743 rm -f conftest.$ac_objext
15744 if { (ac_try="$ac_compile"
15745 case "(($ac_try" in
15746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15747 *) ac_try_echo=$ac_try;;
15748 esac
15749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15750 $as_echo "$ac_try_echo") >&5
15751 (eval "$ac_compile") 2>conftest.er1
15752 ac_status=$?
15753 grep -v '^ *+' conftest.er1 >conftest.err
15754 rm -f conftest.er1
15755 cat conftest.err >&5
15756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); } && {
15758 test -z "$ac_c_werror_flag" ||
15759 test ! -s conftest.err
15760 } && test -s conftest.$ac_objext; then
15761 ac_header_compiler=yes
15762 else
15763 $as_echo "$as_me: failed program was:" >&5
15764 sed 's/^/| /' conftest.$ac_ext >&5
15765
15766 ac_header_compiler=no
15767 fi
15768
15769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15770 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15771 $as_echo "$ac_header_compiler" >&6; }
15772
15773 # Is the header present?
15774 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
15775 $as_echo_n "checking gpm.h presence... " >&6; }
15776 cat >conftest.$ac_ext <<_ACEOF
15777 /* confdefs.h. */
15778 _ACEOF
15779 cat confdefs.h >>conftest.$ac_ext
15780 cat >>conftest.$ac_ext <<_ACEOF
15781 /* end confdefs.h. */
15782 #include <gpm.h>
15783 _ACEOF
15784 if { (ac_try="$ac_cpp conftest.$ac_ext"
15785 case "(($ac_try" in
15786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15787 *) ac_try_echo=$ac_try;;
15788 esac
15789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15790 $as_echo "$ac_try_echo") >&5
15791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15792 ac_status=$?
15793 grep -v '^ *+' conftest.er1 >conftest.err
15794 rm -f conftest.er1
15795 cat conftest.err >&5
15796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); } >/dev/null && {
15798 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15799 test ! -s conftest.err
15800 }; then
15801 ac_header_preproc=yes
15802 else
15803 $as_echo "$as_me: failed program was:" >&5
15804 sed 's/^/| /' conftest.$ac_ext >&5
15805
15806 ac_header_preproc=no
15807 fi
15808
15809 rm -f conftest.err conftest.$ac_ext
15810 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15811 $as_echo "$ac_header_preproc" >&6; }
15812
15813 # So? What about this header?
15814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15815 yes:no: )
15816 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15817 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15818 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
15819 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
15820 ac_header_preproc=yes
15821 ;;
15822 no:yes:* )
15823 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
15824 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
15825 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
15826 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
15827 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
15828 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
15829 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
15830 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15831 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
15832 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
15833 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
15834 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
15835
15836 ;;
15837 esac
15838 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15839 $as_echo_n "checking for gpm.h... " >&6; }
15840 if test "${ac_cv_header_gpm_h+set}" = set; then
15841 $as_echo_n "(cached) " >&6
15842 else
15843 ac_cv_header_gpm_h=$ac_header_preproc
15844 fi
15845 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15846 $as_echo "$ac_cv_header_gpm_h" >&6; }
15847
15848 fi
15849 if test $ac_cv_header_gpm_h = yes; then
15850 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
15851 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
15852 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15853 $as_echo_n "(cached) " >&6
15854 else
15855 ac_check_lib_save_LIBS=$LIBS
15856 LIBS="-lgpm $LIBS"
15857 cat >conftest.$ac_ext <<_ACEOF
15858 /* confdefs.h. */
15859 _ACEOF
15860 cat confdefs.h >>conftest.$ac_ext
15861 cat >>conftest.$ac_ext <<_ACEOF
15862 /* end confdefs.h. */
15863
15864 /* Override any GCC internal prototype to avoid an error.
15865 Use char because int might match the return type of a GCC
15866 builtin and then its argument prototype would still apply. */
15867 #ifdef __cplusplus
15868 extern "C"
15869 #endif
15870 char Gpm_Open ();
15871 int
15872 main ()
15873 {
15874 return Gpm_Open ();
15875 ;
15876 return 0;
15877 }
15878 _ACEOF
15879 rm -f conftest.$ac_objext conftest$ac_exeext
15880 if { (ac_try="$ac_link"
15881 case "(($ac_try" in
15882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15883 *) ac_try_echo=$ac_try;;
15884 esac
15885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15886 $as_echo "$ac_try_echo") >&5
15887 (eval "$ac_link") 2>conftest.er1
15888 ac_status=$?
15889 grep -v '^ *+' conftest.er1 >conftest.err
15890 rm -f conftest.er1
15891 cat conftest.err >&5
15892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); } && {
15894 test -z "$ac_c_werror_flag" ||
15895 test ! -s conftest.err
15896 } && test -s conftest$ac_exeext && {
15897 test "$cross_compiling" = yes ||
15898 $as_test_x conftest$ac_exeext
15899 }; then
15900 ac_cv_lib_gpm_Gpm_Open=yes
15901 else
15902 $as_echo "$as_me: failed program was:" >&5
15903 sed 's/^/| /' conftest.$ac_ext >&5
15904
15905 ac_cv_lib_gpm_Gpm_Open=no
15906 fi
15907
15908 rm -rf conftest.dSYM
15909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15910 conftest$ac_exeext conftest.$ac_ext
15911 LIBS=$ac_check_lib_save_LIBS
15912 fi
15913 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
15914 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
15915 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
15916 HAVE_GPM=yes
15917 fi
15918
15919 fi
15920
15921
15922
15923 if test "${HAVE_GPM}" = "yes"; then
15924
15925 cat >>confdefs.h <<\_ACEOF
15926 #define HAVE_GPM 1
15927 _ACEOF
15928
15929 LIBGPM=-lgpm
15930 fi
15931 fi
15932
15933
15934 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15935 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15936 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15937 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15938 $as_echo_n "(cached) " >&6
15939 fi
15940 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15941 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15942 else
15943 # Is the header compilable?
15944 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
15945 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
15946 cat >conftest.$ac_ext <<_ACEOF
15947 /* confdefs.h. */
15948 _ACEOF
15949 cat confdefs.h >>conftest.$ac_ext
15950 cat >>conftest.$ac_ext <<_ACEOF
15951 /* end confdefs.h. */
15952 $ac_includes_default
15953 #include <malloc/malloc.h>
15954 _ACEOF
15955 rm -f conftest.$ac_objext
15956 if { (ac_try="$ac_compile"
15957 case "(($ac_try" in
15958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15959 *) ac_try_echo=$ac_try;;
15960 esac
15961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15962 $as_echo "$ac_try_echo") >&5
15963 (eval "$ac_compile") 2>conftest.er1
15964 ac_status=$?
15965 grep -v '^ *+' conftest.er1 >conftest.err
15966 rm -f conftest.er1
15967 cat conftest.err >&5
15968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969 (exit $ac_status); } && {
15970 test -z "$ac_c_werror_flag" ||
15971 test ! -s conftest.err
15972 } && test -s conftest.$ac_objext; then
15973 ac_header_compiler=yes
15974 else
15975 $as_echo "$as_me: failed program was:" >&5
15976 sed 's/^/| /' conftest.$ac_ext >&5
15977
15978 ac_header_compiler=no
15979 fi
15980
15981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15982 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15983 $as_echo "$ac_header_compiler" >&6; }
15984
15985 # Is the header present?
15986 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
15987 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
15988 cat >conftest.$ac_ext <<_ACEOF
15989 /* confdefs.h. */
15990 _ACEOF
15991 cat confdefs.h >>conftest.$ac_ext
15992 cat >>conftest.$ac_ext <<_ACEOF
15993 /* end confdefs.h. */
15994 #include <malloc/malloc.h>
15995 _ACEOF
15996 if { (ac_try="$ac_cpp conftest.$ac_ext"
15997 case "(($ac_try" in
15998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15999 *) ac_try_echo=$ac_try;;
16000 esac
16001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16002 $as_echo "$ac_try_echo") >&5
16003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16004 ac_status=$?
16005 grep -v '^ *+' conftest.er1 >conftest.err
16006 rm -f conftest.er1
16007 cat conftest.err >&5
16008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); } >/dev/null && {
16010 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16011 test ! -s conftest.err
16012 }; then
16013 ac_header_preproc=yes
16014 else
16015 $as_echo "$as_me: failed program was:" >&5
16016 sed 's/^/| /' conftest.$ac_ext >&5
16017
16018 ac_header_preproc=no
16019 fi
16020
16021 rm -f conftest.err conftest.$ac_ext
16022 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16023 $as_echo "$ac_header_preproc" >&6; }
16024
16025 # So? What about this header?
16026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16027 yes:no: )
16028 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
16029 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16030 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
16031 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
16032 ac_header_preproc=yes
16033 ;;
16034 no:yes:* )
16035 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
16036 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
16037 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
16038 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
16039 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
16040 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
16041 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
16042 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
16043 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
16044 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
16045 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
16046 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
16047
16048 ;;
16049 esac
16050 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16051 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16052 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16053 $as_echo_n "(cached) " >&6
16054 else
16055 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16056 fi
16057 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16058 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16059
16060 fi
16061 if test $ac_cv_header_malloc_malloc_h = yes; then
16062
16063 cat >>confdefs.h <<\_ACEOF
16064 #define HAVE_MALLOC_MALLOC_H 1
16065 _ACEOF
16066
16067 fi
16068
16069
16070
16071 ### Use NeXTstep API to implement GUI.
16072 if test "${HAVE_NS}" = "yes"; then
16073
16074 cat >>confdefs.h <<\_ACEOF
16075 #define HAVE_NS 1
16076 _ACEOF
16077
16078 if test "${NS_IMPL_COCOA}" = "yes"; then
16079
16080 cat >>confdefs.h <<\_ACEOF
16081 #define NS_IMPL_COCOA 1
16082 _ACEOF
16083
16084 GNU_OBJC_CFLAGS=
16085 fi
16086 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16087
16088 cat >>confdefs.h <<\_ACEOF
16089 #define NS_IMPL_GNUSTEP 1
16090 _ACEOF
16091
16092 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16093 fi
16094 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16095
16096 cat >>confdefs.h <<\_ACEOF
16097 #define NS_HAVE_NSINTEGER 1
16098 _ACEOF
16099
16100 fi
16101 # We also have mouse menus.
16102 HAVE_MENUS=yes
16103 OTHER_FILES=ns-app
16104 fi
16105
16106
16107 ### Use session management (-lSM -lICE) if available
16108 HAVE_X_SM=no
16109 LIBXSM=
16110 if test "${HAVE_X11}" = "yes"; then
16111 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16112 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16113 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16114 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16115 $as_echo_n "(cached) " >&6
16116 fi
16117 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16118 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16119 else
16120 # Is the header compilable?
16121 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16122 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16123 cat >conftest.$ac_ext <<_ACEOF
16124 /* confdefs.h. */
16125 _ACEOF
16126 cat confdefs.h >>conftest.$ac_ext
16127 cat >>conftest.$ac_ext <<_ACEOF
16128 /* end confdefs.h. */
16129 $ac_includes_default
16130 #include <X11/SM/SMlib.h>
16131 _ACEOF
16132 rm -f conftest.$ac_objext
16133 if { (ac_try="$ac_compile"
16134 case "(($ac_try" in
16135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16136 *) ac_try_echo=$ac_try;;
16137 esac
16138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16139 $as_echo "$ac_try_echo") >&5
16140 (eval "$ac_compile") 2>conftest.er1
16141 ac_status=$?
16142 grep -v '^ *+' conftest.er1 >conftest.err
16143 rm -f conftest.er1
16144 cat conftest.err >&5
16145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); } && {
16147 test -z "$ac_c_werror_flag" ||
16148 test ! -s conftest.err
16149 } && test -s conftest.$ac_objext; then
16150 ac_header_compiler=yes
16151 else
16152 $as_echo "$as_me: failed program was:" >&5
16153 sed 's/^/| /' conftest.$ac_ext >&5
16154
16155 ac_header_compiler=no
16156 fi
16157
16158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16159 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16160 $as_echo "$ac_header_compiler" >&6; }
16161
16162 # Is the header present?
16163 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16164 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16165 cat >conftest.$ac_ext <<_ACEOF
16166 /* confdefs.h. */
16167 _ACEOF
16168 cat confdefs.h >>conftest.$ac_ext
16169 cat >>conftest.$ac_ext <<_ACEOF
16170 /* end confdefs.h. */
16171 #include <X11/SM/SMlib.h>
16172 _ACEOF
16173 if { (ac_try="$ac_cpp conftest.$ac_ext"
16174 case "(($ac_try" in
16175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16176 *) ac_try_echo=$ac_try;;
16177 esac
16178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16179 $as_echo "$ac_try_echo") >&5
16180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16181 ac_status=$?
16182 grep -v '^ *+' conftest.er1 >conftest.err
16183 rm -f conftest.er1
16184 cat conftest.err >&5
16185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); } >/dev/null && {
16187 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16188 test ! -s conftest.err
16189 }; then
16190 ac_header_preproc=yes
16191 else
16192 $as_echo "$as_me: failed program was:" >&5
16193 sed 's/^/| /' conftest.$ac_ext >&5
16194
16195 ac_header_preproc=no
16196 fi
16197
16198 rm -f conftest.err conftest.$ac_ext
16199 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16200 $as_echo "$ac_header_preproc" >&6; }
16201
16202 # So? What about this header?
16203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16204 yes:no: )
16205 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16206 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16207 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16208 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16209 ac_header_preproc=yes
16210 ;;
16211 no:yes:* )
16212 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16213 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16214 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16215 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16216 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16217 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16218 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16219 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16220 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16221 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16222 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16223 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16224
16225 ;;
16226 esac
16227 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16228 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16229 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16230 $as_echo_n "(cached) " >&6
16231 else
16232 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16233 fi
16234 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16235 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16236
16237 fi
16238 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16239 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16240 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16241 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16242 $as_echo_n "(cached) " >&6
16243 else
16244 ac_check_lib_save_LIBS=$LIBS
16245 LIBS="-lSM -lICE $LIBS"
16246 cat >conftest.$ac_ext <<_ACEOF
16247 /* confdefs.h. */
16248 _ACEOF
16249 cat confdefs.h >>conftest.$ac_ext
16250 cat >>conftest.$ac_ext <<_ACEOF
16251 /* end confdefs.h. */
16252
16253 /* Override any GCC internal prototype to avoid an error.
16254 Use char because int might match the return type of a GCC
16255 builtin and then its argument prototype would still apply. */
16256 #ifdef __cplusplus
16257 extern "C"
16258 #endif
16259 char SmcOpenConnection ();
16260 int
16261 main ()
16262 {
16263 return SmcOpenConnection ();
16264 ;
16265 return 0;
16266 }
16267 _ACEOF
16268 rm -f conftest.$ac_objext conftest$ac_exeext
16269 if { (ac_try="$ac_link"
16270 case "(($ac_try" in
16271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16272 *) ac_try_echo=$ac_try;;
16273 esac
16274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16275 $as_echo "$ac_try_echo") >&5
16276 (eval "$ac_link") 2>conftest.er1
16277 ac_status=$?
16278 grep -v '^ *+' conftest.er1 >conftest.err
16279 rm -f conftest.er1
16280 cat conftest.err >&5
16281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); } && {
16283 test -z "$ac_c_werror_flag" ||
16284 test ! -s conftest.err
16285 } && test -s conftest$ac_exeext && {
16286 test "$cross_compiling" = yes ||
16287 $as_test_x conftest$ac_exeext
16288 }; then
16289 ac_cv_lib_SM_SmcOpenConnection=yes
16290 else
16291 $as_echo "$as_me: failed program was:" >&5
16292 sed 's/^/| /' conftest.$ac_ext >&5
16293
16294 ac_cv_lib_SM_SmcOpenConnection=no
16295 fi
16296
16297 rm -rf conftest.dSYM
16298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16299 conftest$ac_exeext conftest.$ac_ext
16300 LIBS=$ac_check_lib_save_LIBS
16301 fi
16302 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16303 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16304 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
16305 HAVE_X_SM=yes
16306 fi
16307
16308 fi
16309
16310
16311
16312 if test "${HAVE_X_SM}" = "yes"; then
16313
16314 cat >>confdefs.h <<\_ACEOF
16315 #define HAVE_X_SM 1
16316 _ACEOF
16317
16318 LIBXSM="-lSM -lICE"
16319 case "$LIBS" in
16320 *-lSM*) ;;
16321 *) LIBS="$LIBXSM $LIBS" ;;
16322 esac
16323 fi
16324 fi
16325
16326
16327 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16328 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16329 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16330 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16331 $as_echo_n "(cached) " >&6
16332 else
16333 cat >conftest.$ac_ext <<_ACEOF
16334 /* confdefs.h. */
16335 _ACEOF
16336 cat confdefs.h >>conftest.$ac_ext
16337 cat >>conftest.$ac_ext <<_ACEOF
16338 /* end confdefs.h. */
16339 #include <netdb.h>
16340 int
16341 main ()
16342 {
16343 return h_errno;
16344 ;
16345 return 0;
16346 }
16347 _ACEOF
16348 rm -f conftest.$ac_objext conftest$ac_exeext
16349 if { (ac_try="$ac_link"
16350 case "(($ac_try" in
16351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16352 *) ac_try_echo=$ac_try;;
16353 esac
16354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16355 $as_echo "$ac_try_echo") >&5
16356 (eval "$ac_link") 2>conftest.er1
16357 ac_status=$?
16358 grep -v '^ *+' conftest.er1 >conftest.err
16359 rm -f conftest.er1
16360 cat conftest.err >&5
16361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362 (exit $ac_status); } && {
16363 test -z "$ac_c_werror_flag" ||
16364 test ! -s conftest.err
16365 } && test -s conftest$ac_exeext && {
16366 test "$cross_compiling" = yes ||
16367 $as_test_x conftest$ac_exeext
16368 }; then
16369 emacs_cv_netdb_declares_h_errno=yes
16370 else
16371 $as_echo "$as_me: failed program was:" >&5
16372 sed 's/^/| /' conftest.$ac_ext >&5
16373
16374 emacs_cv_netdb_declares_h_errno=no
16375 fi
16376
16377 rm -rf conftest.dSYM
16378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16379 conftest$ac_exeext conftest.$ac_ext
16380 fi
16381 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16382 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16383 if test $emacs_cv_netdb_declares_h_errno = yes; then
16384
16385 cat >>confdefs.h <<\_ACEOF
16386 #define HAVE_H_ERRNO 1
16387 _ACEOF
16388
16389 fi
16390
16391 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16392 # for constant arguments. Useless!
16393 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16394 $as_echo_n "checking for working alloca.h... " >&6; }
16395 if test "${ac_cv_working_alloca_h+set}" = set; then
16396 $as_echo_n "(cached) " >&6
16397 else
16398 cat >conftest.$ac_ext <<_ACEOF
16399 /* confdefs.h. */
16400 _ACEOF
16401 cat confdefs.h >>conftest.$ac_ext
16402 cat >>conftest.$ac_ext <<_ACEOF
16403 /* end confdefs.h. */
16404 #include <alloca.h>
16405 int
16406 main ()
16407 {
16408 char *p = (char *) alloca (2 * sizeof (int));
16409 if (p) return 0;
16410 ;
16411 return 0;
16412 }
16413 _ACEOF
16414 rm -f conftest.$ac_objext conftest$ac_exeext
16415 if { (ac_try="$ac_link"
16416 case "(($ac_try" in
16417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16418 *) ac_try_echo=$ac_try;;
16419 esac
16420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16421 $as_echo "$ac_try_echo") >&5
16422 (eval "$ac_link") 2>conftest.er1
16423 ac_status=$?
16424 grep -v '^ *+' conftest.er1 >conftest.err
16425 rm -f conftest.er1
16426 cat conftest.err >&5
16427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428 (exit $ac_status); } && {
16429 test -z "$ac_c_werror_flag" ||
16430 test ! -s conftest.err
16431 } && test -s conftest$ac_exeext && {
16432 test "$cross_compiling" = yes ||
16433 $as_test_x conftest$ac_exeext
16434 }; then
16435 ac_cv_working_alloca_h=yes
16436 else
16437 $as_echo "$as_me: failed program was:" >&5
16438 sed 's/^/| /' conftest.$ac_ext >&5
16439
16440 ac_cv_working_alloca_h=no
16441 fi
16442
16443 rm -rf conftest.dSYM
16444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16445 conftest$ac_exeext conftest.$ac_ext
16446 fi
16447 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16448 $as_echo "$ac_cv_working_alloca_h" >&6; }
16449 if test $ac_cv_working_alloca_h = yes; then
16450
16451 cat >>confdefs.h <<\_ACEOF
16452 #define HAVE_ALLOCA_H 1
16453 _ACEOF
16454
16455 fi
16456
16457 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16458 $as_echo_n "checking for alloca... " >&6; }
16459 if test "${ac_cv_func_alloca_works+set}" = set; then
16460 $as_echo_n "(cached) " >&6
16461 else
16462 cat >conftest.$ac_ext <<_ACEOF
16463 /* confdefs.h. */
16464 _ACEOF
16465 cat confdefs.h >>conftest.$ac_ext
16466 cat >>conftest.$ac_ext <<_ACEOF
16467 /* end confdefs.h. */
16468 #ifdef __GNUC__
16469 # define alloca __builtin_alloca
16470 #else
16471 # ifdef _MSC_VER
16472 # include <malloc.h>
16473 # define alloca _alloca
16474 # else
16475 # ifdef HAVE_ALLOCA_H
16476 # include <alloca.h>
16477 # else
16478 # ifdef _AIX
16479 #pragma alloca
16480 # else
16481 # ifndef alloca /* predefined by HP cc +Olibcalls */
16482 char *alloca ();
16483 # endif
16484 # endif
16485 # endif
16486 # endif
16487 #endif
16488
16489 int
16490 main ()
16491 {
16492 char *p = (char *) alloca (1);
16493 if (p) return 0;
16494 ;
16495 return 0;
16496 }
16497 _ACEOF
16498 rm -f conftest.$ac_objext conftest$ac_exeext
16499 if { (ac_try="$ac_link"
16500 case "(($ac_try" in
16501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16502 *) ac_try_echo=$ac_try;;
16503 esac
16504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16505 $as_echo "$ac_try_echo") >&5
16506 (eval "$ac_link") 2>conftest.er1
16507 ac_status=$?
16508 grep -v '^ *+' conftest.er1 >conftest.err
16509 rm -f conftest.er1
16510 cat conftest.err >&5
16511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512 (exit $ac_status); } && {
16513 test -z "$ac_c_werror_flag" ||
16514 test ! -s conftest.err
16515 } && test -s conftest$ac_exeext && {
16516 test "$cross_compiling" = yes ||
16517 $as_test_x conftest$ac_exeext
16518 }; then
16519 ac_cv_func_alloca_works=yes
16520 else
16521 $as_echo "$as_me: failed program was:" >&5
16522 sed 's/^/| /' conftest.$ac_ext >&5
16523
16524 ac_cv_func_alloca_works=no
16525 fi
16526
16527 rm -rf conftest.dSYM
16528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16529 conftest$ac_exeext conftest.$ac_ext
16530 fi
16531 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16532 $as_echo "$ac_cv_func_alloca_works" >&6; }
16533
16534 if test $ac_cv_func_alloca_works = yes; then
16535
16536 cat >>confdefs.h <<\_ACEOF
16537 #define HAVE_ALLOCA 1
16538 _ACEOF
16539
16540 else
16541 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16542 # that cause trouble. Some versions do not even contain alloca or
16543 # contain a buggy version. If you still want to use their alloca,
16544 # use ar to extract alloca.o from them instead of compiling alloca.c.
16545
16546 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16547
16548 cat >>confdefs.h <<\_ACEOF
16549 #define C_ALLOCA 1
16550 _ACEOF
16551
16552
16553 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16554 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16555 if test "${ac_cv_os_cray+set}" = set; then
16556 $as_echo_n "(cached) " >&6
16557 else
16558 cat >conftest.$ac_ext <<_ACEOF
16559 /* confdefs.h. */
16560 _ACEOF
16561 cat confdefs.h >>conftest.$ac_ext
16562 cat >>conftest.$ac_ext <<_ACEOF
16563 /* end confdefs.h. */
16564 #if defined CRAY && ! defined CRAY2
16565 webecray
16566 #else
16567 wenotbecray
16568 #endif
16569
16570 _ACEOF
16571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16572 $EGREP "webecray" >/dev/null 2>&1; then
16573 ac_cv_os_cray=yes
16574 else
16575 ac_cv_os_cray=no
16576 fi
16577 rm -f conftest*
16578
16579 fi
16580 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16581 $as_echo "$ac_cv_os_cray" >&6; }
16582 if test $ac_cv_os_cray = yes; then
16583 for ac_func in _getb67 GETB67 getb67; do
16584 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16585 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16586 $as_echo_n "checking for $ac_func... " >&6; }
16587 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16588 $as_echo_n "(cached) " >&6
16589 else
16590 cat >conftest.$ac_ext <<_ACEOF
16591 /* confdefs.h. */
16592 _ACEOF
16593 cat confdefs.h >>conftest.$ac_ext
16594 cat >>conftest.$ac_ext <<_ACEOF
16595 /* end confdefs.h. */
16596 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16598 #define $ac_func innocuous_$ac_func
16599
16600 /* System header to define __stub macros and hopefully few prototypes,
16601 which can conflict with char $ac_func (); below.
16602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16603 <limits.h> exists even on freestanding compilers. */
16604
16605 #ifdef __STDC__
16606 # include <limits.h>
16607 #else
16608 # include <assert.h>
16609 #endif
16610
16611 #undef $ac_func
16612
16613 /* Override any GCC internal prototype to avoid an error.
16614 Use char because int might match the return type of a GCC
16615 builtin and then its argument prototype would still apply. */
16616 #ifdef __cplusplus
16617 extern "C"
16618 #endif
16619 char $ac_func ();
16620 /* The GNU C library defines this for functions which it implements
16621 to always fail with ENOSYS. Some functions are actually named
16622 something starting with __ and the normal name is an alias. */
16623 #if defined __stub_$ac_func || defined __stub___$ac_func
16624 choke me
16625 #endif
16626
16627 int
16628 main ()
16629 {
16630 return $ac_func ();
16631 ;
16632 return 0;
16633 }
16634 _ACEOF
16635 rm -f conftest.$ac_objext conftest$ac_exeext
16636 if { (ac_try="$ac_link"
16637 case "(($ac_try" in
16638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16639 *) ac_try_echo=$ac_try;;
16640 esac
16641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16642 $as_echo "$ac_try_echo") >&5
16643 (eval "$ac_link") 2>conftest.er1
16644 ac_status=$?
16645 grep -v '^ *+' conftest.er1 >conftest.err
16646 rm -f conftest.er1
16647 cat conftest.err >&5
16648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649 (exit $ac_status); } && {
16650 test -z "$ac_c_werror_flag" ||
16651 test ! -s conftest.err
16652 } && test -s conftest$ac_exeext && {
16653 test "$cross_compiling" = yes ||
16654 $as_test_x conftest$ac_exeext
16655 }; then
16656 eval "$as_ac_var=yes"
16657 else
16658 $as_echo "$as_me: failed program was:" >&5
16659 sed 's/^/| /' conftest.$ac_ext >&5
16660
16661 eval "$as_ac_var=no"
16662 fi
16663
16664 rm -rf conftest.dSYM
16665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16666 conftest$ac_exeext conftest.$ac_ext
16667 fi
16668 ac_res=`eval 'as_val=${'$as_ac_var'}
16669 $as_echo "$as_val"'`
16670 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16671 $as_echo "$ac_res" >&6; }
16672 if test `eval 'as_val=${'$as_ac_var'}
16673 $as_echo "$as_val"'` = yes; then
16674
16675 cat >>confdefs.h <<_ACEOF
16676 #define CRAY_STACKSEG_END $ac_func
16677 _ACEOF
16678
16679 break
16680 fi
16681
16682 done
16683 fi
16684
16685 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16686 $as_echo_n "checking stack direction for C alloca... " >&6; }
16687 if test "${ac_cv_c_stack_direction+set}" = set; then
16688 $as_echo_n "(cached) " >&6
16689 else
16690 if test "$cross_compiling" = yes; then
16691 ac_cv_c_stack_direction=0
16692 else
16693 cat >conftest.$ac_ext <<_ACEOF
16694 /* confdefs.h. */
16695 _ACEOF
16696 cat confdefs.h >>conftest.$ac_ext
16697 cat >>conftest.$ac_ext <<_ACEOF
16698 /* end confdefs.h. */
16699 $ac_includes_default
16700 int
16701 find_stack_direction ()
16702 {
16703 static char *addr = 0;
16704 auto char dummy;
16705 if (addr == 0)
16706 {
16707 addr = &dummy;
16708 return find_stack_direction ();
16709 }
16710 else
16711 return (&dummy > addr) ? 1 : -1;
16712 }
16713
16714 int
16715 main ()
16716 {
16717 return find_stack_direction () < 0;
16718 }
16719 _ACEOF
16720 rm -f conftest$ac_exeext
16721 if { (ac_try="$ac_link"
16722 case "(($ac_try" in
16723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16724 *) ac_try_echo=$ac_try;;
16725 esac
16726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16727 $as_echo "$ac_try_echo") >&5
16728 (eval "$ac_link") 2>&5
16729 ac_status=$?
16730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16732 { (case "(($ac_try" in
16733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16734 *) ac_try_echo=$ac_try;;
16735 esac
16736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16737 $as_echo "$ac_try_echo") >&5
16738 (eval "$ac_try") 2>&5
16739 ac_status=$?
16740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); }; }; then
16742 ac_cv_c_stack_direction=1
16743 else
16744 $as_echo "$as_me: program exited with status $ac_status" >&5
16745 $as_echo "$as_me: failed program was:" >&5
16746 sed 's/^/| /' conftest.$ac_ext >&5
16747
16748 ( exit $ac_status )
16749 ac_cv_c_stack_direction=-1
16750 fi
16751 rm -rf conftest.dSYM
16752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16753 fi
16754
16755
16756 fi
16757 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16758 $as_echo "$ac_cv_c_stack_direction" >&6; }
16759
16760 cat >>confdefs.h <<_ACEOF
16761 #define STACK_DIRECTION $ac_cv_c_stack_direction
16762 _ACEOF
16763
16764
16765 fi
16766
16767
16768 if test x"$ac_cv_func_alloca_works" != xyes; then
16769 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
16770 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
16771 { (exit 1); exit 1; }; }
16772 fi
16773
16774 # fmod, logb, and frexp are found in -lm on most systems.
16775 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16776
16777 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
16778 $as_echo_n "checking for sqrt in -lm... " >&6; }
16779 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16780 $as_echo_n "(cached) " >&6
16781 else
16782 ac_check_lib_save_LIBS=$LIBS
16783 LIBS="-lm $LIBS"
16784 cat >conftest.$ac_ext <<_ACEOF
16785 /* confdefs.h. */
16786 _ACEOF
16787 cat confdefs.h >>conftest.$ac_ext
16788 cat >>conftest.$ac_ext <<_ACEOF
16789 /* end confdefs.h. */
16790
16791 /* Override any GCC internal prototype to avoid an error.
16792 Use char because int might match the return type of a GCC
16793 builtin and then its argument prototype would still apply. */
16794 #ifdef __cplusplus
16795 extern "C"
16796 #endif
16797 char sqrt ();
16798 int
16799 main ()
16800 {
16801 return sqrt ();
16802 ;
16803 return 0;
16804 }
16805 _ACEOF
16806 rm -f conftest.$ac_objext conftest$ac_exeext
16807 if { (ac_try="$ac_link"
16808 case "(($ac_try" in
16809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16810 *) ac_try_echo=$ac_try;;
16811 esac
16812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16813 $as_echo "$ac_try_echo") >&5
16814 (eval "$ac_link") 2>conftest.er1
16815 ac_status=$?
16816 grep -v '^ *+' conftest.er1 >conftest.err
16817 rm -f conftest.er1
16818 cat conftest.err >&5
16819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); } && {
16821 test -z "$ac_c_werror_flag" ||
16822 test ! -s conftest.err
16823 } && test -s conftest$ac_exeext && {
16824 test "$cross_compiling" = yes ||
16825 $as_test_x conftest$ac_exeext
16826 }; then
16827 ac_cv_lib_m_sqrt=yes
16828 else
16829 $as_echo "$as_me: failed program was:" >&5
16830 sed 's/^/| /' conftest.$ac_ext >&5
16831
16832 ac_cv_lib_m_sqrt=no
16833 fi
16834
16835 rm -rf conftest.dSYM
16836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16837 conftest$ac_exeext conftest.$ac_ext
16838 LIBS=$ac_check_lib_save_LIBS
16839 fi
16840 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
16841 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16842 if test $ac_cv_lib_m_sqrt = yes; then
16843 cat >>confdefs.h <<_ACEOF
16844 #define HAVE_LIBM 1
16845 _ACEOF
16846
16847 LIBS="-lm $LIBS"
16848
16849 fi
16850
16851
16852 # Check for mail-locking functions in a "mail" library. Probably this should
16853 # have the same check as for liblockfile below.
16854 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
16855 $as_echo_n "checking for maillock in -lmail... " >&6; }
16856 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16857 $as_echo_n "(cached) " >&6
16858 else
16859 ac_check_lib_save_LIBS=$LIBS
16860 LIBS="-lmail $LIBS"
16861 cat >conftest.$ac_ext <<_ACEOF
16862 /* confdefs.h. */
16863 _ACEOF
16864 cat confdefs.h >>conftest.$ac_ext
16865 cat >>conftest.$ac_ext <<_ACEOF
16866 /* end confdefs.h. */
16867
16868 /* Override any GCC internal prototype to avoid an error.
16869 Use char because int might match the return type of a GCC
16870 builtin and then its argument prototype would still apply. */
16871 #ifdef __cplusplus
16872 extern "C"
16873 #endif
16874 char maillock ();
16875 int
16876 main ()
16877 {
16878 return maillock ();
16879 ;
16880 return 0;
16881 }
16882 _ACEOF
16883 rm -f conftest.$ac_objext conftest$ac_exeext
16884 if { (ac_try="$ac_link"
16885 case "(($ac_try" in
16886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16887 *) ac_try_echo=$ac_try;;
16888 esac
16889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16890 $as_echo "$ac_try_echo") >&5
16891 (eval "$ac_link") 2>conftest.er1
16892 ac_status=$?
16893 grep -v '^ *+' conftest.er1 >conftest.err
16894 rm -f conftest.er1
16895 cat conftest.err >&5
16896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897 (exit $ac_status); } && {
16898 test -z "$ac_c_werror_flag" ||
16899 test ! -s conftest.err
16900 } && test -s conftest$ac_exeext && {
16901 test "$cross_compiling" = yes ||
16902 $as_test_x conftest$ac_exeext
16903 }; then
16904 ac_cv_lib_mail_maillock=yes
16905 else
16906 $as_echo "$as_me: failed program was:" >&5
16907 sed 's/^/| /' conftest.$ac_ext >&5
16908
16909 ac_cv_lib_mail_maillock=no
16910 fi
16911
16912 rm -rf conftest.dSYM
16913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16914 conftest$ac_exeext conftest.$ac_ext
16915 LIBS=$ac_check_lib_save_LIBS
16916 fi
16917 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
16918 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
16919 if test $ac_cv_lib_mail_maillock = yes; then
16920 have_mail=yes
16921 else
16922 have_mail=no
16923 fi
16924
16925 if test $have_mail = yes; then
16926 LIBS_MAIL=-lmail
16927 LIBS="$LIBS_MAIL $LIBS"
16928
16929 cat >>confdefs.h <<\_ACEOF
16930 #define HAVE_LIBMAIL 1
16931 _ACEOF
16932
16933 else
16934 LIBS_MAIL=
16935 fi
16936 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
16937 $as_echo_n "checking for maillock in -llockfile... " >&6; }
16938 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16939 $as_echo_n "(cached) " >&6
16940 else
16941 ac_check_lib_save_LIBS=$LIBS
16942 LIBS="-llockfile $LIBS"
16943 cat >conftest.$ac_ext <<_ACEOF
16944 /* confdefs.h. */
16945 _ACEOF
16946 cat confdefs.h >>conftest.$ac_ext
16947 cat >>conftest.$ac_ext <<_ACEOF
16948 /* end confdefs.h. */
16949
16950 /* Override any GCC internal prototype to avoid an error.
16951 Use char because int might match the return type of a GCC
16952 builtin and then its argument prototype would still apply. */
16953 #ifdef __cplusplus
16954 extern "C"
16955 #endif
16956 char maillock ();
16957 int
16958 main ()
16959 {
16960 return maillock ();
16961 ;
16962 return 0;
16963 }
16964 _ACEOF
16965 rm -f conftest.$ac_objext conftest$ac_exeext
16966 if { (ac_try="$ac_link"
16967 case "(($ac_try" in
16968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16969 *) ac_try_echo=$ac_try;;
16970 esac
16971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16972 $as_echo "$ac_try_echo") >&5
16973 (eval "$ac_link") 2>conftest.er1
16974 ac_status=$?
16975 grep -v '^ *+' conftest.er1 >conftest.err
16976 rm -f conftest.er1
16977 cat conftest.err >&5
16978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); } && {
16980 test -z "$ac_c_werror_flag" ||
16981 test ! -s conftest.err
16982 } && test -s conftest$ac_exeext && {
16983 test "$cross_compiling" = yes ||
16984 $as_test_x conftest$ac_exeext
16985 }; then
16986 ac_cv_lib_lockfile_maillock=yes
16987 else
16988 $as_echo "$as_me: failed program was:" >&5
16989 sed 's/^/| /' conftest.$ac_ext >&5
16990
16991 ac_cv_lib_lockfile_maillock=no
16992 fi
16993
16994 rm -rf conftest.dSYM
16995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16996 conftest$ac_exeext conftest.$ac_ext
16997 LIBS=$ac_check_lib_save_LIBS
16998 fi
16999 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
17000 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
17001 if test $ac_cv_lib_lockfile_maillock = yes; then
17002 have_lockfile=yes
17003 else
17004 have_lockfile=no
17005 fi
17006
17007 if test $have_lockfile = yes; then
17008 LIBS_MAIL=-llockfile
17009 LIBS="$LIBS_MAIL $LIBS"
17010
17011 cat >>confdefs.h <<\_ACEOF
17012 #define HAVE_LIBLOCKFILE 1
17013 _ACEOF
17014
17015 else
17016 # If we have the shared liblockfile, assume we must use it for mail
17017 # locking (e.g. Debian). If we couldn't link against liblockfile
17018 # (no liblockfile.a installed), ensure that we don't need to.
17019 # Extract the first word of "liblockfile.so", so it can be a program name with args.
17020 set dummy liblockfile.so; ac_word=$2
17021 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17022 $as_echo_n "checking for $ac_word... " >&6; }
17023 if test "${ac_cv_prog_liblockfile+set}" = set; then
17024 $as_echo_n "(cached) " >&6
17025 else
17026 if test -n "$liblockfile"; then
17027 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
17028 else
17029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17030 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
17031 for as_dir in $as_dummy
17032 do
17033 IFS=$as_save_IFS
17034 test -z "$as_dir" && as_dir=.
17035 for ac_exec_ext in '' $ac_executable_extensions; do
17036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17037 ac_cv_prog_liblockfile="yes"
17038 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17039 break 2
17040 fi
17041 done
17042 done
17043 IFS=$as_save_IFS
17044
17045 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
17046 fi
17047 fi
17048 liblockfile=$ac_cv_prog_liblockfile
17049 if test -n "$liblockfile"; then
17050 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
17051 $as_echo "$liblockfile" >&6; }
17052 else
17053 { $as_echo "$as_me:$LINENO: result: no" >&5
17054 $as_echo "no" >&6; }
17055 fi
17056
17057
17058 if test $ac_cv_prog_liblockfile = yes; then
17059 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
17060 This probably means that movemail could lose mail.
17061 There may be a \`development' package to install containing liblockfile." >&5
17062 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
17063 This probably means that movemail could lose mail.
17064 There may be a \`development' package to install containing liblockfile." >&2;}
17065 { (exit 1); exit 1; }; }
17066 fi
17067 fi
17068
17069 for ac_func in touchlock
17070 do
17071 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17072 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17073 $as_echo_n "checking for $ac_func... " >&6; }
17074 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17075 $as_echo_n "(cached) " >&6
17076 else
17077 cat >conftest.$ac_ext <<_ACEOF
17078 /* confdefs.h. */
17079 _ACEOF
17080 cat confdefs.h >>conftest.$ac_ext
17081 cat >>conftest.$ac_ext <<_ACEOF
17082 /* end confdefs.h. */
17083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17085 #define $ac_func innocuous_$ac_func
17086
17087 /* System header to define __stub macros and hopefully few prototypes,
17088 which can conflict with char $ac_func (); below.
17089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17090 <limits.h> exists even on freestanding compilers. */
17091
17092 #ifdef __STDC__
17093 # include <limits.h>
17094 #else
17095 # include <assert.h>
17096 #endif
17097
17098 #undef $ac_func
17099
17100 /* Override any GCC internal prototype to avoid an error.
17101 Use char because int might match the return type of a GCC
17102 builtin and then its argument prototype would still apply. */
17103 #ifdef __cplusplus
17104 extern "C"
17105 #endif
17106 char $ac_func ();
17107 /* The GNU C library defines this for functions which it implements
17108 to always fail with ENOSYS. Some functions are actually named
17109 something starting with __ and the normal name is an alias. */
17110 #if defined __stub_$ac_func || defined __stub___$ac_func
17111 choke me
17112 #endif
17113
17114 int
17115 main ()
17116 {
17117 return $ac_func ();
17118 ;
17119 return 0;
17120 }
17121 _ACEOF
17122 rm -f conftest.$ac_objext conftest$ac_exeext
17123 if { (ac_try="$ac_link"
17124 case "(($ac_try" in
17125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17126 *) ac_try_echo=$ac_try;;
17127 esac
17128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17129 $as_echo "$ac_try_echo") >&5
17130 (eval "$ac_link") 2>conftest.er1
17131 ac_status=$?
17132 grep -v '^ *+' conftest.er1 >conftest.err
17133 rm -f conftest.er1
17134 cat conftest.err >&5
17135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); } && {
17137 test -z "$ac_c_werror_flag" ||
17138 test ! -s conftest.err
17139 } && test -s conftest$ac_exeext && {
17140 test "$cross_compiling" = yes ||
17141 $as_test_x conftest$ac_exeext
17142 }; then
17143 eval "$as_ac_var=yes"
17144 else
17145 $as_echo "$as_me: failed program was:" >&5
17146 sed 's/^/| /' conftest.$ac_ext >&5
17147
17148 eval "$as_ac_var=no"
17149 fi
17150
17151 rm -rf conftest.dSYM
17152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17153 conftest$ac_exeext conftest.$ac_ext
17154 fi
17155 ac_res=`eval 'as_val=${'$as_ac_var'}
17156 $as_echo "$as_val"'`
17157 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17158 $as_echo "$ac_res" >&6; }
17159 if test `eval 'as_val=${'$as_ac_var'}
17160 $as_echo "$as_val"'` = yes; then
17161 cat >>confdefs.h <<_ACEOF
17162 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17163 _ACEOF
17164
17165 fi
17166 done
17167
17168
17169 for ac_header in maillock.h
17170 do
17171 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17173 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17174 $as_echo_n "checking for $ac_header... " >&6; }
17175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17176 $as_echo_n "(cached) " >&6
17177 fi
17178 ac_res=`eval 'as_val=${'$as_ac_Header'}
17179 $as_echo "$as_val"'`
17180 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17181 $as_echo "$ac_res" >&6; }
17182 else
17183 # Is the header compilable?
17184 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17185 $as_echo_n "checking $ac_header usability... " >&6; }
17186 cat >conftest.$ac_ext <<_ACEOF
17187 /* confdefs.h. */
17188 _ACEOF
17189 cat confdefs.h >>conftest.$ac_ext
17190 cat >>conftest.$ac_ext <<_ACEOF
17191 /* end confdefs.h. */
17192 $ac_includes_default
17193 #include <$ac_header>
17194 _ACEOF
17195 rm -f conftest.$ac_objext
17196 if { (ac_try="$ac_compile"
17197 case "(($ac_try" in
17198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17199 *) ac_try_echo=$ac_try;;
17200 esac
17201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17202 $as_echo "$ac_try_echo") >&5
17203 (eval "$ac_compile") 2>conftest.er1
17204 ac_status=$?
17205 grep -v '^ *+' conftest.er1 >conftest.err
17206 rm -f conftest.er1
17207 cat conftest.err >&5
17208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); } && {
17210 test -z "$ac_c_werror_flag" ||
17211 test ! -s conftest.err
17212 } && test -s conftest.$ac_objext; then
17213 ac_header_compiler=yes
17214 else
17215 $as_echo "$as_me: failed program was:" >&5
17216 sed 's/^/| /' conftest.$ac_ext >&5
17217
17218 ac_header_compiler=no
17219 fi
17220
17221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17222 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17223 $as_echo "$ac_header_compiler" >&6; }
17224
17225 # Is the header present?
17226 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17227 $as_echo_n "checking $ac_header presence... " >&6; }
17228 cat >conftest.$ac_ext <<_ACEOF
17229 /* confdefs.h. */
17230 _ACEOF
17231 cat confdefs.h >>conftest.$ac_ext
17232 cat >>conftest.$ac_ext <<_ACEOF
17233 /* end confdefs.h. */
17234 #include <$ac_header>
17235 _ACEOF
17236 if { (ac_try="$ac_cpp conftest.$ac_ext"
17237 case "(($ac_try" in
17238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17239 *) ac_try_echo=$ac_try;;
17240 esac
17241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17242 $as_echo "$ac_try_echo") >&5
17243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17244 ac_status=$?
17245 grep -v '^ *+' conftest.er1 >conftest.err
17246 rm -f conftest.er1
17247 cat conftest.err >&5
17248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); } >/dev/null && {
17250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17251 test ! -s conftest.err
17252 }; then
17253 ac_header_preproc=yes
17254 else
17255 $as_echo "$as_me: failed program was:" >&5
17256 sed 's/^/| /' conftest.$ac_ext >&5
17257
17258 ac_header_preproc=no
17259 fi
17260
17261 rm -f conftest.err conftest.$ac_ext
17262 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17263 $as_echo "$ac_header_preproc" >&6; }
17264
17265 # So? What about this header?
17266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17267 yes:no: )
17268 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17269 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17271 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17272 ac_header_preproc=yes
17273 ;;
17274 no:yes:* )
17275 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17276 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17277 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17278 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17279 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17280 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17281 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17282 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17284 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17286 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17287
17288 ;;
17289 esac
17290 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17291 $as_echo_n "checking for $ac_header... " >&6; }
17292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17293 $as_echo_n "(cached) " >&6
17294 else
17295 eval "$as_ac_Header=\$ac_header_preproc"
17296 fi
17297 ac_res=`eval 'as_val=${'$as_ac_Header'}
17298 $as_echo "$as_val"'`
17299 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17300 $as_echo "$ac_res" >&6; }
17301
17302 fi
17303 if test `eval 'as_val=${'$as_ac_Header'}
17304 $as_echo "$as_val"'` = yes; then
17305 cat >>confdefs.h <<_ACEOF
17306 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17307 _ACEOF
17308
17309 fi
17310
17311 done
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
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386 for ac_func in gethostname getdomainname dup2 \
17387 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17388 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17389 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17390 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17391 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17392 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17393 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17394 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17395 cfmakeraw cfsetspeed
17396 do
17397 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17398 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17399 $as_echo_n "checking for $ac_func... " >&6; }
17400 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17401 $as_echo_n "(cached) " >&6
17402 else
17403 cat >conftest.$ac_ext <<_ACEOF
17404 /* confdefs.h. */
17405 _ACEOF
17406 cat confdefs.h >>conftest.$ac_ext
17407 cat >>conftest.$ac_ext <<_ACEOF
17408 /* end confdefs.h. */
17409 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17411 #define $ac_func innocuous_$ac_func
17412
17413 /* System header to define __stub macros and hopefully few prototypes,
17414 which can conflict with char $ac_func (); below.
17415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17416 <limits.h> exists even on freestanding compilers. */
17417
17418 #ifdef __STDC__
17419 # include <limits.h>
17420 #else
17421 # include <assert.h>
17422 #endif
17423
17424 #undef $ac_func
17425
17426 /* Override any GCC internal prototype to avoid an error.
17427 Use char because int might match the return type of a GCC
17428 builtin and then its argument prototype would still apply. */
17429 #ifdef __cplusplus
17430 extern "C"
17431 #endif
17432 char $ac_func ();
17433 /* The GNU C library defines this for functions which it implements
17434 to always fail with ENOSYS. Some functions are actually named
17435 something starting with __ and the normal name is an alias. */
17436 #if defined __stub_$ac_func || defined __stub___$ac_func
17437 choke me
17438 #endif
17439
17440 int
17441 main ()
17442 {
17443 return $ac_func ();
17444 ;
17445 return 0;
17446 }
17447 _ACEOF
17448 rm -f conftest.$ac_objext conftest$ac_exeext
17449 if { (ac_try="$ac_link"
17450 case "(($ac_try" in
17451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17452 *) ac_try_echo=$ac_try;;
17453 esac
17454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17455 $as_echo "$ac_try_echo") >&5
17456 (eval "$ac_link") 2>conftest.er1
17457 ac_status=$?
17458 grep -v '^ *+' conftest.er1 >conftest.err
17459 rm -f conftest.er1
17460 cat conftest.err >&5
17461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462 (exit $ac_status); } && {
17463 test -z "$ac_c_werror_flag" ||
17464 test ! -s conftest.err
17465 } && test -s conftest$ac_exeext && {
17466 test "$cross_compiling" = yes ||
17467 $as_test_x conftest$ac_exeext
17468 }; then
17469 eval "$as_ac_var=yes"
17470 else
17471 $as_echo "$as_me: failed program was:" >&5
17472 sed 's/^/| /' conftest.$ac_ext >&5
17473
17474 eval "$as_ac_var=no"
17475 fi
17476
17477 rm -rf conftest.dSYM
17478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17479 conftest$ac_exeext conftest.$ac_ext
17480 fi
17481 ac_res=`eval 'as_val=${'$as_ac_var'}
17482 $as_echo "$as_val"'`
17483 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17484 $as_echo "$ac_res" >&6; }
17485 if test `eval 'as_val=${'$as_ac_var'}
17486 $as_echo "$as_val"'` = yes; then
17487 cat >>confdefs.h <<_ACEOF
17488 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17489 _ACEOF
17490
17491 fi
17492 done
17493
17494
17495
17496 for ac_header in sys/un.h
17497 do
17498 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17500 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17501 $as_echo_n "checking for $ac_header... " >&6; }
17502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17503 $as_echo_n "(cached) " >&6
17504 fi
17505 ac_res=`eval 'as_val=${'$as_ac_Header'}
17506 $as_echo "$as_val"'`
17507 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17508 $as_echo "$ac_res" >&6; }
17509 else
17510 # Is the header compilable?
17511 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17512 $as_echo_n "checking $ac_header usability... " >&6; }
17513 cat >conftest.$ac_ext <<_ACEOF
17514 /* confdefs.h. */
17515 _ACEOF
17516 cat confdefs.h >>conftest.$ac_ext
17517 cat >>conftest.$ac_ext <<_ACEOF
17518 /* end confdefs.h. */
17519 $ac_includes_default
17520 #include <$ac_header>
17521 _ACEOF
17522 rm -f conftest.$ac_objext
17523 if { (ac_try="$ac_compile"
17524 case "(($ac_try" in
17525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17526 *) ac_try_echo=$ac_try;;
17527 esac
17528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17529 $as_echo "$ac_try_echo") >&5
17530 (eval "$ac_compile") 2>conftest.er1
17531 ac_status=$?
17532 grep -v '^ *+' conftest.er1 >conftest.err
17533 rm -f conftest.er1
17534 cat conftest.err >&5
17535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536 (exit $ac_status); } && {
17537 test -z "$ac_c_werror_flag" ||
17538 test ! -s conftest.err
17539 } && test -s conftest.$ac_objext; then
17540 ac_header_compiler=yes
17541 else
17542 $as_echo "$as_me: failed program was:" >&5
17543 sed 's/^/| /' conftest.$ac_ext >&5
17544
17545 ac_header_compiler=no
17546 fi
17547
17548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17549 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17550 $as_echo "$ac_header_compiler" >&6; }
17551
17552 # Is the header present?
17553 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17554 $as_echo_n "checking $ac_header presence... " >&6; }
17555 cat >conftest.$ac_ext <<_ACEOF
17556 /* confdefs.h. */
17557 _ACEOF
17558 cat confdefs.h >>conftest.$ac_ext
17559 cat >>conftest.$ac_ext <<_ACEOF
17560 /* end confdefs.h. */
17561 #include <$ac_header>
17562 _ACEOF
17563 if { (ac_try="$ac_cpp conftest.$ac_ext"
17564 case "(($ac_try" in
17565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17566 *) ac_try_echo=$ac_try;;
17567 esac
17568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17569 $as_echo "$ac_try_echo") >&5
17570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17571 ac_status=$?
17572 grep -v '^ *+' conftest.er1 >conftest.err
17573 rm -f conftest.er1
17574 cat conftest.err >&5
17575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); } >/dev/null && {
17577 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17578 test ! -s conftest.err
17579 }; then
17580 ac_header_preproc=yes
17581 else
17582 $as_echo "$as_me: failed program was:" >&5
17583 sed 's/^/| /' conftest.$ac_ext >&5
17584
17585 ac_header_preproc=no
17586 fi
17587
17588 rm -f conftest.err conftest.$ac_ext
17589 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17590 $as_echo "$ac_header_preproc" >&6; }
17591
17592 # So? What about this header?
17593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17594 yes:no: )
17595 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17596 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17597 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17598 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17599 ac_header_preproc=yes
17600 ;;
17601 no:yes:* )
17602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17603 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17605 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17607 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17608 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17609 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17610 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17611 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17612 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17613 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17614
17615 ;;
17616 esac
17617 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17618 $as_echo_n "checking for $ac_header... " >&6; }
17619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17620 $as_echo_n "(cached) " >&6
17621 else
17622 eval "$as_ac_Header=\$ac_header_preproc"
17623 fi
17624 ac_res=`eval 'as_val=${'$as_ac_Header'}
17625 $as_echo "$as_val"'`
17626 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17627 $as_echo "$ac_res" >&6; }
17628
17629 fi
17630 if test `eval 'as_val=${'$as_ac_Header'}
17631 $as_echo "$as_val"'` = yes; then
17632 cat >>confdefs.h <<_ACEOF
17633 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17634 _ACEOF
17635
17636 fi
17637
17638 done
17639
17640
17641
17642
17643
17644
17645 for ac_header in $ac_header_list
17646 do
17647 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17649 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17650 $as_echo_n "checking for $ac_header... " >&6; }
17651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17652 $as_echo_n "(cached) " >&6
17653 fi
17654 ac_res=`eval 'as_val=${'$as_ac_Header'}
17655 $as_echo "$as_val"'`
17656 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17657 $as_echo "$ac_res" >&6; }
17658 else
17659 # Is the header compilable?
17660 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17661 $as_echo_n "checking $ac_header usability... " >&6; }
17662 cat >conftest.$ac_ext <<_ACEOF
17663 /* confdefs.h. */
17664 _ACEOF
17665 cat confdefs.h >>conftest.$ac_ext
17666 cat >>conftest.$ac_ext <<_ACEOF
17667 /* end confdefs.h. */
17668 $ac_includes_default
17669 #include <$ac_header>
17670 _ACEOF
17671 rm -f conftest.$ac_objext
17672 if { (ac_try="$ac_compile"
17673 case "(($ac_try" in
17674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17675 *) ac_try_echo=$ac_try;;
17676 esac
17677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17678 $as_echo "$ac_try_echo") >&5
17679 (eval "$ac_compile") 2>conftest.er1
17680 ac_status=$?
17681 grep -v '^ *+' conftest.er1 >conftest.err
17682 rm -f conftest.er1
17683 cat conftest.err >&5
17684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); } && {
17686 test -z "$ac_c_werror_flag" ||
17687 test ! -s conftest.err
17688 } && test -s conftest.$ac_objext; then
17689 ac_header_compiler=yes
17690 else
17691 $as_echo "$as_me: failed program was:" >&5
17692 sed 's/^/| /' conftest.$ac_ext >&5
17693
17694 ac_header_compiler=no
17695 fi
17696
17697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17698 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17699 $as_echo "$ac_header_compiler" >&6; }
17700
17701 # Is the header present?
17702 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17703 $as_echo_n "checking $ac_header presence... " >&6; }
17704 cat >conftest.$ac_ext <<_ACEOF
17705 /* confdefs.h. */
17706 _ACEOF
17707 cat confdefs.h >>conftest.$ac_ext
17708 cat >>conftest.$ac_ext <<_ACEOF
17709 /* end confdefs.h. */
17710 #include <$ac_header>
17711 _ACEOF
17712 if { (ac_try="$ac_cpp conftest.$ac_ext"
17713 case "(($ac_try" in
17714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715 *) ac_try_echo=$ac_try;;
17716 esac
17717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17718 $as_echo "$ac_try_echo") >&5
17719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17720 ac_status=$?
17721 grep -v '^ *+' conftest.er1 >conftest.err
17722 rm -f conftest.er1
17723 cat conftest.err >&5
17724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); } >/dev/null && {
17726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17727 test ! -s conftest.err
17728 }; then
17729 ac_header_preproc=yes
17730 else
17731 $as_echo "$as_me: failed program was:" >&5
17732 sed 's/^/| /' conftest.$ac_ext >&5
17733
17734 ac_header_preproc=no
17735 fi
17736
17737 rm -f conftest.err conftest.$ac_ext
17738 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17739 $as_echo "$ac_header_preproc" >&6; }
17740
17741 # So? What about this header?
17742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17743 yes:no: )
17744 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17745 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17746 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17747 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17748 ac_header_preproc=yes
17749 ;;
17750 no:yes:* )
17751 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17752 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17753 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17754 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17755 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17756 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17758 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17760 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17761 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17762 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17763
17764 ;;
17765 esac
17766 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17767 $as_echo_n "checking for $ac_header... " >&6; }
17768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17769 $as_echo_n "(cached) " >&6
17770 else
17771 eval "$as_ac_Header=\$ac_header_preproc"
17772 fi
17773 ac_res=`eval 'as_val=${'$as_ac_Header'}
17774 $as_echo "$as_val"'`
17775 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17776 $as_echo "$ac_res" >&6; }
17777
17778 fi
17779 if test `eval 'as_val=${'$as_ac_Header'}
17780 $as_echo "$as_val"'` = yes; then
17781 cat >>confdefs.h <<_ACEOF
17782 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17783 _ACEOF
17784
17785 fi
17786
17787 done
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797 for ac_func in $ac_func_list
17798 do
17799 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17800 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17801 $as_echo_n "checking for $ac_func... " >&6; }
17802 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17803 $as_echo_n "(cached) " >&6
17804 else
17805 cat >conftest.$ac_ext <<_ACEOF
17806 /* confdefs.h. */
17807 _ACEOF
17808 cat confdefs.h >>conftest.$ac_ext
17809 cat >>conftest.$ac_ext <<_ACEOF
17810 /* end confdefs.h. */
17811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17813 #define $ac_func innocuous_$ac_func
17814
17815 /* System header to define __stub macros and hopefully few prototypes,
17816 which can conflict with char $ac_func (); below.
17817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17818 <limits.h> exists even on freestanding compilers. */
17819
17820 #ifdef __STDC__
17821 # include <limits.h>
17822 #else
17823 # include <assert.h>
17824 #endif
17825
17826 #undef $ac_func
17827
17828 /* Override any GCC internal prototype to avoid an error.
17829 Use char because int might match the return type of a GCC
17830 builtin and then its argument prototype would still apply. */
17831 #ifdef __cplusplus
17832 extern "C"
17833 #endif
17834 char $ac_func ();
17835 /* The GNU C library defines this for functions which it implements
17836 to always fail with ENOSYS. Some functions are actually named
17837 something starting with __ and the normal name is an alias. */
17838 #if defined __stub_$ac_func || defined __stub___$ac_func
17839 choke me
17840 #endif
17841
17842 int
17843 main ()
17844 {
17845 return $ac_func ();
17846 ;
17847 return 0;
17848 }
17849 _ACEOF
17850 rm -f conftest.$ac_objext conftest$ac_exeext
17851 if { (ac_try="$ac_link"
17852 case "(($ac_try" in
17853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17854 *) ac_try_echo=$ac_try;;
17855 esac
17856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17857 $as_echo "$ac_try_echo") >&5
17858 (eval "$ac_link") 2>conftest.er1
17859 ac_status=$?
17860 grep -v '^ *+' conftest.er1 >conftest.err
17861 rm -f conftest.er1
17862 cat conftest.err >&5
17863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); } && {
17865 test -z "$ac_c_werror_flag" ||
17866 test ! -s conftest.err
17867 } && test -s conftest$ac_exeext && {
17868 test "$cross_compiling" = yes ||
17869 $as_test_x conftest$ac_exeext
17870 }; then
17871 eval "$as_ac_var=yes"
17872 else
17873 $as_echo "$as_me: failed program was:" >&5
17874 sed 's/^/| /' conftest.$ac_ext >&5
17875
17876 eval "$as_ac_var=no"
17877 fi
17878
17879 rm -rf conftest.dSYM
17880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17881 conftest$ac_exeext conftest.$ac_ext
17882 fi
17883 ac_res=`eval 'as_val=${'$as_ac_var'}
17884 $as_echo "$as_val"'`
17885 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17886 $as_echo "$ac_res" >&6; }
17887 if test `eval 'as_val=${'$as_ac_var'}
17888 $as_echo "$as_val"'` = yes; then
17889 cat >>confdefs.h <<_ACEOF
17890 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17891 _ACEOF
17892
17893 fi
17894 done
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
17913 $as_echo_n "checking for working mktime... " >&6; }
17914 if test "${ac_cv_func_working_mktime+set}" = set; then
17915 $as_echo_n "(cached) " >&6
17916 else
17917 if test "$cross_compiling" = yes; then
17918 ac_cv_func_working_mktime=no
17919 else
17920 cat >conftest.$ac_ext <<_ACEOF
17921 /* confdefs.h. */
17922 _ACEOF
17923 cat confdefs.h >>conftest.$ac_ext
17924 cat >>conftest.$ac_ext <<_ACEOF
17925 /* end confdefs.h. */
17926 /* Test program from Paul Eggert and Tony Leneis. */
17927 #ifdef TIME_WITH_SYS_TIME
17928 # include <sys/time.h>
17929 # include <time.h>
17930 #else
17931 # ifdef HAVE_SYS_TIME_H
17932 # include <sys/time.h>
17933 # else
17934 # include <time.h>
17935 # endif
17936 #endif
17937
17938 #include <limits.h>
17939 #include <stdlib.h>
17940
17941 #ifdef HAVE_UNISTD_H
17942 # include <unistd.h>
17943 #endif
17944
17945 #ifndef HAVE_ALARM
17946 # define alarm(X) /* empty */
17947 #endif
17948
17949 /* Work around redefinition to rpl_putenv by other config tests. */
17950 #undef putenv
17951
17952 static time_t time_t_max;
17953 static time_t time_t_min;
17954
17955 /* Values we'll use to set the TZ environment variable. */
17956 static char *tz_strings[] = {
17957 (char *) 0, "TZ=GMT0", "TZ=JST-9",
17958 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
17959 };
17960 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17961
17962 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17963 Based on a problem report from Andreas Jaeger. */
17964 static int
17965 spring_forward_gap ()
17966 {
17967 /* glibc (up to about 1998-10-07) failed this test. */
17968 struct tm tm;
17969
17970 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17971 instead of "TZ=America/Vancouver" in order to detect the bug even
17972 on systems that don't support the Olson extension, or don't have the
17973 full zoneinfo tables installed. */
17974 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17975
17976 tm.tm_year = 98;
17977 tm.tm_mon = 3;
17978 tm.tm_mday = 5;
17979 tm.tm_hour = 2;
17980 tm.tm_min = 0;
17981 tm.tm_sec = 0;
17982 tm.tm_isdst = -1;
17983 return mktime (&tm) != (time_t) -1;
17984 }
17985
17986 static int
17987 mktime_test1 (now)
17988 time_t now;
17989 {
17990 struct tm *lt;
17991 return ! (lt = localtime (&now)) || mktime (lt) == now;
17992 }
17993
17994 static int
17995 mktime_test (now)
17996 time_t now;
17997 {
17998 return (mktime_test1 (now)
17999 && mktime_test1 ((time_t) (time_t_max - now))
18000 && mktime_test1 ((time_t) (time_t_min + now)));
18001 }
18002
18003 static int
18004 irix_6_4_bug ()
18005 {
18006 /* Based on code from Ariel Faigon. */
18007 struct tm tm;
18008 tm.tm_year = 96;
18009 tm.tm_mon = 3;
18010 tm.tm_mday = 0;
18011 tm.tm_hour = 0;
18012 tm.tm_min = 0;
18013 tm.tm_sec = 0;
18014 tm.tm_isdst = -1;
18015 mktime (&tm);
18016 return tm.tm_mon == 2 && tm.tm_mday == 31;
18017 }
18018
18019 static int
18020 bigtime_test (j)
18021 int j;
18022 {
18023 struct tm tm;
18024 time_t now;
18025 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
18026 now = mktime (&tm);
18027 if (now != (time_t) -1)
18028 {
18029 struct tm *lt = localtime (&now);
18030 if (! (lt
18031 && lt->tm_year == tm.tm_year
18032 && lt->tm_mon == tm.tm_mon
18033 && lt->tm_mday == tm.tm_mday
18034 && lt->tm_hour == tm.tm_hour
18035 && lt->tm_min == tm.tm_min
18036 && lt->tm_sec == tm.tm_sec
18037 && lt->tm_yday == tm.tm_yday
18038 && lt->tm_wday == tm.tm_wday
18039 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
18040 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
18041 return 0;
18042 }
18043 return 1;
18044 }
18045
18046 static int
18047 year_2050_test ()
18048 {
18049 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
18050 ignoring leap seconds. */
18051 unsigned long int answer = 2527315200UL;
18052
18053 struct tm tm;
18054 time_t t;
18055 tm.tm_year = 2050 - 1900;
18056 tm.tm_mon = 2 - 1;
18057 tm.tm_mday = 1;
18058 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
18059 tm.tm_isdst = -1;
18060
18061 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18062 instead of "TZ=America/Vancouver" in order to detect the bug even
18063 on systems that don't support the Olson extension, or don't have the
18064 full zoneinfo tables installed. */
18065 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
18066
18067 t = mktime (&tm);
18068
18069 /* Check that the result is either a failure, or close enough
18070 to the correct answer that we can assume the discrepancy is
18071 due to leap seconds. */
18072 return (t == (time_t) -1
18073 || (0 < t && answer - 120 <= t && t <= answer + 120));
18074 }
18075
18076 int
18077 main ()
18078 {
18079 time_t t, delta;
18080 int i, j;
18081
18082 /* This test makes some buggy mktime implementations loop.
18083 Give up after 60 seconds; a mktime slower than that
18084 isn't worth using anyway. */
18085 alarm (60);
18086
18087 for (;;)
18088 {
18089 t = (time_t_max << 1) + 1;
18090 if (t <= time_t_max)
18091 break;
18092 time_t_max = t;
18093 }
18094 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
18095
18096 delta = time_t_max / 997; /* a suitable prime number */
18097 for (i = 0; i < N_STRINGS; i++)
18098 {
18099 if (tz_strings[i])
18100 putenv (tz_strings[i]);
18101
18102 for (t = 0; t <= time_t_max - delta; t += delta)
18103 if (! mktime_test (t))
18104 return 1;
18105 if (! (mktime_test ((time_t) 1)
18106 && mktime_test ((time_t) (60 * 60))
18107 && mktime_test ((time_t) (60 * 60 * 24))))
18108 return 1;
18109
18110 for (j = 1; ; j <<= 1)
18111 if (! bigtime_test (j))
18112 return 1;
18113 else if (INT_MAX / 2 < j)
18114 break;
18115 if (! bigtime_test (INT_MAX))
18116 return 1;
18117 }
18118 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18119 }
18120 _ACEOF
18121 rm -f conftest$ac_exeext
18122 if { (ac_try="$ac_link"
18123 case "(($ac_try" in
18124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18125 *) ac_try_echo=$ac_try;;
18126 esac
18127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18128 $as_echo "$ac_try_echo") >&5
18129 (eval "$ac_link") 2>&5
18130 ac_status=$?
18131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18133 { (case "(($ac_try" in
18134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18135 *) ac_try_echo=$ac_try;;
18136 esac
18137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18138 $as_echo "$ac_try_echo") >&5
18139 (eval "$ac_try") 2>&5
18140 ac_status=$?
18141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142 (exit $ac_status); }; }; then
18143 ac_cv_func_working_mktime=yes
18144 else
18145 $as_echo "$as_me: program exited with status $ac_status" >&5
18146 $as_echo "$as_me: failed program was:" >&5
18147 sed 's/^/| /' conftest.$ac_ext >&5
18148
18149 ( exit $ac_status )
18150 ac_cv_func_working_mktime=no
18151 fi
18152 rm -rf conftest.dSYM
18153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18154 fi
18155
18156
18157 fi
18158 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
18159 $as_echo "$ac_cv_func_working_mktime" >&6; }
18160 if test $ac_cv_func_working_mktime = no; then
18161 case " $LIBOBJS " in
18162 *" mktime.$ac_objext "* ) ;;
18163 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
18164 ;;
18165 esac
18166
18167 fi
18168
18169 if test "$ac_cv_func_working_mktime" = no; then
18170
18171 cat >>confdefs.h <<\_ACEOF
18172 #define BROKEN_MKTIME 1
18173 _ACEOF
18174
18175 fi
18176
18177 ac_have_func=no # yes means we've found a way to get the load average.
18178
18179 # Make sure getloadavg.c is where it belongs, at configure-time.
18180 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
18181 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
18182 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
18183 { (exit 1); exit 1; }; }
18184
18185 ac_save_LIBS=$LIBS
18186
18187 # Check for getloadavg, but be sure not to touch the cache variable.
18188 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
18189 $as_echo_n "checking for getloadavg... " >&6; }
18190 if test "${ac_cv_func_getloadavg+set}" = set; then
18191 $as_echo_n "(cached) " >&6
18192 else
18193 cat >conftest.$ac_ext <<_ACEOF
18194 /* confdefs.h. */
18195 _ACEOF
18196 cat confdefs.h >>conftest.$ac_ext
18197 cat >>conftest.$ac_ext <<_ACEOF
18198 /* end confdefs.h. */
18199 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18201 #define getloadavg innocuous_getloadavg
18202
18203 /* System header to define __stub macros and hopefully few prototypes,
18204 which can conflict with char getloadavg (); below.
18205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18206 <limits.h> exists even on freestanding compilers. */
18207
18208 #ifdef __STDC__
18209 # include <limits.h>
18210 #else
18211 # include <assert.h>
18212 #endif
18213
18214 #undef getloadavg
18215
18216 /* Override any GCC internal prototype to avoid an error.
18217 Use char because int might match the return type of a GCC
18218 builtin and then its argument prototype would still apply. */
18219 #ifdef __cplusplus
18220 extern "C"
18221 #endif
18222 char getloadavg ();
18223 /* The GNU C library defines this for functions which it implements
18224 to always fail with ENOSYS. Some functions are actually named
18225 something starting with __ and the normal name is an alias. */
18226 #if defined __stub_getloadavg || defined __stub___getloadavg
18227 choke me
18228 #endif
18229
18230 int
18231 main ()
18232 {
18233 return getloadavg ();
18234 ;
18235 return 0;
18236 }
18237 _ACEOF
18238 rm -f conftest.$ac_objext conftest$ac_exeext
18239 if { (ac_try="$ac_link"
18240 case "(($ac_try" in
18241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18242 *) ac_try_echo=$ac_try;;
18243 esac
18244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18245 $as_echo "$ac_try_echo") >&5
18246 (eval "$ac_link") 2>conftest.er1
18247 ac_status=$?
18248 grep -v '^ *+' conftest.er1 >conftest.err
18249 rm -f conftest.er1
18250 cat conftest.err >&5
18251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252 (exit $ac_status); } && {
18253 test -z "$ac_c_werror_flag" ||
18254 test ! -s conftest.err
18255 } && test -s conftest$ac_exeext && {
18256 test "$cross_compiling" = yes ||
18257 $as_test_x conftest$ac_exeext
18258 }; then
18259 ac_cv_func_getloadavg=yes
18260 else
18261 $as_echo "$as_me: failed program was:" >&5
18262 sed 's/^/| /' conftest.$ac_ext >&5
18263
18264 ac_cv_func_getloadavg=no
18265 fi
18266
18267 rm -rf conftest.dSYM
18268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18269 conftest$ac_exeext conftest.$ac_ext
18270 fi
18271 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
18272 $as_echo "$ac_cv_func_getloadavg" >&6; }
18273 if test $ac_cv_func_getloadavg = yes; then
18274 exit 0
18275 else
18276 exit 1
18277 fi
18278 ) && ac_have_func=yes
18279
18280 # On HPUX9, an unprivileged user can get load averages through this function.
18281
18282 for ac_func in pstat_getdynamic
18283 do
18284 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18285 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18286 $as_echo_n "checking for $ac_func... " >&6; }
18287 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18288 $as_echo_n "(cached) " >&6
18289 else
18290 cat >conftest.$ac_ext <<_ACEOF
18291 /* confdefs.h. */
18292 _ACEOF
18293 cat confdefs.h >>conftest.$ac_ext
18294 cat >>conftest.$ac_ext <<_ACEOF
18295 /* end confdefs.h. */
18296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18298 #define $ac_func innocuous_$ac_func
18299
18300 /* System header to define __stub macros and hopefully few prototypes,
18301 which can conflict with char $ac_func (); below.
18302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18303 <limits.h> exists even on freestanding compilers. */
18304
18305 #ifdef __STDC__
18306 # include <limits.h>
18307 #else
18308 # include <assert.h>
18309 #endif
18310
18311 #undef $ac_func
18312
18313 /* Override any GCC internal prototype to avoid an error.
18314 Use char because int might match the return type of a GCC
18315 builtin and then its argument prototype would still apply. */
18316 #ifdef __cplusplus
18317 extern "C"
18318 #endif
18319 char $ac_func ();
18320 /* The GNU C library defines this for functions which it implements
18321 to always fail with ENOSYS. Some functions are actually named
18322 something starting with __ and the normal name is an alias. */
18323 #if defined __stub_$ac_func || defined __stub___$ac_func
18324 choke me
18325 #endif
18326
18327 int
18328 main ()
18329 {
18330 return $ac_func ();
18331 ;
18332 return 0;
18333 }
18334 _ACEOF
18335 rm -f conftest.$ac_objext conftest$ac_exeext
18336 if { (ac_try="$ac_link"
18337 case "(($ac_try" in
18338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18339 *) ac_try_echo=$ac_try;;
18340 esac
18341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18342 $as_echo "$ac_try_echo") >&5
18343 (eval "$ac_link") 2>conftest.er1
18344 ac_status=$?
18345 grep -v '^ *+' conftest.er1 >conftest.err
18346 rm -f conftest.er1
18347 cat conftest.err >&5
18348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349 (exit $ac_status); } && {
18350 test -z "$ac_c_werror_flag" ||
18351 test ! -s conftest.err
18352 } && test -s conftest$ac_exeext && {
18353 test "$cross_compiling" = yes ||
18354 $as_test_x conftest$ac_exeext
18355 }; then
18356 eval "$as_ac_var=yes"
18357 else
18358 $as_echo "$as_me: failed program was:" >&5
18359 sed 's/^/| /' conftest.$ac_ext >&5
18360
18361 eval "$as_ac_var=no"
18362 fi
18363
18364 rm -rf conftest.dSYM
18365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18366 conftest$ac_exeext conftest.$ac_ext
18367 fi
18368 ac_res=`eval 'as_val=${'$as_ac_var'}
18369 $as_echo "$as_val"'`
18370 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18371 $as_echo "$ac_res" >&6; }
18372 if test `eval 'as_val=${'$as_ac_var'}
18373 $as_echo "$as_val"'` = yes; then
18374 cat >>confdefs.h <<_ACEOF
18375 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18376 _ACEOF
18377
18378 fi
18379 done
18380
18381
18382 # Solaris has libkstat which does not require root.
18383
18384 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
18385 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18386 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18387 $as_echo_n "(cached) " >&6
18388 else
18389 ac_check_lib_save_LIBS=$LIBS
18390 LIBS="-lkstat $LIBS"
18391 cat >conftest.$ac_ext <<_ACEOF
18392 /* confdefs.h. */
18393 _ACEOF
18394 cat confdefs.h >>conftest.$ac_ext
18395 cat >>conftest.$ac_ext <<_ACEOF
18396 /* end confdefs.h. */
18397
18398 /* Override any GCC internal prototype to avoid an error.
18399 Use char because int might match the return type of a GCC
18400 builtin and then its argument prototype would still apply. */
18401 #ifdef __cplusplus
18402 extern "C"
18403 #endif
18404 char kstat_open ();
18405 int
18406 main ()
18407 {
18408 return kstat_open ();
18409 ;
18410 return 0;
18411 }
18412 _ACEOF
18413 rm -f conftest.$ac_objext conftest$ac_exeext
18414 if { (ac_try="$ac_link"
18415 case "(($ac_try" in
18416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18417 *) ac_try_echo=$ac_try;;
18418 esac
18419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18420 $as_echo "$ac_try_echo") >&5
18421 (eval "$ac_link") 2>conftest.er1
18422 ac_status=$?
18423 grep -v '^ *+' conftest.er1 >conftest.err
18424 rm -f conftest.er1
18425 cat conftest.err >&5
18426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427 (exit $ac_status); } && {
18428 test -z "$ac_c_werror_flag" ||
18429 test ! -s conftest.err
18430 } && test -s conftest$ac_exeext && {
18431 test "$cross_compiling" = yes ||
18432 $as_test_x conftest$ac_exeext
18433 }; then
18434 ac_cv_lib_kstat_kstat_open=yes
18435 else
18436 $as_echo "$as_me: failed program was:" >&5
18437 sed 's/^/| /' conftest.$ac_ext >&5
18438
18439 ac_cv_lib_kstat_kstat_open=no
18440 fi
18441
18442 rm -rf conftest.dSYM
18443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18444 conftest$ac_exeext conftest.$ac_ext
18445 LIBS=$ac_check_lib_save_LIBS
18446 fi
18447 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
18448 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18449 if test $ac_cv_lib_kstat_kstat_open = yes; then
18450 cat >>confdefs.h <<_ACEOF
18451 #define HAVE_LIBKSTAT 1
18452 _ACEOF
18453
18454 LIBS="-lkstat $LIBS"
18455
18456 fi
18457
18458 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18459
18460 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18461 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18462 # to get the right answer into the cache.
18463 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18464 if test $ac_have_func = no; then
18465 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18466 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18467 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18468 $as_echo_n "(cached) " >&6
18469 else
18470 ac_check_lib_save_LIBS=$LIBS
18471 LIBS="-lelf $LIBS"
18472 cat >conftest.$ac_ext <<_ACEOF
18473 /* confdefs.h. */
18474 _ACEOF
18475 cat confdefs.h >>conftest.$ac_ext
18476 cat >>conftest.$ac_ext <<_ACEOF
18477 /* end confdefs.h. */
18478
18479 /* Override any GCC internal prototype to avoid an error.
18480 Use char because int might match the return type of a GCC
18481 builtin and then its argument prototype would still apply. */
18482 #ifdef __cplusplus
18483 extern "C"
18484 #endif
18485 char elf_begin ();
18486 int
18487 main ()
18488 {
18489 return elf_begin ();
18490 ;
18491 return 0;
18492 }
18493 _ACEOF
18494 rm -f conftest.$ac_objext conftest$ac_exeext
18495 if { (ac_try="$ac_link"
18496 case "(($ac_try" in
18497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18498 *) ac_try_echo=$ac_try;;
18499 esac
18500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18501 $as_echo "$ac_try_echo") >&5
18502 (eval "$ac_link") 2>conftest.er1
18503 ac_status=$?
18504 grep -v '^ *+' conftest.er1 >conftest.err
18505 rm -f conftest.er1
18506 cat conftest.err >&5
18507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508 (exit $ac_status); } && {
18509 test -z "$ac_c_werror_flag" ||
18510 test ! -s conftest.err
18511 } && test -s conftest$ac_exeext && {
18512 test "$cross_compiling" = yes ||
18513 $as_test_x conftest$ac_exeext
18514 }; then
18515 ac_cv_lib_elf_elf_begin=yes
18516 else
18517 $as_echo "$as_me: failed program was:" >&5
18518 sed 's/^/| /' conftest.$ac_ext >&5
18519
18520 ac_cv_lib_elf_elf_begin=no
18521 fi
18522
18523 rm -rf conftest.dSYM
18524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18525 conftest$ac_exeext conftest.$ac_ext
18526 LIBS=$ac_check_lib_save_LIBS
18527 fi
18528 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18529 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18530 if test $ac_cv_lib_elf_elf_begin = yes; then
18531 LIBS="-lelf $LIBS"
18532 fi
18533
18534 fi
18535 if test $ac_have_func = no; then
18536 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
18537 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18538 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18539 $as_echo_n "(cached) " >&6
18540 else
18541 ac_check_lib_save_LIBS=$LIBS
18542 LIBS="-lkvm $LIBS"
18543 cat >conftest.$ac_ext <<_ACEOF
18544 /* confdefs.h. */
18545 _ACEOF
18546 cat confdefs.h >>conftest.$ac_ext
18547 cat >>conftest.$ac_ext <<_ACEOF
18548 /* end confdefs.h. */
18549
18550 /* Override any GCC internal prototype to avoid an error.
18551 Use char because int might match the return type of a GCC
18552 builtin and then its argument prototype would still apply. */
18553 #ifdef __cplusplus
18554 extern "C"
18555 #endif
18556 char kvm_open ();
18557 int
18558 main ()
18559 {
18560 return kvm_open ();
18561 ;
18562 return 0;
18563 }
18564 _ACEOF
18565 rm -f conftest.$ac_objext conftest$ac_exeext
18566 if { (ac_try="$ac_link"
18567 case "(($ac_try" in
18568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18569 *) ac_try_echo=$ac_try;;
18570 esac
18571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18572 $as_echo "$ac_try_echo") >&5
18573 (eval "$ac_link") 2>conftest.er1
18574 ac_status=$?
18575 grep -v '^ *+' conftest.er1 >conftest.err
18576 rm -f conftest.er1
18577 cat conftest.err >&5
18578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579 (exit $ac_status); } && {
18580 test -z "$ac_c_werror_flag" ||
18581 test ! -s conftest.err
18582 } && test -s conftest$ac_exeext && {
18583 test "$cross_compiling" = yes ||
18584 $as_test_x conftest$ac_exeext
18585 }; then
18586 ac_cv_lib_kvm_kvm_open=yes
18587 else
18588 $as_echo "$as_me: failed program was:" >&5
18589 sed 's/^/| /' conftest.$ac_ext >&5
18590
18591 ac_cv_lib_kvm_kvm_open=no
18592 fi
18593
18594 rm -rf conftest.dSYM
18595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18596 conftest$ac_exeext conftest.$ac_ext
18597 LIBS=$ac_check_lib_save_LIBS
18598 fi
18599 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
18600 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18601 if test $ac_cv_lib_kvm_kvm_open = yes; then
18602 LIBS="-lkvm $LIBS"
18603 fi
18604
18605 # Check for the 4.4BSD definition of getloadavg.
18606 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18607 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18608 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18609 $as_echo_n "(cached) " >&6
18610 else
18611 ac_check_lib_save_LIBS=$LIBS
18612 LIBS="-lutil $LIBS"
18613 cat >conftest.$ac_ext <<_ACEOF
18614 /* confdefs.h. */
18615 _ACEOF
18616 cat confdefs.h >>conftest.$ac_ext
18617 cat >>conftest.$ac_ext <<_ACEOF
18618 /* end confdefs.h. */
18619
18620 /* Override any GCC internal prototype to avoid an error.
18621 Use char because int might match the return type of a GCC
18622 builtin and then its argument prototype would still apply. */
18623 #ifdef __cplusplus
18624 extern "C"
18625 #endif
18626 char getloadavg ();
18627 int
18628 main ()
18629 {
18630 return getloadavg ();
18631 ;
18632 return 0;
18633 }
18634 _ACEOF
18635 rm -f conftest.$ac_objext conftest$ac_exeext
18636 if { (ac_try="$ac_link"
18637 case "(($ac_try" in
18638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18639 *) ac_try_echo=$ac_try;;
18640 esac
18641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18642 $as_echo "$ac_try_echo") >&5
18643 (eval "$ac_link") 2>conftest.er1
18644 ac_status=$?
18645 grep -v '^ *+' conftest.er1 >conftest.err
18646 rm -f conftest.er1
18647 cat conftest.err >&5
18648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649 (exit $ac_status); } && {
18650 test -z "$ac_c_werror_flag" ||
18651 test ! -s conftest.err
18652 } && test -s conftest$ac_exeext && {
18653 test "$cross_compiling" = yes ||
18654 $as_test_x conftest$ac_exeext
18655 }; then
18656 ac_cv_lib_util_getloadavg=yes
18657 else
18658 $as_echo "$as_me: failed program was:" >&5
18659 sed 's/^/| /' conftest.$ac_ext >&5
18660
18661 ac_cv_lib_util_getloadavg=no
18662 fi
18663
18664 rm -rf conftest.dSYM
18665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18666 conftest$ac_exeext conftest.$ac_ext
18667 LIBS=$ac_check_lib_save_LIBS
18668 fi
18669 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
18670 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18671 if test $ac_cv_lib_util_getloadavg = yes; then
18672 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18673 fi
18674
18675 fi
18676
18677 if test $ac_have_func = no; then
18678 # There is a commonly available library for RS/6000 AIX.
18679 # Since it is not a standard part of AIX, it might be installed locally.
18680 ac_getloadavg_LIBS=$LIBS
18681 LIBS="-L/usr/local/lib $LIBS"
18682 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
18683 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18684 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18685 $as_echo_n "(cached) " >&6
18686 else
18687 ac_check_lib_save_LIBS=$LIBS
18688 LIBS="-lgetloadavg $LIBS"
18689 cat >conftest.$ac_ext <<_ACEOF
18690 /* confdefs.h. */
18691 _ACEOF
18692 cat confdefs.h >>conftest.$ac_ext
18693 cat >>conftest.$ac_ext <<_ACEOF
18694 /* end confdefs.h. */
18695
18696 /* Override any GCC internal prototype to avoid an error.
18697 Use char because int might match the return type of a GCC
18698 builtin and then its argument prototype would still apply. */
18699 #ifdef __cplusplus
18700 extern "C"
18701 #endif
18702 char getloadavg ();
18703 int
18704 main ()
18705 {
18706 return getloadavg ();
18707 ;
18708 return 0;
18709 }
18710 _ACEOF
18711 rm -f conftest.$ac_objext conftest$ac_exeext
18712 if { (ac_try="$ac_link"
18713 case "(($ac_try" in
18714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18715 *) ac_try_echo=$ac_try;;
18716 esac
18717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18718 $as_echo "$ac_try_echo") >&5
18719 (eval "$ac_link") 2>conftest.er1
18720 ac_status=$?
18721 grep -v '^ *+' conftest.er1 >conftest.err
18722 rm -f conftest.er1
18723 cat conftest.err >&5
18724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); } && {
18726 test -z "$ac_c_werror_flag" ||
18727 test ! -s conftest.err
18728 } && test -s conftest$ac_exeext && {
18729 test "$cross_compiling" = yes ||
18730 $as_test_x conftest$ac_exeext
18731 }; then
18732 ac_cv_lib_getloadavg_getloadavg=yes
18733 else
18734 $as_echo "$as_me: failed program was:" >&5
18735 sed 's/^/| /' conftest.$ac_ext >&5
18736
18737 ac_cv_lib_getloadavg_getloadavg=no
18738 fi
18739
18740 rm -rf conftest.dSYM
18741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18742 conftest$ac_exeext conftest.$ac_ext
18743 LIBS=$ac_check_lib_save_LIBS
18744 fi
18745 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18746 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18747 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18748 LIBS="-lgetloadavg $LIBS"
18749 else
18750 LIBS=$ac_getloadavg_LIBS
18751 fi
18752
18753 fi
18754
18755 # Make sure it is really in the library, if we think we found it,
18756 # otherwise set up the replacement function.
18757
18758 for ac_func in getloadavg
18759 do
18760 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18761 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18762 $as_echo_n "checking for $ac_func... " >&6; }
18763 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18764 $as_echo_n "(cached) " >&6
18765 else
18766 cat >conftest.$ac_ext <<_ACEOF
18767 /* confdefs.h. */
18768 _ACEOF
18769 cat confdefs.h >>conftest.$ac_ext
18770 cat >>conftest.$ac_ext <<_ACEOF
18771 /* end confdefs.h. */
18772 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18774 #define $ac_func innocuous_$ac_func
18775
18776 /* System header to define __stub macros and hopefully few prototypes,
18777 which can conflict with char $ac_func (); below.
18778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18779 <limits.h> exists even on freestanding compilers. */
18780
18781 #ifdef __STDC__
18782 # include <limits.h>
18783 #else
18784 # include <assert.h>
18785 #endif
18786
18787 #undef $ac_func
18788
18789 /* Override any GCC internal prototype to avoid an error.
18790 Use char because int might match the return type of a GCC
18791 builtin and then its argument prototype would still apply. */
18792 #ifdef __cplusplus
18793 extern "C"
18794 #endif
18795 char $ac_func ();
18796 /* The GNU C library defines this for functions which it implements
18797 to always fail with ENOSYS. Some functions are actually named
18798 something starting with __ and the normal name is an alias. */
18799 #if defined __stub_$ac_func || defined __stub___$ac_func
18800 choke me
18801 #endif
18802
18803 int
18804 main ()
18805 {
18806 return $ac_func ();
18807 ;
18808 return 0;
18809 }
18810 _ACEOF
18811 rm -f conftest.$ac_objext conftest$ac_exeext
18812 if { (ac_try="$ac_link"
18813 case "(($ac_try" in
18814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18815 *) ac_try_echo=$ac_try;;
18816 esac
18817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18818 $as_echo "$ac_try_echo") >&5
18819 (eval "$ac_link") 2>conftest.er1
18820 ac_status=$?
18821 grep -v '^ *+' conftest.er1 >conftest.err
18822 rm -f conftest.er1
18823 cat conftest.err >&5
18824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); } && {
18826 test -z "$ac_c_werror_flag" ||
18827 test ! -s conftest.err
18828 } && test -s conftest$ac_exeext && {
18829 test "$cross_compiling" = yes ||
18830 $as_test_x conftest$ac_exeext
18831 }; then
18832 eval "$as_ac_var=yes"
18833 else
18834 $as_echo "$as_me: failed program was:" >&5
18835 sed 's/^/| /' conftest.$ac_ext >&5
18836
18837 eval "$as_ac_var=no"
18838 fi
18839
18840 rm -rf conftest.dSYM
18841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18842 conftest$ac_exeext conftest.$ac_ext
18843 fi
18844 ac_res=`eval 'as_val=${'$as_ac_var'}
18845 $as_echo "$as_val"'`
18846 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18847 $as_echo "$ac_res" >&6; }
18848 if test `eval 'as_val=${'$as_ac_var'}
18849 $as_echo "$as_val"'` = yes; then
18850 cat >>confdefs.h <<_ACEOF
18851 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18852 _ACEOF
18853
18854 else
18855 case " $LIBOBJS " in
18856 *" getloadavg.$ac_objext "* ) ;;
18857 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
18858 ;;
18859 esac
18860
18861
18862 cat >>confdefs.h <<\_ACEOF
18863 #define C_GETLOADAVG 1
18864 _ACEOF
18865
18866 # Figure out what our getloadavg.c needs.
18867 ac_have_func=no
18868 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18869 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18870 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18871 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18872 $as_echo_n "(cached) " >&6
18873 fi
18874 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18875 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18876 else
18877 # Is the header compilable?
18878 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
18879 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
18880 cat >conftest.$ac_ext <<_ACEOF
18881 /* confdefs.h. */
18882 _ACEOF
18883 cat confdefs.h >>conftest.$ac_ext
18884 cat >>conftest.$ac_ext <<_ACEOF
18885 /* end confdefs.h. */
18886 $ac_includes_default
18887 #include <sys/dg_sys_info.h>
18888 _ACEOF
18889 rm -f conftest.$ac_objext
18890 if { (ac_try="$ac_compile"
18891 case "(($ac_try" in
18892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18893 *) ac_try_echo=$ac_try;;
18894 esac
18895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18896 $as_echo "$ac_try_echo") >&5
18897 (eval "$ac_compile") 2>conftest.er1
18898 ac_status=$?
18899 grep -v '^ *+' conftest.er1 >conftest.err
18900 rm -f conftest.er1
18901 cat conftest.err >&5
18902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); } && {
18904 test -z "$ac_c_werror_flag" ||
18905 test ! -s conftest.err
18906 } && test -s conftest.$ac_objext; then
18907 ac_header_compiler=yes
18908 else
18909 $as_echo "$as_me: failed program was:" >&5
18910 sed 's/^/| /' conftest.$ac_ext >&5
18911
18912 ac_header_compiler=no
18913 fi
18914
18915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18916 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18917 $as_echo "$ac_header_compiler" >&6; }
18918
18919 # Is the header present?
18920 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
18921 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
18922 cat >conftest.$ac_ext <<_ACEOF
18923 /* confdefs.h. */
18924 _ACEOF
18925 cat confdefs.h >>conftest.$ac_ext
18926 cat >>conftest.$ac_ext <<_ACEOF
18927 /* end confdefs.h. */
18928 #include <sys/dg_sys_info.h>
18929 _ACEOF
18930 if { (ac_try="$ac_cpp conftest.$ac_ext"
18931 case "(($ac_try" in
18932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18933 *) ac_try_echo=$ac_try;;
18934 esac
18935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18936 $as_echo "$ac_try_echo") >&5
18937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18938 ac_status=$?
18939 grep -v '^ *+' conftest.er1 >conftest.err
18940 rm -f conftest.er1
18941 cat conftest.err >&5
18942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943 (exit $ac_status); } >/dev/null && {
18944 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18945 test ! -s conftest.err
18946 }; then
18947 ac_header_preproc=yes
18948 else
18949 $as_echo "$as_me: failed program was:" >&5
18950 sed 's/^/| /' conftest.$ac_ext >&5
18951
18952 ac_header_preproc=no
18953 fi
18954
18955 rm -f conftest.err conftest.$ac_ext
18956 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18957 $as_echo "$ac_header_preproc" >&6; }
18958
18959 # So? What about this header?
18960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18961 yes:no: )
18962 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
18963 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18964 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
18965 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
18966 ac_header_preproc=yes
18967 ;;
18968 no:yes:* )
18969 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
18970 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
18971 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
18972 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
18973 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
18974 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
18975 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
18976 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
18977 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
18978 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
18979 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
18980 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
18981
18982 ;;
18983 esac
18984 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18985 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18986 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18987 $as_echo_n "(cached) " >&6
18988 else
18989 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
18990 fi
18991 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18992 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18993
18994 fi
18995 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
18996 ac_have_func=yes
18997
18998 cat >>confdefs.h <<\_ACEOF
18999 #define DGUX 1
19000 _ACEOF
19001
19002
19003 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
19004 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19005 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
19006 $as_echo_n "(cached) " >&6
19007 else
19008 ac_check_lib_save_LIBS=$LIBS
19009 LIBS="-ldgc $LIBS"
19010 cat >conftest.$ac_ext <<_ACEOF
19011 /* confdefs.h. */
19012 _ACEOF
19013 cat confdefs.h >>conftest.$ac_ext
19014 cat >>conftest.$ac_ext <<_ACEOF
19015 /* end confdefs.h. */
19016
19017 /* Override any GCC internal prototype to avoid an error.
19018 Use char because int might match the return type of a GCC
19019 builtin and then its argument prototype would still apply. */
19020 #ifdef __cplusplus
19021 extern "C"
19022 #endif
19023 char dg_sys_info ();
19024 int
19025 main ()
19026 {
19027 return dg_sys_info ();
19028 ;
19029 return 0;
19030 }
19031 _ACEOF
19032 rm -f conftest.$ac_objext conftest$ac_exeext
19033 if { (ac_try="$ac_link"
19034 case "(($ac_try" in
19035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19036 *) ac_try_echo=$ac_try;;
19037 esac
19038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19039 $as_echo "$ac_try_echo") >&5
19040 (eval "$ac_link") 2>conftest.er1
19041 ac_status=$?
19042 grep -v '^ *+' conftest.er1 >conftest.err
19043 rm -f conftest.er1
19044 cat conftest.err >&5
19045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); } && {
19047 test -z "$ac_c_werror_flag" ||
19048 test ! -s conftest.err
19049 } && test -s conftest$ac_exeext && {
19050 test "$cross_compiling" = yes ||
19051 $as_test_x conftest$ac_exeext
19052 }; then
19053 ac_cv_lib_dgc_dg_sys_info=yes
19054 else
19055 $as_echo "$as_me: failed program was:" >&5
19056 sed 's/^/| /' conftest.$ac_ext >&5
19057
19058 ac_cv_lib_dgc_dg_sys_info=no
19059 fi
19060
19061 rm -rf conftest.dSYM
19062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19063 conftest$ac_exeext conftest.$ac_ext
19064 LIBS=$ac_check_lib_save_LIBS
19065 fi
19066 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19067 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19068 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
19069 cat >>confdefs.h <<_ACEOF
19070 #define HAVE_LIBDGC 1
19071 _ACEOF
19072
19073 LIBS="-ldgc $LIBS"
19074
19075 fi
19076
19077 fi
19078
19079
19080
19081 if test "${ac_cv_header_locale_h+set}" = set; then
19082 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19083 $as_echo_n "checking for locale.h... " >&6; }
19084 if test "${ac_cv_header_locale_h+set}" = set; then
19085 $as_echo_n "(cached) " >&6
19086 fi
19087 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19088 $as_echo "$ac_cv_header_locale_h" >&6; }
19089 else
19090 # Is the header compilable?
19091 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
19092 $as_echo_n "checking locale.h usability... " >&6; }
19093 cat >conftest.$ac_ext <<_ACEOF
19094 /* confdefs.h. */
19095 _ACEOF
19096 cat confdefs.h >>conftest.$ac_ext
19097 cat >>conftest.$ac_ext <<_ACEOF
19098 /* end confdefs.h. */
19099 $ac_includes_default
19100 #include <locale.h>
19101 _ACEOF
19102 rm -f conftest.$ac_objext
19103 if { (ac_try="$ac_compile"
19104 case "(($ac_try" in
19105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19106 *) ac_try_echo=$ac_try;;
19107 esac
19108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19109 $as_echo "$ac_try_echo") >&5
19110 (eval "$ac_compile") 2>conftest.er1
19111 ac_status=$?
19112 grep -v '^ *+' conftest.er1 >conftest.err
19113 rm -f conftest.er1
19114 cat conftest.err >&5
19115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116 (exit $ac_status); } && {
19117 test -z "$ac_c_werror_flag" ||
19118 test ! -s conftest.err
19119 } && test -s conftest.$ac_objext; then
19120 ac_header_compiler=yes
19121 else
19122 $as_echo "$as_me: failed program was:" >&5
19123 sed 's/^/| /' conftest.$ac_ext >&5
19124
19125 ac_header_compiler=no
19126 fi
19127
19128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19129 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19130 $as_echo "$ac_header_compiler" >&6; }
19131
19132 # Is the header present?
19133 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
19134 $as_echo_n "checking locale.h presence... " >&6; }
19135 cat >conftest.$ac_ext <<_ACEOF
19136 /* confdefs.h. */
19137 _ACEOF
19138 cat confdefs.h >>conftest.$ac_ext
19139 cat >>conftest.$ac_ext <<_ACEOF
19140 /* end confdefs.h. */
19141 #include <locale.h>
19142 _ACEOF
19143 if { (ac_try="$ac_cpp conftest.$ac_ext"
19144 case "(($ac_try" in
19145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19146 *) ac_try_echo=$ac_try;;
19147 esac
19148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19149 $as_echo "$ac_try_echo") >&5
19150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19151 ac_status=$?
19152 grep -v '^ *+' conftest.er1 >conftest.err
19153 rm -f conftest.er1
19154 cat conftest.err >&5
19155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19156 (exit $ac_status); } >/dev/null && {
19157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19158 test ! -s conftest.err
19159 }; then
19160 ac_header_preproc=yes
19161 else
19162 $as_echo "$as_me: failed program was:" >&5
19163 sed 's/^/| /' conftest.$ac_ext >&5
19164
19165 ac_header_preproc=no
19166 fi
19167
19168 rm -f conftest.err conftest.$ac_ext
19169 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19170 $as_echo "$ac_header_preproc" >&6; }
19171
19172 # So? What about this header?
19173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19174 yes:no: )
19175 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
19176 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19177 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
19178 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
19179 ac_header_preproc=yes
19180 ;;
19181 no:yes:* )
19182 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
19183 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
19184 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
19185 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
19186 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
19187 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
19188 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
19189 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
19190 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
19191 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
19192 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
19193 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
19194
19195 ;;
19196 esac
19197 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19198 $as_echo_n "checking for locale.h... " >&6; }
19199 if test "${ac_cv_header_locale_h+set}" = set; then
19200 $as_echo_n "(cached) " >&6
19201 else
19202 ac_cv_header_locale_h=$ac_header_preproc
19203 fi
19204 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19205 $as_echo "$ac_cv_header_locale_h" >&6; }
19206
19207 fi
19208
19209
19210
19211 for ac_func in setlocale
19212 do
19213 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19214 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19215 $as_echo_n "checking for $ac_func... " >&6; }
19216 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19217 $as_echo_n "(cached) " >&6
19218 else
19219 cat >conftest.$ac_ext <<_ACEOF
19220 /* confdefs.h. */
19221 _ACEOF
19222 cat confdefs.h >>conftest.$ac_ext
19223 cat >>conftest.$ac_ext <<_ACEOF
19224 /* end confdefs.h. */
19225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19227 #define $ac_func innocuous_$ac_func
19228
19229 /* System header to define __stub macros and hopefully few prototypes,
19230 which can conflict with char $ac_func (); below.
19231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19232 <limits.h> exists even on freestanding compilers. */
19233
19234 #ifdef __STDC__
19235 # include <limits.h>
19236 #else
19237 # include <assert.h>
19238 #endif
19239
19240 #undef $ac_func
19241
19242 /* Override any GCC internal prototype to avoid an error.
19243 Use char because int might match the return type of a GCC
19244 builtin and then its argument prototype would still apply. */
19245 #ifdef __cplusplus
19246 extern "C"
19247 #endif
19248 char $ac_func ();
19249 /* The GNU C library defines this for functions which it implements
19250 to always fail with ENOSYS. Some functions are actually named
19251 something starting with __ and the normal name is an alias. */
19252 #if defined __stub_$ac_func || defined __stub___$ac_func
19253 choke me
19254 #endif
19255
19256 int
19257 main ()
19258 {
19259 return $ac_func ();
19260 ;
19261 return 0;
19262 }
19263 _ACEOF
19264 rm -f conftest.$ac_objext conftest$ac_exeext
19265 if { (ac_try="$ac_link"
19266 case "(($ac_try" in
19267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19268 *) ac_try_echo=$ac_try;;
19269 esac
19270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19271 $as_echo "$ac_try_echo") >&5
19272 (eval "$ac_link") 2>conftest.er1
19273 ac_status=$?
19274 grep -v '^ *+' conftest.er1 >conftest.err
19275 rm -f conftest.er1
19276 cat conftest.err >&5
19277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); } && {
19279 test -z "$ac_c_werror_flag" ||
19280 test ! -s conftest.err
19281 } && test -s conftest$ac_exeext && {
19282 test "$cross_compiling" = yes ||
19283 $as_test_x conftest$ac_exeext
19284 }; then
19285 eval "$as_ac_var=yes"
19286 else
19287 $as_echo "$as_me: failed program was:" >&5
19288 sed 's/^/| /' conftest.$ac_ext >&5
19289
19290 eval "$as_ac_var=no"
19291 fi
19292
19293 rm -rf conftest.dSYM
19294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19295 conftest$ac_exeext conftest.$ac_ext
19296 fi
19297 ac_res=`eval 'as_val=${'$as_ac_var'}
19298 $as_echo "$as_val"'`
19299 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19300 $as_echo "$ac_res" >&6; }
19301 if test `eval 'as_val=${'$as_ac_var'}
19302 $as_echo "$as_val"'` = yes; then
19303 cat >>confdefs.h <<_ACEOF
19304 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19305 _ACEOF
19306
19307 fi
19308 done
19309
19310
19311 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19312 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19313 # Irix 4.0.5F has the header but not the library.
19314 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19315 ac_have_func=yes
19316
19317 cat >>confdefs.h <<\_ACEOF
19318 #define SVR4 1
19319 _ACEOF
19320
19321 fi
19322
19323 if test $ac_have_func = no; then
19324 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19325 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19326 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19327 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19328 $as_echo_n "(cached) " >&6
19329 fi
19330 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19331 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19332 else
19333 # Is the header compilable?
19334 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
19335 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
19336 cat >conftest.$ac_ext <<_ACEOF
19337 /* confdefs.h. */
19338 _ACEOF
19339 cat confdefs.h >>conftest.$ac_ext
19340 cat >>conftest.$ac_ext <<_ACEOF
19341 /* end confdefs.h. */
19342 $ac_includes_default
19343 #include <inq_stats/cpustats.h>
19344 _ACEOF
19345 rm -f conftest.$ac_objext
19346 if { (ac_try="$ac_compile"
19347 case "(($ac_try" in
19348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19349 *) ac_try_echo=$ac_try;;
19350 esac
19351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19352 $as_echo "$ac_try_echo") >&5
19353 (eval "$ac_compile") 2>conftest.er1
19354 ac_status=$?
19355 grep -v '^ *+' conftest.er1 >conftest.err
19356 rm -f conftest.er1
19357 cat conftest.err >&5
19358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19359 (exit $ac_status); } && {
19360 test -z "$ac_c_werror_flag" ||
19361 test ! -s conftest.err
19362 } && test -s conftest.$ac_objext; then
19363 ac_header_compiler=yes
19364 else
19365 $as_echo "$as_me: failed program was:" >&5
19366 sed 's/^/| /' conftest.$ac_ext >&5
19367
19368 ac_header_compiler=no
19369 fi
19370
19371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19372 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19373 $as_echo "$ac_header_compiler" >&6; }
19374
19375 # Is the header present?
19376 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
19377 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
19378 cat >conftest.$ac_ext <<_ACEOF
19379 /* confdefs.h. */
19380 _ACEOF
19381 cat confdefs.h >>conftest.$ac_ext
19382 cat >>conftest.$ac_ext <<_ACEOF
19383 /* end confdefs.h. */
19384 #include <inq_stats/cpustats.h>
19385 _ACEOF
19386 if { (ac_try="$ac_cpp conftest.$ac_ext"
19387 case "(($ac_try" in
19388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19389 *) ac_try_echo=$ac_try;;
19390 esac
19391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19392 $as_echo "$ac_try_echo") >&5
19393 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19394 ac_status=$?
19395 grep -v '^ *+' conftest.er1 >conftest.err
19396 rm -f conftest.er1
19397 cat conftest.err >&5
19398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); } >/dev/null && {
19400 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19401 test ! -s conftest.err
19402 }; then
19403 ac_header_preproc=yes
19404 else
19405 $as_echo "$as_me: failed program was:" >&5
19406 sed 's/^/| /' conftest.$ac_ext >&5
19407
19408 ac_header_preproc=no
19409 fi
19410
19411 rm -f conftest.err conftest.$ac_ext
19412 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19413 $as_echo "$ac_header_preproc" >&6; }
19414
19415 # So? What about this header?
19416 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19417 yes:no: )
19418 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19419 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19420 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
19421 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
19422 ac_header_preproc=yes
19423 ;;
19424 no:yes:* )
19425 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
19426 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
19427 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
19428 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
19429 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
19430 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
19431 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19432 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19433 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19434 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
19435 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
19436 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19437
19438 ;;
19439 esac
19440 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19441 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19442 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19443 $as_echo_n "(cached) " >&6
19444 else
19445 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19446 fi
19447 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19448 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19449
19450 fi
19451 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19452 ac_have_func=yes
19453
19454 cat >>confdefs.h <<\_ACEOF
19455 #define UMAX 1
19456 _ACEOF
19457
19458
19459 cat >>confdefs.h <<\_ACEOF
19460 #define UMAX4_3 1
19461 _ACEOF
19462
19463 fi
19464
19465
19466 fi
19467
19468 if test $ac_have_func = no; then
19469 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19470 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19471 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19472 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19473 $as_echo_n "(cached) " >&6
19474 fi
19475 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19476 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19477 else
19478 # Is the header compilable?
19479 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19480 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
19481 cat >conftest.$ac_ext <<_ACEOF
19482 /* confdefs.h. */
19483 _ACEOF
19484 cat confdefs.h >>conftest.$ac_ext
19485 cat >>conftest.$ac_ext <<_ACEOF
19486 /* end confdefs.h. */
19487 $ac_includes_default
19488 #include <sys/cpustats.h>
19489 _ACEOF
19490 rm -f conftest.$ac_objext
19491 if { (ac_try="$ac_compile"
19492 case "(($ac_try" in
19493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19494 *) ac_try_echo=$ac_try;;
19495 esac
19496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19497 $as_echo "$ac_try_echo") >&5
19498 (eval "$ac_compile") 2>conftest.er1
19499 ac_status=$?
19500 grep -v '^ *+' conftest.er1 >conftest.err
19501 rm -f conftest.er1
19502 cat conftest.err >&5
19503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); } && {
19505 test -z "$ac_c_werror_flag" ||
19506 test ! -s conftest.err
19507 } && test -s conftest.$ac_objext; then
19508 ac_header_compiler=yes
19509 else
19510 $as_echo "$as_me: failed program was:" >&5
19511 sed 's/^/| /' conftest.$ac_ext >&5
19512
19513 ac_header_compiler=no
19514 fi
19515
19516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19517 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19518 $as_echo "$ac_header_compiler" >&6; }
19519
19520 # Is the header present?
19521 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19522 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
19523 cat >conftest.$ac_ext <<_ACEOF
19524 /* confdefs.h. */
19525 _ACEOF
19526 cat confdefs.h >>conftest.$ac_ext
19527 cat >>conftest.$ac_ext <<_ACEOF
19528 /* end confdefs.h. */
19529 #include <sys/cpustats.h>
19530 _ACEOF
19531 if { (ac_try="$ac_cpp conftest.$ac_ext"
19532 case "(($ac_try" in
19533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19534 *) ac_try_echo=$ac_try;;
19535 esac
19536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19537 $as_echo "$ac_try_echo") >&5
19538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19539 ac_status=$?
19540 grep -v '^ *+' conftest.er1 >conftest.err
19541 rm -f conftest.er1
19542 cat conftest.err >&5
19543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); } >/dev/null && {
19545 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19546 test ! -s conftest.err
19547 }; then
19548 ac_header_preproc=yes
19549 else
19550 $as_echo "$as_me: failed program was:" >&5
19551 sed 's/^/| /' conftest.$ac_ext >&5
19552
19553 ac_header_preproc=no
19554 fi
19555
19556 rm -f conftest.err conftest.$ac_ext
19557 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19558 $as_echo "$ac_header_preproc" >&6; }
19559
19560 # So? What about this header?
19561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19562 yes:no: )
19563 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19564 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19565 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19566 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19567 ac_header_preproc=yes
19568 ;;
19569 no:yes:* )
19570 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19571 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19572 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19573 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19574 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19575 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19576 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19577 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19578 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19579 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19580 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19581 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19582
19583 ;;
19584 esac
19585 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19586 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19587 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19588 $as_echo_n "(cached) " >&6
19589 else
19590 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19591 fi
19592 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19593 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19594
19595 fi
19596 if test $ac_cv_header_sys_cpustats_h = yes; then
19597 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19598 #define UMAX 1
19599 _ACEOF
19600
19601 fi
19602
19603
19604 fi
19605
19606 if test $ac_have_func = no; then
19607
19608 for ac_header in mach/mach.h
19609 do
19610 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19612 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19613 $as_echo_n "checking for $ac_header... " >&6; }
19614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19615 $as_echo_n "(cached) " >&6
19616 fi
19617 ac_res=`eval 'as_val=${'$as_ac_Header'}
19618 $as_echo "$as_val"'`
19619 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19620 $as_echo "$ac_res" >&6; }
19621 else
19622 # Is the header compilable?
19623 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19624 $as_echo_n "checking $ac_header usability... " >&6; }
19625 cat >conftest.$ac_ext <<_ACEOF
19626 /* confdefs.h. */
19627 _ACEOF
19628 cat confdefs.h >>conftest.$ac_ext
19629 cat >>conftest.$ac_ext <<_ACEOF
19630 /* end confdefs.h. */
19631 $ac_includes_default
19632 #include <$ac_header>
19633 _ACEOF
19634 rm -f conftest.$ac_objext
19635 if { (ac_try="$ac_compile"
19636 case "(($ac_try" in
19637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19638 *) ac_try_echo=$ac_try;;
19639 esac
19640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19641 $as_echo "$ac_try_echo") >&5
19642 (eval "$ac_compile") 2>conftest.er1
19643 ac_status=$?
19644 grep -v '^ *+' conftest.er1 >conftest.err
19645 rm -f conftest.er1
19646 cat conftest.err >&5
19647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); } && {
19649 test -z "$ac_c_werror_flag" ||
19650 test ! -s conftest.err
19651 } && test -s conftest.$ac_objext; then
19652 ac_header_compiler=yes
19653 else
19654 $as_echo "$as_me: failed program was:" >&5
19655 sed 's/^/| /' conftest.$ac_ext >&5
19656
19657 ac_header_compiler=no
19658 fi
19659
19660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19661 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19662 $as_echo "$ac_header_compiler" >&6; }
19663
19664 # Is the header present?
19665 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19666 $as_echo_n "checking $ac_header presence... " >&6; }
19667 cat >conftest.$ac_ext <<_ACEOF
19668 /* confdefs.h. */
19669 _ACEOF
19670 cat confdefs.h >>conftest.$ac_ext
19671 cat >>conftest.$ac_ext <<_ACEOF
19672 /* end confdefs.h. */
19673 #include <$ac_header>
19674 _ACEOF
19675 if { (ac_try="$ac_cpp conftest.$ac_ext"
19676 case "(($ac_try" in
19677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19678 *) ac_try_echo=$ac_try;;
19679 esac
19680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19681 $as_echo "$ac_try_echo") >&5
19682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19683 ac_status=$?
19684 grep -v '^ *+' conftest.er1 >conftest.err
19685 rm -f conftest.er1
19686 cat conftest.err >&5
19687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688 (exit $ac_status); } >/dev/null && {
19689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19690 test ! -s conftest.err
19691 }; then
19692 ac_header_preproc=yes
19693 else
19694 $as_echo "$as_me: failed program was:" >&5
19695 sed 's/^/| /' conftest.$ac_ext >&5
19696
19697 ac_header_preproc=no
19698 fi
19699
19700 rm -f conftest.err conftest.$ac_ext
19701 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19702 $as_echo "$ac_header_preproc" >&6; }
19703
19704 # So? What about this header?
19705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19706 yes:no: )
19707 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19708 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19709 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19710 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19711 ac_header_preproc=yes
19712 ;;
19713 no:yes:* )
19714 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19715 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19716 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19717 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19718 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19719 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19720 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19721 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19722 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19723 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19724 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19725 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19726
19727 ;;
19728 esac
19729 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19730 $as_echo_n "checking for $ac_header... " >&6; }
19731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19732 $as_echo_n "(cached) " >&6
19733 else
19734 eval "$as_ac_Header=\$ac_header_preproc"
19735 fi
19736 ac_res=`eval 'as_val=${'$as_ac_Header'}
19737 $as_echo "$as_val"'`
19738 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19739 $as_echo "$ac_res" >&6; }
19740
19741 fi
19742 if test `eval 'as_val=${'$as_ac_Header'}
19743 $as_echo "$as_val"'` = yes; then
19744 cat >>confdefs.h <<_ACEOF
19745 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19746 _ACEOF
19747
19748 fi
19749
19750 done
19751
19752 fi
19753
19754
19755 for ac_header in nlist.h
19756 do
19757 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19759 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19760 $as_echo_n "checking for $ac_header... " >&6; }
19761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19762 $as_echo_n "(cached) " >&6
19763 fi
19764 ac_res=`eval 'as_val=${'$as_ac_Header'}
19765 $as_echo "$as_val"'`
19766 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19767 $as_echo "$ac_res" >&6; }
19768 else
19769 # Is the header compilable?
19770 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19771 $as_echo_n "checking $ac_header usability... " >&6; }
19772 cat >conftest.$ac_ext <<_ACEOF
19773 /* confdefs.h. */
19774 _ACEOF
19775 cat confdefs.h >>conftest.$ac_ext
19776 cat >>conftest.$ac_ext <<_ACEOF
19777 /* end confdefs.h. */
19778 $ac_includes_default
19779 #include <$ac_header>
19780 _ACEOF
19781 rm -f conftest.$ac_objext
19782 if { (ac_try="$ac_compile"
19783 case "(($ac_try" in
19784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19785 *) ac_try_echo=$ac_try;;
19786 esac
19787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19788 $as_echo "$ac_try_echo") >&5
19789 (eval "$ac_compile") 2>conftest.er1
19790 ac_status=$?
19791 grep -v '^ *+' conftest.er1 >conftest.err
19792 rm -f conftest.er1
19793 cat conftest.err >&5
19794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); } && {
19796 test -z "$ac_c_werror_flag" ||
19797 test ! -s conftest.err
19798 } && test -s conftest.$ac_objext; then
19799 ac_header_compiler=yes
19800 else
19801 $as_echo "$as_me: failed program was:" >&5
19802 sed 's/^/| /' conftest.$ac_ext >&5
19803
19804 ac_header_compiler=no
19805 fi
19806
19807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19808 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19809 $as_echo "$ac_header_compiler" >&6; }
19810
19811 # Is the header present?
19812 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19813 $as_echo_n "checking $ac_header presence... " >&6; }
19814 cat >conftest.$ac_ext <<_ACEOF
19815 /* confdefs.h. */
19816 _ACEOF
19817 cat confdefs.h >>conftest.$ac_ext
19818 cat >>conftest.$ac_ext <<_ACEOF
19819 /* end confdefs.h. */
19820 #include <$ac_header>
19821 _ACEOF
19822 if { (ac_try="$ac_cpp conftest.$ac_ext"
19823 case "(($ac_try" in
19824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19825 *) ac_try_echo=$ac_try;;
19826 esac
19827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19828 $as_echo "$ac_try_echo") >&5
19829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19830 ac_status=$?
19831 grep -v '^ *+' conftest.er1 >conftest.err
19832 rm -f conftest.er1
19833 cat conftest.err >&5
19834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835 (exit $ac_status); } >/dev/null && {
19836 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19837 test ! -s conftest.err
19838 }; then
19839 ac_header_preproc=yes
19840 else
19841 $as_echo "$as_me: failed program was:" >&5
19842 sed 's/^/| /' conftest.$ac_ext >&5
19843
19844 ac_header_preproc=no
19845 fi
19846
19847 rm -f conftest.err conftest.$ac_ext
19848 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19849 $as_echo "$ac_header_preproc" >&6; }
19850
19851 # So? What about this header?
19852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19853 yes:no: )
19854 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19855 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19857 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19858 ac_header_preproc=yes
19859 ;;
19860 no:yes:* )
19861 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19862 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19863 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19864 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19865 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19866 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19867 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19868 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19869 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19870 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19871 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19872 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19873
19874 ;;
19875 esac
19876 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19877 $as_echo_n "checking for $ac_header... " >&6; }
19878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19879 $as_echo_n "(cached) " >&6
19880 else
19881 eval "$as_ac_Header=\$ac_header_preproc"
19882 fi
19883 ac_res=`eval 'as_val=${'$as_ac_Header'}
19884 $as_echo "$as_val"'`
19885 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19886 $as_echo "$ac_res" >&6; }
19887
19888 fi
19889 if test `eval 'as_val=${'$as_ac_Header'}
19890 $as_echo "$as_val"'` = yes; then
19891 cat >>confdefs.h <<_ACEOF
19892 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19893 _ACEOF
19894 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
19895 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
19896 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19897 $as_echo_n "(cached) " >&6
19898 else
19899 cat >conftest.$ac_ext <<_ACEOF
19900 /* confdefs.h. */
19901 _ACEOF
19902 cat confdefs.h >>conftest.$ac_ext
19903 cat >>conftest.$ac_ext <<_ACEOF
19904 /* end confdefs.h. */
19905 #include <nlist.h>
19906
19907 int
19908 main ()
19909 {
19910 static struct nlist ac_aggr;
19911 if (ac_aggr.n_un.n_name)
19912 return 0;
19913 ;
19914 return 0;
19915 }
19916 _ACEOF
19917 rm -f conftest.$ac_objext
19918 if { (ac_try="$ac_compile"
19919 case "(($ac_try" in
19920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19921 *) ac_try_echo=$ac_try;;
19922 esac
19923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19924 $as_echo "$ac_try_echo") >&5
19925 (eval "$ac_compile") 2>conftest.er1
19926 ac_status=$?
19927 grep -v '^ *+' conftest.er1 >conftest.err
19928 rm -f conftest.er1
19929 cat conftest.err >&5
19930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931 (exit $ac_status); } && {
19932 test -z "$ac_c_werror_flag" ||
19933 test ! -s conftest.err
19934 } && test -s conftest.$ac_objext; then
19935 ac_cv_member_struct_nlist_n_un_n_name=yes
19936 else
19937 $as_echo "$as_me: failed program was:" >&5
19938 sed 's/^/| /' conftest.$ac_ext >&5
19939
19940 cat >conftest.$ac_ext <<_ACEOF
19941 /* confdefs.h. */
19942 _ACEOF
19943 cat confdefs.h >>conftest.$ac_ext
19944 cat >>conftest.$ac_ext <<_ACEOF
19945 /* end confdefs.h. */
19946 #include <nlist.h>
19947
19948 int
19949 main ()
19950 {
19951 static struct nlist ac_aggr;
19952 if (sizeof ac_aggr.n_un.n_name)
19953 return 0;
19954 ;
19955 return 0;
19956 }
19957 _ACEOF
19958 rm -f conftest.$ac_objext
19959 if { (ac_try="$ac_compile"
19960 case "(($ac_try" in
19961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19962 *) ac_try_echo=$ac_try;;
19963 esac
19964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19965 $as_echo "$ac_try_echo") >&5
19966 (eval "$ac_compile") 2>conftest.er1
19967 ac_status=$?
19968 grep -v '^ *+' conftest.er1 >conftest.err
19969 rm -f conftest.er1
19970 cat conftest.err >&5
19971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); } && {
19973 test -z "$ac_c_werror_flag" ||
19974 test ! -s conftest.err
19975 } && test -s conftest.$ac_objext; then
19976 ac_cv_member_struct_nlist_n_un_n_name=yes
19977 else
19978 $as_echo "$as_me: failed program was:" >&5
19979 sed 's/^/| /' conftest.$ac_ext >&5
19980
19981 ac_cv_member_struct_nlist_n_un_n_name=no
19982 fi
19983
19984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19985 fi
19986
19987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19988 fi
19989 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
19990 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
19991 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
19992
19993 cat >>confdefs.h <<_ACEOF
19994 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19995 _ACEOF
19996
19997
19998 cat >>confdefs.h <<\_ACEOF
19999 #define NLIST_NAME_UNION 1
20000 _ACEOF
20001
20002 fi
20003
20004
20005 fi
20006
20007 done
20008
20009 fi
20010 done
20011
20012
20013 # Some definitions of getloadavg require that the program be installed setgid.
20014 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
20015 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
20016 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
20017 $as_echo_n "(cached) " >&6
20018 else
20019 cat >conftest.$ac_ext <<_ACEOF
20020 /* confdefs.h. */
20021 _ACEOF
20022 cat confdefs.h >>conftest.$ac_ext
20023 cat >>conftest.$ac_ext <<_ACEOF
20024 /* end confdefs.h. */
20025 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
20026 #ifdef LDAV_PRIVILEGED
20027 Yowza Am I SETGID yet
20028 #endif
20029 _ACEOF
20030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20031 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
20032 ac_cv_func_getloadavg_setgid=yes
20033 else
20034 ac_cv_func_getloadavg_setgid=no
20035 fi
20036 rm -f conftest*
20037
20038 fi
20039 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
20040 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
20041 if test $ac_cv_func_getloadavg_setgid = yes; then
20042 NEED_SETGID=true
20043
20044 cat >>confdefs.h <<\_ACEOF
20045 #define GETLOADAVG_PRIVILEGED 1
20046 _ACEOF
20047
20048 else
20049 NEED_SETGID=false
20050 fi
20051
20052 if test $ac_cv_func_getloadavg_setgid = yes; then
20053 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
20054 $as_echo_n "checking group of /dev/kmem... " >&6; }
20055 if test "${ac_cv_group_kmem+set}" = set; then
20056 $as_echo_n "(cached) " >&6
20057 else
20058 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
20059 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
20060 # If we got an error (system does not support symlinks), try without -L.
20061 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
20062 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
20063 | sed -ne 's/[ ][ ]*/ /g;
20064 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
20065 / /s/.* //;p;'`
20066
20067 fi
20068 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
20069 $as_echo "$ac_cv_group_kmem" >&6; }
20070 KMEM_GROUP=$ac_cv_group_kmem
20071 fi
20072 if test "x$ac_save_LIBS" = x; then
20073 GETLOADAVG_LIBS=$LIBS
20074 else
20075 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
20076 fi
20077 LIBS=$ac_save_LIBS
20078
20079
20080
20081 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
20082 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
20083 if test "${ac_cv_sys_largefile_source+set}" = set; then
20084 $as_echo_n "(cached) " >&6
20085 else
20086 while :; do
20087 cat >conftest.$ac_ext <<_ACEOF
20088 /* confdefs.h. */
20089 _ACEOF
20090 cat confdefs.h >>conftest.$ac_ext
20091 cat >>conftest.$ac_ext <<_ACEOF
20092 /* end confdefs.h. */
20093 #include <sys/types.h> /* for off_t */
20094 #include <stdio.h>
20095 int
20096 main ()
20097 {
20098 int (*fp) (FILE *, off_t, int) = fseeko;
20099 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20100 ;
20101 return 0;
20102 }
20103 _ACEOF
20104 rm -f conftest.$ac_objext conftest$ac_exeext
20105 if { (ac_try="$ac_link"
20106 case "(($ac_try" in
20107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20108 *) ac_try_echo=$ac_try;;
20109 esac
20110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20111 $as_echo "$ac_try_echo") >&5
20112 (eval "$ac_link") 2>conftest.er1
20113 ac_status=$?
20114 grep -v '^ *+' conftest.er1 >conftest.err
20115 rm -f conftest.er1
20116 cat conftest.err >&5
20117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); } && {
20119 test -z "$ac_c_werror_flag" ||
20120 test ! -s conftest.err
20121 } && test -s conftest$ac_exeext && {
20122 test "$cross_compiling" = yes ||
20123 $as_test_x conftest$ac_exeext
20124 }; then
20125 ac_cv_sys_largefile_source=no; break
20126 else
20127 $as_echo "$as_me: failed program was:" >&5
20128 sed 's/^/| /' conftest.$ac_ext >&5
20129
20130
20131 fi
20132
20133 rm -rf conftest.dSYM
20134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20135 conftest$ac_exeext conftest.$ac_ext
20136 cat >conftest.$ac_ext <<_ACEOF
20137 /* confdefs.h. */
20138 _ACEOF
20139 cat confdefs.h >>conftest.$ac_ext
20140 cat >>conftest.$ac_ext <<_ACEOF
20141 /* end confdefs.h. */
20142 #define _LARGEFILE_SOURCE 1
20143 #include <sys/types.h> /* for off_t */
20144 #include <stdio.h>
20145 int
20146 main ()
20147 {
20148 int (*fp) (FILE *, off_t, int) = fseeko;
20149 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20150 ;
20151 return 0;
20152 }
20153 _ACEOF
20154 rm -f conftest.$ac_objext conftest$ac_exeext
20155 if { (ac_try="$ac_link"
20156 case "(($ac_try" in
20157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20158 *) ac_try_echo=$ac_try;;
20159 esac
20160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20161 $as_echo "$ac_try_echo") >&5
20162 (eval "$ac_link") 2>conftest.er1
20163 ac_status=$?
20164 grep -v '^ *+' conftest.er1 >conftest.err
20165 rm -f conftest.er1
20166 cat conftest.err >&5
20167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); } && {
20169 test -z "$ac_c_werror_flag" ||
20170 test ! -s conftest.err
20171 } && test -s conftest$ac_exeext && {
20172 test "$cross_compiling" = yes ||
20173 $as_test_x conftest$ac_exeext
20174 }; then
20175 ac_cv_sys_largefile_source=1; break
20176 else
20177 $as_echo "$as_me: failed program was:" >&5
20178 sed 's/^/| /' conftest.$ac_ext >&5
20179
20180
20181 fi
20182
20183 rm -rf conftest.dSYM
20184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20185 conftest$ac_exeext conftest.$ac_ext
20186 ac_cv_sys_largefile_source=unknown
20187 break
20188 done
20189 fi
20190 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20191 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20192 case $ac_cv_sys_largefile_source in #(
20193 no | unknown) ;;
20194 *)
20195 cat >>confdefs.h <<_ACEOF
20196 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20197 _ACEOF
20198 ;;
20199 esac
20200 rm -rf conftest*
20201
20202 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20203 # in glibc 2.1.3, but that breaks too many other things.
20204 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20205 if test $ac_cv_sys_largefile_source != unknown; then
20206
20207 cat >>confdefs.h <<\_ACEOF
20208 #define HAVE_FSEEKO 1
20209 _ACEOF
20210
20211 fi
20212
20213
20214 # Configure getopt.
20215 # getopt.m4 serial 10
20216
20217 # The getopt module assume you want GNU getopt, with getopt_long etc,
20218 # rather than vanilla POSIX getopt. This means your your code should
20219 # always include <getopt.h> for the getopt prototypes.
20220
20221
20222
20223
20224
20225
20226
20227
20228
20229
20230
20231 # Prerequisites of lib/getopt*.
20232
20233
20234
20235
20236 GETOPT_H=
20237
20238 for ac_header in getopt.h
20239 do
20240 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20242 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20243 $as_echo_n "checking for $ac_header... " >&6; }
20244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20245 $as_echo_n "(cached) " >&6
20246 fi
20247 ac_res=`eval 'as_val=${'$as_ac_Header'}
20248 $as_echo "$as_val"'`
20249 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20250 $as_echo "$ac_res" >&6; }
20251 else
20252 # Is the header compilable?
20253 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20254 $as_echo_n "checking $ac_header usability... " >&6; }
20255 cat >conftest.$ac_ext <<_ACEOF
20256 /* confdefs.h. */
20257 _ACEOF
20258 cat confdefs.h >>conftest.$ac_ext
20259 cat >>conftest.$ac_ext <<_ACEOF
20260 /* end confdefs.h. */
20261 $ac_includes_default
20262 #include <$ac_header>
20263 _ACEOF
20264 rm -f conftest.$ac_objext
20265 if { (ac_try="$ac_compile"
20266 case "(($ac_try" in
20267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20268 *) ac_try_echo=$ac_try;;
20269 esac
20270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20271 $as_echo "$ac_try_echo") >&5
20272 (eval "$ac_compile") 2>conftest.er1
20273 ac_status=$?
20274 grep -v '^ *+' conftest.er1 >conftest.err
20275 rm -f conftest.er1
20276 cat conftest.err >&5
20277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); } && {
20279 test -z "$ac_c_werror_flag" ||
20280 test ! -s conftest.err
20281 } && test -s conftest.$ac_objext; then
20282 ac_header_compiler=yes
20283 else
20284 $as_echo "$as_me: failed program was:" >&5
20285 sed 's/^/| /' conftest.$ac_ext >&5
20286
20287 ac_header_compiler=no
20288 fi
20289
20290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20291 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20292 $as_echo "$ac_header_compiler" >&6; }
20293
20294 # Is the header present?
20295 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20296 $as_echo_n "checking $ac_header presence... " >&6; }
20297 cat >conftest.$ac_ext <<_ACEOF
20298 /* confdefs.h. */
20299 _ACEOF
20300 cat confdefs.h >>conftest.$ac_ext
20301 cat >>conftest.$ac_ext <<_ACEOF
20302 /* end confdefs.h. */
20303 #include <$ac_header>
20304 _ACEOF
20305 if { (ac_try="$ac_cpp conftest.$ac_ext"
20306 case "(($ac_try" in
20307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20308 *) ac_try_echo=$ac_try;;
20309 esac
20310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20311 $as_echo "$ac_try_echo") >&5
20312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20313 ac_status=$?
20314 grep -v '^ *+' conftest.er1 >conftest.err
20315 rm -f conftest.er1
20316 cat conftest.err >&5
20317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318 (exit $ac_status); } >/dev/null && {
20319 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20320 test ! -s conftest.err
20321 }; then
20322 ac_header_preproc=yes
20323 else
20324 $as_echo "$as_me: failed program was:" >&5
20325 sed 's/^/| /' conftest.$ac_ext >&5
20326
20327 ac_header_preproc=no
20328 fi
20329
20330 rm -f conftest.err conftest.$ac_ext
20331 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20332 $as_echo "$ac_header_preproc" >&6; }
20333
20334 # So? What about this header?
20335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20336 yes:no: )
20337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20338 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20339 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20340 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20341 ac_header_preproc=yes
20342 ;;
20343 no:yes:* )
20344 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20345 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20346 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20347 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20348 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20349 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20350 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20351 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20352 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20353 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20354 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20355 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20356
20357 ;;
20358 esac
20359 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20360 $as_echo_n "checking for $ac_header... " >&6; }
20361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20362 $as_echo_n "(cached) " >&6
20363 else
20364 eval "$as_ac_Header=\$ac_header_preproc"
20365 fi
20366 ac_res=`eval 'as_val=${'$as_ac_Header'}
20367 $as_echo "$as_val"'`
20368 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20369 $as_echo "$ac_res" >&6; }
20370
20371 fi
20372 if test `eval 'as_val=${'$as_ac_Header'}
20373 $as_echo "$as_val"'` = yes; then
20374 cat >>confdefs.h <<_ACEOF
20375 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20376 _ACEOF
20377
20378 else
20379 GETOPT_H=getopt.h
20380 fi
20381
20382 done
20383
20384 if test -z "$GETOPT_H"; then
20385
20386 for ac_func in getopt_long_only
20387 do
20388 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20389 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20390 $as_echo_n "checking for $ac_func... " >&6; }
20391 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20392 $as_echo_n "(cached) " >&6
20393 else
20394 cat >conftest.$ac_ext <<_ACEOF
20395 /* confdefs.h. */
20396 _ACEOF
20397 cat confdefs.h >>conftest.$ac_ext
20398 cat >>conftest.$ac_ext <<_ACEOF
20399 /* end confdefs.h. */
20400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20402 #define $ac_func innocuous_$ac_func
20403
20404 /* System header to define __stub macros and hopefully few prototypes,
20405 which can conflict with char $ac_func (); below.
20406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20407 <limits.h> exists even on freestanding compilers. */
20408
20409 #ifdef __STDC__
20410 # include <limits.h>
20411 #else
20412 # include <assert.h>
20413 #endif
20414
20415 #undef $ac_func
20416
20417 /* Override any GCC internal prototype to avoid an error.
20418 Use char because int might match the return type of a GCC
20419 builtin and then its argument prototype would still apply. */
20420 #ifdef __cplusplus
20421 extern "C"
20422 #endif
20423 char $ac_func ();
20424 /* The GNU C library defines this for functions which it implements
20425 to always fail with ENOSYS. Some functions are actually named
20426 something starting with __ and the normal name is an alias. */
20427 #if defined __stub_$ac_func || defined __stub___$ac_func
20428 choke me
20429 #endif
20430
20431 int
20432 main ()
20433 {
20434 return $ac_func ();
20435 ;
20436 return 0;
20437 }
20438 _ACEOF
20439 rm -f conftest.$ac_objext conftest$ac_exeext
20440 if { (ac_try="$ac_link"
20441 case "(($ac_try" in
20442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20443 *) ac_try_echo=$ac_try;;
20444 esac
20445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20446 $as_echo "$ac_try_echo") >&5
20447 (eval "$ac_link") 2>conftest.er1
20448 ac_status=$?
20449 grep -v '^ *+' conftest.er1 >conftest.err
20450 rm -f conftest.er1
20451 cat conftest.err >&5
20452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453 (exit $ac_status); } && {
20454 test -z "$ac_c_werror_flag" ||
20455 test ! -s conftest.err
20456 } && test -s conftest$ac_exeext && {
20457 test "$cross_compiling" = yes ||
20458 $as_test_x conftest$ac_exeext
20459 }; then
20460 eval "$as_ac_var=yes"
20461 else
20462 $as_echo "$as_me: failed program was:" >&5
20463 sed 's/^/| /' conftest.$ac_ext >&5
20464
20465 eval "$as_ac_var=no"
20466 fi
20467
20468 rm -rf conftest.dSYM
20469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20470 conftest$ac_exeext conftest.$ac_ext
20471 fi
20472 ac_res=`eval 'as_val=${'$as_ac_var'}
20473 $as_echo "$as_val"'`
20474 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20475 $as_echo "$ac_res" >&6; }
20476 if test `eval 'as_val=${'$as_ac_var'}
20477 $as_echo "$as_val"'` = yes; then
20478 cat >>confdefs.h <<_ACEOF
20479 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20480 _ACEOF
20481
20482 else
20483 GETOPT_H=getopt.h
20484 fi
20485 done
20486
20487 fi
20488
20489 if test -z "$GETOPT_H"; then
20490 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
20491 $as_echo_n "checking whether optreset is declared... " >&6; }
20492 if test "${ac_cv_have_decl_optreset+set}" = set; then
20493 $as_echo_n "(cached) " >&6
20494 else
20495 cat >conftest.$ac_ext <<_ACEOF
20496 /* confdefs.h. */
20497 _ACEOF
20498 cat confdefs.h >>conftest.$ac_ext
20499 cat >>conftest.$ac_ext <<_ACEOF
20500 /* end confdefs.h. */
20501 #include <getopt.h>
20502
20503 int
20504 main ()
20505 {
20506 #ifndef optreset
20507 (void) optreset;
20508 #endif
20509
20510 ;
20511 return 0;
20512 }
20513 _ACEOF
20514 rm -f conftest.$ac_objext
20515 if { (ac_try="$ac_compile"
20516 case "(($ac_try" in
20517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20518 *) ac_try_echo=$ac_try;;
20519 esac
20520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20521 $as_echo "$ac_try_echo") >&5
20522 (eval "$ac_compile") 2>conftest.er1
20523 ac_status=$?
20524 grep -v '^ *+' conftest.er1 >conftest.err
20525 rm -f conftest.er1
20526 cat conftest.err >&5
20527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); } && {
20529 test -z "$ac_c_werror_flag" ||
20530 test ! -s conftest.err
20531 } && test -s conftest.$ac_objext; then
20532 ac_cv_have_decl_optreset=yes
20533 else
20534 $as_echo "$as_me: failed program was:" >&5
20535 sed 's/^/| /' conftest.$ac_ext >&5
20536
20537 ac_cv_have_decl_optreset=no
20538 fi
20539
20540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20541 fi
20542 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20543 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20544 if test $ac_cv_have_decl_optreset = yes; then
20545 GETOPT_H=getopt.h
20546 fi
20547
20548 fi
20549
20550 if test -z "$GETOPT_H"; then
20551 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
20552 $as_echo_n "checking for working GNU getopt function... " >&6; }
20553 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20554 $as_echo_n "(cached) " >&6
20555 else
20556 if test "$cross_compiling" = yes; then
20557 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
20558 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
20559 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20560 $as_echo_n "(cached) " >&6
20561 else
20562 cat >conftest.$ac_ext <<_ACEOF
20563 /* confdefs.h. */
20564 _ACEOF
20565 cat confdefs.h >>conftest.$ac_ext
20566 cat >>conftest.$ac_ext <<_ACEOF
20567 /* end confdefs.h. */
20568 #include <getopt.h>
20569
20570 int
20571 main ()
20572 {
20573 #ifndef getopt_clip
20574 (void) getopt_clip;
20575 #endif
20576
20577 ;
20578 return 0;
20579 }
20580 _ACEOF
20581 rm -f conftest.$ac_objext
20582 if { (ac_try="$ac_compile"
20583 case "(($ac_try" in
20584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20585 *) ac_try_echo=$ac_try;;
20586 esac
20587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20588 $as_echo "$ac_try_echo") >&5
20589 (eval "$ac_compile") 2>conftest.er1
20590 ac_status=$?
20591 grep -v '^ *+' conftest.er1 >conftest.err
20592 rm -f conftest.er1
20593 cat conftest.err >&5
20594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20595 (exit $ac_status); } && {
20596 test -z "$ac_c_werror_flag" ||
20597 test ! -s conftest.err
20598 } && test -s conftest.$ac_objext; then
20599 ac_cv_have_decl_getopt_clip=yes
20600 else
20601 $as_echo "$as_me: failed program was:" >&5
20602 sed 's/^/| /' conftest.$ac_ext >&5
20603
20604 ac_cv_have_decl_getopt_clip=no
20605 fi
20606
20607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20608 fi
20609 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20610 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20611 if test $ac_cv_have_decl_getopt_clip = yes; then
20612 gl_cv_func_gnu_getopt=no
20613 else
20614 gl_cv_func_gnu_getopt=yes
20615 fi
20616
20617 else
20618 cat >conftest.$ac_ext <<_ACEOF
20619 /* confdefs.h. */
20620 _ACEOF
20621 cat confdefs.h >>conftest.$ac_ext
20622 cat >>conftest.$ac_ext <<_ACEOF
20623 /* end confdefs.h. */
20624 #include <getopt.h>
20625 int
20626 main ()
20627 {
20628
20629 char *myargv[3];
20630 myargv[0] = "conftest";
20631 myargv[1] = "-+";
20632 myargv[2] = 0;
20633 return getopt (2, myargv, "+a") != '?';
20634
20635 ;
20636 return 0;
20637 }
20638 _ACEOF
20639 rm -f conftest$ac_exeext
20640 if { (ac_try="$ac_link"
20641 case "(($ac_try" in
20642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20643 *) ac_try_echo=$ac_try;;
20644 esac
20645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20646 $as_echo "$ac_try_echo") >&5
20647 (eval "$ac_link") 2>&5
20648 ac_status=$?
20649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20651 { (case "(($ac_try" in
20652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20653 *) ac_try_echo=$ac_try;;
20654 esac
20655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20656 $as_echo "$ac_try_echo") >&5
20657 (eval "$ac_try") 2>&5
20658 ac_status=$?
20659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660 (exit $ac_status); }; }; then
20661 gl_cv_func_gnu_getopt=yes
20662 else
20663 $as_echo "$as_me: program exited with status $ac_status" >&5
20664 $as_echo "$as_me: failed program was:" >&5
20665 sed 's/^/| /' conftest.$ac_ext >&5
20666
20667 ( exit $ac_status )
20668 gl_cv_func_gnu_getopt=no
20669 fi
20670 rm -rf conftest.dSYM
20671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20672 fi
20673
20674
20675 fi
20676 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
20677 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20678 if test "$gl_cv_func_gnu_getopt" = "no"; then
20679 GETOPT_H=getopt.h
20680 fi
20681 fi
20682
20683
20684
20685 if test -n "$GETOPT_H"; then
20686
20687
20688 GETOPT_H=getopt.h
20689
20690 cat >>confdefs.h <<\_ACEOF
20691 #define __GETOPT_PREFIX rpl_
20692 _ACEOF
20693
20694
20695
20696 :
20697 GETOPTOBJS='getopt.o getopt1.o'
20698
20699 fi
20700
20701
20702
20703
20704 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
20705 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
20706 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20707 $as_echo_n "(cached) " >&6
20708 else
20709 # Use it with a single arg.
20710 cat >conftest.$ac_ext <<_ACEOF
20711 /* confdefs.h. */
20712 _ACEOF
20713 cat confdefs.h >>conftest.$ac_ext
20714 cat >>conftest.$ac_ext <<_ACEOF
20715 /* end confdefs.h. */
20716 $ac_includes_default
20717 int
20718 main ()
20719 {
20720 getpgrp (0);
20721 ;
20722 return 0;
20723 }
20724 _ACEOF
20725 rm -f conftest.$ac_objext
20726 if { (ac_try="$ac_compile"
20727 case "(($ac_try" in
20728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20729 *) ac_try_echo=$ac_try;;
20730 esac
20731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20732 $as_echo "$ac_try_echo") >&5
20733 (eval "$ac_compile") 2>conftest.er1
20734 ac_status=$?
20735 grep -v '^ *+' conftest.er1 >conftest.err
20736 rm -f conftest.er1
20737 cat conftest.err >&5
20738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); } && {
20740 test -z "$ac_c_werror_flag" ||
20741 test ! -s conftest.err
20742 } && test -s conftest.$ac_objext; then
20743 ac_cv_func_getpgrp_void=no
20744 else
20745 $as_echo "$as_me: failed program was:" >&5
20746 sed 's/^/| /' conftest.$ac_ext >&5
20747
20748 ac_cv_func_getpgrp_void=yes
20749 fi
20750
20751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20752
20753 fi
20754 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
20755 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20756 if test $ac_cv_func_getpgrp_void = yes; then
20757
20758 cat >>confdefs.h <<\_ACEOF
20759 #define GETPGRP_VOID 1
20760 _ACEOF
20761
20762 fi
20763
20764
20765
20766 for ac_func in strftime
20767 do
20768 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20769 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20770 $as_echo_n "checking for $ac_func... " >&6; }
20771 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20772 $as_echo_n "(cached) " >&6
20773 else
20774 cat >conftest.$ac_ext <<_ACEOF
20775 /* confdefs.h. */
20776 _ACEOF
20777 cat confdefs.h >>conftest.$ac_ext
20778 cat >>conftest.$ac_ext <<_ACEOF
20779 /* end confdefs.h. */
20780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20782 #define $ac_func innocuous_$ac_func
20783
20784 /* System header to define __stub macros and hopefully few prototypes,
20785 which can conflict with char $ac_func (); below.
20786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20787 <limits.h> exists even on freestanding compilers. */
20788
20789 #ifdef __STDC__
20790 # include <limits.h>
20791 #else
20792 # include <assert.h>
20793 #endif
20794
20795 #undef $ac_func
20796
20797 /* Override any GCC internal prototype to avoid an error.
20798 Use char because int might match the return type of a GCC
20799 builtin and then its argument prototype would still apply. */
20800 #ifdef __cplusplus
20801 extern "C"
20802 #endif
20803 char $ac_func ();
20804 /* The GNU C library defines this for functions which it implements
20805 to always fail with ENOSYS. Some functions are actually named
20806 something starting with __ and the normal name is an alias. */
20807 #if defined __stub_$ac_func || defined __stub___$ac_func
20808 choke me
20809 #endif
20810
20811 int
20812 main ()
20813 {
20814 return $ac_func ();
20815 ;
20816 return 0;
20817 }
20818 _ACEOF
20819 rm -f conftest.$ac_objext conftest$ac_exeext
20820 if { (ac_try="$ac_link"
20821 case "(($ac_try" in
20822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20823 *) ac_try_echo=$ac_try;;
20824 esac
20825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20826 $as_echo "$ac_try_echo") >&5
20827 (eval "$ac_link") 2>conftest.er1
20828 ac_status=$?
20829 grep -v '^ *+' conftest.er1 >conftest.err
20830 rm -f conftest.er1
20831 cat conftest.err >&5
20832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833 (exit $ac_status); } && {
20834 test -z "$ac_c_werror_flag" ||
20835 test ! -s conftest.err
20836 } && test -s conftest$ac_exeext && {
20837 test "$cross_compiling" = yes ||
20838 $as_test_x conftest$ac_exeext
20839 }; then
20840 eval "$as_ac_var=yes"
20841 else
20842 $as_echo "$as_me: failed program was:" >&5
20843 sed 's/^/| /' conftest.$ac_ext >&5
20844
20845 eval "$as_ac_var=no"
20846 fi
20847
20848 rm -rf conftest.dSYM
20849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20850 conftest$ac_exeext conftest.$ac_ext
20851 fi
20852 ac_res=`eval 'as_val=${'$as_ac_var'}
20853 $as_echo "$as_val"'`
20854 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20855 $as_echo "$ac_res" >&6; }
20856 if test `eval 'as_val=${'$as_ac_var'}
20857 $as_echo "$as_val"'` = yes; then
20858 cat >>confdefs.h <<_ACEOF
20859 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20860 _ACEOF
20861
20862 else
20863 # strftime is in -lintl on SCO UNIX.
20864 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
20865 $as_echo_n "checking for strftime in -lintl... " >&6; }
20866 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20867 $as_echo_n "(cached) " >&6
20868 else
20869 ac_check_lib_save_LIBS=$LIBS
20870 LIBS="-lintl $LIBS"
20871 cat >conftest.$ac_ext <<_ACEOF
20872 /* confdefs.h. */
20873 _ACEOF
20874 cat confdefs.h >>conftest.$ac_ext
20875 cat >>conftest.$ac_ext <<_ACEOF
20876 /* end confdefs.h. */
20877
20878 /* Override any GCC internal prototype to avoid an error.
20879 Use char because int might match the return type of a GCC
20880 builtin and then its argument prototype would still apply. */
20881 #ifdef __cplusplus
20882 extern "C"
20883 #endif
20884 char strftime ();
20885 int
20886 main ()
20887 {
20888 return strftime ();
20889 ;
20890 return 0;
20891 }
20892 _ACEOF
20893 rm -f conftest.$ac_objext conftest$ac_exeext
20894 if { (ac_try="$ac_link"
20895 case "(($ac_try" in
20896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20897 *) ac_try_echo=$ac_try;;
20898 esac
20899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20900 $as_echo "$ac_try_echo") >&5
20901 (eval "$ac_link") 2>conftest.er1
20902 ac_status=$?
20903 grep -v '^ *+' conftest.er1 >conftest.err
20904 rm -f conftest.er1
20905 cat conftest.err >&5
20906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 (exit $ac_status); } && {
20908 test -z "$ac_c_werror_flag" ||
20909 test ! -s conftest.err
20910 } && test -s conftest$ac_exeext && {
20911 test "$cross_compiling" = yes ||
20912 $as_test_x conftest$ac_exeext
20913 }; then
20914 ac_cv_lib_intl_strftime=yes
20915 else
20916 $as_echo "$as_me: failed program was:" >&5
20917 sed 's/^/| /' conftest.$ac_ext >&5
20918
20919 ac_cv_lib_intl_strftime=no
20920 fi
20921
20922 rm -rf conftest.dSYM
20923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20924 conftest$ac_exeext conftest.$ac_ext
20925 LIBS=$ac_check_lib_save_LIBS
20926 fi
20927 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
20928 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
20929 if test $ac_cv_lib_intl_strftime = yes; then
20930 cat >>confdefs.h <<\_ACEOF
20931 #define HAVE_STRFTIME 1
20932 _ACEOF
20933
20934 LIBS="-lintl $LIBS"
20935 fi
20936
20937 fi
20938 done
20939
20940
20941 # UNIX98 PTYs.
20942
20943 for ac_func in grantpt
20944 do
20945 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20946 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20947 $as_echo_n "checking for $ac_func... " >&6; }
20948 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20949 $as_echo_n "(cached) " >&6
20950 else
20951 cat >conftest.$ac_ext <<_ACEOF
20952 /* confdefs.h. */
20953 _ACEOF
20954 cat confdefs.h >>conftest.$ac_ext
20955 cat >>conftest.$ac_ext <<_ACEOF
20956 /* end confdefs.h. */
20957 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20959 #define $ac_func innocuous_$ac_func
20960
20961 /* System header to define __stub macros and hopefully few prototypes,
20962 which can conflict with char $ac_func (); below.
20963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20964 <limits.h> exists even on freestanding compilers. */
20965
20966 #ifdef __STDC__
20967 # include <limits.h>
20968 #else
20969 # include <assert.h>
20970 #endif
20971
20972 #undef $ac_func
20973
20974 /* Override any GCC internal prototype to avoid an error.
20975 Use char because int might match the return type of a GCC
20976 builtin and then its argument prototype would still apply. */
20977 #ifdef __cplusplus
20978 extern "C"
20979 #endif
20980 char $ac_func ();
20981 /* The GNU C library defines this for functions which it implements
20982 to always fail with ENOSYS. Some functions are actually named
20983 something starting with __ and the normal name is an alias. */
20984 #if defined __stub_$ac_func || defined __stub___$ac_func
20985 choke me
20986 #endif
20987
20988 int
20989 main ()
20990 {
20991 return $ac_func ();
20992 ;
20993 return 0;
20994 }
20995 _ACEOF
20996 rm -f conftest.$ac_objext conftest$ac_exeext
20997 if { (ac_try="$ac_link"
20998 case "(($ac_try" in
20999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21000 *) ac_try_echo=$ac_try;;
21001 esac
21002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21003 $as_echo "$ac_try_echo") >&5
21004 (eval "$ac_link") 2>conftest.er1
21005 ac_status=$?
21006 grep -v '^ *+' conftest.er1 >conftest.err
21007 rm -f conftest.er1
21008 cat conftest.err >&5
21009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); } && {
21011 test -z "$ac_c_werror_flag" ||
21012 test ! -s conftest.err
21013 } && test -s conftest$ac_exeext && {
21014 test "$cross_compiling" = yes ||
21015 $as_test_x conftest$ac_exeext
21016 }; then
21017 eval "$as_ac_var=yes"
21018 else
21019 $as_echo "$as_me: failed program was:" >&5
21020 sed 's/^/| /' conftest.$ac_ext >&5
21021
21022 eval "$as_ac_var=no"
21023 fi
21024
21025 rm -rf conftest.dSYM
21026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21027 conftest$ac_exeext conftest.$ac_ext
21028 fi
21029 ac_res=`eval 'as_val=${'$as_ac_var'}
21030 $as_echo "$as_val"'`
21031 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21032 $as_echo "$ac_res" >&6; }
21033 if test `eval 'as_val=${'$as_ac_var'}
21034 $as_echo "$as_val"'` = yes; then
21035 cat >>confdefs.h <<_ACEOF
21036 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21037 _ACEOF
21038
21039 fi
21040 done
21041
21042
21043 # PTY-related GNU extensions.
21044
21045 for ac_func in getpt
21046 do
21047 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21048 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21049 $as_echo_n "checking for $ac_func... " >&6; }
21050 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21051 $as_echo_n "(cached) " >&6
21052 else
21053 cat >conftest.$ac_ext <<_ACEOF
21054 /* confdefs.h. */
21055 _ACEOF
21056 cat confdefs.h >>conftest.$ac_ext
21057 cat >>conftest.$ac_ext <<_ACEOF
21058 /* end confdefs.h. */
21059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21061 #define $ac_func innocuous_$ac_func
21062
21063 /* System header to define __stub macros and hopefully few prototypes,
21064 which can conflict with char $ac_func (); below.
21065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21066 <limits.h> exists even on freestanding compilers. */
21067
21068 #ifdef __STDC__
21069 # include <limits.h>
21070 #else
21071 # include <assert.h>
21072 #endif
21073
21074 #undef $ac_func
21075
21076 /* Override any GCC internal prototype to avoid an error.
21077 Use char because int might match the return type of a GCC
21078 builtin and then its argument prototype would still apply. */
21079 #ifdef __cplusplus
21080 extern "C"
21081 #endif
21082 char $ac_func ();
21083 /* The GNU C library defines this for functions which it implements
21084 to always fail with ENOSYS. Some functions are actually named
21085 something starting with __ and the normal name is an alias. */
21086 #if defined __stub_$ac_func || defined __stub___$ac_func
21087 choke me
21088 #endif
21089
21090 int
21091 main ()
21092 {
21093 return $ac_func ();
21094 ;
21095 return 0;
21096 }
21097 _ACEOF
21098 rm -f conftest.$ac_objext conftest$ac_exeext
21099 if { (ac_try="$ac_link"
21100 case "(($ac_try" in
21101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21102 *) ac_try_echo=$ac_try;;
21103 esac
21104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21105 $as_echo "$ac_try_echo") >&5
21106 (eval "$ac_link") 2>conftest.er1
21107 ac_status=$?
21108 grep -v '^ *+' conftest.er1 >conftest.err
21109 rm -f conftest.er1
21110 cat conftest.err >&5
21111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112 (exit $ac_status); } && {
21113 test -z "$ac_c_werror_flag" ||
21114 test ! -s conftest.err
21115 } && test -s conftest$ac_exeext && {
21116 test "$cross_compiling" = yes ||
21117 $as_test_x conftest$ac_exeext
21118 }; then
21119 eval "$as_ac_var=yes"
21120 else
21121 $as_echo "$as_me: failed program was:" >&5
21122 sed 's/^/| /' conftest.$ac_ext >&5
21123
21124 eval "$as_ac_var=no"
21125 fi
21126
21127 rm -rf conftest.dSYM
21128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21129 conftest$ac_exeext conftest.$ac_ext
21130 fi
21131 ac_res=`eval 'as_val=${'$as_ac_var'}
21132 $as_echo "$as_val"'`
21133 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21134 $as_echo "$ac_res" >&6; }
21135 if test `eval 'as_val=${'$as_ac_var'}
21136 $as_echo "$as_val"'` = yes; then
21137 cat >>confdefs.h <<_ACEOF
21138 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21139 _ACEOF
21140
21141 fi
21142 done
21143
21144
21145 # Check this now, so that we will NOT find the above functions in ncurses.
21146 # That is because we have not set up to link ncurses in lib-src.
21147 # It's better to believe a function is not available
21148 # than to expect to find it in ncurses.
21149 # Also we need tputs and frieds to be able to build at all.
21150 have_tputs_et_al=true
21151 { $as_echo "$as_me:$LINENO: checking for library containing tputs" >&5
21152 $as_echo_n "checking for library containing tputs... " >&6; }
21153 if test "${ac_cv_search_tputs+set}" = set; then
21154 $as_echo_n "(cached) " >&6
21155 else
21156 ac_func_search_save_LIBS=$LIBS
21157 cat >conftest.$ac_ext <<_ACEOF
21158 /* confdefs.h. */
21159 _ACEOF
21160 cat confdefs.h >>conftest.$ac_ext
21161 cat >>conftest.$ac_ext <<_ACEOF
21162 /* end confdefs.h. */
21163
21164 /* Override any GCC internal prototype to avoid an error.
21165 Use char because int might match the return type of a GCC
21166 builtin and then its argument prototype would still apply. */
21167 #ifdef __cplusplus
21168 extern "C"
21169 #endif
21170 char tputs ();
21171 int
21172 main ()
21173 {
21174 return tputs ();
21175 ;
21176 return 0;
21177 }
21178 _ACEOF
21179 for ac_lib in '' ncurses terminfo termcap; do
21180 if test -z "$ac_lib"; then
21181 ac_res="none required"
21182 else
21183 ac_res=-l$ac_lib
21184 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21185 fi
21186 rm -f conftest.$ac_objext conftest$ac_exeext
21187 if { (ac_try="$ac_link"
21188 case "(($ac_try" in
21189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21190 *) ac_try_echo=$ac_try;;
21191 esac
21192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21193 $as_echo "$ac_try_echo") >&5
21194 (eval "$ac_link") 2>conftest.er1
21195 ac_status=$?
21196 grep -v '^ *+' conftest.er1 >conftest.err
21197 rm -f conftest.er1
21198 cat conftest.err >&5
21199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200 (exit $ac_status); } && {
21201 test -z "$ac_c_werror_flag" ||
21202 test ! -s conftest.err
21203 } && test -s conftest$ac_exeext && {
21204 test "$cross_compiling" = yes ||
21205 $as_test_x conftest$ac_exeext
21206 }; then
21207 ac_cv_search_tputs=$ac_res
21208 else
21209 $as_echo "$as_me: failed program was:" >&5
21210 sed 's/^/| /' conftest.$ac_ext >&5
21211
21212
21213 fi
21214
21215 rm -rf conftest.dSYM
21216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21217 conftest$ac_exeext
21218 if test "${ac_cv_search_tputs+set}" = set; then
21219 break
21220 fi
21221 done
21222 if test "${ac_cv_search_tputs+set}" = set; then
21223 :
21224 else
21225 ac_cv_search_tputs=no
21226 fi
21227 rm conftest.$ac_ext
21228 LIBS=$ac_func_search_save_LIBS
21229 fi
21230 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tputs" >&5
21231 $as_echo "$ac_cv_search_tputs" >&6; }
21232 ac_res=$ac_cv_search_tputs
21233 if test "$ac_res" != no; then
21234 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21235
21236 else
21237 have_tputs_et_al=false
21238 fi
21239
21240 if test "$have_tputs_et_al" != true; then
21241 { { $as_echo "$as_me:$LINENO: error: I couldn't find termcap functions (tputs and friends).
21242 Maybe some development libraries/packages are missing? Try installing
21243 libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21244 $as_echo "$as_me: error: I couldn't find termcap functions (tputs and friends).
21245 Maybe some development libraries/packages are missing? Try installing
21246 libncurses-dev(el), libterminfo-dev(el) or similar." >&2;}
21247 { (exit 1); exit 1; }; }
21248 fi
21249 # Must define this when any termcap library is found.
21250
21251 cat >>confdefs.h <<\_ACEOF
21252 #define HAVE_LIBNCURSES 1
21253 _ACEOF
21254
21255
21256 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21257
21258 resolv=no
21259 cat >conftest.$ac_ext <<_ACEOF
21260 /* confdefs.h. */
21261 _ACEOF
21262 cat confdefs.h >>conftest.$ac_ext
21263 cat >>conftest.$ac_ext <<_ACEOF
21264 /* end confdefs.h. */
21265 #include <netinet/in.h>
21266 #include <arpa/nameser.h>
21267 #include <resolv.h>
21268 int
21269 main ()
21270 {
21271 return res_init();
21272 ;
21273 return 0;
21274 }
21275 _ACEOF
21276 rm -f conftest.$ac_objext conftest$ac_exeext
21277 if { (ac_try="$ac_link"
21278 case "(($ac_try" in
21279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21280 *) ac_try_echo=$ac_try;;
21281 esac
21282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21283 $as_echo "$ac_try_echo") >&5
21284 (eval "$ac_link") 2>conftest.er1
21285 ac_status=$?
21286 grep -v '^ *+' conftest.er1 >conftest.err
21287 rm -f conftest.er1
21288 cat conftest.err >&5
21289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290 (exit $ac_status); } && {
21291 test -z "$ac_c_werror_flag" ||
21292 test ! -s conftest.err
21293 } && test -s conftest$ac_exeext && {
21294 test "$cross_compiling" = yes ||
21295 $as_test_x conftest$ac_exeext
21296 }; then
21297 have_res_init=yes
21298 else
21299 $as_echo "$as_me: failed program was:" >&5
21300 sed 's/^/| /' conftest.$ac_ext >&5
21301
21302 have_res_init=no
21303 fi
21304
21305 rm -rf conftest.dSYM
21306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21307 conftest$ac_exeext conftest.$ac_ext
21308 if test "$have_res_init" = no; then
21309 OLIBS="$LIBS"
21310 LIBS="$LIBS -lresolv"
21311 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
21312 $as_echo_n "checking for res_init with -lresolv... " >&6; }
21313 cat >conftest.$ac_ext <<_ACEOF
21314 /* confdefs.h. */
21315 _ACEOF
21316 cat confdefs.h >>conftest.$ac_ext
21317 cat >>conftest.$ac_ext <<_ACEOF
21318 /* end confdefs.h. */
21319 #include <netinet/in.h>
21320 #include <arpa/nameser.h>
21321 #include <resolv.h>
21322 int
21323 main ()
21324 {
21325 return res_init();
21326 ;
21327 return 0;
21328 }
21329 _ACEOF
21330 rm -f conftest.$ac_objext conftest$ac_exeext
21331 if { (ac_try="$ac_link"
21332 case "(($ac_try" in
21333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21334 *) ac_try_echo=$ac_try;;
21335 esac
21336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21337 $as_echo "$ac_try_echo") >&5
21338 (eval "$ac_link") 2>conftest.er1
21339 ac_status=$?
21340 grep -v '^ *+' conftest.er1 >conftest.err
21341 rm -f conftest.er1
21342 cat conftest.err >&5
21343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21344 (exit $ac_status); } && {
21345 test -z "$ac_c_werror_flag" ||
21346 test ! -s conftest.err
21347 } && test -s conftest$ac_exeext && {
21348 test "$cross_compiling" = yes ||
21349 $as_test_x conftest$ac_exeext
21350 }; then
21351 have_res_init=yes
21352 else
21353 $as_echo "$as_me: failed program was:" >&5
21354 sed 's/^/| /' conftest.$ac_ext >&5
21355
21356 have_res_init=no
21357 fi
21358
21359 rm -rf conftest.dSYM
21360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21361 conftest$ac_exeext conftest.$ac_ext
21362 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
21363 $as_echo "$have_res_init" >&6; }
21364 if test "$have_res_init" = yes ; then
21365 resolv=yes
21366 fi
21367 LIBS="$OLIBS"
21368 fi
21369
21370 if test "$have_res_init" = yes; then
21371
21372 cat >>confdefs.h <<\_ACEOF
21373 #define HAVE_RES_INIT 1
21374 _ACEOF
21375
21376 fi
21377
21378 # Do we need the Hesiod library to provide the support routines?
21379 LIBHESIOD=
21380 if test "$with_hesiod" != no ; then
21381 # Don't set $LIBS here -- see comments above. FIXME which comments?
21382 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
21383 $as_echo_n "checking for res_send... " >&6; }
21384 if test "${ac_cv_func_res_send+set}" = set; then
21385 $as_echo_n "(cached) " >&6
21386 else
21387 cat >conftest.$ac_ext <<_ACEOF
21388 /* confdefs.h. */
21389 _ACEOF
21390 cat confdefs.h >>conftest.$ac_ext
21391 cat >>conftest.$ac_ext <<_ACEOF
21392 /* end confdefs.h. */
21393 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21395 #define res_send innocuous_res_send
21396
21397 /* System header to define __stub macros and hopefully few prototypes,
21398 which can conflict with char res_send (); below.
21399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21400 <limits.h> exists even on freestanding compilers. */
21401
21402 #ifdef __STDC__
21403 # include <limits.h>
21404 #else
21405 # include <assert.h>
21406 #endif
21407
21408 #undef res_send
21409
21410 /* Override any GCC internal prototype to avoid an error.
21411 Use char because int might match the return type of a GCC
21412 builtin and then its argument prototype would still apply. */
21413 #ifdef __cplusplus
21414 extern "C"
21415 #endif
21416 char res_send ();
21417 /* The GNU C library defines this for functions which it implements
21418 to always fail with ENOSYS. Some functions are actually named
21419 something starting with __ and the normal name is an alias. */
21420 #if defined __stub_res_send || defined __stub___res_send
21421 choke me
21422 #endif
21423
21424 int
21425 main ()
21426 {
21427 return res_send ();
21428 ;
21429 return 0;
21430 }
21431 _ACEOF
21432 rm -f conftest.$ac_objext conftest$ac_exeext
21433 if { (ac_try="$ac_link"
21434 case "(($ac_try" in
21435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21436 *) ac_try_echo=$ac_try;;
21437 esac
21438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21439 $as_echo "$ac_try_echo") >&5
21440 (eval "$ac_link") 2>conftest.er1
21441 ac_status=$?
21442 grep -v '^ *+' conftest.er1 >conftest.err
21443 rm -f conftest.er1
21444 cat conftest.err >&5
21445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446 (exit $ac_status); } && {
21447 test -z "$ac_c_werror_flag" ||
21448 test ! -s conftest.err
21449 } && test -s conftest$ac_exeext && {
21450 test "$cross_compiling" = yes ||
21451 $as_test_x conftest$ac_exeext
21452 }; then
21453 ac_cv_func_res_send=yes
21454 else
21455 $as_echo "$as_me: failed program was:" >&5
21456 sed 's/^/| /' conftest.$ac_ext >&5
21457
21458 ac_cv_func_res_send=no
21459 fi
21460
21461 rm -rf conftest.dSYM
21462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21463 conftest$ac_exeext conftest.$ac_ext
21464 fi
21465 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
21466 $as_echo "$ac_cv_func_res_send" >&6; }
21467 if test $ac_cv_func_res_send = yes; then
21468 :
21469 else
21470 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
21471 $as_echo_n "checking for __res_send... " >&6; }
21472 if test "${ac_cv_func___res_send+set}" = set; then
21473 $as_echo_n "(cached) " >&6
21474 else
21475 cat >conftest.$ac_ext <<_ACEOF
21476 /* confdefs.h. */
21477 _ACEOF
21478 cat confdefs.h >>conftest.$ac_ext
21479 cat >>conftest.$ac_ext <<_ACEOF
21480 /* end confdefs.h. */
21481 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21483 #define __res_send innocuous___res_send
21484
21485 /* System header to define __stub macros and hopefully few prototypes,
21486 which can conflict with char __res_send (); below.
21487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21488 <limits.h> exists even on freestanding compilers. */
21489
21490 #ifdef __STDC__
21491 # include <limits.h>
21492 #else
21493 # include <assert.h>
21494 #endif
21495
21496 #undef __res_send
21497
21498 /* Override any GCC internal prototype to avoid an error.
21499 Use char because int might match the return type of a GCC
21500 builtin and then its argument prototype would still apply. */
21501 #ifdef __cplusplus
21502 extern "C"
21503 #endif
21504 char __res_send ();
21505 /* The GNU C library defines this for functions which it implements
21506 to always fail with ENOSYS. Some functions are actually named
21507 something starting with __ and the normal name is an alias. */
21508 #if defined __stub___res_send || defined __stub_____res_send
21509 choke me
21510 #endif
21511
21512 int
21513 main ()
21514 {
21515 return __res_send ();
21516 ;
21517 return 0;
21518 }
21519 _ACEOF
21520 rm -f conftest.$ac_objext conftest$ac_exeext
21521 if { (ac_try="$ac_link"
21522 case "(($ac_try" in
21523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21524 *) ac_try_echo=$ac_try;;
21525 esac
21526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21527 $as_echo "$ac_try_echo") >&5
21528 (eval "$ac_link") 2>conftest.er1
21529 ac_status=$?
21530 grep -v '^ *+' conftest.er1 >conftest.err
21531 rm -f conftest.er1
21532 cat conftest.err >&5
21533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21534 (exit $ac_status); } && {
21535 test -z "$ac_c_werror_flag" ||
21536 test ! -s conftest.err
21537 } && test -s conftest$ac_exeext && {
21538 test "$cross_compiling" = yes ||
21539 $as_test_x conftest$ac_exeext
21540 }; then
21541 ac_cv_func___res_send=yes
21542 else
21543 $as_echo "$as_me: failed program was:" >&5
21544 sed 's/^/| /' conftest.$ac_ext >&5
21545
21546 ac_cv_func___res_send=no
21547 fi
21548
21549 rm -rf conftest.dSYM
21550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21551 conftest$ac_exeext conftest.$ac_ext
21552 fi
21553 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
21554 $as_echo "$ac_cv_func___res_send" >&6; }
21555 if test $ac_cv_func___res_send = yes; then
21556 :
21557 else
21558 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
21559 $as_echo_n "checking for res_send in -lresolv... " >&6; }
21560 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
21561 $as_echo_n "(cached) " >&6
21562 else
21563 ac_check_lib_save_LIBS=$LIBS
21564 LIBS="-lresolv $LIBS"
21565 cat >conftest.$ac_ext <<_ACEOF
21566 /* confdefs.h. */
21567 _ACEOF
21568 cat confdefs.h >>conftest.$ac_ext
21569 cat >>conftest.$ac_ext <<_ACEOF
21570 /* end confdefs.h. */
21571
21572 /* Override any GCC internal prototype to avoid an error.
21573 Use char because int might match the return type of a GCC
21574 builtin and then its argument prototype would still apply. */
21575 #ifdef __cplusplus
21576 extern "C"
21577 #endif
21578 char res_send ();
21579 int
21580 main ()
21581 {
21582 return res_send ();
21583 ;
21584 return 0;
21585 }
21586 _ACEOF
21587 rm -f conftest.$ac_objext conftest$ac_exeext
21588 if { (ac_try="$ac_link"
21589 case "(($ac_try" in
21590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21591 *) ac_try_echo=$ac_try;;
21592 esac
21593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21594 $as_echo "$ac_try_echo") >&5
21595 (eval "$ac_link") 2>conftest.er1
21596 ac_status=$?
21597 grep -v '^ *+' conftest.er1 >conftest.err
21598 rm -f conftest.er1
21599 cat conftest.err >&5
21600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601 (exit $ac_status); } && {
21602 test -z "$ac_c_werror_flag" ||
21603 test ! -s conftest.err
21604 } && test -s conftest$ac_exeext && {
21605 test "$cross_compiling" = yes ||
21606 $as_test_x conftest$ac_exeext
21607 }; then
21608 ac_cv_lib_resolv_res_send=yes
21609 else
21610 $as_echo "$as_me: failed program was:" >&5
21611 sed 's/^/| /' conftest.$ac_ext >&5
21612
21613 ac_cv_lib_resolv_res_send=no
21614 fi
21615
21616 rm -rf conftest.dSYM
21617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21618 conftest$ac_exeext conftest.$ac_ext
21619 LIBS=$ac_check_lib_save_LIBS
21620 fi
21621 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
21622 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21623 if test $ac_cv_lib_resolv_res_send = yes; then
21624 resolv=yes
21625 else
21626 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
21627 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
21628 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
21629 $as_echo_n "(cached) " >&6
21630 else
21631 ac_check_lib_save_LIBS=$LIBS
21632 LIBS="-lresolv $LIBS"
21633 cat >conftest.$ac_ext <<_ACEOF
21634 /* confdefs.h. */
21635 _ACEOF
21636 cat confdefs.h >>conftest.$ac_ext
21637 cat >>conftest.$ac_ext <<_ACEOF
21638 /* end confdefs.h. */
21639
21640 /* Override any GCC internal prototype to avoid an error.
21641 Use char because int might match the return type of a GCC
21642 builtin and then its argument prototype would still apply. */
21643 #ifdef __cplusplus
21644 extern "C"
21645 #endif
21646 char __res_send ();
21647 int
21648 main ()
21649 {
21650 return __res_send ();
21651 ;
21652 return 0;
21653 }
21654 _ACEOF
21655 rm -f conftest.$ac_objext conftest$ac_exeext
21656 if { (ac_try="$ac_link"
21657 case "(($ac_try" in
21658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21659 *) ac_try_echo=$ac_try;;
21660 esac
21661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21662 $as_echo "$ac_try_echo") >&5
21663 (eval "$ac_link") 2>conftest.er1
21664 ac_status=$?
21665 grep -v '^ *+' conftest.er1 >conftest.err
21666 rm -f conftest.er1
21667 cat conftest.err >&5
21668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669 (exit $ac_status); } && {
21670 test -z "$ac_c_werror_flag" ||
21671 test ! -s conftest.err
21672 } && test -s conftest$ac_exeext && {
21673 test "$cross_compiling" = yes ||
21674 $as_test_x conftest$ac_exeext
21675 }; then
21676 ac_cv_lib_resolv___res_send=yes
21677 else
21678 $as_echo "$as_me: failed program was:" >&5
21679 sed 's/^/| /' conftest.$ac_ext >&5
21680
21681 ac_cv_lib_resolv___res_send=no
21682 fi
21683
21684 rm -rf conftest.dSYM
21685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21686 conftest$ac_exeext conftest.$ac_ext
21687 LIBS=$ac_check_lib_save_LIBS
21688 fi
21689 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
21690 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21691 if test $ac_cv_lib_resolv___res_send = yes; then
21692 resolv=yes
21693 fi
21694
21695 fi
21696
21697 fi
21698
21699 fi
21700
21701 if test "$resolv" = yes ; then
21702 RESOLVLIB=-lresolv
21703 else
21704 RESOLVLIB=
21705 fi
21706 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
21707 $as_echo_n "checking for hes_getmailhost... " >&6; }
21708 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21709 $as_echo_n "(cached) " >&6
21710 else
21711 cat >conftest.$ac_ext <<_ACEOF
21712 /* confdefs.h. */
21713 _ACEOF
21714 cat confdefs.h >>conftest.$ac_ext
21715 cat >>conftest.$ac_ext <<_ACEOF
21716 /* end confdefs.h. */
21717 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21719 #define hes_getmailhost innocuous_hes_getmailhost
21720
21721 /* System header to define __stub macros and hopefully few prototypes,
21722 which can conflict with char hes_getmailhost (); below.
21723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21724 <limits.h> exists even on freestanding compilers. */
21725
21726 #ifdef __STDC__
21727 # include <limits.h>
21728 #else
21729 # include <assert.h>
21730 #endif
21731
21732 #undef hes_getmailhost
21733
21734 /* Override any GCC internal prototype to avoid an error.
21735 Use char because int might match the return type of a GCC
21736 builtin and then its argument prototype would still apply. */
21737 #ifdef __cplusplus
21738 extern "C"
21739 #endif
21740 char hes_getmailhost ();
21741 /* The GNU C library defines this for functions which it implements
21742 to always fail with ENOSYS. Some functions are actually named
21743 something starting with __ and the normal name is an alias. */
21744 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21745 choke me
21746 #endif
21747
21748 int
21749 main ()
21750 {
21751 return hes_getmailhost ();
21752 ;
21753 return 0;
21754 }
21755 _ACEOF
21756 rm -f conftest.$ac_objext conftest$ac_exeext
21757 if { (ac_try="$ac_link"
21758 case "(($ac_try" in
21759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21760 *) ac_try_echo=$ac_try;;
21761 esac
21762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21763 $as_echo "$ac_try_echo") >&5
21764 (eval "$ac_link") 2>conftest.er1
21765 ac_status=$?
21766 grep -v '^ *+' conftest.er1 >conftest.err
21767 rm -f conftest.er1
21768 cat conftest.err >&5
21769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770 (exit $ac_status); } && {
21771 test -z "$ac_c_werror_flag" ||
21772 test ! -s conftest.err
21773 } && test -s conftest$ac_exeext && {
21774 test "$cross_compiling" = yes ||
21775 $as_test_x conftest$ac_exeext
21776 }; then
21777 ac_cv_func_hes_getmailhost=yes
21778 else
21779 $as_echo "$as_me: failed program was:" >&5
21780 sed 's/^/| /' conftest.$ac_ext >&5
21781
21782 ac_cv_func_hes_getmailhost=no
21783 fi
21784
21785 rm -rf conftest.dSYM
21786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21787 conftest$ac_exeext conftest.$ac_ext
21788 fi
21789 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
21790 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21791 if test $ac_cv_func_hes_getmailhost = yes; then
21792 :
21793 else
21794 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
21795 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21796 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21797 $as_echo_n "(cached) " >&6
21798 else
21799 ac_check_lib_save_LIBS=$LIBS
21800 LIBS="-lhesiod $RESOLVLIB $LIBS"
21801 cat >conftest.$ac_ext <<_ACEOF
21802 /* confdefs.h. */
21803 _ACEOF
21804 cat confdefs.h >>conftest.$ac_ext
21805 cat >>conftest.$ac_ext <<_ACEOF
21806 /* end confdefs.h. */
21807
21808 /* Override any GCC internal prototype to avoid an error.
21809 Use char because int might match the return type of a GCC
21810 builtin and then its argument prototype would still apply. */
21811 #ifdef __cplusplus
21812 extern "C"
21813 #endif
21814 char hes_getmailhost ();
21815 int
21816 main ()
21817 {
21818 return hes_getmailhost ();
21819 ;
21820 return 0;
21821 }
21822 _ACEOF
21823 rm -f conftest.$ac_objext conftest$ac_exeext
21824 if { (ac_try="$ac_link"
21825 case "(($ac_try" in
21826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21827 *) ac_try_echo=$ac_try;;
21828 esac
21829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21830 $as_echo "$ac_try_echo") >&5
21831 (eval "$ac_link") 2>conftest.er1
21832 ac_status=$?
21833 grep -v '^ *+' conftest.er1 >conftest.err
21834 rm -f conftest.er1
21835 cat conftest.err >&5
21836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21837 (exit $ac_status); } && {
21838 test -z "$ac_c_werror_flag" ||
21839 test ! -s conftest.err
21840 } && test -s conftest$ac_exeext && {
21841 test "$cross_compiling" = yes ||
21842 $as_test_x conftest$ac_exeext
21843 }; then
21844 ac_cv_lib_hesiod_hes_getmailhost=yes
21845 else
21846 $as_echo "$as_me: failed program was:" >&5
21847 sed 's/^/| /' conftest.$ac_ext >&5
21848
21849 ac_cv_lib_hesiod_hes_getmailhost=no
21850 fi
21851
21852 rm -rf conftest.dSYM
21853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21854 conftest$ac_exeext conftest.$ac_ext
21855 LIBS=$ac_check_lib_save_LIBS
21856 fi
21857 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21858 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21859 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
21860 hesiod=yes
21861 else
21862 :
21863 fi
21864
21865 fi
21866
21867
21868 if test x"$hesiod" = xyes; then
21869
21870 cat >>confdefs.h <<\_ACEOF
21871 #define HAVE_LIBHESIOD 1
21872 _ACEOF
21873
21874 LIBHESIOD=-lhesiod
21875 fi
21876 fi
21877
21878
21879 # Do we need libresolv (due to res_init or Hesiod)?
21880 if test "$resolv" = yes ; then
21881
21882 cat >>confdefs.h <<\_ACEOF
21883 #define HAVE_LIBRESOLV 1
21884 _ACEOF
21885
21886 LIBRESOLV=-lresolv
21887 else
21888 LIBRESOLV=
21889 fi
21890
21891
21892 # These tell us which Kerberos-related libraries to use.
21893 COM_ERRLIB=
21894 CRYPTOLIB=
21895 KRB5LIB=
21896 DESLIB=
21897 KRB4LIB=
21898
21899 if test "${with_kerberos}" != no; then
21900 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
21901 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
21902 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
21903 $as_echo_n "(cached) " >&6
21904 else
21905 ac_check_lib_save_LIBS=$LIBS
21906 LIBS="-lcom_err $LIBS"
21907 cat >conftest.$ac_ext <<_ACEOF
21908 /* confdefs.h. */
21909 _ACEOF
21910 cat confdefs.h >>conftest.$ac_ext
21911 cat >>conftest.$ac_ext <<_ACEOF
21912 /* end confdefs.h. */
21913
21914 /* Override any GCC internal prototype to avoid an error.
21915 Use char because int might match the return type of a GCC
21916 builtin and then its argument prototype would still apply. */
21917 #ifdef __cplusplus
21918 extern "C"
21919 #endif
21920 char com_err ();
21921 int
21922 main ()
21923 {
21924 return com_err ();
21925 ;
21926 return 0;
21927 }
21928 _ACEOF
21929 rm -f conftest.$ac_objext conftest$ac_exeext
21930 if { (ac_try="$ac_link"
21931 case "(($ac_try" in
21932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21933 *) ac_try_echo=$ac_try;;
21934 esac
21935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21936 $as_echo "$ac_try_echo") >&5
21937 (eval "$ac_link") 2>conftest.er1
21938 ac_status=$?
21939 grep -v '^ *+' conftest.er1 >conftest.err
21940 rm -f conftest.er1
21941 cat conftest.err >&5
21942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21943 (exit $ac_status); } && {
21944 test -z "$ac_c_werror_flag" ||
21945 test ! -s conftest.err
21946 } && test -s conftest$ac_exeext && {
21947 test "$cross_compiling" = yes ||
21948 $as_test_x conftest$ac_exeext
21949 }; then
21950 ac_cv_lib_com_err_com_err=yes
21951 else
21952 $as_echo "$as_me: failed program was:" >&5
21953 sed 's/^/| /' conftest.$ac_ext >&5
21954
21955 ac_cv_lib_com_err_com_err=no
21956 fi
21957
21958 rm -rf conftest.dSYM
21959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21960 conftest$ac_exeext conftest.$ac_ext
21961 LIBS=$ac_check_lib_save_LIBS
21962 fi
21963 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
21964 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21965 if test $ac_cv_lib_com_err_com_err = yes; then
21966 have_com_err=yes
21967 else
21968 have_com_err=no
21969 fi
21970
21971 if test $have_com_err = yes; then
21972 COM_ERRLIB=-lcom_err
21973 LIBS="$COM_ERRLIB $LIBS"
21974
21975 cat >>confdefs.h <<\_ACEOF
21976 #define HAVE_LIBCOM_ERR 1
21977 _ACEOF
21978
21979 fi
21980 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
21981 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
21982 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
21983 $as_echo_n "(cached) " >&6
21984 else
21985 ac_check_lib_save_LIBS=$LIBS
21986 LIBS="-lcrypto $LIBS"
21987 cat >conftest.$ac_ext <<_ACEOF
21988 /* confdefs.h. */
21989 _ACEOF
21990 cat confdefs.h >>conftest.$ac_ext
21991 cat >>conftest.$ac_ext <<_ACEOF
21992 /* end confdefs.h. */
21993
21994 /* Override any GCC internal prototype to avoid an error.
21995 Use char because int might match the return type of a GCC
21996 builtin and then its argument prototype would still apply. */
21997 #ifdef __cplusplus
21998 extern "C"
21999 #endif
22000 char mit_des_cbc_encrypt ();
22001 int
22002 main ()
22003 {
22004 return mit_des_cbc_encrypt ();
22005 ;
22006 return 0;
22007 }
22008 _ACEOF
22009 rm -f conftest.$ac_objext conftest$ac_exeext
22010 if { (ac_try="$ac_link"
22011 case "(($ac_try" in
22012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22013 *) ac_try_echo=$ac_try;;
22014 esac
22015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22016 $as_echo "$ac_try_echo") >&5
22017 (eval "$ac_link") 2>conftest.er1
22018 ac_status=$?
22019 grep -v '^ *+' conftest.er1 >conftest.err
22020 rm -f conftest.er1
22021 cat conftest.err >&5
22022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22023 (exit $ac_status); } && {
22024 test -z "$ac_c_werror_flag" ||
22025 test ! -s conftest.err
22026 } && test -s conftest$ac_exeext && {
22027 test "$cross_compiling" = yes ||
22028 $as_test_x conftest$ac_exeext
22029 }; then
22030 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22031 else
22032 $as_echo "$as_me: failed program was:" >&5
22033 sed 's/^/| /' conftest.$ac_ext >&5
22034
22035 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22036 fi
22037
22038 rm -rf conftest.dSYM
22039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22040 conftest$ac_exeext conftest.$ac_ext
22041 LIBS=$ac_check_lib_save_LIBS
22042 fi
22043 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22044 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22045 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
22046 have_crypto=yes
22047 else
22048 have_crypto=no
22049 fi
22050
22051 if test $have_crypto = yes; then
22052 CRYPTOLIB=-lcrypto
22053 LIBS="$CRYPTOLIB $LIBS"
22054
22055 cat >>confdefs.h <<\_ACEOF
22056 #define HAVE_LIBCRYPTO 1
22057 _ACEOF
22058
22059 fi
22060 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
22061 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
22062 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
22063 $as_echo_n "(cached) " >&6
22064 else
22065 ac_check_lib_save_LIBS=$LIBS
22066 LIBS="-lk5crypto $LIBS"
22067 cat >conftest.$ac_ext <<_ACEOF
22068 /* confdefs.h. */
22069 _ACEOF
22070 cat confdefs.h >>conftest.$ac_ext
22071 cat >>conftest.$ac_ext <<_ACEOF
22072 /* end confdefs.h. */
22073
22074 /* Override any GCC internal prototype to avoid an error.
22075 Use char because int might match the return type of a GCC
22076 builtin and then its argument prototype would still apply. */
22077 #ifdef __cplusplus
22078 extern "C"
22079 #endif
22080 char mit_des_cbc_encrypt ();
22081 int
22082 main ()
22083 {
22084 return mit_des_cbc_encrypt ();
22085 ;
22086 return 0;
22087 }
22088 _ACEOF
22089 rm -f conftest.$ac_objext conftest$ac_exeext
22090 if { (ac_try="$ac_link"
22091 case "(($ac_try" in
22092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22093 *) ac_try_echo=$ac_try;;
22094 esac
22095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22096 $as_echo "$ac_try_echo") >&5
22097 (eval "$ac_link") 2>conftest.er1
22098 ac_status=$?
22099 grep -v '^ *+' conftest.er1 >conftest.err
22100 rm -f conftest.er1
22101 cat conftest.err >&5
22102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22103 (exit $ac_status); } && {
22104 test -z "$ac_c_werror_flag" ||
22105 test ! -s conftest.err
22106 } && test -s conftest$ac_exeext && {
22107 test "$cross_compiling" = yes ||
22108 $as_test_x conftest$ac_exeext
22109 }; then
22110 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22111 else
22112 $as_echo "$as_me: failed program was:" >&5
22113 sed 's/^/| /' conftest.$ac_ext >&5
22114
22115 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22116 fi
22117
22118 rm -rf conftest.dSYM
22119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22120 conftest$ac_exeext conftest.$ac_ext
22121 LIBS=$ac_check_lib_save_LIBS
22122 fi
22123 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22124 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22125 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
22126 have_k5crypto=yes
22127 else
22128 have_k5crypto=no
22129 fi
22130
22131 if test $have_k5crypto = yes; then
22132 CRYPTOLIB=-lk5crypto
22133 LIBS="$CRYPTOLIB $LIBS"
22134
22135 cat >>confdefs.h <<\_ACEOF
22136 #define HAVE_LIBK5CRYPTO 1
22137 _ACEOF
22138
22139 fi
22140 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
22141 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
22142 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22143 $as_echo_n "(cached) " >&6
22144 else
22145 ac_check_lib_save_LIBS=$LIBS
22146 LIBS="-lkrb5 $LIBS"
22147 cat >conftest.$ac_ext <<_ACEOF
22148 /* confdefs.h. */
22149 _ACEOF
22150 cat confdefs.h >>conftest.$ac_ext
22151 cat >>conftest.$ac_ext <<_ACEOF
22152 /* end confdefs.h. */
22153
22154 /* Override any GCC internal prototype to avoid an error.
22155 Use char because int might match the return type of a GCC
22156 builtin and then its argument prototype would still apply. */
22157 #ifdef __cplusplus
22158 extern "C"
22159 #endif
22160 char krb5_init_context ();
22161 int
22162 main ()
22163 {
22164 return krb5_init_context ();
22165 ;
22166 return 0;
22167 }
22168 _ACEOF
22169 rm -f conftest.$ac_objext conftest$ac_exeext
22170 if { (ac_try="$ac_link"
22171 case "(($ac_try" in
22172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22173 *) ac_try_echo=$ac_try;;
22174 esac
22175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22176 $as_echo "$ac_try_echo") >&5
22177 (eval "$ac_link") 2>conftest.er1
22178 ac_status=$?
22179 grep -v '^ *+' conftest.er1 >conftest.err
22180 rm -f conftest.er1
22181 cat conftest.err >&5
22182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183 (exit $ac_status); } && {
22184 test -z "$ac_c_werror_flag" ||
22185 test ! -s conftest.err
22186 } && test -s conftest$ac_exeext && {
22187 test "$cross_compiling" = yes ||
22188 $as_test_x conftest$ac_exeext
22189 }; then
22190 ac_cv_lib_krb5_krb5_init_context=yes
22191 else
22192 $as_echo "$as_me: failed program was:" >&5
22193 sed 's/^/| /' conftest.$ac_ext >&5
22194
22195 ac_cv_lib_krb5_krb5_init_context=no
22196 fi
22197
22198 rm -rf conftest.dSYM
22199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22200 conftest$ac_exeext conftest.$ac_ext
22201 LIBS=$ac_check_lib_save_LIBS
22202 fi
22203 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
22204 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22205 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
22206 have_krb5=yes
22207 else
22208 have_krb5=no
22209 fi
22210
22211 if test $have_krb5=yes; then
22212 KRB5LIB=-lkrb5
22213 LIBS="$KRB5LIB $LIBS"
22214
22215 cat >>confdefs.h <<\_ACEOF
22216 #define HAVE_LIBKRB5 1
22217 _ACEOF
22218
22219 fi
22220 if test "${with_kerberos5}" = no; then
22221 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
22222 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
22223 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22224 $as_echo_n "(cached) " >&6
22225 else
22226 ac_check_lib_save_LIBS=$LIBS
22227 LIBS="-ldes425 $LIBS"
22228 cat >conftest.$ac_ext <<_ACEOF
22229 /* confdefs.h. */
22230 _ACEOF
22231 cat confdefs.h >>conftest.$ac_ext
22232 cat >>conftest.$ac_ext <<_ACEOF
22233 /* end confdefs.h. */
22234
22235 /* Override any GCC internal prototype to avoid an error.
22236 Use char because int might match the return type of a GCC
22237 builtin and then its argument prototype would still apply. */
22238 #ifdef __cplusplus
22239 extern "C"
22240 #endif
22241 char des_cbc_encrypt ();
22242 int
22243 main ()
22244 {
22245 return des_cbc_encrypt ();
22246 ;
22247 return 0;
22248 }
22249 _ACEOF
22250 rm -f conftest.$ac_objext conftest$ac_exeext
22251 if { (ac_try="$ac_link"
22252 case "(($ac_try" in
22253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22254 *) ac_try_echo=$ac_try;;
22255 esac
22256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22257 $as_echo "$ac_try_echo") >&5
22258 (eval "$ac_link") 2>conftest.er1
22259 ac_status=$?
22260 grep -v '^ *+' conftest.er1 >conftest.err
22261 rm -f conftest.er1
22262 cat conftest.err >&5
22263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264 (exit $ac_status); } && {
22265 test -z "$ac_c_werror_flag" ||
22266 test ! -s conftest.err
22267 } && test -s conftest$ac_exeext && {
22268 test "$cross_compiling" = yes ||
22269 $as_test_x conftest$ac_exeext
22270 }; then
22271 ac_cv_lib_des425_des_cbc_encrypt=yes
22272 else
22273 $as_echo "$as_me: failed program was:" >&5
22274 sed 's/^/| /' conftest.$ac_ext >&5
22275
22276 ac_cv_lib_des425_des_cbc_encrypt=no
22277 fi
22278
22279 rm -rf conftest.dSYM
22280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22281 conftest$ac_exeext conftest.$ac_ext
22282 LIBS=$ac_check_lib_save_LIBS
22283 fi
22284 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22285 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22286 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
22287 have_des425=yes
22288 else
22289 have_des425=no
22290 fi
22291
22292 if test $have_des425 = yes; then
22293 DESLIB=-ldes425
22294 LIBS="$DESLIB $LIBS"
22295
22296 cat >>confdefs.h <<\_ACEOF
22297 #define HAVE_LIBDES425 1
22298 _ACEOF
22299
22300 else
22301 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
22302 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
22303 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22304 $as_echo_n "(cached) " >&6
22305 else
22306 ac_check_lib_save_LIBS=$LIBS
22307 LIBS="-ldes $LIBS"
22308 cat >conftest.$ac_ext <<_ACEOF
22309 /* confdefs.h. */
22310 _ACEOF
22311 cat confdefs.h >>conftest.$ac_ext
22312 cat >>conftest.$ac_ext <<_ACEOF
22313 /* end confdefs.h. */
22314
22315 /* Override any GCC internal prototype to avoid an error.
22316 Use char because int might match the return type of a GCC
22317 builtin and then its argument prototype would still apply. */
22318 #ifdef __cplusplus
22319 extern "C"
22320 #endif
22321 char des_cbc_encrypt ();
22322 int
22323 main ()
22324 {
22325 return des_cbc_encrypt ();
22326 ;
22327 return 0;
22328 }
22329 _ACEOF
22330 rm -f conftest.$ac_objext conftest$ac_exeext
22331 if { (ac_try="$ac_link"
22332 case "(($ac_try" in
22333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22334 *) ac_try_echo=$ac_try;;
22335 esac
22336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22337 $as_echo "$ac_try_echo") >&5
22338 (eval "$ac_link") 2>conftest.er1
22339 ac_status=$?
22340 grep -v '^ *+' conftest.er1 >conftest.err
22341 rm -f conftest.er1
22342 cat conftest.err >&5
22343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22344 (exit $ac_status); } && {
22345 test -z "$ac_c_werror_flag" ||
22346 test ! -s conftest.err
22347 } && test -s conftest$ac_exeext && {
22348 test "$cross_compiling" = yes ||
22349 $as_test_x conftest$ac_exeext
22350 }; then
22351 ac_cv_lib_des_des_cbc_encrypt=yes
22352 else
22353 $as_echo "$as_me: failed program was:" >&5
22354 sed 's/^/| /' conftest.$ac_ext >&5
22355
22356 ac_cv_lib_des_des_cbc_encrypt=no
22357 fi
22358
22359 rm -rf conftest.dSYM
22360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22361 conftest$ac_exeext conftest.$ac_ext
22362 LIBS=$ac_check_lib_save_LIBS
22363 fi
22364 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
22365 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22366 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
22367 have_des=yes
22368 else
22369 have_des=no
22370 fi
22371
22372 if test $have_des = yes; then
22373 DESLIB=-ldes
22374 LIBS="$DESLIB $LIBS"
22375
22376 cat >>confdefs.h <<\_ACEOF
22377 #define HAVE_LIBDES 1
22378 _ACEOF
22379
22380 fi
22381 fi
22382 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
22383 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
22384 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22385 $as_echo_n "(cached) " >&6
22386 else
22387 ac_check_lib_save_LIBS=$LIBS
22388 LIBS="-lkrb4 $LIBS"
22389 cat >conftest.$ac_ext <<_ACEOF
22390 /* confdefs.h. */
22391 _ACEOF
22392 cat confdefs.h >>conftest.$ac_ext
22393 cat >>conftest.$ac_ext <<_ACEOF
22394 /* end confdefs.h. */
22395
22396 /* Override any GCC internal prototype to avoid an error.
22397 Use char because int might match the return type of a GCC
22398 builtin and then its argument prototype would still apply. */
22399 #ifdef __cplusplus
22400 extern "C"
22401 #endif
22402 char krb_get_cred ();
22403 int
22404 main ()
22405 {
22406 return krb_get_cred ();
22407 ;
22408 return 0;
22409 }
22410 _ACEOF
22411 rm -f conftest.$ac_objext conftest$ac_exeext
22412 if { (ac_try="$ac_link"
22413 case "(($ac_try" in
22414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22415 *) ac_try_echo=$ac_try;;
22416 esac
22417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22418 $as_echo "$ac_try_echo") >&5
22419 (eval "$ac_link") 2>conftest.er1
22420 ac_status=$?
22421 grep -v '^ *+' conftest.er1 >conftest.err
22422 rm -f conftest.er1
22423 cat conftest.err >&5
22424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22425 (exit $ac_status); } && {
22426 test -z "$ac_c_werror_flag" ||
22427 test ! -s conftest.err
22428 } && test -s conftest$ac_exeext && {
22429 test "$cross_compiling" = yes ||
22430 $as_test_x conftest$ac_exeext
22431 }; then
22432 ac_cv_lib_krb4_krb_get_cred=yes
22433 else
22434 $as_echo "$as_me: failed program was:" >&5
22435 sed 's/^/| /' conftest.$ac_ext >&5
22436
22437 ac_cv_lib_krb4_krb_get_cred=no
22438 fi
22439
22440 rm -rf conftest.dSYM
22441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22442 conftest$ac_exeext conftest.$ac_ext
22443 LIBS=$ac_check_lib_save_LIBS
22444 fi
22445 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
22446 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22447 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22448 have_krb4=yes
22449 else
22450 have_krb4=no
22451 fi
22452
22453 if test $have_krb4 = yes; then
22454 KRB4LIB=-lkrb4
22455 LIBS="$KRB4LIB $LIBS"
22456
22457 cat >>confdefs.h <<\_ACEOF
22458 #define HAVE_LIBKRB4 1
22459 _ACEOF
22460
22461 else
22462 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
22463 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
22464 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22465 $as_echo_n "(cached) " >&6
22466 else
22467 ac_check_lib_save_LIBS=$LIBS
22468 LIBS="-lkrb $LIBS"
22469 cat >conftest.$ac_ext <<_ACEOF
22470 /* confdefs.h. */
22471 _ACEOF
22472 cat confdefs.h >>conftest.$ac_ext
22473 cat >>conftest.$ac_ext <<_ACEOF
22474 /* end confdefs.h. */
22475
22476 /* Override any GCC internal prototype to avoid an error.
22477 Use char because int might match the return type of a GCC
22478 builtin and then its argument prototype would still apply. */
22479 #ifdef __cplusplus
22480 extern "C"
22481 #endif
22482 char krb_get_cred ();
22483 int
22484 main ()
22485 {
22486 return krb_get_cred ();
22487 ;
22488 return 0;
22489 }
22490 _ACEOF
22491 rm -f conftest.$ac_objext conftest$ac_exeext
22492 if { (ac_try="$ac_link"
22493 case "(($ac_try" in
22494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22495 *) ac_try_echo=$ac_try;;
22496 esac
22497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22498 $as_echo "$ac_try_echo") >&5
22499 (eval "$ac_link") 2>conftest.er1
22500 ac_status=$?
22501 grep -v '^ *+' conftest.er1 >conftest.err
22502 rm -f conftest.er1
22503 cat conftest.err >&5
22504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505 (exit $ac_status); } && {
22506 test -z "$ac_c_werror_flag" ||
22507 test ! -s conftest.err
22508 } && test -s conftest$ac_exeext && {
22509 test "$cross_compiling" = yes ||
22510 $as_test_x conftest$ac_exeext
22511 }; then
22512 ac_cv_lib_krb_krb_get_cred=yes
22513 else
22514 $as_echo "$as_me: failed program was:" >&5
22515 sed 's/^/| /' conftest.$ac_ext >&5
22516
22517 ac_cv_lib_krb_krb_get_cred=no
22518 fi
22519
22520 rm -rf conftest.dSYM
22521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22522 conftest$ac_exeext conftest.$ac_ext
22523 LIBS=$ac_check_lib_save_LIBS
22524 fi
22525 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
22526 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22527 if test $ac_cv_lib_krb_krb_get_cred = yes; then
22528 have_krb=yes
22529 else
22530 have_krb=no
22531 fi
22532
22533 if test $have_krb = yes; then
22534 KRB4LIB=-lkrb
22535 LIBS="$KRB4LIB $LIBS"
22536
22537 cat >>confdefs.h <<\_ACEOF
22538 #define HAVE_LIBKRB 1
22539 _ACEOF
22540
22541 fi
22542 fi
22543 fi
22544
22545 if test "${with_kerberos5}" != no; then
22546
22547 for ac_header in krb5.h
22548 do
22549 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22551 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22552 $as_echo_n "checking for $ac_header... " >&6; }
22553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22554 $as_echo_n "(cached) " >&6
22555 fi
22556 ac_res=`eval 'as_val=${'$as_ac_Header'}
22557 $as_echo "$as_val"'`
22558 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22559 $as_echo "$ac_res" >&6; }
22560 else
22561 # Is the header compilable?
22562 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22563 $as_echo_n "checking $ac_header usability... " >&6; }
22564 cat >conftest.$ac_ext <<_ACEOF
22565 /* confdefs.h. */
22566 _ACEOF
22567 cat confdefs.h >>conftest.$ac_ext
22568 cat >>conftest.$ac_ext <<_ACEOF
22569 /* end confdefs.h. */
22570 $ac_includes_default
22571 #include <$ac_header>
22572 _ACEOF
22573 rm -f conftest.$ac_objext
22574 if { (ac_try="$ac_compile"
22575 case "(($ac_try" in
22576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22577 *) ac_try_echo=$ac_try;;
22578 esac
22579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22580 $as_echo "$ac_try_echo") >&5
22581 (eval "$ac_compile") 2>conftest.er1
22582 ac_status=$?
22583 grep -v '^ *+' conftest.er1 >conftest.err
22584 rm -f conftest.er1
22585 cat conftest.err >&5
22586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22587 (exit $ac_status); } && {
22588 test -z "$ac_c_werror_flag" ||
22589 test ! -s conftest.err
22590 } && test -s conftest.$ac_objext; then
22591 ac_header_compiler=yes
22592 else
22593 $as_echo "$as_me: failed program was:" >&5
22594 sed 's/^/| /' conftest.$ac_ext >&5
22595
22596 ac_header_compiler=no
22597 fi
22598
22599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22600 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22601 $as_echo "$ac_header_compiler" >&6; }
22602
22603 # Is the header present?
22604 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22605 $as_echo_n "checking $ac_header presence... " >&6; }
22606 cat >conftest.$ac_ext <<_ACEOF
22607 /* confdefs.h. */
22608 _ACEOF
22609 cat confdefs.h >>conftest.$ac_ext
22610 cat >>conftest.$ac_ext <<_ACEOF
22611 /* end confdefs.h. */
22612 #include <$ac_header>
22613 _ACEOF
22614 if { (ac_try="$ac_cpp conftest.$ac_ext"
22615 case "(($ac_try" in
22616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22617 *) ac_try_echo=$ac_try;;
22618 esac
22619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22620 $as_echo "$ac_try_echo") >&5
22621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22622 ac_status=$?
22623 grep -v '^ *+' conftest.er1 >conftest.err
22624 rm -f conftest.er1
22625 cat conftest.err >&5
22626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627 (exit $ac_status); } >/dev/null && {
22628 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22629 test ! -s conftest.err
22630 }; then
22631 ac_header_preproc=yes
22632 else
22633 $as_echo "$as_me: failed program was:" >&5
22634 sed 's/^/| /' conftest.$ac_ext >&5
22635
22636 ac_header_preproc=no
22637 fi
22638
22639 rm -f conftest.err conftest.$ac_ext
22640 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22641 $as_echo "$ac_header_preproc" >&6; }
22642
22643 # So? What about this header?
22644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22645 yes:no: )
22646 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22647 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22648 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22649 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22650 ac_header_preproc=yes
22651 ;;
22652 no:yes:* )
22653 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22654 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22655 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22656 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22657 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22658 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22659 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22660 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22661 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22662 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22663 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22664 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22665
22666 ;;
22667 esac
22668 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22669 $as_echo_n "checking for $ac_header... " >&6; }
22670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22671 $as_echo_n "(cached) " >&6
22672 else
22673 eval "$as_ac_Header=\$ac_header_preproc"
22674 fi
22675 ac_res=`eval 'as_val=${'$as_ac_Header'}
22676 $as_echo "$as_val"'`
22677 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22678 $as_echo "$ac_res" >&6; }
22679
22680 fi
22681 if test `eval 'as_val=${'$as_ac_Header'}
22682 $as_echo "$as_val"'` = yes; then
22683 cat >>confdefs.h <<_ACEOF
22684 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22685 _ACEOF
22686 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
22687 $as_echo_n "checking for krb5_error.text... " >&6; }
22688 if test "${ac_cv_member_krb5_error_text+set}" = set; then
22689 $as_echo_n "(cached) " >&6
22690 else
22691 cat >conftest.$ac_ext <<_ACEOF
22692 /* confdefs.h. */
22693 _ACEOF
22694 cat confdefs.h >>conftest.$ac_ext
22695 cat >>conftest.$ac_ext <<_ACEOF
22696 /* end confdefs.h. */
22697 #include <krb5.h>
22698
22699 int
22700 main ()
22701 {
22702 static krb5_error ac_aggr;
22703 if (ac_aggr.text)
22704 return 0;
22705 ;
22706 return 0;
22707 }
22708 _ACEOF
22709 rm -f conftest.$ac_objext
22710 if { (ac_try="$ac_compile"
22711 case "(($ac_try" in
22712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22713 *) ac_try_echo=$ac_try;;
22714 esac
22715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22716 $as_echo "$ac_try_echo") >&5
22717 (eval "$ac_compile") 2>conftest.er1
22718 ac_status=$?
22719 grep -v '^ *+' conftest.er1 >conftest.err
22720 rm -f conftest.er1
22721 cat conftest.err >&5
22722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22723 (exit $ac_status); } && {
22724 test -z "$ac_c_werror_flag" ||
22725 test ! -s conftest.err
22726 } && test -s conftest.$ac_objext; then
22727 ac_cv_member_krb5_error_text=yes
22728 else
22729 $as_echo "$as_me: failed program was:" >&5
22730 sed 's/^/| /' conftest.$ac_ext >&5
22731
22732 cat >conftest.$ac_ext <<_ACEOF
22733 /* confdefs.h. */
22734 _ACEOF
22735 cat confdefs.h >>conftest.$ac_ext
22736 cat >>conftest.$ac_ext <<_ACEOF
22737 /* end confdefs.h. */
22738 #include <krb5.h>
22739
22740 int
22741 main ()
22742 {
22743 static krb5_error ac_aggr;
22744 if (sizeof ac_aggr.text)
22745 return 0;
22746 ;
22747 return 0;
22748 }
22749 _ACEOF
22750 rm -f conftest.$ac_objext
22751 if { (ac_try="$ac_compile"
22752 case "(($ac_try" in
22753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22754 *) ac_try_echo=$ac_try;;
22755 esac
22756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22757 $as_echo "$ac_try_echo") >&5
22758 (eval "$ac_compile") 2>conftest.er1
22759 ac_status=$?
22760 grep -v '^ *+' conftest.er1 >conftest.err
22761 rm -f conftest.er1
22762 cat conftest.err >&5
22763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22764 (exit $ac_status); } && {
22765 test -z "$ac_c_werror_flag" ||
22766 test ! -s conftest.err
22767 } && test -s conftest.$ac_objext; then
22768 ac_cv_member_krb5_error_text=yes
22769 else
22770 $as_echo "$as_me: failed program was:" >&5
22771 sed 's/^/| /' conftest.$ac_ext >&5
22772
22773 ac_cv_member_krb5_error_text=no
22774 fi
22775
22776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22777 fi
22778
22779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22780 fi
22781 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
22782 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22783 if test $ac_cv_member_krb5_error_text = yes; then
22784
22785 cat >>confdefs.h <<_ACEOF
22786 #define HAVE_KRB5_ERROR_TEXT 1
22787 _ACEOF
22788
22789
22790 fi
22791 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
22792 $as_echo_n "checking for krb5_error.e_text... " >&6; }
22793 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22794 $as_echo_n "(cached) " >&6
22795 else
22796 cat >conftest.$ac_ext <<_ACEOF
22797 /* confdefs.h. */
22798 _ACEOF
22799 cat confdefs.h >>conftest.$ac_ext
22800 cat >>conftest.$ac_ext <<_ACEOF
22801 /* end confdefs.h. */
22802 #include <krb5.h>
22803
22804 int
22805 main ()
22806 {
22807 static krb5_error ac_aggr;
22808 if (ac_aggr.e_text)
22809 return 0;
22810 ;
22811 return 0;
22812 }
22813 _ACEOF
22814 rm -f conftest.$ac_objext
22815 if { (ac_try="$ac_compile"
22816 case "(($ac_try" in
22817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22818 *) ac_try_echo=$ac_try;;
22819 esac
22820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22821 $as_echo "$ac_try_echo") >&5
22822 (eval "$ac_compile") 2>conftest.er1
22823 ac_status=$?
22824 grep -v '^ *+' conftest.er1 >conftest.err
22825 rm -f conftest.er1
22826 cat conftest.err >&5
22827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22828 (exit $ac_status); } && {
22829 test -z "$ac_c_werror_flag" ||
22830 test ! -s conftest.err
22831 } && test -s conftest.$ac_objext; then
22832 ac_cv_member_krb5_error_e_text=yes
22833 else
22834 $as_echo "$as_me: failed program was:" >&5
22835 sed 's/^/| /' conftest.$ac_ext >&5
22836
22837 cat >conftest.$ac_ext <<_ACEOF
22838 /* confdefs.h. */
22839 _ACEOF
22840 cat confdefs.h >>conftest.$ac_ext
22841 cat >>conftest.$ac_ext <<_ACEOF
22842 /* end confdefs.h. */
22843 #include <krb5.h>
22844
22845 int
22846 main ()
22847 {
22848 static krb5_error ac_aggr;
22849 if (sizeof ac_aggr.e_text)
22850 return 0;
22851 ;
22852 return 0;
22853 }
22854 _ACEOF
22855 rm -f conftest.$ac_objext
22856 if { (ac_try="$ac_compile"
22857 case "(($ac_try" in
22858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22859 *) ac_try_echo=$ac_try;;
22860 esac
22861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22862 $as_echo "$ac_try_echo") >&5
22863 (eval "$ac_compile") 2>conftest.er1
22864 ac_status=$?
22865 grep -v '^ *+' conftest.er1 >conftest.err
22866 rm -f conftest.er1
22867 cat conftest.err >&5
22868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869 (exit $ac_status); } && {
22870 test -z "$ac_c_werror_flag" ||
22871 test ! -s conftest.err
22872 } && test -s conftest.$ac_objext; then
22873 ac_cv_member_krb5_error_e_text=yes
22874 else
22875 $as_echo "$as_me: failed program was:" >&5
22876 sed 's/^/| /' conftest.$ac_ext >&5
22877
22878 ac_cv_member_krb5_error_e_text=no
22879 fi
22880
22881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22882 fi
22883
22884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22885 fi
22886 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
22887 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
22888 if test $ac_cv_member_krb5_error_e_text = yes; then
22889
22890 cat >>confdefs.h <<_ACEOF
22891 #define HAVE_KRB5_ERROR_E_TEXT 1
22892 _ACEOF
22893
22894
22895 fi
22896
22897 fi
22898
22899 done
22900
22901 else
22902
22903 for ac_header in des.h
22904 do
22905 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22907 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22908 $as_echo_n "checking for $ac_header... " >&6; }
22909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22910 $as_echo_n "(cached) " >&6
22911 fi
22912 ac_res=`eval 'as_val=${'$as_ac_Header'}
22913 $as_echo "$as_val"'`
22914 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22915 $as_echo "$ac_res" >&6; }
22916 else
22917 # Is the header compilable?
22918 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22919 $as_echo_n "checking $ac_header usability... " >&6; }
22920 cat >conftest.$ac_ext <<_ACEOF
22921 /* confdefs.h. */
22922 _ACEOF
22923 cat confdefs.h >>conftest.$ac_ext
22924 cat >>conftest.$ac_ext <<_ACEOF
22925 /* end confdefs.h. */
22926 $ac_includes_default
22927 #include <$ac_header>
22928 _ACEOF
22929 rm -f conftest.$ac_objext
22930 if { (ac_try="$ac_compile"
22931 case "(($ac_try" in
22932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22933 *) ac_try_echo=$ac_try;;
22934 esac
22935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22936 $as_echo "$ac_try_echo") >&5
22937 (eval "$ac_compile") 2>conftest.er1
22938 ac_status=$?
22939 grep -v '^ *+' conftest.er1 >conftest.err
22940 rm -f conftest.er1
22941 cat conftest.err >&5
22942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22943 (exit $ac_status); } && {
22944 test -z "$ac_c_werror_flag" ||
22945 test ! -s conftest.err
22946 } && test -s conftest.$ac_objext; then
22947 ac_header_compiler=yes
22948 else
22949 $as_echo "$as_me: failed program was:" >&5
22950 sed 's/^/| /' conftest.$ac_ext >&5
22951
22952 ac_header_compiler=no
22953 fi
22954
22955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22956 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22957 $as_echo "$ac_header_compiler" >&6; }
22958
22959 # Is the header present?
22960 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22961 $as_echo_n "checking $ac_header presence... " >&6; }
22962 cat >conftest.$ac_ext <<_ACEOF
22963 /* confdefs.h. */
22964 _ACEOF
22965 cat confdefs.h >>conftest.$ac_ext
22966 cat >>conftest.$ac_ext <<_ACEOF
22967 /* end confdefs.h. */
22968 #include <$ac_header>
22969 _ACEOF
22970 if { (ac_try="$ac_cpp conftest.$ac_ext"
22971 case "(($ac_try" in
22972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22973 *) ac_try_echo=$ac_try;;
22974 esac
22975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22976 $as_echo "$ac_try_echo") >&5
22977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22978 ac_status=$?
22979 grep -v '^ *+' conftest.er1 >conftest.err
22980 rm -f conftest.er1
22981 cat conftest.err >&5
22982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22983 (exit $ac_status); } >/dev/null && {
22984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22985 test ! -s conftest.err
22986 }; then
22987 ac_header_preproc=yes
22988 else
22989 $as_echo "$as_me: failed program was:" >&5
22990 sed 's/^/| /' conftest.$ac_ext >&5
22991
22992 ac_header_preproc=no
22993 fi
22994
22995 rm -f conftest.err conftest.$ac_ext
22996 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22997 $as_echo "$ac_header_preproc" >&6; }
22998
22999 # So? What about this header?
23000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23001 yes:no: )
23002 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23003 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23004 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23005 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23006 ac_header_preproc=yes
23007 ;;
23008 no:yes:* )
23009 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23010 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23012 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23014 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23016 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23018 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23020 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23021
23022 ;;
23023 esac
23024 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23025 $as_echo_n "checking for $ac_header... " >&6; }
23026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23027 $as_echo_n "(cached) " >&6
23028 else
23029 eval "$as_ac_Header=\$ac_header_preproc"
23030 fi
23031 ac_res=`eval 'as_val=${'$as_ac_Header'}
23032 $as_echo "$as_val"'`
23033 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23034 $as_echo "$ac_res" >&6; }
23035
23036 fi
23037 if test `eval 'as_val=${'$as_ac_Header'}
23038 $as_echo "$as_val"'` = yes; then
23039 cat >>confdefs.h <<_ACEOF
23040 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23041 _ACEOF
23042
23043 else
23044
23045 for ac_header in kerberosIV/des.h
23046 do
23047 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23049 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23050 $as_echo_n "checking for $ac_header... " >&6; }
23051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23052 $as_echo_n "(cached) " >&6
23053 fi
23054 ac_res=`eval 'as_val=${'$as_ac_Header'}
23055 $as_echo "$as_val"'`
23056 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23057 $as_echo "$ac_res" >&6; }
23058 else
23059 # Is the header compilable?
23060 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23061 $as_echo_n "checking $ac_header usability... " >&6; }
23062 cat >conftest.$ac_ext <<_ACEOF
23063 /* confdefs.h. */
23064 _ACEOF
23065 cat confdefs.h >>conftest.$ac_ext
23066 cat >>conftest.$ac_ext <<_ACEOF
23067 /* end confdefs.h. */
23068 $ac_includes_default
23069 #include <$ac_header>
23070 _ACEOF
23071 rm -f conftest.$ac_objext
23072 if { (ac_try="$ac_compile"
23073 case "(($ac_try" in
23074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23075 *) ac_try_echo=$ac_try;;
23076 esac
23077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23078 $as_echo "$ac_try_echo") >&5
23079 (eval "$ac_compile") 2>conftest.er1
23080 ac_status=$?
23081 grep -v '^ *+' conftest.er1 >conftest.err
23082 rm -f conftest.er1
23083 cat conftest.err >&5
23084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085 (exit $ac_status); } && {
23086 test -z "$ac_c_werror_flag" ||
23087 test ! -s conftest.err
23088 } && test -s conftest.$ac_objext; then
23089 ac_header_compiler=yes
23090 else
23091 $as_echo "$as_me: failed program was:" >&5
23092 sed 's/^/| /' conftest.$ac_ext >&5
23093
23094 ac_header_compiler=no
23095 fi
23096
23097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23098 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23099 $as_echo "$ac_header_compiler" >&6; }
23100
23101 # Is the header present?
23102 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23103 $as_echo_n "checking $ac_header presence... " >&6; }
23104 cat >conftest.$ac_ext <<_ACEOF
23105 /* confdefs.h. */
23106 _ACEOF
23107 cat confdefs.h >>conftest.$ac_ext
23108 cat >>conftest.$ac_ext <<_ACEOF
23109 /* end confdefs.h. */
23110 #include <$ac_header>
23111 _ACEOF
23112 if { (ac_try="$ac_cpp conftest.$ac_ext"
23113 case "(($ac_try" in
23114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23115 *) ac_try_echo=$ac_try;;
23116 esac
23117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23118 $as_echo "$ac_try_echo") >&5
23119 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23120 ac_status=$?
23121 grep -v '^ *+' conftest.er1 >conftest.err
23122 rm -f conftest.er1
23123 cat conftest.err >&5
23124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23125 (exit $ac_status); } >/dev/null && {
23126 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23127 test ! -s conftest.err
23128 }; then
23129 ac_header_preproc=yes
23130 else
23131 $as_echo "$as_me: failed program was:" >&5
23132 sed 's/^/| /' conftest.$ac_ext >&5
23133
23134 ac_header_preproc=no
23135 fi
23136
23137 rm -f conftest.err conftest.$ac_ext
23138 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23139 $as_echo "$ac_header_preproc" >&6; }
23140
23141 # So? What about this header?
23142 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23143 yes:no: )
23144 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23145 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23146 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23147 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23148 ac_header_preproc=yes
23149 ;;
23150 no:yes:* )
23151 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23152 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23153 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23154 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23155 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23156 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23157 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23158 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23159 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23160 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23161 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23162 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23163
23164 ;;
23165 esac
23166 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23167 $as_echo_n "checking for $ac_header... " >&6; }
23168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23169 $as_echo_n "(cached) " >&6
23170 else
23171 eval "$as_ac_Header=\$ac_header_preproc"
23172 fi
23173 ac_res=`eval 'as_val=${'$as_ac_Header'}
23174 $as_echo "$as_val"'`
23175 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23176 $as_echo "$ac_res" >&6; }
23177
23178 fi
23179 if test `eval 'as_val=${'$as_ac_Header'}
23180 $as_echo "$as_val"'` = yes; then
23181 cat >>confdefs.h <<_ACEOF
23182 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23183 _ACEOF
23184
23185 else
23186
23187 for ac_header in kerberos/des.h
23188 do
23189 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23191 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23192 $as_echo_n "checking for $ac_header... " >&6; }
23193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23194 $as_echo_n "(cached) " >&6
23195 fi
23196 ac_res=`eval 'as_val=${'$as_ac_Header'}
23197 $as_echo "$as_val"'`
23198 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23199 $as_echo "$ac_res" >&6; }
23200 else
23201 # Is the header compilable?
23202 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23203 $as_echo_n "checking $ac_header usability... " >&6; }
23204 cat >conftest.$ac_ext <<_ACEOF
23205 /* confdefs.h. */
23206 _ACEOF
23207 cat confdefs.h >>conftest.$ac_ext
23208 cat >>conftest.$ac_ext <<_ACEOF
23209 /* end confdefs.h. */
23210 $ac_includes_default
23211 #include <$ac_header>
23212 _ACEOF
23213 rm -f conftest.$ac_objext
23214 if { (ac_try="$ac_compile"
23215 case "(($ac_try" in
23216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23217 *) ac_try_echo=$ac_try;;
23218 esac
23219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23220 $as_echo "$ac_try_echo") >&5
23221 (eval "$ac_compile") 2>conftest.er1
23222 ac_status=$?
23223 grep -v '^ *+' conftest.er1 >conftest.err
23224 rm -f conftest.er1
23225 cat conftest.err >&5
23226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227 (exit $ac_status); } && {
23228 test -z "$ac_c_werror_flag" ||
23229 test ! -s conftest.err
23230 } && test -s conftest.$ac_objext; then
23231 ac_header_compiler=yes
23232 else
23233 $as_echo "$as_me: failed program was:" >&5
23234 sed 's/^/| /' conftest.$ac_ext >&5
23235
23236 ac_header_compiler=no
23237 fi
23238
23239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23240 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23241 $as_echo "$ac_header_compiler" >&6; }
23242
23243 # Is the header present?
23244 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23245 $as_echo_n "checking $ac_header presence... " >&6; }
23246 cat >conftest.$ac_ext <<_ACEOF
23247 /* confdefs.h. */
23248 _ACEOF
23249 cat confdefs.h >>conftest.$ac_ext
23250 cat >>conftest.$ac_ext <<_ACEOF
23251 /* end confdefs.h. */
23252 #include <$ac_header>
23253 _ACEOF
23254 if { (ac_try="$ac_cpp conftest.$ac_ext"
23255 case "(($ac_try" in
23256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23257 *) ac_try_echo=$ac_try;;
23258 esac
23259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23260 $as_echo "$ac_try_echo") >&5
23261 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23262 ac_status=$?
23263 grep -v '^ *+' conftest.er1 >conftest.err
23264 rm -f conftest.er1
23265 cat conftest.err >&5
23266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267 (exit $ac_status); } >/dev/null && {
23268 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23269 test ! -s conftest.err
23270 }; then
23271 ac_header_preproc=yes
23272 else
23273 $as_echo "$as_me: failed program was:" >&5
23274 sed 's/^/| /' conftest.$ac_ext >&5
23275
23276 ac_header_preproc=no
23277 fi
23278
23279 rm -f conftest.err conftest.$ac_ext
23280 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23281 $as_echo "$ac_header_preproc" >&6; }
23282
23283 # So? What about this header?
23284 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23285 yes:no: )
23286 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23287 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23288 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23289 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23290 ac_header_preproc=yes
23291 ;;
23292 no:yes:* )
23293 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23294 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23295 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23296 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23297 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23298 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23299 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23300 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23301 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23302 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23303 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23304 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23305
23306 ;;
23307 esac
23308 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23309 $as_echo_n "checking for $ac_header... " >&6; }
23310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23311 $as_echo_n "(cached) " >&6
23312 else
23313 eval "$as_ac_Header=\$ac_header_preproc"
23314 fi
23315 ac_res=`eval 'as_val=${'$as_ac_Header'}
23316 $as_echo "$as_val"'`
23317 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23318 $as_echo "$ac_res" >&6; }
23319
23320 fi
23321 if test `eval 'as_val=${'$as_ac_Header'}
23322 $as_echo "$as_val"'` = yes; then
23323 cat >>confdefs.h <<_ACEOF
23324 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23325 _ACEOF
23326
23327 fi
23328
23329 done
23330
23331 fi
23332
23333 done
23334
23335 fi
23336
23337 done
23338
23339
23340 for ac_header in krb.h
23341 do
23342 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23344 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23345 $as_echo_n "checking for $ac_header... " >&6; }
23346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23347 $as_echo_n "(cached) " >&6
23348 fi
23349 ac_res=`eval 'as_val=${'$as_ac_Header'}
23350 $as_echo "$as_val"'`
23351 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23352 $as_echo "$ac_res" >&6; }
23353 else
23354 # Is the header compilable?
23355 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23356 $as_echo_n "checking $ac_header usability... " >&6; }
23357 cat >conftest.$ac_ext <<_ACEOF
23358 /* confdefs.h. */
23359 _ACEOF
23360 cat confdefs.h >>conftest.$ac_ext
23361 cat >>conftest.$ac_ext <<_ACEOF
23362 /* end confdefs.h. */
23363 $ac_includes_default
23364 #include <$ac_header>
23365 _ACEOF
23366 rm -f conftest.$ac_objext
23367 if { (ac_try="$ac_compile"
23368 case "(($ac_try" in
23369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23370 *) ac_try_echo=$ac_try;;
23371 esac
23372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23373 $as_echo "$ac_try_echo") >&5
23374 (eval "$ac_compile") 2>conftest.er1
23375 ac_status=$?
23376 grep -v '^ *+' conftest.er1 >conftest.err
23377 rm -f conftest.er1
23378 cat conftest.err >&5
23379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23380 (exit $ac_status); } && {
23381 test -z "$ac_c_werror_flag" ||
23382 test ! -s conftest.err
23383 } && test -s conftest.$ac_objext; then
23384 ac_header_compiler=yes
23385 else
23386 $as_echo "$as_me: failed program was:" >&5
23387 sed 's/^/| /' conftest.$ac_ext >&5
23388
23389 ac_header_compiler=no
23390 fi
23391
23392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23393 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23394 $as_echo "$ac_header_compiler" >&6; }
23395
23396 # Is the header present?
23397 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23398 $as_echo_n "checking $ac_header presence... " >&6; }
23399 cat >conftest.$ac_ext <<_ACEOF
23400 /* confdefs.h. */
23401 _ACEOF
23402 cat confdefs.h >>conftest.$ac_ext
23403 cat >>conftest.$ac_ext <<_ACEOF
23404 /* end confdefs.h. */
23405 #include <$ac_header>
23406 _ACEOF
23407 if { (ac_try="$ac_cpp conftest.$ac_ext"
23408 case "(($ac_try" in
23409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23410 *) ac_try_echo=$ac_try;;
23411 esac
23412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23413 $as_echo "$ac_try_echo") >&5
23414 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23415 ac_status=$?
23416 grep -v '^ *+' conftest.er1 >conftest.err
23417 rm -f conftest.er1
23418 cat conftest.err >&5
23419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420 (exit $ac_status); } >/dev/null && {
23421 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23422 test ! -s conftest.err
23423 }; then
23424 ac_header_preproc=yes
23425 else
23426 $as_echo "$as_me: failed program was:" >&5
23427 sed 's/^/| /' conftest.$ac_ext >&5
23428
23429 ac_header_preproc=no
23430 fi
23431
23432 rm -f conftest.err conftest.$ac_ext
23433 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23434 $as_echo "$ac_header_preproc" >&6; }
23435
23436 # So? What about this header?
23437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23438 yes:no: )
23439 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23440 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23441 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23442 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23443 ac_header_preproc=yes
23444 ;;
23445 no:yes:* )
23446 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23447 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23448 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23449 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23450 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23451 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23452 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23453 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23454 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23455 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23456 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23457 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23458
23459 ;;
23460 esac
23461 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23462 $as_echo_n "checking for $ac_header... " >&6; }
23463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23464 $as_echo_n "(cached) " >&6
23465 else
23466 eval "$as_ac_Header=\$ac_header_preproc"
23467 fi
23468 ac_res=`eval 'as_val=${'$as_ac_Header'}
23469 $as_echo "$as_val"'`
23470 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23471 $as_echo "$ac_res" >&6; }
23472
23473 fi
23474 if test `eval 'as_val=${'$as_ac_Header'}
23475 $as_echo "$as_val"'` = yes; then
23476 cat >>confdefs.h <<_ACEOF
23477 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23478 _ACEOF
23479
23480 else
23481
23482 for ac_header in kerberosIV/krb.h
23483 do
23484 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23486 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23487 $as_echo_n "checking for $ac_header... " >&6; }
23488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23489 $as_echo_n "(cached) " >&6
23490 fi
23491 ac_res=`eval 'as_val=${'$as_ac_Header'}
23492 $as_echo "$as_val"'`
23493 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23494 $as_echo "$ac_res" >&6; }
23495 else
23496 # Is the header compilable?
23497 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23498 $as_echo_n "checking $ac_header usability... " >&6; }
23499 cat >conftest.$ac_ext <<_ACEOF
23500 /* confdefs.h. */
23501 _ACEOF
23502 cat confdefs.h >>conftest.$ac_ext
23503 cat >>conftest.$ac_ext <<_ACEOF
23504 /* end confdefs.h. */
23505 $ac_includes_default
23506 #include <$ac_header>
23507 _ACEOF
23508 rm -f conftest.$ac_objext
23509 if { (ac_try="$ac_compile"
23510 case "(($ac_try" in
23511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23512 *) ac_try_echo=$ac_try;;
23513 esac
23514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23515 $as_echo "$ac_try_echo") >&5
23516 (eval "$ac_compile") 2>conftest.er1
23517 ac_status=$?
23518 grep -v '^ *+' conftest.er1 >conftest.err
23519 rm -f conftest.er1
23520 cat conftest.err >&5
23521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23522 (exit $ac_status); } && {
23523 test -z "$ac_c_werror_flag" ||
23524 test ! -s conftest.err
23525 } && test -s conftest.$ac_objext; then
23526 ac_header_compiler=yes
23527 else
23528 $as_echo "$as_me: failed program was:" >&5
23529 sed 's/^/| /' conftest.$ac_ext >&5
23530
23531 ac_header_compiler=no
23532 fi
23533
23534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23535 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23536 $as_echo "$ac_header_compiler" >&6; }
23537
23538 # Is the header present?
23539 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23540 $as_echo_n "checking $ac_header presence... " >&6; }
23541 cat >conftest.$ac_ext <<_ACEOF
23542 /* confdefs.h. */
23543 _ACEOF
23544 cat confdefs.h >>conftest.$ac_ext
23545 cat >>conftest.$ac_ext <<_ACEOF
23546 /* end confdefs.h. */
23547 #include <$ac_header>
23548 _ACEOF
23549 if { (ac_try="$ac_cpp conftest.$ac_ext"
23550 case "(($ac_try" in
23551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23552 *) ac_try_echo=$ac_try;;
23553 esac
23554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23555 $as_echo "$ac_try_echo") >&5
23556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23557 ac_status=$?
23558 grep -v '^ *+' conftest.er1 >conftest.err
23559 rm -f conftest.er1
23560 cat conftest.err >&5
23561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23562 (exit $ac_status); } >/dev/null && {
23563 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23564 test ! -s conftest.err
23565 }; then
23566 ac_header_preproc=yes
23567 else
23568 $as_echo "$as_me: failed program was:" >&5
23569 sed 's/^/| /' conftest.$ac_ext >&5
23570
23571 ac_header_preproc=no
23572 fi
23573
23574 rm -f conftest.err conftest.$ac_ext
23575 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23576 $as_echo "$ac_header_preproc" >&6; }
23577
23578 # So? What about this header?
23579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23580 yes:no: )
23581 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23582 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23583 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23584 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23585 ac_header_preproc=yes
23586 ;;
23587 no:yes:* )
23588 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23589 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23590 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23591 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23592 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23593 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23594 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23595 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23596 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23597 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23598 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23599 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23600
23601 ;;
23602 esac
23603 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23604 $as_echo_n "checking for $ac_header... " >&6; }
23605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23606 $as_echo_n "(cached) " >&6
23607 else
23608 eval "$as_ac_Header=\$ac_header_preproc"
23609 fi
23610 ac_res=`eval 'as_val=${'$as_ac_Header'}
23611 $as_echo "$as_val"'`
23612 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23613 $as_echo "$ac_res" >&6; }
23614
23615 fi
23616 if test `eval 'as_val=${'$as_ac_Header'}
23617 $as_echo "$as_val"'` = yes; then
23618 cat >>confdefs.h <<_ACEOF
23619 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23620 _ACEOF
23621
23622 else
23623
23624 for ac_header in kerberos/krb.h
23625 do
23626 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23628 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23629 $as_echo_n "checking for $ac_header... " >&6; }
23630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23631 $as_echo_n "(cached) " >&6
23632 fi
23633 ac_res=`eval 'as_val=${'$as_ac_Header'}
23634 $as_echo "$as_val"'`
23635 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23636 $as_echo "$ac_res" >&6; }
23637 else
23638 # Is the header compilable?
23639 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23640 $as_echo_n "checking $ac_header usability... " >&6; }
23641 cat >conftest.$ac_ext <<_ACEOF
23642 /* confdefs.h. */
23643 _ACEOF
23644 cat confdefs.h >>conftest.$ac_ext
23645 cat >>conftest.$ac_ext <<_ACEOF
23646 /* end confdefs.h. */
23647 $ac_includes_default
23648 #include <$ac_header>
23649 _ACEOF
23650 rm -f conftest.$ac_objext
23651 if { (ac_try="$ac_compile"
23652 case "(($ac_try" in
23653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23654 *) ac_try_echo=$ac_try;;
23655 esac
23656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23657 $as_echo "$ac_try_echo") >&5
23658 (eval "$ac_compile") 2>conftest.er1
23659 ac_status=$?
23660 grep -v '^ *+' conftest.er1 >conftest.err
23661 rm -f conftest.er1
23662 cat conftest.err >&5
23663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23664 (exit $ac_status); } && {
23665 test -z "$ac_c_werror_flag" ||
23666 test ! -s conftest.err
23667 } && test -s conftest.$ac_objext; then
23668 ac_header_compiler=yes
23669 else
23670 $as_echo "$as_me: failed program was:" >&5
23671 sed 's/^/| /' conftest.$ac_ext >&5
23672
23673 ac_header_compiler=no
23674 fi
23675
23676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23677 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23678 $as_echo "$ac_header_compiler" >&6; }
23679
23680 # Is the header present?
23681 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23682 $as_echo_n "checking $ac_header presence... " >&6; }
23683 cat >conftest.$ac_ext <<_ACEOF
23684 /* confdefs.h. */
23685 _ACEOF
23686 cat confdefs.h >>conftest.$ac_ext
23687 cat >>conftest.$ac_ext <<_ACEOF
23688 /* end confdefs.h. */
23689 #include <$ac_header>
23690 _ACEOF
23691 if { (ac_try="$ac_cpp conftest.$ac_ext"
23692 case "(($ac_try" in
23693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23694 *) ac_try_echo=$ac_try;;
23695 esac
23696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23697 $as_echo "$ac_try_echo") >&5
23698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23699 ac_status=$?
23700 grep -v '^ *+' conftest.er1 >conftest.err
23701 rm -f conftest.er1
23702 cat conftest.err >&5
23703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23704 (exit $ac_status); } >/dev/null && {
23705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23706 test ! -s conftest.err
23707 }; then
23708 ac_header_preproc=yes
23709 else
23710 $as_echo "$as_me: failed program was:" >&5
23711 sed 's/^/| /' conftest.$ac_ext >&5
23712
23713 ac_header_preproc=no
23714 fi
23715
23716 rm -f conftest.err conftest.$ac_ext
23717 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23718 $as_echo "$ac_header_preproc" >&6; }
23719
23720 # So? What about this header?
23721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23722 yes:no: )
23723 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23724 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23725 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23726 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23727 ac_header_preproc=yes
23728 ;;
23729 no:yes:* )
23730 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23731 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23732 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23733 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23734 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23735 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23736 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23737 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23738 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23739 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23740 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23741 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23742
23743 ;;
23744 esac
23745 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23746 $as_echo_n "checking for $ac_header... " >&6; }
23747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23748 $as_echo_n "(cached) " >&6
23749 else
23750 eval "$as_ac_Header=\$ac_header_preproc"
23751 fi
23752 ac_res=`eval 'as_val=${'$as_ac_Header'}
23753 $as_echo "$as_val"'`
23754 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23755 $as_echo "$ac_res" >&6; }
23756
23757 fi
23758 if test `eval 'as_val=${'$as_ac_Header'}
23759 $as_echo "$as_val"'` = yes; then
23760 cat >>confdefs.h <<_ACEOF
23761 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23762 _ACEOF
23763
23764 fi
23765
23766 done
23767
23768 fi
23769
23770 done
23771
23772 fi
23773
23774 done
23775
23776 fi
23777
23778 for ac_header in com_err.h
23779 do
23780 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23782 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23783 $as_echo_n "checking for $ac_header... " >&6; }
23784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23785 $as_echo_n "(cached) " >&6
23786 fi
23787 ac_res=`eval 'as_val=${'$as_ac_Header'}
23788 $as_echo "$as_val"'`
23789 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23790 $as_echo "$ac_res" >&6; }
23791 else
23792 # Is the header compilable?
23793 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23794 $as_echo_n "checking $ac_header usability... " >&6; }
23795 cat >conftest.$ac_ext <<_ACEOF
23796 /* confdefs.h. */
23797 _ACEOF
23798 cat confdefs.h >>conftest.$ac_ext
23799 cat >>conftest.$ac_ext <<_ACEOF
23800 /* end confdefs.h. */
23801 $ac_includes_default
23802 #include <$ac_header>
23803 _ACEOF
23804 rm -f conftest.$ac_objext
23805 if { (ac_try="$ac_compile"
23806 case "(($ac_try" in
23807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23808 *) ac_try_echo=$ac_try;;
23809 esac
23810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23811 $as_echo "$ac_try_echo") >&5
23812 (eval "$ac_compile") 2>conftest.er1
23813 ac_status=$?
23814 grep -v '^ *+' conftest.er1 >conftest.err
23815 rm -f conftest.er1
23816 cat conftest.err >&5
23817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23818 (exit $ac_status); } && {
23819 test -z "$ac_c_werror_flag" ||
23820 test ! -s conftest.err
23821 } && test -s conftest.$ac_objext; then
23822 ac_header_compiler=yes
23823 else
23824 $as_echo "$as_me: failed program was:" >&5
23825 sed 's/^/| /' conftest.$ac_ext >&5
23826
23827 ac_header_compiler=no
23828 fi
23829
23830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23831 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23832 $as_echo "$ac_header_compiler" >&6; }
23833
23834 # Is the header present?
23835 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23836 $as_echo_n "checking $ac_header presence... " >&6; }
23837 cat >conftest.$ac_ext <<_ACEOF
23838 /* confdefs.h. */
23839 _ACEOF
23840 cat confdefs.h >>conftest.$ac_ext
23841 cat >>conftest.$ac_ext <<_ACEOF
23842 /* end confdefs.h. */
23843 #include <$ac_header>
23844 _ACEOF
23845 if { (ac_try="$ac_cpp conftest.$ac_ext"
23846 case "(($ac_try" in
23847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23848 *) ac_try_echo=$ac_try;;
23849 esac
23850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23851 $as_echo "$ac_try_echo") >&5
23852 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23853 ac_status=$?
23854 grep -v '^ *+' conftest.er1 >conftest.err
23855 rm -f conftest.er1
23856 cat conftest.err >&5
23857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23858 (exit $ac_status); } >/dev/null && {
23859 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23860 test ! -s conftest.err
23861 }; then
23862 ac_header_preproc=yes
23863 else
23864 $as_echo "$as_me: failed program was:" >&5
23865 sed 's/^/| /' conftest.$ac_ext >&5
23866
23867 ac_header_preproc=no
23868 fi
23869
23870 rm -f conftest.err conftest.$ac_ext
23871 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23872 $as_echo "$ac_header_preproc" >&6; }
23873
23874 # So? What about this header?
23875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23876 yes:no: )
23877 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23878 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23879 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23880 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23881 ac_header_preproc=yes
23882 ;;
23883 no:yes:* )
23884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23885 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23886 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23887 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23888 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23889 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23890 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23891 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23892 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23893 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23894 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23895 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23896
23897 ;;
23898 esac
23899 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23900 $as_echo_n "checking for $ac_header... " >&6; }
23901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23902 $as_echo_n "(cached) " >&6
23903 else
23904 eval "$as_ac_Header=\$ac_header_preproc"
23905 fi
23906 ac_res=`eval 'as_val=${'$as_ac_Header'}
23907 $as_echo "$as_val"'`
23908 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23909 $as_echo "$ac_res" >&6; }
23910
23911 fi
23912 if test `eval 'as_val=${'$as_ac_Header'}
23913 $as_echo "$as_val"'` = yes; then
23914 cat >>confdefs.h <<_ACEOF
23915 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23916 _ACEOF
23917
23918 fi
23919
23920 done
23921
23922 fi
23923
23924
23925
23926
23927
23928
23929
23930 # Solaris requires -lintl if you want strerror (which calls dgettext)
23931 # to return localized messages.
23932
23933 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
23934 $as_echo_n "checking for dgettext in -lintl... " >&6; }
23935 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23936 $as_echo_n "(cached) " >&6
23937 else
23938 ac_check_lib_save_LIBS=$LIBS
23939 LIBS="-lintl $LIBS"
23940 cat >conftest.$ac_ext <<_ACEOF
23941 /* confdefs.h. */
23942 _ACEOF
23943 cat confdefs.h >>conftest.$ac_ext
23944 cat >>conftest.$ac_ext <<_ACEOF
23945 /* end confdefs.h. */
23946
23947 /* Override any GCC internal prototype to avoid an error.
23948 Use char because int might match the return type of a GCC
23949 builtin and then its argument prototype would still apply. */
23950 #ifdef __cplusplus
23951 extern "C"
23952 #endif
23953 char dgettext ();
23954 int
23955 main ()
23956 {
23957 return dgettext ();
23958 ;
23959 return 0;
23960 }
23961 _ACEOF
23962 rm -f conftest.$ac_objext conftest$ac_exeext
23963 if { (ac_try="$ac_link"
23964 case "(($ac_try" in
23965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23966 *) ac_try_echo=$ac_try;;
23967 esac
23968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23969 $as_echo "$ac_try_echo") >&5
23970 (eval "$ac_link") 2>conftest.er1
23971 ac_status=$?
23972 grep -v '^ *+' conftest.er1 >conftest.err
23973 rm -f conftest.er1
23974 cat conftest.err >&5
23975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23976 (exit $ac_status); } && {
23977 test -z "$ac_c_werror_flag" ||
23978 test ! -s conftest.err
23979 } && test -s conftest$ac_exeext && {
23980 test "$cross_compiling" = yes ||
23981 $as_test_x conftest$ac_exeext
23982 }; then
23983 ac_cv_lib_intl_dgettext=yes
23984 else
23985 $as_echo "$as_me: failed program was:" >&5
23986 sed 's/^/| /' conftest.$ac_ext >&5
23987
23988 ac_cv_lib_intl_dgettext=no
23989 fi
23990
23991 rm -rf conftest.dSYM
23992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23993 conftest$ac_exeext conftest.$ac_ext
23994 LIBS=$ac_check_lib_save_LIBS
23995 fi
23996 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
23997 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
23998 if test $ac_cv_lib_intl_dgettext = yes; then
23999 cat >>confdefs.h <<_ACEOF
24000 #define HAVE_LIBINTL 1
24001 _ACEOF
24002
24003 LIBS="-lintl $LIBS"
24004
24005 fi
24006
24007
24008 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
24009 $as_echo_n "checking whether localtime caches TZ... " >&6; }
24010 if test "${emacs_cv_localtime_cache+set}" = set; then
24011 $as_echo_n "(cached) " >&6
24012 else
24013 if test x$ac_cv_func_tzset = xyes; then
24014 if test "$cross_compiling" = yes; then
24015 # If we have tzset, assume the worst when cross-compiling.
24016 emacs_cv_localtime_cache=yes
24017 else
24018 cat >conftest.$ac_ext <<_ACEOF
24019 /* confdefs.h. */
24020 _ACEOF
24021 cat confdefs.h >>conftest.$ac_ext
24022 cat >>conftest.$ac_ext <<_ACEOF
24023 /* end confdefs.h. */
24024 #include <time.h>
24025 extern char **environ;
24026 unset_TZ ()
24027 {
24028 char **from, **to;
24029 for (to = from = environ; (*to = *from); from++)
24030 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
24031 to++;
24032 }
24033 char TZ_GMT0[] = "TZ=GMT0";
24034 char TZ_PST8[] = "TZ=PST8";
24035 main()
24036 {
24037 time_t now = time ((time_t *) 0);
24038 int hour_GMT0, hour_unset;
24039 if (putenv (TZ_GMT0) != 0)
24040 exit (1);
24041 hour_GMT0 = localtime (&now)->tm_hour;
24042 unset_TZ ();
24043 hour_unset = localtime (&now)->tm_hour;
24044 if (putenv (TZ_PST8) != 0)
24045 exit (1);
24046 if (localtime (&now)->tm_hour == hour_GMT0)
24047 exit (1);
24048 unset_TZ ();
24049 if (localtime (&now)->tm_hour != hour_unset)
24050 exit (1);
24051 exit (0);
24052 }
24053 _ACEOF
24054 rm -f conftest$ac_exeext
24055 if { (ac_try="$ac_link"
24056 case "(($ac_try" in
24057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24058 *) ac_try_echo=$ac_try;;
24059 esac
24060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24061 $as_echo "$ac_try_echo") >&5
24062 (eval "$ac_link") 2>&5
24063 ac_status=$?
24064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24065 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24066 { (case "(($ac_try" in
24067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24068 *) ac_try_echo=$ac_try;;
24069 esac
24070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24071 $as_echo "$ac_try_echo") >&5
24072 (eval "$ac_try") 2>&5
24073 ac_status=$?
24074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24075 (exit $ac_status); }; }; then
24076 emacs_cv_localtime_cache=no
24077 else
24078 $as_echo "$as_me: program exited with status $ac_status" >&5
24079 $as_echo "$as_me: failed program was:" >&5
24080 sed 's/^/| /' conftest.$ac_ext >&5
24081
24082 ( exit $ac_status )
24083 emacs_cv_localtime_cache=yes
24084 fi
24085 rm -rf conftest.dSYM
24086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24087 fi
24088
24089
24090 else
24091 # If we lack tzset, report that localtime does not cache TZ,
24092 # since we can't invalidate the cache if we don't have tzset.
24093 emacs_cv_localtime_cache=no
24094 fi
24095 fi
24096 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
24097 $as_echo "$emacs_cv_localtime_cache" >&6; }
24098 if test $emacs_cv_localtime_cache = yes; then
24099
24100 cat >>confdefs.h <<\_ACEOF
24101 #define LOCALTIME_CACHE 1
24102 _ACEOF
24103
24104 fi
24105
24106 if test "x$HAVE_TIMEVAL" = xyes; then
24107
24108 for ac_func in gettimeofday
24109 do
24110 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24111 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24112 $as_echo_n "checking for $ac_func... " >&6; }
24113 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24114 $as_echo_n "(cached) " >&6
24115 else
24116 cat >conftest.$ac_ext <<_ACEOF
24117 /* confdefs.h. */
24118 _ACEOF
24119 cat confdefs.h >>conftest.$ac_ext
24120 cat >>conftest.$ac_ext <<_ACEOF
24121 /* end confdefs.h. */
24122 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24124 #define $ac_func innocuous_$ac_func
24125
24126 /* System header to define __stub macros and hopefully few prototypes,
24127 which can conflict with char $ac_func (); below.
24128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24129 <limits.h> exists even on freestanding compilers. */
24130
24131 #ifdef __STDC__
24132 # include <limits.h>
24133 #else
24134 # include <assert.h>
24135 #endif
24136
24137 #undef $ac_func
24138
24139 /* Override any GCC internal prototype to avoid an error.
24140 Use char because int might match the return type of a GCC
24141 builtin and then its argument prototype would still apply. */
24142 #ifdef __cplusplus
24143 extern "C"
24144 #endif
24145 char $ac_func ();
24146 /* The GNU C library defines this for functions which it implements
24147 to always fail with ENOSYS. Some functions are actually named
24148 something starting with __ and the normal name is an alias. */
24149 #if defined __stub_$ac_func || defined __stub___$ac_func
24150 choke me
24151 #endif
24152
24153 int
24154 main ()
24155 {
24156 return $ac_func ();
24157 ;
24158 return 0;
24159 }
24160 _ACEOF
24161 rm -f conftest.$ac_objext conftest$ac_exeext
24162 if { (ac_try="$ac_link"
24163 case "(($ac_try" in
24164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24165 *) ac_try_echo=$ac_try;;
24166 esac
24167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24168 $as_echo "$ac_try_echo") >&5
24169 (eval "$ac_link") 2>conftest.er1
24170 ac_status=$?
24171 grep -v '^ *+' conftest.er1 >conftest.err
24172 rm -f conftest.er1
24173 cat conftest.err >&5
24174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24175 (exit $ac_status); } && {
24176 test -z "$ac_c_werror_flag" ||
24177 test ! -s conftest.err
24178 } && test -s conftest$ac_exeext && {
24179 test "$cross_compiling" = yes ||
24180 $as_test_x conftest$ac_exeext
24181 }; then
24182 eval "$as_ac_var=yes"
24183 else
24184 $as_echo "$as_me: failed program was:" >&5
24185 sed 's/^/| /' conftest.$ac_ext >&5
24186
24187 eval "$as_ac_var=no"
24188 fi
24189
24190 rm -rf conftest.dSYM
24191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24192 conftest$ac_exeext conftest.$ac_ext
24193 fi
24194 ac_res=`eval 'as_val=${'$as_ac_var'}
24195 $as_echo "$as_val"'`
24196 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24197 $as_echo "$ac_res" >&6; }
24198 if test `eval 'as_val=${'$as_ac_var'}
24199 $as_echo "$as_val"'` = yes; then
24200 cat >>confdefs.h <<_ACEOF
24201 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24202 _ACEOF
24203
24204 fi
24205 done
24206
24207 if test $ac_cv_func_gettimeofday = yes; then
24208 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
24209 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
24210 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24211 $as_echo_n "(cached) " >&6
24212 else
24213 cat >conftest.$ac_ext <<_ACEOF
24214 /* confdefs.h. */
24215 _ACEOF
24216 cat confdefs.h >>conftest.$ac_ext
24217 cat >>conftest.$ac_ext <<_ACEOF
24218 /* end confdefs.h. */
24219
24220 #ifdef TIME_WITH_SYS_TIME
24221 #include <sys/time.h>
24222 #include <time.h>
24223 #else
24224 #ifdef HAVE_SYS_TIME_H
24225 #include <sys/time.h>
24226 #else
24227 #include <time.h>
24228 #endif
24229 #endif
24230 int
24231 main ()
24232 {
24233 struct timeval time;
24234 gettimeofday (&time, 0);
24235 ;
24236 return 0;
24237 }
24238 _ACEOF
24239 rm -f conftest.$ac_objext
24240 if { (ac_try="$ac_compile"
24241 case "(($ac_try" in
24242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24243 *) ac_try_echo=$ac_try;;
24244 esac
24245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24246 $as_echo "$ac_try_echo") >&5
24247 (eval "$ac_compile") 2>conftest.er1
24248 ac_status=$?
24249 grep -v '^ *+' conftest.er1 >conftest.err
24250 rm -f conftest.er1
24251 cat conftest.err >&5
24252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24253 (exit $ac_status); } && {
24254 test -z "$ac_c_werror_flag" ||
24255 test ! -s conftest.err
24256 } && test -s conftest.$ac_objext; then
24257 emacs_cv_gettimeofday_two_arguments=yes
24258 else
24259 $as_echo "$as_me: failed program was:" >&5
24260 sed 's/^/| /' conftest.$ac_ext >&5
24261
24262 emacs_cv_gettimeofday_two_arguments=no
24263 fi
24264
24265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24266 fi
24267 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
24268 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24269 if test $emacs_cv_gettimeofday_two_arguments = no; then
24270
24271 cat >>confdefs.h <<\_ACEOF
24272 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24273 _ACEOF
24274
24275 fi
24276 fi
24277 fi
24278
24279 ok_so_far=yes
24280 { $as_echo "$as_me:$LINENO: checking for socket" >&5
24281 $as_echo_n "checking for socket... " >&6; }
24282 if test "${ac_cv_func_socket+set}" = set; then
24283 $as_echo_n "(cached) " >&6
24284 else
24285 cat >conftest.$ac_ext <<_ACEOF
24286 /* confdefs.h. */
24287 _ACEOF
24288 cat confdefs.h >>conftest.$ac_ext
24289 cat >>conftest.$ac_ext <<_ACEOF
24290 /* end confdefs.h. */
24291 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24293 #define socket innocuous_socket
24294
24295 /* System header to define __stub macros and hopefully few prototypes,
24296 which can conflict with char socket (); below.
24297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24298 <limits.h> exists even on freestanding compilers. */
24299
24300 #ifdef __STDC__
24301 # include <limits.h>
24302 #else
24303 # include <assert.h>
24304 #endif
24305
24306 #undef socket
24307
24308 /* Override any GCC internal prototype to avoid an error.
24309 Use char because int might match the return type of a GCC
24310 builtin and then its argument prototype would still apply. */
24311 #ifdef __cplusplus
24312 extern "C"
24313 #endif
24314 char socket ();
24315 /* The GNU C library defines this for functions which it implements
24316 to always fail with ENOSYS. Some functions are actually named
24317 something starting with __ and the normal name is an alias. */
24318 #if defined __stub_socket || defined __stub___socket
24319 choke me
24320 #endif
24321
24322 int
24323 main ()
24324 {
24325 return socket ();
24326 ;
24327 return 0;
24328 }
24329 _ACEOF
24330 rm -f conftest.$ac_objext conftest$ac_exeext
24331 if { (ac_try="$ac_link"
24332 case "(($ac_try" in
24333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24334 *) ac_try_echo=$ac_try;;
24335 esac
24336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24337 $as_echo "$ac_try_echo") >&5
24338 (eval "$ac_link") 2>conftest.er1
24339 ac_status=$?
24340 grep -v '^ *+' conftest.er1 >conftest.err
24341 rm -f conftest.er1
24342 cat conftest.err >&5
24343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24344 (exit $ac_status); } && {
24345 test -z "$ac_c_werror_flag" ||
24346 test ! -s conftest.err
24347 } && test -s conftest$ac_exeext && {
24348 test "$cross_compiling" = yes ||
24349 $as_test_x conftest$ac_exeext
24350 }; then
24351 ac_cv_func_socket=yes
24352 else
24353 $as_echo "$as_me: failed program was:" >&5
24354 sed 's/^/| /' conftest.$ac_ext >&5
24355
24356 ac_cv_func_socket=no
24357 fi
24358
24359 rm -rf conftest.dSYM
24360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24361 conftest$ac_exeext conftest.$ac_ext
24362 fi
24363 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24364 $as_echo "$ac_cv_func_socket" >&6; }
24365 if test $ac_cv_func_socket = yes; then
24366 :
24367 else
24368 ok_so_far=no
24369 fi
24370
24371 if test $ok_so_far = yes; then
24372 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24373 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24374 $as_echo_n "checking for netinet/in.h... " >&6; }
24375 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24376 $as_echo_n "(cached) " >&6
24377 fi
24378 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24379 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24380 else
24381 # Is the header compilable?
24382 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
24383 $as_echo_n "checking netinet/in.h usability... " >&6; }
24384 cat >conftest.$ac_ext <<_ACEOF
24385 /* confdefs.h. */
24386 _ACEOF
24387 cat confdefs.h >>conftest.$ac_ext
24388 cat >>conftest.$ac_ext <<_ACEOF
24389 /* end confdefs.h. */
24390 $ac_includes_default
24391 #include <netinet/in.h>
24392 _ACEOF
24393 rm -f conftest.$ac_objext
24394 if { (ac_try="$ac_compile"
24395 case "(($ac_try" in
24396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24397 *) ac_try_echo=$ac_try;;
24398 esac
24399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24400 $as_echo "$ac_try_echo") >&5
24401 (eval "$ac_compile") 2>conftest.er1
24402 ac_status=$?
24403 grep -v '^ *+' conftest.er1 >conftest.err
24404 rm -f conftest.er1
24405 cat conftest.err >&5
24406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24407 (exit $ac_status); } && {
24408 test -z "$ac_c_werror_flag" ||
24409 test ! -s conftest.err
24410 } && test -s conftest.$ac_objext; then
24411 ac_header_compiler=yes
24412 else
24413 $as_echo "$as_me: failed program was:" >&5
24414 sed 's/^/| /' conftest.$ac_ext >&5
24415
24416 ac_header_compiler=no
24417 fi
24418
24419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24420 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24421 $as_echo "$ac_header_compiler" >&6; }
24422
24423 # Is the header present?
24424 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
24425 $as_echo_n "checking netinet/in.h presence... " >&6; }
24426 cat >conftest.$ac_ext <<_ACEOF
24427 /* confdefs.h. */
24428 _ACEOF
24429 cat confdefs.h >>conftest.$ac_ext
24430 cat >>conftest.$ac_ext <<_ACEOF
24431 /* end confdefs.h. */
24432 #include <netinet/in.h>
24433 _ACEOF
24434 if { (ac_try="$ac_cpp conftest.$ac_ext"
24435 case "(($ac_try" in
24436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24437 *) ac_try_echo=$ac_try;;
24438 esac
24439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24440 $as_echo "$ac_try_echo") >&5
24441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24442 ac_status=$?
24443 grep -v '^ *+' conftest.er1 >conftest.err
24444 rm -f conftest.er1
24445 cat conftest.err >&5
24446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24447 (exit $ac_status); } >/dev/null && {
24448 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24449 test ! -s conftest.err
24450 }; then
24451 ac_header_preproc=yes
24452 else
24453 $as_echo "$as_me: failed program was:" >&5
24454 sed 's/^/| /' conftest.$ac_ext >&5
24455
24456 ac_header_preproc=no
24457 fi
24458
24459 rm -f conftest.err conftest.$ac_ext
24460 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24461 $as_echo "$ac_header_preproc" >&6; }
24462
24463 # So? What about this header?
24464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24465 yes:no: )
24466 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
24467 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24468 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
24469 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
24470 ac_header_preproc=yes
24471 ;;
24472 no:yes:* )
24473 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
24474 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
24475 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
24476 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
24477 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
24478 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
24479 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
24480 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
24481 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
24482 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
24483 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
24484 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
24485
24486 ;;
24487 esac
24488 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24489 $as_echo_n "checking for netinet/in.h... " >&6; }
24490 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24491 $as_echo_n "(cached) " >&6
24492 else
24493 ac_cv_header_netinet_in_h=$ac_header_preproc
24494 fi
24495 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24496 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24497
24498 fi
24499 if test $ac_cv_header_netinet_in_h = yes; then
24500 :
24501 else
24502 ok_so_far=no
24503 fi
24504
24505
24506 fi
24507 if test $ok_so_far = yes; then
24508 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24509 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24510 $as_echo_n "checking for arpa/inet.h... " >&6; }
24511 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24512 $as_echo_n "(cached) " >&6
24513 fi
24514 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24515 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24516 else
24517 # Is the header compilable?
24518 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
24519 $as_echo_n "checking arpa/inet.h usability... " >&6; }
24520 cat >conftest.$ac_ext <<_ACEOF
24521 /* confdefs.h. */
24522 _ACEOF
24523 cat confdefs.h >>conftest.$ac_ext
24524 cat >>conftest.$ac_ext <<_ACEOF
24525 /* end confdefs.h. */
24526 $ac_includes_default
24527 #include <arpa/inet.h>
24528 _ACEOF
24529 rm -f conftest.$ac_objext
24530 if { (ac_try="$ac_compile"
24531 case "(($ac_try" in
24532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24533 *) ac_try_echo=$ac_try;;
24534 esac
24535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24536 $as_echo "$ac_try_echo") >&5
24537 (eval "$ac_compile") 2>conftest.er1
24538 ac_status=$?
24539 grep -v '^ *+' conftest.er1 >conftest.err
24540 rm -f conftest.er1
24541 cat conftest.err >&5
24542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24543 (exit $ac_status); } && {
24544 test -z "$ac_c_werror_flag" ||
24545 test ! -s conftest.err
24546 } && test -s conftest.$ac_objext; then
24547 ac_header_compiler=yes
24548 else
24549 $as_echo "$as_me: failed program was:" >&5
24550 sed 's/^/| /' conftest.$ac_ext >&5
24551
24552 ac_header_compiler=no
24553 fi
24554
24555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24556 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24557 $as_echo "$ac_header_compiler" >&6; }
24558
24559 # Is the header present?
24560 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
24561 $as_echo_n "checking arpa/inet.h presence... " >&6; }
24562 cat >conftest.$ac_ext <<_ACEOF
24563 /* confdefs.h. */
24564 _ACEOF
24565 cat confdefs.h >>conftest.$ac_ext
24566 cat >>conftest.$ac_ext <<_ACEOF
24567 /* end confdefs.h. */
24568 #include <arpa/inet.h>
24569 _ACEOF
24570 if { (ac_try="$ac_cpp conftest.$ac_ext"
24571 case "(($ac_try" in
24572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24573 *) ac_try_echo=$ac_try;;
24574 esac
24575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24576 $as_echo "$ac_try_echo") >&5
24577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24578 ac_status=$?
24579 grep -v '^ *+' conftest.er1 >conftest.err
24580 rm -f conftest.er1
24581 cat conftest.err >&5
24582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24583 (exit $ac_status); } >/dev/null && {
24584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24585 test ! -s conftest.err
24586 }; then
24587 ac_header_preproc=yes
24588 else
24589 $as_echo "$as_me: failed program was:" >&5
24590 sed 's/^/| /' conftest.$ac_ext >&5
24591
24592 ac_header_preproc=no
24593 fi
24594
24595 rm -f conftest.err conftest.$ac_ext
24596 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24597 $as_echo "$ac_header_preproc" >&6; }
24598
24599 # So? What about this header?
24600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24601 yes:no: )
24602 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
24603 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24604 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
24605 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
24606 ac_header_preproc=yes
24607 ;;
24608 no:yes:* )
24609 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
24610 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
24611 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
24612 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
24613 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
24614 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
24615 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
24616 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
24617 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
24618 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
24619 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
24620 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
24621
24622 ;;
24623 esac
24624 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24625 $as_echo_n "checking for arpa/inet.h... " >&6; }
24626 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24627 $as_echo_n "(cached) " >&6
24628 else
24629 ac_cv_header_arpa_inet_h=$ac_header_preproc
24630 fi
24631 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24632 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24633
24634 fi
24635 if test $ac_cv_header_arpa_inet_h = yes; then
24636 :
24637 else
24638 ok_so_far=no
24639 fi
24640
24641
24642 fi
24643 if test $ok_so_far = yes; then
24644
24645 cat >>confdefs.h <<\_ACEOF
24646 #define HAVE_INET_SOCKETS 1
24647 _ACEOF
24648
24649 fi
24650
24651
24652 for ac_header in sys/ioctl.h
24653 do
24654 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24656 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24657 $as_echo_n "checking for $ac_header... " >&6; }
24658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24659 $as_echo_n "(cached) " >&6
24660 fi
24661 ac_res=`eval 'as_val=${'$as_ac_Header'}
24662 $as_echo "$as_val"'`
24663 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24664 $as_echo "$ac_res" >&6; }
24665 else
24666 # Is the header compilable?
24667 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24668 $as_echo_n "checking $ac_header usability... " >&6; }
24669 cat >conftest.$ac_ext <<_ACEOF
24670 /* confdefs.h. */
24671 _ACEOF
24672 cat confdefs.h >>conftest.$ac_ext
24673 cat >>conftest.$ac_ext <<_ACEOF
24674 /* end confdefs.h. */
24675 $ac_includes_default
24676 #include <$ac_header>
24677 _ACEOF
24678 rm -f conftest.$ac_objext
24679 if { (ac_try="$ac_compile"
24680 case "(($ac_try" in
24681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24682 *) ac_try_echo=$ac_try;;
24683 esac
24684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24685 $as_echo "$ac_try_echo") >&5
24686 (eval "$ac_compile") 2>conftest.er1
24687 ac_status=$?
24688 grep -v '^ *+' conftest.er1 >conftest.err
24689 rm -f conftest.er1
24690 cat conftest.err >&5
24691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24692 (exit $ac_status); } && {
24693 test -z "$ac_c_werror_flag" ||
24694 test ! -s conftest.err
24695 } && test -s conftest.$ac_objext; then
24696 ac_header_compiler=yes
24697 else
24698 $as_echo "$as_me: failed program was:" >&5
24699 sed 's/^/| /' conftest.$ac_ext >&5
24700
24701 ac_header_compiler=no
24702 fi
24703
24704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24705 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24706 $as_echo "$ac_header_compiler" >&6; }
24707
24708 # Is the header present?
24709 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24710 $as_echo_n "checking $ac_header presence... " >&6; }
24711 cat >conftest.$ac_ext <<_ACEOF
24712 /* confdefs.h. */
24713 _ACEOF
24714 cat confdefs.h >>conftest.$ac_ext
24715 cat >>conftest.$ac_ext <<_ACEOF
24716 /* end confdefs.h. */
24717 #include <$ac_header>
24718 _ACEOF
24719 if { (ac_try="$ac_cpp conftest.$ac_ext"
24720 case "(($ac_try" in
24721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24722 *) ac_try_echo=$ac_try;;
24723 esac
24724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24725 $as_echo "$ac_try_echo") >&5
24726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24727 ac_status=$?
24728 grep -v '^ *+' conftest.er1 >conftest.err
24729 rm -f conftest.er1
24730 cat conftest.err >&5
24731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24732 (exit $ac_status); } >/dev/null && {
24733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24734 test ! -s conftest.err
24735 }; then
24736 ac_header_preproc=yes
24737 else
24738 $as_echo "$as_me: failed program was:" >&5
24739 sed 's/^/| /' conftest.$ac_ext >&5
24740
24741 ac_header_preproc=no
24742 fi
24743
24744 rm -f conftest.err conftest.$ac_ext
24745 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24746 $as_echo "$ac_header_preproc" >&6; }
24747
24748 # So? What about this header?
24749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24750 yes:no: )
24751 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24752 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24753 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24754 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24755 ac_header_preproc=yes
24756 ;;
24757 no:yes:* )
24758 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24759 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24760 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24761 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24762 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24763 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24764 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24765 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24766 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24767 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24768 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24769 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24770
24771 ;;
24772 esac
24773 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24774 $as_echo_n "checking for $ac_header... " >&6; }
24775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24776 $as_echo_n "(cached) " >&6
24777 else
24778 eval "$as_ac_Header=\$ac_header_preproc"
24779 fi
24780 ac_res=`eval 'as_val=${'$as_ac_Header'}
24781 $as_echo "$as_val"'`
24782 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24783 $as_echo "$ac_res" >&6; }
24784
24785 fi
24786 if test `eval 'as_val=${'$as_ac_Header'}
24787 $as_echo "$as_val"'` = yes; then
24788 cat >>confdefs.h <<_ACEOF
24789 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24790 _ACEOF
24791
24792 fi
24793
24794 done
24795
24796
24797 if test -f /usr/lpp/X11/bin/smt.exp; then
24798
24799 cat >>confdefs.h <<\_ACEOF
24800 #define HAVE_AIX_SMT_EXP 1
24801 _ACEOF
24802
24803 fi
24804
24805 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
24806 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
24807 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
24808 { $as_echo "$as_me:$LINENO: result: yes" >&5
24809 $as_echo "yes" >&6; }
24810
24811 cat >>confdefs.h <<\_ACEOF
24812 #define HAVE_DEV_PTMX 1
24813 _ACEOF
24814
24815 else
24816 { $as_echo "$as_me:$LINENO: result: no" >&5
24817 $as_echo "no" >&6; }
24818 fi
24819
24820 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
24821 $as_echo_n "checking for pid_t... " >&6; }
24822 if test "${ac_cv_type_pid_t+set}" = set; then
24823 $as_echo_n "(cached) " >&6
24824 else
24825 ac_cv_type_pid_t=no
24826 cat >conftest.$ac_ext <<_ACEOF
24827 /* confdefs.h. */
24828 _ACEOF
24829 cat confdefs.h >>conftest.$ac_ext
24830 cat >>conftest.$ac_ext <<_ACEOF
24831 /* end confdefs.h. */
24832 $ac_includes_default
24833 int
24834 main ()
24835 {
24836 if (sizeof (pid_t))
24837 return 0;
24838 ;
24839 return 0;
24840 }
24841 _ACEOF
24842 rm -f conftest.$ac_objext
24843 if { (ac_try="$ac_compile"
24844 case "(($ac_try" in
24845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24846 *) ac_try_echo=$ac_try;;
24847 esac
24848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24849 $as_echo "$ac_try_echo") >&5
24850 (eval "$ac_compile") 2>conftest.er1
24851 ac_status=$?
24852 grep -v '^ *+' conftest.er1 >conftest.err
24853 rm -f conftest.er1
24854 cat conftest.err >&5
24855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24856 (exit $ac_status); } && {
24857 test -z "$ac_c_werror_flag" ||
24858 test ! -s conftest.err
24859 } && test -s conftest.$ac_objext; then
24860 cat >conftest.$ac_ext <<_ACEOF
24861 /* confdefs.h. */
24862 _ACEOF
24863 cat confdefs.h >>conftest.$ac_ext
24864 cat >>conftest.$ac_ext <<_ACEOF
24865 /* end confdefs.h. */
24866 $ac_includes_default
24867 int
24868 main ()
24869 {
24870 if (sizeof ((pid_t)))
24871 return 0;
24872 ;
24873 return 0;
24874 }
24875 _ACEOF
24876 rm -f conftest.$ac_objext
24877 if { (ac_try="$ac_compile"
24878 case "(($ac_try" in
24879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24880 *) ac_try_echo=$ac_try;;
24881 esac
24882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24883 $as_echo "$ac_try_echo") >&5
24884 (eval "$ac_compile") 2>conftest.er1
24885 ac_status=$?
24886 grep -v '^ *+' conftest.er1 >conftest.err
24887 rm -f conftest.er1
24888 cat conftest.err >&5
24889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24890 (exit $ac_status); } && {
24891 test -z "$ac_c_werror_flag" ||
24892 test ! -s conftest.err
24893 } && test -s conftest.$ac_objext; then
24894 :
24895 else
24896 $as_echo "$as_me: failed program was:" >&5
24897 sed 's/^/| /' conftest.$ac_ext >&5
24898
24899 ac_cv_type_pid_t=yes
24900 fi
24901
24902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24903 else
24904 $as_echo "$as_me: failed program was:" >&5
24905 sed 's/^/| /' conftest.$ac_ext >&5
24906
24907
24908 fi
24909
24910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24911 fi
24912 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24913 $as_echo "$ac_cv_type_pid_t" >&6; }
24914 if test $ac_cv_type_pid_t = yes; then
24915 :
24916 else
24917
24918 cat >>confdefs.h <<_ACEOF
24919 #define pid_t int
24920 _ACEOF
24921
24922 fi
24923
24924
24925 for ac_header in vfork.h
24926 do
24927 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24929 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24930 $as_echo_n "checking for $ac_header... " >&6; }
24931 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24932 $as_echo_n "(cached) " >&6
24933 fi
24934 ac_res=`eval 'as_val=${'$as_ac_Header'}
24935 $as_echo "$as_val"'`
24936 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24937 $as_echo "$ac_res" >&6; }
24938 else
24939 # Is the header compilable?
24940 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24941 $as_echo_n "checking $ac_header usability... " >&6; }
24942 cat >conftest.$ac_ext <<_ACEOF
24943 /* confdefs.h. */
24944 _ACEOF
24945 cat confdefs.h >>conftest.$ac_ext
24946 cat >>conftest.$ac_ext <<_ACEOF
24947 /* end confdefs.h. */
24948 $ac_includes_default
24949 #include <$ac_header>
24950 _ACEOF
24951 rm -f conftest.$ac_objext
24952 if { (ac_try="$ac_compile"
24953 case "(($ac_try" in
24954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24955 *) ac_try_echo=$ac_try;;
24956 esac
24957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24958 $as_echo "$ac_try_echo") >&5
24959 (eval "$ac_compile") 2>conftest.er1
24960 ac_status=$?
24961 grep -v '^ *+' conftest.er1 >conftest.err
24962 rm -f conftest.er1
24963 cat conftest.err >&5
24964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24965 (exit $ac_status); } && {
24966 test -z "$ac_c_werror_flag" ||
24967 test ! -s conftest.err
24968 } && test -s conftest.$ac_objext; then
24969 ac_header_compiler=yes
24970 else
24971 $as_echo "$as_me: failed program was:" >&5
24972 sed 's/^/| /' conftest.$ac_ext >&5
24973
24974 ac_header_compiler=no
24975 fi
24976
24977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24978 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24979 $as_echo "$ac_header_compiler" >&6; }
24980
24981 # Is the header present?
24982 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24983 $as_echo_n "checking $ac_header presence... " >&6; }
24984 cat >conftest.$ac_ext <<_ACEOF
24985 /* confdefs.h. */
24986 _ACEOF
24987 cat confdefs.h >>conftest.$ac_ext
24988 cat >>conftest.$ac_ext <<_ACEOF
24989 /* end confdefs.h. */
24990 #include <$ac_header>
24991 _ACEOF
24992 if { (ac_try="$ac_cpp conftest.$ac_ext"
24993 case "(($ac_try" in
24994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24995 *) ac_try_echo=$ac_try;;
24996 esac
24997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24998 $as_echo "$ac_try_echo") >&5
24999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25000 ac_status=$?
25001 grep -v '^ *+' conftest.er1 >conftest.err
25002 rm -f conftest.er1
25003 cat conftest.err >&5
25004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005 (exit $ac_status); } >/dev/null && {
25006 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25007 test ! -s conftest.err
25008 }; then
25009 ac_header_preproc=yes
25010 else
25011 $as_echo "$as_me: failed program was:" >&5
25012 sed 's/^/| /' conftest.$ac_ext >&5
25013
25014 ac_header_preproc=no
25015 fi
25016
25017 rm -f conftest.err conftest.$ac_ext
25018 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25019 $as_echo "$ac_header_preproc" >&6; }
25020
25021 # So? What about this header?
25022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25023 yes:no: )
25024 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25025 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25026 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25027 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25028 ac_header_preproc=yes
25029 ;;
25030 no:yes:* )
25031 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25032 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25033 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25034 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25035 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25036 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25037 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25038 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25039 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25040 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25041 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25042 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25043
25044 ;;
25045 esac
25046 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25047 $as_echo_n "checking for $ac_header... " >&6; }
25048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25049 $as_echo_n "(cached) " >&6
25050 else
25051 eval "$as_ac_Header=\$ac_header_preproc"
25052 fi
25053 ac_res=`eval 'as_val=${'$as_ac_Header'}
25054 $as_echo "$as_val"'`
25055 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25056 $as_echo "$ac_res" >&6; }
25057
25058 fi
25059 if test `eval 'as_val=${'$as_ac_Header'}
25060 $as_echo "$as_val"'` = yes; then
25061 cat >>confdefs.h <<_ACEOF
25062 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25063 _ACEOF
25064
25065 fi
25066
25067 done
25068
25069
25070
25071 for ac_func in fork vfork
25072 do
25073 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25074 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25075 $as_echo_n "checking for $ac_func... " >&6; }
25076 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25077 $as_echo_n "(cached) " >&6
25078 else
25079 cat >conftest.$ac_ext <<_ACEOF
25080 /* confdefs.h. */
25081 _ACEOF
25082 cat confdefs.h >>conftest.$ac_ext
25083 cat >>conftest.$ac_ext <<_ACEOF
25084 /* end confdefs.h. */
25085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25087 #define $ac_func innocuous_$ac_func
25088
25089 /* System header to define __stub macros and hopefully few prototypes,
25090 which can conflict with char $ac_func (); below.
25091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25092 <limits.h> exists even on freestanding compilers. */
25093
25094 #ifdef __STDC__
25095 # include <limits.h>
25096 #else
25097 # include <assert.h>
25098 #endif
25099
25100 #undef $ac_func
25101
25102 /* Override any GCC internal prototype to avoid an error.
25103 Use char because int might match the return type of a GCC
25104 builtin and then its argument prototype would still apply. */
25105 #ifdef __cplusplus
25106 extern "C"
25107 #endif
25108 char $ac_func ();
25109 /* The GNU C library defines this for functions which it implements
25110 to always fail with ENOSYS. Some functions are actually named
25111 something starting with __ and the normal name is an alias. */
25112 #if defined __stub_$ac_func || defined __stub___$ac_func
25113 choke me
25114 #endif
25115
25116 int
25117 main ()
25118 {
25119 return $ac_func ();
25120 ;
25121 return 0;
25122 }
25123 _ACEOF
25124 rm -f conftest.$ac_objext conftest$ac_exeext
25125 if { (ac_try="$ac_link"
25126 case "(($ac_try" in
25127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25128 *) ac_try_echo=$ac_try;;
25129 esac
25130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25131 $as_echo "$ac_try_echo") >&5
25132 (eval "$ac_link") 2>conftest.er1
25133 ac_status=$?
25134 grep -v '^ *+' conftest.er1 >conftest.err
25135 rm -f conftest.er1
25136 cat conftest.err >&5
25137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25138 (exit $ac_status); } && {
25139 test -z "$ac_c_werror_flag" ||
25140 test ! -s conftest.err
25141 } && test -s conftest$ac_exeext && {
25142 test "$cross_compiling" = yes ||
25143 $as_test_x conftest$ac_exeext
25144 }; then
25145 eval "$as_ac_var=yes"
25146 else
25147 $as_echo "$as_me: failed program was:" >&5
25148 sed 's/^/| /' conftest.$ac_ext >&5
25149
25150 eval "$as_ac_var=no"
25151 fi
25152
25153 rm -rf conftest.dSYM
25154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25155 conftest$ac_exeext conftest.$ac_ext
25156 fi
25157 ac_res=`eval 'as_val=${'$as_ac_var'}
25158 $as_echo "$as_val"'`
25159 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25160 $as_echo "$ac_res" >&6; }
25161 if test `eval 'as_val=${'$as_ac_var'}
25162 $as_echo "$as_val"'` = yes; then
25163 cat >>confdefs.h <<_ACEOF
25164 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25165 _ACEOF
25166
25167 fi
25168 done
25169
25170 if test "x$ac_cv_func_fork" = xyes; then
25171 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
25172 $as_echo_n "checking for working fork... " >&6; }
25173 if test "${ac_cv_func_fork_works+set}" = set; then
25174 $as_echo_n "(cached) " >&6
25175 else
25176 if test "$cross_compiling" = yes; then
25177 ac_cv_func_fork_works=cross
25178 else
25179 cat >conftest.$ac_ext <<_ACEOF
25180 /* confdefs.h. */
25181 _ACEOF
25182 cat confdefs.h >>conftest.$ac_ext
25183 cat >>conftest.$ac_ext <<_ACEOF
25184 /* end confdefs.h. */
25185 $ac_includes_default
25186 int
25187 main ()
25188 {
25189
25190 /* By Ruediger Kuhlmann. */
25191 return fork () < 0;
25192
25193 ;
25194 return 0;
25195 }
25196 _ACEOF
25197 rm -f conftest$ac_exeext
25198 if { (ac_try="$ac_link"
25199 case "(($ac_try" in
25200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25201 *) ac_try_echo=$ac_try;;
25202 esac
25203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25204 $as_echo "$ac_try_echo") >&5
25205 (eval "$ac_link") 2>&5
25206 ac_status=$?
25207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25208 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25209 { (case "(($ac_try" in
25210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25211 *) ac_try_echo=$ac_try;;
25212 esac
25213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25214 $as_echo "$ac_try_echo") >&5
25215 (eval "$ac_try") 2>&5
25216 ac_status=$?
25217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25218 (exit $ac_status); }; }; then
25219 ac_cv_func_fork_works=yes
25220 else
25221 $as_echo "$as_me: program exited with status $ac_status" >&5
25222 $as_echo "$as_me: failed program was:" >&5
25223 sed 's/^/| /' conftest.$ac_ext >&5
25224
25225 ( exit $ac_status )
25226 ac_cv_func_fork_works=no
25227 fi
25228 rm -rf conftest.dSYM
25229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25230 fi
25231
25232
25233 fi
25234 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25235 $as_echo "$ac_cv_func_fork_works" >&6; }
25236
25237 else
25238 ac_cv_func_fork_works=$ac_cv_func_fork
25239 fi
25240 if test "x$ac_cv_func_fork_works" = xcross; then
25241 case $host in
25242 *-*-amigaos* | *-*-msdosdjgpp*)
25243 # Override, as these systems have only a dummy fork() stub
25244 ac_cv_func_fork_works=no
25245 ;;
25246 *)
25247 ac_cv_func_fork_works=yes
25248 ;;
25249 esac
25250 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25251 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25252 fi
25253 ac_cv_func_vfork_works=$ac_cv_func_vfork
25254 if test "x$ac_cv_func_vfork" = xyes; then
25255 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
25256 $as_echo_n "checking for working vfork... " >&6; }
25257 if test "${ac_cv_func_vfork_works+set}" = set; then
25258 $as_echo_n "(cached) " >&6
25259 else
25260 if test "$cross_compiling" = yes; then
25261 ac_cv_func_vfork_works=cross
25262 else
25263 cat >conftest.$ac_ext <<_ACEOF
25264 /* confdefs.h. */
25265 _ACEOF
25266 cat confdefs.h >>conftest.$ac_ext
25267 cat >>conftest.$ac_ext <<_ACEOF
25268 /* end confdefs.h. */
25269 /* Thanks to Paul Eggert for this test. */
25270 $ac_includes_default
25271 #include <sys/wait.h>
25272 #ifdef HAVE_VFORK_H
25273 # include <vfork.h>
25274 #endif
25275 /* On some sparc systems, changes by the child to local and incoming
25276 argument registers are propagated back to the parent. The compiler
25277 is told about this with #include <vfork.h>, but some compilers
25278 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25279 static variable whose address is put into a register that is
25280 clobbered by the vfork. */
25281 static void
25282 #ifdef __cplusplus
25283 sparc_address_test (int arg)
25284 # else
25285 sparc_address_test (arg) int arg;
25286 #endif
25287 {
25288 static pid_t child;
25289 if (!child) {
25290 child = vfork ();
25291 if (child < 0) {
25292 perror ("vfork");
25293 _exit(2);
25294 }
25295 if (!child) {
25296 arg = getpid();
25297 write(-1, "", 0);
25298 _exit (arg);
25299 }
25300 }
25301 }
25302
25303 int
25304 main ()
25305 {
25306 pid_t parent = getpid ();
25307 pid_t child;
25308
25309 sparc_address_test (0);
25310
25311 child = vfork ();
25312
25313 if (child == 0) {
25314 /* Here is another test for sparc vfork register problems. This
25315 test uses lots of local variables, at least as many local
25316 variables as main has allocated so far including compiler
25317 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25318 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25319 reuse the register of parent for one of the local variables,
25320 since it will think that parent can't possibly be used any more
25321 in this routine. Assigning to the local variable will thus
25322 munge parent in the parent process. */
25323 pid_t
25324 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25325 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25326 /* Convince the compiler that p..p7 are live; otherwise, it might
25327 use the same hardware register for all 8 local variables. */
25328 if (p != p1 || p != p2 || p != p3 || p != p4
25329 || p != p5 || p != p6 || p != p7)
25330 _exit(1);
25331
25332 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25333 from child file descriptors. If the child closes a descriptor
25334 before it execs or exits, this munges the parent's descriptor
25335 as well. Test for this by closing stdout in the child. */
25336 _exit(close(fileno(stdout)) != 0);
25337 } else {
25338 int status;
25339 struct stat st;
25340
25341 while (wait(&status) != child)
25342 ;
25343 return (
25344 /* Was there some problem with vforking? */
25345 child < 0
25346
25347 /* Did the child fail? (This shouldn't happen.) */
25348 || status
25349
25350 /* Did the vfork/compiler bug occur? */
25351 || parent != getpid()
25352
25353 /* Did the file descriptor bug occur? */
25354 || fstat(fileno(stdout), &st) != 0
25355 );
25356 }
25357 }
25358 _ACEOF
25359 rm -f conftest$ac_exeext
25360 if { (ac_try="$ac_link"
25361 case "(($ac_try" in
25362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25363 *) ac_try_echo=$ac_try;;
25364 esac
25365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25366 $as_echo "$ac_try_echo") >&5
25367 (eval "$ac_link") 2>&5
25368 ac_status=$?
25369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25370 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25371 { (case "(($ac_try" in
25372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25373 *) ac_try_echo=$ac_try;;
25374 esac
25375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25376 $as_echo "$ac_try_echo") >&5
25377 (eval "$ac_try") 2>&5
25378 ac_status=$?
25379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25380 (exit $ac_status); }; }; then
25381 ac_cv_func_vfork_works=yes
25382 else
25383 $as_echo "$as_me: program exited with status $ac_status" >&5
25384 $as_echo "$as_me: failed program was:" >&5
25385 sed 's/^/| /' conftest.$ac_ext >&5
25386
25387 ( exit $ac_status )
25388 ac_cv_func_vfork_works=no
25389 fi
25390 rm -rf conftest.dSYM
25391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25392 fi
25393
25394
25395 fi
25396 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25397 $as_echo "$ac_cv_func_vfork_works" >&6; }
25398
25399 fi;
25400 if test "x$ac_cv_func_fork_works" = xcross; then
25401 ac_cv_func_vfork_works=$ac_cv_func_vfork
25402 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25403 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25404 fi
25405
25406 if test "x$ac_cv_func_vfork_works" = xyes; then
25407
25408 cat >>confdefs.h <<\_ACEOF
25409 #define HAVE_WORKING_VFORK 1
25410 _ACEOF
25411
25412 else
25413
25414 cat >>confdefs.h <<\_ACEOF
25415 #define vfork fork
25416 _ACEOF
25417
25418 fi
25419 if test "x$ac_cv_func_fork_works" = xyes; then
25420
25421 cat >>confdefs.h <<\_ACEOF
25422 #define HAVE_WORKING_FORK 1
25423 _ACEOF
25424
25425 fi
25426
25427
25428 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
25429 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
25430 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25431 $as_echo_n "(cached) " >&6
25432 else
25433 cat >conftest.$ac_ext <<_ACEOF
25434 /* confdefs.h. */
25435 _ACEOF
25436 cat confdefs.h >>conftest.$ac_ext
25437 cat >>conftest.$ac_ext <<_ACEOF
25438 /* end confdefs.h. */
25439 #include <langinfo.h>
25440 int
25441 main ()
25442 {
25443 char* cs = nl_langinfo(CODESET);
25444 ;
25445 return 0;
25446 }
25447 _ACEOF
25448 rm -f conftest.$ac_objext conftest$ac_exeext
25449 if { (ac_try="$ac_link"
25450 case "(($ac_try" in
25451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25452 *) ac_try_echo=$ac_try;;
25453 esac
25454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25455 $as_echo "$ac_try_echo") >&5
25456 (eval "$ac_link") 2>conftest.er1
25457 ac_status=$?
25458 grep -v '^ *+' conftest.er1 >conftest.err
25459 rm -f conftest.er1
25460 cat conftest.err >&5
25461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25462 (exit $ac_status); } && {
25463 test -z "$ac_c_werror_flag" ||
25464 test ! -s conftest.err
25465 } && test -s conftest$ac_exeext && {
25466 test "$cross_compiling" = yes ||
25467 $as_test_x conftest$ac_exeext
25468 }; then
25469 emacs_cv_langinfo_codeset=yes
25470 else
25471 $as_echo "$as_me: failed program was:" >&5
25472 sed 's/^/| /' conftest.$ac_ext >&5
25473
25474 emacs_cv_langinfo_codeset=no
25475 fi
25476
25477 rm -rf conftest.dSYM
25478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25479 conftest$ac_exeext conftest.$ac_ext
25480
25481 fi
25482 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
25483 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25484 if test $emacs_cv_langinfo_codeset = yes; then
25485
25486 cat >>confdefs.h <<\_ACEOF
25487 #define HAVE_LANGINFO_CODESET 1
25488 _ACEOF
25489
25490 fi
25491
25492 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
25493 $as_echo_n "checking for size_t... " >&6; }
25494 if test "${ac_cv_type_size_t+set}" = set; then
25495 $as_echo_n "(cached) " >&6
25496 else
25497 ac_cv_type_size_t=no
25498 cat >conftest.$ac_ext <<_ACEOF
25499 /* confdefs.h. */
25500 _ACEOF
25501 cat confdefs.h >>conftest.$ac_ext
25502 cat >>conftest.$ac_ext <<_ACEOF
25503 /* end confdefs.h. */
25504 $ac_includes_default
25505 int
25506 main ()
25507 {
25508 if (sizeof (size_t))
25509 return 0;
25510 ;
25511 return 0;
25512 }
25513 _ACEOF
25514 rm -f conftest.$ac_objext
25515 if { (ac_try="$ac_compile"
25516 case "(($ac_try" in
25517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25518 *) ac_try_echo=$ac_try;;
25519 esac
25520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25521 $as_echo "$ac_try_echo") >&5
25522 (eval "$ac_compile") 2>conftest.er1
25523 ac_status=$?
25524 grep -v '^ *+' conftest.er1 >conftest.err
25525 rm -f conftest.er1
25526 cat conftest.err >&5
25527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25528 (exit $ac_status); } && {
25529 test -z "$ac_c_werror_flag" ||
25530 test ! -s conftest.err
25531 } && test -s conftest.$ac_objext; then
25532 cat >conftest.$ac_ext <<_ACEOF
25533 /* confdefs.h. */
25534 _ACEOF
25535 cat confdefs.h >>conftest.$ac_ext
25536 cat >>conftest.$ac_ext <<_ACEOF
25537 /* end confdefs.h. */
25538 $ac_includes_default
25539 int
25540 main ()
25541 {
25542 if (sizeof ((size_t)))
25543 return 0;
25544 ;
25545 return 0;
25546 }
25547 _ACEOF
25548 rm -f conftest.$ac_objext
25549 if { (ac_try="$ac_compile"
25550 case "(($ac_try" in
25551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25552 *) ac_try_echo=$ac_try;;
25553 esac
25554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25555 $as_echo "$ac_try_echo") >&5
25556 (eval "$ac_compile") 2>conftest.er1
25557 ac_status=$?
25558 grep -v '^ *+' conftest.er1 >conftest.err
25559 rm -f conftest.er1
25560 cat conftest.err >&5
25561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25562 (exit $ac_status); } && {
25563 test -z "$ac_c_werror_flag" ||
25564 test ! -s conftest.err
25565 } && test -s conftest.$ac_objext; then
25566 :
25567 else
25568 $as_echo "$as_me: failed program was:" >&5
25569 sed 's/^/| /' conftest.$ac_ext >&5
25570
25571 ac_cv_type_size_t=yes
25572 fi
25573
25574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25575 else
25576 $as_echo "$as_me: failed program was:" >&5
25577 sed 's/^/| /' conftest.$ac_ext >&5
25578
25579
25580 fi
25581
25582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25583 fi
25584 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25585 $as_echo "$ac_cv_type_size_t" >&6; }
25586 if test $ac_cv_type_size_t = yes; then
25587
25588 cat >>confdefs.h <<_ACEOF
25589 #define HAVE_SIZE_T 1
25590 _ACEOF
25591
25592
25593 fi
25594
25595
25596 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
25597 $as_echo_n "checking for mbstate_t... " >&6; }
25598 if test "${ac_cv_type_mbstate_t+set}" = set; then
25599 $as_echo_n "(cached) " >&6
25600 else
25601 cat >conftest.$ac_ext <<_ACEOF
25602 /* confdefs.h. */
25603 _ACEOF
25604 cat confdefs.h >>conftest.$ac_ext
25605 cat >>conftest.$ac_ext <<_ACEOF
25606 /* end confdefs.h. */
25607 $ac_includes_default
25608 # include <wchar.h>
25609 int
25610 main ()
25611 {
25612 mbstate_t x; return sizeof x;
25613 ;
25614 return 0;
25615 }
25616 _ACEOF
25617 rm -f conftest.$ac_objext
25618 if { (ac_try="$ac_compile"
25619 case "(($ac_try" in
25620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25621 *) ac_try_echo=$ac_try;;
25622 esac
25623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25624 $as_echo "$ac_try_echo") >&5
25625 (eval "$ac_compile") 2>conftest.er1
25626 ac_status=$?
25627 grep -v '^ *+' conftest.er1 >conftest.err
25628 rm -f conftest.er1
25629 cat conftest.err >&5
25630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25631 (exit $ac_status); } && {
25632 test -z "$ac_c_werror_flag" ||
25633 test ! -s conftest.err
25634 } && test -s conftest.$ac_objext; then
25635 ac_cv_type_mbstate_t=yes
25636 else
25637 $as_echo "$as_me: failed program was:" >&5
25638 sed 's/^/| /' conftest.$ac_ext >&5
25639
25640 ac_cv_type_mbstate_t=no
25641 fi
25642
25643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25644 fi
25645 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
25646 $as_echo "$ac_cv_type_mbstate_t" >&6; }
25647 if test $ac_cv_type_mbstate_t = yes; then
25648
25649 cat >>confdefs.h <<\_ACEOF
25650 #define HAVE_MBSTATE_T 1
25651 _ACEOF
25652
25653 else
25654
25655 cat >>confdefs.h <<\_ACEOF
25656 #define mbstate_t int
25657 _ACEOF
25658
25659 fi
25660
25661 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
25662 $as_echo_n "checking for C restrict keyword... " >&6; }
25663 if test "${emacs_cv_c_restrict+set}" = set; then
25664 $as_echo_n "(cached) " >&6
25665 else
25666 cat >conftest.$ac_ext <<_ACEOF
25667 /* confdefs.h. */
25668 _ACEOF
25669 cat confdefs.h >>conftest.$ac_ext
25670 cat >>conftest.$ac_ext <<_ACEOF
25671 /* end confdefs.h. */
25672 void fred (int *restrict x);
25673 int
25674 main ()
25675 {
25676
25677 ;
25678 return 0;
25679 }
25680 _ACEOF
25681 rm -f conftest.$ac_objext
25682 if { (ac_try="$ac_compile"
25683 case "(($ac_try" in
25684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25685 *) ac_try_echo=$ac_try;;
25686 esac
25687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25688 $as_echo "$ac_try_echo") >&5
25689 (eval "$ac_compile") 2>conftest.er1
25690 ac_status=$?
25691 grep -v '^ *+' conftest.er1 >conftest.err
25692 rm -f conftest.er1
25693 cat conftest.err >&5
25694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25695 (exit $ac_status); } && {
25696 test -z "$ac_c_werror_flag" ||
25697 test ! -s conftest.err
25698 } && test -s conftest.$ac_objext; then
25699 emacs_cv_c_restrict=yes
25700 else
25701 $as_echo "$as_me: failed program was:" >&5
25702 sed 's/^/| /' conftest.$ac_ext >&5
25703
25704 cat >conftest.$ac_ext <<_ACEOF
25705 /* confdefs.h. */
25706 _ACEOF
25707 cat confdefs.h >>conftest.$ac_ext
25708 cat >>conftest.$ac_ext <<_ACEOF
25709 /* end confdefs.h. */
25710 void fred (int *__restrict x);
25711 int
25712 main ()
25713 {
25714
25715 ;
25716 return 0;
25717 }
25718 _ACEOF
25719 rm -f conftest.$ac_objext
25720 if { (ac_try="$ac_compile"
25721 case "(($ac_try" in
25722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25723 *) ac_try_echo=$ac_try;;
25724 esac
25725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25726 $as_echo "$ac_try_echo") >&5
25727 (eval "$ac_compile") 2>conftest.er1
25728 ac_status=$?
25729 grep -v '^ *+' conftest.er1 >conftest.err
25730 rm -f conftest.er1
25731 cat conftest.err >&5
25732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25733 (exit $ac_status); } && {
25734 test -z "$ac_c_werror_flag" ||
25735 test ! -s conftest.err
25736 } && test -s conftest.$ac_objext; then
25737 emacs_cv_c_restrict=__restrict
25738 else
25739 $as_echo "$as_me: failed program was:" >&5
25740 sed 's/^/| /' conftest.$ac_ext >&5
25741
25742 emacs_cv_c_restrict=no
25743 fi
25744
25745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25746 fi
25747
25748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25749 fi
25750 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
25751 $as_echo "$emacs_cv_c_restrict" >&6; }
25752 case "$emacs_cv_c_restrict" in
25753 yes) emacs_restrict=restrict;;
25754 no) emacs_restrict="";;
25755 *) emacs_restrict="$emacs_cv_c_restrict";;
25756 esac
25757 if test "$emacs_restrict" != __restrict; then
25758
25759 cat >>confdefs.h <<_ACEOF
25760 #define __restrict $emacs_restrict
25761 _ACEOF
25762
25763 fi
25764
25765 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
25766 $as_echo_n "checking for C restricted array declarations... " >&6; }
25767 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25768 $as_echo_n "(cached) " >&6
25769 else
25770 cat >conftest.$ac_ext <<_ACEOF
25771 /* confdefs.h. */
25772 _ACEOF
25773 cat confdefs.h >>conftest.$ac_ext
25774 cat >>conftest.$ac_ext <<_ACEOF
25775 /* end confdefs.h. */
25776 void fred (int x[__restrict]);
25777 int
25778 main ()
25779 {
25780
25781 ;
25782 return 0;
25783 }
25784 _ACEOF
25785 rm -f conftest.$ac_objext
25786 if { (ac_try="$ac_compile"
25787 case "(($ac_try" in
25788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25789 *) ac_try_echo=$ac_try;;
25790 esac
25791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25792 $as_echo "$ac_try_echo") >&5
25793 (eval "$ac_compile") 2>conftest.er1
25794 ac_status=$?
25795 grep -v '^ *+' conftest.er1 >conftest.err
25796 rm -f conftest.er1
25797 cat conftest.err >&5
25798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25799 (exit $ac_status); } && {
25800 test -z "$ac_c_werror_flag" ||
25801 test ! -s conftest.err
25802 } && test -s conftest.$ac_objext; then
25803 emacs_cv_c_restrict_arr=yes
25804 else
25805 $as_echo "$as_me: failed program was:" >&5
25806 sed 's/^/| /' conftest.$ac_ext >&5
25807
25808 emacs_cv_c_restrict_arr=no
25809 fi
25810
25811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25812 fi
25813 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
25814 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25815 if test "$emacs_cv_c_restrict_arr" = yes; then
25816
25817 cat >>confdefs.h <<\_ACEOF
25818 #define __restrict_arr __restrict
25819 _ACEOF
25820
25821 fi
25822
25823
25824
25825 # Set up the CFLAGS for real compilation, so we can substitute it.
25826 CFLAGS="$REAL_CFLAGS"
25827 CPPFLAGS="$REAL_CPPFLAGS"
25828
25829 #### Find out which version of Emacs this is.
25830 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25831 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
25832 if test x"${version}" = x; then
25833 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
25834 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
25835 { (exit 1); exit 1; }; }
25836 fi
25837 if test x"${version}" != x"$PACKAGE_VERSION"; then
25838 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
25839 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
25840 fi
25841
25842 ### Specify what sort of things we'll be editing into Makefile and config.h.
25843 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25844
25845
25846
25847
25848
25849
25850
25851
25852
25853
25854
25855
25856
25857
25858
25859
25860
25861
25862
25863
25864
25865
25866
25867
25868
25869
25870
25871
25872
25873
25874
25875
25876
25877
25878
25879
25880
25881
25882
25883
25884
25885
25886
25887
25888 cat >>confdefs.h <<_ACEOF
25889 #define EMACS_CONFIGURATION "${canonical}"
25890 _ACEOF
25891
25892
25893 cat >>confdefs.h <<_ACEOF
25894 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
25895 _ACEOF
25896
25897
25898 cat >>confdefs.h <<_ACEOF
25899 #define config_machfile "${machfile}"
25900 _ACEOF
25901
25902
25903 cat >>confdefs.h <<_ACEOF
25904 #define config_opsysfile "${opsysfile}"
25905 _ACEOF
25906
25907
25908 cat >>confdefs.h <<_ACEOF
25909 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
25910 _ACEOF
25911
25912
25913 cat >>confdefs.h <<_ACEOF
25914 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
25915 _ACEOF
25916
25917
25918 cat >>confdefs.h <<_ACEOF
25919 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
25920 _ACEOF
25921
25922
25923 cat >>confdefs.h <<_ACEOF
25924 #define UNEXEC_SRC ${UNEXEC_SRC}
25925 _ACEOF
25926
25927
25928 XMENU_OBJ=
25929 XOBJ=
25930 if test "${HAVE_X_WINDOWS}" = "yes" ; then
25931
25932 cat >>confdefs.h <<\_ACEOF
25933 #define HAVE_X_WINDOWS 1
25934 _ACEOF
25935
25936 XMENU_OBJ=xmenu.o
25937 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
25938 fi
25939
25940
25941
25942 if test "${USE_X_TOOLKIT}" != "none" ; then
25943
25944 cat >>confdefs.h <<\_ACEOF
25945 #define USE_X_TOOLKIT 1
25946 _ACEOF
25947
25948 if test "${USE_X_TOOLKIT}" = "LUCID"; then
25949
25950 cat >>confdefs.h <<\_ACEOF
25951 #define USE_LUCID 1
25952 _ACEOF
25953
25954 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
25955
25956 cat >>confdefs.h <<\_ACEOF
25957 #define USE_MOTIF 1
25958 _ACEOF
25959
25960 fi
25961 fi
25962 if test "${HAVE_X11}" = "yes" ; then
25963
25964 cat >>confdefs.h <<\_ACEOF
25965 #define HAVE_X11 1
25966 _ACEOF
25967
25968 fi
25969 if test "${HAVE_MENUS}" = "yes" ; then
25970
25971 cat >>confdefs.h <<\_ACEOF
25972 #define HAVE_MENUS 1
25973 _ACEOF
25974
25975 fi
25976 if test "${GNU_MALLOC}" = "yes" ; then
25977
25978 cat >>confdefs.h <<\_ACEOF
25979 #define GNU_MALLOC 1
25980 _ACEOF
25981
25982 fi
25983 if test "${REL_ALLOC}" = "yes" ; then
25984
25985 cat >>confdefs.h <<\_ACEOF
25986 #define REL_ALLOC 1
25987 _ACEOF
25988
25989 fi
25990
25991
25992
25993
25994
25995
25996 #### Report on what we decided to do.
25997 #### Report GTK as a toolkit, even if it doesn't use Xt.
25998 #### It makes printing result more understandable as using GTK sets
25999 #### toolkit_scroll_bars to yes by default.
26000 if test "${HAVE_GTK}" = "yes"; then
26001 USE_X_TOOLKIT=GTK
26002 fi
26003
26004 echo "
26005 Configured for \`${canonical}'.
26006
26007 Where should the build process find the source code? ${srcdir}
26008 What operating system and machine description files should Emacs use?
26009 \`${opsysfile}' and \`${machfile}'
26010 What compiler should emacs be built with? ${CC} ${CFLAGS}
26011 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
26012 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
26013 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
26014 What window system should Emacs use? ${window_system}
26015 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
26016
26017 if test -n "${x_includes}"; then
26018 echo " Where do we find X Windows header files? ${x_includes}"
26019 else
26020 echo " Where do we find X Windows header files? Standard dirs"
26021 fi
26022 if test -n "${x_libraries}"; then
26023 echo " Where do we find X Windows libraries? ${x_libraries}"
26024 else
26025 echo " Where do we find X Windows libraries? Standard dirs"
26026 fi
26027
26028 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
26029 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
26030 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
26031 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
26032 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
26033 echo " Does Emacs use -lpng? ${HAVE_PNG}"
26034 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
26035 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
26036 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
26037 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
26038 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
26039
26040 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
26041 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
26042 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
26043 echo " Does Emacs use -lxft? ${HAVE_XFT}"
26044
26045 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26046 echo
26047
26048 if test $USE_XASSERTS = yes; then
26049 echo " Compiling with asserts turned on."
26050 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
26051 fi
26052
26053 echo
26054
26055 if test "$HAVE_NS" = "yes"; then
26056 echo
26057 echo "You must run \"make install\" in order to test the built application.
26058 The installed application will go to nextstep/Emacs.app and can be
26059 run or moved from there."
26060 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26061 echo "The application will be fully self-contained."
26062 else
26063 echo "The lisp resources for the application will be installed under ${prefix}.
26064 You may need to run \"make install\" with sudo. The application will fail
26065 to run if these resources are not installed."
26066 fi
26067 echo
26068 fi
26069
26070 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
26071 echo "D-Bus integration has been tested for GNU/Linux only."
26072 echo
26073 fi
26074
26075
26076 # Remove any trailing slashes in these variables.
26077 test "${prefix}" != NONE &&
26078 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26079 test "${exec_prefix}" != NONE &&
26080 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26081
26082 # Now get this: Some word that is part of the ${srcdir} directory name
26083 # or the ${configuration} value might, just might, happen to be an
26084 # identifier like `sun4' or `i386' or something, and be predefined by
26085 # the C preprocessor to some helpful value like 1, or maybe the empty
26086 # string. Needless to say consequent macro substitutions are less
26087 # than conducive to the makefile finding the correct directory.
26088 cpp_undefs="`echo $srcdir $configuration $canonical unix |
26089 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
26090 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
26091
26092 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
26093 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
26094 ## from Makefile.c can correctly provide the arg `-traditional' to the
26095 ## C preprocessor.
26096
26097 cat >conftest.$ac_ext <<_ACEOF
26098 /* confdefs.h. */
26099 _ACEOF
26100 cat confdefs.h >>conftest.$ac_ext
26101 cat >>conftest.$ac_ext <<_ACEOF
26102 /* end confdefs.h. */
26103 yes..yes
26104 _ACEOF
26105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26106 $EGREP "yes..yes" >/dev/null 2>&1; then
26107 CPP_NEED_TRADITIONAL=no
26108 else
26109 CPP_NEED_TRADITIONAL=yes
26110 fi
26111 rm -f conftest*
26112
26113
26114 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"
26115
26116 ac_config_commands="$ac_config_commands default"
26117
26118 cat >confcache <<\_ACEOF
26119 # This file is a shell script that caches the results of configure
26120 # tests run on this system so they can be shared between configure
26121 # scripts and configure runs, see configure's option --config-cache.
26122 # It is not useful on other systems. If it contains results you don't
26123 # want to keep, you may remove or edit it.
26124 #
26125 # config.status only pays attention to the cache file if you give it
26126 # the --recheck option to rerun configure.
26127 #
26128 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26129 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26130 # following values.
26131
26132 _ACEOF
26133
26134 # The following way of writing the cache mishandles newlines in values,
26135 # but we know of no workaround that is simple, portable, and efficient.
26136 # So, we kill variables containing newlines.
26137 # Ultrix sh set writes to stderr and can't be redirected directly,
26138 # and sets the high bit in the cache file unless we assign to the vars.
26139 (
26140 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26141 eval ac_val=\$$ac_var
26142 case $ac_val in #(
26143 *${as_nl}*)
26144 case $ac_var in #(
26145 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26146 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26147 esac
26148 case $ac_var in #(
26149 _ | IFS | as_nl) ;; #(
26150 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26151 *) $as_unset $ac_var ;;
26152 esac ;;
26153 esac
26154 done
26155
26156 (set) 2>&1 |
26157 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26158 *${as_nl}ac_space=\ *)
26159 # `set' does not quote correctly, so add quotes (double-quote
26160 # substitution turns \\\\ into \\, and sed turns \\ into \).
26161 sed -n \
26162 "s/'/'\\\\''/g;
26163 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26164 ;; #(
26165 *)
26166 # `set' quotes correctly as required by POSIX, so do not add quotes.
26167 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26168 ;;
26169 esac |
26170 sort
26171 ) |
26172 sed '
26173 /^ac_cv_env_/b end
26174 t clear
26175 :clear
26176 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26177 t end
26178 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26179 :end' >>confcache
26180 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26181 if test -w "$cache_file"; then
26182 test "x$cache_file" != "x/dev/null" &&
26183 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26184 $as_echo "$as_me: updating cache $cache_file" >&6;}
26185 cat confcache >$cache_file
26186 else
26187 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26188 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26189 fi
26190 fi
26191 rm -f confcache
26192
26193 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26194 # Let make expand exec_prefix.
26195 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26196
26197 DEFS=-DHAVE_CONFIG_H
26198
26199 ac_libobjs=
26200 ac_ltlibobjs=
26201 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26202 # 1. Remove the extension, and $U if already installed.
26203 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26204 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26205 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26206 # will be set to the directory where LIBOBJS objects are built.
26207 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26208 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26209 done
26210 LIBOBJS=$ac_libobjs
26211
26212 LTLIBOBJS=$ac_ltlibobjs
26213
26214
26215
26216 : ${CONFIG_STATUS=./config.status}
26217 ac_write_fail=0
26218 ac_clean_files_save=$ac_clean_files
26219 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26220 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26221 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26222 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26223 #! $SHELL
26224 # Generated by $as_me.
26225 # Run this file to recreate the current configuration.
26226 # Compiler output produced by configure, useful for debugging
26227 # configure, is in config.log if it exists.
26228
26229 debug=false
26230 ac_cs_recheck=false
26231 ac_cs_silent=false
26232 SHELL=\${CONFIG_SHELL-$SHELL}
26233 _ACEOF
26234
26235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26236 ## --------------------- ##
26237 ## M4sh Initialization. ##
26238 ## --------------------- ##
26239
26240 # Be more Bourne compatible
26241 DUALCASE=1; export DUALCASE # for MKS sh
26242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26243 emulate sh
26244 NULLCMD=:
26245 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26246 # is contrary to our usage. Disable this feature.
26247 alias -g '${1+"$@"}'='"$@"'
26248 setopt NO_GLOB_SUBST
26249 else
26250 case `(set -o) 2>/dev/null` in
26251 *posix*) set -o posix ;;
26252 esac
26253
26254 fi
26255
26256
26257
26258
26259 # PATH needs CR
26260 # Avoid depending upon Character Ranges.
26261 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26262 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26263 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26264 as_cr_digits='0123456789'
26265 as_cr_alnum=$as_cr_Letters$as_cr_digits
26266
26267 as_nl='
26268 '
26269 export as_nl
26270 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26271 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26272 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26273 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26274 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26275 as_echo='printf %s\n'
26276 as_echo_n='printf %s'
26277 else
26278 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26279 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26280 as_echo_n='/usr/ucb/echo -n'
26281 else
26282 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26283 as_echo_n_body='eval
26284 arg=$1;
26285 case $arg in
26286 *"$as_nl"*)
26287 expr "X$arg" : "X\\(.*\\)$as_nl";
26288 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26289 esac;
26290 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26291 '
26292 export as_echo_n_body
26293 as_echo_n='sh -c $as_echo_n_body as_echo'
26294 fi
26295 export as_echo_body
26296 as_echo='sh -c $as_echo_body as_echo'
26297 fi
26298
26299 # The user is always right.
26300 if test "${PATH_SEPARATOR+set}" != set; then
26301 PATH_SEPARATOR=:
26302 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26303 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26304 PATH_SEPARATOR=';'
26305 }
26306 fi
26307
26308 # Support unset when possible.
26309 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26310 as_unset=unset
26311 else
26312 as_unset=false
26313 fi
26314
26315
26316 # IFS
26317 # We need space, tab and new line, in precisely that order. Quoting is
26318 # there to prevent editors from complaining about space-tab.
26319 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26320 # splitting by setting IFS to empty value.)
26321 IFS=" "" $as_nl"
26322
26323 # Find who we are. Look in the path if we contain no directory separator.
26324 case $0 in
26325 *[\\/]* ) as_myself=$0 ;;
26326 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26327 for as_dir in $PATH
26328 do
26329 IFS=$as_save_IFS
26330 test -z "$as_dir" && as_dir=.
26331 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26332 done
26333 IFS=$as_save_IFS
26334
26335 ;;
26336 esac
26337 # We did not find ourselves, most probably we were run as `sh COMMAND'
26338 # in which case we are not to be found in the path.
26339 if test "x$as_myself" = x; then
26340 as_myself=$0
26341 fi
26342 if test ! -f "$as_myself"; then
26343 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26344 { (exit 1); exit 1; }
26345 fi
26346
26347 # Work around bugs in pre-3.0 UWIN ksh.
26348 for as_var in ENV MAIL MAILPATH
26349 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26350 done
26351 PS1='$ '
26352 PS2='> '
26353 PS4='+ '
26354
26355 # NLS nuisances.
26356 LC_ALL=C
26357 export LC_ALL
26358 LANGUAGE=C
26359 export LANGUAGE
26360
26361 # Required to use basename.
26362 if expr a : '\(a\)' >/dev/null 2>&1 &&
26363 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26364 as_expr=expr
26365 else
26366 as_expr=false
26367 fi
26368
26369 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26370 as_basename=basename
26371 else
26372 as_basename=false
26373 fi
26374
26375
26376 # Name of the executable.
26377 as_me=`$as_basename -- "$0" ||
26378 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26379 X"$0" : 'X\(//\)$' \| \
26380 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26381 $as_echo X/"$0" |
26382 sed '/^.*\/\([^/][^/]*\)\/*$/{
26383 s//\1/
26384 q
26385 }
26386 /^X\/\(\/\/\)$/{
26387 s//\1/
26388 q
26389 }
26390 /^X\/\(\/\).*/{
26391 s//\1/
26392 q
26393 }
26394 s/.*/./; q'`
26395
26396 # CDPATH.
26397 $as_unset CDPATH
26398
26399
26400
26401 as_lineno_1=$LINENO
26402 as_lineno_2=$LINENO
26403 test "x$as_lineno_1" != "x$as_lineno_2" &&
26404 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26405
26406 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26407 # uniformly replaced by the line number. The first 'sed' inserts a
26408 # line-number line after each line using $LINENO; the second 'sed'
26409 # does the real work. The second script uses 'N' to pair each
26410 # line-number line with the line containing $LINENO, and appends
26411 # trailing '-' during substitution so that $LINENO is not a special
26412 # case at line end.
26413 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26414 # scripts with optimization help from Paolo Bonzini. Blame Lee
26415 # E. McMahon (1931-1989) for sed's syntax. :-)
26416 sed -n '
26417 p
26418 /[$]LINENO/=
26419 ' <$as_myself |
26420 sed '
26421 s/[$]LINENO.*/&-/
26422 t lineno
26423 b
26424 :lineno
26425 N
26426 :loop
26427 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26428 t loop
26429 s/-\n.*//
26430 ' >$as_me.lineno &&
26431 chmod +x "$as_me.lineno" ||
26432 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26433 { (exit 1); exit 1; }; }
26434
26435 # Don't try to exec as it changes $[0], causing all sort of problems
26436 # (the dirname of $[0] is not the place where we might find the
26437 # original and so on. Autoconf is especially sensitive to this).
26438 . "./$as_me.lineno"
26439 # Exit status is that of the last command.
26440 exit
26441 }
26442
26443
26444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26445 as_dirname=dirname
26446 else
26447 as_dirname=false
26448 fi
26449
26450 ECHO_C= ECHO_N= ECHO_T=
26451 case `echo -n x` in
26452 -n*)
26453 case `echo 'x\c'` in
26454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26455 *) ECHO_C='\c';;
26456 esac;;
26457 *)
26458 ECHO_N='-n';;
26459 esac
26460 if expr a : '\(a\)' >/dev/null 2>&1 &&
26461 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26462 as_expr=expr
26463 else
26464 as_expr=false
26465 fi
26466
26467 rm -f conf$$ conf$$.exe conf$$.file
26468 if test -d conf$$.dir; then
26469 rm -f conf$$.dir/conf$$.file
26470 else
26471 rm -f conf$$.dir
26472 mkdir conf$$.dir 2>/dev/null
26473 fi
26474 if (echo >conf$$.file) 2>/dev/null; then
26475 if ln -s conf$$.file conf$$ 2>/dev/null; then
26476 as_ln_s='ln -s'
26477 # ... but there are two gotchas:
26478 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26479 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26480 # In both cases, we have to default to `cp -p'.
26481 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26482 as_ln_s='cp -p'
26483 elif ln conf$$.file conf$$ 2>/dev/null; then
26484 as_ln_s=ln
26485 else
26486 as_ln_s='cp -p'
26487 fi
26488 else
26489 as_ln_s='cp -p'
26490 fi
26491 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26492 rmdir conf$$.dir 2>/dev/null
26493
26494 if mkdir -p . 2>/dev/null; then
26495 as_mkdir_p=:
26496 else
26497 test -d ./-p && rmdir ./-p
26498 as_mkdir_p=false
26499 fi
26500
26501 if test -x / >/dev/null 2>&1; then
26502 as_test_x='test -x'
26503 else
26504 if ls -dL / >/dev/null 2>&1; then
26505 as_ls_L_option=L
26506 else
26507 as_ls_L_option=
26508 fi
26509 as_test_x='
26510 eval sh -c '\''
26511 if test -d "$1"; then
26512 test -d "$1/.";
26513 else
26514 case $1 in
26515 -*)set "./$1";;
26516 esac;
26517 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26518 ???[sx]*):;;*)false;;esac;fi
26519 '\'' sh
26520 '
26521 fi
26522 as_executable_p=$as_test_x
26523
26524 # Sed expression to map a string onto a valid CPP name.
26525 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26526
26527 # Sed expression to map a string onto a valid variable name.
26528 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26529
26530
26531 exec 6>&1
26532
26533 # Save the log message, to keep $[0] and so on meaningful, and to
26534 # report actual input values of CONFIG_FILES etc. instead of their
26535 # values after options handling.
26536 ac_log="
26537 This file was extended by emacs $as_me 24.0.50, which was
26538 generated by GNU Autoconf 2.62. Invocation command line was
26539
26540 CONFIG_FILES = $CONFIG_FILES
26541 CONFIG_HEADERS = $CONFIG_HEADERS
26542 CONFIG_LINKS = $CONFIG_LINKS
26543 CONFIG_COMMANDS = $CONFIG_COMMANDS
26544 $ $0 $@
26545
26546 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26547 "
26548
26549 _ACEOF
26550
26551 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26552 # Files that config.status was made for.
26553 config_files="$ac_config_files"
26554 config_headers="$ac_config_headers"
26555 config_commands="$ac_config_commands"
26556
26557 _ACEOF
26558
26559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26560 ac_cs_usage="\
26561 \`$as_me' instantiates files from templates according to the
26562 current configuration.
26563
26564 Usage: $0 [OPTIONS] [FILE]...
26565
26566 -h, --help print this help, then exit
26567 -V, --version print version number and configuration settings, then exit
26568 -q, --quiet do not print progress messages
26569 -d, --debug don't remove temporary files
26570 --recheck update $as_me by reconfiguring in the same conditions
26571 --file=FILE[:TEMPLATE]
26572 instantiate the configuration file FILE
26573 --header=FILE[:TEMPLATE]
26574 instantiate the configuration header FILE
26575
26576 Configuration files:
26577 $config_files
26578
26579 Configuration headers:
26580 $config_headers
26581
26582 Configuration commands:
26583 $config_commands
26584
26585 Report bugs to <bug-autoconf@gnu.org>."
26586
26587 _ACEOF
26588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26589 ac_cs_version="\\
26590 emacs config.status 24.0.50
26591 configured by $0, generated by GNU Autoconf 2.62,
26592 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26593
26594 Copyright (C) 2008 Free Software Foundation, Inc.
26595 This config.status script is free software; the Free Software Foundation
26596 gives unlimited permission to copy, distribute and modify it."
26597
26598 ac_pwd='$ac_pwd'
26599 srcdir='$srcdir'
26600 INSTALL='$INSTALL'
26601 test -n "\$AWK" || AWK=awk
26602 _ACEOF
26603
26604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26605 # The default lists apply if the user does not specify any file.
26606 ac_need_defaults=:
26607 while test $# != 0
26608 do
26609 case $1 in
26610 --*=*)
26611 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26612 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26613 ac_shift=:
26614 ;;
26615 *)
26616 ac_option=$1
26617 ac_optarg=$2
26618 ac_shift=shift
26619 ;;
26620 esac
26621
26622 case $ac_option in
26623 # Handling of the options.
26624 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26625 ac_cs_recheck=: ;;
26626 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26627 $as_echo "$ac_cs_version"; exit ;;
26628 --debug | --debu | --deb | --de | --d | -d )
26629 debug=: ;;
26630 --file | --fil | --fi | --f )
26631 $ac_shift
26632 case $ac_optarg in
26633 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26634 esac
26635 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
26636 ac_need_defaults=false;;
26637 --header | --heade | --head | --hea )
26638 $ac_shift
26639 case $ac_optarg in
26640 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26641 esac
26642 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
26643 ac_need_defaults=false;;
26644 --he | --h)
26645 # Conflict between --help and --header
26646 { $as_echo "$as_me: error: ambiguous option: $1
26647 Try \`$0 --help' for more information." >&2
26648 { (exit 1); exit 1; }; };;
26649 --help | --hel | -h )
26650 $as_echo "$ac_cs_usage"; exit ;;
26651 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26652 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26653 ac_cs_silent=: ;;
26654
26655 # This is an error.
26656 -*) { $as_echo "$as_me: error: unrecognized option: $1
26657 Try \`$0 --help' for more information." >&2
26658 { (exit 1); exit 1; }; } ;;
26659
26660 *) ac_config_targets="$ac_config_targets $1"
26661 ac_need_defaults=false ;;
26662
26663 esac
26664 shift
26665 done
26666
26667 ac_configure_extra_args=
26668
26669 if $ac_cs_silent; then
26670 exec 6>/dev/null
26671 ac_configure_extra_args="$ac_configure_extra_args --silent"
26672 fi
26673
26674 _ACEOF
26675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26676 if \$ac_cs_recheck; then
26677 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26678 shift
26679 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26680 CONFIG_SHELL='$SHELL'
26681 export CONFIG_SHELL
26682 exec "\$@"
26683 fi
26684
26685 _ACEOF
26686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26687 exec 5>>config.log
26688 {
26689 echo
26690 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26691 ## Running $as_me. ##
26692 _ASBOX
26693 $as_echo "$ac_log"
26694 } >&5
26695
26696 _ACEOF
26697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26698 #
26699 # INIT-COMMANDS
26700 #
26701 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
26702
26703 _ACEOF
26704
26705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26706
26707 # Handling of arguments.
26708 for ac_config_target in $ac_config_targets
26709 do
26710 case $ac_config_target in
26711 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26712 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26713 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
26714 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
26715 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
26716 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
26717 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
26718 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
26719 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
26720 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
26721 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
26722 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
26723 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26724
26725 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26726 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26727 { (exit 1); exit 1; }; };;
26728 esac
26729 done
26730
26731
26732 # If the user did not use the arguments to specify the items to instantiate,
26733 # then the envvar interface is used. Set only those that are not.
26734 # We use the long form for the default assignment because of an extremely
26735 # bizarre bug on SunOS 4.1.3.
26736 if $ac_need_defaults; then
26737 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26738 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26739 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26740 fi
26741
26742 # Have a temporary directory for convenience. Make it in the build tree
26743 # simply because there is no reason against having it here, and in addition,
26744 # creating and moving files from /tmp can sometimes cause problems.
26745 # Hook for its removal unless debugging.
26746 # Note that there is a small window in which the directory will not be cleaned:
26747 # after its creation but before its name has been assigned to `$tmp'.
26748 $debug ||
26749 {
26750 tmp=
26751 trap 'exit_status=$?
26752 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26753 ' 0
26754 trap '{ (exit 1); exit 1; }' 1 2 13 15
26755 }
26756 # Create a (secure) tmp directory for tmp files.
26757
26758 {
26759 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26760 test -n "$tmp" && test -d "$tmp"
26761 } ||
26762 {
26763 tmp=./conf$$-$RANDOM
26764 (umask 077 && mkdir "$tmp")
26765 } ||
26766 {
26767 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26768 { (exit 1); exit 1; }
26769 }
26770
26771 # Set up the scripts for CONFIG_FILES section.
26772 # No need to generate them if there are no CONFIG_FILES.
26773 # This happens for instance with `./config.status config.h'.
26774 if test -n "$CONFIG_FILES"; then
26775
26776
26777 ac_cr=' '
26778 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26779 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26780 ac_cs_awk_cr='\\r'
26781 else
26782 ac_cs_awk_cr=$ac_cr
26783 fi
26784
26785 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26786 _ACEOF
26787
26788
26789 {
26790 echo "cat >conf$$subs.awk <<_ACEOF" &&
26791 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26792 echo "_ACEOF"
26793 } >conf$$subs.sh ||
26794 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26795 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26796 { (exit 1); exit 1; }; }
26797 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26798 ac_delim='%!_!# '
26799 for ac_last_try in false false false false false :; do
26800 . ./conf$$subs.sh ||
26801 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26802 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26803 { (exit 1); exit 1; }; }
26804
26805 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
26806 break
26807 elif $ac_last_try; then
26808 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26809 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26810 { (exit 1); exit 1; }; }
26811 else
26812 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26813 fi
26814 done
26815 rm -f conf$$subs.sh
26816
26817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26818 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26819 _ACEOF
26820 sed -n '
26821 h
26822 s/^/S["/; s/!.*/"]=/
26823 p
26824 g
26825 s/^[^!]*!//
26826 :repl
26827 t repl
26828 s/'"$ac_delim"'$//
26829 t delim
26830 :nl
26831 h
26832 s/\(.\{148\}\).*/\1/
26833 t more1
26834 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26835 p
26836 n
26837 b repl
26838 :more1
26839 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26840 p
26841 g
26842 s/.\{148\}//
26843 t nl
26844 :delim
26845 h
26846 s/\(.\{148\}\).*/\1/
26847 t more2
26848 s/["\\]/\\&/g; s/^/"/; s/$/"/
26849 p
26850 b
26851 :more2
26852 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26853 p
26854 g
26855 s/.\{148\}//
26856 t delim
26857 ' <conf$$subs.awk | sed '
26858 /^[^""]/{
26859 N
26860 s/\n//
26861 }
26862 ' >>$CONFIG_STATUS || ac_write_fail=1
26863 rm -f conf$$subs.awk
26864 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26865 _ACAWK
26866 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26867 for (key in S) S_is_set[key] = 1
26868 FS = "\a"
26869
26870 }
26871 {
26872 line = $ 0
26873 nfields = split(line, field, "@")
26874 substed = 0
26875 len = length(field[1])
26876 for (i = 2; i < nfields; i++) {
26877 key = field[i]
26878 keylen = length(key)
26879 if (S_is_set[key]) {
26880 value = S[key]
26881 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26882 len += length(value) + length(field[++i])
26883 substed = 1
26884 } else
26885 len += 1 + keylen
26886 }
26887
26888 print line
26889 }
26890
26891 _ACAWK
26892 _ACEOF
26893 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26894 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26895 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26896 else
26897 cat
26898 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26899 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
26900 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
26901 { (exit 1); exit 1; }; }
26902 _ACEOF
26903
26904 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26905 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26906 # trailing colons and then remove the whole line if VPATH becomes empty
26907 # (actually we leave an empty line to preserve line numbers).
26908 if test "x$srcdir" = x.; then
26909 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26910 s/:*\$(srcdir):*/:/
26911 s/:*\${srcdir}:*/:/
26912 s/:*@srcdir@:*/:/
26913 s/^\([^=]*=[ ]*\):*/\1/
26914 s/:*$//
26915 s/^[^=]*=[ ]*$//
26916 }'
26917 fi
26918
26919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26920 fi # test -n "$CONFIG_FILES"
26921
26922 # Set up the scripts for CONFIG_HEADERS section.
26923 # No need to generate them if there are no CONFIG_HEADERS.
26924 # This happens for instance with `./config.status Makefile'.
26925 if test -n "$CONFIG_HEADERS"; then
26926 cat >"$tmp/defines.awk" <<\_ACAWK ||
26927 BEGIN {
26928 _ACEOF
26929
26930 # Transform confdefs.h into an awk script `defines.awk', embedded as
26931 # here-document in config.status, that substitutes the proper values into
26932 # config.h.in to produce config.h.
26933
26934 # Create a delimiter string that does not exist in confdefs.h, to ease
26935 # handling of long lines.
26936 ac_delim='%!_!# '
26937 for ac_last_try in false false :; do
26938 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26939 if test -z "$ac_t"; then
26940 break
26941 elif $ac_last_try; then
26942 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
26943 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
26944 { (exit 1); exit 1; }; }
26945 else
26946 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26947 fi
26948 done
26949
26950 # For the awk script, D is an array of macro values keyed by name,
26951 # likewise P contains macro parameters if any. Preserve backslash
26952 # newline sequences.
26953
26954 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26955 sed -n '
26956 s/.\{148\}/&'"$ac_delim"'/g
26957 t rset
26958 :rset
26959 s/^[ ]*#[ ]*define[ ][ ]*/ /
26960 t def
26961 d
26962 :def
26963 s/\\$//
26964 t bsnl
26965 s/["\\]/\\&/g
26966 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26967 D["\1"]=" \3"/p
26968 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26969 d
26970 :bsnl
26971 s/["\\]/\\&/g
26972 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26973 D["\1"]=" \3\\\\\\n"\\/p
26974 t cont
26975 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26976 t cont
26977 d
26978 :cont
26979 n
26980 s/.\{148\}/&'"$ac_delim"'/g
26981 t clear
26982 :clear
26983 s/\\$//
26984 t bsnlc
26985 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26986 d
26987 :bsnlc
26988 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26989 b cont
26990 ' <confdefs.h | sed '
26991 s/'"$ac_delim"'/"\\\
26992 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26993
26994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26995 for (key in D) D_is_set[key] = 1
26996 FS = "\a"
26997 }
26998 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26999 line = \$ 0
27000 split(line, arg, " ")
27001 if (arg[1] == "#") {
27002 defundef = arg[2]
27003 mac1 = arg[3]
27004 } else {
27005 defundef = substr(arg[1], 2)
27006 mac1 = arg[2]
27007 }
27008 split(mac1, mac2, "(") #)
27009 macro = mac2[1]
27010 if (D_is_set[macro]) {
27011 # Preserve the white space surrounding the "#".
27012 prefix = substr(line, 1, index(line, defundef) - 1)
27013 print prefix "define", macro P[macro] D[macro]
27014 next
27015 } else {
27016 # Replace #undef with comments. This is necessary, for example,
27017 # in the case of _POSIX_SOURCE, which is predefined and required
27018 # on some systems where configure will not decide to define it.
27019 if (defundef == "undef") {
27020 print "/*", line, "*/"
27021 next
27022 }
27023 }
27024 }
27025 { print }
27026 _ACAWK
27027 _ACEOF
27028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27029 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27030 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27031 { (exit 1); exit 1; }; }
27032 fi # test -n "$CONFIG_HEADERS"
27033
27034
27035 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27036 shift
27037 for ac_tag
27038 do
27039 case $ac_tag in
27040 :[FHLC]) ac_mode=$ac_tag; continue;;
27041 esac
27042 case $ac_mode$ac_tag in
27043 :[FHL]*:*);;
27044 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27045 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27046 { (exit 1); exit 1; }; };;
27047 :[FH]-) ac_tag=-:-;;
27048 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27049 esac
27050 ac_save_IFS=$IFS
27051 IFS=:
27052 set x $ac_tag
27053 IFS=$ac_save_IFS
27054 shift
27055 ac_file=$1
27056 shift
27057
27058 case $ac_mode in
27059 :L) ac_source=$1;;
27060 :[FH])
27061 ac_file_inputs=
27062 for ac_f
27063 do
27064 case $ac_f in
27065 -) ac_f="$tmp/stdin";;
27066 *) # Look for the file first in the build tree, then in the source tree
27067 # (if the path is not absolute). The absolute path cannot be DOS-style,
27068 # because $ac_f cannot contain `:'.
27069 test -f "$ac_f" ||
27070 case $ac_f in
27071 [\\/$]*) false;;
27072 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27073 esac ||
27074 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27075 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27076 { (exit 1); exit 1; }; };;
27077 esac
27078 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27079 ac_file_inputs="$ac_file_inputs '$ac_f'"
27080 done
27081
27082 # Let's still pretend it is `configure' which instantiates (i.e., don't
27083 # use $as_me), people would be surprised to read:
27084 # /* config.h. Generated by config.status. */
27085 configure_input='Generated from '`
27086 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27087 `' by configure.'
27088 if test x"$ac_file" != x-; then
27089 configure_input="$ac_file. $configure_input"
27090 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27091 $as_echo "$as_me: creating $ac_file" >&6;}
27092 fi
27093 # Neutralize special characters interpreted by sed in replacement strings.
27094 case $configure_input in #(
27095 *\&* | *\|* | *\\* )
27096 ac_sed_conf_input=`$as_echo "$configure_input" |
27097 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27098 *) ac_sed_conf_input=$configure_input;;
27099 esac
27100
27101 case $ac_tag in
27102 *:-:* | *:-) cat >"$tmp/stdin" \
27103 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27104 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27105 { (exit 1); exit 1; }; } ;;
27106 esac
27107 ;;
27108 esac
27109
27110 ac_dir=`$as_dirname -- "$ac_file" ||
27111 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27112 X"$ac_file" : 'X\(//\)[^/]' \| \
27113 X"$ac_file" : 'X\(//\)$' \| \
27114 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27115 $as_echo X"$ac_file" |
27116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27117 s//\1/
27118 q
27119 }
27120 /^X\(\/\/\)[^/].*/{
27121 s//\1/
27122 q
27123 }
27124 /^X\(\/\/\)$/{
27125 s//\1/
27126 q
27127 }
27128 /^X\(\/\).*/{
27129 s//\1/
27130 q
27131 }
27132 s/.*/./; q'`
27133 { as_dir="$ac_dir"
27134 case $as_dir in #(
27135 -*) as_dir=./$as_dir;;
27136 esac
27137 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27138 as_dirs=
27139 while :; do
27140 case $as_dir in #(
27141 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27142 *) as_qdir=$as_dir;;
27143 esac
27144 as_dirs="'$as_qdir' $as_dirs"
27145 as_dir=`$as_dirname -- "$as_dir" ||
27146 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27147 X"$as_dir" : 'X\(//\)[^/]' \| \
27148 X"$as_dir" : 'X\(//\)$' \| \
27149 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27150 $as_echo X"$as_dir" |
27151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27152 s//\1/
27153 q
27154 }
27155 /^X\(\/\/\)[^/].*/{
27156 s//\1/
27157 q
27158 }
27159 /^X\(\/\/\)$/{
27160 s//\1/
27161 q
27162 }
27163 /^X\(\/\).*/{
27164 s//\1/
27165 q
27166 }
27167 s/.*/./; q'`
27168 test -d "$as_dir" && break
27169 done
27170 test -z "$as_dirs" || eval "mkdir $as_dirs"
27171 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27172 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27173 { (exit 1); exit 1; }; }; }
27174 ac_builddir=.
27175
27176 case "$ac_dir" in
27177 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27178 *)
27179 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27180 # A ".." for each directory in $ac_dir_suffix.
27181 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27182 case $ac_top_builddir_sub in
27183 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27184 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27185 esac ;;
27186 esac
27187 ac_abs_top_builddir=$ac_pwd
27188 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27189 # for backward compatibility:
27190 ac_top_builddir=$ac_top_build_prefix
27191
27192 case $srcdir in
27193 .) # We are building in place.
27194 ac_srcdir=.
27195 ac_top_srcdir=$ac_top_builddir_sub
27196 ac_abs_top_srcdir=$ac_pwd ;;
27197 [\\/]* | ?:[\\/]* ) # Absolute name.
27198 ac_srcdir=$srcdir$ac_dir_suffix;
27199 ac_top_srcdir=$srcdir
27200 ac_abs_top_srcdir=$srcdir ;;
27201 *) # Relative name.
27202 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27203 ac_top_srcdir=$ac_top_build_prefix$srcdir
27204 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27205 esac
27206 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27207
27208
27209 case $ac_mode in
27210 :F)
27211 #
27212 # CONFIG_FILE
27213 #
27214
27215 case $INSTALL in
27216 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27217 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27218 esac
27219 _ACEOF
27220
27221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27222 # If the template does not know about datarootdir, expand it.
27223 # FIXME: This hack should be removed a few years after 2.60.
27224 ac_datarootdir_hack=; ac_datarootdir_seen=
27225
27226 ac_sed_dataroot='
27227 /datarootdir/ {
27228 p
27229 q
27230 }
27231 /@datadir@/p
27232 /@docdir@/p
27233 /@infodir@/p
27234 /@localedir@/p
27235 /@mandir@/p
27236 '
27237 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27238 *datarootdir*) ac_datarootdir_seen=yes;;
27239 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27240 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27241 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27242 _ACEOF
27243 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27244 ac_datarootdir_hack='
27245 s&@datadir@&$datadir&g
27246 s&@docdir@&$docdir&g
27247 s&@infodir@&$infodir&g
27248 s&@localedir@&$localedir&g
27249 s&@mandir@&$mandir&g
27250 s&\\\${datarootdir}&$datarootdir&g' ;;
27251 esac
27252 _ACEOF
27253
27254 # Neutralize VPATH when `$srcdir' = `.'.
27255 # Shell code in configure.ac might set extrasub.
27256 # FIXME: do we really want to maintain this feature?
27257 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27258 ac_sed_extra="$ac_vpsub
27259 $extrasub
27260 _ACEOF
27261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27262 :t
27263 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27264 s|@configure_input@|$ac_sed_conf_input|;t t
27265 s&@top_builddir@&$ac_top_builddir_sub&;t t
27266 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27267 s&@srcdir@&$ac_srcdir&;t t
27268 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27269 s&@top_srcdir@&$ac_top_srcdir&;t t
27270 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27271 s&@builddir@&$ac_builddir&;t t
27272 s&@abs_builddir@&$ac_abs_builddir&;t t
27273 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27274 s&@INSTALL@&$ac_INSTALL&;t t
27275 $ac_datarootdir_hack
27276 "
27277 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
27278 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27279 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27280 { (exit 1); exit 1; }; }
27281
27282 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27283 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27284 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27285 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27286 which seems to be undefined. Please make sure it is defined." >&5
27287 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27288 which seems to be undefined. Please make sure it is defined." >&2;}
27289
27290 rm -f "$tmp/stdin"
27291 case $ac_file in
27292 -) cat "$tmp/out" && rm -f "$tmp/out";;
27293 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27294 esac \
27295 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27296 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27297 { (exit 1); exit 1; }; }
27298 ;;
27299 :H)
27300 #
27301 # CONFIG_HEADER
27302 #
27303 if test x"$ac_file" != x-; then
27304 {
27305 $as_echo "/* $configure_input */" \
27306 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27307 } >"$tmp/config.h" \
27308 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27309 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27310 { (exit 1); exit 1; }; }
27311 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27312 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27313 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27314 else
27315 rm -f "$ac_file"
27316 mv "$tmp/config.h" "$ac_file" \
27317 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27318 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27319 { (exit 1); exit 1; }; }
27320 fi
27321 else
27322 $as_echo "/* $configure_input */" \
27323 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27324 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27325 $as_echo "$as_me: error: could not create -" >&2;}
27326 { (exit 1); exit 1; }; }
27327 fi
27328 ;;
27329
27330 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
27331 $as_echo "$as_me: executing $ac_file commands" >&6;}
27332 ;;
27333 esac
27334
27335
27336 case $ac_file$ac_mode in
27337 "default":C)
27338
27339 ### Make the necessary directories, if they don't exist.
27340 for dir in etc lisp ; do
27341 test -d ${dir} || mkdir ${dir}
27342 done
27343
27344 # Build src/Makefile from ${srcdir}/src/Makefile.c
27345 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
27346 # This must be done after src/config.h is built, since we rely on that file.
27347
27348 echo creating src/epaths.h
27349 ${MAKE-make} epaths-force
27350
27351 # As of 2000-11-19, newest development versions of GNU cpp preprocess
27352 # `..' to `. .' unless invoked with -traditional
27353
27354 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
27355 CPPFLAGS="$CPPFLAGS -traditional"
27356 fi
27357
27358 echo creating lib-src/Makefile
27359 ( cd lib-src
27360 rm -f junk.c junk1.c junk2.c
27361 sed -e '/start of cpp stuff/q' \
27362 < Makefile.c > junk1.c
27363 sed -e '1,/start of cpp stuff/d'\
27364 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27365 < Makefile.c > junk.c
27366 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
27367 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27368 cat junk1.c junk2.c > Makefile.new
27369 rm -f junk.c junk1.c junk2.c
27370 chmod 444 Makefile.new
27371 mv -f Makefile.new Makefile
27372 )
27373
27374 echo creating src/Makefile
27375 ( cd src
27376 rm -f junk.c junk1.c junk2.c
27377 sed -e '/start of cpp stuff/q' \
27378 < Makefile.c > junk1.c
27379 sed -e '1,/start of cpp stuff/d'\
27380 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27381 < Makefile.c > junk.c
27382 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
27383 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27384 cat junk1.c junk2.c > Makefile.new
27385 rm -f junk.c junk1.c junk2.c
27386 chmod 444 Makefile.new
27387 mv -f Makefile.new Makefile
27388 )
27389
27390 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
27391 echo creating src/.gdbinit
27392 echo source $srcdir/src/.gdbinit > src/.gdbinit
27393 fi
27394
27395 ;;
27396
27397 esac
27398 done # for ac_tag
27399
27400
27401 { (exit 0); exit 0; }
27402 _ACEOF
27403 chmod +x $CONFIG_STATUS
27404 ac_clean_files=$ac_clean_files_save
27405
27406 test $ac_write_fail = 0 ||
27407 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27408 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27409 { (exit 1); exit 1; }; }
27410
27411
27412 # configure is writing to config.log, and then calls config.status.
27413 # config.status does its own redirection, appending to config.log.
27414 # Unfortunately, on DOS this fails, as config.log is still kept open
27415 # by configure, so config.status won't be able to write to it; its
27416 # output is simply discarded. So we exec the FD to /dev/null,
27417 # effectively closing config.log, so it can be properly (re)opened and
27418 # appended to by config.status. When coming back to configure, we
27419 # need to make the FD available again.
27420 if test "$no_create" != yes; then
27421 ac_cs_success=:
27422 ac_config_status_args=
27423 test "$silent" = yes &&
27424 ac_config_status_args="$ac_config_status_args --quiet"
27425 exec 5>/dev/null
27426 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27427 exec 5>>config.log
27428 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27429 # would make configure fail if this is the last instruction.
27430 $ac_cs_success || { (exit 1); exit 1; }
27431 fi
27432 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27433 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
27434 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
27435 fi
27436
27437