]> code.delx.au - gnu-emacs/blob - configure
Merge from emacs--devo--0
[gnu-emacs] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 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 # Zsh 3.x and 4.x performs 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 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
69
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
160
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335 break
336 fi
337
338 fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415 echo Please tell bug-autoconf@gnu.org about your system,
416 echo including any error possibly output before this message.
417 echo This can help us improve future autoconf versions.
418 echo Configuration will now proceed without shell functions.
419 }
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="src/lisp.h"
580 ac_config_libobj_dir=src
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 # include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 # include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
616
617 ac_header_list=
618 ac_func_list=
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 MAINT
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 CC
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
672 CPP
673 GREP
674 EGREP
675 LN_S
676 INSTALL_PROGRAM
677 INSTALL_SCRIPT
678 INSTALL_DATA
679 RANLIB
680 INSTALL_INFO
681 GZIP_PROG
682 LIBSOUND
683 PKG_CONFIG
684 ALSA_CFLAGS
685 ALSA_LIBS
686 CFLAGS_SOUND
687 SET_MAKE
688 XMKMF
689 HAVE_XSERVER
690 GTK_CFLAGS
691 GTK_LIBS
692 XFT_CFLAGS
693 XFT_LIBS
694 ALLOCA
695 liblockfile
696 LIBOBJS
697 NEED_SETGID
698 KMEM_GROUP
699 GETLOADAVG_LIBS
700 GETOPT_H
701 GETOPTOBJS
702 version
703 configuration
704 canonical
705 srcdir
706 lispdir
707 locallisppath
708 lisppath
709 x_default_search_path
710 etcdir
711 archlibdir
712 bitmapdir
713 gamedir
714 gameuser
715 c_switch_system
716 c_switch_machine
717 LD_SWITCH_X_SITE
718 LD_SWITCH_X_SITE_AUX
719 C_SWITCH_X_SITE
720 X_TOOLKIT_TYPE
721 machfile
722 opsysfile
723 carbon_appdir
724 LTLIBOBJS'
725 ac_subst_files=''
726 ac_precious_vars='build_alias
727 host_alias
728 target_alias
729 CC
730 CFLAGS
731 LDFLAGS
732 LIBS
733 CPPFLAGS
734 CPP
735 XMKMF'
736
737
738 # Initialize some variables set by options.
739 ac_init_help=
740 ac_init_version=false
741 # The variables have the same names as the options, with
742 # dashes changed to underlines.
743 cache_file=/dev/null
744 exec_prefix=NONE
745 no_create=
746 no_recursion=
747 prefix=NONE
748 program_prefix=NONE
749 program_suffix=NONE
750 program_transform_name=s,x,x,
751 silent=
752 site=
753 srcdir=
754 verbose=
755 x_includes=NONE
756 x_libraries=NONE
757
758 # Installation directory options.
759 # These are left unexpanded so users can "make install exec_prefix=/foo"
760 # and all the variables that are supposed to be based on exec_prefix
761 # by default will actually change.
762 # Use braces instead of parens because sh, perl, etc. also accept them.
763 # (The list follows the same order as the GNU Coding Standards.)
764 bindir='${exec_prefix}/bin'
765 sbindir='${exec_prefix}/sbin'
766 libexecdir='${exec_prefix}/libexec'
767 datarootdir='${prefix}/share'
768 datadir='${datarootdir}'
769 sysconfdir='${prefix}/etc'
770 sharedstatedir='${prefix}/com'
771 localstatedir='${prefix}/var'
772 includedir='${prefix}/include'
773 oldincludedir='/usr/include'
774 docdir='${datarootdir}/doc/${PACKAGE}'
775 infodir='${datarootdir}/info'
776 htmldir='${docdir}'
777 dvidir='${docdir}'
778 pdfdir='${docdir}'
779 psdir='${docdir}'
780 libdir='${exec_prefix}/lib'
781 localedir='${datarootdir}/locale'
782 mandir='${datarootdir}/man'
783
784 ac_prev=
785 ac_dashdash=
786 for ac_option
787 do
788 # If the previous option needs an argument, assign it.
789 if test -n "$ac_prev"; then
790 eval $ac_prev=\$ac_option
791 ac_prev=
792 continue
793 fi
794
795 case $ac_option in
796 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
797 *) ac_optarg=yes ;;
798 esac
799
800 # Accept the important Cygnus configure options, so we can diagnose typos.
801
802 case $ac_dashdash$ac_option in
803 --)
804 ac_dashdash=yes ;;
805
806 -bindir | --bindir | --bindi | --bind | --bin | --bi)
807 ac_prev=bindir ;;
808 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
809 bindir=$ac_optarg ;;
810
811 -build | --build | --buil | --bui | --bu)
812 ac_prev=build_alias ;;
813 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
814 build_alias=$ac_optarg ;;
815
816 -cache-file | --cache-file | --cache-fil | --cache-fi \
817 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
818 ac_prev=cache_file ;;
819 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
820 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
821 cache_file=$ac_optarg ;;
822
823 --config-cache | -C)
824 cache_file=config.cache ;;
825
826 -datadir | --datadir | --datadi | --datad)
827 ac_prev=datadir ;;
828 -datadir=* | --datadir=* | --datadi=* | --datad=*)
829 datadir=$ac_optarg ;;
830
831 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
832 | --dataroo | --dataro | --datar)
833 ac_prev=datarootdir ;;
834 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
835 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
836 datarootdir=$ac_optarg ;;
837
838 -disable-* | --disable-*)
839 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
840 # Reject names that are not valid shell variable names.
841 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
842 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
843 { (exit 1); exit 1; }; }
844 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
845 eval enable_$ac_feature=no ;;
846
847 -docdir | --docdir | --docdi | --doc | --do)
848 ac_prev=docdir ;;
849 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
850 docdir=$ac_optarg ;;
851
852 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
853 ac_prev=dvidir ;;
854 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
855 dvidir=$ac_optarg ;;
856
857 -enable-* | --enable-*)
858 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
859 # Reject names that are not valid shell variable names.
860 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
861 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
862 { (exit 1); exit 1; }; }
863 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
864 eval enable_$ac_feature=\$ac_optarg ;;
865
866 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
867 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
868 | --exec | --exe | --ex)
869 ac_prev=exec_prefix ;;
870 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
871 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
872 | --exec=* | --exe=* | --ex=*)
873 exec_prefix=$ac_optarg ;;
874
875 -gas | --gas | --ga | --g)
876 # Obsolete; use --with-gas.
877 with_gas=yes ;;
878
879 -help | --help | --hel | --he | -h)
880 ac_init_help=long ;;
881 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
882 ac_init_help=recursive ;;
883 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
884 ac_init_help=short ;;
885
886 -host | --host | --hos | --ho)
887 ac_prev=host_alias ;;
888 -host=* | --host=* | --hos=* | --ho=*)
889 host_alias=$ac_optarg ;;
890
891 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
892 ac_prev=htmldir ;;
893 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
894 | --ht=*)
895 htmldir=$ac_optarg ;;
896
897 -includedir | --includedir | --includedi | --included | --include \
898 | --includ | --inclu | --incl | --inc)
899 ac_prev=includedir ;;
900 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
901 | --includ=* | --inclu=* | --incl=* | --inc=*)
902 includedir=$ac_optarg ;;
903
904 -infodir | --infodir | --infodi | --infod | --info | --inf)
905 ac_prev=infodir ;;
906 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
907 infodir=$ac_optarg ;;
908
909 -libdir | --libdir | --libdi | --libd)
910 ac_prev=libdir ;;
911 -libdir=* | --libdir=* | --libdi=* | --libd=*)
912 libdir=$ac_optarg ;;
913
914 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
915 | --libexe | --libex | --libe)
916 ac_prev=libexecdir ;;
917 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
918 | --libexe=* | --libex=* | --libe=*)
919 libexecdir=$ac_optarg ;;
920
921 -localedir | --localedir | --localedi | --localed | --locale)
922 ac_prev=localedir ;;
923 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
924 localedir=$ac_optarg ;;
925
926 -localstatedir | --localstatedir | --localstatedi | --localstated \
927 | --localstate | --localstat | --localsta | --localst | --locals)
928 ac_prev=localstatedir ;;
929 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
930 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
931 localstatedir=$ac_optarg ;;
932
933 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
934 ac_prev=mandir ;;
935 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
936 mandir=$ac_optarg ;;
937
938 -nfp | --nfp | --nf)
939 # Obsolete; use --without-fp.
940 with_fp=no ;;
941
942 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
943 | --no-cr | --no-c | -n)
944 no_create=yes ;;
945
946 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
947 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
948 no_recursion=yes ;;
949
950 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
951 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
952 | --oldin | --oldi | --old | --ol | --o)
953 ac_prev=oldincludedir ;;
954 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
955 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
956 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
957 oldincludedir=$ac_optarg ;;
958
959 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
960 ac_prev=prefix ;;
961 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
962 prefix=$ac_optarg ;;
963
964 -program-prefix | --program-prefix | --program-prefi | --program-pref \
965 | --program-pre | --program-pr | --program-p)
966 ac_prev=program_prefix ;;
967 -program-prefix=* | --program-prefix=* | --program-prefi=* \
968 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
969 program_prefix=$ac_optarg ;;
970
971 -program-suffix | --program-suffix | --program-suffi | --program-suff \
972 | --program-suf | --program-su | --program-s)
973 ac_prev=program_suffix ;;
974 -program-suffix=* | --program-suffix=* | --program-suffi=* \
975 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
976 program_suffix=$ac_optarg ;;
977
978 -program-transform-name | --program-transform-name \
979 | --program-transform-nam | --program-transform-na \
980 | --program-transform-n | --program-transform- \
981 | --program-transform | --program-transfor \
982 | --program-transfo | --program-transf \
983 | --program-trans | --program-tran \
984 | --progr-tra | --program-tr | --program-t)
985 ac_prev=program_transform_name ;;
986 -program-transform-name=* | --program-transform-name=* \
987 | --program-transform-nam=* | --program-transform-na=* \
988 | --program-transform-n=* | --program-transform-=* \
989 | --program-transform=* | --program-transfor=* \
990 | --program-transfo=* | --program-transf=* \
991 | --program-trans=* | --program-tran=* \
992 | --progr-tra=* | --program-tr=* | --program-t=*)
993 program_transform_name=$ac_optarg ;;
994
995 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
996 ac_prev=pdfdir ;;
997 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
998 pdfdir=$ac_optarg ;;
999
1000 -psdir | --psdir | --psdi | --psd | --ps)
1001 ac_prev=psdir ;;
1002 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1003 psdir=$ac_optarg ;;
1004
1005 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1006 | -silent | --silent | --silen | --sile | --sil)
1007 silent=yes ;;
1008
1009 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1010 ac_prev=sbindir ;;
1011 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1012 | --sbi=* | --sb=*)
1013 sbindir=$ac_optarg ;;
1014
1015 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1016 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1017 | --sharedst | --shareds | --shared | --share | --shar \
1018 | --sha | --sh)
1019 ac_prev=sharedstatedir ;;
1020 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1021 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1022 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1023 | --sha=* | --sh=*)
1024 sharedstatedir=$ac_optarg ;;
1025
1026 -site | --site | --sit)
1027 ac_prev=site ;;
1028 -site=* | --site=* | --sit=*)
1029 site=$ac_optarg ;;
1030
1031 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1032 ac_prev=srcdir ;;
1033 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1034 srcdir=$ac_optarg ;;
1035
1036 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1037 | --syscon | --sysco | --sysc | --sys | --sy)
1038 ac_prev=sysconfdir ;;
1039 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1040 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1041 sysconfdir=$ac_optarg ;;
1042
1043 -target | --target | --targe | --targ | --tar | --ta | --t)
1044 ac_prev=target_alias ;;
1045 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1046 target_alias=$ac_optarg ;;
1047
1048 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1049 verbose=yes ;;
1050
1051 -version | --version | --versio | --versi | --vers | -V)
1052 ac_init_version=: ;;
1053
1054 -with-* | --with-*)
1055 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1058 { echo "$as_me: error: invalid package name: $ac_package" >&2
1059 { (exit 1); exit 1; }; }
1060 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1061 eval with_$ac_package=\$ac_optarg ;;
1062
1063 -without-* | --without-*)
1064 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1067 { echo "$as_me: error: invalid package name: $ac_package" >&2
1068 { (exit 1); exit 1; }; }
1069 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1070 eval with_$ac_package=no ;;
1071
1072 --x)
1073 # Obsolete; use --with-x.
1074 with_x=yes ;;
1075
1076 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1077 | --x-incl | --x-inc | --x-in | --x-i)
1078 ac_prev=x_includes ;;
1079 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1080 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1081 x_includes=$ac_optarg ;;
1082
1083 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1084 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1085 ac_prev=x_libraries ;;
1086 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1087 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1088 x_libraries=$ac_optarg ;;
1089
1090 -*) { echo "$as_me: error: unrecognized option: $ac_option
1091 Try \`$0 --help' for more information." >&2
1092 { (exit 1); exit 1; }; }
1093 ;;
1094
1095 *=*)
1096 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1099 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1100 { (exit 1); exit 1; }; }
1101 eval $ac_envvar=\$ac_optarg
1102 export $ac_envvar ;;
1103
1104 *)
1105 # FIXME: should be removed in autoconf 3.0.
1106 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1107 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1108 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1109 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1110 ;;
1111
1112 esac
1113 done
1114
1115 if test -n "$ac_prev"; then
1116 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1117 { echo "$as_me: error: missing argument to $ac_option" >&2
1118 { (exit 1); exit 1; }; }
1119 fi
1120
1121 # Be sure to have absolute directory names.
1122 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1123 datadir sysconfdir sharedstatedir localstatedir includedir \
1124 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1125 libdir localedir mandir
1126 do
1127 eval ac_val=\$$ac_var
1128 case $ac_val in
1129 [\\/$]* | ?:[\\/]* ) continue;;
1130 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1131 esac
1132 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1133 { (exit 1); exit 1; }; }
1134 done
1135
1136 # There might be people who depend on the old broken behavior: `$host'
1137 # used to hold the argument of --host etc.
1138 # FIXME: To remove some day.
1139 build=$build_alias
1140 host=$host_alias
1141 target=$target_alias
1142
1143 # FIXME: To remove some day.
1144 if test "x$host_alias" != x; then
1145 if test "x$build_alias" = x; then
1146 cross_compiling=maybe
1147 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1148 If a cross compiler is detected then cross compile mode will be used." >&2
1149 elif test "x$build_alias" != "x$host_alias"; then
1150 cross_compiling=yes
1151 fi
1152 fi
1153
1154 ac_tool_prefix=
1155 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1156
1157 test "$silent" = yes && exec 6>/dev/null
1158
1159
1160 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1161 ac_ls_di=`ls -di .` &&
1162 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1163 { echo "$as_me: error: Working directory cannot be determined" >&2
1164 { (exit 1); exit 1; }; }
1165 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1166 { echo "$as_me: error: pwd does not report name of working directory" >&2
1167 { (exit 1); exit 1; }; }
1168
1169
1170 # Find the source files, if location was not specified.
1171 if test -z "$srcdir"; then
1172 ac_srcdir_defaulted=yes
1173 # Try the directory containing this script, then the parent directory.
1174 ac_confdir=`$as_dirname -- "$0" ||
1175 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1176 X"$0" : 'X\(//\)[^/]' \| \
1177 X"$0" : 'X\(//\)$' \| \
1178 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1179 echo X"$0" |
1180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1181 s//\1/
1182 q
1183 }
1184 /^X\(\/\/\)[^/].*/{
1185 s//\1/
1186 q
1187 }
1188 /^X\(\/\/\)$/{
1189 s//\1/
1190 q
1191 }
1192 /^X\(\/\).*/{
1193 s//\1/
1194 q
1195 }
1196 s/.*/./; q'`
1197 srcdir=$ac_confdir
1198 if test ! -r "$srcdir/$ac_unique_file"; then
1199 srcdir=..
1200 fi
1201 else
1202 ac_srcdir_defaulted=no
1203 fi
1204 if test ! -r "$srcdir/$ac_unique_file"; then
1205 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1206 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1207 { (exit 1); exit 1; }; }
1208 fi
1209 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1210 ac_abs_confdir=`(
1211 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1212 { (exit 1); exit 1; }; }
1213 pwd)`
1214 # When building in place, set srcdir=.
1215 if test "$ac_abs_confdir" = "$ac_pwd"; then
1216 srcdir=.
1217 fi
1218 # Remove unnecessary trailing slashes from srcdir.
1219 # Double slashes in file names in object file debugging info
1220 # mess up M-x gdb in Emacs.
1221 case $srcdir in
1222 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1223 esac
1224 for ac_var in $ac_precious_vars; do
1225 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1226 eval ac_env_${ac_var}_value=\$${ac_var}
1227 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1228 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1229 done
1230
1231 #
1232 # Report the --help message.
1233 #
1234 if test "$ac_init_help" = "long"; then
1235 # Omit some internal or obsolete options to make the list less imposing.
1236 # This message is too long to be a string in the A/UX 3.1 sh.
1237 cat <<_ACEOF
1238 \`configure' configures this package to adapt to many kinds of systems.
1239
1240 Usage: $0 [OPTION]... [VAR=VALUE]...
1241
1242 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1243 VAR=VALUE. See below for descriptions of some of the useful variables.
1244
1245 Defaults for the options are specified in brackets.
1246
1247 Configuration:
1248 -h, --help display this help and exit
1249 --help=short display options specific to this package
1250 --help=recursive display the short help of all the included packages
1251 -V, --version display version information and exit
1252 -q, --quiet, --silent do not print \`checking...' messages
1253 --cache-file=FILE cache test results in FILE [disabled]
1254 -C, --config-cache alias for \`--cache-file=config.cache'
1255 -n, --no-create do not create output files
1256 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1257
1258 Installation directories:
1259 --prefix=PREFIX install architecture-independent files in PREFIX
1260 [$ac_default_prefix]
1261 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1262 [PREFIX]
1263
1264 By default, \`make install' will install all the files in
1265 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1266 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1267 for instance \`--prefix=\$HOME'.
1268
1269 For better control, use the options below.
1270
1271 Fine tuning of the installation directories:
1272 --bindir=DIR user executables [EPREFIX/bin]
1273 --sbindir=DIR system admin executables [EPREFIX/sbin]
1274 --libexecdir=DIR program executables [EPREFIX/libexec]
1275 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1276 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1277 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1278 --libdir=DIR object code libraries [EPREFIX/lib]
1279 --includedir=DIR C header files [PREFIX/include]
1280 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1281 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1282 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1283 --infodir=DIR info documentation [DATAROOTDIR/info]
1284 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1285 --mandir=DIR man documentation [DATAROOTDIR/man]
1286 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1287 --htmldir=DIR html documentation [DOCDIR]
1288 --dvidir=DIR dvi documentation [DOCDIR]
1289 --pdfdir=DIR pdf documentation [DOCDIR]
1290 --psdir=DIR ps documentation [DOCDIR]
1291 _ACEOF
1292
1293 cat <<\_ACEOF
1294
1295 Program names:
1296 --program-prefix=PREFIX prepend PREFIX to installed program names
1297 --program-suffix=SUFFIX append SUFFIX to installed program names
1298 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1299
1300 X features:
1301 --x-includes=DIR X include files are in DIR
1302 --x-libraries=DIR X library files are in DIR
1303
1304 System types:
1305 --build=BUILD configure for building on BUILD [guessed]
1306 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1307 _ACEOF
1308 fi
1309
1310 if test -n "$ac_init_help"; then
1311
1312 cat <<\_ACEOF
1313
1314 Optional Features:
1315 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1316 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1317 --enable-carbon-app[=DIR] [DIR=/Application]
1318 specify install directory for Emacs.app on Mac OS X
1319 --enable-asserts compile code with asserts enabled
1320 --enable-maintainer-mode enable make rules and dependencies not useful
1321 (and sometimes confusing) to the casual installer
1322 --enable-locallisppath=PATH
1323 directories Emacs should search for lisp files
1324 specific to this site
1325 --disable-largefile omit support for large files
1326
1327 Optional Packages:
1328 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1329 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1330 --without-gcc don't use GCC to compile Emacs if GCC is found
1331 --without-pop don't support POP mail retrieval with movemail
1332 --with-kerberos support Kerberos-authenticated POP
1333 --with-kerberos5 support Kerberos version 5 authenticated POP
1334 --with-hesiod support Hesiod to get the POP server host
1335 --without-sound don't compile with sound support
1336 --with-x-toolkit=KIT use an X toolkit
1337 (KIT = yes/lucid/athena/motif/gtk/no)
1338 --with-xpm use -lXpm for displaying XPM images
1339 --with-jpeg use -ljpeg for displaying JPEG images
1340 --with-tiff use -ltiff for displaying TIFF images
1341 --with-gif use -lgif (or -lungif) for displaying GIF images
1342 --with-png use -lpng for displaying PNG images
1343 --with-gpm use -lgpm for mouse support on a GNU/Linux console
1344 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1345 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1346 --without-toolkit-scroll-bars
1347 don't use Motif or Xaw3d scroll bars
1348 --without-xim don't use X11 XIM
1349 --without-carbon don't use Carbon GUI on Mac OS X
1350 --with-x use the X Window System
1351
1352 Some influential environment variables:
1353 CC C compiler command
1354 CFLAGS C compiler flags
1355 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1356 nonstandard directory <lib dir>
1357 LIBS libraries to pass to the linker, e.g. -l<library>
1358 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1359 you have headers in a nonstandard directory <include dir>
1360 CPP C preprocessor
1361 XMKMF Path to xmkmf, Makefile generator for X Window System
1362
1363 Use these variables to override the choices made by `configure' or to help
1364 it to find libraries and programs with nonstandard names/locations.
1365
1366 _ACEOF
1367 ac_status=$?
1368 fi
1369
1370 if test "$ac_init_help" = "recursive"; then
1371 # If there are subdirs, report their specific --help.
1372 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1373 test -d "$ac_dir" || continue
1374 ac_builddir=.
1375
1376 case "$ac_dir" in
1377 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1378 *)
1379 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1380 # A ".." for each directory in $ac_dir_suffix.
1381 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1382 case $ac_top_builddir_sub in
1383 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1384 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1385 esac ;;
1386 esac
1387 ac_abs_top_builddir=$ac_pwd
1388 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1389 # for backward compatibility:
1390 ac_top_builddir=$ac_top_build_prefix
1391
1392 case $srcdir in
1393 .) # We are building in place.
1394 ac_srcdir=.
1395 ac_top_srcdir=$ac_top_builddir_sub
1396 ac_abs_top_srcdir=$ac_pwd ;;
1397 [\\/]* | ?:[\\/]* ) # Absolute name.
1398 ac_srcdir=$srcdir$ac_dir_suffix;
1399 ac_top_srcdir=$srcdir
1400 ac_abs_top_srcdir=$srcdir ;;
1401 *) # Relative name.
1402 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1403 ac_top_srcdir=$ac_top_build_prefix$srcdir
1404 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1405 esac
1406 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1407
1408 cd "$ac_dir" || { ac_status=$?; continue; }
1409 # Check for guested configure.
1410 if test -f "$ac_srcdir/configure.gnu"; then
1411 echo &&
1412 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1413 elif test -f "$ac_srcdir/configure"; then
1414 echo &&
1415 $SHELL "$ac_srcdir/configure" --help=recursive
1416 else
1417 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1418 fi || ac_status=$?
1419 cd "$ac_pwd" || { ac_status=$?; break; }
1420 done
1421 fi
1422
1423 test -n "$ac_init_help" && exit $ac_status
1424 if $ac_init_version; then
1425 cat <<\_ACEOF
1426 configure
1427 generated by GNU Autoconf 2.61
1428
1429 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1430 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1431 This configure script is free software; the Free Software Foundation
1432 gives unlimited permission to copy, distribute and modify it.
1433 _ACEOF
1434 exit
1435 fi
1436 cat >config.log <<_ACEOF
1437 This file contains any messages produced by compilers while
1438 running configure, to aid debugging if configure makes a mistake.
1439
1440 It was created by $as_me, which was
1441 generated by GNU Autoconf 2.61. Invocation command line was
1442
1443 $ $0 $@
1444
1445 _ACEOF
1446 exec 5>>config.log
1447 {
1448 cat <<_ASUNAME
1449 ## --------- ##
1450 ## Platform. ##
1451 ## --------- ##
1452
1453 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1454 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1455 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1456 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1457 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1458
1459 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1460 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1461
1462 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1463 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1464 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1465 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1466 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1467 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1468 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1469
1470 _ASUNAME
1471
1472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1473 for as_dir in $PATH
1474 do
1475 IFS=$as_save_IFS
1476 test -z "$as_dir" && as_dir=.
1477 echo "PATH: $as_dir"
1478 done
1479 IFS=$as_save_IFS
1480
1481 } >&5
1482
1483 cat >&5 <<_ACEOF
1484
1485
1486 ## ----------- ##
1487 ## Core tests. ##
1488 ## ----------- ##
1489
1490 _ACEOF
1491
1492
1493 # Keep a trace of the command line.
1494 # Strip out --no-create and --no-recursion so they do not pile up.
1495 # Strip out --silent because we don't want to record it for future runs.
1496 # Also quote any args containing shell meta-characters.
1497 # Make two passes to allow for proper duplicate-argument suppression.
1498 ac_configure_args=
1499 ac_configure_args0=
1500 ac_configure_args1=
1501 ac_must_keep_next=false
1502 for ac_pass in 1 2
1503 do
1504 for ac_arg
1505 do
1506 case $ac_arg in
1507 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1508 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1509 | -silent | --silent | --silen | --sile | --sil)
1510 continue ;;
1511 *\'*)
1512 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1513 esac
1514 case $ac_pass in
1515 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1516 2)
1517 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1518 if test $ac_must_keep_next = true; then
1519 ac_must_keep_next=false # Got value, back to normal.
1520 else
1521 case $ac_arg in
1522 *=* | --config-cache | -C | -disable-* | --disable-* \
1523 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1524 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1525 | -with-* | --with-* | -without-* | --without-* | --x)
1526 case "$ac_configure_args0 " in
1527 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1528 esac
1529 ;;
1530 -* ) ac_must_keep_next=true ;;
1531 esac
1532 fi
1533 ac_configure_args="$ac_configure_args '$ac_arg'"
1534 ;;
1535 esac
1536 done
1537 done
1538 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1539 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1540
1541 # When interrupted or exit'd, cleanup temporary files, and complete
1542 # config.log. We remove comments because anyway the quotes in there
1543 # would cause problems or look ugly.
1544 # WARNING: Use '\'' to represent an apostrophe within the trap.
1545 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1546 trap 'exit_status=$?
1547 # Save into config.log some information that might help in debugging.
1548 {
1549 echo
1550
1551 cat <<\_ASBOX
1552 ## ---------------- ##
1553 ## Cache variables. ##
1554 ## ---------------- ##
1555 _ASBOX
1556 echo
1557 # The following way of writing the cache mishandles newlines in values,
1558 (
1559 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1560 eval ac_val=\$$ac_var
1561 case $ac_val in #(
1562 *${as_nl}*)
1563 case $ac_var in #(
1564 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1565 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1566 esac
1567 case $ac_var in #(
1568 _ | IFS | as_nl) ;; #(
1569 *) $as_unset $ac_var ;;
1570 esac ;;
1571 esac
1572 done
1573 (set) 2>&1 |
1574 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1575 *${as_nl}ac_space=\ *)
1576 sed -n \
1577 "s/'\''/'\''\\\\'\'''\''/g;
1578 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1579 ;; #(
1580 *)
1581 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1582 ;;
1583 esac |
1584 sort
1585 )
1586 echo
1587
1588 cat <<\_ASBOX
1589 ## ----------------- ##
1590 ## Output variables. ##
1591 ## ----------------- ##
1592 _ASBOX
1593 echo
1594 for ac_var in $ac_subst_vars
1595 do
1596 eval ac_val=\$$ac_var
1597 case $ac_val in
1598 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1599 esac
1600 echo "$ac_var='\''$ac_val'\''"
1601 done | sort
1602 echo
1603
1604 if test -n "$ac_subst_files"; then
1605 cat <<\_ASBOX
1606 ## ------------------- ##
1607 ## File substitutions. ##
1608 ## ------------------- ##
1609 _ASBOX
1610 echo
1611 for ac_var in $ac_subst_files
1612 do
1613 eval ac_val=\$$ac_var
1614 case $ac_val in
1615 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1616 esac
1617 echo "$ac_var='\''$ac_val'\''"
1618 done | sort
1619 echo
1620 fi
1621
1622 if test -s confdefs.h; then
1623 cat <<\_ASBOX
1624 ## ----------- ##
1625 ## confdefs.h. ##
1626 ## ----------- ##
1627 _ASBOX
1628 echo
1629 cat confdefs.h
1630 echo
1631 fi
1632 test "$ac_signal" != 0 &&
1633 echo "$as_me: caught signal $ac_signal"
1634 echo "$as_me: exit $exit_status"
1635 } >&5
1636 rm -f core *.core core.conftest.* &&
1637 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1638 exit $exit_status
1639 ' 0
1640 for ac_signal in 1 2 13 15; do
1641 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1642 done
1643 ac_signal=0
1644
1645 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1646 rm -f -r conftest* confdefs.h
1647
1648 # Predefined preprocessor variables.
1649
1650 cat >>confdefs.h <<_ACEOF
1651 #define PACKAGE_NAME "$PACKAGE_NAME"
1652 _ACEOF
1653
1654
1655 cat >>confdefs.h <<_ACEOF
1656 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1657 _ACEOF
1658
1659
1660 cat >>confdefs.h <<_ACEOF
1661 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1662 _ACEOF
1663
1664
1665 cat >>confdefs.h <<_ACEOF
1666 #define PACKAGE_STRING "$PACKAGE_STRING"
1667 _ACEOF
1668
1669
1670 cat >>confdefs.h <<_ACEOF
1671 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1672 _ACEOF
1673
1674
1675 # Let the site file select an alternate cache file if it wants to.
1676 # Prefer explicitly selected file to automatically selected ones.
1677 if test -n "$CONFIG_SITE"; then
1678 set x "$CONFIG_SITE"
1679 elif test "x$prefix" != xNONE; then
1680 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1681 else
1682 set x "$ac_default_prefix/share/config.site" \
1683 "$ac_default_prefix/etc/config.site"
1684 fi
1685 shift
1686 for ac_site_file
1687 do
1688 if test -r "$ac_site_file"; then
1689 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1690 echo "$as_me: loading site script $ac_site_file" >&6;}
1691 sed 's/^/| /' "$ac_site_file" >&5
1692 . "$ac_site_file"
1693 fi
1694 done
1695
1696 if test -r "$cache_file"; then
1697 # Some versions of bash will fail to source /dev/null (special
1698 # files actually), so we avoid doing that.
1699 if test -f "$cache_file"; then
1700 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1701 echo "$as_me: loading cache $cache_file" >&6;}
1702 case $cache_file in
1703 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1704 *) . "./$cache_file";;
1705 esac
1706 fi
1707 else
1708 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1709 echo "$as_me: creating cache $cache_file" >&6;}
1710 >$cache_file
1711 fi
1712
1713 ac_header_list="$ac_header_list sys/time.h"
1714 ac_header_list="$ac_header_list unistd.h"
1715 ac_func_list="$ac_func_list alarm"
1716 # Check that the precious variables saved in the cache have kept the same
1717 # value.
1718 ac_cache_corrupted=false
1719 for ac_var in $ac_precious_vars; do
1720 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1721 eval ac_new_set=\$ac_env_${ac_var}_set
1722 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1723 eval ac_new_val=\$ac_env_${ac_var}_value
1724 case $ac_old_set,$ac_new_set in
1725 set,)
1726 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1727 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1728 ac_cache_corrupted=: ;;
1729 ,set)
1730 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1731 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1732 ac_cache_corrupted=: ;;
1733 ,);;
1734 *)
1735 if test "x$ac_old_val" != "x$ac_new_val"; then
1736 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1737 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1738 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1739 echo "$as_me: former value: $ac_old_val" >&2;}
1740 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1741 echo "$as_me: current value: $ac_new_val" >&2;}
1742 ac_cache_corrupted=:
1743 fi;;
1744 esac
1745 # Pass precious variables to config.status.
1746 if test "$ac_new_set" = set; then
1747 case $ac_new_val in
1748 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1749 *) ac_arg=$ac_var=$ac_new_val ;;
1750 esac
1751 case " $ac_configure_args " in
1752 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1753 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1754 esac
1755 fi
1756 done
1757 if $ac_cache_corrupted; then
1758 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1759 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1760 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1761 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1762 { (exit 1); exit 1; }; }
1763 fi
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781 ac_ext=c
1782 ac_cpp='$CPP $CPPFLAGS'
1783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1786
1787
1788 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1789
1790
1791 test "$program_prefix" != NONE &&
1792 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1793 # Use a double $ so make ignores it.
1794 test "$program_suffix" != NONE &&
1795 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1796 # Double any \ or $. echo might interpret backslashes.
1797 # By default was `s,x,x', remove it if useless.
1798 cat <<\_ACEOF >conftest.sed
1799 s/[\\$]/&&/g;s/;s,x,x,$//
1800 _ACEOF
1801 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1802 rm -f conftest.sed
1803
1804
1805 lispdir='${datadir}/emacs/${version}/lisp'
1806 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1807 '${datadir}/emacs/site-lisp'
1808 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1809 etcdir='${datadir}/emacs/${version}/etc'
1810 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1811 docdir='${datadir}/emacs/${version}/etc'
1812 gamedir='${localstatedir}/games/emacs'
1813
1814 gameuser=games
1815
1816
1817 # Check whether --with-gcc was given.
1818 if test "${with_gcc+set}" = set; then
1819 withval=$with_gcc;
1820 fi
1821
1822
1823 # Check whether --with-pop was given.
1824 if test "${with_pop+set}" = set; then
1825 withval=$with_pop; if test "$withval" = yes; then
1826 cat >>confdefs.h <<\_ACEOF
1827 #define MAIL_USE_POP 1
1828 _ACEOF
1829
1830 else :
1831 fi
1832 else
1833 cat >>confdefs.h <<\_ACEOF
1834 #define MAIL_USE_POP 1
1835 _ACEOF
1836
1837 fi
1838
1839
1840
1841 # Check whether --with-kerberos was given.
1842 if test "${with_kerberos+set}" = set; then
1843 withval=$with_kerberos; if test "$withval" = yes; then
1844 cat >>confdefs.h <<\_ACEOF
1845 #define KERBEROS 1
1846 _ACEOF
1847
1848 fi
1849 fi
1850
1851
1852
1853 # Check whether --with-kerberos5 was given.
1854 if test "${with_kerberos5+set}" = set; then
1855 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1856 if test "${with_kerberos+set}" != set; then
1857 with_kerberos=yes
1858 cat >>confdefs.h <<\_ACEOF
1859 #define KERBEROS 1
1860 _ACEOF
1861
1862 fi
1863
1864 cat >>confdefs.h <<\_ACEOF
1865 #define KERBEROS5 1
1866 _ACEOF
1867
1868 fi
1869 fi
1870
1871
1872 # Check whether --with-hesiod was given.
1873 if test "${with_hesiod+set}" = set; then
1874 withval=$with_hesiod; if test "$withval" = yes; then
1875
1876 cat >>confdefs.h <<\_ACEOF
1877 #define HESIOD 1
1878 _ACEOF
1879
1880 fi
1881 fi
1882
1883
1884
1885 # Check whether --with-sound was given.
1886 if test "${with_sound+set}" = set; then
1887 withval=$with_sound;
1888 fi
1889
1890
1891
1892 # Check whether --with-x-toolkit was given.
1893 if test "${with_x_toolkit+set}" = set; then
1894 withval=$with_x_toolkit; case "${withval}" in
1895 y | ye | yes ) val=gtk ;;
1896 n | no ) val=no ;;
1897 l | lu | luc | luci | lucid ) val=lucid ;;
1898 a | at | ath | athe | athen | athena ) val=athena ;;
1899 m | mo | mot | moti | motif ) val=motif ;;
1900 g | gt | gtk ) val=gtk ;;
1901 * )
1902 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1903 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1904 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1905 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1906 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1907 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1908 { (exit 1); exit 1; }; }
1909 ;;
1910 esac
1911 with_x_toolkit=$val
1912
1913 fi
1914
1915
1916 # Check whether --with-xpm was given.
1917 if test "${with_xpm+set}" = set; then
1918 withval=$with_xpm;
1919 fi
1920
1921
1922 # Check whether --with-jpeg was given.
1923 if test "${with_jpeg+set}" = set; then
1924 withval=$with_jpeg;
1925 fi
1926
1927
1928 # Check whether --with-tiff was given.
1929 if test "${with_tiff+set}" = set; then
1930 withval=$with_tiff;
1931 fi
1932
1933
1934 # Check whether --with-gif was given.
1935 if test "${with_gif+set}" = set; then
1936 withval=$with_gif;
1937 fi
1938
1939
1940 # Check whether --with-png was given.
1941 if test "${with_png+set}" = set; then
1942 withval=$with_png;
1943 fi
1944
1945
1946 # Check whether --with-gpm was given.
1947 if test "${with_gpm+set}" = set; then
1948 withval=$with_gpm;
1949 fi
1950
1951
1952 # Check whether --with-gtk was given.
1953 if test "${with_gtk+set}" = set; then
1954 withval=$with_gtk;
1955 fi
1956
1957
1958 # Check whether --with-pkg-config-prog was given.
1959 if test "${with_pkg_config_prog+set}" = set; then
1960 withval=$with_pkg_config_prog;
1961 fi
1962
1963
1964 # Check whether --with-toolkit-scroll-bars was given.
1965 if test "${with_toolkit_scroll_bars+set}" = set; then
1966 withval=$with_toolkit_scroll_bars;
1967 fi
1968
1969
1970 # Check whether --with-xim was given.
1971 if test "${with_xim+set}" = set; then
1972 withval=$with_xim;
1973 fi
1974
1975
1976 # Check whether --with-carbon was given.
1977 if test "${with_carbon+set}" = set; then
1978 withval=$with_carbon;
1979 fi
1980
1981 # Check whether --enable-carbon-app was given.
1982 if test "${enable_carbon_app+set}" = set; then
1983 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1984 fi
1985
1986
1987 # Check whether --enable-asserts was given.
1988 if test "${enable_asserts+set}" = set; then
1989 enableval=$enable_asserts; USE_XASSERTS=$enableval
1990 else
1991 USE_XASSERTS=no
1992 fi
1993
1994
1995 # Check whether --enable-maintainer-mode was given.
1996 if test "${enable_maintainer_mode+set}" = set; then
1997 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1998 else
1999 USE_MAINTAINER_MODE=no
2000 fi
2001
2002 if test $USE_MAINTAINER_MODE = yes; then
2003 MAINT=
2004 else
2005 MAINT=#
2006 fi
2007
2008
2009 # Check whether --enable-locallisppath was given.
2010 if test "${enable_locallisppath+set}" = set; then
2011 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2012 locallisppath=
2013 elif test "${enableval}" != "yes"; then
2014 locallisppath=${enableval}
2015 fi
2016 fi
2017
2018
2019 #### Make srcdir absolute, if it isn't already. It's important to
2020 #### avoid running the path through pwd unnecessarily, since pwd can
2021 #### give you automounter prefixes, which can go away. We do all this
2022 #### so Emacs can find its files when run uninstalled.
2023 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2024 unset CDPATH
2025 case "${srcdir}" in
2026 /* ) ;;
2027 . )
2028 ## We may be able to use the $PWD environment variable to make this
2029 ## absolute. But sometimes PWD is inaccurate.
2030 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2031 ## but that tested only for a well-formed and valid PWD,
2032 ## it did not object when PWD was well-formed and valid but just wrong.
2033 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2034 then
2035 srcdir="$PWD"
2036 else
2037 srcdir="`(cd ${srcdir}; pwd)`"
2038 fi
2039 ;;
2040 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2041 esac
2042
2043 #### Check if the source directory already has a configured system in it.
2044 if test `pwd` != `(cd ${srcdir} && pwd)` \
2045 && test -f "${srcdir}/src/config.h" ; then
2046 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2047 as a build directory right now; it has been configured in its own
2048 right. To configure in another directory as well, you MUST
2049 use GNU make. If you do not have GNU make, then you must
2050 now do \`make distclean' in ${srcdir},
2051 and then run $0 again." >&5
2052 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2053 as a build directory right now; it has been configured in its own
2054 right. To configure in another directory as well, you MUST
2055 use GNU make. If you do not have GNU make, then you must
2056 now do \`make distclean' in ${srcdir},
2057 and then run $0 again." >&2;}
2058 fi
2059
2060 #### Given the configuration name, set machfile and opsysfile to the
2061 #### names of the m/*.h and s/*.h files we should use.
2062
2063 ### Canonicalize the configuration name.
2064
2065 ac_aux_dir=
2066 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2067 if test -f "$ac_dir/install-sh"; then
2068 ac_aux_dir=$ac_dir
2069 ac_install_sh="$ac_aux_dir/install-sh -c"
2070 break
2071 elif test -f "$ac_dir/install.sh"; then
2072 ac_aux_dir=$ac_dir
2073 ac_install_sh="$ac_aux_dir/install.sh -c"
2074 break
2075 elif test -f "$ac_dir/shtool"; then
2076 ac_aux_dir=$ac_dir
2077 ac_install_sh="$ac_aux_dir/shtool install -c"
2078 break
2079 fi
2080 done
2081 if test -z "$ac_aux_dir"; then
2082 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2083 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2084 { (exit 1); exit 1; }; }
2085 fi
2086
2087 # These three variables are undocumented and unsupported,
2088 # and are intended to be withdrawn in a future Autoconf release.
2089 # They can cause serious problems if a builder's source tree is in a directory
2090 # whose full name contains unusual characters.
2091 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2092 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2093 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2094
2095
2096 # Make sure we can run config.sub.
2097 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2098 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2099 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2100 { (exit 1); exit 1; }; }
2101
2102 { echo "$as_me:$LINENO: checking build system type" >&5
2103 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2104 if test "${ac_cv_build+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2106 else
2107 ac_build_alias=$build_alias
2108 test "x$ac_build_alias" = x &&
2109 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2110 test "x$ac_build_alias" = x &&
2111 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2112 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2113 { (exit 1); exit 1; }; }
2114 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2115 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2116 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2117 { (exit 1); exit 1; }; }
2118
2119 fi
2120 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2121 echo "${ECHO_T}$ac_cv_build" >&6; }
2122 case $ac_cv_build in
2123 *-*-*) ;;
2124 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2125 echo "$as_me: error: invalid value of canonical build" >&2;}
2126 { (exit 1); exit 1; }; };;
2127 esac
2128 build=$ac_cv_build
2129 ac_save_IFS=$IFS; IFS='-'
2130 set x $ac_cv_build
2131 shift
2132 build_cpu=$1
2133 build_vendor=$2
2134 shift; shift
2135 # Remember, the first character of IFS is used to create $*,
2136 # except with old shells:
2137 build_os=$*
2138 IFS=$ac_save_IFS
2139 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2140
2141
2142 { echo "$as_me:$LINENO: checking host system type" >&5
2143 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2144 if test "${ac_cv_host+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2146 else
2147 if test "x$host_alias" = x; then
2148 ac_cv_host=$ac_cv_build
2149 else
2150 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2151 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2152 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2153 { (exit 1); exit 1; }; }
2154 fi
2155
2156 fi
2157 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2158 echo "${ECHO_T}$ac_cv_host" >&6; }
2159 case $ac_cv_host in
2160 *-*-*) ;;
2161 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2162 echo "$as_me: error: invalid value of canonical host" >&2;}
2163 { (exit 1); exit 1; }; };;
2164 esac
2165 host=$ac_cv_host
2166 ac_save_IFS=$IFS; IFS='-'
2167 set x $ac_cv_host
2168 shift
2169 host_cpu=$1
2170 host_vendor=$2
2171 shift; shift
2172 # Remember, the first character of IFS is used to create $*,
2173 # except with old shells:
2174 host_os=$*
2175 IFS=$ac_save_IFS
2176 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2177
2178
2179 canonical=$host
2180 configuration=${host_alias-${build_alias-$host}}
2181
2182
2183
2184 ### If you add support for a new configuration, add code to this
2185 ### switch statement to recognize your configuration name and select
2186 ### the appropriate operating system and machine description files.
2187
2188 ### You would hope that you could choose an m/*.h file pretty much
2189 ### based on the machine portion of the configuration name, and an s-
2190 ### file based on the operating system portion. However, it turns out
2191 ### that each m/*.h file is pretty manufacturer-specific - for
2192 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2193 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2194 ### machines. So we basically have to have a special case for each
2195 ### configuration name.
2196 ###
2197 ### As far as handling version numbers on operating systems is
2198 ### concerned, make sure things will fail in a fixable way. If
2199 ### /etc/MACHINES doesn't say anything about version numbers, be
2200 ### prepared to handle anything reasonably. If version numbers
2201 ### matter, be sure /etc/MACHINES says something about it.
2202 ###
2203 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2204 ### "System V Release 4"; he writes, "The old convention encouraged
2205 ### confusion between `system' and `release' levels'."
2206
2207 machine='' opsys='' unported=no
2208 case "${canonical}" in
2209
2210 ## FreeBSD ports
2211 *-*-freebsd* )
2212 opsys=freebsd
2213 case "${canonical}" in
2214 alpha*-*-freebsd*) machine=alpha ;;
2215 ia64-*-freebsd*) machine=ia64 ;;
2216 sparc64-*-freebsd*) machine=sparc ;;
2217 powerpc-*-freebsd*) machine=macppc ;;
2218 i[3456]86-*-freebsd*) machine=intel386 ;;
2219 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2220 esac
2221 ;;
2222
2223 ## NetBSD ports
2224 *-*-netbsd* )
2225 opsys=netbsd
2226 if test -f /usr/lib/crti.o; then
2227
2228 cat >>confdefs.h <<\_ACEOF
2229 #define HAVE_CRTIN
2230 _ACEOF
2231
2232 fi
2233
2234 case "${canonical}" in
2235 alpha*-*-netbsd*) machine=alpha ;;
2236 i[3456]86-*-netbsd*) machine=intel386 ;;
2237 m68k-*-netbsd*)
2238 # This is somewhat bogus.
2239 machine=hp9000s300 ;;
2240 mips-*-netbsd*) machine=pmax ;;
2241 mipsel-*-netbsd*) machine=pmax ;;
2242 mipseb-*-netbsd*) machine=pmax ;;
2243 ns32k-*-netbsd*) machine=ns32000 ;;
2244 powerpc-*-netbsd*) machine=macppc ;;
2245 sparc*-*-netbsd*) machine=sparc ;;
2246 vax-*-netbsd*) machine=vax ;;
2247 arm-*-netbsd*) machine=arm ;;
2248 x86_64-*-netbsd*) machine=amdx86-64 ;;
2249 hppa-*-netbsd*) machine=hp800 ;;
2250 shle-*-netbsd*) machine=sh3el ;;
2251 esac
2252 ;;
2253
2254 ## OpenBSD ports
2255 *-*-openbsd* )
2256 opsys=openbsd
2257 case "${canonical}" in
2258 alpha*-*-openbsd*) machine=alpha ;;
2259 arm-*-openbsd*) machine=arm ;;
2260 hppa-*-openbsd*) machine=hp9000s300 ;;
2261 i386-*-openbsd*) machine=intel386 ;;
2262 m68k-*-openbsd*) machine=hp9000s300 ;;
2263 m88k-*-openbsd*) machine=aviion ;;
2264 mips64-*-openbsd*) machine=mips64 ;;
2265 powerpc-*-openbsd*) machine=macppc ;;
2266 sh-*-openbsd*) machine=sh3el ;;
2267 sparc*-*-openbsd*) machine=sparc ;;
2268 vax-*-openbsd*) machine=vax ;;
2269 x86_64-*-openbsd*) machine=amdx86-64 ;;
2270 esac
2271 ;;
2272
2273 ## LynxOS ports
2274 *-*-lynxos* )
2275 opsys=lynxos
2276 case "${canonical}" in
2277 i[3456]86-*-lynxos*) machine=intel386 ;;
2278 powerpc-*-lynxos*) machine=powerpc ;;
2279 esac
2280 ;;
2281
2282 ## Acorn RISCiX:
2283 arm-acorn-riscix1.1* )
2284 machine=acorn opsys=riscix1-1
2285 ;;
2286 arm-acorn-riscix1.2* | arm-acorn-riscix )
2287 ## This name is riscix12 instead of riscix1.2
2288 ## to avoid a file name conflict on MSDOS.
2289 machine=acorn opsys=riscix12
2290 ;;
2291
2292 ## BSDI ports
2293 *-*-bsdi* )
2294 opsys=bsdi
2295 case "${canonical}" in
2296 i[345]86-*-bsdi*) machine=intel386 ;;
2297 sparc-*-bsdi*) machine=sparc ;;
2298 powerpc-*-bsdi*) machine=macppc ;;
2299 esac
2300 case "${canonical}" in
2301 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2302 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2303 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2304 *-*-bsdi3* ) opsys=bsdos3 ;;
2305 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2306 esac
2307 ;;
2308
2309 ## Alliant machines
2310 ## Strictly speaking, we need the version of the alliant operating
2311 ## system to choose the right machine file, but currently the
2312 ## configuration name doesn't tell us enough to choose the right
2313 ## one; we need to give alliants their own operating system name to
2314 ## do this right. When someone cares, they can help us.
2315 fx80-alliant-* )
2316 machine=alliant4 opsys=bsd4-2
2317 ;;
2318 i860-alliant-* )
2319 machine=alliant-2800 opsys=bsd4-3
2320 ;;
2321
2322 ## Alpha (DEC) machines.
2323 alpha*-dec-osf* )
2324 machine=alpha opsys=osf1
2325 # This is needed to find X11R6.1 libraries for certain tests.
2326 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2327 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2328 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2329 # due to non-traditional preprocessing with the current compiler
2330 # defaults. OSF 4 can also have that compiler version, and there
2331 # seems always to have been a usable /usr/bin/cpp.
2332 NON_GNU_CPP=/usr/bin/cpp
2333 case "${canonical}" in
2334 alpha*-dec-osf[5-9]*)
2335 opsys=osf5-0 ;;
2336 esac
2337 ;;
2338
2339 alpha*-*-linux-gnu* )
2340 machine=alpha opsys=gnu-linux
2341 ;;
2342
2343 arm*-*-linux-gnu* )
2344 machine=arm opsys=gnu-linux
2345 ;;
2346
2347 ## Altos 3068
2348 m68*-altos-sysv* )
2349 machine=altos opsys=usg5-2
2350 ;;
2351
2352 ## Amdahl UTS
2353 580-amdahl-sysv* )
2354 machine=amdahl opsys=usg5-2-2
2355 ;;
2356
2357 ## Apollo, Domain/OS
2358 m68*-apollo-* )
2359 machine=apollo opsys=bsd4-3
2360 ;;
2361
2362 ## Apple Darwin / Mac OS X
2363 *-apple-darwin* )
2364 case "${canonical}" in
2365 i[3456]86-* ) machine=intel386 ;;
2366 powerpc-* ) machine=powermac ;;
2367 * ) unported=yes ;;
2368 esac
2369 opsys=darwin
2370 # Define CPP as follows to make autoconf work correctly.
2371 CPP="${CC-cc} -E -no-cpp-precomp"
2372 # Use fink packages if available.
2373 if test -d /sw/include && test -d /sw/lib; then
2374 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2375 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2376 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2377 fi
2378 ;;
2379
2380 ## AT&T 3b2, 3b5, 3b15, 3b20
2381 we32k-att-sysv* )
2382 machine=att3b opsys=usg5-2-2
2383 ;;
2384
2385 ## AT&T 3b1 - The Mighty Unix PC!
2386 m68*-att-sysv* )
2387 machine=7300 opsys=usg5-2-2
2388 ;;
2389
2390 ## Bull dpx20
2391 rs6000-bull-bosx* )
2392 machine=ibmrs6000 opsys=aix3-2
2393 ;;
2394
2395 ## Bull dpx2
2396 m68*-bull-sysv3* )
2397 machine=dpx2 opsys=usg5-3
2398 ;;
2399
2400 ## Bull sps7
2401 m68*-bull-sysv2* )
2402 machine=sps7 opsys=usg5-2
2403 ;;
2404
2405 ## CCI 5/32, 6/32 -- see "Tahoe".
2406
2407 ## Celerity
2408 ## I don't know what configuration name to use for this; config.sub
2409 ## doesn't seem to know anything about it. Hey, Celerity users, get
2410 ## in touch with us!
2411 celerity-celerity-bsd* )
2412 machine=celerity opsys=bsd4-2
2413 ;;
2414
2415 ## Clipper
2416 ## What operating systems does this chip run that Emacs has been
2417 ## tested on?
2418 clipper-* )
2419 machine=clipper
2420 ## We'll use the catch-all code at the bottom to guess the
2421 ## operating system.
2422 ;;
2423
2424 ## Compaq Nonstop
2425 mips-compaq-nonstopux* )
2426 machine=nonstopux opsys=nonstopux
2427 ;;
2428
2429 ## Convex
2430 *-convex-bsd* | *-convex-convexos* )
2431 machine=convex opsys=bsd4-3
2432 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2433 NON_GNU_CPP="cc -E -P"
2434 ;;
2435
2436 ## Cubix QBx/386
2437 i[3456]86-cubix-sysv* )
2438 machine=intel386 opsys=usg5-3
2439 ;;
2440
2441 ## Cydra 5
2442 cydra*-cydrome-sysv* )
2443 machine=cydra5 opsys=usg5-3
2444 ;;
2445
2446 ## Data General AViiON Machines
2447 ## DG changed naming conventions with the release of 5.4.4.10, they
2448 ## dropped the initial 5.4 but left the intervening R. Because of the
2449 ## R this shouldn't conflict with older versions of the OS (which I
2450 ## think were named like dgux4.*). In addition, DG new AViiONs series
2451 ## uses either Motorola M88k or Intel Pentium CPUs.
2452 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2453 machine=aviion opsys=dgux4
2454 ;;
2455 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2456 ## This name is dgux5-4-3 instead of dgux5-4r3
2457 ## to avoid a file name conflict on MSDOS.
2458 machine=aviion opsys=dgux5-4-3
2459 ;;
2460 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2461 machine=aviion opsys=dgux5-4r2
2462 ;;
2463 m88k-dg-dgux* )
2464 machine=aviion opsys=dgux
2465 ;;
2466
2467 ## Data General AViiON Intel (x86) Machines
2468 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2469 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2470 i[345]86-dg-dguxR4* )
2471 machine=aviion-intel opsys=dgux4
2472 ;;
2473
2474 ## DECstations
2475 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2476 machine=pmax opsys=bsd4-2
2477 ;;
2478 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2479 machine=pmax opsys=bsd4-3
2480 ;;
2481 mips-dec-ultrix* )
2482 machine=pmax opsys=ultrix4-3
2483 ;;
2484 mips-dec-osf* )
2485 machine=pmax opsys=osf1
2486 ;;
2487 mips-dec-mach_bsd4.3* )
2488 machine=pmax opsys=mach-bsd4-3
2489 ;;
2490
2491 ## Motorola Delta machines
2492 m68k-motorola-sysv* | m68000-motorola-sysv* )
2493 machine=delta opsys=usg5-3
2494 if test -z "`type gnucc | grep 'not found'`"
2495 then
2496 if test -s /etc/167config
2497 then CC="gnucc -m68040"
2498 else CC="gnucc -m68881"
2499 fi
2500 else
2501 if test -z "`type gcc | grep 'not found'`"
2502 then CC=gcc
2503 else CC=cc
2504 fi
2505 fi
2506 ;;
2507 m88k-motorola-sysv4* )
2508 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2509 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2510 # I hope there are not other 4.0 versions for this machine
2511 # which really need usg5-4 instead.
2512 machine=delta88k opsys=usg5-4-2
2513 ;;
2514 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2515 machine=delta88k opsys=usg5-3
2516 ;;
2517
2518 ## Dual machines
2519 m68*-dual-sysv* )
2520 machine=dual opsys=usg5-2
2521 ;;
2522 m68*-dual-uniplus* )
2523 machine=dual opsys=unipl5-2
2524 ;;
2525
2526 ## Elxsi 6400
2527 elxsi-elxsi-sysv* )
2528 machine=elxsi opsys=usg5-2
2529 ;;
2530
2531 ## Encore machines
2532 ns16k-encore-bsd* )
2533 machine=ns16000 opsys=umax
2534 ;;
2535
2536 ## The GEC 63 - apparently, this port isn't really finished yet.
2537 # I'm sure we finished off the last of the machines, though. -- fx
2538
2539 ## Gould Power Node and NP1
2540 pn-gould-bsd4.2* )
2541 machine=gould opsys=bsd4-2
2542 ;;
2543 pn-gould-bsd4.3* )
2544 machine=gould opsys=bsd4-3
2545 ;;
2546 np1-gould-bsd* )
2547 machine=gould-np1 opsys=bsd4-3
2548 ;;
2549
2550 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2551 ## as far as Emacs is concerned).
2552 m88k-harris-cxux* )
2553 # Build needs to be different on 7.0 and later releases
2554 case "`uname -r`" in
2555 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2556 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2557 esac
2558 NON_GNU_CPP="/lib/cpp"
2559 ;;
2560 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2561 m68k-harris-cxux* )
2562 machine=nh3000 opsys=cxux
2563 ;;
2564 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2565 powerpc-harris-powerunix )
2566 machine=nh6000 opsys=powerunix
2567 NON_GNU_CPP="cc -Xo -E -P"
2568 ;;
2569 ## SR2001/SR2201 running HI-UX/MPP
2570 hppa1.1-hitachi-hiuxmpp* )
2571 machine=sr2k opsys=hiuxmpp
2572 ;;
2573 hppa1.1-hitachi-hiuxwe2* )
2574 machine=sr2k opsys=hiuxwe2
2575 ;;
2576 ## Honeywell XPS100
2577 xps*-honeywell-sysv* )
2578 machine=xps100 opsys=usg5-2
2579 ;;
2580
2581 ## HP 9000 series 200 or 300
2582 m68*-hp-bsd* )
2583 machine=hp9000s300 opsys=bsd4-3
2584 ;;
2585 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2586 m68*-hp-hpux* )
2587 case "`uname -r`" in
2588 ## Someone's system reports A.B8.05 for this.
2589 ## I wonder what other possibilities there are.
2590 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2591 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2592 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2593 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2594 *) machine=hp9000s300 opsys=hpux ;;
2595 esac
2596 ;;
2597
2598 ## HP 9000 series 700 and 800, running HP/UX
2599 hppa*-hp-hpux7* )
2600 machine=hp800 opsys=hpux
2601 ;;
2602 hppa*-hp-hpux8* )
2603 machine=hp800 opsys=hpux8
2604 ;;
2605 hppa*-hp-hpux9shr* )
2606 machine=hp800 opsys=hpux9shr
2607 ;;
2608 hppa*-hp-hpux9* )
2609 machine=hp800 opsys=hpux9
2610 ;;
2611 hppa*-hp-hpux10.2* )
2612 machine=hp800 opsys=hpux10-20
2613 ;;
2614 hppa*-hp-hpux10* )
2615 machine=hp800 opsys=hpux10
2616 ;;
2617 hppa*-hp-hpux1[1-9]* )
2618 machine=hp800 opsys=hpux11
2619 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2620 ;;
2621
2622 hppa*-*-linux-gnu* )
2623 machine=hp800 opsys=gnu-linux
2624 ;;
2625
2626 ## HP 9000 series 700 and 800, running HP/UX
2627 hppa*-hp-hpux* )
2628 ## Cross-compilation? Nah!
2629 case "`uname -r`" in
2630 ## Someone's system reports A.B8.05 for this.
2631 ## I wonder what other possibilities there are.
2632 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2633 *.08.* ) machine=hp800 opsys=hpux8 ;;
2634 *.09.* ) machine=hp800 opsys=hpux9 ;;
2635 *) machine=hp800 opsys=hpux10 ;;
2636 esac
2637 ;;
2638 hppa*-*-nextstep* )
2639 machine=hp800 opsys=nextstep
2640 ;;
2641
2642 ## Orion machines
2643 orion-orion-bsd* )
2644 machine=orion opsys=bsd4-2
2645 ;;
2646 clipper-orion-bsd* )
2647 machine=orion105 opsys=bsd4-2
2648 ;;
2649
2650 ## IBM machines
2651 i[3456]86-ibm-aix1.1* )
2652 machine=ibmps2-aix opsys=usg5-2-2
2653 ;;
2654 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2655 machine=ibmps2-aix opsys=usg5-3
2656 ;;
2657 i370-ibm-aix*)
2658 machine=ibm370aix opsys=usg5-3
2659 ;;
2660 s390-*-linux-gnu* )
2661 machine=ibms390 opsys=gnu-linux
2662 ;;
2663 s390x-*-linux-gnu* )
2664 machine=ibms390x opsys=gnu-linux
2665 ;;
2666 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2667 machine=ibmrs6000 opsys=aix3-1
2668 ;;
2669 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2670 machine=ibmrs6000 opsys=aix3-2-5
2671 ;;
2672 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2673 machine=ibmrs6000 opsys=aix4-1
2674 ;;
2675 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2676 machine=ibmrs6000 opsys=aix4-2
2677 ;;
2678 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2679 machine=ibmrs6000 opsys=aix4-2
2680 ;;
2681 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2682 machine=ibmrs6000 opsys=aix4-2
2683 ;;
2684 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2685 machine=ibmrs6000 opsys=aix4
2686 ;;
2687 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2688 machine=ibmrs6000 opsys=aix4-1
2689 ;;
2690 rs6000-ibm-aix* | powerpc-ibm-aix* )
2691 machine=ibmrs6000 opsys=aix3-2
2692 ;;
2693 romp-ibm-bsd4.3* )
2694 machine=ibmrt opsys=bsd4-3
2695 ;;
2696 romp-ibm-bsd4.2* )
2697 machine=ibmrt opsys=bsd4-2
2698 ;;
2699 romp-ibm-aos4.3* )
2700 machine=ibmrt opsys=bsd4-3
2701 ;;
2702 romp-ibm-aos4.2* )
2703 machine=ibmrt opsys=bsd4-2
2704 ;;
2705 romp-ibm-aos* )
2706 machine=ibmrt opsys=bsd4-3
2707 ;;
2708 romp-ibm-bsd* )
2709 machine=ibmrt opsys=bsd4-3
2710 ;;
2711 romp-ibm-aix* )
2712 machine=ibmrt-aix opsys=usg5-2-2
2713 ;;
2714
2715 ## Integrated Solutions `Optimum V'
2716 m68*-isi-bsd4.2* )
2717 machine=isi-ov opsys=bsd4-2
2718 ;;
2719 m68*-isi-bsd4.3* )
2720 machine=isi-ov opsys=bsd4-3
2721 ;;
2722
2723 ## Intel 386 machines where we do care about the manufacturer
2724 i[3456]86-intsys-sysv* )
2725 machine=is386 opsys=usg5-2-2
2726 ;;
2727
2728 ## Prime EXL
2729 i[3456]86-prime-sysv* )
2730 machine=i386 opsys=usg5-3
2731 ;;
2732
2733 ## Sequent Symmetry running Dynix
2734 i[3456]86-sequent-bsd* )
2735 machine=symmetry opsys=bsd4-3
2736 ;;
2737
2738 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2739 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2740 machine=sequent-ptx opsys=ptx4
2741 NON_GNU_CPP=/lib/cpp
2742 ;;
2743
2744 ## Sequent Symmetry running DYNIX/ptx
2745 ## Use the old cpp rather than the newer ANSI one.
2746 i[3456]86-sequent-ptx* )
2747 machine=sequent-ptx opsys=ptx
2748 NON_GNU_CPP="/lib/cpp"
2749 ;;
2750
2751 ## ncr machine running svr4.3.
2752 i[3456]86-ncr-sysv4.3 )
2753 machine=ncr386 opsys=usg5-4-3
2754 ;;
2755
2756 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2757 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2758 i[3456]86-ncr-sysv* )
2759 machine=ncr386 opsys=usg5-4-2
2760 ;;
2761
2762 ## Intel Paragon OSF/1
2763 i860-intel-osf1* )
2764 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2765 ;;
2766
2767 ## Intel 860
2768 i860-*-sysv4* )
2769 machine=i860 opsys=usg5-4
2770 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2771 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2772 ;;
2773
2774 ## Macintosh PowerPC
2775 powerpc*-*-linux-gnu* )
2776 machine=macppc opsys=gnu-linux
2777 ;;
2778
2779 ## Masscomp machines
2780 m68*-masscomp-rtu* )
2781 machine=masscomp opsys=rtu
2782 ;;
2783
2784 ## Megatest machines
2785 m68*-megatest-bsd* )
2786 machine=mega68 opsys=bsd4-2
2787 ;;
2788
2789 ## Workstations sold by MIPS
2790 ## This is not necessarily all workstations using the MIPS processor -
2791 ## Irises are produced by SGI, and DECstations by DEC.
2792
2793 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2794 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2795 ## it gives for choosing between the alternatives seems to be "Use
2796 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2797 ## the BSD world." I'll assume that these are instructions for
2798 ## handling two odd situations, and that every other situation
2799 ## should use mips.h and usg5-2-2, they being listed first.
2800 mips-mips-usg* )
2801 machine=mips4
2802 ## Fall through to the general code at the bottom to decide on the OS.
2803 ;;
2804 mips-mips-riscos4* )
2805 machine=mips4 opsys=bsd4-3
2806 NON_GNU_CC="cc -systype bsd43"
2807 NON_GNU_CPP="cc -systype bsd43 -E"
2808 ;;
2809 mips-mips-riscos5* )
2810 machine=mips4 opsys=riscos5
2811 NON_GNU_CC="cc -systype bsd43"
2812 NON_GNU_CPP="cc -systype bsd43 -E"
2813 ;;
2814 mips-mips-bsd* )
2815 machine=mips opsys=bsd4-3
2816 ;;
2817 mips-mips-* )
2818 machine=mips opsys=usg5-2-2
2819 ;;
2820
2821 ## NeXT
2822 m68*-next-* | m68k-*-nextstep* )
2823 machine=m68k opsys=nextstep
2824 ;;
2825
2826 ## The complete machine from National Semiconductor
2827 ns32k-ns-genix* )
2828 machine=ns32000 opsys=usg5-2
2829 ;;
2830
2831 ## NCR machines
2832 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2833 machine=tower32 opsys=usg5-2-2
2834 ;;
2835 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2836 machine=tower32v3 opsys=usg5-3
2837 ;;
2838
2839 ## NEC EWS4800
2840 mips-nec-sysv4*)
2841 machine=ews4800 opsys=ux4800
2842 ;;
2843
2844 ## Nixdorf Targon 31
2845 m68*-nixdorf-sysv* )
2846 machine=targon31 opsys=usg5-2-2
2847 ;;
2848
2849 ## Nu (TI or LMI)
2850 m68*-nu-sysv* )
2851 machine=nu opsys=usg5-2
2852 ;;
2853
2854 ## Plexus
2855 m68*-plexus-sysv* )
2856 machine=plexus opsys=usg5-2
2857 ;;
2858
2859 ## Pyramid machines
2860 ## I don't really have any idea what sort of processor the Pyramid has,
2861 ## so I'm assuming it is its own architecture.
2862 pyramid-pyramid-bsd* )
2863 machine=pyramid opsys=bsd4-2
2864 ;;
2865
2866 ## Sequent Balance
2867 ns32k-sequent-bsd4.2* )
2868 machine=sequent opsys=bsd4-2
2869 ;;
2870 ns32k-sequent-bsd4.3* )
2871 machine=sequent opsys=bsd4-3
2872 ;;
2873
2874 ## Siemens Nixdorf
2875 mips-siemens-sysv* | mips-sni-sysv*)
2876 machine=mips-siemens opsys=usg5-4
2877 NON_GNU_CC=/usr/ccs/bin/cc
2878 NON_GNU_CPP=/usr/ccs/lib/cpp
2879 ;;
2880
2881 ## Silicon Graphics machines
2882 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2883 m68*-sgi-iris3.5* )
2884 machine=irist opsys=iris3-5
2885 ;;
2886 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2887 machine=irist opsys=iris3-6
2888 ;;
2889 ## Iris 4D
2890 mips-sgi-irix3* )
2891 machine=iris4d opsys=irix3-3
2892 ;;
2893 mips-sgi-irix4* )
2894 machine=iris4d opsys=irix4-0
2895 ;;
2896 mips-sgi-irix6.5 )
2897 machine=iris4d opsys=irix6-5
2898 # Without defining _LANGUAGE_C, things get masked out in the headers
2899 # so that, for instance, grepping for `free' in stdlib.h fails and
2900 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2901 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2902 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2903 ;;
2904 mips-sgi-irix6* )
2905 machine=iris4d opsys=irix6-0
2906 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2907 # but presumably it does no harm.
2908 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2909 # -32 probably isn't necessary in later v.6s -- anyone know which?
2910 NON_GCC_TEST_OPTIONS=-32
2911 ;;
2912 mips-sgi-irix5.[01]* )
2913 machine=iris4d opsys=irix5-0
2914 ;;
2915 mips-sgi-irix5* | mips-sgi-irix* )
2916 machine=iris4d opsys=irix5-2
2917 ;;
2918
2919 ## SONY machines
2920 m68*-sony-bsd4.2* )
2921 machine=news opsys=bsd4-2
2922 ;;
2923 m68*-sony-bsd4.3* )
2924 machine=news opsys=bsd4-3
2925 ;;
2926 m68*-sony-newsos3* | m68*-sony-news3*)
2927 machine=news opsys=bsd4-3
2928 ;;
2929 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2930 machine=news-risc opsys=bsd4-3
2931 ;;
2932 mips-sony-newsos6* )
2933 machine=news-r6 opsys=newsos6
2934 ;;
2935 mips-sony-news* )
2936 machine=news-risc opsys=newsos5
2937 ;;
2938
2939 ## Stride
2940 m68*-stride-sysv* )
2941 machine=stride opsys=usg5-2
2942 ;;
2943
2944 ## Suns
2945 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2946 machine=sparc opsys=gnu-linux
2947 ;;
2948
2949 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2950 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2951 | rs6000-*-solaris2*)
2952 case "${canonical}" in
2953 m68*-sunos1* ) machine=sun1 ;;
2954 m68*-sunos2* ) machine=sun2 ;;
2955 m68* ) machine=sun3 ;;
2956 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2957 i[3456]86-*-* ) machine=intel386 ;;
2958 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2959 powerpcle* ) machine=powerpcle ;;
2960 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2961 sparc* ) machine=sparc ;;
2962 * ) unported=yes ;;
2963 esac
2964 case "${canonical}" in
2965 ## The Sun386 didn't get past 4.0.
2966 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2967 *-sunos4.0* ) opsys=sunos4-0 ;;
2968 *-sunos4.1.[3-9]*noshare )
2969 ## This name is sunos413 instead of sunos4-1-3
2970 ## to avoid a file name conflict on MSDOS.
2971 opsys=sunos413
2972 NON_GNU_CPP=/usr/lib/cpp
2973 NON_GCC_TEST_OPTIONS=-Bstatic
2974 GCC_TEST_OPTIONS=-static
2975 ;;
2976 *-sunos4.1.[3-9]* | *-sunos4shr*)
2977 opsys=sunos4shr
2978 NON_GNU_CPP=/usr/lib/cpp
2979 ;;
2980 *-sunos4* | *-sunos )
2981 opsys=sunos4-1
2982 NON_GCC_TEST_OPTIONS=-Bstatic
2983 GCC_TEST_OPTIONS=-static
2984 ;;
2985 *-sunos5.3* | *-solaris2.3* )
2986 opsys=sol2-3
2987 NON_GNU_CPP=/usr/ccs/lib/cpp
2988 ;;
2989 *-sunos5.4* | *-solaris2.4* )
2990 opsys=sol2-4
2991 NON_GNU_CPP=/usr/ccs/lib/cpp
2992 RANLIB="ar -ts"
2993 ;;
2994 *-sunos5.5* | *-solaris2.5* )
2995 opsys=sol2-5
2996 NON_GNU_CPP=/usr/ccs/lib/cpp
2997 RANLIB="ar -ts"
2998 ;;
2999 *-sunos5.6* | *-solaris2.6* )
3000 opsys=sol2-6
3001 NON_GNU_CPP=/usr/ccs/lib/cpp
3002 RANLIB="ar -ts"
3003 ;;
3004 *-sunos5* | *-solaris* )
3005 opsys=sol2-6
3006 emacs_check_sunpro_c=yes
3007 NON_GNU_CPP=/usr/ccs/lib/cpp
3008 ;;
3009 * ) opsys=bsd4-2 ;;
3010 esac
3011 ## Watch out for a compiler that we know will not work.
3012 case "${canonical}" in
3013 *-solaris* | *-sunos5* )
3014 if [ "x$CC" = x/usr/ucb/cc ]; then
3015 ## /usr/ucb/cc doesn't work;
3016 ## we should find some other compiler that does work.
3017 unset CC
3018 fi
3019 ;;
3020 *) ;;
3021 esac
3022 ;;
3023 sparc-*-nextstep* )
3024 machine=sparc opsys=nextstep
3025 ;;
3026
3027 ## Tadpole 68k
3028 m68*-tadpole-sysv* )
3029 machine=tad68k opsys=usg5-3
3030 ;;
3031
3032 ## Tahoe machines
3033 tahoe-tahoe-bsd4.2* )
3034 machine=tahoe opsys=bsd4-2
3035 ;;
3036 tahoe-tahoe-bsd4.3* )
3037 machine=tahoe opsys=bsd4-3
3038 ;;
3039
3040 ## Tandem Integrity S2
3041 mips-tandem-sysv* )
3042 machine=tandem-s2 opsys=usg5-3
3043 ;;
3044
3045 ## Tektronix XD88
3046 m88k-tektronix-sysv3* )
3047 machine=tekxd88 opsys=usg5-3
3048 ;;
3049
3050 ## Tektronix 16000 box (6130?)
3051 ns16k-tektronix-bsd* )
3052 machine=ns16000 opsys=bsd4-2
3053 ;;
3054 ## Tektronix 4300
3055 ## src/m/tek4300.h hints that this is a m68k machine.
3056 m68*-tektronix-bsd* )
3057 machine=tek4300 opsys=bsd4-3
3058 ;;
3059
3060 ## Titan P2 or P3
3061 ## We seem to have lost the machine-description file titan.h!
3062 titan-titan-sysv* )
3063 machine=titan opsys=usg5-3
3064 ;;
3065
3066 ## Ustation E30 (SS5E)
3067 m68*-unisys-uniplus* )
3068 machine=ustation opsystem=unipl5-2
3069 ;;
3070
3071 ## Vaxen.
3072 vax-dec-* )
3073 machine=vax
3074 case "${canonical}" in
3075 *-bsd4.1* ) opsys=bsd4-1 ;;
3076 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3077 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3078 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3079 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3080 *-vms* ) opsys=vms ;;
3081 * ) unported=yes
3082 esac
3083 ;;
3084
3085 ## Whitechapel MG1
3086 ns16k-whitechapel-* )
3087 machine=mg1
3088 ## We don't know what sort of OS runs on these; we'll let the
3089 ## operating system guessing code below try.
3090 ;;
3091
3092 ## Wicat
3093 m68*-wicat-sysv* )
3094 machine=wicat opsys=usg5-2
3095 ;;
3096
3097 ## IA-64
3098 ia64*-*-linux* )
3099 machine=ia64 opsys=gnu-linux
3100 ;;
3101
3102 ## Intel 386 machines where we don't care about the manufacturer
3103 i[3456]86-*-* )
3104 machine=intel386
3105 case "${canonical}" in
3106 *-cygwin ) opsys=cygwin ;;
3107 *-darwin* ) opsys=darwin
3108 CPP="${CC-cc} -E -no-cpp-precomp"
3109 ;;
3110 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3111 *-isc2.2* ) opsys=isc2-2 ;;
3112 *-isc4.0* ) opsys=isc4-0 ;;
3113 *-isc4.* ) opsys=isc4-1
3114 GCC_TEST_OPTIONS=-posix
3115 NON_GCC_TEST_OPTIONS=-Xp
3116 ;;
3117 *-isc* ) opsys=isc3-0 ;;
3118 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3119 *-esix* ) opsys=esix ;;
3120 *-xenix* ) opsys=xenix ;;
3121 *-linux-gnu* ) opsys=gnu-linux ;;
3122 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3123 *-sco3.2v5* ) opsys=sco5
3124 NON_GNU_CPP=/lib/cpp
3125 # Prevent -belf from being passed to $CPP.
3126 # /lib/cpp does not accept it.
3127 OVERRIDE_CPPFLAGS=" "
3128 ;;
3129 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3130 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3131 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3132 *-386bsd* ) opsys=386bsd ;;
3133 *-nextstep* ) opsys=nextstep ;;
3134 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3135 esac
3136 ;;
3137
3138 ## m68k Linux-based GNU system
3139 m68k-*-linux-gnu* )
3140 machine=m68k opsys=gnu-linux
3141 ;;
3142
3143 ## Mips Linux-based GNU system
3144 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3145 machine=mips opsys=gnu-linux
3146 ;;
3147
3148 ## UXP/DS
3149 sparc-fujitsu-sysv4* )
3150 machine=sparc opsys=uxpds
3151 NON_GNU_CPP=/usr/ccs/lib/cpp
3152 RANLIB="ar -ts"
3153 ;;
3154
3155 ## UXP/V
3156 f301-fujitsu-uxpv4.1)
3157 machine=f301 opsys=uxpv
3158 ;;
3159
3160 ## AMD x86-64 Linux-based GNU system
3161 x86_64-*-linux-gnu* )
3162 machine=amdx86-64 opsys=gnu-linux
3163 ;;
3164
3165 ## Tensilica Xtensa Linux-based GNU system
3166 xtensa-*-linux-gnu* )
3167 machine=xtensa opsys=gnu-linux
3168 ;;
3169
3170 * )
3171 unported=yes
3172 ;;
3173 esac
3174
3175 ### If the code above didn't choose an operating system, just choose
3176 ### an operating system based on the configuration name. You really
3177 ### only want to use this when you have no idea what the right
3178 ### operating system is; if you know what operating systems a machine
3179 ### runs, it's cleaner to make it explicit in the case statement
3180 ### above.
3181 if test x"${opsys}" = x; then
3182 case "${canonical}" in
3183 *-gnu* ) opsys=gnu ;;
3184 *-bsd4.[01] ) opsys=bsd4-1 ;;
3185 *-bsd4.2 ) opsys=bsd4-2 ;;
3186 *-bsd4.3 ) opsys=bsd4-3 ;;
3187 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3188 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3189 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3190 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3191 *-sysv4.2uw* ) opsys=unixware ;;
3192 *-sysv5uw* ) opsys=unixware ;;
3193 *-sysv5OpenUNIX* ) opsys=unixware ;;
3194 *-sysv4.1* | *-sysvr4.1* )
3195 NON_GNU_CPP=/usr/lib/cpp
3196 opsys=usg5-4 ;;
3197 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3198 if [ x$NON_GNU_CPP = x ]; then
3199 if [ -f /usr/ccs/lib/cpp ]; then
3200 NON_GNU_CPP=/usr/ccs/lib/cpp
3201 else
3202 NON_GNU_CPP=/lib/cpp
3203 fi
3204 fi
3205 opsys=usg5-4-2 ;;
3206 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3207 * )
3208 unported=yes
3209 ;;
3210 esac
3211 fi
3212
3213
3214
3215 if test $unported = yes; then
3216 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3217 Check \`etc/MACHINES' for recognized configuration names." >&5
3218 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3219 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3220 { (exit 1); exit 1; }; }
3221 fi
3222
3223 machfile="m/${machine}.h"
3224 opsysfile="s/${opsys}.h"
3225
3226
3227 #### Choose a compiler.
3228 test -n "$CC" && cc_specified=yes
3229
3230 # Save the value of CFLAGS that the user specified.
3231 SPECIFIED_CFLAGS="$CFLAGS"
3232
3233 case ${with_gcc} in
3234 "yes" ) CC="gcc" GCC=yes ;;
3235 "no" ) : ${CC=cc} ;;
3236 * )
3237 esac
3238 ac_ext=c
3239 ac_cpp='$CPP $CPPFLAGS'
3240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3243 if test -n "$ac_tool_prefix"; then
3244 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3245 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3248 if test "${ac_cv_prog_CC+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 else
3251 if test -n "$CC"; then
3252 ac_cv_prog_CC="$CC" # Let the user override the test.
3253 else
3254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 for as_dir in $PATH
3256 do
3257 IFS=$as_save_IFS
3258 test -z "$as_dir" && as_dir=.
3259 for ac_exec_ext in '' $ac_executable_extensions; do
3260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3261 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3263 break 2
3264 fi
3265 done
3266 done
3267 IFS=$as_save_IFS
3268
3269 fi
3270 fi
3271 CC=$ac_cv_prog_CC
3272 if test -n "$CC"; then
3273 { echo "$as_me:$LINENO: result: $CC" >&5
3274 echo "${ECHO_T}$CC" >&6; }
3275 else
3276 { echo "$as_me:$LINENO: result: no" >&5
3277 echo "${ECHO_T}no" >&6; }
3278 fi
3279
3280
3281 fi
3282 if test -z "$ac_cv_prog_CC"; then
3283 ac_ct_CC=$CC
3284 # Extract the first word of "gcc", so it can be a program name with args.
3285 set dummy gcc; ac_word=$2
3286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3288 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3290 else
3291 if test -n "$ac_ct_CC"; then
3292 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3293 else
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 for as_dir in $PATH
3296 do
3297 IFS=$as_save_IFS
3298 test -z "$as_dir" && as_dir=.
3299 for ac_exec_ext in '' $ac_executable_extensions; do
3300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3301 ac_cv_prog_ac_ct_CC="gcc"
3302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3303 break 2
3304 fi
3305 done
3306 done
3307 IFS=$as_save_IFS
3308
3309 fi
3310 fi
3311 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3312 if test -n "$ac_ct_CC"; then
3313 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3314 echo "${ECHO_T}$ac_ct_CC" >&6; }
3315 else
3316 { echo "$as_me:$LINENO: result: no" >&5
3317 echo "${ECHO_T}no" >&6; }
3318 fi
3319
3320 if test "x$ac_ct_CC" = x; then
3321 CC=""
3322 else
3323 case $cross_compiling:$ac_tool_warned in
3324 yes:)
3325 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3326 whose name does not start with the host triplet. If you think this
3327 configuration is useful to you, please write to autoconf@gnu.org." >&5
3328 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3329 whose name does not start with the host triplet. If you think this
3330 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3331 ac_tool_warned=yes ;;
3332 esac
3333 CC=$ac_ct_CC
3334 fi
3335 else
3336 CC="$ac_cv_prog_CC"
3337 fi
3338
3339 if test -z "$CC"; then
3340 if test -n "$ac_tool_prefix"; then
3341 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3342 set dummy ${ac_tool_prefix}cc; ac_word=$2
3343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3345 if test "${ac_cv_prog_CC+set}" = set; then
3346 echo $ECHO_N "(cached) $ECHO_C" >&6
3347 else
3348 if test -n "$CC"; then
3349 ac_cv_prog_CC="$CC" # Let the user override the test.
3350 else
3351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352 for as_dir in $PATH
3353 do
3354 IFS=$as_save_IFS
3355 test -z "$as_dir" && as_dir=.
3356 for ac_exec_ext in '' $ac_executable_extensions; do
3357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3358 ac_cv_prog_CC="${ac_tool_prefix}cc"
3359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3360 break 2
3361 fi
3362 done
3363 done
3364 IFS=$as_save_IFS
3365
3366 fi
3367 fi
3368 CC=$ac_cv_prog_CC
3369 if test -n "$CC"; then
3370 { echo "$as_me:$LINENO: result: $CC" >&5
3371 echo "${ECHO_T}$CC" >&6; }
3372 else
3373 { echo "$as_me:$LINENO: result: no" >&5
3374 echo "${ECHO_T}no" >&6; }
3375 fi
3376
3377
3378 fi
3379 fi
3380 if test -z "$CC"; then
3381 # Extract the first word of "cc", so it can be a program name with args.
3382 set dummy cc; ac_word=$2
3383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3385 if test "${ac_cv_prog_CC+set}" = set; then
3386 echo $ECHO_N "(cached) $ECHO_C" >&6
3387 else
3388 if test -n "$CC"; then
3389 ac_cv_prog_CC="$CC" # Let the user override the test.
3390 else
3391 ac_prog_rejected=no
3392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393 for as_dir in $PATH
3394 do
3395 IFS=$as_save_IFS
3396 test -z "$as_dir" && as_dir=.
3397 for ac_exec_ext in '' $ac_executable_extensions; do
3398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3399 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3400 ac_prog_rejected=yes
3401 continue
3402 fi
3403 ac_cv_prog_CC="cc"
3404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3405 break 2
3406 fi
3407 done
3408 done
3409 IFS=$as_save_IFS
3410
3411 if test $ac_prog_rejected = yes; then
3412 # We found a bogon in the path, so make sure we never use it.
3413 set dummy $ac_cv_prog_CC
3414 shift
3415 if test $# != 0; then
3416 # We chose a different compiler from the bogus one.
3417 # However, it has the same basename, so the bogon will be chosen
3418 # first if we set CC to just the basename; use the full file name.
3419 shift
3420 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3421 fi
3422 fi
3423 fi
3424 fi
3425 CC=$ac_cv_prog_CC
3426 if test -n "$CC"; then
3427 { echo "$as_me:$LINENO: result: $CC" >&5
3428 echo "${ECHO_T}$CC" >&6; }
3429 else
3430 { echo "$as_me:$LINENO: result: no" >&5
3431 echo "${ECHO_T}no" >&6; }
3432 fi
3433
3434
3435 fi
3436 if test -z "$CC"; then
3437 if test -n "$ac_tool_prefix"; then
3438 for ac_prog in cl.exe
3439 do
3440 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3441 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3444 if test "${ac_cv_prog_CC+set}" = set; then
3445 echo $ECHO_N "(cached) $ECHO_C" >&6
3446 else
3447 if test -n "$CC"; then
3448 ac_cv_prog_CC="$CC" # Let the user override the test.
3449 else
3450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3451 for as_dir in $PATH
3452 do
3453 IFS=$as_save_IFS
3454 test -z "$as_dir" && as_dir=.
3455 for ac_exec_ext in '' $ac_executable_extensions; do
3456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3457 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3459 break 2
3460 fi
3461 done
3462 done
3463 IFS=$as_save_IFS
3464
3465 fi
3466 fi
3467 CC=$ac_cv_prog_CC
3468 if test -n "$CC"; then
3469 { echo "$as_me:$LINENO: result: $CC" >&5
3470 echo "${ECHO_T}$CC" >&6; }
3471 else
3472 { echo "$as_me:$LINENO: result: no" >&5
3473 echo "${ECHO_T}no" >&6; }
3474 fi
3475
3476
3477 test -n "$CC" && break
3478 done
3479 fi
3480 if test -z "$CC"; then
3481 ac_ct_CC=$CC
3482 for ac_prog in cl.exe
3483 do
3484 # Extract the first word of "$ac_prog", so it can be a program name with args.
3485 set dummy $ac_prog; ac_word=$2
3486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3488 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3489 echo $ECHO_N "(cached) $ECHO_C" >&6
3490 else
3491 if test -n "$ac_ct_CC"; then
3492 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3493 else
3494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3495 for as_dir in $PATH
3496 do
3497 IFS=$as_save_IFS
3498 test -z "$as_dir" && as_dir=.
3499 for ac_exec_ext in '' $ac_executable_extensions; do
3500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3501 ac_cv_prog_ac_ct_CC="$ac_prog"
3502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3503 break 2
3504 fi
3505 done
3506 done
3507 IFS=$as_save_IFS
3508
3509 fi
3510 fi
3511 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3512 if test -n "$ac_ct_CC"; then
3513 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3514 echo "${ECHO_T}$ac_ct_CC" >&6; }
3515 else
3516 { echo "$as_me:$LINENO: result: no" >&5
3517 echo "${ECHO_T}no" >&6; }
3518 fi
3519
3520
3521 test -n "$ac_ct_CC" && break
3522 done
3523
3524 if test "x$ac_ct_CC" = x; then
3525 CC=""
3526 else
3527 case $cross_compiling:$ac_tool_warned in
3528 yes:)
3529 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3530 whose name does not start with the host triplet. If you think this
3531 configuration is useful to you, please write to autoconf@gnu.org." >&5
3532 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3533 whose name does not start with the host triplet. If you think this
3534 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3535 ac_tool_warned=yes ;;
3536 esac
3537 CC=$ac_ct_CC
3538 fi
3539 fi
3540
3541 fi
3542
3543
3544 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3545 See \`config.log' for more details." >&5
3546 echo "$as_me: error: no acceptable C compiler found in \$PATH
3547 See \`config.log' for more details." >&2;}
3548 { (exit 1); exit 1; }; }
3549
3550 # Provide some information about the compiler.
3551 echo "$as_me:$LINENO: checking for C compiler version" >&5
3552 ac_compiler=`set X $ac_compile; echo $2`
3553 { (ac_try="$ac_compiler --version >&5"
3554 case "(($ac_try" in
3555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556 *) ac_try_echo=$ac_try;;
3557 esac
3558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3559 (eval "$ac_compiler --version >&5") 2>&5
3560 ac_status=$?
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); }
3563 { (ac_try="$ac_compiler -v >&5"
3564 case "(($ac_try" in
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3567 esac
3568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3569 (eval "$ac_compiler -v >&5") 2>&5
3570 ac_status=$?
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); }
3573 { (ac_try="$ac_compiler -V >&5"
3574 case "(($ac_try" in
3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3577 esac
3578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3579 (eval "$ac_compiler -V >&5") 2>&5
3580 ac_status=$?
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }
3583
3584 cat >conftest.$ac_ext <<_ACEOF
3585 /* confdefs.h. */
3586 _ACEOF
3587 cat confdefs.h >>conftest.$ac_ext
3588 cat >>conftest.$ac_ext <<_ACEOF
3589 /* end confdefs.h. */
3590
3591 int
3592 main ()
3593 {
3594
3595 ;
3596 return 0;
3597 }
3598 _ACEOF
3599 ac_clean_files_save=$ac_clean_files
3600 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3601 # Try to create an executable without -o first, disregard a.out.
3602 # It will help us diagnose broken compilers, and finding out an intuition
3603 # of exeext.
3604 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3605 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3606 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3607 #
3608 # List of possible output files, starting from the most likely.
3609 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3610 # only as a last resort. b.out is created by i960 compilers.
3611 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3612 #
3613 # The IRIX 6 linker writes into existing files which may not be
3614 # executable, retaining their permissions. Remove them first so a
3615 # subsequent execution test works.
3616 ac_rmfiles=
3617 for ac_file in $ac_files
3618 do
3619 case $ac_file in
3620 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3621 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3622 esac
3623 done
3624 rm -f $ac_rmfiles
3625
3626 if { (ac_try="$ac_link_default"
3627 case "(($ac_try" in
3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3630 esac
3631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3632 (eval "$ac_link_default") 2>&5
3633 ac_status=$?
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); }; then
3636 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3637 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3638 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3639 # so that the user can short-circuit this test for compilers unknown to
3640 # Autoconf.
3641 for ac_file in $ac_files ''
3642 do
3643 test -f "$ac_file" || continue
3644 case $ac_file in
3645 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3646 ;;
3647 [ab].out )
3648 # We found the default executable, but exeext='' is most
3649 # certainly right.
3650 break;;
3651 *.* )
3652 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3653 then :; else
3654 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3655 fi
3656 # We set ac_cv_exeext here because the later test for it is not
3657 # safe: cross compilers may not add the suffix if given an `-o'
3658 # argument, so we may need to know it at that point already.
3659 # Even if this section looks crufty: it has the advantage of
3660 # actually working.
3661 break;;
3662 * )
3663 break;;
3664 esac
3665 done
3666 test "$ac_cv_exeext" = no && ac_cv_exeext=
3667
3668 else
3669 ac_file=''
3670 fi
3671
3672 { echo "$as_me:$LINENO: result: $ac_file" >&5
3673 echo "${ECHO_T}$ac_file" >&6; }
3674 if test -z "$ac_file"; then
3675 echo "$as_me: failed program was:" >&5
3676 sed 's/^/| /' conftest.$ac_ext >&5
3677
3678 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3679 See \`config.log' for more details." >&5
3680 echo "$as_me: error: C compiler cannot create executables
3681 See \`config.log' for more details." >&2;}
3682 { (exit 77); exit 77; }; }
3683 fi
3684
3685 ac_exeext=$ac_cv_exeext
3686
3687 # Check that the compiler produces executables we can run. If not, either
3688 # the compiler is broken, or we cross compile.
3689 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3690 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3691 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3692 # If not cross compiling, check that we can run a simple program.
3693 if test "$cross_compiling" != yes; then
3694 if { ac_try='./$ac_file'
3695 { (case "(($ac_try" in
3696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697 *) ac_try_echo=$ac_try;;
3698 esac
3699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3700 (eval "$ac_try") 2>&5
3701 ac_status=$?
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); }; }; then
3704 cross_compiling=no
3705 else
3706 if test "$cross_compiling" = maybe; then
3707 cross_compiling=yes
3708 else
3709 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3710 If you meant to cross compile, use \`--host'.
3711 See \`config.log' for more details." >&5
3712 echo "$as_me: error: cannot run C compiled programs.
3713 If you meant to cross compile, use \`--host'.
3714 See \`config.log' for more details." >&2;}
3715 { (exit 1); exit 1; }; }
3716 fi
3717 fi
3718 fi
3719 { echo "$as_me:$LINENO: result: yes" >&5
3720 echo "${ECHO_T}yes" >&6; }
3721
3722 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3723 ac_clean_files=$ac_clean_files_save
3724 # Check that the compiler produces executables we can run. If not, either
3725 # the compiler is broken, or we cross compile.
3726 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3727 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3728 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3729 echo "${ECHO_T}$cross_compiling" >&6; }
3730
3731 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3732 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3733 if { (ac_try="$ac_link"
3734 case "(($ac_try" in
3735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736 *) ac_try_echo=$ac_try;;
3737 esac
3738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3739 (eval "$ac_link") 2>&5
3740 ac_status=$?
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); }; then
3743 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3744 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3745 # work properly (i.e., refer to `conftest.exe'), while it won't with
3746 # `rm'.
3747 for ac_file in conftest.exe conftest conftest.*; do
3748 test -f "$ac_file" || continue
3749 case $ac_file in
3750 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3751 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3752 break;;
3753 * ) break;;
3754 esac
3755 done
3756 else
3757 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3758 See \`config.log' for more details." >&5
3759 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3760 See \`config.log' for more details." >&2;}
3761 { (exit 1); exit 1; }; }
3762 fi
3763
3764 rm -f conftest$ac_cv_exeext
3765 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3766 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3767
3768 rm -f conftest.$ac_ext
3769 EXEEXT=$ac_cv_exeext
3770 ac_exeext=$EXEEXT
3771 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3772 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3773 if test "${ac_cv_objext+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3775 else
3776 cat >conftest.$ac_ext <<_ACEOF
3777 /* confdefs.h. */
3778 _ACEOF
3779 cat confdefs.h >>conftest.$ac_ext
3780 cat >>conftest.$ac_ext <<_ACEOF
3781 /* end confdefs.h. */
3782
3783 int
3784 main ()
3785 {
3786
3787 ;
3788 return 0;
3789 }
3790 _ACEOF
3791 rm -f conftest.o conftest.obj
3792 if { (ac_try="$ac_compile"
3793 case "(($ac_try" in
3794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795 *) ac_try_echo=$ac_try;;
3796 esac
3797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3798 (eval "$ac_compile") 2>&5
3799 ac_status=$?
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }; then
3802 for ac_file in conftest.o conftest.obj conftest.*; do
3803 test -f "$ac_file" || continue;
3804 case $ac_file in
3805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3806 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3807 break;;
3808 esac
3809 done
3810 else
3811 echo "$as_me: failed program was:" >&5
3812 sed 's/^/| /' conftest.$ac_ext >&5
3813
3814 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3815 See \`config.log' for more details." >&5
3816 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3817 See \`config.log' for more details." >&2;}
3818 { (exit 1); exit 1; }; }
3819 fi
3820
3821 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3822 fi
3823 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3824 echo "${ECHO_T}$ac_cv_objext" >&6; }
3825 OBJEXT=$ac_cv_objext
3826 ac_objext=$OBJEXT
3827 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3828 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3829 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
3831 else
3832 cat >conftest.$ac_ext <<_ACEOF
3833 /* confdefs.h. */
3834 _ACEOF
3835 cat confdefs.h >>conftest.$ac_ext
3836 cat >>conftest.$ac_ext <<_ACEOF
3837 /* end confdefs.h. */
3838
3839 int
3840 main ()
3841 {
3842 #ifndef __GNUC__
3843 choke me
3844 #endif
3845
3846 ;
3847 return 0;
3848 }
3849 _ACEOF
3850 rm -f conftest.$ac_objext
3851 if { (ac_try="$ac_compile"
3852 case "(($ac_try" in
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3855 esac
3856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857 (eval "$ac_compile") 2>conftest.er1
3858 ac_status=$?
3859 grep -v '^ *+' conftest.er1 >conftest.err
3860 rm -f conftest.er1
3861 cat conftest.err >&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } && {
3864 test -z "$ac_c_werror_flag" ||
3865 test ! -s conftest.err
3866 } && test -s conftest.$ac_objext; then
3867 ac_compiler_gnu=yes
3868 else
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3871
3872 ac_compiler_gnu=no
3873 fi
3874
3875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3876 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3877
3878 fi
3879 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3880 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3881 GCC=`test $ac_compiler_gnu = yes && echo yes`
3882 ac_test_CFLAGS=${CFLAGS+set}
3883 ac_save_CFLAGS=$CFLAGS
3884 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3885 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3886 if test "${ac_cv_prog_cc_g+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 else
3889 ac_save_c_werror_flag=$ac_c_werror_flag
3890 ac_c_werror_flag=yes
3891 ac_cv_prog_cc_g=no
3892 CFLAGS="-g"
3893 cat >conftest.$ac_ext <<_ACEOF
3894 /* confdefs.h. */
3895 _ACEOF
3896 cat confdefs.h >>conftest.$ac_ext
3897 cat >>conftest.$ac_ext <<_ACEOF
3898 /* end confdefs.h. */
3899
3900 int
3901 main ()
3902 {
3903
3904 ;
3905 return 0;
3906 }
3907 _ACEOF
3908 rm -f conftest.$ac_objext
3909 if { (ac_try="$ac_compile"
3910 case "(($ac_try" in
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3913 esac
3914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3915 (eval "$ac_compile") 2>conftest.er1
3916 ac_status=$?
3917 grep -v '^ *+' conftest.er1 >conftest.err
3918 rm -f conftest.er1
3919 cat conftest.err >&5
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); } && {
3922 test -z "$ac_c_werror_flag" ||
3923 test ! -s conftest.err
3924 } && test -s conftest.$ac_objext; then
3925 ac_cv_prog_cc_g=yes
3926 else
3927 echo "$as_me: failed program was:" >&5
3928 sed 's/^/| /' conftest.$ac_ext >&5
3929
3930 CFLAGS=""
3931 cat >conftest.$ac_ext <<_ACEOF
3932 /* confdefs.h. */
3933 _ACEOF
3934 cat confdefs.h >>conftest.$ac_ext
3935 cat >>conftest.$ac_ext <<_ACEOF
3936 /* end confdefs.h. */
3937
3938 int
3939 main ()
3940 {
3941
3942 ;
3943 return 0;
3944 }
3945 _ACEOF
3946 rm -f conftest.$ac_objext
3947 if { (ac_try="$ac_compile"
3948 case "(($ac_try" in
3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950 *) ac_try_echo=$ac_try;;
3951 esac
3952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3953 (eval "$ac_compile") 2>conftest.er1
3954 ac_status=$?
3955 grep -v '^ *+' conftest.er1 >conftest.err
3956 rm -f conftest.er1
3957 cat conftest.err >&5
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); } && {
3960 test -z "$ac_c_werror_flag" ||
3961 test ! -s conftest.err
3962 } && test -s conftest.$ac_objext; then
3963 :
3964 else
3965 echo "$as_me: failed program was:" >&5
3966 sed 's/^/| /' conftest.$ac_ext >&5
3967
3968 ac_c_werror_flag=$ac_save_c_werror_flag
3969 CFLAGS="-g"
3970 cat >conftest.$ac_ext <<_ACEOF
3971 /* confdefs.h. */
3972 _ACEOF
3973 cat confdefs.h >>conftest.$ac_ext
3974 cat >>conftest.$ac_ext <<_ACEOF
3975 /* end confdefs.h. */
3976
3977 int
3978 main ()
3979 {
3980
3981 ;
3982 return 0;
3983 }
3984 _ACEOF
3985 rm -f conftest.$ac_objext
3986 if { (ac_try="$ac_compile"
3987 case "(($ac_try" in
3988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3989 *) ac_try_echo=$ac_try;;
3990 esac
3991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3992 (eval "$ac_compile") 2>conftest.er1
3993 ac_status=$?
3994 grep -v '^ *+' conftest.er1 >conftest.err
3995 rm -f conftest.er1
3996 cat conftest.err >&5
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); } && {
3999 test -z "$ac_c_werror_flag" ||
4000 test ! -s conftest.err
4001 } && test -s conftest.$ac_objext; then
4002 ac_cv_prog_cc_g=yes
4003 else
4004 echo "$as_me: failed program was:" >&5
4005 sed 's/^/| /' conftest.$ac_ext >&5
4006
4007
4008 fi
4009
4010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4011 fi
4012
4013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4014 fi
4015
4016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4017 ac_c_werror_flag=$ac_save_c_werror_flag
4018 fi
4019 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4020 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4021 if test "$ac_test_CFLAGS" = set; then
4022 CFLAGS=$ac_save_CFLAGS
4023 elif test $ac_cv_prog_cc_g = yes; then
4024 if test "$GCC" = yes; then
4025 CFLAGS="-g -O2"
4026 else
4027 CFLAGS="-g"
4028 fi
4029 else
4030 if test "$GCC" = yes; then
4031 CFLAGS="-O2"
4032 else
4033 CFLAGS=
4034 fi
4035 fi
4036 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4037 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4038 if test "${ac_cv_prog_cc_c89+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4040 else
4041 ac_cv_prog_cc_c89=no
4042 ac_save_CC=$CC
4043 cat >conftest.$ac_ext <<_ACEOF
4044 /* confdefs.h. */
4045 _ACEOF
4046 cat confdefs.h >>conftest.$ac_ext
4047 cat >>conftest.$ac_ext <<_ACEOF
4048 /* end confdefs.h. */
4049 #include <stdarg.h>
4050 #include <stdio.h>
4051 #include <sys/types.h>
4052 #include <sys/stat.h>
4053 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4054 struct buf { int x; };
4055 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4056 static char *e (p, i)
4057 char **p;
4058 int i;
4059 {
4060 return p[i];
4061 }
4062 static char *f (char * (*g) (char **, int), char **p, ...)
4063 {
4064 char *s;
4065 va_list v;
4066 va_start (v,p);
4067 s = g (p, va_arg (v,int));
4068 va_end (v);
4069 return s;
4070 }
4071
4072 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4073 function prototypes and stuff, but not '\xHH' hex character constants.
4074 These don't provoke an error unfortunately, instead are silently treated
4075 as 'x'. The following induces an error, until -std is added to get
4076 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4077 array size at least. It's necessary to write '\x00'==0 to get something
4078 that's true only with -std. */
4079 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4080
4081 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4082 inside strings and character constants. */
4083 #define FOO(x) 'x'
4084 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4085
4086 int test (int i, double x);
4087 struct s1 {int (*f) (int a);};
4088 struct s2 {int (*f) (double a);};
4089 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4090 int argc;
4091 char **argv;
4092 int
4093 main ()
4094 {
4095 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4096 ;
4097 return 0;
4098 }
4099 _ACEOF
4100 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4101 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4102 do
4103 CC="$ac_save_CC $ac_arg"
4104 rm -f conftest.$ac_objext
4105 if { (ac_try="$ac_compile"
4106 case "(($ac_try" in
4107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4108 *) ac_try_echo=$ac_try;;
4109 esac
4110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4111 (eval "$ac_compile") 2>conftest.er1
4112 ac_status=$?
4113 grep -v '^ *+' conftest.er1 >conftest.err
4114 rm -f conftest.er1
4115 cat conftest.err >&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } && {
4118 test -z "$ac_c_werror_flag" ||
4119 test ! -s conftest.err
4120 } && test -s conftest.$ac_objext; then
4121 ac_cv_prog_cc_c89=$ac_arg
4122 else
4123 echo "$as_me: failed program was:" >&5
4124 sed 's/^/| /' conftest.$ac_ext >&5
4125
4126
4127 fi
4128
4129 rm -f core conftest.err conftest.$ac_objext
4130 test "x$ac_cv_prog_cc_c89" != "xno" && break
4131 done
4132 rm -f conftest.$ac_ext
4133 CC=$ac_save_CC
4134
4135 fi
4136 # AC_CACHE_VAL
4137 case "x$ac_cv_prog_cc_c89" in
4138 x)
4139 { echo "$as_me:$LINENO: result: none needed" >&5
4140 echo "${ECHO_T}none needed" >&6; } ;;
4141 xno)
4142 { echo "$as_me:$LINENO: result: unsupported" >&5
4143 echo "${ECHO_T}unsupported" >&6; } ;;
4144 *)
4145 CC="$CC $ac_cv_prog_cc_c89"
4146 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4147 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4148 esac
4149
4150
4151 ac_ext=c
4152 ac_cpp='$CPP $CPPFLAGS'
4153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4156
4157
4158 # On Suns, sometimes $CPP names a directory.
4159 if test -n "$CPP" && test -d "$CPP"; then
4160 CPP=
4161 fi
4162
4163 ## If not using gcc, and on Solaris, and no CPP specified, see if
4164 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4165 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4166 test x"$CPP" = x; then
4167 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
4168 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
4169
4170 if test "${emacs_cv_sunpro_c+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4172 else
4173 cat >conftest.$ac_ext <<_ACEOF
4174 /* confdefs.h. */
4175 _ACEOF
4176 cat confdefs.h >>conftest.$ac_ext
4177 cat >>conftest.$ac_ext <<_ACEOF
4178 /* end confdefs.h. */
4179
4180 int
4181 main ()
4182 {
4183 #ifndef __SUNPRO_C
4184 fail;
4185 #endif
4186
4187 ;
4188 return 0;
4189 }
4190 _ACEOF
4191 rm -f conftest.$ac_objext conftest$ac_exeext
4192 if { (ac_try="$ac_link"
4193 case "(($ac_try" in
4194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4195 *) ac_try_echo=$ac_try;;
4196 esac
4197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4198 (eval "$ac_link") 2>conftest.er1
4199 ac_status=$?
4200 grep -v '^ *+' conftest.er1 >conftest.err
4201 rm -f conftest.er1
4202 cat conftest.err >&5
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); } && {
4205 test -z "$ac_c_werror_flag" ||
4206 test ! -s conftest.err
4207 } && test -s conftest$ac_exeext &&
4208 $as_test_x conftest$ac_exeext; then
4209 emacs_cv_sunpro_c=yes
4210 else
4211 echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.$ac_ext >&5
4213
4214 emacs_cv_sunpro_c=no
4215 fi
4216
4217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4218 conftest$ac_exeext conftest.$ac_ext
4219 fi
4220
4221 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4222 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
4223
4224 if test x"$emacs_cv_sunpro_c" = xyes; then
4225 NON_GNU_CPP="$CC -E -Xs"
4226 fi
4227 fi
4228
4229 #### Some systems specify a CPP to use unless we are using GCC.
4230 #### Now that we know whether we are using GCC, we can decide whether
4231 #### to use that one.
4232 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4233 then
4234 CPP="$NON_GNU_CPP"
4235 fi
4236
4237 #### Some systems specify a CC to use unless we are using GCC.
4238 #### Now that we know whether we are using GCC, we can decide whether
4239 #### to use that one.
4240 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4241 test x$cc_specified != xyes
4242 then
4243 CC="$NON_GNU_CC"
4244 fi
4245
4246 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4247 then
4248 CC="$CC $GCC_TEST_OPTIONS"
4249 fi
4250
4251 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4252 then
4253 CC="$CC $NON_GCC_TEST_OPTIONS"
4254 fi
4255
4256 ac_ext=c
4257 ac_cpp='$CPP $CPPFLAGS'
4258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4261 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4262 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4263 # On Suns, sometimes $CPP names a directory.
4264 if test -n "$CPP" && test -d "$CPP"; then
4265 CPP=
4266 fi
4267 if test -z "$CPP"; then
4268 if test "${ac_cv_prog_CPP+set}" = set; then
4269 echo $ECHO_N "(cached) $ECHO_C" >&6
4270 else
4271 # Double quotes because CPP needs to be expanded
4272 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4273 do
4274 ac_preproc_ok=false
4275 for ac_c_preproc_warn_flag in '' yes
4276 do
4277 # Use a header file that comes with gcc, so configuring glibc
4278 # with a fresh cross-compiler works.
4279 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4280 # <limits.h> exists even on freestanding compilers.
4281 # On the NeXT, cc -E runs the code through the compiler's parser,
4282 # not just through cpp. "Syntax error" is here to catch this case.
4283 cat >conftest.$ac_ext <<_ACEOF
4284 /* confdefs.h. */
4285 _ACEOF
4286 cat confdefs.h >>conftest.$ac_ext
4287 cat >>conftest.$ac_ext <<_ACEOF
4288 /* end confdefs.h. */
4289 #ifdef __STDC__
4290 # include <limits.h>
4291 #else
4292 # include <assert.h>
4293 #endif
4294 Syntax error
4295 _ACEOF
4296 if { (ac_try="$ac_cpp conftest.$ac_ext"
4297 case "(($ac_try" in
4298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299 *) ac_try_echo=$ac_try;;
4300 esac
4301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4303 ac_status=$?
4304 grep -v '^ *+' conftest.er1 >conftest.err
4305 rm -f conftest.er1
4306 cat conftest.err >&5
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); } >/dev/null && {
4309 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4310 test ! -s conftest.err
4311 }; then
4312 :
4313 else
4314 echo "$as_me: failed program was:" >&5
4315 sed 's/^/| /' conftest.$ac_ext >&5
4316
4317 # Broken: fails on valid input.
4318 continue
4319 fi
4320
4321 rm -f conftest.err conftest.$ac_ext
4322
4323 # OK, works on sane cases. Now check whether nonexistent headers
4324 # can be detected and how.
4325 cat >conftest.$ac_ext <<_ACEOF
4326 /* confdefs.h. */
4327 _ACEOF
4328 cat confdefs.h >>conftest.$ac_ext
4329 cat >>conftest.$ac_ext <<_ACEOF
4330 /* end confdefs.h. */
4331 #include <ac_nonexistent.h>
4332 _ACEOF
4333 if { (ac_try="$ac_cpp conftest.$ac_ext"
4334 case "(($ac_try" in
4335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336 *) ac_try_echo=$ac_try;;
4337 esac
4338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4340 ac_status=$?
4341 grep -v '^ *+' conftest.er1 >conftest.err
4342 rm -f conftest.er1
4343 cat conftest.err >&5
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); } >/dev/null && {
4346 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4347 test ! -s conftest.err
4348 }; then
4349 # Broken: success on invalid input.
4350 continue
4351 else
4352 echo "$as_me: failed program was:" >&5
4353 sed 's/^/| /' conftest.$ac_ext >&5
4354
4355 # Passes both tests.
4356 ac_preproc_ok=:
4357 break
4358 fi
4359
4360 rm -f conftest.err conftest.$ac_ext
4361
4362 done
4363 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4364 rm -f conftest.err conftest.$ac_ext
4365 if $ac_preproc_ok; then
4366 break
4367 fi
4368
4369 done
4370 ac_cv_prog_CPP=$CPP
4371
4372 fi
4373 CPP=$ac_cv_prog_CPP
4374 else
4375 ac_cv_prog_CPP=$CPP
4376 fi
4377 { echo "$as_me:$LINENO: result: $CPP" >&5
4378 echo "${ECHO_T}$CPP" >&6; }
4379 ac_preproc_ok=false
4380 for ac_c_preproc_warn_flag in '' yes
4381 do
4382 # Use a header file that comes with gcc, so configuring glibc
4383 # with a fresh cross-compiler works.
4384 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4385 # <limits.h> exists even on freestanding compilers.
4386 # On the NeXT, cc -E runs the code through the compiler's parser,
4387 # not just through cpp. "Syntax error" is here to catch this case.
4388 cat >conftest.$ac_ext <<_ACEOF
4389 /* confdefs.h. */
4390 _ACEOF
4391 cat confdefs.h >>conftest.$ac_ext
4392 cat >>conftest.$ac_ext <<_ACEOF
4393 /* end confdefs.h. */
4394 #ifdef __STDC__
4395 # include <limits.h>
4396 #else
4397 # include <assert.h>
4398 #endif
4399 Syntax error
4400 _ACEOF
4401 if { (ac_try="$ac_cpp conftest.$ac_ext"
4402 case "(($ac_try" in
4403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404 *) ac_try_echo=$ac_try;;
4405 esac
4406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4408 ac_status=$?
4409 grep -v '^ *+' conftest.er1 >conftest.err
4410 rm -f conftest.er1
4411 cat conftest.err >&5
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); } >/dev/null && {
4414 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4415 test ! -s conftest.err
4416 }; then
4417 :
4418 else
4419 echo "$as_me: failed program was:" >&5
4420 sed 's/^/| /' conftest.$ac_ext >&5
4421
4422 # Broken: fails on valid input.
4423 continue
4424 fi
4425
4426 rm -f conftest.err conftest.$ac_ext
4427
4428 # OK, works on sane cases. Now check whether nonexistent headers
4429 # can be detected and how.
4430 cat >conftest.$ac_ext <<_ACEOF
4431 /* confdefs.h. */
4432 _ACEOF
4433 cat confdefs.h >>conftest.$ac_ext
4434 cat >>conftest.$ac_ext <<_ACEOF
4435 /* end confdefs.h. */
4436 #include <ac_nonexistent.h>
4437 _ACEOF
4438 if { (ac_try="$ac_cpp conftest.$ac_ext"
4439 case "(($ac_try" in
4440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4441 *) ac_try_echo=$ac_try;;
4442 esac
4443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4445 ac_status=$?
4446 grep -v '^ *+' conftest.er1 >conftest.err
4447 rm -f conftest.er1
4448 cat conftest.err >&5
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); } >/dev/null && {
4451 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4452 test ! -s conftest.err
4453 }; then
4454 # Broken: success on invalid input.
4455 continue
4456 else
4457 echo "$as_me: failed program was:" >&5
4458 sed 's/^/| /' conftest.$ac_ext >&5
4459
4460 # Passes both tests.
4461 ac_preproc_ok=:
4462 break
4463 fi
4464
4465 rm -f conftest.err conftest.$ac_ext
4466
4467 done
4468 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4469 rm -f conftest.err conftest.$ac_ext
4470 if $ac_preproc_ok; then
4471 :
4472 else
4473 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4474 See \`config.log' for more details." >&5
4475 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4476 See \`config.log' for more details." >&2;}
4477 { (exit 1); exit 1; }; }
4478 fi
4479
4480 ac_ext=c
4481 ac_cpp='$CPP $CPPFLAGS'
4482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4485
4486
4487 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4488 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4489 if test "${ac_cv_path_GREP+set}" = set; then
4490 echo $ECHO_N "(cached) $ECHO_C" >&6
4491 else
4492 # Extract the first word of "grep ggrep" to use in msg output
4493 if test -z "$GREP"; then
4494 set dummy grep ggrep; ac_prog_name=$2
4495 if test "${ac_cv_path_GREP+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4497 else
4498 ac_path_GREP_found=false
4499 # Loop through the user's path and test for each of PROGNAME-LIST
4500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4501 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4502 do
4503 IFS=$as_save_IFS
4504 test -z "$as_dir" && as_dir=.
4505 for ac_prog in grep ggrep; do
4506 for ac_exec_ext in '' $ac_executable_extensions; do
4507 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4508 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4509 # Check for GNU ac_path_GREP and select it if it is found.
4510 # Check for GNU $ac_path_GREP
4511 case `"$ac_path_GREP" --version 2>&1` in
4512 *GNU*)
4513 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4514 *)
4515 ac_count=0
4516 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4517 while :
4518 do
4519 cat "conftest.in" "conftest.in" >"conftest.tmp"
4520 mv "conftest.tmp" "conftest.in"
4521 cp "conftest.in" "conftest.nl"
4522 echo 'GREP' >> "conftest.nl"
4523 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4524 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4525 ac_count=`expr $ac_count + 1`
4526 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4527 # Best one so far, save it but keep looking for a better one
4528 ac_cv_path_GREP="$ac_path_GREP"
4529 ac_path_GREP_max=$ac_count
4530 fi
4531 # 10*(2^10) chars as input seems more than enough
4532 test $ac_count -gt 10 && break
4533 done
4534 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4535 esac
4536
4537
4538 $ac_path_GREP_found && break 3
4539 done
4540 done
4541
4542 done
4543 IFS=$as_save_IFS
4544
4545
4546 fi
4547
4548 GREP="$ac_cv_path_GREP"
4549 if test -z "$GREP"; then
4550 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4551 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4552 { (exit 1); exit 1; }; }
4553 fi
4554
4555 else
4556 ac_cv_path_GREP=$GREP
4557 fi
4558
4559
4560 fi
4561 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4562 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4563 GREP="$ac_cv_path_GREP"
4564
4565
4566 { echo "$as_me:$LINENO: checking for egrep" >&5
4567 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4568 if test "${ac_cv_path_EGREP+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4570 else
4571 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4572 then ac_cv_path_EGREP="$GREP -E"
4573 else
4574 # Extract the first word of "egrep" to use in msg output
4575 if test -z "$EGREP"; then
4576 set dummy egrep; ac_prog_name=$2
4577 if test "${ac_cv_path_EGREP+set}" = set; then
4578 echo $ECHO_N "(cached) $ECHO_C" >&6
4579 else
4580 ac_path_EGREP_found=false
4581 # Loop through the user's path and test for each of PROGNAME-LIST
4582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4584 do
4585 IFS=$as_save_IFS
4586 test -z "$as_dir" && as_dir=.
4587 for ac_prog in egrep; do
4588 for ac_exec_ext in '' $ac_executable_extensions; do
4589 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4590 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4591 # Check for GNU ac_path_EGREP and select it if it is found.
4592 # Check for GNU $ac_path_EGREP
4593 case `"$ac_path_EGREP" --version 2>&1` in
4594 *GNU*)
4595 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4596 *)
4597 ac_count=0
4598 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4599 while :
4600 do
4601 cat "conftest.in" "conftest.in" >"conftest.tmp"
4602 mv "conftest.tmp" "conftest.in"
4603 cp "conftest.in" "conftest.nl"
4604 echo 'EGREP' >> "conftest.nl"
4605 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4606 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4607 ac_count=`expr $ac_count + 1`
4608 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4609 # Best one so far, save it but keep looking for a better one
4610 ac_cv_path_EGREP="$ac_path_EGREP"
4611 ac_path_EGREP_max=$ac_count
4612 fi
4613 # 10*(2^10) chars as input seems more than enough
4614 test $ac_count -gt 10 && break
4615 done
4616 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4617 esac
4618
4619
4620 $ac_path_EGREP_found && break 3
4621 done
4622 done
4623
4624 done
4625 IFS=$as_save_IFS
4626
4627
4628 fi
4629
4630 EGREP="$ac_cv_path_EGREP"
4631 if test -z "$EGREP"; then
4632 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4633 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4634 { (exit 1); exit 1; }; }
4635 fi
4636
4637 else
4638 ac_cv_path_EGREP=$EGREP
4639 fi
4640
4641
4642 fi
4643 fi
4644 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4645 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4646 EGREP="$ac_cv_path_EGREP"
4647
4648
4649
4650 { echo "$as_me:$LINENO: checking for AIX" >&5
4651 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4652 cat >conftest.$ac_ext <<_ACEOF
4653 /* confdefs.h. */
4654 _ACEOF
4655 cat confdefs.h >>conftest.$ac_ext
4656 cat >>conftest.$ac_ext <<_ACEOF
4657 /* end confdefs.h. */
4658 #ifdef _AIX
4659 yes
4660 #endif
4661
4662 _ACEOF
4663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4664 $EGREP "yes" >/dev/null 2>&1; then
4665 { echo "$as_me:$LINENO: result: yes" >&5
4666 echo "${ECHO_T}yes" >&6; }
4667 cat >>confdefs.h <<\_ACEOF
4668 #define _ALL_SOURCE 1
4669 _ACEOF
4670
4671 else
4672 { echo "$as_me:$LINENO: result: no" >&5
4673 echo "${ECHO_T}no" >&6; }
4674 fi
4675 rm -f conftest*
4676
4677
4678
4679 cat >>confdefs.h <<\_ACEOF
4680 #define _GNU_SOURCE 1
4681 _ACEOF
4682
4683
4684
4685 ### Use -Wno-pointer-sign if the compiler supports it
4686 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4687 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4688 SAVE_CFLAGS="$CFLAGS"
4689 CFLAGS="$CFLAGS -Wno-pointer-sign"
4690 cat >conftest.$ac_ext <<_ACEOF
4691 /* confdefs.h. */
4692 _ACEOF
4693 cat confdefs.h >>conftest.$ac_ext
4694 cat >>conftest.$ac_ext <<_ACEOF
4695 /* end confdefs.h. */
4696
4697 int
4698 main ()
4699 {
4700
4701 ;
4702 return 0;
4703 }
4704 _ACEOF
4705 rm -f conftest.$ac_objext
4706 if { (ac_try="$ac_compile"
4707 case "(($ac_try" in
4708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4709 *) ac_try_echo=$ac_try;;
4710 esac
4711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4712 (eval "$ac_compile") 2>conftest.er1
4713 ac_status=$?
4714 grep -v '^ *+' conftest.er1 >conftest.err
4715 rm -f conftest.er1
4716 cat conftest.err >&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); } && {
4719 test -z "$ac_c_werror_flag" ||
4720 test ! -s conftest.err
4721 } && test -s conftest.$ac_objext; then
4722 has_option=yes
4723 else
4724 echo "$as_me: failed program was:" >&5
4725 sed 's/^/| /' conftest.$ac_ext >&5
4726
4727 has_option=no
4728 fi
4729
4730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731 if test $has_option = yes; then
4732 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4733 fi
4734 { echo "$as_me:$LINENO: result: $has_option" >&5
4735 echo "${ECHO_T}$has_option" >&6; }
4736 CFLAGS="$SAVE_CFLAGS"
4737 unset has_option
4738 unset SAVE_CFLAGS
4739
4740 #### Some other nice autoconf tests.
4741
4742 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4743 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4744 LN_S=$as_ln_s
4745 if test "$LN_S" = "ln -s"; then
4746 { echo "$as_me:$LINENO: result: yes" >&5
4747 echo "${ECHO_T}yes" >&6; }
4748 else
4749 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4750 echo "${ECHO_T}no, using $LN_S" >&6; }
4751 fi
4752
4753 ac_ext=c
4754 ac_cpp='$CPP $CPPFLAGS'
4755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4758 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4759 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4760 # On Suns, sometimes $CPP names a directory.
4761 if test -n "$CPP" && test -d "$CPP"; then
4762 CPP=
4763 fi
4764 if test -z "$CPP"; then
4765 if test "${ac_cv_prog_CPP+set}" = set; then
4766 echo $ECHO_N "(cached) $ECHO_C" >&6
4767 else
4768 # Double quotes because CPP needs to be expanded
4769 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4770 do
4771 ac_preproc_ok=false
4772 for ac_c_preproc_warn_flag in '' yes
4773 do
4774 # Use a header file that comes with gcc, so configuring glibc
4775 # with a fresh cross-compiler works.
4776 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4777 # <limits.h> exists even on freestanding compilers.
4778 # On the NeXT, cc -E runs the code through the compiler's parser,
4779 # not just through cpp. "Syntax error" is here to catch this case.
4780 cat >conftest.$ac_ext <<_ACEOF
4781 /* confdefs.h. */
4782 _ACEOF
4783 cat confdefs.h >>conftest.$ac_ext
4784 cat >>conftest.$ac_ext <<_ACEOF
4785 /* end confdefs.h. */
4786 #ifdef __STDC__
4787 # include <limits.h>
4788 #else
4789 # include <assert.h>
4790 #endif
4791 Syntax error
4792 _ACEOF
4793 if { (ac_try="$ac_cpp conftest.$ac_ext"
4794 case "(($ac_try" in
4795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4796 *) ac_try_echo=$ac_try;;
4797 esac
4798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4799 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4800 ac_status=$?
4801 grep -v '^ *+' conftest.er1 >conftest.err
4802 rm -f conftest.er1
4803 cat conftest.err >&5
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); } >/dev/null && {
4806 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4807 test ! -s conftest.err
4808 }; then
4809 :
4810 else
4811 echo "$as_me: failed program was:" >&5
4812 sed 's/^/| /' conftest.$ac_ext >&5
4813
4814 # Broken: fails on valid input.
4815 continue
4816 fi
4817
4818 rm -f conftest.err conftest.$ac_ext
4819
4820 # OK, works on sane cases. Now check whether nonexistent headers
4821 # can be detected and how.
4822 cat >conftest.$ac_ext <<_ACEOF
4823 /* confdefs.h. */
4824 _ACEOF
4825 cat confdefs.h >>conftest.$ac_ext
4826 cat >>conftest.$ac_ext <<_ACEOF
4827 /* end confdefs.h. */
4828 #include <ac_nonexistent.h>
4829 _ACEOF
4830 if { (ac_try="$ac_cpp conftest.$ac_ext"
4831 case "(($ac_try" in
4832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833 *) ac_try_echo=$ac_try;;
4834 esac
4835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4836 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4837 ac_status=$?
4838 grep -v '^ *+' conftest.er1 >conftest.err
4839 rm -f conftest.er1
4840 cat conftest.err >&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); } >/dev/null && {
4843 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4844 test ! -s conftest.err
4845 }; then
4846 # Broken: success on invalid input.
4847 continue
4848 else
4849 echo "$as_me: failed program was:" >&5
4850 sed 's/^/| /' conftest.$ac_ext >&5
4851
4852 # Passes both tests.
4853 ac_preproc_ok=:
4854 break
4855 fi
4856
4857 rm -f conftest.err conftest.$ac_ext
4858
4859 done
4860 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4861 rm -f conftest.err conftest.$ac_ext
4862 if $ac_preproc_ok; then
4863 break
4864 fi
4865
4866 done
4867 ac_cv_prog_CPP=$CPP
4868
4869 fi
4870 CPP=$ac_cv_prog_CPP
4871 else
4872 ac_cv_prog_CPP=$CPP
4873 fi
4874 { echo "$as_me:$LINENO: result: $CPP" >&5
4875 echo "${ECHO_T}$CPP" >&6; }
4876 ac_preproc_ok=false
4877 for ac_c_preproc_warn_flag in '' yes
4878 do
4879 # Use a header file that comes with gcc, so configuring glibc
4880 # with a fresh cross-compiler works.
4881 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4882 # <limits.h> exists even on freestanding compilers.
4883 # On the NeXT, cc -E runs the code through the compiler's parser,
4884 # not just through cpp. "Syntax error" is here to catch this case.
4885 cat >conftest.$ac_ext <<_ACEOF
4886 /* confdefs.h. */
4887 _ACEOF
4888 cat confdefs.h >>conftest.$ac_ext
4889 cat >>conftest.$ac_ext <<_ACEOF
4890 /* end confdefs.h. */
4891 #ifdef __STDC__
4892 # include <limits.h>
4893 #else
4894 # include <assert.h>
4895 #endif
4896 Syntax error
4897 _ACEOF
4898 if { (ac_try="$ac_cpp conftest.$ac_ext"
4899 case "(($ac_try" in
4900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4901 *) ac_try_echo=$ac_try;;
4902 esac
4903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4905 ac_status=$?
4906 grep -v '^ *+' conftest.er1 >conftest.err
4907 rm -f conftest.er1
4908 cat conftest.err >&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); } >/dev/null && {
4911 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4912 test ! -s conftest.err
4913 }; then
4914 :
4915 else
4916 echo "$as_me: failed program was:" >&5
4917 sed 's/^/| /' conftest.$ac_ext >&5
4918
4919 # Broken: fails on valid input.
4920 continue
4921 fi
4922
4923 rm -f conftest.err conftest.$ac_ext
4924
4925 # OK, works on sane cases. Now check whether nonexistent headers
4926 # can be detected and how.
4927 cat >conftest.$ac_ext <<_ACEOF
4928 /* confdefs.h. */
4929 _ACEOF
4930 cat confdefs.h >>conftest.$ac_ext
4931 cat >>conftest.$ac_ext <<_ACEOF
4932 /* end confdefs.h. */
4933 #include <ac_nonexistent.h>
4934 _ACEOF
4935 if { (ac_try="$ac_cpp conftest.$ac_ext"
4936 case "(($ac_try" in
4937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4938 *) ac_try_echo=$ac_try;;
4939 esac
4940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4941 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4942 ac_status=$?
4943 grep -v '^ *+' conftest.er1 >conftest.err
4944 rm -f conftest.er1
4945 cat conftest.err >&5
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); } >/dev/null && {
4948 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4949 test ! -s conftest.err
4950 }; then
4951 # Broken: success on invalid input.
4952 continue
4953 else
4954 echo "$as_me: failed program was:" >&5
4955 sed 's/^/| /' conftest.$ac_ext >&5
4956
4957 # Passes both tests.
4958 ac_preproc_ok=:
4959 break
4960 fi
4961
4962 rm -f conftest.err conftest.$ac_ext
4963
4964 done
4965 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4966 rm -f conftest.err conftest.$ac_ext
4967 if $ac_preproc_ok; then
4968 :
4969 else
4970 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4971 See \`config.log' for more details." >&5
4972 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4973 See \`config.log' for more details." >&2;}
4974 { (exit 1); exit 1; }; }
4975 fi
4976
4977 ac_ext=c
4978 ac_cpp='$CPP $CPPFLAGS'
4979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4982
4983 # Find a good install program. We prefer a C program (faster),
4984 # so one script is as good as another. But avoid the broken or
4985 # incompatible versions:
4986 # SysV /etc/install, /usr/sbin/install
4987 # SunOS /usr/etc/install
4988 # IRIX /sbin/install
4989 # AIX /bin/install
4990 # AmigaOS /C/install, which installs bootblocks on floppy discs
4991 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4992 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4993 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4994 # OS/2's system install, which has a completely different semantic
4995 # ./install, which can be erroneously created by make from ./install.sh.
4996 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4997 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4998 if test -z "$INSTALL"; then
4999 if test "${ac_cv_path_install+set}" = set; then
5000 echo $ECHO_N "(cached) $ECHO_C" >&6
5001 else
5002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003 for as_dir in $PATH
5004 do
5005 IFS=$as_save_IFS
5006 test -z "$as_dir" && as_dir=.
5007 # Account for people who put trailing slashes in PATH elements.
5008 case $as_dir/ in
5009 ./ | .// | /cC/* | \
5010 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5011 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5012 /usr/ucb/* ) ;;
5013 *)
5014 # OSF1 and SCO ODT 3.0 have their own names for install.
5015 # Don't use installbsd from OSF since it installs stuff as root
5016 # by default.
5017 for ac_prog in ginstall scoinst install; do
5018 for ac_exec_ext in '' $ac_executable_extensions; do
5019 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5020 if test $ac_prog = install &&
5021 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5022 # AIX install. It has an incompatible calling convention.
5023 :
5024 elif test $ac_prog = install &&
5025 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5026 # program-specific install script used by HP pwplus--don't use.
5027 :
5028 else
5029 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5030 break 3
5031 fi
5032 fi
5033 done
5034 done
5035 ;;
5036 esac
5037 done
5038 IFS=$as_save_IFS
5039
5040
5041 fi
5042 if test "${ac_cv_path_install+set}" = set; then
5043 INSTALL=$ac_cv_path_install
5044 else
5045 # As a last resort, use the slow shell script. Don't cache a
5046 # value for INSTALL within a source directory, because that will
5047 # break other packages using the cache if that directory is
5048 # removed, or if the value is a relative name.
5049 INSTALL=$ac_install_sh
5050 fi
5051 fi
5052 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5053 echo "${ECHO_T}$INSTALL" >&6; }
5054
5055 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5056 # It thinks the first close brace ends the variable substitution.
5057 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5058
5059 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5060
5061 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5062
5063 if test "x$RANLIB" = x; then
5064 if test -n "$ac_tool_prefix"; then
5065 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5066 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5069 if test "${ac_cv_prog_RANLIB+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 else
5072 if test -n "$RANLIB"; then
5073 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5074 else
5075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076 for as_dir in $PATH
5077 do
5078 IFS=$as_save_IFS
5079 test -z "$as_dir" && as_dir=.
5080 for ac_exec_ext in '' $ac_executable_extensions; do
5081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5082 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5084 break 2
5085 fi
5086 done
5087 done
5088 IFS=$as_save_IFS
5089
5090 fi
5091 fi
5092 RANLIB=$ac_cv_prog_RANLIB
5093 if test -n "$RANLIB"; then
5094 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5095 echo "${ECHO_T}$RANLIB" >&6; }
5096 else
5097 { echo "$as_me:$LINENO: result: no" >&5
5098 echo "${ECHO_T}no" >&6; }
5099 fi
5100
5101
5102 fi
5103 if test -z "$ac_cv_prog_RANLIB"; then
5104 ac_ct_RANLIB=$RANLIB
5105 # Extract the first word of "ranlib", so it can be a program name with args.
5106 set dummy ranlib; ac_word=$2
5107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5109 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5110 echo $ECHO_N "(cached) $ECHO_C" >&6
5111 else
5112 if test -n "$ac_ct_RANLIB"; then
5113 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5114 else
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 for as_dir in $PATH
5117 do
5118 IFS=$as_save_IFS
5119 test -z "$as_dir" && as_dir=.
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5122 ac_cv_prog_ac_ct_RANLIB="ranlib"
5123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 break 2
5125 fi
5126 done
5127 done
5128 IFS=$as_save_IFS
5129
5130 fi
5131 fi
5132 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5133 if test -n "$ac_ct_RANLIB"; then
5134 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5135 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5136 else
5137 { echo "$as_me:$LINENO: result: no" >&5
5138 echo "${ECHO_T}no" >&6; }
5139 fi
5140
5141 if test "x$ac_ct_RANLIB" = x; then
5142 RANLIB=":"
5143 else
5144 case $cross_compiling:$ac_tool_warned in
5145 yes:)
5146 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5147 whose name does not start with the host triplet. If you think this
5148 configuration is useful to you, please write to autoconf@gnu.org." >&5
5149 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5150 whose name does not start with the host triplet. If you think this
5151 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5152 ac_tool_warned=yes ;;
5153 esac
5154 RANLIB=$ac_ct_RANLIB
5155 fi
5156 else
5157 RANLIB="$ac_cv_prog_RANLIB"
5158 fi
5159
5160 fi
5161 # Extract the first word of "install-info", so it can be a program name with args.
5162 set dummy install-info; ac_word=$2
5163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5165 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5167 else
5168 case $INSTALL_INFO in
5169 [\\/]* | ?:[\\/]*)
5170 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5171 ;;
5172 *)
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 for as_dir in $PATH
5175 do
5176 IFS=$as_save_IFS
5177 test -z "$as_dir" && as_dir=.
5178 for ac_exec_ext in '' $ac_executable_extensions; do
5179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5180 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5182 break 2
5183 fi
5184 done
5185 done
5186 IFS=$as_save_IFS
5187
5188 ;;
5189 esac
5190 fi
5191 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5192 if test -n "$INSTALL_INFO"; then
5193 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5194 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5195 else
5196 { echo "$as_me:$LINENO: result: no" >&5
5197 echo "${ECHO_T}no" >&6; }
5198 fi
5199
5200
5201 # Extract the first word of "install-info", so it can be a program name with args.
5202 set dummy install-info; ac_word=$2
5203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5205 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
5207 else
5208 case $INSTALL_INFO in
5209 [\\/]* | ?:[\\/]*)
5210 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5211 ;;
5212 *)
5213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 for as_dir in /usr/sbin
5215 do
5216 IFS=$as_save_IFS
5217 test -z "$as_dir" && as_dir=.
5218 for ac_exec_ext in '' $ac_executable_extensions; do
5219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5220 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5222 break 2
5223 fi
5224 done
5225 done
5226 IFS=$as_save_IFS
5227
5228 ;;
5229 esac
5230 fi
5231 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5232 if test -n "$INSTALL_INFO"; then
5233 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5234 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5235 else
5236 { echo "$as_me:$LINENO: result: no" >&5
5237 echo "${ECHO_T}no" >&6; }
5238 fi
5239
5240
5241 # Extract the first word of "install-info", so it can be a program name with args.
5242 set dummy install-info; ac_word=$2
5243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5245 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5246 echo $ECHO_N "(cached) $ECHO_C" >&6
5247 else
5248 case $INSTALL_INFO in
5249 [\\/]* | ?:[\\/]*)
5250 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5251 ;;
5252 *)
5253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254 for as_dir in /sbin
5255 do
5256 IFS=$as_save_IFS
5257 test -z "$as_dir" && as_dir=.
5258 for ac_exec_ext in '' $ac_executable_extensions; do
5259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5260 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5262 break 2
5263 fi
5264 done
5265 done
5266 IFS=$as_save_IFS
5267
5268 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5269 ;;
5270 esac
5271 fi
5272 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5273 if test -n "$INSTALL_INFO"; then
5274 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5275 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5276 else
5277 { echo "$as_me:$LINENO: result: no" >&5
5278 echo "${ECHO_T}no" >&6; }
5279 fi
5280
5281
5282 # Extract the first word of "gzip", so it can be a program name with args.
5283 set dummy gzip; ac_word=$2
5284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5286 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5288 else
5289 case $GZIP_PROG in
5290 [\\/]* | ?:[\\/]*)
5291 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5292 ;;
5293 *)
5294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295 for as_dir in $PATH
5296 do
5297 IFS=$as_save_IFS
5298 test -z "$as_dir" && as_dir=.
5299 for ac_exec_ext in '' $ac_executable_extensions; do
5300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5301 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5303 break 2
5304 fi
5305 done
5306 done
5307 IFS=$as_save_IFS
5308
5309 ;;
5310 esac
5311 fi
5312 GZIP_PROG=$ac_cv_path_GZIP_PROG
5313 if test -n "$GZIP_PROG"; then
5314 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5315 echo "${ECHO_T}$GZIP_PROG" >&6; }
5316 else
5317 { echo "$as_me:$LINENO: result: no" >&5
5318 echo "${ECHO_T}no" >&6; }
5319 fi
5320
5321
5322
5323
5324 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5325 then
5326 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5327 fi
5328
5329 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5330 then
5331 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5332 fi
5333
5334
5335 late_LDFLAGS=$LDFLAGS
5336 if test "$GCC" = yes; then
5337 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5338 else
5339 LDFLAGS="$LDFLAGS -znocombreloc"
5340 fi
5341
5342 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5343 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5344 cat >conftest.$ac_ext <<_ACEOF
5345 main(){return 0;}
5346 _ACEOF
5347 rm -f conftest.$ac_objext conftest$ac_exeext
5348 if { (ac_try="$ac_link"
5349 case "(($ac_try" in
5350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5351 *) ac_try_echo=$ac_try;;
5352 esac
5353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5354 (eval "$ac_link") 2>conftest.er1
5355 ac_status=$?
5356 grep -v '^ *+' conftest.er1 >conftest.err
5357 rm -f conftest.er1
5358 cat conftest.err >&5
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); } && {
5361 test -z "$ac_c_werror_flag" ||
5362 test ! -s conftest.err
5363 } && test -s conftest$ac_exeext &&
5364 $as_test_x conftest$ac_exeext; then
5365 { echo "$as_me:$LINENO: result: yes" >&5
5366 echo "${ECHO_T}yes" >&6; }
5367 else
5368 echo "$as_me: failed program was:" >&5
5369 sed 's/^/| /' conftest.$ac_ext >&5
5370
5371 LDFLAGS=$late_LDFLAGS
5372 { echo "$as_me:$LINENO: result: no" >&5
5373 echo "${ECHO_T}no" >&6; }
5374 fi
5375
5376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5377 conftest$ac_exeext conftest.$ac_ext
5378
5379 #### Extract some information from the operating system and machine files.
5380
5381 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5382 - which libraries the lib-src programs will want, and
5383 - whether the GNU malloc routines are usable..." >&5
5384 echo "$as_me: checking the machine- and system-dependent files to find out
5385 - which libraries the lib-src programs will want, and
5386 - whether the GNU malloc routines are usable..." >&6;}
5387
5388 ### First figure out CFLAGS (which we use for running the compiler here)
5389 ### and REAL_CFLAGS (which we use for real compilation).
5390 ### The two are the same except on a few systems, where they are made
5391 ### different to work around various lossages. For example,
5392 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5393 ### as implying static linking.
5394
5395 ### If the CFLAGS env var is specified, we use that value
5396 ### instead of the default.
5397
5398 ### It's not important that this name contain the PID; you can't run
5399 ### two configures in the same directory and have anything work
5400 ### anyway.
5401 tempcname="conftest.c"
5402
5403 echo '
5404 #include "'${srcdir}'/src/'${opsysfile}'"
5405 #include "'${srcdir}'/src/'${machfile}'"
5406 #ifndef LIBS_MACHINE
5407 #define LIBS_MACHINE
5408 #endif
5409 #ifndef LIBS_SYSTEM
5410 #define LIBS_SYSTEM
5411 #endif
5412 #ifndef C_SWITCH_SYSTEM
5413 #define C_SWITCH_SYSTEM
5414 #endif
5415 #ifndef C_SWITCH_MACHINE
5416 #define C_SWITCH_MACHINE
5417 #endif
5418 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5419 configure___ c_switch_system=C_SWITCH_SYSTEM
5420 configure___ c_switch_machine=C_SWITCH_MACHINE
5421
5422 #ifndef LIB_X11_LIB
5423 #define LIB_X11_LIB -lX11
5424 #endif
5425
5426 #ifndef LIBX11_MACHINE
5427 #define LIBX11_MACHINE
5428 #endif
5429
5430 #ifndef LIBX11_SYSTEM
5431 #define LIBX11_SYSTEM
5432 #endif
5433 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5434
5435 #ifdef UNEXEC
5436 configure___ unexec=UNEXEC
5437 #else
5438 configure___ unexec=unexec.o
5439 #endif
5440
5441 #ifdef SYSTEM_MALLOC
5442 configure___ system_malloc=yes
5443 #else
5444 configure___ system_malloc=no
5445 #endif
5446
5447 #ifdef USE_MMAP_FOR_BUFFERS
5448 configure___ use_mmap_for_buffers=yes
5449 #else
5450 configure___ use_mmap_for_buffers=no
5451 #endif
5452
5453 #ifndef C_DEBUG_SWITCH
5454 #define C_DEBUG_SWITCH -g
5455 #endif
5456
5457 #ifndef C_OPTIMIZE_SWITCH
5458 #ifdef __GNUC__
5459 #define C_OPTIMIZE_SWITCH -O2
5460 #else
5461 #define C_OPTIMIZE_SWITCH -O
5462 #endif
5463 #endif
5464
5465 #ifndef C_WARNINGS_SWITCH
5466 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5467 #endif
5468
5469 #ifndef LD_SWITCH_MACHINE
5470 #define LD_SWITCH_MACHINE
5471 #endif
5472
5473 #ifndef LD_SWITCH_SYSTEM
5474 #define LD_SWITCH_SYSTEM
5475 #endif
5476
5477 #ifndef LD_SWITCH_X_SITE_AUX
5478 #define LD_SWITCH_X_SITE_AUX
5479 #endif
5480
5481 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5482 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5483
5484 #ifdef THIS_IS_CONFIGURE
5485
5486 /* Get the CFLAGS for tests in configure. */
5487 #ifdef __GNUC__
5488 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5489 #else
5490 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5491 #endif
5492
5493 #else /* not THIS_IS_CONFIGURE */
5494
5495 /* Get the CFLAGS for real compilation. */
5496 #ifdef __GNUC__
5497 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5498 #else
5499 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5500 #endif
5501
5502 #endif /* not THIS_IS_CONFIGURE */
5503 ' > ${tempcname}
5504
5505 # The value of CPP is a quoted variable reference, so we need to do this
5506 # to get its actual value...
5507 CPP=`eval "echo $CPP"`
5508 eval `${CPP} -Isrc ${tempcname} \
5509 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5510 if test "x$SPECIFIED_CFLAGS" = x; then
5511 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5512 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5513 else
5514 REAL_CFLAGS="$CFLAGS"
5515 fi
5516 rm ${tempcname}
5517
5518 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5519
5520 ### Make sure subsequent tests use flags consistent with the build flags.
5521
5522 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5523 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5524 else
5525 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5526 fi
5527
5528
5529
5530 # Check whether --enable-largefile was given.
5531 if test "${enable_largefile+set}" = set; then
5532 enableval=$enable_largefile;
5533 fi
5534
5535 if test "$enable_largefile" != no; then
5536
5537 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5538 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5539 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5540 echo $ECHO_N "(cached) $ECHO_C" >&6
5541 else
5542 ac_cv_sys_largefile_CC=no
5543 if test "$GCC" != yes; then
5544 ac_save_CC=$CC
5545 while :; do
5546 # IRIX 6.2 and later do not support large files by default,
5547 # so use the C compiler's -n32 option if that helps.
5548 cat >conftest.$ac_ext <<_ACEOF
5549 /* confdefs.h. */
5550 _ACEOF
5551 cat confdefs.h >>conftest.$ac_ext
5552 cat >>conftest.$ac_ext <<_ACEOF
5553 /* end confdefs.h. */
5554 #include <sys/types.h>
5555 /* Check that off_t can represent 2**63 - 1 correctly.
5556 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5557 since some C++ compilers masquerading as C compilers
5558 incorrectly reject 9223372036854775807. */
5559 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5560 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5561 && LARGE_OFF_T % 2147483647 == 1)
5562 ? 1 : -1];
5563 int
5564 main ()
5565 {
5566
5567 ;
5568 return 0;
5569 }
5570 _ACEOF
5571 rm -f conftest.$ac_objext
5572 if { (ac_try="$ac_compile"
5573 case "(($ac_try" in
5574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5575 *) ac_try_echo=$ac_try;;
5576 esac
5577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5578 (eval "$ac_compile") 2>conftest.er1
5579 ac_status=$?
5580 grep -v '^ *+' conftest.er1 >conftest.err
5581 rm -f conftest.er1
5582 cat conftest.err >&5
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); } && {
5585 test -z "$ac_c_werror_flag" ||
5586 test ! -s conftest.err
5587 } && test -s conftest.$ac_objext; then
5588 break
5589 else
5590 echo "$as_me: failed program was:" >&5
5591 sed 's/^/| /' conftest.$ac_ext >&5
5592
5593
5594 fi
5595
5596 rm -f core conftest.err conftest.$ac_objext
5597 CC="$CC -n32"
5598 rm -f conftest.$ac_objext
5599 if { (ac_try="$ac_compile"
5600 case "(($ac_try" in
5601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5602 *) ac_try_echo=$ac_try;;
5603 esac
5604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5605 (eval "$ac_compile") 2>conftest.er1
5606 ac_status=$?
5607 grep -v '^ *+' conftest.er1 >conftest.err
5608 rm -f conftest.er1
5609 cat conftest.err >&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); } && {
5612 test -z "$ac_c_werror_flag" ||
5613 test ! -s conftest.err
5614 } && test -s conftest.$ac_objext; then
5615 ac_cv_sys_largefile_CC=' -n32'; break
5616 else
5617 echo "$as_me: failed program was:" >&5
5618 sed 's/^/| /' conftest.$ac_ext >&5
5619
5620
5621 fi
5622
5623 rm -f core conftest.err conftest.$ac_objext
5624 break
5625 done
5626 CC=$ac_save_CC
5627 rm -f conftest.$ac_ext
5628 fi
5629 fi
5630 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5631 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5632 if test "$ac_cv_sys_largefile_CC" != no; then
5633 CC=$CC$ac_cv_sys_largefile_CC
5634 fi
5635
5636 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5637 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5638 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5640 else
5641 while :; do
5642 cat >conftest.$ac_ext <<_ACEOF
5643 /* confdefs.h. */
5644 _ACEOF
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h. */
5648 #include <sys/types.h>
5649 /* Check that off_t can represent 2**63 - 1 correctly.
5650 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5651 since some C++ compilers masquerading as C compilers
5652 incorrectly reject 9223372036854775807. */
5653 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5654 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5655 && LARGE_OFF_T % 2147483647 == 1)
5656 ? 1 : -1];
5657 int
5658 main ()
5659 {
5660
5661 ;
5662 return 0;
5663 }
5664 _ACEOF
5665 rm -f conftest.$ac_objext
5666 if { (ac_try="$ac_compile"
5667 case "(($ac_try" in
5668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669 *) ac_try_echo=$ac_try;;
5670 esac
5671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5672 (eval "$ac_compile") 2>conftest.er1
5673 ac_status=$?
5674 grep -v '^ *+' conftest.er1 >conftest.err
5675 rm -f conftest.er1
5676 cat conftest.err >&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); } && {
5679 test -z "$ac_c_werror_flag" ||
5680 test ! -s conftest.err
5681 } && test -s conftest.$ac_objext; then
5682 ac_cv_sys_file_offset_bits=no; break
5683 else
5684 echo "$as_me: failed program was:" >&5
5685 sed 's/^/| /' conftest.$ac_ext >&5
5686
5687
5688 fi
5689
5690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5691 cat >conftest.$ac_ext <<_ACEOF
5692 /* confdefs.h. */
5693 _ACEOF
5694 cat confdefs.h >>conftest.$ac_ext
5695 cat >>conftest.$ac_ext <<_ACEOF
5696 /* end confdefs.h. */
5697 #define _FILE_OFFSET_BITS 64
5698 #include <sys/types.h>
5699 /* Check that off_t can represent 2**63 - 1 correctly.
5700 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5701 since some C++ compilers masquerading as C compilers
5702 incorrectly reject 9223372036854775807. */
5703 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5704 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5705 && LARGE_OFF_T % 2147483647 == 1)
5706 ? 1 : -1];
5707 int
5708 main ()
5709 {
5710
5711 ;
5712 return 0;
5713 }
5714 _ACEOF
5715 rm -f conftest.$ac_objext
5716 if { (ac_try="$ac_compile"
5717 case "(($ac_try" in
5718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5719 *) ac_try_echo=$ac_try;;
5720 esac
5721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5722 (eval "$ac_compile") 2>conftest.er1
5723 ac_status=$?
5724 grep -v '^ *+' conftest.er1 >conftest.err
5725 rm -f conftest.er1
5726 cat conftest.err >&5
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); } && {
5729 test -z "$ac_c_werror_flag" ||
5730 test ! -s conftest.err
5731 } && test -s conftest.$ac_objext; then
5732 ac_cv_sys_file_offset_bits=64; break
5733 else
5734 echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.$ac_ext >&5
5736
5737
5738 fi
5739
5740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5741 ac_cv_sys_file_offset_bits=unknown
5742 break
5743 done
5744 fi
5745 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5746 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5747 case $ac_cv_sys_file_offset_bits in #(
5748 no | unknown) ;;
5749 *)
5750 cat >>confdefs.h <<_ACEOF
5751 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5752 _ACEOF
5753 ;;
5754 esac
5755 rm -f conftest*
5756 if test $ac_cv_sys_file_offset_bits = unknown; then
5757 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5758 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5759 if test "${ac_cv_sys_large_files+set}" = set; then
5760 echo $ECHO_N "(cached) $ECHO_C" >&6
5761 else
5762 while :; do
5763 cat >conftest.$ac_ext <<_ACEOF
5764 /* confdefs.h. */
5765 _ACEOF
5766 cat confdefs.h >>conftest.$ac_ext
5767 cat >>conftest.$ac_ext <<_ACEOF
5768 /* end confdefs.h. */
5769 #include <sys/types.h>
5770 /* Check that off_t can represent 2**63 - 1 correctly.
5771 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5772 since some C++ compilers masquerading as C compilers
5773 incorrectly reject 9223372036854775807. */
5774 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5775 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5776 && LARGE_OFF_T % 2147483647 == 1)
5777 ? 1 : -1];
5778 int
5779 main ()
5780 {
5781
5782 ;
5783 return 0;
5784 }
5785 _ACEOF
5786 rm -f conftest.$ac_objext
5787 if { (ac_try="$ac_compile"
5788 case "(($ac_try" in
5789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5790 *) ac_try_echo=$ac_try;;
5791 esac
5792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5793 (eval "$ac_compile") 2>conftest.er1
5794 ac_status=$?
5795 grep -v '^ *+' conftest.er1 >conftest.err
5796 rm -f conftest.er1
5797 cat conftest.err >&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); } && {
5800 test -z "$ac_c_werror_flag" ||
5801 test ! -s conftest.err
5802 } && test -s conftest.$ac_objext; then
5803 ac_cv_sys_large_files=no; break
5804 else
5805 echo "$as_me: failed program was:" >&5
5806 sed 's/^/| /' conftest.$ac_ext >&5
5807
5808
5809 fi
5810
5811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5812 cat >conftest.$ac_ext <<_ACEOF
5813 /* confdefs.h. */
5814 _ACEOF
5815 cat confdefs.h >>conftest.$ac_ext
5816 cat >>conftest.$ac_ext <<_ACEOF
5817 /* end confdefs.h. */
5818 #define _LARGE_FILES 1
5819 #include <sys/types.h>
5820 /* Check that off_t can represent 2**63 - 1 correctly.
5821 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5822 since some C++ compilers masquerading as C compilers
5823 incorrectly reject 9223372036854775807. */
5824 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5825 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5826 && LARGE_OFF_T % 2147483647 == 1)
5827 ? 1 : -1];
5828 int
5829 main ()
5830 {
5831
5832 ;
5833 return 0;
5834 }
5835 _ACEOF
5836 rm -f conftest.$ac_objext
5837 if { (ac_try="$ac_compile"
5838 case "(($ac_try" in
5839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840 *) ac_try_echo=$ac_try;;
5841 esac
5842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843 (eval "$ac_compile") 2>conftest.er1
5844 ac_status=$?
5845 grep -v '^ *+' conftest.er1 >conftest.err
5846 rm -f conftest.er1
5847 cat conftest.err >&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } && {
5850 test -z "$ac_c_werror_flag" ||
5851 test ! -s conftest.err
5852 } && test -s conftest.$ac_objext; then
5853 ac_cv_sys_large_files=1; break
5854 else
5855 echo "$as_me: failed program was:" >&5
5856 sed 's/^/| /' conftest.$ac_ext >&5
5857
5858
5859 fi
5860
5861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5862 ac_cv_sys_large_files=unknown
5863 break
5864 done
5865 fi
5866 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5867 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5868 case $ac_cv_sys_large_files in #(
5869 no | unknown) ;;
5870 *)
5871 cat >>confdefs.h <<_ACEOF
5872 #define _LARGE_FILES $ac_cv_sys_large_files
5873 _ACEOF
5874 ;;
5875 esac
5876 rm -f conftest*
5877 fi
5878 fi
5879
5880
5881
5882 ### The standard library on x86-64 GNU/Linux distributions can
5883 ### be located in either /usr/lib64 or /usr/lib.
5884 case "${canonical}" in
5885 x86_64-*-linux-gnu* )
5886 if test -d /usr/lib64; then
5887
5888 cat >>confdefs.h <<\_ACEOF
5889 #define HAVE_X86_64_LIB64_DIR 1
5890 _ACEOF
5891
5892 fi
5893 esac
5894
5895
5896
5897
5898 if test "${with_sound}" != "no"; then
5899 # Sound support for GNU/Linux and the free BSDs.
5900 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5901 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5902 if test "${ac_cv_header_stdc+set}" = set; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
5904 else
5905 cat >conftest.$ac_ext <<_ACEOF
5906 /* confdefs.h. */
5907 _ACEOF
5908 cat confdefs.h >>conftest.$ac_ext
5909 cat >>conftest.$ac_ext <<_ACEOF
5910 /* end confdefs.h. */
5911 #include <stdlib.h>
5912 #include <stdarg.h>
5913 #include <string.h>
5914 #include <float.h>
5915
5916 int
5917 main ()
5918 {
5919
5920 ;
5921 return 0;
5922 }
5923 _ACEOF
5924 rm -f conftest.$ac_objext
5925 if { (ac_try="$ac_compile"
5926 case "(($ac_try" in
5927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5928 *) ac_try_echo=$ac_try;;
5929 esac
5930 eval "echo \"\$as_me:$LINENO: $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 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 ac_cv_header_stdc=yes
5942 else
5943 echo "$as_me: failed program was:" >&5
5944 sed 's/^/| /' conftest.$ac_ext >&5
5945
5946 ac_cv_header_stdc=no
5947 fi
5948
5949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5950
5951 if test $ac_cv_header_stdc = yes; then
5952 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5953 cat >conftest.$ac_ext <<_ACEOF
5954 /* confdefs.h. */
5955 _ACEOF
5956 cat confdefs.h >>conftest.$ac_ext
5957 cat >>conftest.$ac_ext <<_ACEOF
5958 /* end confdefs.h. */
5959 #include <string.h>
5960
5961 _ACEOF
5962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5963 $EGREP "memchr" >/dev/null 2>&1; then
5964 :
5965 else
5966 ac_cv_header_stdc=no
5967 fi
5968 rm -f conftest*
5969
5970 fi
5971
5972 if test $ac_cv_header_stdc = yes; then
5973 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5974 cat >conftest.$ac_ext <<_ACEOF
5975 /* confdefs.h. */
5976 _ACEOF
5977 cat confdefs.h >>conftest.$ac_ext
5978 cat >>conftest.$ac_ext <<_ACEOF
5979 /* end confdefs.h. */
5980 #include <stdlib.h>
5981
5982 _ACEOF
5983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5984 $EGREP "free" >/dev/null 2>&1; then
5985 :
5986 else
5987 ac_cv_header_stdc=no
5988 fi
5989 rm -f conftest*
5990
5991 fi
5992
5993 if test $ac_cv_header_stdc = yes; then
5994 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5995 if test "$cross_compiling" = yes; then
5996 :
5997 else
5998 cat >conftest.$ac_ext <<_ACEOF
5999 /* confdefs.h. */
6000 _ACEOF
6001 cat confdefs.h >>conftest.$ac_ext
6002 cat >>conftest.$ac_ext <<_ACEOF
6003 /* end confdefs.h. */
6004 #include <ctype.h>
6005 #include <stdlib.h>
6006 #if ((' ' & 0x0FF) == 0x020)
6007 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6008 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6009 #else
6010 # define ISLOWER(c) \
6011 (('a' <= (c) && (c) <= 'i') \
6012 || ('j' <= (c) && (c) <= 'r') \
6013 || ('s' <= (c) && (c) <= 'z'))
6014 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6015 #endif
6016
6017 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6018 int
6019 main ()
6020 {
6021 int i;
6022 for (i = 0; i < 256; i++)
6023 if (XOR (islower (i), ISLOWER (i))
6024 || toupper (i) != TOUPPER (i))
6025 return 2;
6026 return 0;
6027 }
6028 _ACEOF
6029 rm -f conftest$ac_exeext
6030 if { (ac_try="$ac_link"
6031 case "(($ac_try" in
6032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6033 *) ac_try_echo=$ac_try;;
6034 esac
6035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6036 (eval "$ac_link") 2>&5
6037 ac_status=$?
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6040 { (case "(($ac_try" in
6041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6042 *) ac_try_echo=$ac_try;;
6043 esac
6044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6045 (eval "$ac_try") 2>&5
6046 ac_status=$?
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); }; }; then
6049 :
6050 else
6051 echo "$as_me: program exited with status $ac_status" >&5
6052 echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.$ac_ext >&5
6054
6055 ( exit $ac_status )
6056 ac_cv_header_stdc=no
6057 fi
6058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6059 fi
6060
6061
6062 fi
6063 fi
6064 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6065 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6066 if test $ac_cv_header_stdc = yes; then
6067
6068 cat >>confdefs.h <<\_ACEOF
6069 #define STDC_HEADERS 1
6070 _ACEOF
6071
6072 fi
6073
6074 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6085 inttypes.h stdint.h unistd.h
6086 do
6087 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6088 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6091 echo $ECHO_N "(cached) $ECHO_C" >&6
6092 else
6093 cat >conftest.$ac_ext <<_ACEOF
6094 /* confdefs.h. */
6095 _ACEOF
6096 cat confdefs.h >>conftest.$ac_ext
6097 cat >>conftest.$ac_ext <<_ACEOF
6098 /* end confdefs.h. */
6099 $ac_includes_default
6100
6101 #include <$ac_header>
6102 _ACEOF
6103 rm -f conftest.$ac_objext
6104 if { (ac_try="$ac_compile"
6105 case "(($ac_try" in
6106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6107 *) ac_try_echo=$ac_try;;
6108 esac
6109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6110 (eval "$ac_compile") 2>conftest.er1
6111 ac_status=$?
6112 grep -v '^ *+' conftest.er1 >conftest.err
6113 rm -f conftest.er1
6114 cat conftest.err >&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); } && {
6117 test -z "$ac_c_werror_flag" ||
6118 test ! -s conftest.err
6119 } && test -s conftest.$ac_objext; then
6120 eval "$as_ac_Header=yes"
6121 else
6122 echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.$ac_ext >&5
6124
6125 eval "$as_ac_Header=no"
6126 fi
6127
6128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6129 fi
6130 ac_res=`eval echo '${'$as_ac_Header'}'`
6131 { echo "$as_me:$LINENO: result: $ac_res" >&5
6132 echo "${ECHO_T}$ac_res" >&6; }
6133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6134 cat >>confdefs.h <<_ACEOF
6135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6136 _ACEOF
6137
6138 fi
6139
6140 done
6141
6142
6143
6144
6145
6146 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6147 do
6148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6153 echo $ECHO_N "(cached) $ECHO_C" >&6
6154 fi
6155 ac_res=`eval echo '${'$as_ac_Header'}'`
6156 { echo "$as_me:$LINENO: result: $ac_res" >&5
6157 echo "${ECHO_T}$ac_res" >&6; }
6158 else
6159 # Is the header compilable?
6160 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6162 cat >conftest.$ac_ext <<_ACEOF
6163 /* confdefs.h. */
6164 _ACEOF
6165 cat confdefs.h >>conftest.$ac_ext
6166 cat >>conftest.$ac_ext <<_ACEOF
6167 /* end confdefs.h. */
6168 $ac_includes_default
6169 #include <$ac_header>
6170 _ACEOF
6171 rm -f conftest.$ac_objext
6172 if { (ac_try="$ac_compile"
6173 case "(($ac_try" in
6174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6175 *) ac_try_echo=$ac_try;;
6176 esac
6177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6178 (eval "$ac_compile") 2>conftest.er1
6179 ac_status=$?
6180 grep -v '^ *+' conftest.er1 >conftest.err
6181 rm -f conftest.er1
6182 cat conftest.err >&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } && {
6185 test -z "$ac_c_werror_flag" ||
6186 test ! -s conftest.err
6187 } && test -s conftest.$ac_objext; then
6188 ac_header_compiler=yes
6189 else
6190 echo "$as_me: failed program was:" >&5
6191 sed 's/^/| /' conftest.$ac_ext >&5
6192
6193 ac_header_compiler=no
6194 fi
6195
6196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6197 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6198 echo "${ECHO_T}$ac_header_compiler" >&6; }
6199
6200 # Is the header present?
6201 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6202 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6203 cat >conftest.$ac_ext <<_ACEOF
6204 /* confdefs.h. */
6205 _ACEOF
6206 cat confdefs.h >>conftest.$ac_ext
6207 cat >>conftest.$ac_ext <<_ACEOF
6208 /* end confdefs.h. */
6209 #include <$ac_header>
6210 _ACEOF
6211 if { (ac_try="$ac_cpp conftest.$ac_ext"
6212 case "(($ac_try" in
6213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6214 *) ac_try_echo=$ac_try;;
6215 esac
6216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6218 ac_status=$?
6219 grep -v '^ *+' conftest.er1 >conftest.err
6220 rm -f conftest.er1
6221 cat conftest.err >&5
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); } >/dev/null && {
6224 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6225 test ! -s conftest.err
6226 }; then
6227 ac_header_preproc=yes
6228 else
6229 echo "$as_me: failed program was:" >&5
6230 sed 's/^/| /' conftest.$ac_ext >&5
6231
6232 ac_header_preproc=no
6233 fi
6234
6235 rm -f conftest.err conftest.$ac_ext
6236 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6237 echo "${ECHO_T}$ac_header_preproc" >&6; }
6238
6239 # So? What about this header?
6240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6241 yes:no: )
6242 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6243 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6245 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6246 ac_header_preproc=yes
6247 ;;
6248 no:yes:* )
6249 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6250 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6251 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6252 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6253 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6254 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6255 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6256 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6259 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6260 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6261
6262 ;;
6263 esac
6264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
6268 else
6269 eval "$as_ac_Header=\$ac_header_preproc"
6270 fi
6271 ac_res=`eval echo '${'$as_ac_Header'}'`
6272 { echo "$as_me:$LINENO: result: $ac_res" >&5
6273 echo "${ECHO_T}$ac_res" >&6; }
6274
6275 fi
6276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6277 cat >>confdefs.h <<_ACEOF
6278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6279 _ACEOF
6280
6281 fi
6282
6283 done
6284
6285 # Emulation library used on NetBSD.
6286 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6287 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6288 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6289 echo $ECHO_N "(cached) $ECHO_C" >&6
6290 else
6291 ac_check_lib_save_LIBS=$LIBS
6292 LIBS="-lossaudio $LIBS"
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
6300 /* Override any GCC internal prototype to avoid an error.
6301 Use char because int might match the return type of a GCC
6302 builtin and then its argument prototype would still apply. */
6303 #ifdef __cplusplus
6304 extern "C"
6305 #endif
6306 char _oss_ioctl ();
6307 int
6308 main ()
6309 {
6310 return _oss_ioctl ();
6311 ;
6312 return 0;
6313 }
6314 _ACEOF
6315 rm -f conftest.$ac_objext conftest$ac_exeext
6316 if { (ac_try="$ac_link"
6317 case "(($ac_try" in
6318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6319 *) ac_try_echo=$ac_try;;
6320 esac
6321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6322 (eval "$ac_link") 2>conftest.er1
6323 ac_status=$?
6324 grep -v '^ *+' conftest.er1 >conftest.err
6325 rm -f conftest.er1
6326 cat conftest.err >&5
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); } && {
6329 test -z "$ac_c_werror_flag" ||
6330 test ! -s conftest.err
6331 } && test -s conftest$ac_exeext &&
6332 $as_test_x conftest$ac_exeext; then
6333 ac_cv_lib_ossaudio__oss_ioctl=yes
6334 else
6335 echo "$as_me: failed program was:" >&5
6336 sed 's/^/| /' conftest.$ac_ext >&5
6337
6338 ac_cv_lib_ossaudio__oss_ioctl=no
6339 fi
6340
6341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6342 conftest$ac_exeext conftest.$ac_ext
6343 LIBS=$ac_check_lib_save_LIBS
6344 fi
6345 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6346 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6347 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6348 LIBSOUND=-lossaudio
6349 else
6350 LIBSOUND=
6351 fi
6352
6353
6354
6355 ALSA_REQUIRED=1.0.0
6356 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6357 if test "X${with_pkg_config_prog}" != X; then
6358 PKG_CONFIG="${with_pkg_config_prog}"
6359 fi
6360
6361 succeeded=no
6362
6363 if test -z "$PKG_CONFIG"; then
6364 # Extract the first word of "pkg-config", so it can be a program name with args.
6365 set dummy pkg-config; ac_word=$2
6366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6368 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6369 echo $ECHO_N "(cached) $ECHO_C" >&6
6370 else
6371 case $PKG_CONFIG in
6372 [\\/]* | ?:[\\/]*)
6373 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6374 ;;
6375 *)
6376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377 for as_dir in $PATH
6378 do
6379 IFS=$as_save_IFS
6380 test -z "$as_dir" && as_dir=.
6381 for ac_exec_ext in '' $ac_executable_extensions; do
6382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6383 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6385 break 2
6386 fi
6387 done
6388 done
6389 IFS=$as_save_IFS
6390
6391 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6392 ;;
6393 esac
6394 fi
6395 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6396 if test -n "$PKG_CONFIG"; then
6397 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6398 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6399 else
6400 { echo "$as_me:$LINENO: result: no" >&5
6401 echo "${ECHO_T}no" >&6; }
6402 fi
6403
6404
6405 fi
6406
6407 if test "$PKG_CONFIG" = "no" ; then
6408 HAVE_ALSA=no
6409 else
6410 PKG_CONFIG_MIN_VERSION=0.9.0
6411 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6412 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6413 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6414
6415 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6416 { echo "$as_me:$LINENO: result: yes" >&5
6417 echo "${ECHO_T}yes" >&6; }
6418 succeeded=yes
6419
6420 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6421 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6422 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6423 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6424 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6425
6426 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6427 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6428 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6429 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6430 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6431 else
6432 { echo "$as_me:$LINENO: result: no" >&5
6433 echo "${ECHO_T}no" >&6; }
6434 ALSA_CFLAGS=""
6435 ALSA_LIBS=""
6436 ## If we have a custom action on failure, don't print errors, but
6437 ## do set a variable so people can do so.
6438 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6439
6440 fi
6441
6442
6443
6444 else
6445 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6446 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6447 fi
6448 fi
6449
6450 if test $succeeded = yes; then
6451 HAVE_ALSA=yes
6452 else
6453 HAVE_ALSA=no
6454 fi
6455
6456 if test $HAVE_ALSA = yes; then
6457 SAVE_CFLAGS="$CFLAGS"
6458 SAVE_LDFLAGS="$LDFLAGS"
6459 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6460 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6461 cat >conftest.$ac_ext <<_ACEOF
6462 /* confdefs.h. */
6463 _ACEOF
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h. */
6467 #include <asoundlib.h>
6468 int
6469 main ()
6470 {
6471 snd_lib_error_set_handler (0);
6472 ;
6473 return 0;
6474 }
6475 _ACEOF
6476 rm -f conftest.$ac_objext
6477 if { (ac_try="$ac_compile"
6478 case "(($ac_try" in
6479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6480 *) ac_try_echo=$ac_try;;
6481 esac
6482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6483 (eval "$ac_compile") 2>conftest.er1
6484 ac_status=$?
6485 grep -v '^ *+' conftest.er1 >conftest.err
6486 rm -f conftest.er1
6487 cat conftest.err >&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); } && {
6490 test -z "$ac_c_werror_flag" ||
6491 test ! -s conftest.err
6492 } && test -s conftest.$ac_objext; then
6493 emacs_alsa_normal=yes
6494 else
6495 echo "$as_me: failed program was:" >&5
6496 sed 's/^/| /' conftest.$ac_ext >&5
6497
6498 emacs_alsa_normal=no
6499 fi
6500
6501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6502 if test "$emacs_alsa_normal" != yes; then
6503 cat >conftest.$ac_ext <<_ACEOF
6504 /* confdefs.h. */
6505 _ACEOF
6506 cat confdefs.h >>conftest.$ac_ext
6507 cat >>conftest.$ac_ext <<_ACEOF
6508 /* end confdefs.h. */
6509 #include <alsa/asoundlib.h>
6510 int
6511 main ()
6512 {
6513 snd_lib_error_set_handler (0);
6514 ;
6515 return 0;
6516 }
6517 _ACEOF
6518 rm -f conftest.$ac_objext
6519 if { (ac_try="$ac_compile"
6520 case "(($ac_try" in
6521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6522 *) ac_try_echo=$ac_try;;
6523 esac
6524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6525 (eval "$ac_compile") 2>conftest.er1
6526 ac_status=$?
6527 grep -v '^ *+' conftest.er1 >conftest.err
6528 rm -f conftest.er1
6529 cat conftest.err >&5
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); } && {
6532 test -z "$ac_c_werror_flag" ||
6533 test ! -s conftest.err
6534 } && test -s conftest.$ac_objext; then
6535 emacs_alsa_subdir=yes
6536 else
6537 echo "$as_me: failed program was:" >&5
6538 sed 's/^/| /' conftest.$ac_ext >&5
6539
6540 emacs_alsa_subdir=no
6541 fi
6542
6543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6544 if test "$emacs_alsa_subdir" != yes; then
6545 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6546 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6547 { (exit 1); exit 1; }; }
6548 fi
6549 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6550 fi
6551
6552 CFLAGS="$SAVE_CFLAGS"
6553 LDFLAGS="$SAVE_LDFLAGS"
6554 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6555 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6556
6557 cat >>confdefs.h <<\_ACEOF
6558 #define HAVE_ALSA 1
6559 _ACEOF
6560
6561 fi
6562
6563 fi
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6591 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6592 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6593 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6594 sys/utsname.h pwd.h
6595 do
6596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6601 echo $ECHO_N "(cached) $ECHO_C" >&6
6602 fi
6603 ac_res=`eval echo '${'$as_ac_Header'}'`
6604 { echo "$as_me:$LINENO: result: $ac_res" >&5
6605 echo "${ECHO_T}$ac_res" >&6; }
6606 else
6607 # Is the header compilable?
6608 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6610 cat >conftest.$ac_ext <<_ACEOF
6611 /* confdefs.h. */
6612 _ACEOF
6613 cat confdefs.h >>conftest.$ac_ext
6614 cat >>conftest.$ac_ext <<_ACEOF
6615 /* end confdefs.h. */
6616 $ac_includes_default
6617 #include <$ac_header>
6618 _ACEOF
6619 rm -f conftest.$ac_objext
6620 if { (ac_try="$ac_compile"
6621 case "(($ac_try" in
6622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6623 *) ac_try_echo=$ac_try;;
6624 esac
6625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6626 (eval "$ac_compile") 2>conftest.er1
6627 ac_status=$?
6628 grep -v '^ *+' conftest.er1 >conftest.err
6629 rm -f conftest.er1
6630 cat conftest.err >&5
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); } && {
6633 test -z "$ac_c_werror_flag" ||
6634 test ! -s conftest.err
6635 } && test -s conftest.$ac_objext; then
6636 ac_header_compiler=yes
6637 else
6638 echo "$as_me: failed program was:" >&5
6639 sed 's/^/| /' conftest.$ac_ext >&5
6640
6641 ac_header_compiler=no
6642 fi
6643
6644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6646 echo "${ECHO_T}$ac_header_compiler" >&6; }
6647
6648 # Is the header present?
6649 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6651 cat >conftest.$ac_ext <<_ACEOF
6652 /* confdefs.h. */
6653 _ACEOF
6654 cat confdefs.h >>conftest.$ac_ext
6655 cat >>conftest.$ac_ext <<_ACEOF
6656 /* end confdefs.h. */
6657 #include <$ac_header>
6658 _ACEOF
6659 if { (ac_try="$ac_cpp conftest.$ac_ext"
6660 case "(($ac_try" in
6661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6662 *) ac_try_echo=$ac_try;;
6663 esac
6664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6666 ac_status=$?
6667 grep -v '^ *+' conftest.er1 >conftest.err
6668 rm -f conftest.er1
6669 cat conftest.err >&5
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); } >/dev/null && {
6672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6673 test ! -s conftest.err
6674 }; then
6675 ac_header_preproc=yes
6676 else
6677 echo "$as_me: failed program was:" >&5
6678 sed 's/^/| /' conftest.$ac_ext >&5
6679
6680 ac_header_preproc=no
6681 fi
6682
6683 rm -f conftest.err conftest.$ac_ext
6684 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6685 echo "${ECHO_T}$ac_header_preproc" >&6; }
6686
6687 # So? What about this header?
6688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6689 yes:no: )
6690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6694 ac_header_preproc=yes
6695 ;;
6696 no:yes:* )
6697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6704 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6709
6710 ;;
6711 esac
6712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6716 else
6717 eval "$as_ac_Header=\$ac_header_preproc"
6718 fi
6719 ac_res=`eval echo '${'$as_ac_Header'}'`
6720 { echo "$as_me:$LINENO: result: $ac_res" >&5
6721 echo "${ECHO_T}$ac_res" >&6; }
6722
6723 fi
6724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6725 cat >>confdefs.h <<_ACEOF
6726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6727 _ACEOF
6728
6729 fi
6730
6731 done
6732
6733
6734 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6735 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6736 cat >conftest.$ac_ext <<_ACEOF
6737 /* confdefs.h. */
6738 _ACEOF
6739 cat confdefs.h >>conftest.$ac_ext
6740 cat >>conftest.$ac_ext <<_ACEOF
6741 /* end confdefs.h. */
6742 #include <sys/personality.h>
6743 int
6744 main ()
6745 {
6746 personality (PER_LINUX32)
6747 ;
6748 return 0;
6749 }
6750 _ACEOF
6751 rm -f conftest.$ac_objext
6752 if { (ac_try="$ac_compile"
6753 case "(($ac_try" in
6754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6755 *) ac_try_echo=$ac_try;;
6756 esac
6757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6758 (eval "$ac_compile") 2>conftest.er1
6759 ac_status=$?
6760 grep -v '^ *+' conftest.er1 >conftest.err
6761 rm -f conftest.er1
6762 cat conftest.err >&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } && {
6765 test -z "$ac_c_werror_flag" ||
6766 test ! -s conftest.err
6767 } && test -s conftest.$ac_objext; then
6768 emacs_cv_personality_linux32=yes
6769 else
6770 echo "$as_me: failed program was:" >&5
6771 sed 's/^/| /' conftest.$ac_ext >&5
6772
6773 emacs_cv_personality_linux32=no
6774 fi
6775
6776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6777 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6778 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6779
6780 if test $emacs_cv_personality_linux32 = yes; then
6781
6782 cat >>confdefs.h <<\_ACEOF
6783 #define HAVE_PERSONALITY_LINUX32 1
6784 _ACEOF
6785
6786 fi
6787
6788
6789 for ac_header in term.h
6790 do
6791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6795 echo $ECHO_N "(cached) $ECHO_C" >&6
6796 else
6797 cat >conftest.$ac_ext <<_ACEOF
6798 /* confdefs.h. */
6799 _ACEOF
6800 cat confdefs.h >>conftest.$ac_ext
6801 cat >>conftest.$ac_ext <<_ACEOF
6802 /* end confdefs.h. */
6803 #include <$ac_header>
6804 _ACEOF
6805 if { (ac_try="$ac_cpp conftest.$ac_ext"
6806 case "(($ac_try" in
6807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6808 *) ac_try_echo=$ac_try;;
6809 esac
6810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6812 ac_status=$?
6813 grep -v '^ *+' conftest.er1 >conftest.err
6814 rm -f conftest.er1
6815 cat conftest.err >&5
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); } >/dev/null && {
6818 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6819 test ! -s conftest.err
6820 }; then
6821 eval "$as_ac_Header=yes"
6822 else
6823 echo "$as_me: failed program was:" >&5
6824 sed 's/^/| /' conftest.$ac_ext >&5
6825
6826 eval "$as_ac_Header=no"
6827 fi
6828
6829 rm -f conftest.err conftest.$ac_ext
6830 fi
6831 ac_res=`eval echo '${'$as_ac_Header'}'`
6832 { echo "$as_me:$LINENO: result: $ac_res" >&5
6833 echo "${ECHO_T}$ac_res" >&6; }
6834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6835 cat >>confdefs.h <<_ACEOF
6836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6837 _ACEOF
6838
6839 fi
6840
6841 done
6842
6843 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6844 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6845 if test "${ac_cv_header_stdc+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6847 else
6848 cat >conftest.$ac_ext <<_ACEOF
6849 /* confdefs.h. */
6850 _ACEOF
6851 cat confdefs.h >>conftest.$ac_ext
6852 cat >>conftest.$ac_ext <<_ACEOF
6853 /* end confdefs.h. */
6854 #include <stdlib.h>
6855 #include <stdarg.h>
6856 #include <string.h>
6857 #include <float.h>
6858
6859 int
6860 main ()
6861 {
6862
6863 ;
6864 return 0;
6865 }
6866 _ACEOF
6867 rm -f conftest.$ac_objext
6868 if { (ac_try="$ac_compile"
6869 case "(($ac_try" in
6870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6871 *) ac_try_echo=$ac_try;;
6872 esac
6873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6874 (eval "$ac_compile") 2>conftest.er1
6875 ac_status=$?
6876 grep -v '^ *+' conftest.er1 >conftest.err
6877 rm -f conftest.er1
6878 cat conftest.err >&5
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } && {
6881 test -z "$ac_c_werror_flag" ||
6882 test ! -s conftest.err
6883 } && test -s conftest.$ac_objext; then
6884 ac_cv_header_stdc=yes
6885 else
6886 echo "$as_me: failed program was:" >&5
6887 sed 's/^/| /' conftest.$ac_ext >&5
6888
6889 ac_cv_header_stdc=no
6890 fi
6891
6892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6893
6894 if test $ac_cv_header_stdc = yes; then
6895 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6896 cat >conftest.$ac_ext <<_ACEOF
6897 /* confdefs.h. */
6898 _ACEOF
6899 cat confdefs.h >>conftest.$ac_ext
6900 cat >>conftest.$ac_ext <<_ACEOF
6901 /* end confdefs.h. */
6902 #include <string.h>
6903
6904 _ACEOF
6905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6906 $EGREP "memchr" >/dev/null 2>&1; then
6907 :
6908 else
6909 ac_cv_header_stdc=no
6910 fi
6911 rm -f conftest*
6912
6913 fi
6914
6915 if test $ac_cv_header_stdc = yes; then
6916 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6917 cat >conftest.$ac_ext <<_ACEOF
6918 /* confdefs.h. */
6919 _ACEOF
6920 cat confdefs.h >>conftest.$ac_ext
6921 cat >>conftest.$ac_ext <<_ACEOF
6922 /* end confdefs.h. */
6923 #include <stdlib.h>
6924
6925 _ACEOF
6926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6927 $EGREP "free" >/dev/null 2>&1; then
6928 :
6929 else
6930 ac_cv_header_stdc=no
6931 fi
6932 rm -f conftest*
6933
6934 fi
6935
6936 if test $ac_cv_header_stdc = yes; then
6937 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6938 if test "$cross_compiling" = yes; then
6939 :
6940 else
6941 cat >conftest.$ac_ext <<_ACEOF
6942 /* confdefs.h. */
6943 _ACEOF
6944 cat confdefs.h >>conftest.$ac_ext
6945 cat >>conftest.$ac_ext <<_ACEOF
6946 /* end confdefs.h. */
6947 #include <ctype.h>
6948 #include <stdlib.h>
6949 #if ((' ' & 0x0FF) == 0x020)
6950 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6951 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6952 #else
6953 # define ISLOWER(c) \
6954 (('a' <= (c) && (c) <= 'i') \
6955 || ('j' <= (c) && (c) <= 'r') \
6956 || ('s' <= (c) && (c) <= 'z'))
6957 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6958 #endif
6959
6960 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6961 int
6962 main ()
6963 {
6964 int i;
6965 for (i = 0; i < 256; i++)
6966 if (XOR (islower (i), ISLOWER (i))
6967 || toupper (i) != TOUPPER (i))
6968 return 2;
6969 return 0;
6970 }
6971 _ACEOF
6972 rm -f conftest$ac_exeext
6973 if { (ac_try="$ac_link"
6974 case "(($ac_try" in
6975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6976 *) ac_try_echo=$ac_try;;
6977 esac
6978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6979 (eval "$ac_link") 2>&5
6980 ac_status=$?
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6983 { (case "(($ac_try" in
6984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6985 *) ac_try_echo=$ac_try;;
6986 esac
6987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6988 (eval "$ac_try") 2>&5
6989 ac_status=$?
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); }; }; then
6992 :
6993 else
6994 echo "$as_me: program exited with status $ac_status" >&5
6995 echo "$as_me: failed program was:" >&5
6996 sed 's/^/| /' conftest.$ac_ext >&5
6997
6998 ( exit $ac_status )
6999 ac_cv_header_stdc=no
7000 fi
7001 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7002 fi
7003
7004
7005 fi
7006 fi
7007 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7008 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7009 if test $ac_cv_header_stdc = yes; then
7010
7011 cat >>confdefs.h <<\_ACEOF
7012 #define STDC_HEADERS 1
7013 _ACEOF
7014
7015 fi
7016
7017 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7018 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7019 if test "${ac_cv_header_time+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7021 else
7022 cat >conftest.$ac_ext <<_ACEOF
7023 /* confdefs.h. */
7024 _ACEOF
7025 cat confdefs.h >>conftest.$ac_ext
7026 cat >>conftest.$ac_ext <<_ACEOF
7027 /* end confdefs.h. */
7028 #include <sys/types.h>
7029 #include <sys/time.h>
7030 #include <time.h>
7031
7032 int
7033 main ()
7034 {
7035 if ((struct tm *) 0)
7036 return 0;
7037 ;
7038 return 0;
7039 }
7040 _ACEOF
7041 rm -f conftest.$ac_objext
7042 if { (ac_try="$ac_compile"
7043 case "(($ac_try" in
7044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7045 *) ac_try_echo=$ac_try;;
7046 esac
7047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7048 (eval "$ac_compile") 2>conftest.er1
7049 ac_status=$?
7050 grep -v '^ *+' conftest.er1 >conftest.err
7051 rm -f conftest.er1
7052 cat conftest.err >&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); } && {
7055 test -z "$ac_c_werror_flag" ||
7056 test ! -s conftest.err
7057 } && test -s conftest.$ac_objext; then
7058 ac_cv_header_time=yes
7059 else
7060 echo "$as_me: failed program was:" >&5
7061 sed 's/^/| /' conftest.$ac_ext >&5
7062
7063 ac_cv_header_time=no
7064 fi
7065
7066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7067 fi
7068 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7069 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7070 if test $ac_cv_header_time = yes; then
7071
7072 cat >>confdefs.h <<\_ACEOF
7073 #define TIME_WITH_SYS_TIME 1
7074 _ACEOF
7075
7076 fi
7077
7078 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7079 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7080 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7081 echo $ECHO_N "(cached) $ECHO_C" >&6
7082 else
7083 cat >conftest.$ac_ext <<_ACEOF
7084 /* confdefs.h. */
7085 _ACEOF
7086 cat confdefs.h >>conftest.$ac_ext
7087 cat >>conftest.$ac_ext <<_ACEOF
7088 /* end confdefs.h. */
7089 $ac_includes_default
7090 int
7091 main ()
7092 {
7093 #ifndef sys_siglist
7094 (void) sys_siglist;
7095 #endif
7096
7097 ;
7098 return 0;
7099 }
7100 _ACEOF
7101 rm -f conftest.$ac_objext
7102 if { (ac_try="$ac_compile"
7103 case "(($ac_try" in
7104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7105 *) ac_try_echo=$ac_try;;
7106 esac
7107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7108 (eval "$ac_compile") 2>conftest.er1
7109 ac_status=$?
7110 grep -v '^ *+' conftest.er1 >conftest.err
7111 rm -f conftest.er1
7112 cat conftest.err >&5
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); } && {
7115 test -z "$ac_c_werror_flag" ||
7116 test ! -s conftest.err
7117 } && test -s conftest.$ac_objext; then
7118 ac_cv_have_decl_sys_siglist=yes
7119 else
7120 echo "$as_me: failed program was:" >&5
7121 sed 's/^/| /' conftest.$ac_ext >&5
7122
7123 ac_cv_have_decl_sys_siglist=no
7124 fi
7125
7126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7127 fi
7128 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7129 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7130 if test $ac_cv_have_decl_sys_siglist = yes; then
7131
7132 cat >>confdefs.h <<_ACEOF
7133 #define HAVE_DECL_SYS_SIGLIST 1
7134 _ACEOF
7135
7136
7137 else
7138 cat >>confdefs.h <<_ACEOF
7139 #define HAVE_DECL_SYS_SIGLIST 0
7140 _ACEOF
7141
7142
7143 fi
7144
7145
7146 if test $ac_cv_have_decl_sys_siglist != yes; then
7147 # For Tru64, at least:
7148 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7149 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7150 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 else
7153 cat >conftest.$ac_ext <<_ACEOF
7154 /* confdefs.h. */
7155 _ACEOF
7156 cat confdefs.h >>conftest.$ac_ext
7157 cat >>conftest.$ac_ext <<_ACEOF
7158 /* end confdefs.h. */
7159 $ac_includes_default
7160 int
7161 main ()
7162 {
7163 #ifndef __sys_siglist
7164 (void) __sys_siglist;
7165 #endif
7166
7167 ;
7168 return 0;
7169 }
7170 _ACEOF
7171 rm -f conftest.$ac_objext
7172 if { (ac_try="$ac_compile"
7173 case "(($ac_try" in
7174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7175 *) ac_try_echo=$ac_try;;
7176 esac
7177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7178 (eval "$ac_compile") 2>conftest.er1
7179 ac_status=$?
7180 grep -v '^ *+' conftest.er1 >conftest.err
7181 rm -f conftest.er1
7182 cat conftest.err >&5
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); } && {
7185 test -z "$ac_c_werror_flag" ||
7186 test ! -s conftest.err
7187 } && test -s conftest.$ac_objext; then
7188 ac_cv_have_decl___sys_siglist=yes
7189 else
7190 echo "$as_me: failed program was:" >&5
7191 sed 's/^/| /' conftest.$ac_ext >&5
7192
7193 ac_cv_have_decl___sys_siglist=no
7194 fi
7195
7196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7197 fi
7198 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7199 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7200 if test $ac_cv_have_decl___sys_siglist = yes; then
7201
7202 cat >>confdefs.h <<_ACEOF
7203 #define HAVE_DECL___SYS_SIGLIST 1
7204 _ACEOF
7205
7206
7207 else
7208 cat >>confdefs.h <<_ACEOF
7209 #define HAVE_DECL___SYS_SIGLIST 0
7210 _ACEOF
7211
7212
7213 fi
7214
7215
7216 if test $ac_cv_have_decl___sys_siglist = yes; then
7217
7218 cat >>confdefs.h <<\_ACEOF
7219 #define sys_siglist __sys_siglist
7220 _ACEOF
7221
7222 fi
7223 fi
7224 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7225 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7226 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
7228 else
7229 cat >conftest.$ac_ext <<_ACEOF
7230 /* confdefs.h. */
7231 _ACEOF
7232 cat confdefs.h >>conftest.$ac_ext
7233 cat >>conftest.$ac_ext <<_ACEOF
7234 /* end confdefs.h. */
7235 #include <sys/types.h>
7236 #include <sys/wait.h>
7237 #ifndef WEXITSTATUS
7238 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7239 #endif
7240 #ifndef WIFEXITED
7241 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7242 #endif
7243
7244 int
7245 main ()
7246 {
7247 int s;
7248 wait (&s);
7249 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7250 ;
7251 return 0;
7252 }
7253 _ACEOF
7254 rm -f conftest.$ac_objext
7255 if { (ac_try="$ac_compile"
7256 case "(($ac_try" in
7257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7258 *) ac_try_echo=$ac_try;;
7259 esac
7260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7261 (eval "$ac_compile") 2>conftest.er1
7262 ac_status=$?
7263 grep -v '^ *+' conftest.er1 >conftest.err
7264 rm -f conftest.er1
7265 cat conftest.err >&5
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); } && {
7268 test -z "$ac_c_werror_flag" ||
7269 test ! -s conftest.err
7270 } && test -s conftest.$ac_objext; then
7271 ac_cv_header_sys_wait_h=yes
7272 else
7273 echo "$as_me: failed program was:" >&5
7274 sed 's/^/| /' conftest.$ac_ext >&5
7275
7276 ac_cv_header_sys_wait_h=no
7277 fi
7278
7279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7280 fi
7281 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7282 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7283 if test $ac_cv_header_sys_wait_h = yes; then
7284
7285 cat >>confdefs.h <<\_ACEOF
7286 #define HAVE_SYS_WAIT_H 1
7287 _ACEOF
7288
7289 fi
7290
7291
7292 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7293 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7294 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7296 else
7297 cat >conftest.$ac_ext <<_ACEOF
7298 /* confdefs.h. */
7299 _ACEOF
7300 cat confdefs.h >>conftest.$ac_ext
7301 cat >>conftest.$ac_ext <<_ACEOF
7302 /* end confdefs.h. */
7303 #ifdef TIME_WITH_SYS_TIME
7304 #include <sys/time.h>
7305 #include <time.h>
7306 #else
7307 #ifdef HAVE_SYS_TIME_H
7308 #include <sys/time.h>
7309 #else
7310 #include <time.h>
7311 #endif
7312 #endif
7313 #ifdef HAVE_UTIME_H
7314 #include <utime.h>
7315 #endif
7316 int
7317 main ()
7318 {
7319 static struct utimbuf x; x.actime = x.modtime;
7320 ;
7321 return 0;
7322 }
7323 _ACEOF
7324 rm -f conftest.$ac_objext
7325 if { (ac_try="$ac_compile"
7326 case "(($ac_try" in
7327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7328 *) ac_try_echo=$ac_try;;
7329 esac
7330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7331 (eval "$ac_compile") 2>conftest.er1
7332 ac_status=$?
7333 grep -v '^ *+' conftest.er1 >conftest.err
7334 rm -f conftest.er1
7335 cat conftest.err >&5
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); } && {
7338 test -z "$ac_c_werror_flag" ||
7339 test ! -s conftest.err
7340 } && test -s conftest.$ac_objext; then
7341 emacs_cv_struct_utimbuf=yes
7342 else
7343 echo "$as_me: failed program was:" >&5
7344 sed 's/^/| /' conftest.$ac_ext >&5
7345
7346 emacs_cv_struct_utimbuf=no
7347 fi
7348
7349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7350 fi
7351 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7352 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7353 if test $emacs_cv_struct_utimbuf = yes; then
7354
7355 cat >>confdefs.h <<\_ACEOF
7356 #define HAVE_STRUCT_UTIMBUF 1
7357 _ACEOF
7358
7359 fi
7360
7361 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7362 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7363 if test "${ac_cv_type_signal+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 else
7366 cat >conftest.$ac_ext <<_ACEOF
7367 /* confdefs.h. */
7368 _ACEOF
7369 cat confdefs.h >>conftest.$ac_ext
7370 cat >>conftest.$ac_ext <<_ACEOF
7371 /* end confdefs.h. */
7372 #include <sys/types.h>
7373 #include <signal.h>
7374
7375 int
7376 main ()
7377 {
7378 return *(signal (0, 0)) (0) == 1;
7379 ;
7380 return 0;
7381 }
7382 _ACEOF
7383 rm -f conftest.$ac_objext
7384 if { (ac_try="$ac_compile"
7385 case "(($ac_try" in
7386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7387 *) ac_try_echo=$ac_try;;
7388 esac
7389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7390 (eval "$ac_compile") 2>conftest.er1
7391 ac_status=$?
7392 grep -v '^ *+' conftest.er1 >conftest.err
7393 rm -f conftest.er1
7394 cat conftest.err >&5
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); } && {
7397 test -z "$ac_c_werror_flag" ||
7398 test ! -s conftest.err
7399 } && test -s conftest.$ac_objext; then
7400 ac_cv_type_signal=int
7401 else
7402 echo "$as_me: failed program was:" >&5
7403 sed 's/^/| /' conftest.$ac_ext >&5
7404
7405 ac_cv_type_signal=void
7406 fi
7407
7408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7409 fi
7410 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7411 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7412
7413 cat >>confdefs.h <<_ACEOF
7414 #define RETSIGTYPE $ac_cv_type_signal
7415 _ACEOF
7416
7417
7418
7419 { echo "$as_me:$LINENO: checking for speed_t" >&5
7420 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7421 if test "${emacs_cv_speed_t+set}" = set; then
7422 echo $ECHO_N "(cached) $ECHO_C" >&6
7423 else
7424 cat >conftest.$ac_ext <<_ACEOF
7425 /* confdefs.h. */
7426 _ACEOF
7427 cat confdefs.h >>conftest.$ac_ext
7428 cat >>conftest.$ac_ext <<_ACEOF
7429 /* end confdefs.h. */
7430 #include <termios.h>
7431 int
7432 main ()
7433 {
7434 speed_t x = 1;
7435 ;
7436 return 0;
7437 }
7438 _ACEOF
7439 rm -f conftest.$ac_objext
7440 if { (ac_try="$ac_compile"
7441 case "(($ac_try" in
7442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7443 *) ac_try_echo=$ac_try;;
7444 esac
7445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7446 (eval "$ac_compile") 2>conftest.er1
7447 ac_status=$?
7448 grep -v '^ *+' conftest.er1 >conftest.err
7449 rm -f conftest.er1
7450 cat conftest.err >&5
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); } && {
7453 test -z "$ac_c_werror_flag" ||
7454 test ! -s conftest.err
7455 } && test -s conftest.$ac_objext; then
7456 emacs_cv_speed_t=yes
7457 else
7458 echo "$as_me: failed program was:" >&5
7459 sed 's/^/| /' conftest.$ac_ext >&5
7460
7461 emacs_cv_speed_t=no
7462 fi
7463
7464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7465 fi
7466 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7467 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7468 if test $emacs_cv_speed_t = yes; then
7469
7470 cat >>confdefs.h <<\_ACEOF
7471 #define HAVE_SPEED_T 1
7472 _ACEOF
7473
7474 fi
7475
7476 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7477 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7478 if test "${emacs_cv_struct_timeval+set}" = set; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
7480 else
7481 cat >conftest.$ac_ext <<_ACEOF
7482 /* confdefs.h. */
7483 _ACEOF
7484 cat confdefs.h >>conftest.$ac_ext
7485 cat >>conftest.$ac_ext <<_ACEOF
7486 /* end confdefs.h. */
7487 #ifdef TIME_WITH_SYS_TIME
7488 #include <sys/time.h>
7489 #include <time.h>
7490 #else
7491 #ifdef HAVE_SYS_TIME_H
7492 #include <sys/time.h>
7493 #else
7494 #include <time.h>
7495 #endif
7496 #endif
7497 int
7498 main ()
7499 {
7500 static struct timeval x; x.tv_sec = x.tv_usec;
7501 ;
7502 return 0;
7503 }
7504 _ACEOF
7505 rm -f conftest.$ac_objext
7506 if { (ac_try="$ac_compile"
7507 case "(($ac_try" in
7508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7509 *) ac_try_echo=$ac_try;;
7510 esac
7511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7512 (eval "$ac_compile") 2>conftest.er1
7513 ac_status=$?
7514 grep -v '^ *+' conftest.er1 >conftest.err
7515 rm -f conftest.er1
7516 cat conftest.err >&5
7517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 (exit $ac_status); } && {
7519 test -z "$ac_c_werror_flag" ||
7520 test ! -s conftest.err
7521 } && test -s conftest.$ac_objext; then
7522 emacs_cv_struct_timeval=yes
7523 else
7524 echo "$as_me: failed program was:" >&5
7525 sed 's/^/| /' conftest.$ac_ext >&5
7526
7527 emacs_cv_struct_timeval=no
7528 fi
7529
7530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7531 fi
7532 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7533 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7534 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7535 if test $emacs_cv_struct_timeval = yes; then
7536
7537 cat >>confdefs.h <<\_ACEOF
7538 #define HAVE_TIMEVAL 1
7539 _ACEOF
7540
7541 fi
7542
7543 { echo "$as_me:$LINENO: checking for struct exception" >&5
7544 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7545 if test "${emacs_cv_struct_exception+set}" = set; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7547 else
7548 cat >conftest.$ac_ext <<_ACEOF
7549 /* confdefs.h. */
7550 _ACEOF
7551 cat confdefs.h >>conftest.$ac_ext
7552 cat >>conftest.$ac_ext <<_ACEOF
7553 /* end confdefs.h. */
7554 #include <math.h>
7555 int
7556 main ()
7557 {
7558 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7559 ;
7560 return 0;
7561 }
7562 _ACEOF
7563 rm -f conftest.$ac_objext
7564 if { (ac_try="$ac_compile"
7565 case "(($ac_try" in
7566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7567 *) ac_try_echo=$ac_try;;
7568 esac
7569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7570 (eval "$ac_compile") 2>conftest.er1
7571 ac_status=$?
7572 grep -v '^ *+' conftest.er1 >conftest.err
7573 rm -f conftest.er1
7574 cat conftest.err >&5
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); } && {
7577 test -z "$ac_c_werror_flag" ||
7578 test ! -s conftest.err
7579 } && test -s conftest.$ac_objext; then
7580 emacs_cv_struct_exception=yes
7581 else
7582 echo "$as_me: failed program was:" >&5
7583 sed 's/^/| /' conftest.$ac_ext >&5
7584
7585 emacs_cv_struct_exception=no
7586 fi
7587
7588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7589 fi
7590 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7591 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7592 HAVE_EXCEPTION=$emacs_cv_struct_exception
7593 if test $emacs_cv_struct_exception != yes; then
7594
7595 cat >>confdefs.h <<\_ACEOF
7596 #define NO_MATHERR 1
7597 _ACEOF
7598
7599 fi
7600
7601
7602 for ac_header in sys/socket.h
7603 do
7604 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7606 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7609 echo $ECHO_N "(cached) $ECHO_C" >&6
7610 fi
7611 ac_res=`eval echo '${'$as_ac_Header'}'`
7612 { echo "$as_me:$LINENO: result: $ac_res" >&5
7613 echo "${ECHO_T}$ac_res" >&6; }
7614 else
7615 # Is the header compilable?
7616 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7617 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7618 cat >conftest.$ac_ext <<_ACEOF
7619 /* confdefs.h. */
7620 _ACEOF
7621 cat confdefs.h >>conftest.$ac_ext
7622 cat >>conftest.$ac_ext <<_ACEOF
7623 /* end confdefs.h. */
7624 $ac_includes_default
7625 #include <$ac_header>
7626 _ACEOF
7627 rm -f conftest.$ac_objext
7628 if { (ac_try="$ac_compile"
7629 case "(($ac_try" in
7630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7631 *) ac_try_echo=$ac_try;;
7632 esac
7633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7634 (eval "$ac_compile") 2>conftest.er1
7635 ac_status=$?
7636 grep -v '^ *+' conftest.er1 >conftest.err
7637 rm -f conftest.er1
7638 cat conftest.err >&5
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); } && {
7641 test -z "$ac_c_werror_flag" ||
7642 test ! -s conftest.err
7643 } && test -s conftest.$ac_objext; then
7644 ac_header_compiler=yes
7645 else
7646 echo "$as_me: failed program was:" >&5
7647 sed 's/^/| /' conftest.$ac_ext >&5
7648
7649 ac_header_compiler=no
7650 fi
7651
7652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7653 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7654 echo "${ECHO_T}$ac_header_compiler" >&6; }
7655
7656 # Is the header present?
7657 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7658 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7659 cat >conftest.$ac_ext <<_ACEOF
7660 /* confdefs.h. */
7661 _ACEOF
7662 cat confdefs.h >>conftest.$ac_ext
7663 cat >>conftest.$ac_ext <<_ACEOF
7664 /* end confdefs.h. */
7665 #include <$ac_header>
7666 _ACEOF
7667 if { (ac_try="$ac_cpp conftest.$ac_ext"
7668 case "(($ac_try" in
7669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7670 *) ac_try_echo=$ac_try;;
7671 esac
7672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7674 ac_status=$?
7675 grep -v '^ *+' conftest.er1 >conftest.err
7676 rm -f conftest.er1
7677 cat conftest.err >&5
7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); } >/dev/null && {
7680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7681 test ! -s conftest.err
7682 }; then
7683 ac_header_preproc=yes
7684 else
7685 echo "$as_me: failed program was:" >&5
7686 sed 's/^/| /' conftest.$ac_ext >&5
7687
7688 ac_header_preproc=no
7689 fi
7690
7691 rm -f conftest.err conftest.$ac_ext
7692 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7693 echo "${ECHO_T}$ac_header_preproc" >&6; }
7694
7695 # So? What about this header?
7696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7697 yes:no: )
7698 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7699 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7701 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7702 ac_header_preproc=yes
7703 ;;
7704 no:yes:* )
7705 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7706 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7707 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7708 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7709 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7710 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7711 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7712 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7714 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7715 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7716 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7717
7718 ;;
7719 esac
7720 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7723 echo $ECHO_N "(cached) $ECHO_C" >&6
7724 else
7725 eval "$as_ac_Header=\$ac_header_preproc"
7726 fi
7727 ac_res=`eval echo '${'$as_ac_Header'}'`
7728 { echo "$as_me:$LINENO: result: $ac_res" >&5
7729 echo "${ECHO_T}$ac_res" >&6; }
7730
7731 fi
7732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7733 cat >>confdefs.h <<_ACEOF
7734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7735 _ACEOF
7736
7737 fi
7738
7739 done
7740
7741
7742 for ac_header in net/if.h
7743 do
7744 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7745 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7748 echo $ECHO_N "(cached) $ECHO_C" >&6
7749 else
7750 cat >conftest.$ac_ext <<_ACEOF
7751 /* confdefs.h. */
7752 _ACEOF
7753 cat confdefs.h >>conftest.$ac_ext
7754 cat >>conftest.$ac_ext <<_ACEOF
7755 /* end confdefs.h. */
7756 $ac_includes_default
7757 #if HAVE_SYS_SOCKET_H
7758 #include <sys/socket.h>
7759 #endif
7760
7761 #include <$ac_header>
7762 _ACEOF
7763 rm -f conftest.$ac_objext
7764 if { (ac_try="$ac_compile"
7765 case "(($ac_try" in
7766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7767 *) ac_try_echo=$ac_try;;
7768 esac
7769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7770 (eval "$ac_compile") 2>conftest.er1
7771 ac_status=$?
7772 grep -v '^ *+' conftest.er1 >conftest.err
7773 rm -f conftest.er1
7774 cat conftest.err >&5
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); } && {
7777 test -z "$ac_c_werror_flag" ||
7778 test ! -s conftest.err
7779 } && test -s conftest.$ac_objext; then
7780 eval "$as_ac_Header=yes"
7781 else
7782 echo "$as_me: failed program was:" >&5
7783 sed 's/^/| /' conftest.$ac_ext >&5
7784
7785 eval "$as_ac_Header=no"
7786 fi
7787
7788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7789 fi
7790 ac_res=`eval echo '${'$as_ac_Header'}'`
7791 { echo "$as_me:$LINENO: result: $ac_res" >&5
7792 echo "${ECHO_T}$ac_res" >&6; }
7793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7794 cat >>confdefs.h <<_ACEOF
7795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7796 _ACEOF
7797
7798 fi
7799
7800 done
7801
7802
7803 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7804 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7805 if test "${ac_cv_struct_tm+set}" = set; then
7806 echo $ECHO_N "(cached) $ECHO_C" >&6
7807 else
7808 cat >conftest.$ac_ext <<_ACEOF
7809 /* confdefs.h. */
7810 _ACEOF
7811 cat confdefs.h >>conftest.$ac_ext
7812 cat >>conftest.$ac_ext <<_ACEOF
7813 /* end confdefs.h. */
7814 #include <sys/types.h>
7815 #include <time.h>
7816
7817 int
7818 main ()
7819 {
7820 struct tm tm;
7821 int *p = &tm.tm_sec;
7822 return !p;
7823 ;
7824 return 0;
7825 }
7826 _ACEOF
7827 rm -f conftest.$ac_objext
7828 if { (ac_try="$ac_compile"
7829 case "(($ac_try" in
7830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7831 *) ac_try_echo=$ac_try;;
7832 esac
7833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7834 (eval "$ac_compile") 2>conftest.er1
7835 ac_status=$?
7836 grep -v '^ *+' conftest.er1 >conftest.err
7837 rm -f conftest.er1
7838 cat conftest.err >&5
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); } && {
7841 test -z "$ac_c_werror_flag" ||
7842 test ! -s conftest.err
7843 } && test -s conftest.$ac_objext; then
7844 ac_cv_struct_tm=time.h
7845 else
7846 echo "$as_me: failed program was:" >&5
7847 sed 's/^/| /' conftest.$ac_ext >&5
7848
7849 ac_cv_struct_tm=sys/time.h
7850 fi
7851
7852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7853 fi
7854 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7855 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7856 if test $ac_cv_struct_tm = sys/time.h; then
7857
7858 cat >>confdefs.h <<\_ACEOF
7859 #define TM_IN_SYS_TIME 1
7860 _ACEOF
7861
7862 fi
7863
7864 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7865 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7866 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7867 echo $ECHO_N "(cached) $ECHO_C" >&6
7868 else
7869 cat >conftest.$ac_ext <<_ACEOF
7870 /* confdefs.h. */
7871 _ACEOF
7872 cat confdefs.h >>conftest.$ac_ext
7873 cat >>conftest.$ac_ext <<_ACEOF
7874 /* end confdefs.h. */
7875 #include <sys/types.h>
7876 #include <$ac_cv_struct_tm>
7877
7878
7879 int
7880 main ()
7881 {
7882 static struct tm ac_aggr;
7883 if (ac_aggr.tm_zone)
7884 return 0;
7885 ;
7886 return 0;
7887 }
7888 _ACEOF
7889 rm -f conftest.$ac_objext
7890 if { (ac_try="$ac_compile"
7891 case "(($ac_try" in
7892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7893 *) ac_try_echo=$ac_try;;
7894 esac
7895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7896 (eval "$ac_compile") 2>conftest.er1
7897 ac_status=$?
7898 grep -v '^ *+' conftest.er1 >conftest.err
7899 rm -f conftest.er1
7900 cat conftest.err >&5
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); } && {
7903 test -z "$ac_c_werror_flag" ||
7904 test ! -s conftest.err
7905 } && test -s conftest.$ac_objext; then
7906 ac_cv_member_struct_tm_tm_zone=yes
7907 else
7908 echo "$as_me: failed program was:" >&5
7909 sed 's/^/| /' conftest.$ac_ext >&5
7910
7911 cat >conftest.$ac_ext <<_ACEOF
7912 /* confdefs.h. */
7913 _ACEOF
7914 cat confdefs.h >>conftest.$ac_ext
7915 cat >>conftest.$ac_ext <<_ACEOF
7916 /* end confdefs.h. */
7917 #include <sys/types.h>
7918 #include <$ac_cv_struct_tm>
7919
7920
7921 int
7922 main ()
7923 {
7924 static struct tm ac_aggr;
7925 if (sizeof ac_aggr.tm_zone)
7926 return 0;
7927 ;
7928 return 0;
7929 }
7930 _ACEOF
7931 rm -f conftest.$ac_objext
7932 if { (ac_try="$ac_compile"
7933 case "(($ac_try" in
7934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7935 *) ac_try_echo=$ac_try;;
7936 esac
7937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7938 (eval "$ac_compile") 2>conftest.er1
7939 ac_status=$?
7940 grep -v '^ *+' conftest.er1 >conftest.err
7941 rm -f conftest.er1
7942 cat conftest.err >&5
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); } && {
7945 test -z "$ac_c_werror_flag" ||
7946 test ! -s conftest.err
7947 } && test -s conftest.$ac_objext; then
7948 ac_cv_member_struct_tm_tm_zone=yes
7949 else
7950 echo "$as_me: failed program was:" >&5
7951 sed 's/^/| /' conftest.$ac_ext >&5
7952
7953 ac_cv_member_struct_tm_tm_zone=no
7954 fi
7955
7956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7957 fi
7958
7959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7960 fi
7961 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7962 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7963 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7964
7965 cat >>confdefs.h <<_ACEOF
7966 #define HAVE_STRUCT_TM_TM_ZONE 1
7967 _ACEOF
7968
7969
7970 fi
7971
7972 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7973
7974 cat >>confdefs.h <<\_ACEOF
7975 #define HAVE_TM_ZONE 1
7976 _ACEOF
7977
7978 else
7979 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7980 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7981 if test "${ac_cv_have_decl_tzname+set}" = set; then
7982 echo $ECHO_N "(cached) $ECHO_C" >&6
7983 else
7984 cat >conftest.$ac_ext <<_ACEOF
7985 /* confdefs.h. */
7986 _ACEOF
7987 cat confdefs.h >>conftest.$ac_ext
7988 cat >>conftest.$ac_ext <<_ACEOF
7989 /* end confdefs.h. */
7990 #include <time.h>
7991
7992 int
7993 main ()
7994 {
7995 #ifndef tzname
7996 (void) tzname;
7997 #endif
7998
7999 ;
8000 return 0;
8001 }
8002 _ACEOF
8003 rm -f conftest.$ac_objext
8004 if { (ac_try="$ac_compile"
8005 case "(($ac_try" in
8006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8007 *) ac_try_echo=$ac_try;;
8008 esac
8009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8010 (eval "$ac_compile") 2>conftest.er1
8011 ac_status=$?
8012 grep -v '^ *+' conftest.er1 >conftest.err
8013 rm -f conftest.er1
8014 cat conftest.err >&5
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); } && {
8017 test -z "$ac_c_werror_flag" ||
8018 test ! -s conftest.err
8019 } && test -s conftest.$ac_objext; then
8020 ac_cv_have_decl_tzname=yes
8021 else
8022 echo "$as_me: failed program was:" >&5
8023 sed 's/^/| /' conftest.$ac_ext >&5
8024
8025 ac_cv_have_decl_tzname=no
8026 fi
8027
8028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8029 fi
8030 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8031 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
8032 if test $ac_cv_have_decl_tzname = yes; then
8033
8034 cat >>confdefs.h <<_ACEOF
8035 #define HAVE_DECL_TZNAME 1
8036 _ACEOF
8037
8038
8039 else
8040 cat >>confdefs.h <<_ACEOF
8041 #define HAVE_DECL_TZNAME 0
8042 _ACEOF
8043
8044
8045 fi
8046
8047
8048 { echo "$as_me:$LINENO: checking for tzname" >&5
8049 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8050 if test "${ac_cv_var_tzname+set}" = set; then
8051 echo $ECHO_N "(cached) $ECHO_C" >&6
8052 else
8053 cat >conftest.$ac_ext <<_ACEOF
8054 /* confdefs.h. */
8055 _ACEOF
8056 cat confdefs.h >>conftest.$ac_ext
8057 cat >>conftest.$ac_ext <<_ACEOF
8058 /* end confdefs.h. */
8059 #include <time.h>
8060 #if !HAVE_DECL_TZNAME
8061 extern char *tzname[];
8062 #endif
8063
8064 int
8065 main ()
8066 {
8067 return tzname[0][0];
8068 ;
8069 return 0;
8070 }
8071 _ACEOF
8072 rm -f conftest.$ac_objext conftest$ac_exeext
8073 if { (ac_try="$ac_link"
8074 case "(($ac_try" in
8075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8076 *) ac_try_echo=$ac_try;;
8077 esac
8078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8079 (eval "$ac_link") 2>conftest.er1
8080 ac_status=$?
8081 grep -v '^ *+' conftest.er1 >conftest.err
8082 rm -f conftest.er1
8083 cat conftest.err >&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); } && {
8086 test -z "$ac_c_werror_flag" ||
8087 test ! -s conftest.err
8088 } && test -s conftest$ac_exeext &&
8089 $as_test_x conftest$ac_exeext; then
8090 ac_cv_var_tzname=yes
8091 else
8092 echo "$as_me: failed program was:" >&5
8093 sed 's/^/| /' conftest.$ac_ext >&5
8094
8095 ac_cv_var_tzname=no
8096 fi
8097
8098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8099 conftest$ac_exeext conftest.$ac_ext
8100 fi
8101 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8102 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8103 if test $ac_cv_var_tzname = yes; then
8104
8105 cat >>confdefs.h <<\_ACEOF
8106 #define HAVE_TZNAME 1
8107 _ACEOF
8108
8109 fi
8110 fi
8111
8112 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8113 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8114 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8115 echo $ECHO_N "(cached) $ECHO_C" >&6
8116 else
8117 cat >conftest.$ac_ext <<_ACEOF
8118 /* confdefs.h. */
8119 _ACEOF
8120 cat confdefs.h >>conftest.$ac_ext
8121 cat >>conftest.$ac_ext <<_ACEOF
8122 /* end confdefs.h. */
8123 #include <time.h>
8124
8125 int
8126 main ()
8127 {
8128 static struct tm ac_aggr;
8129 if (ac_aggr.tm_gmtoff)
8130 return 0;
8131 ;
8132 return 0;
8133 }
8134 _ACEOF
8135 rm -f conftest.$ac_objext
8136 if { (ac_try="$ac_compile"
8137 case "(($ac_try" in
8138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8139 *) ac_try_echo=$ac_try;;
8140 esac
8141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8142 (eval "$ac_compile") 2>conftest.er1
8143 ac_status=$?
8144 grep -v '^ *+' conftest.er1 >conftest.err
8145 rm -f conftest.er1
8146 cat conftest.err >&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); } && {
8149 test -z "$ac_c_werror_flag" ||
8150 test ! -s conftest.err
8151 } && test -s conftest.$ac_objext; then
8152 ac_cv_member_struct_tm_tm_gmtoff=yes
8153 else
8154 echo "$as_me: failed program was:" >&5
8155 sed 's/^/| /' conftest.$ac_ext >&5
8156
8157 cat >conftest.$ac_ext <<_ACEOF
8158 /* confdefs.h. */
8159 _ACEOF
8160 cat confdefs.h >>conftest.$ac_ext
8161 cat >>conftest.$ac_ext <<_ACEOF
8162 /* end confdefs.h. */
8163 #include <time.h>
8164
8165 int
8166 main ()
8167 {
8168 static struct tm ac_aggr;
8169 if (sizeof ac_aggr.tm_gmtoff)
8170 return 0;
8171 ;
8172 return 0;
8173 }
8174 _ACEOF
8175 rm -f conftest.$ac_objext
8176 if { (ac_try="$ac_compile"
8177 case "(($ac_try" in
8178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8179 *) ac_try_echo=$ac_try;;
8180 esac
8181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8182 (eval "$ac_compile") 2>conftest.er1
8183 ac_status=$?
8184 grep -v '^ *+' conftest.er1 >conftest.err
8185 rm -f conftest.er1
8186 cat conftest.err >&5
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); } && {
8189 test -z "$ac_c_werror_flag" ||
8190 test ! -s conftest.err
8191 } && test -s conftest.$ac_objext; then
8192 ac_cv_member_struct_tm_tm_gmtoff=yes
8193 else
8194 echo "$as_me: failed program was:" >&5
8195 sed 's/^/| /' conftest.$ac_ext >&5
8196
8197 ac_cv_member_struct_tm_tm_gmtoff=no
8198 fi
8199
8200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8201 fi
8202
8203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8204 fi
8205 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8206 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8207 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8208
8209 cat >>confdefs.h <<\_ACEOF
8210 #define HAVE_TM_GMTOFF 1
8211 _ACEOF
8212
8213 fi
8214
8215 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8216 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8217 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8218 echo $ECHO_N "(cached) $ECHO_C" >&6
8219 else
8220 cat >conftest.$ac_ext <<_ACEOF
8221 /* confdefs.h. */
8222 _ACEOF
8223 cat confdefs.h >>conftest.$ac_ext
8224 cat >>conftest.$ac_ext <<_ACEOF
8225 /* end confdefs.h. */
8226 $ac_includes_default
8227 #if HAVE_SYS_SOCKET_H
8228 #include <sys/socket.h>
8229 #endif
8230 #if HAVE_NET_IF_H
8231 #include <net/if.h>
8232 #endif
8233
8234 int
8235 main ()
8236 {
8237 static struct ifreq ac_aggr;
8238 if (ac_aggr.ifr_flags)
8239 return 0;
8240 ;
8241 return 0;
8242 }
8243 _ACEOF
8244 rm -f conftest.$ac_objext
8245 if { (ac_try="$ac_compile"
8246 case "(($ac_try" in
8247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8248 *) ac_try_echo=$ac_try;;
8249 esac
8250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8251 (eval "$ac_compile") 2>conftest.er1
8252 ac_status=$?
8253 grep -v '^ *+' conftest.er1 >conftest.err
8254 rm -f conftest.er1
8255 cat conftest.err >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); } && {
8258 test -z "$ac_c_werror_flag" ||
8259 test ! -s conftest.err
8260 } && test -s conftest.$ac_objext; then
8261 ac_cv_member_struct_ifreq_ifr_flags=yes
8262 else
8263 echo "$as_me: failed program was:" >&5
8264 sed 's/^/| /' conftest.$ac_ext >&5
8265
8266 cat >conftest.$ac_ext <<_ACEOF
8267 /* confdefs.h. */
8268 _ACEOF
8269 cat confdefs.h >>conftest.$ac_ext
8270 cat >>conftest.$ac_ext <<_ACEOF
8271 /* end confdefs.h. */
8272 $ac_includes_default
8273 #if HAVE_SYS_SOCKET_H
8274 #include <sys/socket.h>
8275 #endif
8276 #if HAVE_NET_IF_H
8277 #include <net/if.h>
8278 #endif
8279
8280 int
8281 main ()
8282 {
8283 static struct ifreq ac_aggr;
8284 if (sizeof ac_aggr.ifr_flags)
8285 return 0;
8286 ;
8287 return 0;
8288 }
8289 _ACEOF
8290 rm -f conftest.$ac_objext
8291 if { (ac_try="$ac_compile"
8292 case "(($ac_try" in
8293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8294 *) ac_try_echo=$ac_try;;
8295 esac
8296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8297 (eval "$ac_compile") 2>conftest.er1
8298 ac_status=$?
8299 grep -v '^ *+' conftest.er1 >conftest.err
8300 rm -f conftest.er1
8301 cat conftest.err >&5
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); } && {
8304 test -z "$ac_c_werror_flag" ||
8305 test ! -s conftest.err
8306 } && test -s conftest.$ac_objext; then
8307 ac_cv_member_struct_ifreq_ifr_flags=yes
8308 else
8309 echo "$as_me: failed program was:" >&5
8310 sed 's/^/| /' conftest.$ac_ext >&5
8311
8312 ac_cv_member_struct_ifreq_ifr_flags=no
8313 fi
8314
8315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8316 fi
8317
8318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8319 fi
8320 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8321 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8322 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8323
8324 cat >>confdefs.h <<_ACEOF
8325 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8326 _ACEOF
8327
8328
8329 fi
8330 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8331 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8332 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8333 echo $ECHO_N "(cached) $ECHO_C" >&6
8334 else
8335 cat >conftest.$ac_ext <<_ACEOF
8336 /* confdefs.h. */
8337 _ACEOF
8338 cat confdefs.h >>conftest.$ac_ext
8339 cat >>conftest.$ac_ext <<_ACEOF
8340 /* end confdefs.h. */
8341 $ac_includes_default
8342 #if HAVE_SYS_SOCKET_H
8343 #include <sys/socket.h>
8344 #endif
8345 #if HAVE_NET_IF_H
8346 #include <net/if.h>
8347 #endif
8348
8349 int
8350 main ()
8351 {
8352 static struct ifreq ac_aggr;
8353 if (ac_aggr.ifr_hwaddr)
8354 return 0;
8355 ;
8356 return 0;
8357 }
8358 _ACEOF
8359 rm -f conftest.$ac_objext
8360 if { (ac_try="$ac_compile"
8361 case "(($ac_try" in
8362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8363 *) ac_try_echo=$ac_try;;
8364 esac
8365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8366 (eval "$ac_compile") 2>conftest.er1
8367 ac_status=$?
8368 grep -v '^ *+' conftest.er1 >conftest.err
8369 rm -f conftest.er1
8370 cat conftest.err >&5
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); } && {
8373 test -z "$ac_c_werror_flag" ||
8374 test ! -s conftest.err
8375 } && test -s conftest.$ac_objext; then
8376 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8377 else
8378 echo "$as_me: failed program was:" >&5
8379 sed 's/^/| /' conftest.$ac_ext >&5
8380
8381 cat >conftest.$ac_ext <<_ACEOF
8382 /* confdefs.h. */
8383 _ACEOF
8384 cat confdefs.h >>conftest.$ac_ext
8385 cat >>conftest.$ac_ext <<_ACEOF
8386 /* end confdefs.h. */
8387 $ac_includes_default
8388 #if HAVE_SYS_SOCKET_H
8389 #include <sys/socket.h>
8390 #endif
8391 #if HAVE_NET_IF_H
8392 #include <net/if.h>
8393 #endif
8394
8395 int
8396 main ()
8397 {
8398 static struct ifreq ac_aggr;
8399 if (sizeof ac_aggr.ifr_hwaddr)
8400 return 0;
8401 ;
8402 return 0;
8403 }
8404 _ACEOF
8405 rm -f conftest.$ac_objext
8406 if { (ac_try="$ac_compile"
8407 case "(($ac_try" in
8408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8409 *) ac_try_echo=$ac_try;;
8410 esac
8411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8412 (eval "$ac_compile") 2>conftest.er1
8413 ac_status=$?
8414 grep -v '^ *+' conftest.er1 >conftest.err
8415 rm -f conftest.er1
8416 cat conftest.err >&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); } && {
8419 test -z "$ac_c_werror_flag" ||
8420 test ! -s conftest.err
8421 } && test -s conftest.$ac_objext; then
8422 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8423 else
8424 echo "$as_me: failed program was:" >&5
8425 sed 's/^/| /' conftest.$ac_ext >&5
8426
8427 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8428 fi
8429
8430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8431 fi
8432
8433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8434 fi
8435 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8436 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8437 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8438
8439 cat >>confdefs.h <<_ACEOF
8440 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8441 _ACEOF
8442
8443
8444 fi
8445 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8446 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8447 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8448 echo $ECHO_N "(cached) $ECHO_C" >&6
8449 else
8450 cat >conftest.$ac_ext <<_ACEOF
8451 /* confdefs.h. */
8452 _ACEOF
8453 cat confdefs.h >>conftest.$ac_ext
8454 cat >>conftest.$ac_ext <<_ACEOF
8455 /* end confdefs.h. */
8456 $ac_includes_default
8457 #if HAVE_SYS_SOCKET_H
8458 #include <sys/socket.h>
8459 #endif
8460 #if HAVE_NET_IF_H
8461 #include <net/if.h>
8462 #endif
8463
8464 int
8465 main ()
8466 {
8467 static struct ifreq ac_aggr;
8468 if (ac_aggr.ifr_netmask)
8469 return 0;
8470 ;
8471 return 0;
8472 }
8473 _ACEOF
8474 rm -f conftest.$ac_objext
8475 if { (ac_try="$ac_compile"
8476 case "(($ac_try" in
8477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8478 *) ac_try_echo=$ac_try;;
8479 esac
8480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8481 (eval "$ac_compile") 2>conftest.er1
8482 ac_status=$?
8483 grep -v '^ *+' conftest.er1 >conftest.err
8484 rm -f conftest.er1
8485 cat conftest.err >&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); } && {
8488 test -z "$ac_c_werror_flag" ||
8489 test ! -s conftest.err
8490 } && test -s conftest.$ac_objext; then
8491 ac_cv_member_struct_ifreq_ifr_netmask=yes
8492 else
8493 echo "$as_me: failed program was:" >&5
8494 sed 's/^/| /' conftest.$ac_ext >&5
8495
8496 cat >conftest.$ac_ext <<_ACEOF
8497 /* confdefs.h. */
8498 _ACEOF
8499 cat confdefs.h >>conftest.$ac_ext
8500 cat >>conftest.$ac_ext <<_ACEOF
8501 /* end confdefs.h. */
8502 $ac_includes_default
8503 #if HAVE_SYS_SOCKET_H
8504 #include <sys/socket.h>
8505 #endif
8506 #if HAVE_NET_IF_H
8507 #include <net/if.h>
8508 #endif
8509
8510 int
8511 main ()
8512 {
8513 static struct ifreq ac_aggr;
8514 if (sizeof ac_aggr.ifr_netmask)
8515 return 0;
8516 ;
8517 return 0;
8518 }
8519 _ACEOF
8520 rm -f conftest.$ac_objext
8521 if { (ac_try="$ac_compile"
8522 case "(($ac_try" in
8523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8524 *) ac_try_echo=$ac_try;;
8525 esac
8526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8527 (eval "$ac_compile") 2>conftest.er1
8528 ac_status=$?
8529 grep -v '^ *+' conftest.er1 >conftest.err
8530 rm -f conftest.er1
8531 cat conftest.err >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } && {
8534 test -z "$ac_c_werror_flag" ||
8535 test ! -s conftest.err
8536 } && test -s conftest.$ac_objext; then
8537 ac_cv_member_struct_ifreq_ifr_netmask=yes
8538 else
8539 echo "$as_me: failed program was:" >&5
8540 sed 's/^/| /' conftest.$ac_ext >&5
8541
8542 ac_cv_member_struct_ifreq_ifr_netmask=no
8543 fi
8544
8545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8546 fi
8547
8548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8549 fi
8550 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8551 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8552 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8553
8554 cat >>confdefs.h <<_ACEOF
8555 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8556 _ACEOF
8557
8558
8559 fi
8560 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8561 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8562 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8563 echo $ECHO_N "(cached) $ECHO_C" >&6
8564 else
8565 cat >conftest.$ac_ext <<_ACEOF
8566 /* confdefs.h. */
8567 _ACEOF
8568 cat confdefs.h >>conftest.$ac_ext
8569 cat >>conftest.$ac_ext <<_ACEOF
8570 /* end confdefs.h. */
8571 $ac_includes_default
8572 #if HAVE_SYS_SOCKET_H
8573 #include <sys/socket.h>
8574 #endif
8575 #if HAVE_NET_IF_H
8576 #include <net/if.h>
8577 #endif
8578
8579 int
8580 main ()
8581 {
8582 static struct ifreq ac_aggr;
8583 if (ac_aggr.ifr_broadaddr)
8584 return 0;
8585 ;
8586 return 0;
8587 }
8588 _ACEOF
8589 rm -f conftest.$ac_objext
8590 if { (ac_try="$ac_compile"
8591 case "(($ac_try" in
8592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8593 *) ac_try_echo=$ac_try;;
8594 esac
8595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8596 (eval "$ac_compile") 2>conftest.er1
8597 ac_status=$?
8598 grep -v '^ *+' conftest.er1 >conftest.err
8599 rm -f conftest.er1
8600 cat conftest.err >&5
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); } && {
8603 test -z "$ac_c_werror_flag" ||
8604 test ! -s conftest.err
8605 } && test -s conftest.$ac_objext; then
8606 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8607 else
8608 echo "$as_me: failed program was:" >&5
8609 sed 's/^/| /' conftest.$ac_ext >&5
8610
8611 cat >conftest.$ac_ext <<_ACEOF
8612 /* confdefs.h. */
8613 _ACEOF
8614 cat confdefs.h >>conftest.$ac_ext
8615 cat >>conftest.$ac_ext <<_ACEOF
8616 /* end confdefs.h. */
8617 $ac_includes_default
8618 #if HAVE_SYS_SOCKET_H
8619 #include <sys/socket.h>
8620 #endif
8621 #if HAVE_NET_IF_H
8622 #include <net/if.h>
8623 #endif
8624
8625 int
8626 main ()
8627 {
8628 static struct ifreq ac_aggr;
8629 if (sizeof ac_aggr.ifr_broadaddr)
8630 return 0;
8631 ;
8632 return 0;
8633 }
8634 _ACEOF
8635 rm -f conftest.$ac_objext
8636 if { (ac_try="$ac_compile"
8637 case "(($ac_try" in
8638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8639 *) ac_try_echo=$ac_try;;
8640 esac
8641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8642 (eval "$ac_compile") 2>conftest.er1
8643 ac_status=$?
8644 grep -v '^ *+' conftest.er1 >conftest.err
8645 rm -f conftest.er1
8646 cat conftest.err >&5
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); } && {
8649 test -z "$ac_c_werror_flag" ||
8650 test ! -s conftest.err
8651 } && test -s conftest.$ac_objext; then
8652 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8653 else
8654 echo "$as_me: failed program was:" >&5
8655 sed 's/^/| /' conftest.$ac_ext >&5
8656
8657 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8658 fi
8659
8660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8661 fi
8662
8663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8664 fi
8665 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8666 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8667 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8668
8669 cat >>confdefs.h <<_ACEOF
8670 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8671 _ACEOF
8672
8673
8674 fi
8675 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8676 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8677 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8678 echo $ECHO_N "(cached) $ECHO_C" >&6
8679 else
8680 cat >conftest.$ac_ext <<_ACEOF
8681 /* confdefs.h. */
8682 _ACEOF
8683 cat confdefs.h >>conftest.$ac_ext
8684 cat >>conftest.$ac_ext <<_ACEOF
8685 /* end confdefs.h. */
8686 $ac_includes_default
8687 #if HAVE_SYS_SOCKET_H
8688 #include <sys/socket.h>
8689 #endif
8690 #if HAVE_NET_IF_H
8691 #include <net/if.h>
8692 #endif
8693
8694 int
8695 main ()
8696 {
8697 static struct ifreq ac_aggr;
8698 if (ac_aggr.ifr_addr)
8699 return 0;
8700 ;
8701 return 0;
8702 }
8703 _ACEOF
8704 rm -f conftest.$ac_objext
8705 if { (ac_try="$ac_compile"
8706 case "(($ac_try" in
8707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8708 *) ac_try_echo=$ac_try;;
8709 esac
8710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8711 (eval "$ac_compile") 2>conftest.er1
8712 ac_status=$?
8713 grep -v '^ *+' conftest.er1 >conftest.err
8714 rm -f conftest.er1
8715 cat conftest.err >&5
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); } && {
8718 test -z "$ac_c_werror_flag" ||
8719 test ! -s conftest.err
8720 } && test -s conftest.$ac_objext; then
8721 ac_cv_member_struct_ifreq_ifr_addr=yes
8722 else
8723 echo "$as_me: failed program was:" >&5
8724 sed 's/^/| /' conftest.$ac_ext >&5
8725
8726 cat >conftest.$ac_ext <<_ACEOF
8727 /* confdefs.h. */
8728 _ACEOF
8729 cat confdefs.h >>conftest.$ac_ext
8730 cat >>conftest.$ac_ext <<_ACEOF
8731 /* end confdefs.h. */
8732 $ac_includes_default
8733 #if HAVE_SYS_SOCKET_H
8734 #include <sys/socket.h>
8735 #endif
8736 #if HAVE_NET_IF_H
8737 #include <net/if.h>
8738 #endif
8739
8740 int
8741 main ()
8742 {
8743 static struct ifreq ac_aggr;
8744 if (sizeof ac_aggr.ifr_addr)
8745 return 0;
8746 ;
8747 return 0;
8748 }
8749 _ACEOF
8750 rm -f conftest.$ac_objext
8751 if { (ac_try="$ac_compile"
8752 case "(($ac_try" in
8753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8754 *) ac_try_echo=$ac_try;;
8755 esac
8756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8757 (eval "$ac_compile") 2>conftest.er1
8758 ac_status=$?
8759 grep -v '^ *+' conftest.er1 >conftest.err
8760 rm -f conftest.er1
8761 cat conftest.err >&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); } && {
8764 test -z "$ac_c_werror_flag" ||
8765 test ! -s conftest.err
8766 } && test -s conftest.$ac_objext; then
8767 ac_cv_member_struct_ifreq_ifr_addr=yes
8768 else
8769 echo "$as_me: failed program was:" >&5
8770 sed 's/^/| /' conftest.$ac_ext >&5
8771
8772 ac_cv_member_struct_ifreq_ifr_addr=no
8773 fi
8774
8775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8776 fi
8777
8778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8779 fi
8780 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8781 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8782 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8783
8784 cat >>confdefs.h <<_ACEOF
8785 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8786 _ACEOF
8787
8788
8789 fi
8790
8791
8792
8793 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8794 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8795 if test "$ac_cv_prog_cc_c89" != no; then
8796 { echo "$as_me:$LINENO: result: yes" >&5
8797 echo "${ECHO_T}yes" >&6; }
8798
8799 cat >>confdefs.h <<\_ACEOF
8800 #define PROTOTYPES 1
8801 _ACEOF
8802
8803
8804 cat >>confdefs.h <<\_ACEOF
8805 #define __PROTOTYPES 1
8806 _ACEOF
8807
8808 else
8809 { echo "$as_me:$LINENO: result: no" >&5
8810 echo "${ECHO_T}no" >&6; }
8811 fi
8812
8813 { echo "$as_me:$LINENO: checking for working volatile" >&5
8814 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8815 if test "${ac_cv_c_volatile+set}" = set; then
8816 echo $ECHO_N "(cached) $ECHO_C" >&6
8817 else
8818 cat >conftest.$ac_ext <<_ACEOF
8819 /* confdefs.h. */
8820 _ACEOF
8821 cat confdefs.h >>conftest.$ac_ext
8822 cat >>conftest.$ac_ext <<_ACEOF
8823 /* end confdefs.h. */
8824
8825 int
8826 main ()
8827 {
8828
8829 volatile int x;
8830 int * volatile y = (int *) 0;
8831 return !x && !y;
8832 ;
8833 return 0;
8834 }
8835 _ACEOF
8836 rm -f conftest.$ac_objext
8837 if { (ac_try="$ac_compile"
8838 case "(($ac_try" in
8839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8840 *) ac_try_echo=$ac_try;;
8841 esac
8842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8843 (eval "$ac_compile") 2>conftest.er1
8844 ac_status=$?
8845 grep -v '^ *+' conftest.er1 >conftest.err
8846 rm -f conftest.er1
8847 cat conftest.err >&5
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); } && {
8850 test -z "$ac_c_werror_flag" ||
8851 test ! -s conftest.err
8852 } && test -s conftest.$ac_objext; then
8853 ac_cv_c_volatile=yes
8854 else
8855 echo "$as_me: failed program was:" >&5
8856 sed 's/^/| /' conftest.$ac_ext >&5
8857
8858 ac_cv_c_volatile=no
8859 fi
8860
8861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8862 fi
8863 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8864 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8865 if test $ac_cv_c_volatile = no; then
8866
8867 cat >>confdefs.h <<\_ACEOF
8868 #define volatile
8869 _ACEOF
8870
8871 fi
8872
8873 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8874 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8875 if test "${ac_cv_c_const+set}" = set; then
8876 echo $ECHO_N "(cached) $ECHO_C" >&6
8877 else
8878 cat >conftest.$ac_ext <<_ACEOF
8879 /* confdefs.h. */
8880 _ACEOF
8881 cat confdefs.h >>conftest.$ac_ext
8882 cat >>conftest.$ac_ext <<_ACEOF
8883 /* end confdefs.h. */
8884
8885 int
8886 main ()
8887 {
8888 /* FIXME: Include the comments suggested by Paul. */
8889 #ifndef __cplusplus
8890 /* Ultrix mips cc rejects this. */
8891 typedef int charset[2];
8892 const charset cs;
8893 /* SunOS 4.1.1 cc rejects this. */
8894 char const *const *pcpcc;
8895 char **ppc;
8896 /* NEC SVR4.0.2 mips cc rejects this. */
8897 struct point {int x, y;};
8898 static struct point const zero = {0,0};
8899 /* AIX XL C 1.02.0.0 rejects this.
8900 It does not let you subtract one const X* pointer from another in
8901 an arm of an if-expression whose if-part is not a constant
8902 expression */
8903 const char *g = "string";
8904 pcpcc = &g + (g ? g-g : 0);
8905 /* HPUX 7.0 cc rejects these. */
8906 ++pcpcc;
8907 ppc = (char**) pcpcc;
8908 pcpcc = (char const *const *) ppc;
8909 { /* SCO 3.2v4 cc rejects this. */
8910 char *t;
8911 char const *s = 0 ? (char *) 0 : (char const *) 0;
8912
8913 *t++ = 0;
8914 if (s) return 0;
8915 }
8916 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8917 int x[] = {25, 17};
8918 const int *foo = &x[0];
8919 ++foo;
8920 }
8921 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8922 typedef const int *iptr;
8923 iptr p = 0;
8924 ++p;
8925 }
8926 { /* AIX XL C 1.02.0.0 rejects this saying
8927 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8928 struct s { int j; const int *ap[3]; };
8929 struct s *b; b->j = 5;
8930 }
8931 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8932 const int foo = 10;
8933 if (!foo) return 0;
8934 }
8935 return !cs[0] && !zero.x;
8936 #endif
8937
8938 ;
8939 return 0;
8940 }
8941 _ACEOF
8942 rm -f conftest.$ac_objext
8943 if { (ac_try="$ac_compile"
8944 case "(($ac_try" in
8945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8946 *) ac_try_echo=$ac_try;;
8947 esac
8948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8949 (eval "$ac_compile") 2>conftest.er1
8950 ac_status=$?
8951 grep -v '^ *+' conftest.er1 >conftest.err
8952 rm -f conftest.er1
8953 cat conftest.err >&5
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); } && {
8956 test -z "$ac_c_werror_flag" ||
8957 test ! -s conftest.err
8958 } && test -s conftest.$ac_objext; then
8959 ac_cv_c_const=yes
8960 else
8961 echo "$as_me: failed program was:" >&5
8962 sed 's/^/| /' conftest.$ac_ext >&5
8963
8964 ac_cv_c_const=no
8965 fi
8966
8967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8968 fi
8969 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8970 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8971 if test $ac_cv_c_const = no; then
8972
8973 cat >>confdefs.h <<\_ACEOF
8974 #define const
8975 _ACEOF
8976
8977 fi
8978
8979 { echo "$as_me:$LINENO: checking for void * support" >&5
8980 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8981 if test "${emacs_cv_void_star+set}" = set; then
8982 echo $ECHO_N "(cached) $ECHO_C" >&6
8983 else
8984 cat >conftest.$ac_ext <<_ACEOF
8985 /* confdefs.h. */
8986 _ACEOF
8987 cat confdefs.h >>conftest.$ac_ext
8988 cat >>conftest.$ac_ext <<_ACEOF
8989 /* end confdefs.h. */
8990
8991 int
8992 main ()
8993 {
8994 void * foo;
8995 ;
8996 return 0;
8997 }
8998 _ACEOF
8999 rm -f conftest.$ac_objext
9000 if { (ac_try="$ac_compile"
9001 case "(($ac_try" in
9002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9003 *) ac_try_echo=$ac_try;;
9004 esac
9005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9006 (eval "$ac_compile") 2>conftest.er1
9007 ac_status=$?
9008 grep -v '^ *+' conftest.er1 >conftest.err
9009 rm -f conftest.er1
9010 cat conftest.err >&5
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); } && {
9013 test -z "$ac_c_werror_flag" ||
9014 test ! -s conftest.err
9015 } && test -s conftest.$ac_objext; then
9016 emacs_cv_void_star=yes
9017 else
9018 echo "$as_me: failed program was:" >&5
9019 sed 's/^/| /' conftest.$ac_ext >&5
9020
9021 emacs_cv_void_star=no
9022 fi
9023
9024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9025 fi
9026 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9027 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
9028 if test $emacs_cv_void_star = yes; then
9029 cat >>confdefs.h <<\_ACEOF
9030 #define POINTER_TYPE void
9031 _ACEOF
9032
9033 else
9034 cat >>confdefs.h <<\_ACEOF
9035 #define POINTER_TYPE char
9036 _ACEOF
9037
9038 fi
9039
9040
9041
9042
9043
9044 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9045 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9046 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9047 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9048 echo $ECHO_N "(cached) $ECHO_C" >&6
9049 else
9050 cat >conftest.make <<\_ACEOF
9051 SHELL = /bin/sh
9052 all:
9053 @echo '@@@%%%=$(MAKE)=@@@%%%'
9054 _ACEOF
9055 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9056 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9057 *@@@%%%=?*=@@@%%%*)
9058 eval ac_cv_prog_make_${ac_make}_set=yes;;
9059 *)
9060 eval ac_cv_prog_make_${ac_make}_set=no;;
9061 esac
9062 rm -f conftest.make
9063 fi
9064 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9065 { echo "$as_me:$LINENO: result: yes" >&5
9066 echo "${ECHO_T}yes" >&6; }
9067 SET_MAKE=
9068 else
9069 { echo "$as_me:$LINENO: result: no" >&5
9070 echo "${ECHO_T}no" >&6; }
9071 SET_MAKE="MAKE=${MAKE-make}"
9072 fi
9073
9074
9075 { echo "$as_me:$LINENO: checking for long file names" >&5
9076 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9077 if test "${ac_cv_sys_long_file_names+set}" = set; then
9078 echo $ECHO_N "(cached) $ECHO_C" >&6
9079 else
9080 ac_cv_sys_long_file_names=yes
9081 # Test for long file names in all the places we know might matter:
9082 # . the current directory, where building will happen
9083 # $prefix/lib where we will be installing things
9084 # $exec_prefix/lib likewise
9085 # $TMPDIR if set, where it might want to write temporary files
9086 # /tmp where it might want to write temporary files
9087 # /var/tmp likewise
9088 # /usr/tmp likewise
9089 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9090 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9091 # in the usual case where exec_prefix is '${prefix}'.
9092 case $ac_dir in #(
9093 . | /* | ?:[\\/]*) ;; #(
9094 *) continue;;
9095 esac
9096 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9097 ac_xdir=$ac_dir/cf$$
9098 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9099 ac_tf1=$ac_xdir/conftest9012345
9100 ac_tf2=$ac_xdir/conftest9012346
9101 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9102 ac_cv_sys_long_file_names=no
9103 rm -f -r "$ac_xdir" 2>/dev/null
9104 test $ac_cv_sys_long_file_names = no && break
9105 done
9106 fi
9107 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9108 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9109 if test $ac_cv_sys_long_file_names = yes; then
9110
9111 cat >>confdefs.h <<\_ACEOF
9112 #define HAVE_LONG_FILE_NAMES 1
9113 _ACEOF
9114
9115 fi
9116
9117
9118 #### Choose a window system.
9119
9120 { echo "$as_me:$LINENO: checking for X" >&5
9121 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9122
9123
9124 # Check whether --with-x was given.
9125 if test "${with_x+set}" = set; then
9126 withval=$with_x;
9127 fi
9128
9129 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9130 if test "x$with_x" = xno; then
9131 # The user explicitly disabled X.
9132 have_x=disabled
9133 else
9134 case $x_includes,$x_libraries in #(
9135 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9136 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9137 { (exit 1); exit 1; }; };; #(
9138 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9139 echo $ECHO_N "(cached) $ECHO_C" >&6
9140 else
9141 # One or both of the vars are not set, and there is no cached value.
9142 ac_x_includes=no ac_x_libraries=no
9143 rm -f -r conftest.dir
9144 if mkdir conftest.dir; then
9145 cd conftest.dir
9146 cat >Imakefile <<'_ACEOF'
9147 incroot:
9148 @echo incroot='${INCROOT}'
9149 usrlibdir:
9150 @echo usrlibdir='${USRLIBDIR}'
9151 libdir:
9152 @echo libdir='${LIBDIR}'
9153 _ACEOF
9154 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9155 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9156 for ac_var in incroot usrlibdir libdir; do
9157 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9158 done
9159 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9160 for ac_extension in a so sl; do
9161 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9162 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9163 ac_im_usrlibdir=$ac_im_libdir; break
9164 fi
9165 done
9166 # Screen out bogus values from the imake configuration. They are
9167 # bogus both because they are the default anyway, and because
9168 # using them would break gcc on systems where it needs fixed includes.
9169 case $ac_im_incroot in
9170 /usr/include) ac_x_includes= ;;
9171 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9172 esac
9173 case $ac_im_usrlibdir in
9174 /usr/lib | /lib) ;;
9175 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9176 esac
9177 fi
9178 cd ..
9179 rm -f -r conftest.dir
9180 fi
9181
9182 # Standard set of common directories for X headers.
9183 # Check X11 before X11Rn because it is often a symlink to the current release.
9184 ac_x_header_dirs='
9185 /usr/X11/include
9186 /usr/X11R6/include
9187 /usr/X11R5/include
9188 /usr/X11R4/include
9189
9190 /usr/include/X11
9191 /usr/include/X11R6
9192 /usr/include/X11R5
9193 /usr/include/X11R4
9194
9195 /usr/local/X11/include
9196 /usr/local/X11R6/include
9197 /usr/local/X11R5/include
9198 /usr/local/X11R4/include
9199
9200 /usr/local/include/X11
9201 /usr/local/include/X11R6
9202 /usr/local/include/X11R5
9203 /usr/local/include/X11R4
9204
9205 /usr/X386/include
9206 /usr/x386/include
9207 /usr/XFree86/include/X11
9208
9209 /usr/include
9210 /usr/local/include
9211 /usr/unsupported/include
9212 /usr/athena/include
9213 /usr/local/x11r5/include
9214 /usr/lpp/Xamples/include
9215
9216 /usr/openwin/include
9217 /usr/openwin/share/include'
9218
9219 if test "$ac_x_includes" = no; then
9220 # Guess where to find include files, by looking for Xlib.h.
9221 # First, try using that file with no special directory specified.
9222 cat >conftest.$ac_ext <<_ACEOF
9223 /* confdefs.h. */
9224 _ACEOF
9225 cat confdefs.h >>conftest.$ac_ext
9226 cat >>conftest.$ac_ext <<_ACEOF
9227 /* end confdefs.h. */
9228 #include <X11/Xlib.h>
9229 _ACEOF
9230 if { (ac_try="$ac_cpp conftest.$ac_ext"
9231 case "(($ac_try" in
9232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9233 *) ac_try_echo=$ac_try;;
9234 esac
9235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9237 ac_status=$?
9238 grep -v '^ *+' conftest.er1 >conftest.err
9239 rm -f conftest.er1
9240 cat conftest.err >&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); } >/dev/null && {
9243 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9244 test ! -s conftest.err
9245 }; then
9246 # We can compile using X headers with no special include directory.
9247 ac_x_includes=
9248 else
9249 echo "$as_me: failed program was:" >&5
9250 sed 's/^/| /' conftest.$ac_ext >&5
9251
9252 for ac_dir in $ac_x_header_dirs; do
9253 if test -r "$ac_dir/X11/Xlib.h"; then
9254 ac_x_includes=$ac_dir
9255 break
9256 fi
9257 done
9258 fi
9259
9260 rm -f conftest.err conftest.$ac_ext
9261 fi # $ac_x_includes = no
9262
9263 if test "$ac_x_libraries" = no; then
9264 # Check for the libraries.
9265 # See if we find them without any special options.
9266 # Don't add to $LIBS permanently.
9267 ac_save_LIBS=$LIBS
9268 LIBS="-lX11 $LIBS"
9269 cat >conftest.$ac_ext <<_ACEOF
9270 /* confdefs.h. */
9271 _ACEOF
9272 cat confdefs.h >>conftest.$ac_ext
9273 cat >>conftest.$ac_ext <<_ACEOF
9274 /* end confdefs.h. */
9275 #include <X11/Xlib.h>
9276 int
9277 main ()
9278 {
9279 XrmInitialize ()
9280 ;
9281 return 0;
9282 }
9283 _ACEOF
9284 rm -f conftest.$ac_objext conftest$ac_exeext
9285 if { (ac_try="$ac_link"
9286 case "(($ac_try" in
9287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9288 *) ac_try_echo=$ac_try;;
9289 esac
9290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9291 (eval "$ac_link") 2>conftest.er1
9292 ac_status=$?
9293 grep -v '^ *+' conftest.er1 >conftest.err
9294 rm -f conftest.er1
9295 cat conftest.err >&5
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); } && {
9298 test -z "$ac_c_werror_flag" ||
9299 test ! -s conftest.err
9300 } && test -s conftest$ac_exeext &&
9301 $as_test_x conftest$ac_exeext; then
9302 LIBS=$ac_save_LIBS
9303 # We can link X programs with no special library path.
9304 ac_x_libraries=
9305 else
9306 echo "$as_me: failed program was:" >&5
9307 sed 's/^/| /' conftest.$ac_ext >&5
9308
9309 LIBS=$ac_save_LIBS
9310 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9311 do
9312 # Don't even attempt the hair of trying to link an X program!
9313 for ac_extension in a so sl; do
9314 if test -r "$ac_dir/libX11.$ac_extension"; then
9315 ac_x_libraries=$ac_dir
9316 break 2
9317 fi
9318 done
9319 done
9320 fi
9321
9322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9323 conftest$ac_exeext conftest.$ac_ext
9324 fi # $ac_x_libraries = no
9325
9326 case $ac_x_includes,$ac_x_libraries in #(
9327 no,* | *,no | *\'*)
9328 # Didn't find X, or a directory has "'" in its name.
9329 ac_cv_have_x="have_x=no";; #(
9330 *)
9331 # Record where we found X for the cache.
9332 ac_cv_have_x="have_x=yes\
9333 ac_x_includes='$ac_x_includes'\
9334 ac_x_libraries='$ac_x_libraries'"
9335 esac
9336 fi
9337 ;; #(
9338 *) have_x=yes;;
9339 esac
9340 eval "$ac_cv_have_x"
9341 fi # $with_x != no
9342
9343 if test "$have_x" != yes; then
9344 { echo "$as_me:$LINENO: result: $have_x" >&5
9345 echo "${ECHO_T}$have_x" >&6; }
9346 no_x=yes
9347 else
9348 # If each of the values was on the command line, it overrides each guess.
9349 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9350 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9351 # Update the cache value to reflect the command line values.
9352 ac_cv_have_x="have_x=yes\
9353 ac_x_includes='$x_includes'\
9354 ac_x_libraries='$x_libraries'"
9355 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9356 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9357 fi
9358
9359 if test "$no_x" = yes; then
9360 window_system=none
9361 else
9362 window_system=x11
9363 fi
9364
9365 if test "${x_libraries}" != NONE; then
9366 if test -n "${x_libraries}"; then
9367 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9368 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9369 fi
9370 x_default_search_path=""
9371 x_search_path=${x_libraries}
9372 if test -z "${x_search_path}"; then
9373 x_search_path=/usr/lib
9374 fi
9375 for x_library in `echo ${x_search_path}: | \
9376 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9377 x_search_path="\
9378 ${x_library}/X11/%L/%T/%N%C%S:\
9379 ${x_library}/X11/%l/%T/%N%C%S:\
9380 ${x_library}/X11/%T/%N%C%S:\
9381 ${x_library}/X11/%L/%T/%N%S:\
9382 ${x_library}/X11/%l/%T/%N%S:\
9383 ${x_library}/X11/%T/%N%S"
9384 if test x"${x_default_search_path}" = x; then
9385 x_default_search_path=${x_search_path}
9386 else
9387 x_default_search_path="${x_search_path}:${x_default_search_path}"
9388 fi
9389 done
9390 fi
9391 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9392 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9393 fi
9394
9395 if test x"${x_includes}" = x; then
9396 bitmapdir=/usr/include/X11/bitmaps
9397 else
9398 # accumulate include directories that have X11 bitmap subdirectories
9399 bmd_acc="dummyval"
9400 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9401 if test -d "${bmd}/X11/bitmaps"; then
9402 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9403 fi
9404 if test -d "${bmd}/bitmaps"; then
9405 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9406 fi
9407 done
9408 if test ${bmd_acc} != "dummyval"; then
9409 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9410 fi
9411 fi
9412
9413 HAVE_CARBON=no
9414 if test "${with_carbon}" != no; then
9415 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9416 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9417 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9418 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9419 echo $ECHO_N "(cached) $ECHO_C" >&6
9420 fi
9421 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9422 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9423 else
9424 # Is the header compilable?
9425 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9426 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9427 cat >conftest.$ac_ext <<_ACEOF
9428 /* confdefs.h. */
9429 _ACEOF
9430 cat confdefs.h >>conftest.$ac_ext
9431 cat >>conftest.$ac_ext <<_ACEOF
9432 /* end confdefs.h. */
9433 $ac_includes_default
9434 #include <Carbon/Carbon.h>
9435 _ACEOF
9436 rm -f conftest.$ac_objext
9437 if { (ac_try="$ac_compile"
9438 case "(($ac_try" in
9439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9440 *) ac_try_echo=$ac_try;;
9441 esac
9442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9443 (eval "$ac_compile") 2>conftest.er1
9444 ac_status=$?
9445 grep -v '^ *+' conftest.er1 >conftest.err
9446 rm -f conftest.er1
9447 cat conftest.err >&5
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); } && {
9450 test -z "$ac_c_werror_flag" ||
9451 test ! -s conftest.err
9452 } && test -s conftest.$ac_objext; then
9453 ac_header_compiler=yes
9454 else
9455 echo "$as_me: failed program was:" >&5
9456 sed 's/^/| /' conftest.$ac_ext >&5
9457
9458 ac_header_compiler=no
9459 fi
9460
9461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9462 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9463 echo "${ECHO_T}$ac_header_compiler" >&6; }
9464
9465 # Is the header present?
9466 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9467 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9468 cat >conftest.$ac_ext <<_ACEOF
9469 /* confdefs.h. */
9470 _ACEOF
9471 cat confdefs.h >>conftest.$ac_ext
9472 cat >>conftest.$ac_ext <<_ACEOF
9473 /* end confdefs.h. */
9474 #include <Carbon/Carbon.h>
9475 _ACEOF
9476 if { (ac_try="$ac_cpp conftest.$ac_ext"
9477 case "(($ac_try" in
9478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9479 *) ac_try_echo=$ac_try;;
9480 esac
9481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9483 ac_status=$?
9484 grep -v '^ *+' conftest.er1 >conftest.err
9485 rm -f conftest.er1
9486 cat conftest.err >&5
9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488 (exit $ac_status); } >/dev/null && {
9489 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9490 test ! -s conftest.err
9491 }; then
9492 ac_header_preproc=yes
9493 else
9494 echo "$as_me: failed program was:" >&5
9495 sed 's/^/| /' conftest.$ac_ext >&5
9496
9497 ac_header_preproc=no
9498 fi
9499
9500 rm -f conftest.err conftest.$ac_ext
9501 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9502 echo "${ECHO_T}$ac_header_preproc" >&6; }
9503
9504 # So? What about this header?
9505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9506 yes:no: )
9507 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9508 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9509 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9510 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9511 ac_header_preproc=yes
9512 ;;
9513 no:yes:* )
9514 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9515 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9516 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9517 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9518 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9519 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9520 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9521 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9522 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9523 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9524 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9525 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9526
9527 ;;
9528 esac
9529 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9530 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9531 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9532 echo $ECHO_N "(cached) $ECHO_C" >&6
9533 else
9534 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9535 fi
9536 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9537 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9538
9539 fi
9540 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9541 HAVE_CARBON=yes
9542 fi
9543
9544
9545 fi
9546 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9547 if test "${with_carbon+set}" != set \
9548 && test "${carbon_appdir_x+set}" != set; then
9549 for var in with_x with_x_toolkit with_gtk with_xim \
9550 with_xpm with_jpeg with_tiff with_gif with_png; do
9551 if eval test \"\${$var+set}\" = set; then
9552 HAVE_CARBON=no
9553 break
9554 fi
9555 done
9556 fi
9557 fi
9558 if test "${HAVE_CARBON}" = yes; then
9559 window_system=mac
9560 fi
9561
9562 case "${window_system}" in
9563 x11 )
9564 HAVE_X_WINDOWS=yes
9565 HAVE_X11=yes
9566 case "${with_x_toolkit}" in
9567 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9568 motif ) USE_X_TOOLKIT=MOTIF ;;
9569 gtk ) with_gtk=yes
9570 USE_X_TOOLKIT=none ;;
9571 no ) USE_X_TOOLKIT=none ;;
9572 * )
9573 if test x"$with_gtk" = xyes; then
9574 USE_X_TOOLKIT=none
9575 else
9576 USE_X_TOOLKIT=maybe
9577 fi
9578 ;;
9579 esac
9580 ;;
9581 mac | none )
9582 HAVE_X_WINDOWS=no
9583 HAVE_X11=no
9584 USE_X_TOOLKIT=none
9585 ;;
9586 esac
9587
9588 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9589 # Extract the first word of "X", so it can be a program name with args.
9590 set dummy X; ac_word=$2
9591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9593 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9595 else
9596 if test -n "$HAVE_XSERVER"; then
9597 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9598 else
9599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9600 for as_dir in $PATH
9601 do
9602 IFS=$as_save_IFS
9603 test -z "$as_dir" && as_dir=.
9604 for ac_exec_ext in '' $ac_executable_extensions; do
9605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9606 ac_cv_prog_HAVE_XSERVER="true"
9607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9608 break 2
9609 fi
9610 done
9611 done
9612 IFS=$as_save_IFS
9613
9614 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9615 fi
9616 fi
9617 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9618 if test -n "$HAVE_XSERVER"; then
9619 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9620 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9621 else
9622 { echo "$as_me:$LINENO: result: no" >&5
9623 echo "${ECHO_T}no" >&6; }
9624 fi
9625
9626
9627 if test "$HAVE_XSERVER" = true ||
9628 test -n "$DISPLAY" ||
9629 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9630 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9631 where found. You should install the relevant development files for X
9632 and the for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9633 sure you have development files for image handling, i.e.
9634 tiff, gif, jpeg, png and xpm.
9635 If you are sure you want Emacs compiled without X window support, pass
9636 --without-x
9637 to configure." >&5
9638 echo "$as_me: error: You seem to be running X, but no X development libraries
9639 where found. You should install the relevant development files for X
9640 and the for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9641 sure you have development files for image handling, i.e.
9642 tiff, gif, jpeg, png and xpm.
9643 If you are sure you want Emacs compiled without X window support, pass
9644 --without-x
9645 to configure." >&2;}
9646 { (exit 1); exit 1; }; }
9647 fi
9648 fi
9649
9650 ### If we're using X11, we should use the X menu package.
9651 HAVE_MENUS=no
9652 case ${HAVE_X11} in
9653 yes ) HAVE_MENUS=yes ;;
9654 esac
9655
9656 if test "${opsys}" = "hpux9"; then
9657 case "${x_libraries}" in
9658 *X11R4* )
9659 opsysfile="s/hpux9-x11r4.h"
9660 ;;
9661 esac
9662 fi
9663
9664 if test "${opsys}" = "hpux9shr"; then
9665 case "${x_libraries}" in
9666 *X11R4* )
9667 opsysfile="s/hpux9shxr4.h"
9668 ;;
9669 esac
9670 fi
9671
9672 ### Compute the unexec source name from the object name.
9673 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9674
9675 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9676 # Assume not, until told otherwise.
9677 GNU_MALLOC=yes
9678 doug_lea_malloc=yes
9679 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9680 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9681 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9682 echo $ECHO_N "(cached) $ECHO_C" >&6
9683 else
9684 cat >conftest.$ac_ext <<_ACEOF
9685 /* confdefs.h. */
9686 _ACEOF
9687 cat confdefs.h >>conftest.$ac_ext
9688 cat >>conftest.$ac_ext <<_ACEOF
9689 /* end confdefs.h. */
9690 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9692 #define malloc_get_state innocuous_malloc_get_state
9693
9694 /* System header to define __stub macros and hopefully few prototypes,
9695 which can conflict with char malloc_get_state (); below.
9696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9697 <limits.h> exists even on freestanding compilers. */
9698
9699 #ifdef __STDC__
9700 # include <limits.h>
9701 #else
9702 # include <assert.h>
9703 #endif
9704
9705 #undef malloc_get_state
9706
9707 /* Override any GCC internal prototype to avoid an error.
9708 Use char because int might match the return type of a GCC
9709 builtin and then its argument prototype would still apply. */
9710 #ifdef __cplusplus
9711 extern "C"
9712 #endif
9713 char malloc_get_state ();
9714 /* The GNU C library defines this for functions which it implements
9715 to always fail with ENOSYS. Some functions are actually named
9716 something starting with __ and the normal name is an alias. */
9717 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9718 choke me
9719 #endif
9720
9721 int
9722 main ()
9723 {
9724 return malloc_get_state ();
9725 ;
9726 return 0;
9727 }
9728 _ACEOF
9729 rm -f conftest.$ac_objext conftest$ac_exeext
9730 if { (ac_try="$ac_link"
9731 case "(($ac_try" in
9732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9733 *) ac_try_echo=$ac_try;;
9734 esac
9735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9736 (eval "$ac_link") 2>conftest.er1
9737 ac_status=$?
9738 grep -v '^ *+' conftest.er1 >conftest.err
9739 rm -f conftest.er1
9740 cat conftest.err >&5
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); } && {
9743 test -z "$ac_c_werror_flag" ||
9744 test ! -s conftest.err
9745 } && test -s conftest$ac_exeext &&
9746 $as_test_x conftest$ac_exeext; then
9747 ac_cv_func_malloc_get_state=yes
9748 else
9749 echo "$as_me: failed program was:" >&5
9750 sed 's/^/| /' conftest.$ac_ext >&5
9751
9752 ac_cv_func_malloc_get_state=no
9753 fi
9754
9755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9756 conftest$ac_exeext conftest.$ac_ext
9757 fi
9758 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9759 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9760 if test $ac_cv_func_malloc_get_state = yes; then
9761 :
9762 else
9763 doug_lea_malloc=no
9764 fi
9765
9766 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9767 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9768 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9769 echo $ECHO_N "(cached) $ECHO_C" >&6
9770 else
9771 cat >conftest.$ac_ext <<_ACEOF
9772 /* confdefs.h. */
9773 _ACEOF
9774 cat confdefs.h >>conftest.$ac_ext
9775 cat >>conftest.$ac_ext <<_ACEOF
9776 /* end confdefs.h. */
9777 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9779 #define malloc_set_state innocuous_malloc_set_state
9780
9781 /* System header to define __stub macros and hopefully few prototypes,
9782 which can conflict with char malloc_set_state (); below.
9783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9784 <limits.h> exists even on freestanding compilers. */
9785
9786 #ifdef __STDC__
9787 # include <limits.h>
9788 #else
9789 # include <assert.h>
9790 #endif
9791
9792 #undef malloc_set_state
9793
9794 /* Override any GCC internal prototype to avoid an error.
9795 Use char because int might match the return type of a GCC
9796 builtin and then its argument prototype would still apply. */
9797 #ifdef __cplusplus
9798 extern "C"
9799 #endif
9800 char malloc_set_state ();
9801 /* The GNU C library defines this for functions which it implements
9802 to always fail with ENOSYS. Some functions are actually named
9803 something starting with __ and the normal name is an alias. */
9804 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9805 choke me
9806 #endif
9807
9808 int
9809 main ()
9810 {
9811 return malloc_set_state ();
9812 ;
9813 return 0;
9814 }
9815 _ACEOF
9816 rm -f conftest.$ac_objext conftest$ac_exeext
9817 if { (ac_try="$ac_link"
9818 case "(($ac_try" in
9819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9820 *) ac_try_echo=$ac_try;;
9821 esac
9822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9823 (eval "$ac_link") 2>conftest.er1
9824 ac_status=$?
9825 grep -v '^ *+' conftest.er1 >conftest.err
9826 rm -f conftest.er1
9827 cat conftest.err >&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); } && {
9830 test -z "$ac_c_werror_flag" ||
9831 test ! -s conftest.err
9832 } && test -s conftest$ac_exeext &&
9833 $as_test_x conftest$ac_exeext; then
9834 ac_cv_func_malloc_set_state=yes
9835 else
9836 echo "$as_me: failed program was:" >&5
9837 sed 's/^/| /' conftest.$ac_ext >&5
9838
9839 ac_cv_func_malloc_set_state=no
9840 fi
9841
9842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9843 conftest$ac_exeext conftest.$ac_ext
9844 fi
9845 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9846 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9847 if test $ac_cv_func_malloc_set_state = yes; then
9848 :
9849 else
9850 doug_lea_malloc=no
9851 fi
9852
9853 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9854 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9855 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9856 echo $ECHO_N "(cached) $ECHO_C" >&6
9857 else
9858 cat >conftest.$ac_ext <<_ACEOF
9859 /* confdefs.h. */
9860 _ACEOF
9861 cat confdefs.h >>conftest.$ac_ext
9862 cat >>conftest.$ac_ext <<_ACEOF
9863 /* end confdefs.h. */
9864 extern void (* __after_morecore_hook)();
9865 int
9866 main ()
9867 {
9868 __after_morecore_hook = 0
9869 ;
9870 return 0;
9871 }
9872 _ACEOF
9873 rm -f conftest.$ac_objext conftest$ac_exeext
9874 if { (ac_try="$ac_link"
9875 case "(($ac_try" in
9876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9877 *) ac_try_echo=$ac_try;;
9878 esac
9879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9880 (eval "$ac_link") 2>conftest.er1
9881 ac_status=$?
9882 grep -v '^ *+' conftest.er1 >conftest.err
9883 rm -f conftest.er1
9884 cat conftest.err >&5
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); } && {
9887 test -z "$ac_c_werror_flag" ||
9888 test ! -s conftest.err
9889 } && test -s conftest$ac_exeext &&
9890 $as_test_x conftest$ac_exeext; then
9891 emacs_cv_var___after_morecore_hook=yes
9892 else
9893 echo "$as_me: failed program was:" >&5
9894 sed 's/^/| /' conftest.$ac_ext >&5
9895
9896 emacs_cv_var___after_morecore_hook=no
9897 fi
9898
9899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9900 conftest$ac_exeext conftest.$ac_ext
9901 fi
9902 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9903 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9904 if test $emacs_cv_var___after_morecore_hook = no; then
9905 doug_lea_malloc=no
9906 fi
9907 if test "${system_malloc}" = "yes"; then
9908 GNU_MALLOC=no
9909 GNU_MALLOC_reason="
9910 (The GNU allocators don't work with this system configuration.)"
9911 fi
9912 if test "$doug_lea_malloc" = "yes" ; then
9913 if test "$GNU_MALLOC" = yes ; then
9914 GNU_MALLOC_reason="
9915 (Using Doug Lea's new malloc from the GNU C Library.)"
9916 fi
9917
9918 cat >>confdefs.h <<\_ACEOF
9919 #define DOUG_LEA_MALLOC 1
9920 _ACEOF
9921
9922 fi
9923
9924 if test x"${REL_ALLOC}" = x; then
9925 REL_ALLOC=${GNU_MALLOC}
9926 fi
9927
9928
9929
9930
9931 for ac_header in stdlib.h unistd.h
9932 do
9933 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9935 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9938 echo $ECHO_N "(cached) $ECHO_C" >&6
9939 fi
9940 ac_res=`eval echo '${'$as_ac_Header'}'`
9941 { echo "$as_me:$LINENO: result: $ac_res" >&5
9942 echo "${ECHO_T}$ac_res" >&6; }
9943 else
9944 # Is the header compilable?
9945 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9946 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9947 cat >conftest.$ac_ext <<_ACEOF
9948 /* confdefs.h. */
9949 _ACEOF
9950 cat confdefs.h >>conftest.$ac_ext
9951 cat >>conftest.$ac_ext <<_ACEOF
9952 /* end confdefs.h. */
9953 $ac_includes_default
9954 #include <$ac_header>
9955 _ACEOF
9956 rm -f conftest.$ac_objext
9957 if { (ac_try="$ac_compile"
9958 case "(($ac_try" in
9959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9960 *) ac_try_echo=$ac_try;;
9961 esac
9962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9963 (eval "$ac_compile") 2>conftest.er1
9964 ac_status=$?
9965 grep -v '^ *+' conftest.er1 >conftest.err
9966 rm -f conftest.er1
9967 cat conftest.err >&5
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); } && {
9970 test -z "$ac_c_werror_flag" ||
9971 test ! -s conftest.err
9972 } && test -s conftest.$ac_objext; then
9973 ac_header_compiler=yes
9974 else
9975 echo "$as_me: failed program was:" >&5
9976 sed 's/^/| /' conftest.$ac_ext >&5
9977
9978 ac_header_compiler=no
9979 fi
9980
9981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9982 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9983 echo "${ECHO_T}$ac_header_compiler" >&6; }
9984
9985 # Is the header present?
9986 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9987 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9988 cat >conftest.$ac_ext <<_ACEOF
9989 /* confdefs.h. */
9990 _ACEOF
9991 cat confdefs.h >>conftest.$ac_ext
9992 cat >>conftest.$ac_ext <<_ACEOF
9993 /* end confdefs.h. */
9994 #include <$ac_header>
9995 _ACEOF
9996 if { (ac_try="$ac_cpp conftest.$ac_ext"
9997 case "(($ac_try" in
9998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9999 *) ac_try_echo=$ac_try;;
10000 esac
10001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10002 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10003 ac_status=$?
10004 grep -v '^ *+' conftest.er1 >conftest.err
10005 rm -f conftest.er1
10006 cat conftest.err >&5
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); } >/dev/null && {
10009 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10010 test ! -s conftest.err
10011 }; then
10012 ac_header_preproc=yes
10013 else
10014 echo "$as_me: failed program was:" >&5
10015 sed 's/^/| /' conftest.$ac_ext >&5
10016
10017 ac_header_preproc=no
10018 fi
10019
10020 rm -f conftest.err conftest.$ac_ext
10021 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10022 echo "${ECHO_T}$ac_header_preproc" >&6; }
10023
10024 # So? What about this header?
10025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10026 yes:no: )
10027 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10028 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10030 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10031 ac_header_preproc=yes
10032 ;;
10033 no:yes:* )
10034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10037 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10038 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10039 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10040 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10041 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10044 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10045 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10046
10047 ;;
10048 esac
10049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10052 echo $ECHO_N "(cached) $ECHO_C" >&6
10053 else
10054 eval "$as_ac_Header=\$ac_header_preproc"
10055 fi
10056 ac_res=`eval echo '${'$as_ac_Header'}'`
10057 { echo "$as_me:$LINENO: result: $ac_res" >&5
10058 echo "${ECHO_T}$ac_res" >&6; }
10059
10060 fi
10061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10062 cat >>confdefs.h <<_ACEOF
10063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10064 _ACEOF
10065
10066 fi
10067
10068 done
10069
10070
10071 for ac_func in getpagesize
10072 do
10073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10074 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10076 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10077 echo $ECHO_N "(cached) $ECHO_C" >&6
10078 else
10079 cat >conftest.$ac_ext <<_ACEOF
10080 /* confdefs.h. */
10081 _ACEOF
10082 cat confdefs.h >>conftest.$ac_ext
10083 cat >>conftest.$ac_ext <<_ACEOF
10084 /* end confdefs.h. */
10085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10087 #define $ac_func innocuous_$ac_func
10088
10089 /* System header to define __stub macros and hopefully few prototypes,
10090 which can conflict with char $ac_func (); below.
10091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10092 <limits.h> exists even on freestanding compilers. */
10093
10094 #ifdef __STDC__
10095 # include <limits.h>
10096 #else
10097 # include <assert.h>
10098 #endif
10099
10100 #undef $ac_func
10101
10102 /* Override any GCC internal prototype to avoid an error.
10103 Use char because int might match the return type of a GCC
10104 builtin and then its argument prototype would still apply. */
10105 #ifdef __cplusplus
10106 extern "C"
10107 #endif
10108 char $ac_func ();
10109 /* The GNU C library defines this for functions which it implements
10110 to always fail with ENOSYS. Some functions are actually named
10111 something starting with __ and the normal name is an alias. */
10112 #if defined __stub_$ac_func || defined __stub___$ac_func
10113 choke me
10114 #endif
10115
10116 int
10117 main ()
10118 {
10119 return $ac_func ();
10120 ;
10121 return 0;
10122 }
10123 _ACEOF
10124 rm -f conftest.$ac_objext conftest$ac_exeext
10125 if { (ac_try="$ac_link"
10126 case "(($ac_try" in
10127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10128 *) ac_try_echo=$ac_try;;
10129 esac
10130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10131 (eval "$ac_link") 2>conftest.er1
10132 ac_status=$?
10133 grep -v '^ *+' conftest.er1 >conftest.err
10134 rm -f conftest.er1
10135 cat conftest.err >&5
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); } && {
10138 test -z "$ac_c_werror_flag" ||
10139 test ! -s conftest.err
10140 } && test -s conftest$ac_exeext &&
10141 $as_test_x conftest$ac_exeext; then
10142 eval "$as_ac_var=yes"
10143 else
10144 echo "$as_me: failed program was:" >&5
10145 sed 's/^/| /' conftest.$ac_ext >&5
10146
10147 eval "$as_ac_var=no"
10148 fi
10149
10150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10151 conftest$ac_exeext conftest.$ac_ext
10152 fi
10153 ac_res=`eval echo '${'$as_ac_var'}'`
10154 { echo "$as_me:$LINENO: result: $ac_res" >&5
10155 echo "${ECHO_T}$ac_res" >&6; }
10156 if test `eval echo '${'$as_ac_var'}'` = yes; then
10157 cat >>confdefs.h <<_ACEOF
10158 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10159 _ACEOF
10160
10161 fi
10162 done
10163
10164 { echo "$as_me:$LINENO: checking for working mmap" >&5
10165 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10166 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10167 echo $ECHO_N "(cached) $ECHO_C" >&6
10168 else
10169 if test "$cross_compiling" = yes; then
10170 ac_cv_func_mmap_fixed_mapped=no
10171 else
10172 cat >conftest.$ac_ext <<_ACEOF
10173 /* confdefs.h. */
10174 _ACEOF
10175 cat confdefs.h >>conftest.$ac_ext
10176 cat >>conftest.$ac_ext <<_ACEOF
10177 /* end confdefs.h. */
10178 $ac_includes_default
10179 /* malloc might have been renamed as rpl_malloc. */
10180 #undef malloc
10181
10182 /* Thanks to Mike Haertel and Jim Avera for this test.
10183 Here is a matrix of mmap possibilities:
10184 mmap private not fixed
10185 mmap private fixed at somewhere currently unmapped
10186 mmap private fixed at somewhere already mapped
10187 mmap shared not fixed
10188 mmap shared fixed at somewhere currently unmapped
10189 mmap shared fixed at somewhere already mapped
10190 For private mappings, we should verify that changes cannot be read()
10191 back from the file, nor mmap's back from the file at a different
10192 address. (There have been systems where private was not correctly
10193 implemented like the infamous i386 svr4.0, and systems where the
10194 VM page cache was not coherent with the file system buffer cache
10195 like early versions of FreeBSD and possibly contemporary NetBSD.)
10196 For shared mappings, we should conversely verify that changes get
10197 propagated back to all the places they're supposed to be.
10198
10199 Grep wants private fixed already mapped.
10200 The main things grep needs to know about mmap are:
10201 * does it exist and is it safe to write into the mmap'd area
10202 * how to use it (BSD variants) */
10203
10204 #include <fcntl.h>
10205 #include <sys/mman.h>
10206
10207 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10208 char *malloc ();
10209 #endif
10210
10211 /* This mess was copied from the GNU getpagesize.h. */
10212 #ifndef HAVE_GETPAGESIZE
10213 /* Assume that all systems that can run configure have sys/param.h. */
10214 # ifndef HAVE_SYS_PARAM_H
10215 # define HAVE_SYS_PARAM_H 1
10216 # endif
10217
10218 # ifdef _SC_PAGESIZE
10219 # define getpagesize() sysconf(_SC_PAGESIZE)
10220 # else /* no _SC_PAGESIZE */
10221 # ifdef HAVE_SYS_PARAM_H
10222 # include <sys/param.h>
10223 # ifdef EXEC_PAGESIZE
10224 # define getpagesize() EXEC_PAGESIZE
10225 # else /* no EXEC_PAGESIZE */
10226 # ifdef NBPG
10227 # define getpagesize() NBPG * CLSIZE
10228 # ifndef CLSIZE
10229 # define CLSIZE 1
10230 # endif /* no CLSIZE */
10231 # else /* no NBPG */
10232 # ifdef NBPC
10233 # define getpagesize() NBPC
10234 # else /* no NBPC */
10235 # ifdef PAGESIZE
10236 # define getpagesize() PAGESIZE
10237 # endif /* PAGESIZE */
10238 # endif /* no NBPC */
10239 # endif /* no NBPG */
10240 # endif /* no EXEC_PAGESIZE */
10241 # else /* no HAVE_SYS_PARAM_H */
10242 # define getpagesize() 8192 /* punt totally */
10243 # endif /* no HAVE_SYS_PARAM_H */
10244 # endif /* no _SC_PAGESIZE */
10245
10246 #endif /* no HAVE_GETPAGESIZE */
10247
10248 int
10249 main ()
10250 {
10251 char *data, *data2, *data3;
10252 int i, pagesize;
10253 int fd;
10254
10255 pagesize = getpagesize ();
10256
10257 /* First, make a file with some known garbage in it. */
10258 data = (char *) malloc (pagesize);
10259 if (!data)
10260 return 1;
10261 for (i = 0; i < pagesize; ++i)
10262 *(data + i) = rand ();
10263 umask (0);
10264 fd = creat ("conftest.mmap", 0600);
10265 if (fd < 0)
10266 return 1;
10267 if (write (fd, data, pagesize) != pagesize)
10268 return 1;
10269 close (fd);
10270
10271 /* Next, try to mmap the file at a fixed address which already has
10272 something else allocated at it. If we can, also make sure that
10273 we see the same garbage. */
10274 fd = open ("conftest.mmap", O_RDWR);
10275 if (fd < 0)
10276 return 1;
10277 data2 = (char *) malloc (2 * pagesize);
10278 if (!data2)
10279 return 1;
10280 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10281 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10282 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10283 return 1;
10284 for (i = 0; i < pagesize; ++i)
10285 if (*(data + i) != *(data2 + i))
10286 return 1;
10287
10288 /* Finally, make sure that changes to the mapped area do not
10289 percolate back to the file as seen by read(). (This is a bug on
10290 some variants of i386 svr4.0.) */
10291 for (i = 0; i < pagesize; ++i)
10292 *(data2 + i) = *(data2 + i) + 1;
10293 data3 = (char *) malloc (pagesize);
10294 if (!data3)
10295 return 1;
10296 if (read (fd, data3, pagesize) != pagesize)
10297 return 1;
10298 for (i = 0; i < pagesize; ++i)
10299 if (*(data + i) != *(data3 + i))
10300 return 1;
10301 close (fd);
10302 return 0;
10303 }
10304 _ACEOF
10305 rm -f conftest$ac_exeext
10306 if { (ac_try="$ac_link"
10307 case "(($ac_try" in
10308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10309 *) ac_try_echo=$ac_try;;
10310 esac
10311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10312 (eval "$ac_link") 2>&5
10313 ac_status=$?
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10316 { (case "(($ac_try" in
10317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10318 *) ac_try_echo=$ac_try;;
10319 esac
10320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10321 (eval "$ac_try") 2>&5
10322 ac_status=$?
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); }; }; then
10325 ac_cv_func_mmap_fixed_mapped=yes
10326 else
10327 echo "$as_me: program exited with status $ac_status" >&5
10328 echo "$as_me: failed program was:" >&5
10329 sed 's/^/| /' conftest.$ac_ext >&5
10330
10331 ( exit $ac_status )
10332 ac_cv_func_mmap_fixed_mapped=no
10333 fi
10334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10335 fi
10336
10337
10338 fi
10339 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10340 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10341 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10342
10343 cat >>confdefs.h <<\_ACEOF
10344 #define HAVE_MMAP 1
10345 _ACEOF
10346
10347 fi
10348 rm -f conftest.mmap
10349
10350 if test $use_mmap_for_buffers = yes; then
10351 REL_ALLOC=no
10352 fi
10353
10354 LIBS="$libsrc_libs $LIBS"
10355
10356
10357 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10358 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10359 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10360 echo $ECHO_N "(cached) $ECHO_C" >&6
10361 else
10362 ac_check_lib_save_LIBS=$LIBS
10363 LIBS="-ldnet $LIBS"
10364 cat >conftest.$ac_ext <<_ACEOF
10365 /* confdefs.h. */
10366 _ACEOF
10367 cat confdefs.h >>conftest.$ac_ext
10368 cat >>conftest.$ac_ext <<_ACEOF
10369 /* end confdefs.h. */
10370
10371 /* Override any GCC internal prototype to avoid an error.
10372 Use char because int might match the return type of a GCC
10373 builtin and then its argument prototype would still apply. */
10374 #ifdef __cplusplus
10375 extern "C"
10376 #endif
10377 char dnet_ntoa ();
10378 int
10379 main ()
10380 {
10381 return dnet_ntoa ();
10382 ;
10383 return 0;
10384 }
10385 _ACEOF
10386 rm -f conftest.$ac_objext conftest$ac_exeext
10387 if { (ac_try="$ac_link"
10388 case "(($ac_try" in
10389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10390 *) ac_try_echo=$ac_try;;
10391 esac
10392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10393 (eval "$ac_link") 2>conftest.er1
10394 ac_status=$?
10395 grep -v '^ *+' conftest.er1 >conftest.err
10396 rm -f conftest.er1
10397 cat conftest.err >&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); } && {
10400 test -z "$ac_c_werror_flag" ||
10401 test ! -s conftest.err
10402 } && test -s conftest$ac_exeext &&
10403 $as_test_x conftest$ac_exeext; then
10404 ac_cv_lib_dnet_dnet_ntoa=yes
10405 else
10406 echo "$as_me: failed program was:" >&5
10407 sed 's/^/| /' conftest.$ac_ext >&5
10408
10409 ac_cv_lib_dnet_dnet_ntoa=no
10410 fi
10411
10412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10413 conftest$ac_exeext conftest.$ac_ext
10414 LIBS=$ac_check_lib_save_LIBS
10415 fi
10416 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10417 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10418 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10419 cat >>confdefs.h <<_ACEOF
10420 #define HAVE_LIBDNET 1
10421 _ACEOF
10422
10423 LIBS="-ldnet $LIBS"
10424
10425 fi
10426
10427
10428 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10429 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10430 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10431 echo $ECHO_N "(cached) $ECHO_C" >&6
10432 else
10433 ac_check_lib_save_LIBS=$LIBS
10434 LIBS="-lXbsd $LIBS"
10435 cat >conftest.$ac_ext <<_ACEOF
10436 /* confdefs.h. */
10437 _ACEOF
10438 cat confdefs.h >>conftest.$ac_ext
10439 cat >>conftest.$ac_ext <<_ACEOF
10440 /* end confdefs.h. */
10441
10442
10443 int
10444 main ()
10445 {
10446 return main ();
10447 ;
10448 return 0;
10449 }
10450 _ACEOF
10451 rm -f conftest.$ac_objext conftest$ac_exeext
10452 if { (ac_try="$ac_link"
10453 case "(($ac_try" in
10454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10455 *) ac_try_echo=$ac_try;;
10456 esac
10457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10458 (eval "$ac_link") 2>conftest.er1
10459 ac_status=$?
10460 grep -v '^ *+' conftest.er1 >conftest.err
10461 rm -f conftest.er1
10462 cat conftest.err >&5
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); } && {
10465 test -z "$ac_c_werror_flag" ||
10466 test ! -s conftest.err
10467 } && test -s conftest$ac_exeext &&
10468 $as_test_x conftest$ac_exeext; then
10469 ac_cv_lib_Xbsd_main=yes
10470 else
10471 echo "$as_me: failed program was:" >&5
10472 sed 's/^/| /' conftest.$ac_ext >&5
10473
10474 ac_cv_lib_Xbsd_main=no
10475 fi
10476
10477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10478 conftest$ac_exeext conftest.$ac_ext
10479 LIBS=$ac_check_lib_save_LIBS
10480 fi
10481 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10482 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10483 if test $ac_cv_lib_Xbsd_main = yes; then
10484 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10485 fi
10486
10487
10488
10489 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10490 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10491 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10492 echo $ECHO_N "(cached) $ECHO_C" >&6
10493 else
10494 ac_check_lib_save_LIBS=$LIBS
10495 LIBS="-lpthreads $LIBS"
10496 cat >conftest.$ac_ext <<_ACEOF
10497 /* confdefs.h. */
10498 _ACEOF
10499 cat confdefs.h >>conftest.$ac_ext
10500 cat >>conftest.$ac_ext <<_ACEOF
10501 /* end confdefs.h. */
10502
10503 /* Override any GCC internal prototype to avoid an error.
10504 Use char because int might match the return type of a GCC
10505 builtin and then its argument prototype would still apply. */
10506 #ifdef __cplusplus
10507 extern "C"
10508 #endif
10509 char cma_open ();
10510 int
10511 main ()
10512 {
10513 return cma_open ();
10514 ;
10515 return 0;
10516 }
10517 _ACEOF
10518 rm -f conftest.$ac_objext conftest$ac_exeext
10519 if { (ac_try="$ac_link"
10520 case "(($ac_try" in
10521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10522 *) ac_try_echo=$ac_try;;
10523 esac
10524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10525 (eval "$ac_link") 2>conftest.er1
10526 ac_status=$?
10527 grep -v '^ *+' conftest.er1 >conftest.err
10528 rm -f conftest.er1
10529 cat conftest.err >&5
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); } && {
10532 test -z "$ac_c_werror_flag" ||
10533 test ! -s conftest.err
10534 } && test -s conftest$ac_exeext &&
10535 $as_test_x conftest$ac_exeext; then
10536 ac_cv_lib_pthreads_cma_open=yes
10537 else
10538 echo "$as_me: failed program was:" >&5
10539 sed 's/^/| /' conftest.$ac_ext >&5
10540
10541 ac_cv_lib_pthreads_cma_open=no
10542 fi
10543
10544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10545 conftest$ac_exeext conftest.$ac_ext
10546 LIBS=$ac_check_lib_save_LIBS
10547 fi
10548 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10549 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10550 if test $ac_cv_lib_pthreads_cma_open = yes; then
10551 cat >>confdefs.h <<_ACEOF
10552 #define HAVE_LIBPTHREADS 1
10553 _ACEOF
10554
10555 LIBS="-lpthreads $LIBS"
10556
10557 fi
10558
10559
10560 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10561 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10562 if test -d /usr/X386/include; then
10563 HAVE_XFREE386=yes
10564 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10565 else
10566 HAVE_XFREE386=no
10567 fi
10568 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10569 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10570
10571
10572 case ${host_os} in
10573 aix*)
10574 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10575 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10576 if test "${gdb_cv_bigtoc+set}" = set; then
10577 echo $ECHO_N "(cached) $ECHO_C" >&6
10578 else
10579
10580 case $GCC in
10581 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10582 *) gdb_cv_bigtoc=-bbigtoc ;;
10583 esac
10584
10585 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10586 cat >conftest.$ac_ext <<_ACEOF
10587 /* confdefs.h. */
10588 _ACEOF
10589 cat confdefs.h >>conftest.$ac_ext
10590 cat >>conftest.$ac_ext <<_ACEOF
10591 /* end confdefs.h. */
10592
10593 int
10594 main ()
10595 {
10596 int i;
10597 ;
10598 return 0;
10599 }
10600 _ACEOF
10601 rm -f conftest.$ac_objext conftest$ac_exeext
10602 if { (ac_try="$ac_link"
10603 case "(($ac_try" in
10604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605 *) ac_try_echo=$ac_try;;
10606 esac
10607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608 (eval "$ac_link") 2>conftest.er1
10609 ac_status=$?
10610 grep -v '^ *+' conftest.er1 >conftest.err
10611 rm -f conftest.er1
10612 cat conftest.err >&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); } && {
10615 test -z "$ac_c_werror_flag" ||
10616 test ! -s conftest.err
10617 } && test -s conftest$ac_exeext &&
10618 $as_test_x conftest$ac_exeext; then
10619 :
10620 else
10621 echo "$as_me: failed program was:" >&5
10622 sed 's/^/| /' conftest.$ac_ext >&5
10623
10624 gdb_cv_bigtoc=
10625 fi
10626
10627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10628 conftest$ac_exeext conftest.$ac_ext
10629
10630 fi
10631 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10632 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10633 ;;
10634 esac
10635
10636 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10637 # used for the tests that follow. We set them back to REAL_CFLAGS and
10638 # REAL_CPPFLAGS later on.
10639
10640 REAL_CPPFLAGS="$CPPFLAGS"
10641
10642 if test "${HAVE_X11}" = "yes"; then
10643 DEFS="$C_SWITCH_X_SITE $DEFS"
10644 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10645 LIBS="$LIBX $LIBS"
10646 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10647 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10648
10649 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10650 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10651 # but it's more convenient here to set LD_RUN_PATH
10652 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10653 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10654 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10655 export LD_RUN_PATH
10656 fi
10657
10658 if test "${opsys}" = "gnu-linux"; then
10659 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10660 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10661 cat >conftest.$ac_ext <<_ACEOF
10662 /* confdefs.h. */
10663 _ACEOF
10664 cat confdefs.h >>conftest.$ac_ext
10665 cat >>conftest.$ac_ext <<_ACEOF
10666 /* end confdefs.h. */
10667
10668 int
10669 main ()
10670 {
10671 XOpenDisplay ("foo");
10672 ;
10673 return 0;
10674 }
10675 _ACEOF
10676 rm -f conftest.$ac_objext conftest$ac_exeext
10677 if { (ac_try="$ac_link"
10678 case "(($ac_try" in
10679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10680 *) ac_try_echo=$ac_try;;
10681 esac
10682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10683 (eval "$ac_link") 2>conftest.er1
10684 ac_status=$?
10685 grep -v '^ *+' conftest.er1 >conftest.err
10686 rm -f conftest.er1
10687 cat conftest.err >&5
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); } && {
10690 test -z "$ac_c_werror_flag" ||
10691 test ! -s conftest.err
10692 } && test -s conftest$ac_exeext &&
10693 $as_test_x conftest$ac_exeext; then
10694 xlinux_first_failure=no
10695 else
10696 echo "$as_me: failed program was:" >&5
10697 sed 's/^/| /' conftest.$ac_ext >&5
10698
10699 xlinux_first_failure=yes
10700 fi
10701
10702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10703 conftest$ac_exeext conftest.$ac_ext
10704 if test "${xlinux_first_failure}" = "yes"; then
10705 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10706 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10707 OLD_CPPFLAGS="$CPPFLAGS"
10708 OLD_LIBS="$LIBS"
10709 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10710 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10711 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10712 LIBS="$LIBS -b i486-linuxaout"
10713 cat >conftest.$ac_ext <<_ACEOF
10714 /* confdefs.h. */
10715 _ACEOF
10716 cat confdefs.h >>conftest.$ac_ext
10717 cat >>conftest.$ac_ext <<_ACEOF
10718 /* end confdefs.h. */
10719
10720 int
10721 main ()
10722 {
10723 XOpenDisplay ("foo");
10724 ;
10725 return 0;
10726 }
10727 _ACEOF
10728 rm -f conftest.$ac_objext conftest$ac_exeext
10729 if { (ac_try="$ac_link"
10730 case "(($ac_try" in
10731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10732 *) ac_try_echo=$ac_try;;
10733 esac
10734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10735 (eval "$ac_link") 2>conftest.er1
10736 ac_status=$?
10737 grep -v '^ *+' conftest.er1 >conftest.err
10738 rm -f conftest.er1
10739 cat conftest.err >&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); } && {
10742 test -z "$ac_c_werror_flag" ||
10743 test ! -s conftest.err
10744 } && test -s conftest$ac_exeext &&
10745 $as_test_x conftest$ac_exeext; then
10746 xlinux_second_failure=no
10747 else
10748 echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.$ac_ext >&5
10750
10751 xlinux_second_failure=yes
10752 fi
10753
10754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10755 conftest$ac_exeext conftest.$ac_ext
10756 if test "${xlinux_second_failure}" = "yes"; then
10757 # If we get the same failure with -b, there is no use adding -b.
10758 # So take it out. This plays safe.
10759 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10760 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10761 CPPFLAGS="$OLD_CPPFLAGS"
10762 LIBS="$OLD_LIBS"
10763 { echo "$as_me:$LINENO: result: no" >&5
10764 echo "${ECHO_T}no" >&6; }
10765 else
10766 { echo "$as_me:$LINENO: result: yes" >&5
10767 echo "${ECHO_T}yes" >&6; }
10768 fi
10769 else
10770 { echo "$as_me:$LINENO: result: no" >&5
10771 echo "${ECHO_T}no" >&6; }
10772 fi
10773 fi
10774
10775 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10776 # header files included from there.
10777 { echo "$as_me:$LINENO: checking for Xkb" >&5
10778 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10779 cat >conftest.$ac_ext <<_ACEOF
10780 /* confdefs.h. */
10781 _ACEOF
10782 cat confdefs.h >>conftest.$ac_ext
10783 cat >>conftest.$ac_ext <<_ACEOF
10784 /* end confdefs.h. */
10785 #include <X11/Xlib.h>
10786 #include <X11/XKBlib.h>
10787 int
10788 main ()
10789 {
10790 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10791 ;
10792 return 0;
10793 }
10794 _ACEOF
10795 rm -f conftest.$ac_objext conftest$ac_exeext
10796 if { (ac_try="$ac_link"
10797 case "(($ac_try" in
10798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10799 *) ac_try_echo=$ac_try;;
10800 esac
10801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10802 (eval "$ac_link") 2>conftest.er1
10803 ac_status=$?
10804 grep -v '^ *+' conftest.er1 >conftest.err
10805 rm -f conftest.er1
10806 cat conftest.err >&5
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); } && {
10809 test -z "$ac_c_werror_flag" ||
10810 test ! -s conftest.err
10811 } && test -s conftest$ac_exeext &&
10812 $as_test_x conftest$ac_exeext; then
10813 emacs_xkb=yes
10814 else
10815 echo "$as_me: failed program was:" >&5
10816 sed 's/^/| /' conftest.$ac_ext >&5
10817
10818 emacs_xkb=no
10819 fi
10820
10821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10822 conftest$ac_exeext conftest.$ac_ext
10823 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10824 echo "${ECHO_T}$emacs_xkb" >&6; }
10825 if test $emacs_xkb = yes; then
10826
10827 cat >>confdefs.h <<\_ACEOF
10828 #define HAVE_XKBGETKEYBOARD 1
10829 _ACEOF
10830
10831 fi
10832
10833
10834
10835
10836
10837 for ac_func in XrmSetDatabase XScreenResourceString \
10838 XScreenNumberOfScreen XSetWMProtocols
10839 do
10840 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10841 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10843 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10844 echo $ECHO_N "(cached) $ECHO_C" >&6
10845 else
10846 cat >conftest.$ac_ext <<_ACEOF
10847 /* confdefs.h. */
10848 _ACEOF
10849 cat confdefs.h >>conftest.$ac_ext
10850 cat >>conftest.$ac_ext <<_ACEOF
10851 /* end confdefs.h. */
10852 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10854 #define $ac_func innocuous_$ac_func
10855
10856 /* System header to define __stub macros and hopefully few prototypes,
10857 which can conflict with char $ac_func (); below.
10858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10859 <limits.h> exists even on freestanding compilers. */
10860
10861 #ifdef __STDC__
10862 # include <limits.h>
10863 #else
10864 # include <assert.h>
10865 #endif
10866
10867 #undef $ac_func
10868
10869 /* Override any GCC internal prototype to avoid an error.
10870 Use char because int might match the return type of a GCC
10871 builtin and then its argument prototype would still apply. */
10872 #ifdef __cplusplus
10873 extern "C"
10874 #endif
10875 char $ac_func ();
10876 /* The GNU C library defines this for functions which it implements
10877 to always fail with ENOSYS. Some functions are actually named
10878 something starting with __ and the normal name is an alias. */
10879 #if defined __stub_$ac_func || defined __stub___$ac_func
10880 choke me
10881 #endif
10882
10883 int
10884 main ()
10885 {
10886 return $ac_func ();
10887 ;
10888 return 0;
10889 }
10890 _ACEOF
10891 rm -f conftest.$ac_objext conftest$ac_exeext
10892 if { (ac_try="$ac_link"
10893 case "(($ac_try" in
10894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10895 *) ac_try_echo=$ac_try;;
10896 esac
10897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10898 (eval "$ac_link") 2>conftest.er1
10899 ac_status=$?
10900 grep -v '^ *+' conftest.er1 >conftest.err
10901 rm -f conftest.er1
10902 cat conftest.err >&5
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); } && {
10905 test -z "$ac_c_werror_flag" ||
10906 test ! -s conftest.err
10907 } && test -s conftest$ac_exeext &&
10908 $as_test_x conftest$ac_exeext; then
10909 eval "$as_ac_var=yes"
10910 else
10911 echo "$as_me: failed program was:" >&5
10912 sed 's/^/| /' conftest.$ac_ext >&5
10913
10914 eval "$as_ac_var=no"
10915 fi
10916
10917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10918 conftest$ac_exeext conftest.$ac_ext
10919 fi
10920 ac_res=`eval echo '${'$as_ac_var'}'`
10921 { echo "$as_me:$LINENO: result: $ac_res" >&5
10922 echo "${ECHO_T}$ac_res" >&6; }
10923 if test `eval echo '${'$as_ac_var'}'` = yes; then
10924 cat >>confdefs.h <<_ACEOF
10925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10926 _ACEOF
10927
10928 fi
10929 done
10930
10931 fi
10932
10933 if test "${window_system}" = "x11"; then
10934 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10935 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10936 if test "${emacs_cv_x11_version_6+set}" = set; then
10937 echo $ECHO_N "(cached) $ECHO_C" >&6
10938 else
10939 cat >conftest.$ac_ext <<_ACEOF
10940 /* confdefs.h. */
10941 _ACEOF
10942 cat confdefs.h >>conftest.$ac_ext
10943 cat >>conftest.$ac_ext <<_ACEOF
10944 /* end confdefs.h. */
10945 #include <X11/Xlib.h>
10946 int
10947 main ()
10948 {
10949 #if XlibSpecificationRelease < 6
10950 fail;
10951 #endif
10952
10953 ;
10954 return 0;
10955 }
10956 _ACEOF
10957 rm -f conftest.$ac_objext conftest$ac_exeext
10958 if { (ac_try="$ac_link"
10959 case "(($ac_try" in
10960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10961 *) ac_try_echo=$ac_try;;
10962 esac
10963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10964 (eval "$ac_link") 2>conftest.er1
10965 ac_status=$?
10966 grep -v '^ *+' conftest.er1 >conftest.err
10967 rm -f conftest.er1
10968 cat conftest.err >&5
10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970 (exit $ac_status); } && {
10971 test -z "$ac_c_werror_flag" ||
10972 test ! -s conftest.err
10973 } && test -s conftest$ac_exeext &&
10974 $as_test_x conftest$ac_exeext; then
10975 emacs_cv_x11_version_6=yes
10976 else
10977 echo "$as_me: failed program was:" >&5
10978 sed 's/^/| /' conftest.$ac_ext >&5
10979
10980 emacs_cv_x11_version_6=no
10981 fi
10982
10983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10984 conftest$ac_exeext conftest.$ac_ext
10985 fi
10986
10987 if test $emacs_cv_x11_version_6 = yes; then
10988 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10989 echo "${ECHO_T}6 or newer" >&6; }
10990
10991 cat >>confdefs.h <<\_ACEOF
10992 #define HAVE_X11R6 1
10993 _ACEOF
10994
10995 else
10996 { echo "$as_me:$LINENO: result: before 6" >&5
10997 echo "${ECHO_T}before 6" >&6; }
10998 fi
10999 fi
11000
11001 if test "${window_system}" = "x11"; then
11002 { echo "$as_me:$LINENO: checking X11 version 5" >&5
11003 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
11004 if test "${emacs_cv_x11_version_5+set}" = set; then
11005 echo $ECHO_N "(cached) $ECHO_C" >&6
11006 else
11007 cat >conftest.$ac_ext <<_ACEOF
11008 /* confdefs.h. */
11009 _ACEOF
11010 cat confdefs.h >>conftest.$ac_ext
11011 cat >>conftest.$ac_ext <<_ACEOF
11012 /* end confdefs.h. */
11013 #include <X11/Xlib.h>
11014 int
11015 main ()
11016 {
11017 #if XlibSpecificationRelease < 5
11018 fail;
11019 #endif
11020
11021 ;
11022 return 0;
11023 }
11024 _ACEOF
11025 rm -f conftest.$ac_objext conftest$ac_exeext
11026 if { (ac_try="$ac_link"
11027 case "(($ac_try" in
11028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029 *) ac_try_echo=$ac_try;;
11030 esac
11031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032 (eval "$ac_link") 2>conftest.er1
11033 ac_status=$?
11034 grep -v '^ *+' conftest.er1 >conftest.err
11035 rm -f conftest.er1
11036 cat conftest.err >&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); } && {
11039 test -z "$ac_c_werror_flag" ||
11040 test ! -s conftest.err
11041 } && test -s conftest$ac_exeext &&
11042 $as_test_x conftest$ac_exeext; then
11043 emacs_cv_x11_version_5=yes
11044 else
11045 echo "$as_me: failed program was:" >&5
11046 sed 's/^/| /' conftest.$ac_ext >&5
11047
11048 emacs_cv_x11_version_5=no
11049 fi
11050
11051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11052 conftest$ac_exeext conftest.$ac_ext
11053 fi
11054
11055 if test $emacs_cv_x11_version_5 = yes; then
11056 { echo "$as_me:$LINENO: result: 5 or newer" >&5
11057 echo "${ECHO_T}5 or newer" >&6; }
11058 HAVE_X11R5=yes
11059
11060 cat >>confdefs.h <<\_ACEOF
11061 #define HAVE_X11R5 1
11062 _ACEOF
11063
11064 else
11065 HAVE_X11R5=no
11066 { echo "$as_me:$LINENO: result: before 5" >&5
11067 echo "${ECHO_T}before 5" >&6; }
11068 fi
11069 fi
11070
11071 HAVE_GTK=no
11072 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
11073 USE_X_TOOLKIT=none
11074 fi
11075 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk" || \
11076 test "$USE_X_TOOLKIT" = "maybe"; then
11077 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
11078 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
11079 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
11080 { (exit 1); exit 1; }; };
11081 fi
11082 GLIB_REQUIRED=2.4
11083 GTK_REQUIRED=2.4
11084 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11085
11086 if test "X${with_pkg_config_prog}" != X; then
11087 PKG_CONFIG="${with_pkg_config_prog}"
11088 fi
11089
11090 succeeded=no
11091
11092 if test -z "$PKG_CONFIG"; then
11093 # Extract the first word of "pkg-config", so it can be a program name with args.
11094 set dummy pkg-config; ac_word=$2
11095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11097 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11098 echo $ECHO_N "(cached) $ECHO_C" >&6
11099 else
11100 case $PKG_CONFIG in
11101 [\\/]* | ?:[\\/]*)
11102 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11103 ;;
11104 *)
11105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11106 for as_dir in $PATH
11107 do
11108 IFS=$as_save_IFS
11109 test -z "$as_dir" && as_dir=.
11110 for ac_exec_ext in '' $ac_executable_extensions; do
11111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11112 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11114 break 2
11115 fi
11116 done
11117 done
11118 IFS=$as_save_IFS
11119
11120 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11121 ;;
11122 esac
11123 fi
11124 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11125 if test -n "$PKG_CONFIG"; then
11126 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11127 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11128 else
11129 { echo "$as_me:$LINENO: result: no" >&5
11130 echo "${ECHO_T}no" >&6; }
11131 fi
11132
11133
11134 fi
11135
11136 if test "$PKG_CONFIG" = "no" ; then
11137 pkg_check_gtk=no
11138 else
11139 PKG_CONFIG_MIN_VERSION=0.9.0
11140 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11141 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11142 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11143
11144 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11145 { echo "$as_me:$LINENO: result: yes" >&5
11146 echo "${ECHO_T}yes" >&6; }
11147 succeeded=yes
11148
11149 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11150 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11151 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11152 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11153 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11154
11155 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11156 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11157 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11158 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11159 echo "${ECHO_T}$GTK_LIBS" >&6; }
11160 else
11161 { echo "$as_me:$LINENO: result: no" >&5
11162 echo "${ECHO_T}no" >&6; }
11163 GTK_CFLAGS=""
11164 GTK_LIBS=""
11165 ## If we have a custom action on failure, don't print errors, but
11166 ## do set a variable so people can do so.
11167 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11168
11169 fi
11170
11171
11172
11173 else
11174 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11175 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11176 fi
11177 fi
11178
11179 if test $succeeded = yes; then
11180 pkg_check_gtk=yes
11181 else
11182 pkg_check_gtk=no
11183 fi
11184
11185 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11186 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11187 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11188 { (exit 1); exit 1; }; }
11189 fi
11190 fi
11191
11192
11193 if test x"$pkg_check_gtk" = xyes; then
11194
11195
11196
11197 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11198 CFLAGS="$CFLAGS $GTK_CFLAGS"
11199 LIBS="$GTK_LIBS $LIBS"
11200 GTK_COMPILES=no
11201
11202 for ac_func in gtk_main
11203 do
11204 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11205 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11207 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11208 echo $ECHO_N "(cached) $ECHO_C" >&6
11209 else
11210 cat >conftest.$ac_ext <<_ACEOF
11211 /* confdefs.h. */
11212 _ACEOF
11213 cat confdefs.h >>conftest.$ac_ext
11214 cat >>conftest.$ac_ext <<_ACEOF
11215 /* end confdefs.h. */
11216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11218 #define $ac_func innocuous_$ac_func
11219
11220 /* System header to define __stub macros and hopefully few prototypes,
11221 which can conflict with char $ac_func (); below.
11222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11223 <limits.h> exists even on freestanding compilers. */
11224
11225 #ifdef __STDC__
11226 # include <limits.h>
11227 #else
11228 # include <assert.h>
11229 #endif
11230
11231 #undef $ac_func
11232
11233 /* Override any GCC internal prototype to avoid an error.
11234 Use char because int might match the return type of a GCC
11235 builtin and then its argument prototype would still apply. */
11236 #ifdef __cplusplus
11237 extern "C"
11238 #endif
11239 char $ac_func ();
11240 /* The GNU C library defines this for functions which it implements
11241 to always fail with ENOSYS. Some functions are actually named
11242 something starting with __ and the normal name is an alias. */
11243 #if defined __stub_$ac_func || defined __stub___$ac_func
11244 choke me
11245 #endif
11246
11247 int
11248 main ()
11249 {
11250 return $ac_func ();
11251 ;
11252 return 0;
11253 }
11254 _ACEOF
11255 rm -f conftest.$ac_objext conftest$ac_exeext
11256 if { (ac_try="$ac_link"
11257 case "(($ac_try" in
11258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11259 *) ac_try_echo=$ac_try;;
11260 esac
11261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11262 (eval "$ac_link") 2>conftest.er1
11263 ac_status=$?
11264 grep -v '^ *+' conftest.er1 >conftest.err
11265 rm -f conftest.er1
11266 cat conftest.err >&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } && {
11269 test -z "$ac_c_werror_flag" ||
11270 test ! -s conftest.err
11271 } && test -s conftest$ac_exeext &&
11272 $as_test_x conftest$ac_exeext; then
11273 eval "$as_ac_var=yes"
11274 else
11275 echo "$as_me: failed program was:" >&5
11276 sed 's/^/| /' conftest.$ac_ext >&5
11277
11278 eval "$as_ac_var=no"
11279 fi
11280
11281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11282 conftest$ac_exeext conftest.$ac_ext
11283 fi
11284 ac_res=`eval echo '${'$as_ac_var'}'`
11285 { echo "$as_me:$LINENO: result: $ac_res" >&5
11286 echo "${ECHO_T}$ac_res" >&6; }
11287 if test `eval echo '${'$as_ac_var'}'` = yes; then
11288 cat >>confdefs.h <<_ACEOF
11289 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11290 _ACEOF
11291 GTK_COMPILES=yes
11292 fi
11293 done
11294
11295 if test "${GTK_COMPILES}" != "yes"; then
11296 if test "$USE_X_TOOLKIT" != "maybe"; then
11297 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11298 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11299 { (exit 1); exit 1; }; };
11300 fi
11301 else
11302 HAVE_GTK=yes
11303
11304 cat >>confdefs.h <<\_ACEOF
11305 #define HAVE_GTK 1
11306 _ACEOF
11307
11308 USE_X_TOOLKIT=none
11309 fi
11310
11311 fi
11312
11313
11314 if test "${HAVE_GTK}" = "yes"; then
11315
11316 if test "$with_toolkit_scroll_bars" != no; then
11317 with_toolkit_scroll_bars=yes
11318 fi
11319
11320
11321 for ac_func in gdk_display_open
11322 do
11323 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11324 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11325 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11326 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11327 echo $ECHO_N "(cached) $ECHO_C" >&6
11328 else
11329 cat >conftest.$ac_ext <<_ACEOF
11330 /* confdefs.h. */
11331 _ACEOF
11332 cat confdefs.h >>conftest.$ac_ext
11333 cat >>conftest.$ac_ext <<_ACEOF
11334 /* end confdefs.h. */
11335 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11336 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11337 #define $ac_func innocuous_$ac_func
11338
11339 /* System header to define __stub macros and hopefully few prototypes,
11340 which can conflict with char $ac_func (); below.
11341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11342 <limits.h> exists even on freestanding compilers. */
11343
11344 #ifdef __STDC__
11345 # include <limits.h>
11346 #else
11347 # include <assert.h>
11348 #endif
11349
11350 #undef $ac_func
11351
11352 /* Override any GCC internal prototype to avoid an error.
11353 Use char because int might match the return type of a GCC
11354 builtin and then its argument prototype would still apply. */
11355 #ifdef __cplusplus
11356 extern "C"
11357 #endif
11358 char $ac_func ();
11359 /* The GNU C library defines this for functions which it implements
11360 to always fail with ENOSYS. Some functions are actually named
11361 something starting with __ and the normal name is an alias. */
11362 #if defined __stub_$ac_func || defined __stub___$ac_func
11363 choke me
11364 #endif
11365
11366 int
11367 main ()
11368 {
11369 return $ac_func ();
11370 ;
11371 return 0;
11372 }
11373 _ACEOF
11374 rm -f conftest.$ac_objext conftest$ac_exeext
11375 if { (ac_try="$ac_link"
11376 case "(($ac_try" in
11377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11378 *) ac_try_echo=$ac_try;;
11379 esac
11380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11381 (eval "$ac_link") 2>conftest.er1
11382 ac_status=$?
11383 grep -v '^ *+' conftest.er1 >conftest.err
11384 rm -f conftest.er1
11385 cat conftest.err >&5
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); } && {
11388 test -z "$ac_c_werror_flag" ||
11389 test ! -s conftest.err
11390 } && test -s conftest$ac_exeext &&
11391 $as_test_x conftest$ac_exeext; then
11392 eval "$as_ac_var=yes"
11393 else
11394 echo "$as_me: failed program was:" >&5
11395 sed 's/^/| /' conftest.$ac_ext >&5
11396
11397 eval "$as_ac_var=no"
11398 fi
11399
11400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11401 conftest$ac_exeext conftest.$ac_ext
11402 fi
11403 ac_res=`eval echo '${'$as_ac_var'}'`
11404 { echo "$as_me:$LINENO: result: $ac_res" >&5
11405 echo "${ECHO_T}$ac_res" >&6; }
11406 if test `eval echo '${'$as_ac_var'}'` = yes; then
11407 cat >>confdefs.h <<_ACEOF
11408 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11409 _ACEOF
11410 HAVE_GTK_MULTIDISPLAY=yes
11411 fi
11412 done
11413
11414 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11415
11416 cat >>confdefs.h <<\_ACEOF
11417 #define HAVE_GTK_MULTIDISPLAY 1
11418 _ACEOF
11419
11420 fi
11421
11422 HAVE_GTK_FILE_SELECTION=no
11423
11424 for ac_func in gtk_file_selection_new
11425 do
11426 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11427 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11428 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11429 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11430 echo $ECHO_N "(cached) $ECHO_C" >&6
11431 else
11432 cat >conftest.$ac_ext <<_ACEOF
11433 /* confdefs.h. */
11434 _ACEOF
11435 cat confdefs.h >>conftest.$ac_ext
11436 cat >>conftest.$ac_ext <<_ACEOF
11437 /* end confdefs.h. */
11438 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11440 #define $ac_func innocuous_$ac_func
11441
11442 /* System header to define __stub macros and hopefully few prototypes,
11443 which can conflict with char $ac_func (); below.
11444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11445 <limits.h> exists even on freestanding compilers. */
11446
11447 #ifdef __STDC__
11448 # include <limits.h>
11449 #else
11450 # include <assert.h>
11451 #endif
11452
11453 #undef $ac_func
11454
11455 /* Override any GCC internal prototype to avoid an error.
11456 Use char because int might match the return type of a GCC
11457 builtin and then its argument prototype would still apply. */
11458 #ifdef __cplusplus
11459 extern "C"
11460 #endif
11461 char $ac_func ();
11462 /* The GNU C library defines this for functions which it implements
11463 to always fail with ENOSYS. Some functions are actually named
11464 something starting with __ and the normal name is an alias. */
11465 #if defined __stub_$ac_func || defined __stub___$ac_func
11466 choke me
11467 #endif
11468
11469 int
11470 main ()
11471 {
11472 return $ac_func ();
11473 ;
11474 return 0;
11475 }
11476 _ACEOF
11477 rm -f conftest.$ac_objext conftest$ac_exeext
11478 if { (ac_try="$ac_link"
11479 case "(($ac_try" in
11480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11481 *) ac_try_echo=$ac_try;;
11482 esac
11483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11484 (eval "$ac_link") 2>conftest.er1
11485 ac_status=$?
11486 grep -v '^ *+' conftest.er1 >conftest.err
11487 rm -f conftest.er1
11488 cat conftest.err >&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); } && {
11491 test -z "$ac_c_werror_flag" ||
11492 test ! -s conftest.err
11493 } && test -s conftest$ac_exeext &&
11494 $as_test_x conftest$ac_exeext; then
11495 eval "$as_ac_var=yes"
11496 else
11497 echo "$as_me: failed program was:" >&5
11498 sed 's/^/| /' conftest.$ac_ext >&5
11499
11500 eval "$as_ac_var=no"
11501 fi
11502
11503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11504 conftest$ac_exeext conftest.$ac_ext
11505 fi
11506 ac_res=`eval echo '${'$as_ac_var'}'`
11507 { echo "$as_me:$LINENO: result: $ac_res" >&5
11508 echo "${ECHO_T}$ac_res" >&6; }
11509 if test `eval echo '${'$as_ac_var'}'` = yes; then
11510 cat >>confdefs.h <<_ACEOF
11511 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11512 _ACEOF
11513 HAVE_GTK_FILE_SELECTION=yes
11514 fi
11515 done
11516
11517
11518 HAVE_GTK_FILE_CHOOSER=no
11519
11520 for ac_func in gtk_file_chooser_dialog_new
11521 do
11522 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11523 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11524 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11525 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11526 echo $ECHO_N "(cached) $ECHO_C" >&6
11527 else
11528 cat >conftest.$ac_ext <<_ACEOF
11529 /* confdefs.h. */
11530 _ACEOF
11531 cat confdefs.h >>conftest.$ac_ext
11532 cat >>conftest.$ac_ext <<_ACEOF
11533 /* end confdefs.h. */
11534 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11536 #define $ac_func innocuous_$ac_func
11537
11538 /* System header to define __stub macros and hopefully few prototypes,
11539 which can conflict with char $ac_func (); below.
11540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11541 <limits.h> exists even on freestanding compilers. */
11542
11543 #ifdef __STDC__
11544 # include <limits.h>
11545 #else
11546 # include <assert.h>
11547 #endif
11548
11549 #undef $ac_func
11550
11551 /* Override any GCC internal prototype to avoid an error.
11552 Use char because int might match the return type of a GCC
11553 builtin and then its argument prototype would still apply. */
11554 #ifdef __cplusplus
11555 extern "C"
11556 #endif
11557 char $ac_func ();
11558 /* The GNU C library defines this for functions which it implements
11559 to always fail with ENOSYS. Some functions are actually named
11560 something starting with __ and the normal name is an alias. */
11561 #if defined __stub_$ac_func || defined __stub___$ac_func
11562 choke me
11563 #endif
11564
11565 int
11566 main ()
11567 {
11568 return $ac_func ();
11569 ;
11570 return 0;
11571 }
11572 _ACEOF
11573 rm -f conftest.$ac_objext conftest$ac_exeext
11574 if { (ac_try="$ac_link"
11575 case "(($ac_try" in
11576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11577 *) ac_try_echo=$ac_try;;
11578 esac
11579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11580 (eval "$ac_link") 2>conftest.er1
11581 ac_status=$?
11582 grep -v '^ *+' conftest.er1 >conftest.err
11583 rm -f conftest.er1
11584 cat conftest.err >&5
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); } && {
11587 test -z "$ac_c_werror_flag" ||
11588 test ! -s conftest.err
11589 } && test -s conftest$ac_exeext &&
11590 $as_test_x conftest$ac_exeext; then
11591 eval "$as_ac_var=yes"
11592 else
11593 echo "$as_me: failed program was:" >&5
11594 sed 's/^/| /' conftest.$ac_ext >&5
11595
11596 eval "$as_ac_var=no"
11597 fi
11598
11599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11600 conftest$ac_exeext conftest.$ac_ext
11601 fi
11602 ac_res=`eval echo '${'$as_ac_var'}'`
11603 { echo "$as_me:$LINENO: result: $ac_res" >&5
11604 echo "${ECHO_T}$ac_res" >&6; }
11605 if test `eval echo '${'$as_ac_var'}'` = yes; then
11606 cat >>confdefs.h <<_ACEOF
11607 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11608 _ACEOF
11609 HAVE_GTK_FILE_CHOOSER=yes
11610 fi
11611 done
11612
11613
11614 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11615 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11616
11617 cat >>confdefs.h <<\_ACEOF
11618 #define HAVE_GTK_FILE_BOTH 1
11619 _ACEOF
11620
11621 fi
11622
11623 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11624 HAVE_GTK_AND_PTHREAD=no
11625
11626 for ac_header in pthread.h
11627 do
11628 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11630 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11633 echo $ECHO_N "(cached) $ECHO_C" >&6
11634 fi
11635 ac_res=`eval echo '${'$as_ac_Header'}'`
11636 { echo "$as_me:$LINENO: result: $ac_res" >&5
11637 echo "${ECHO_T}$ac_res" >&6; }
11638 else
11639 # Is the header compilable?
11640 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11641 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11642 cat >conftest.$ac_ext <<_ACEOF
11643 /* confdefs.h. */
11644 _ACEOF
11645 cat confdefs.h >>conftest.$ac_ext
11646 cat >>conftest.$ac_ext <<_ACEOF
11647 /* end confdefs.h. */
11648 $ac_includes_default
11649 #include <$ac_header>
11650 _ACEOF
11651 rm -f conftest.$ac_objext
11652 if { (ac_try="$ac_compile"
11653 case "(($ac_try" in
11654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11655 *) ac_try_echo=$ac_try;;
11656 esac
11657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11658 (eval "$ac_compile") 2>conftest.er1
11659 ac_status=$?
11660 grep -v '^ *+' conftest.er1 >conftest.err
11661 rm -f conftest.er1
11662 cat conftest.err >&5
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); } && {
11665 test -z "$ac_c_werror_flag" ||
11666 test ! -s conftest.err
11667 } && test -s conftest.$ac_objext; then
11668 ac_header_compiler=yes
11669 else
11670 echo "$as_me: failed program was:" >&5
11671 sed 's/^/| /' conftest.$ac_ext >&5
11672
11673 ac_header_compiler=no
11674 fi
11675
11676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11677 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11678 echo "${ECHO_T}$ac_header_compiler" >&6; }
11679
11680 # Is the header present?
11681 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11682 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11683 cat >conftest.$ac_ext <<_ACEOF
11684 /* confdefs.h. */
11685 _ACEOF
11686 cat confdefs.h >>conftest.$ac_ext
11687 cat >>conftest.$ac_ext <<_ACEOF
11688 /* end confdefs.h. */
11689 #include <$ac_header>
11690 _ACEOF
11691 if { (ac_try="$ac_cpp conftest.$ac_ext"
11692 case "(($ac_try" in
11693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11694 *) ac_try_echo=$ac_try;;
11695 esac
11696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11698 ac_status=$?
11699 grep -v '^ *+' conftest.er1 >conftest.err
11700 rm -f conftest.er1
11701 cat conftest.err >&5
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); } >/dev/null && {
11704 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11705 test ! -s conftest.err
11706 }; then
11707 ac_header_preproc=yes
11708 else
11709 echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11711
11712 ac_header_preproc=no
11713 fi
11714
11715 rm -f conftest.err conftest.$ac_ext
11716 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11717 echo "${ECHO_T}$ac_header_preproc" >&6; }
11718
11719 # So? What about this header?
11720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11721 yes:no: )
11722 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11723 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11725 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11726 ac_header_preproc=yes
11727 ;;
11728 no:yes:* )
11729 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11730 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11731 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11732 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11733 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11734 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11735 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11736 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11738 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11739 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11740 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11741
11742 ;;
11743 esac
11744 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11746 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11747 echo $ECHO_N "(cached) $ECHO_C" >&6
11748 else
11749 eval "$as_ac_Header=\$ac_header_preproc"
11750 fi
11751 ac_res=`eval echo '${'$as_ac_Header'}'`
11752 { echo "$as_me:$LINENO: result: $ac_res" >&5
11753 echo "${ECHO_T}$ac_res" >&6; }
11754
11755 fi
11756 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11757 cat >>confdefs.h <<_ACEOF
11758 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11759 _ACEOF
11760
11761 fi
11762
11763 done
11764
11765 if test "$ac_cv_header_pthread_h"; then
11766 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11767 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11768 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11769 echo $ECHO_N "(cached) $ECHO_C" >&6
11770 else
11771 ac_check_lib_save_LIBS=$LIBS
11772 LIBS="-lpthread $LIBS"
11773 cat >conftest.$ac_ext <<_ACEOF
11774 /* confdefs.h. */
11775 _ACEOF
11776 cat confdefs.h >>conftest.$ac_ext
11777 cat >>conftest.$ac_ext <<_ACEOF
11778 /* end confdefs.h. */
11779
11780 /* Override any GCC internal prototype to avoid an error.
11781 Use char because int might match the return type of a GCC
11782 builtin and then its argument prototype would still apply. */
11783 #ifdef __cplusplus
11784 extern "C"
11785 #endif
11786 char pthread_self ();
11787 int
11788 main ()
11789 {
11790 return pthread_self ();
11791 ;
11792 return 0;
11793 }
11794 _ACEOF
11795 rm -f conftest.$ac_objext conftest$ac_exeext
11796 if { (ac_try="$ac_link"
11797 case "(($ac_try" in
11798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11799 *) ac_try_echo=$ac_try;;
11800 esac
11801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11802 (eval "$ac_link") 2>conftest.er1
11803 ac_status=$?
11804 grep -v '^ *+' conftest.er1 >conftest.err
11805 rm -f conftest.er1
11806 cat conftest.err >&5
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); } && {
11809 test -z "$ac_c_werror_flag" ||
11810 test ! -s conftest.err
11811 } && test -s conftest$ac_exeext &&
11812 $as_test_x conftest$ac_exeext; then
11813 ac_cv_lib_pthread_pthread_self=yes
11814 else
11815 echo "$as_me: failed program was:" >&5
11816 sed 's/^/| /' conftest.$ac_ext >&5
11817
11818 ac_cv_lib_pthread_pthread_self=no
11819 fi
11820
11821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11822 conftest$ac_exeext conftest.$ac_ext
11823 LIBS=$ac_check_lib_save_LIBS
11824 fi
11825 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11826 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11827 if test $ac_cv_lib_pthread_pthread_self = yes; then
11828 HAVE_GTK_AND_PTHREAD=yes
11829 fi
11830
11831 fi
11832 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11833 GTK_LIBS="$GTK_LIBS -lpthread"
11834
11835 cat >>confdefs.h <<\_ACEOF
11836 #define HAVE_GTK_AND_PTHREAD 1
11837 _ACEOF
11838
11839 fi
11840 fi
11841 fi
11842
11843 ### Link with -lXft if available to work around a bug.
11844 HAVE_XFT=maybe
11845 if test "${HAVE_GTK}" = "yes"; then
11846 if test "X${with_pkg_config_prog}" != X; then
11847 PKG_CONFIG="${with_pkg_config_prog}"
11848 fi
11849
11850
11851 succeeded=no
11852
11853 if test -z "$PKG_CONFIG"; then
11854 # Extract the first word of "pkg-config", so it can be a program name with args.
11855 set dummy pkg-config; ac_word=$2
11856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11858 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11859 echo $ECHO_N "(cached) $ECHO_C" >&6
11860 else
11861 case $PKG_CONFIG in
11862 [\\/]* | ?:[\\/]*)
11863 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11864 ;;
11865 *)
11866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11867 for as_dir in $PATH
11868 do
11869 IFS=$as_save_IFS
11870 test -z "$as_dir" && as_dir=.
11871 for ac_exec_ext in '' $ac_executable_extensions; do
11872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11873 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11875 break 2
11876 fi
11877 done
11878 done
11879 IFS=$as_save_IFS
11880
11881 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11882 ;;
11883 esac
11884 fi
11885 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11886 if test -n "$PKG_CONFIG"; then
11887 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11888 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11889 else
11890 { echo "$as_me:$LINENO: result: no" >&5
11891 echo "${ECHO_T}no" >&6; }
11892 fi
11893
11894
11895 fi
11896
11897 if test "$PKG_CONFIG" = "no" ; then
11898 HAVE_XFT=no
11899 else
11900 PKG_CONFIG_MIN_VERSION=0.9.0
11901 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11902 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11903 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
11904
11905 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11906 { echo "$as_me:$LINENO: result: yes" >&5
11907 echo "${ECHO_T}yes" >&6; }
11908 succeeded=yes
11909
11910 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11911 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
11912 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11913 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11914 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
11915
11916 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11917 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
11918 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11919 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11920 echo "${ECHO_T}$XFT_LIBS" >&6; }
11921 else
11922 { echo "$as_me:$LINENO: result: no" >&5
11923 echo "${ECHO_T}no" >&6; }
11924 XFT_CFLAGS=""
11925 XFT_LIBS=""
11926 ## If we have a custom action on failure, don't print errors, but
11927 ## do set a variable so people can do so.
11928 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11929
11930 fi
11931
11932
11933
11934 else
11935 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11936 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11937 fi
11938 fi
11939
11940 if test $succeeded = yes; then
11941 :
11942 else
11943 HAVE_XFT=no
11944 fi
11945
11946 if test "$HAVE_XFT" != no; then
11947 OLD_CFLAGS="$CPPFLAGS"
11948 OLD_CPPFLAGS="$CFLAGS"
11949 OLD_LIBS="$LIBS"
11950 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11951 CFLAGS="$CFLAGS $XFT_CFLAGS"
11952 LIBS="$XFT_LIBS $LIBS"
11953 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11954 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11955 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11956 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11957 echo $ECHO_N "(cached) $ECHO_C" >&6
11958 fi
11959 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11960 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11961 else
11962 # Is the header compilable?
11963 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11964 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
11965 cat >conftest.$ac_ext <<_ACEOF
11966 /* confdefs.h. */
11967 _ACEOF
11968 cat confdefs.h >>conftest.$ac_ext
11969 cat >>conftest.$ac_ext <<_ACEOF
11970 /* end confdefs.h. */
11971 $ac_includes_default
11972 #include <X11/Xft/Xft.h>
11973 _ACEOF
11974 rm -f conftest.$ac_objext
11975 if { (ac_try="$ac_compile"
11976 case "(($ac_try" in
11977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11978 *) ac_try_echo=$ac_try;;
11979 esac
11980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11981 (eval "$ac_compile") 2>conftest.er1
11982 ac_status=$?
11983 grep -v '^ *+' conftest.er1 >conftest.err
11984 rm -f conftest.er1
11985 cat conftest.err >&5
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); } && {
11988 test -z "$ac_c_werror_flag" ||
11989 test ! -s conftest.err
11990 } && test -s conftest.$ac_objext; then
11991 ac_header_compiler=yes
11992 else
11993 echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.$ac_ext >&5
11995
11996 ac_header_compiler=no
11997 fi
11998
11999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12000 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12001 echo "${ECHO_T}$ac_header_compiler" >&6; }
12002
12003 # Is the header present?
12004 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12005 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12006 cat >conftest.$ac_ext <<_ACEOF
12007 /* confdefs.h. */
12008 _ACEOF
12009 cat confdefs.h >>conftest.$ac_ext
12010 cat >>conftest.$ac_ext <<_ACEOF
12011 /* end confdefs.h. */
12012 #include <X11/Xft/Xft.h>
12013 _ACEOF
12014 if { (ac_try="$ac_cpp conftest.$ac_ext"
12015 case "(($ac_try" in
12016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12017 *) ac_try_echo=$ac_try;;
12018 esac
12019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12021 ac_status=$?
12022 grep -v '^ *+' conftest.er1 >conftest.err
12023 rm -f conftest.er1
12024 cat conftest.err >&5
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); } >/dev/null && {
12027 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12028 test ! -s conftest.err
12029 }; then
12030 ac_header_preproc=yes
12031 else
12032 echo "$as_me: failed program was:" >&5
12033 sed 's/^/| /' conftest.$ac_ext >&5
12034
12035 ac_header_preproc=no
12036 fi
12037
12038 rm -f conftest.err conftest.$ac_ext
12039 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12040 echo "${ECHO_T}$ac_header_preproc" >&6; }
12041
12042 # So? What about this header?
12043 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12044 yes:no: )
12045 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12046 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12047 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12048 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12049 ac_header_preproc=yes
12050 ;;
12051 no:yes:* )
12052 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12053 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12054 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12055 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12056 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12057 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12058 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12059 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12060 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12061 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12062 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12063 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12064
12065 ;;
12066 esac
12067 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12068 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12069 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12070 echo $ECHO_N "(cached) $ECHO_C" >&6
12071 else
12072 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12073 fi
12074 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12075 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12076
12077 fi
12078 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12079 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12080 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12081 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12082 echo $ECHO_N "(cached) $ECHO_C" >&6
12083 else
12084 ac_check_lib_save_LIBS=$LIBS
12085 LIBS="-lXft $XFT_LIBS $LIBS"
12086 cat >conftest.$ac_ext <<_ACEOF
12087 /* confdefs.h. */
12088 _ACEOF
12089 cat confdefs.h >>conftest.$ac_ext
12090 cat >>conftest.$ac_ext <<_ACEOF
12091 /* end confdefs.h. */
12092
12093 /* Override any GCC internal prototype to avoid an error.
12094 Use char because int might match the return type of a GCC
12095 builtin and then its argument prototype would still apply. */
12096 #ifdef __cplusplus
12097 extern "C"
12098 #endif
12099 char XftFontOpen ();
12100 int
12101 main ()
12102 {
12103 return XftFontOpen ();
12104 ;
12105 return 0;
12106 }
12107 _ACEOF
12108 rm -f conftest.$ac_objext conftest$ac_exeext
12109 if { (ac_try="$ac_link"
12110 case "(($ac_try" in
12111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12112 *) ac_try_echo=$ac_try;;
12113 esac
12114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12115 (eval "$ac_link") 2>conftest.er1
12116 ac_status=$?
12117 grep -v '^ *+' conftest.er1 >conftest.err
12118 rm -f conftest.er1
12119 cat conftest.err >&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); } && {
12122 test -z "$ac_c_werror_flag" ||
12123 test ! -s conftest.err
12124 } && test -s conftest$ac_exeext &&
12125 $as_test_x conftest$ac_exeext; then
12126 ac_cv_lib_Xft_XftFontOpen=yes
12127 else
12128 echo "$as_me: failed program was:" >&5
12129 sed 's/^/| /' conftest.$ac_ext >&5
12130
12131 ac_cv_lib_Xft_XftFontOpen=no
12132 fi
12133
12134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12135 conftest$ac_exeext conftest.$ac_ext
12136 LIBS=$ac_check_lib_save_LIBS
12137 fi
12138 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12139 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12140 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12141 HAVE_XFT=yes
12142 fi
12143
12144 fi
12145
12146
12147
12148 if test "${HAVE_XFT}" = "yes"; then
12149
12150 cat >>confdefs.h <<\_ACEOF
12151 #define HAVE_XFT 1
12152 _ACEOF
12153
12154
12155 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12156 else
12157 CFLAGS="$OLD_CPPFLAGS"
12158 CFLAGS="$OLD_CFLAGS"
12159 LIBS="$OLD_LIBS"
12160 fi
12161 fi
12162 fi
12163
12164 HAVE_XAW3D=no
12165 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12166 if test x"${HAVE_X11R5}" != xyes; then
12167 USE_X_TOOLKIT=none
12168 else
12169 { echo "$as_me:$LINENO: checking for xaw3d" >&5
12170 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
12171 if test "${emacs_cv_xaw3d+set}" = set; then
12172 echo $ECHO_N "(cached) $ECHO_C" >&6
12173 else
12174 cat >conftest.$ac_ext <<_ACEOF
12175 /* confdefs.h. */
12176 _ACEOF
12177 cat confdefs.h >>conftest.$ac_ext
12178 cat >>conftest.$ac_ext <<_ACEOF
12179 /* end confdefs.h. */
12180
12181 #include <X11/Intrinsic.h>
12182 #include <X11/Xaw3d/Simple.h>
12183 int
12184 main ()
12185 {
12186
12187 ;
12188 return 0;
12189 }
12190 _ACEOF
12191 rm -f conftest.$ac_objext conftest$ac_exeext
12192 if { (ac_try="$ac_link"
12193 case "(($ac_try" in
12194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12195 *) ac_try_echo=$ac_try;;
12196 esac
12197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12198 (eval "$ac_link") 2>conftest.er1
12199 ac_status=$?
12200 grep -v '^ *+' conftest.er1 >conftest.err
12201 rm -f conftest.er1
12202 cat conftest.err >&5
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); } && {
12205 test -z "$ac_c_werror_flag" ||
12206 test ! -s conftest.err
12207 } && test -s conftest$ac_exeext &&
12208 $as_test_x conftest$ac_exeext; then
12209 emacs_cv_xaw3d=yes
12210 else
12211 echo "$as_me: failed program was:" >&5
12212 sed 's/^/| /' conftest.$ac_ext >&5
12213
12214 emacs_cv_xaw3d=no
12215 fi
12216
12217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12218 conftest$ac_exeext conftest.$ac_ext
12219 fi
12220
12221 if test $emacs_cv_xaw3d = yes; then
12222 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12223 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12224 USE_X_TOOLKIT=LUCID
12225 HAVE_XAW3D=yes
12226
12227 cat >>confdefs.h <<\_ACEOF
12228 #define HAVE_XAW3D 1
12229 _ACEOF
12230
12231 else
12232 { echo "$as_me:$LINENO: result: no" >&5
12233 echo "${ECHO_T}no" >&6; }
12234 { echo "$as_me:$LINENO: checking for libXaw" >&5
12235 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
12236 if test "${emacs_cv_xaw+set}" = set; then
12237 echo $ECHO_N "(cached) $ECHO_C" >&6
12238 else
12239 cat >conftest.$ac_ext <<_ACEOF
12240 /* confdefs.h. */
12241 _ACEOF
12242 cat confdefs.h >>conftest.$ac_ext
12243 cat >>conftest.$ac_ext <<_ACEOF
12244 /* end confdefs.h. */
12245
12246 #include <X11/Intrinsic.h>
12247 #include <X11/Xaw/Simple.h>
12248 int
12249 main ()
12250 {
12251
12252 ;
12253 return 0;
12254 }
12255 _ACEOF
12256 rm -f conftest.$ac_objext conftest$ac_exeext
12257 if { (ac_try="$ac_link"
12258 case "(($ac_try" in
12259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12260 *) ac_try_echo=$ac_try;;
12261 esac
12262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12263 (eval "$ac_link") 2>conftest.er1
12264 ac_status=$?
12265 grep -v '^ *+' conftest.er1 >conftest.err
12266 rm -f conftest.er1
12267 cat conftest.err >&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); } && {
12270 test -z "$ac_c_werror_flag" ||
12271 test ! -s conftest.err
12272 } && test -s conftest$ac_exeext &&
12273 $as_test_x conftest$ac_exeext; then
12274 emacs_cv_xaw=yes
12275 else
12276 echo "$as_me: failed program was:" >&5
12277 sed 's/^/| /' conftest.$ac_ext >&5
12278
12279 emacs_cv_xaw=no
12280 fi
12281
12282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12283 conftest$ac_exeext conftest.$ac_ext
12284 fi
12285
12286 if test $emacs_cv_xaw = yes; then
12287 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12288 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12289 USE_X_TOOLKIT=LUCID
12290 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12291 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12292 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12293 { (exit 1); exit 1; }; }
12294 else
12295 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12296 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12297 USE_X_TOOLKIT=none
12298 fi
12299 fi
12300 fi
12301 fi
12302
12303 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12304
12305 if test "${USE_X_TOOLKIT}" != "none"; then
12306 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12307 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12308 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12309 echo $ECHO_N "(cached) $ECHO_C" >&6
12310 else
12311 cat >conftest.$ac_ext <<_ACEOF
12312 /* confdefs.h. */
12313 _ACEOF
12314 cat confdefs.h >>conftest.$ac_ext
12315 cat >>conftest.$ac_ext <<_ACEOF
12316 /* end confdefs.h. */
12317 #include <X11/Intrinsic.h>
12318 int
12319 main ()
12320 {
12321 #if XtSpecificationRelease < 6
12322 fail;
12323 #endif
12324
12325 ;
12326 return 0;
12327 }
12328 _ACEOF
12329 rm -f conftest.$ac_objext conftest$ac_exeext
12330 if { (ac_try="$ac_link"
12331 case "(($ac_try" in
12332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12333 *) ac_try_echo=$ac_try;;
12334 esac
12335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12336 (eval "$ac_link") 2>conftest.er1
12337 ac_status=$?
12338 grep -v '^ *+' conftest.er1 >conftest.err
12339 rm -f conftest.er1
12340 cat conftest.err >&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); } && {
12343 test -z "$ac_c_werror_flag" ||
12344 test ! -s conftest.err
12345 } && test -s conftest$ac_exeext &&
12346 $as_test_x conftest$ac_exeext; then
12347 emacs_cv_x11_toolkit_version_6=yes
12348 else
12349 echo "$as_me: failed program was:" >&5
12350 sed 's/^/| /' conftest.$ac_ext >&5
12351
12352 emacs_cv_x11_toolkit_version_6=no
12353 fi
12354
12355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12356 conftest$ac_exeext conftest.$ac_ext
12357 fi
12358
12359 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12360 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12361 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12362 echo "${ECHO_T}6 or newer" >&6; }
12363
12364 cat >>confdefs.h <<\_ACEOF
12365 #define HAVE_X11XTR6 1
12366 _ACEOF
12367
12368 else
12369 { echo "$as_me:$LINENO: result: before 6" >&5
12370 echo "${ECHO_T}before 6" >&6; }
12371 fi
12372
12373 OLDLIBS="$LIBS"
12374 if test x$HAVE_X11XTR6 = xyes; then
12375 LIBS="-lXt -lSM -lICE $LIBS"
12376 else
12377 LIBS="-lXt $LIBS"
12378 fi
12379
12380 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12381 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12382 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12383 echo $ECHO_N "(cached) $ECHO_C" >&6
12384 else
12385 ac_check_lib_save_LIBS=$LIBS
12386 LIBS="-lXmu $LIBS"
12387 cat >conftest.$ac_ext <<_ACEOF
12388 /* confdefs.h. */
12389 _ACEOF
12390 cat confdefs.h >>conftest.$ac_ext
12391 cat >>conftest.$ac_ext <<_ACEOF
12392 /* end confdefs.h. */
12393
12394 /* Override any GCC internal prototype to avoid an error.
12395 Use char because int might match the return type of a GCC
12396 builtin and then its argument prototype would still apply. */
12397 #ifdef __cplusplus
12398 extern "C"
12399 #endif
12400 char XmuConvertStandardSelection ();
12401 int
12402 main ()
12403 {
12404 return XmuConvertStandardSelection ();
12405 ;
12406 return 0;
12407 }
12408 _ACEOF
12409 rm -f conftest.$ac_objext conftest$ac_exeext
12410 if { (ac_try="$ac_link"
12411 case "(($ac_try" in
12412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12413 *) ac_try_echo=$ac_try;;
12414 esac
12415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12416 (eval "$ac_link") 2>conftest.er1
12417 ac_status=$?
12418 grep -v '^ *+' conftest.er1 >conftest.err
12419 rm -f conftest.er1
12420 cat conftest.err >&5
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); } && {
12423 test -z "$ac_c_werror_flag" ||
12424 test ! -s conftest.err
12425 } && test -s conftest$ac_exeext &&
12426 $as_test_x conftest$ac_exeext; then
12427 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12428 else
12429 echo "$as_me: failed program was:" >&5
12430 sed 's/^/| /' conftest.$ac_ext >&5
12431
12432 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12433 fi
12434
12435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12436 conftest$ac_exeext conftest.$ac_ext
12437 LIBS=$ac_check_lib_save_LIBS
12438 fi
12439 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12440 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12441 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12442 cat >>confdefs.h <<_ACEOF
12443 #define HAVE_LIBXMU 1
12444 _ACEOF
12445
12446 LIBS="-lXmu $LIBS"
12447
12448 fi
12449
12450 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12451 fi
12452
12453 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12454 if test "${HAVE_X11}" = "yes"; then
12455 if test "${USE_X_TOOLKIT}" != "none"; then
12456
12457 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12458 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12459 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12460 echo $ECHO_N "(cached) $ECHO_C" >&6
12461 else
12462 ac_check_lib_save_LIBS=$LIBS
12463 LIBS="-lXext $LIBS"
12464 cat >conftest.$ac_ext <<_ACEOF
12465 /* confdefs.h. */
12466 _ACEOF
12467 cat confdefs.h >>conftest.$ac_ext
12468 cat >>conftest.$ac_ext <<_ACEOF
12469 /* end confdefs.h. */
12470
12471 /* Override any GCC internal prototype to avoid an error.
12472 Use char because int might match the return type of a GCC
12473 builtin and then its argument prototype would still apply. */
12474 #ifdef __cplusplus
12475 extern "C"
12476 #endif
12477 char XShapeQueryExtension ();
12478 int
12479 main ()
12480 {
12481 return XShapeQueryExtension ();
12482 ;
12483 return 0;
12484 }
12485 _ACEOF
12486 rm -f conftest.$ac_objext conftest$ac_exeext
12487 if { (ac_try="$ac_link"
12488 case "(($ac_try" in
12489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12490 *) ac_try_echo=$ac_try;;
12491 esac
12492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12493 (eval "$ac_link") 2>conftest.er1
12494 ac_status=$?
12495 grep -v '^ *+' conftest.er1 >conftest.err
12496 rm -f conftest.er1
12497 cat conftest.err >&5
12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); } && {
12500 test -z "$ac_c_werror_flag" ||
12501 test ! -s conftest.err
12502 } && test -s conftest$ac_exeext &&
12503 $as_test_x conftest$ac_exeext; then
12504 ac_cv_lib_Xext_XShapeQueryExtension=yes
12505 else
12506 echo "$as_me: failed program was:" >&5
12507 sed 's/^/| /' conftest.$ac_ext >&5
12508
12509 ac_cv_lib_Xext_XShapeQueryExtension=no
12510 fi
12511
12512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12513 conftest$ac_exeext conftest.$ac_ext
12514 LIBS=$ac_check_lib_save_LIBS
12515 fi
12516 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12517 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12518 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12519 cat >>confdefs.h <<_ACEOF
12520 #define HAVE_LIBXEXT 1
12521 _ACEOF
12522
12523 LIBS="-lXext $LIBS"
12524
12525 fi
12526
12527 fi
12528 fi
12529
12530 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12531 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12532 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12533 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12534 echo $ECHO_N "(cached) $ECHO_C" >&6
12535 else
12536 cat >conftest.$ac_ext <<_ACEOF
12537 /* confdefs.h. */
12538 _ACEOF
12539 cat confdefs.h >>conftest.$ac_ext
12540 cat >>conftest.$ac_ext <<_ACEOF
12541 /* end confdefs.h. */
12542 #include <Xm/Xm.h>
12543 int
12544 main ()
12545 {
12546 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12547 int x = 5;
12548 #else
12549 Motif version prior to 2.1.
12550 #endif
12551 ;
12552 return 0;
12553 }
12554 _ACEOF
12555 rm -f conftest.$ac_objext
12556 if { (ac_try="$ac_compile"
12557 case "(($ac_try" in
12558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12559 *) ac_try_echo=$ac_try;;
12560 esac
12561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12562 (eval "$ac_compile") 2>conftest.er1
12563 ac_status=$?
12564 grep -v '^ *+' conftest.er1 >conftest.err
12565 rm -f conftest.er1
12566 cat conftest.err >&5
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); } && {
12569 test -z "$ac_c_werror_flag" ||
12570 test ! -s conftest.err
12571 } && test -s conftest.$ac_objext; then
12572 emacs_cv_motif_version_2_1=yes
12573 else
12574 echo "$as_me: failed program was:" >&5
12575 sed 's/^/| /' conftest.$ac_ext >&5
12576
12577 emacs_cv_motif_version_2_1=no
12578 fi
12579
12580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12581 fi
12582 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12583 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12584 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12585 if test $emacs_cv_motif_version_2_1 = yes; then
12586 HAVE_LIBXP=no
12587
12588 cat >>confdefs.h <<\_ACEOF
12589 #define HAVE_MOTIF_2_1 1
12590 _ACEOF
12591
12592 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12593 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12594 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12596 else
12597 ac_check_lib_save_LIBS=$LIBS
12598 LIBS="-lXp $LIBS"
12599 cat >conftest.$ac_ext <<_ACEOF
12600 /* confdefs.h. */
12601 _ACEOF
12602 cat confdefs.h >>conftest.$ac_ext
12603 cat >>conftest.$ac_ext <<_ACEOF
12604 /* end confdefs.h. */
12605
12606 /* Override any GCC internal prototype to avoid an error.
12607 Use char because int might match the return type of a GCC
12608 builtin and then its argument prototype would still apply. */
12609 #ifdef __cplusplus
12610 extern "C"
12611 #endif
12612 char XpCreateContext ();
12613 int
12614 main ()
12615 {
12616 return XpCreateContext ();
12617 ;
12618 return 0;
12619 }
12620 _ACEOF
12621 rm -f conftest.$ac_objext conftest$ac_exeext
12622 if { (ac_try="$ac_link"
12623 case "(($ac_try" in
12624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12625 *) ac_try_echo=$ac_try;;
12626 esac
12627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12628 (eval "$ac_link") 2>conftest.er1
12629 ac_status=$?
12630 grep -v '^ *+' conftest.er1 >conftest.err
12631 rm -f conftest.er1
12632 cat conftest.err >&5
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); } && {
12635 test -z "$ac_c_werror_flag" ||
12636 test ! -s conftest.err
12637 } && test -s conftest$ac_exeext &&
12638 $as_test_x conftest$ac_exeext; then
12639 ac_cv_lib_Xp_XpCreateContext=yes
12640 else
12641 echo "$as_me: failed program was:" >&5
12642 sed 's/^/| /' conftest.$ac_ext >&5
12643
12644 ac_cv_lib_Xp_XpCreateContext=no
12645 fi
12646
12647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12648 conftest$ac_exeext conftest.$ac_ext
12649 LIBS=$ac_check_lib_save_LIBS
12650 fi
12651 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12652 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12653 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12654 HAVE_LIBXP=yes
12655 fi
12656
12657 if test ${HAVE_LIBXP} = yes; then
12658
12659 cat >>confdefs.h <<\_ACEOF
12660 #define HAVE_LIBXP 1
12661 _ACEOF
12662
12663 fi
12664 else
12665 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12666 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12667 if test "${emacs_cv_lesstif+set}" = set; then
12668 echo $ECHO_N "(cached) $ECHO_C" >&6
12669 else
12670 # We put this in CFLAGS temporarily to precede other -I options
12671 # that might be in CFLAGS temporarily.
12672 # We put this in CPPFLAGS where it precedes the other -I options.
12673 OLD_CPPFLAGS=$CPPFLAGS
12674 OLD_CFLAGS=$CFLAGS
12675 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12676 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12677 cat >conftest.$ac_ext <<_ACEOF
12678 /* confdefs.h. */
12679 _ACEOF
12680 cat confdefs.h >>conftest.$ac_ext
12681 cat >>conftest.$ac_ext <<_ACEOF
12682 /* end confdefs.h. */
12683 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12684 int
12685 main ()
12686 {
12687 int x = 5;
12688 ;
12689 return 0;
12690 }
12691 _ACEOF
12692 rm -f conftest.$ac_objext
12693 if { (ac_try="$ac_compile"
12694 case "(($ac_try" in
12695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12696 *) ac_try_echo=$ac_try;;
12697 esac
12698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12699 (eval "$ac_compile") 2>conftest.er1
12700 ac_status=$?
12701 grep -v '^ *+' conftest.er1 >conftest.err
12702 rm -f conftest.er1
12703 cat conftest.err >&5
12704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); } && {
12706 test -z "$ac_c_werror_flag" ||
12707 test ! -s conftest.err
12708 } && test -s conftest.$ac_objext; then
12709 emacs_cv_lesstif=yes
12710 else
12711 echo "$as_me: failed program was:" >&5
12712 sed 's/^/| /' conftest.$ac_ext >&5
12713
12714 emacs_cv_lesstif=no
12715 fi
12716
12717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12718 fi
12719 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12720 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12721 if test $emacs_cv_lesstif = yes; then
12722 # Make sure this -I option remains in CPPFLAGS after it is set
12723 # back to REAL_CPPFLAGS.
12724 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12725 # have those other -I options anyway. Ultimately, having this
12726 # directory ultimately in CPPFLAGS will be enough.
12727 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12728 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12729 else
12730 CFLAGS=$OLD_CFLAGS
12731 CPPFLAGS=$OLD_CPPFLAGS
12732 fi
12733 fi
12734 fi
12735
12736
12737
12738 USE_TOOLKIT_SCROLL_BARS=no
12739 if test "${with_toolkit_scroll_bars}" != "no"; then
12740 if test "${USE_X_TOOLKIT}" != "none"; then
12741 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12742 cat >>confdefs.h <<\_ACEOF
12743 #define USE_TOOLKIT_SCROLL_BARS 1
12744 _ACEOF
12745
12746 HAVE_XAW3D=no
12747 USE_TOOLKIT_SCROLL_BARS=yes
12748 elif test "${HAVE_XAW3D}" = "yes"; then
12749 cat >>confdefs.h <<\_ACEOF
12750 #define USE_TOOLKIT_SCROLL_BARS 1
12751 _ACEOF
12752
12753 USE_TOOLKIT_SCROLL_BARS=yes
12754 fi
12755 elif test "${HAVE_GTK}" = "yes"; then
12756 cat >>confdefs.h <<\_ACEOF
12757 #define USE_TOOLKIT_SCROLL_BARS 1
12758 _ACEOF
12759
12760 USE_TOOLKIT_SCROLL_BARS=yes
12761 elif test "${HAVE_CARBON}" = "yes"; then
12762 cat >>confdefs.h <<\_ACEOF
12763 #define USE_TOOLKIT_SCROLL_BARS 1
12764 _ACEOF
12765
12766 USE_TOOLKIT_SCROLL_BARS=yes
12767 fi
12768 fi
12769
12770 cat >conftest.$ac_ext <<_ACEOF
12771 /* confdefs.h. */
12772 _ACEOF
12773 cat confdefs.h >>conftest.$ac_ext
12774 cat >>conftest.$ac_ext <<_ACEOF
12775 /* end confdefs.h. */
12776
12777 #include <X11/Xlib.h>
12778 #include <X11/Xresource.h>
12779 int
12780 main ()
12781 {
12782 XIMProc callback;
12783 ;
12784 return 0;
12785 }
12786 _ACEOF
12787 rm -f conftest.$ac_objext
12788 if { (ac_try="$ac_compile"
12789 case "(($ac_try" in
12790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12791 *) ac_try_echo=$ac_try;;
12792 esac
12793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12794 (eval "$ac_compile") 2>conftest.er1
12795 ac_status=$?
12796 grep -v '^ *+' conftest.er1 >conftest.err
12797 rm -f conftest.er1
12798 cat conftest.err >&5
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); } && {
12801 test -z "$ac_c_werror_flag" ||
12802 test ! -s conftest.err
12803 } && test -s conftest.$ac_objext; then
12804 HAVE_XIM=yes
12805
12806 cat >>confdefs.h <<\_ACEOF
12807 #define HAVE_XIM 1
12808 _ACEOF
12809
12810 else
12811 echo "$as_me: failed program was:" >&5
12812 sed 's/^/| /' conftest.$ac_ext >&5
12813
12814 HAVE_XIM=no
12815 fi
12816
12817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12818
12819
12820 if test "${with_xim}" != "no"; then
12821
12822 cat >>confdefs.h <<\_ACEOF
12823 #define USE_XIM 1
12824 _ACEOF
12825
12826 fi
12827
12828
12829 if test "${HAVE_XIM}" != "no"; then
12830 late_CFLAGS=$CFLAGS
12831 if test "$GCC" = yes; then
12832 CFLAGS="$CFLAGS --pedantic-errors"
12833 fi
12834 cat >conftest.$ac_ext <<_ACEOF
12835 /* confdefs.h. */
12836 _ACEOF
12837 cat confdefs.h >>conftest.$ac_ext
12838 cat >>conftest.$ac_ext <<_ACEOF
12839 /* end confdefs.h. */
12840
12841 #include <X11/Xlib.h>
12842 #include <X11/Xresource.h>
12843 int
12844 main ()
12845 {
12846 Display *display;
12847 XrmDatabase db;
12848 char *res_name;
12849 char *res_class;
12850 XIMProc callback;
12851 XPointer *client_data;
12852 #ifndef __GNUC__
12853 /* If we're not using GCC, it's probably not XFree86, and this is
12854 probably right, but we can't use something like --pedantic-errors. */
12855 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12856 char*, XIMProc, XPointer*);
12857 #endif
12858 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12859 client_data);
12860 ;
12861 return 0;
12862 }
12863 _ACEOF
12864 rm -f conftest.$ac_objext
12865 if { (ac_try="$ac_compile"
12866 case "(($ac_try" in
12867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12868 *) ac_try_echo=$ac_try;;
12869 esac
12870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12871 (eval "$ac_compile") 2>conftest.er1
12872 ac_status=$?
12873 grep -v '^ *+' conftest.er1 >conftest.err
12874 rm -f conftest.er1
12875 cat conftest.err >&5
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); } && {
12878 test -z "$ac_c_werror_flag" ||
12879 test ! -s conftest.err
12880 } && test -s conftest.$ac_objext; then
12881 emacs_cv_arg6_star=yes
12882 else
12883 echo "$as_me: failed program was:" >&5
12884 sed 's/^/| /' conftest.$ac_ext >&5
12885
12886
12887 fi
12888
12889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12890
12891 if test "$emacs_cv_arg6_star" = yes; then
12892 cat >>confdefs.h <<\_ACEOF
12893 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12894 _ACEOF
12895
12896 else
12897 cat >>confdefs.h <<\_ACEOF
12898 #define XRegisterIMInstantiateCallback_arg6 XPointer
12899 _ACEOF
12900
12901 fi
12902 CFLAGS=$late_CFLAGS
12903 fi
12904
12905 ### Use -lXpm if available, unless `--with-xpm=no'.
12906 HAVE_XPM=no
12907 if test "${HAVE_X11}" = "yes"; then
12908 if test "${with_xpm}" != "no"; then
12909 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12910 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12911 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12912 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12913 echo $ECHO_N "(cached) $ECHO_C" >&6
12914 fi
12915 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12916 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12917 else
12918 # Is the header compilable?
12919 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12920 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12921 cat >conftest.$ac_ext <<_ACEOF
12922 /* confdefs.h. */
12923 _ACEOF
12924 cat confdefs.h >>conftest.$ac_ext
12925 cat >>conftest.$ac_ext <<_ACEOF
12926 /* end confdefs.h. */
12927 $ac_includes_default
12928 #include <X11/xpm.h>
12929 _ACEOF
12930 rm -f conftest.$ac_objext
12931 if { (ac_try="$ac_compile"
12932 case "(($ac_try" in
12933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12934 *) ac_try_echo=$ac_try;;
12935 esac
12936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12937 (eval "$ac_compile") 2>conftest.er1
12938 ac_status=$?
12939 grep -v '^ *+' conftest.er1 >conftest.err
12940 rm -f conftest.er1
12941 cat conftest.err >&5
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); } && {
12944 test -z "$ac_c_werror_flag" ||
12945 test ! -s conftest.err
12946 } && test -s conftest.$ac_objext; then
12947 ac_header_compiler=yes
12948 else
12949 echo "$as_me: failed program was:" >&5
12950 sed 's/^/| /' conftest.$ac_ext >&5
12951
12952 ac_header_compiler=no
12953 fi
12954
12955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12956 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12957 echo "${ECHO_T}$ac_header_compiler" >&6; }
12958
12959 # Is the header present?
12960 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12961 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12962 cat >conftest.$ac_ext <<_ACEOF
12963 /* confdefs.h. */
12964 _ACEOF
12965 cat confdefs.h >>conftest.$ac_ext
12966 cat >>conftest.$ac_ext <<_ACEOF
12967 /* end confdefs.h. */
12968 #include <X11/xpm.h>
12969 _ACEOF
12970 if { (ac_try="$ac_cpp conftest.$ac_ext"
12971 case "(($ac_try" in
12972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12973 *) ac_try_echo=$ac_try;;
12974 esac
12975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12977 ac_status=$?
12978 grep -v '^ *+' conftest.er1 >conftest.err
12979 rm -f conftest.er1
12980 cat conftest.err >&5
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); } >/dev/null && {
12983 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12984 test ! -s conftest.err
12985 }; then
12986 ac_header_preproc=yes
12987 else
12988 echo "$as_me: failed program was:" >&5
12989 sed 's/^/| /' conftest.$ac_ext >&5
12990
12991 ac_header_preproc=no
12992 fi
12993
12994 rm -f conftest.err conftest.$ac_ext
12995 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12996 echo "${ECHO_T}$ac_header_preproc" >&6; }
12997
12998 # So? What about this header?
12999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13000 yes:no: )
13001 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13002 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13003 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13004 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13005 ac_header_preproc=yes
13006 ;;
13007 no:yes:* )
13008 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13009 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13010 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13011 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13012 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13013 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13014 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13015 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13016 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13017 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13018 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13019 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13020
13021 ;;
13022 esac
13023 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13024 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13025 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13026 echo $ECHO_N "(cached) $ECHO_C" >&6
13027 else
13028 ac_cv_header_X11_xpm_h=$ac_header_preproc
13029 fi
13030 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13031 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13032
13033 fi
13034 if test $ac_cv_header_X11_xpm_h = yes; then
13035 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13036 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13037 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13038 echo $ECHO_N "(cached) $ECHO_C" >&6
13039 else
13040 ac_check_lib_save_LIBS=$LIBS
13041 LIBS="-lXpm -lX11 $LIBS"
13042 cat >conftest.$ac_ext <<_ACEOF
13043 /* confdefs.h. */
13044 _ACEOF
13045 cat confdefs.h >>conftest.$ac_ext
13046 cat >>conftest.$ac_ext <<_ACEOF
13047 /* end confdefs.h. */
13048
13049 /* Override any GCC internal prototype to avoid an error.
13050 Use char because int might match the return type of a GCC
13051 builtin and then its argument prototype would still apply. */
13052 #ifdef __cplusplus
13053 extern "C"
13054 #endif
13055 char XpmReadFileToPixmap ();
13056 int
13057 main ()
13058 {
13059 return XpmReadFileToPixmap ();
13060 ;
13061 return 0;
13062 }
13063 _ACEOF
13064 rm -f conftest.$ac_objext conftest$ac_exeext
13065 if { (ac_try="$ac_link"
13066 case "(($ac_try" in
13067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13068 *) ac_try_echo=$ac_try;;
13069 esac
13070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13071 (eval "$ac_link") 2>conftest.er1
13072 ac_status=$?
13073 grep -v '^ *+' conftest.er1 >conftest.err
13074 rm -f conftest.er1
13075 cat conftest.err >&5
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); } && {
13078 test -z "$ac_c_werror_flag" ||
13079 test ! -s conftest.err
13080 } && test -s conftest$ac_exeext &&
13081 $as_test_x conftest$ac_exeext; then
13082 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13083 else
13084 echo "$as_me: failed program was:" >&5
13085 sed 's/^/| /' conftest.$ac_ext >&5
13086
13087 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13088 fi
13089
13090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13091 conftest$ac_exeext conftest.$ac_ext
13092 LIBS=$ac_check_lib_save_LIBS
13093 fi
13094 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13095 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13096 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13097 HAVE_XPM=yes
13098 fi
13099
13100 fi
13101
13102
13103 if test "${HAVE_XPM}" = "yes"; then
13104 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13105 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13106 cat >conftest.$ac_ext <<_ACEOF
13107 /* confdefs.h. */
13108 _ACEOF
13109 cat confdefs.h >>conftest.$ac_ext
13110 cat >>conftest.$ac_ext <<_ACEOF
13111 /* end confdefs.h. */
13112 #include "X11/xpm.h"
13113 #ifndef XpmReturnAllocPixels
13114 no_return_alloc_pixels
13115 #endif
13116
13117 _ACEOF
13118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13119 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13120 HAVE_XPM=no
13121 else
13122 HAVE_XPM=yes
13123 fi
13124 rm -f conftest*
13125
13126
13127 if test "${HAVE_XPM}" = "yes"; then
13128 { echo "$as_me:$LINENO: result: yes" >&5
13129 echo "${ECHO_T}yes" >&6; }
13130 else
13131 { echo "$as_me:$LINENO: result: no" >&5
13132 echo "${ECHO_T}no" >&6; }
13133 fi
13134 fi
13135 fi
13136
13137 if test "${HAVE_XPM}" = "yes"; then
13138
13139 cat >>confdefs.h <<\_ACEOF
13140 #define HAVE_XPM 1
13141 _ACEOF
13142
13143 fi
13144 fi
13145
13146 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13147 HAVE_JPEG=no
13148 if test "${HAVE_X11}" = "yes"; then
13149 if test "${with_jpeg}" != "no"; then
13150 if test "${ac_cv_header_jerror_h+set}" = set; then
13151 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13152 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13153 if test "${ac_cv_header_jerror_h+set}" = set; then
13154 echo $ECHO_N "(cached) $ECHO_C" >&6
13155 fi
13156 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13157 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13158 else
13159 # Is the header compilable?
13160 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13161 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13162 cat >conftest.$ac_ext <<_ACEOF
13163 /* confdefs.h. */
13164 _ACEOF
13165 cat confdefs.h >>conftest.$ac_ext
13166 cat >>conftest.$ac_ext <<_ACEOF
13167 /* end confdefs.h. */
13168 $ac_includes_default
13169 #include <jerror.h>
13170 _ACEOF
13171 rm -f conftest.$ac_objext
13172 if { (ac_try="$ac_compile"
13173 case "(($ac_try" in
13174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13175 *) ac_try_echo=$ac_try;;
13176 esac
13177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13178 (eval "$ac_compile") 2>conftest.er1
13179 ac_status=$?
13180 grep -v '^ *+' conftest.er1 >conftest.err
13181 rm -f conftest.er1
13182 cat conftest.err >&5
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); } && {
13185 test -z "$ac_c_werror_flag" ||
13186 test ! -s conftest.err
13187 } && test -s conftest.$ac_objext; then
13188 ac_header_compiler=yes
13189 else
13190 echo "$as_me: failed program was:" >&5
13191 sed 's/^/| /' conftest.$ac_ext >&5
13192
13193 ac_header_compiler=no
13194 fi
13195
13196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13197 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13198 echo "${ECHO_T}$ac_header_compiler" >&6; }
13199
13200 # Is the header present?
13201 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13202 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13203 cat >conftest.$ac_ext <<_ACEOF
13204 /* confdefs.h. */
13205 _ACEOF
13206 cat confdefs.h >>conftest.$ac_ext
13207 cat >>conftest.$ac_ext <<_ACEOF
13208 /* end confdefs.h. */
13209 #include <jerror.h>
13210 _ACEOF
13211 if { (ac_try="$ac_cpp conftest.$ac_ext"
13212 case "(($ac_try" in
13213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13214 *) ac_try_echo=$ac_try;;
13215 esac
13216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13218 ac_status=$?
13219 grep -v '^ *+' conftest.er1 >conftest.err
13220 rm -f conftest.er1
13221 cat conftest.err >&5
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); } >/dev/null && {
13224 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13225 test ! -s conftest.err
13226 }; then
13227 ac_header_preproc=yes
13228 else
13229 echo "$as_me: failed program was:" >&5
13230 sed 's/^/| /' conftest.$ac_ext >&5
13231
13232 ac_header_preproc=no
13233 fi
13234
13235 rm -f conftest.err conftest.$ac_ext
13236 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13237 echo "${ECHO_T}$ac_header_preproc" >&6; }
13238
13239 # So? What about this header?
13240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13241 yes:no: )
13242 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13243 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13244 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13245 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13246 ac_header_preproc=yes
13247 ;;
13248 no:yes:* )
13249 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13250 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13251 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13252 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13253 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13254 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13255 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13256 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13257 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13258 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13259 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13260 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13261
13262 ;;
13263 esac
13264 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13265 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13266 if test "${ac_cv_header_jerror_h+set}" = set; then
13267 echo $ECHO_N "(cached) $ECHO_C" >&6
13268 else
13269 ac_cv_header_jerror_h=$ac_header_preproc
13270 fi
13271 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13272 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13273
13274 fi
13275 if test $ac_cv_header_jerror_h = yes; then
13276 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13277 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13278 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13279 echo $ECHO_N "(cached) $ECHO_C" >&6
13280 else
13281 ac_check_lib_save_LIBS=$LIBS
13282 LIBS="-ljpeg $LIBS"
13283 cat >conftest.$ac_ext <<_ACEOF
13284 /* confdefs.h. */
13285 _ACEOF
13286 cat confdefs.h >>conftest.$ac_ext
13287 cat >>conftest.$ac_ext <<_ACEOF
13288 /* end confdefs.h. */
13289
13290 /* Override any GCC internal prototype to avoid an error.
13291 Use char because int might match the return type of a GCC
13292 builtin and then its argument prototype would still apply. */
13293 #ifdef __cplusplus
13294 extern "C"
13295 #endif
13296 char jpeg_destroy_compress ();
13297 int
13298 main ()
13299 {
13300 return jpeg_destroy_compress ();
13301 ;
13302 return 0;
13303 }
13304 _ACEOF
13305 rm -f conftest.$ac_objext conftest$ac_exeext
13306 if { (ac_try="$ac_link"
13307 case "(($ac_try" in
13308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13309 *) ac_try_echo=$ac_try;;
13310 esac
13311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13312 (eval "$ac_link") 2>conftest.er1
13313 ac_status=$?
13314 grep -v '^ *+' conftest.er1 >conftest.err
13315 rm -f conftest.er1
13316 cat conftest.err >&5
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); } && {
13319 test -z "$ac_c_werror_flag" ||
13320 test ! -s conftest.err
13321 } && test -s conftest$ac_exeext &&
13322 $as_test_x conftest$ac_exeext; then
13323 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13324 else
13325 echo "$as_me: failed program was:" >&5
13326 sed 's/^/| /' conftest.$ac_ext >&5
13327
13328 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13329 fi
13330
13331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13332 conftest$ac_exeext conftest.$ac_ext
13333 LIBS=$ac_check_lib_save_LIBS
13334 fi
13335 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13336 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13337 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13338 HAVE_JPEG=yes
13339 fi
13340
13341 fi
13342
13343
13344 fi
13345
13346
13347 if test "${HAVE_JPEG}" = "yes"; then
13348 cat >>confdefs.h <<\_ACEOF
13349 #define HAVE_JPEG 1
13350 _ACEOF
13351
13352 cat >conftest.$ac_ext <<_ACEOF
13353 /* confdefs.h. */
13354 _ACEOF
13355 cat confdefs.h >>conftest.$ac_ext
13356 cat >>conftest.$ac_ext <<_ACEOF
13357 /* end confdefs.h. */
13358 #include <jpeglib.h>
13359 version=JPEG_LIB_VERSION
13360
13361 _ACEOF
13362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13363 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13364 cat >>confdefs.h <<\_ACEOF
13365 #define HAVE_JPEG 1
13366 _ACEOF
13367
13368 else
13369 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13370 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13371 HAVE_JPEG=no
13372 fi
13373 rm -f conftest*
13374
13375 fi
13376 fi
13377
13378 ### Use -lpng if available, unless `--with-png=no'.
13379 HAVE_PNG=no
13380 if test "${HAVE_X11}" = "yes"; then
13381 if test "${with_png}" != "no"; then
13382 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13383 # in /usr/include/libpng.
13384
13385
13386 for ac_header in png.h libpng/png.h
13387 do
13388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13390 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13393 echo $ECHO_N "(cached) $ECHO_C" >&6
13394 fi
13395 ac_res=`eval echo '${'$as_ac_Header'}'`
13396 { echo "$as_me:$LINENO: result: $ac_res" >&5
13397 echo "${ECHO_T}$ac_res" >&6; }
13398 else
13399 # Is the header compilable?
13400 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13402 cat >conftest.$ac_ext <<_ACEOF
13403 /* confdefs.h. */
13404 _ACEOF
13405 cat confdefs.h >>conftest.$ac_ext
13406 cat >>conftest.$ac_ext <<_ACEOF
13407 /* end confdefs.h. */
13408 $ac_includes_default
13409 #include <$ac_header>
13410 _ACEOF
13411 rm -f conftest.$ac_objext
13412 if { (ac_try="$ac_compile"
13413 case "(($ac_try" in
13414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13415 *) ac_try_echo=$ac_try;;
13416 esac
13417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13418 (eval "$ac_compile") 2>conftest.er1
13419 ac_status=$?
13420 grep -v '^ *+' conftest.er1 >conftest.err
13421 rm -f conftest.er1
13422 cat conftest.err >&5
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); } && {
13425 test -z "$ac_c_werror_flag" ||
13426 test ! -s conftest.err
13427 } && test -s conftest.$ac_objext; then
13428 ac_header_compiler=yes
13429 else
13430 echo "$as_me: failed program was:" >&5
13431 sed 's/^/| /' conftest.$ac_ext >&5
13432
13433 ac_header_compiler=no
13434 fi
13435
13436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13437 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13438 echo "${ECHO_T}$ac_header_compiler" >&6; }
13439
13440 # Is the header present?
13441 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13442 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13443 cat >conftest.$ac_ext <<_ACEOF
13444 /* confdefs.h. */
13445 _ACEOF
13446 cat confdefs.h >>conftest.$ac_ext
13447 cat >>conftest.$ac_ext <<_ACEOF
13448 /* end confdefs.h. */
13449 #include <$ac_header>
13450 _ACEOF
13451 if { (ac_try="$ac_cpp conftest.$ac_ext"
13452 case "(($ac_try" in
13453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13454 *) ac_try_echo=$ac_try;;
13455 esac
13456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13457 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13458 ac_status=$?
13459 grep -v '^ *+' conftest.er1 >conftest.err
13460 rm -f conftest.er1
13461 cat conftest.err >&5
13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); } >/dev/null && {
13464 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13465 test ! -s conftest.err
13466 }; then
13467 ac_header_preproc=yes
13468 else
13469 echo "$as_me: failed program was:" >&5
13470 sed 's/^/| /' conftest.$ac_ext >&5
13471
13472 ac_header_preproc=no
13473 fi
13474
13475 rm -f conftest.err conftest.$ac_ext
13476 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13477 echo "${ECHO_T}$ac_header_preproc" >&6; }
13478
13479 # So? What about this header?
13480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13481 yes:no: )
13482 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13483 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13485 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13486 ac_header_preproc=yes
13487 ;;
13488 no:yes:* )
13489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13490 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13492 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13493 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13494 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13495 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13496 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13499 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13500 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13501
13502 ;;
13503 esac
13504 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13507 echo $ECHO_N "(cached) $ECHO_C" >&6
13508 else
13509 eval "$as_ac_Header=\$ac_header_preproc"
13510 fi
13511 ac_res=`eval echo '${'$as_ac_Header'}'`
13512 { echo "$as_me:$LINENO: result: $ac_res" >&5
13513 echo "${ECHO_T}$ac_res" >&6; }
13514
13515 fi
13516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13517 cat >>confdefs.h <<_ACEOF
13518 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13519 _ACEOF
13520
13521 fi
13522
13523 done
13524
13525 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13526 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13527 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13528 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13529 echo $ECHO_N "(cached) $ECHO_C" >&6
13530 else
13531 ac_check_lib_save_LIBS=$LIBS
13532 LIBS="-lpng -lz -lm $LIBS"
13533 cat >conftest.$ac_ext <<_ACEOF
13534 /* confdefs.h. */
13535 _ACEOF
13536 cat confdefs.h >>conftest.$ac_ext
13537 cat >>conftest.$ac_ext <<_ACEOF
13538 /* end confdefs.h. */
13539
13540 /* Override any GCC internal prototype to avoid an error.
13541 Use char because int might match the return type of a GCC
13542 builtin and then its argument prototype would still apply. */
13543 #ifdef __cplusplus
13544 extern "C"
13545 #endif
13546 char png_get_channels ();
13547 int
13548 main ()
13549 {
13550 return png_get_channels ();
13551 ;
13552 return 0;
13553 }
13554 _ACEOF
13555 rm -f conftest.$ac_objext conftest$ac_exeext
13556 if { (ac_try="$ac_link"
13557 case "(($ac_try" in
13558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13559 *) ac_try_echo=$ac_try;;
13560 esac
13561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13562 (eval "$ac_link") 2>conftest.er1
13563 ac_status=$?
13564 grep -v '^ *+' conftest.er1 >conftest.err
13565 rm -f conftest.er1
13566 cat conftest.err >&5
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); } && {
13569 test -z "$ac_c_werror_flag" ||
13570 test ! -s conftest.err
13571 } && test -s conftest$ac_exeext &&
13572 $as_test_x conftest$ac_exeext; then
13573 ac_cv_lib_png_png_get_channels=yes
13574 else
13575 echo "$as_me: failed program was:" >&5
13576 sed 's/^/| /' conftest.$ac_ext >&5
13577
13578 ac_cv_lib_png_png_get_channels=no
13579 fi
13580
13581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13582 conftest$ac_exeext conftest.$ac_ext
13583 LIBS=$ac_check_lib_save_LIBS
13584 fi
13585 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13586 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13587 if test $ac_cv_lib_png_png_get_channels = yes; then
13588 HAVE_PNG=yes
13589 fi
13590
13591 fi
13592 fi
13593
13594 if test "${HAVE_PNG}" = "yes"; then
13595
13596 cat >>confdefs.h <<\_ACEOF
13597 #define HAVE_PNG 1
13598 _ACEOF
13599
13600 fi
13601 fi
13602
13603 ### Use -ltiff if available, unless `--with-tiff=no'.
13604 HAVE_TIFF=no
13605 if test "${HAVE_X11}" = "yes"; then
13606 if test "${with_tiff}" != "no"; then
13607 if test "${ac_cv_header_tiffio_h+set}" = set; then
13608 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13609 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13610 if test "${ac_cv_header_tiffio_h+set}" = set; then
13611 echo $ECHO_N "(cached) $ECHO_C" >&6
13612 fi
13613 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13614 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13615 else
13616 # Is the header compilable?
13617 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13618 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13619 cat >conftest.$ac_ext <<_ACEOF
13620 /* confdefs.h. */
13621 _ACEOF
13622 cat confdefs.h >>conftest.$ac_ext
13623 cat >>conftest.$ac_ext <<_ACEOF
13624 /* end confdefs.h. */
13625 $ac_includes_default
13626 #include <tiffio.h>
13627 _ACEOF
13628 rm -f conftest.$ac_objext
13629 if { (ac_try="$ac_compile"
13630 case "(($ac_try" in
13631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13632 *) ac_try_echo=$ac_try;;
13633 esac
13634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13635 (eval "$ac_compile") 2>conftest.er1
13636 ac_status=$?
13637 grep -v '^ *+' conftest.er1 >conftest.err
13638 rm -f conftest.er1
13639 cat conftest.err >&5
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); } && {
13642 test -z "$ac_c_werror_flag" ||
13643 test ! -s conftest.err
13644 } && test -s conftest.$ac_objext; then
13645 ac_header_compiler=yes
13646 else
13647 echo "$as_me: failed program was:" >&5
13648 sed 's/^/| /' conftest.$ac_ext >&5
13649
13650 ac_header_compiler=no
13651 fi
13652
13653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13654 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13655 echo "${ECHO_T}$ac_header_compiler" >&6; }
13656
13657 # Is the header present?
13658 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13659 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13660 cat >conftest.$ac_ext <<_ACEOF
13661 /* confdefs.h. */
13662 _ACEOF
13663 cat confdefs.h >>conftest.$ac_ext
13664 cat >>conftest.$ac_ext <<_ACEOF
13665 /* end confdefs.h. */
13666 #include <tiffio.h>
13667 _ACEOF
13668 if { (ac_try="$ac_cpp conftest.$ac_ext"
13669 case "(($ac_try" in
13670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13671 *) ac_try_echo=$ac_try;;
13672 esac
13673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13675 ac_status=$?
13676 grep -v '^ *+' conftest.er1 >conftest.err
13677 rm -f conftest.er1
13678 cat conftest.err >&5
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); } >/dev/null && {
13681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13682 test ! -s conftest.err
13683 }; then
13684 ac_header_preproc=yes
13685 else
13686 echo "$as_me: failed program was:" >&5
13687 sed 's/^/| /' conftest.$ac_ext >&5
13688
13689 ac_header_preproc=no
13690 fi
13691
13692 rm -f conftest.err conftest.$ac_ext
13693 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13694 echo "${ECHO_T}$ac_header_preproc" >&6; }
13695
13696 # So? What about this header?
13697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13698 yes:no: )
13699 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13700 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13701 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13702 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13703 ac_header_preproc=yes
13704 ;;
13705 no:yes:* )
13706 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13707 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13708 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13709 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13710 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13711 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13712 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13713 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13714 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13715 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13716 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13717 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13718
13719 ;;
13720 esac
13721 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13722 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13723 if test "${ac_cv_header_tiffio_h+set}" = set; then
13724 echo $ECHO_N "(cached) $ECHO_C" >&6
13725 else
13726 ac_cv_header_tiffio_h=$ac_header_preproc
13727 fi
13728 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13729 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13730
13731 fi
13732 if test $ac_cv_header_tiffio_h = yes; then
13733 tifflibs="-lz -lm"
13734 # At least one tiff package requires the jpeg library.
13735 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13736 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13737 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13738 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13739 echo $ECHO_N "(cached) $ECHO_C" >&6
13740 else
13741 ac_check_lib_save_LIBS=$LIBS
13742 LIBS="-ltiff $tifflibs $LIBS"
13743 cat >conftest.$ac_ext <<_ACEOF
13744 /* confdefs.h. */
13745 _ACEOF
13746 cat confdefs.h >>conftest.$ac_ext
13747 cat >>conftest.$ac_ext <<_ACEOF
13748 /* end confdefs.h. */
13749
13750 /* Override any GCC internal prototype to avoid an error.
13751 Use char because int might match the return type of a GCC
13752 builtin and then its argument prototype would still apply. */
13753 #ifdef __cplusplus
13754 extern "C"
13755 #endif
13756 char TIFFGetVersion ();
13757 int
13758 main ()
13759 {
13760 return TIFFGetVersion ();
13761 ;
13762 return 0;
13763 }
13764 _ACEOF
13765 rm -f conftest.$ac_objext conftest$ac_exeext
13766 if { (ac_try="$ac_link"
13767 case "(($ac_try" in
13768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13769 *) ac_try_echo=$ac_try;;
13770 esac
13771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13772 (eval "$ac_link") 2>conftest.er1
13773 ac_status=$?
13774 grep -v '^ *+' conftest.er1 >conftest.err
13775 rm -f conftest.er1
13776 cat conftest.err >&5
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); } && {
13779 test -z "$ac_c_werror_flag" ||
13780 test ! -s conftest.err
13781 } && test -s conftest$ac_exeext &&
13782 $as_test_x conftest$ac_exeext; then
13783 ac_cv_lib_tiff_TIFFGetVersion=yes
13784 else
13785 echo "$as_me: failed program was:" >&5
13786 sed 's/^/| /' conftest.$ac_ext >&5
13787
13788 ac_cv_lib_tiff_TIFFGetVersion=no
13789 fi
13790
13791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13792 conftest$ac_exeext conftest.$ac_ext
13793 LIBS=$ac_check_lib_save_LIBS
13794 fi
13795 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13796 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13797 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13798 HAVE_TIFF=yes
13799 fi
13800
13801 fi
13802
13803
13804 fi
13805
13806 if test "${HAVE_TIFF}" = "yes"; then
13807
13808 cat >>confdefs.h <<\_ACEOF
13809 #define HAVE_TIFF 1
13810 _ACEOF
13811
13812 fi
13813 fi
13814
13815 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13816 HAVE_GIF=no
13817 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
13818 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13819 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13820 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13821 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13822 echo $ECHO_N "(cached) $ECHO_C" >&6
13823 fi
13824 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13825 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13826 else
13827 # Is the header compilable?
13828 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13829 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13830 cat >conftest.$ac_ext <<_ACEOF
13831 /* confdefs.h. */
13832 _ACEOF
13833 cat confdefs.h >>conftest.$ac_ext
13834 cat >>conftest.$ac_ext <<_ACEOF
13835 /* end confdefs.h. */
13836 $ac_includes_default
13837 #include <gif_lib.h>
13838 _ACEOF
13839 rm -f conftest.$ac_objext
13840 if { (ac_try="$ac_compile"
13841 case "(($ac_try" in
13842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13843 *) ac_try_echo=$ac_try;;
13844 esac
13845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13846 (eval "$ac_compile") 2>conftest.er1
13847 ac_status=$?
13848 grep -v '^ *+' conftest.er1 >conftest.err
13849 rm -f conftest.er1
13850 cat conftest.err >&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); } && {
13853 test -z "$ac_c_werror_flag" ||
13854 test ! -s conftest.err
13855 } && test -s conftest.$ac_objext; then
13856 ac_header_compiler=yes
13857 else
13858 echo "$as_me: failed program was:" >&5
13859 sed 's/^/| /' conftest.$ac_ext >&5
13860
13861 ac_header_compiler=no
13862 fi
13863
13864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13865 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13866 echo "${ECHO_T}$ac_header_compiler" >&6; }
13867
13868 # Is the header present?
13869 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13870 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13871 cat >conftest.$ac_ext <<_ACEOF
13872 /* confdefs.h. */
13873 _ACEOF
13874 cat confdefs.h >>conftest.$ac_ext
13875 cat >>conftest.$ac_ext <<_ACEOF
13876 /* end confdefs.h. */
13877 #include <gif_lib.h>
13878 _ACEOF
13879 if { (ac_try="$ac_cpp conftest.$ac_ext"
13880 case "(($ac_try" in
13881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13882 *) ac_try_echo=$ac_try;;
13883 esac
13884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13886 ac_status=$?
13887 grep -v '^ *+' conftest.er1 >conftest.err
13888 rm -f conftest.er1
13889 cat conftest.err >&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); } >/dev/null && {
13892 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13893 test ! -s conftest.err
13894 }; then
13895 ac_header_preproc=yes
13896 else
13897 echo "$as_me: failed program was:" >&5
13898 sed 's/^/| /' conftest.$ac_ext >&5
13899
13900 ac_header_preproc=no
13901 fi
13902
13903 rm -f conftest.err conftest.$ac_ext
13904 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13905 echo "${ECHO_T}$ac_header_preproc" >&6; }
13906
13907 # So? What about this header?
13908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13909 yes:no: )
13910 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13911 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13912 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13913 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13914 ac_header_preproc=yes
13915 ;;
13916 no:yes:* )
13917 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13918 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13919 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13920 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13921 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13922 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13923 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13924 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13925 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13926 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13927 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13928 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13929
13930 ;;
13931 esac
13932 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13933 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13934 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13935 echo $ECHO_N "(cached) $ECHO_C" >&6
13936 else
13937 ac_cv_header_gif_lib_h=$ac_header_preproc
13938 fi
13939 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13940 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13941
13942 fi
13943 if test $ac_cv_header_gif_lib_h = yes; then
13944 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13945 # Earlier versions can crash Emacs.
13946 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
13947 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
13948 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
13949 echo $ECHO_N "(cached) $ECHO_C" >&6
13950 else
13951 ac_check_lib_save_LIBS=$LIBS
13952 LIBS="-lgif $LIBS"
13953 cat >conftest.$ac_ext <<_ACEOF
13954 /* confdefs.h. */
13955 _ACEOF
13956 cat confdefs.h >>conftest.$ac_ext
13957 cat >>conftest.$ac_ext <<_ACEOF
13958 /* end confdefs.h. */
13959
13960 /* Override any GCC internal prototype to avoid an error.
13961 Use char because int might match the return type of a GCC
13962 builtin and then its argument prototype would still apply. */
13963 #ifdef __cplusplus
13964 extern "C"
13965 #endif
13966 char EGifPutExtensionLast ();
13967 int
13968 main ()
13969 {
13970 return EGifPutExtensionLast ();
13971 ;
13972 return 0;
13973 }
13974 _ACEOF
13975 rm -f conftest.$ac_objext conftest$ac_exeext
13976 if { (ac_try="$ac_link"
13977 case "(($ac_try" in
13978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13979 *) ac_try_echo=$ac_try;;
13980 esac
13981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13982 (eval "$ac_link") 2>conftest.er1
13983 ac_status=$?
13984 grep -v '^ *+' conftest.er1 >conftest.err
13985 rm -f conftest.er1
13986 cat conftest.err >&5
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); } && {
13989 test -z "$ac_c_werror_flag" ||
13990 test ! -s conftest.err
13991 } && test -s conftest$ac_exeext &&
13992 $as_test_x conftest$ac_exeext; then
13993 ac_cv_lib_gif_EGifPutExtensionLast=yes
13994 else
13995 echo "$as_me: failed program was:" >&5
13996 sed 's/^/| /' conftest.$ac_ext >&5
13997
13998 ac_cv_lib_gif_EGifPutExtensionLast=no
13999 fi
14000
14001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14002 conftest$ac_exeext conftest.$ac_ext
14003 LIBS=$ac_check_lib_save_LIBS
14004 fi
14005 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14006 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14007 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14008 HAVE_GIF=yes
14009 else
14010 try_libungif=yes
14011 fi
14012
14013 fi
14014
14015
14016
14017 if test "$HAVE_GIF" = yes; then
14018 ac_gif_lib_name="-lgif"
14019 fi
14020
14021 # If gif_lib.h but no libgif, try libungif.
14022 if test x"$try_libungif" = xyes; then
14023 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14024 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14025 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14026 echo $ECHO_N "(cached) $ECHO_C" >&6
14027 else
14028 ac_check_lib_save_LIBS=$LIBS
14029 LIBS="-lungif $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 EGifPutExtensionLast ();
14044 int
14045 main ()
14046 {
14047 return EGifPutExtensionLast ();
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14059 (eval "$ac_link") 2>conftest.er1
14060 ac_status=$?
14061 grep -v '^ *+' conftest.er1 >conftest.err
14062 rm -f conftest.er1
14063 cat conftest.err >&5
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); } && {
14066 test -z "$ac_c_werror_flag" ||
14067 test ! -s conftest.err
14068 } && test -s conftest$ac_exeext &&
14069 $as_test_x conftest$ac_exeext; then
14070 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14071 else
14072 echo "$as_me: failed program was:" >&5
14073 sed 's/^/| /' conftest.$ac_ext >&5
14074
14075 ac_cv_lib_ungif_EGifPutExtensionLast=no
14076 fi
14077
14078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14079 conftest$ac_exeext conftest.$ac_ext
14080 LIBS=$ac_check_lib_save_LIBS
14081 fi
14082 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14083 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14084 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14085 HAVE_GIF=yes
14086 fi
14087
14088
14089 if test "$HAVE_GIF" = yes; then
14090
14091 cat >>confdefs.h <<\_ACEOF
14092 #define LIBGIF -lungif
14093 _ACEOF
14094
14095 ac_gif_lib_name="-lungif"
14096 fi
14097 fi
14098
14099 if test "${HAVE_GIF}" = "yes"; then
14100
14101 cat >>confdefs.h <<\_ACEOF
14102 #define HAVE_GIF 1
14103 _ACEOF
14104
14105 fi
14106 fi
14107
14108 if test "${HAVE_X11}" = "yes"; then
14109 MISSING=""
14110 WITH_NO=""
14111 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14112 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14113 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14114 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14115 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14116 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14117 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14118 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14119 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14120 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14121
14122 if test "X${MISSING}" != X; then
14123 { { echo "$as_me:$LINENO: error: The following required libraries was not found:
14124 $MISSING
14125 Maybe some development libraries/packages are missing?
14126 If you don't want to link with them give
14127 $WITH_NO
14128 as options to configure" >&5
14129 echo "$as_me: error: The following required libraries was not found:
14130 $MISSING
14131 Maybe some development libraries/packages are missing?
14132 If you don't want to link with them give
14133 $WITH_NO
14134 as options to configure" >&2;}
14135 { (exit 1); exit 1; }; }
14136 fi
14137 fi
14138
14139 ### Use -lgpm if available, unless `--with-gpm=no'.
14140 HAVE_GPM=no
14141 if test "${with_gpm}" != "no"; then
14142 if test "${ac_cv_header_gpm_h+set}" = set; then
14143 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14144 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14145 if test "${ac_cv_header_gpm_h+set}" = set; then
14146 echo $ECHO_N "(cached) $ECHO_C" >&6
14147 fi
14148 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14149 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14150 else
14151 # Is the header compilable?
14152 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14153 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14154 cat >conftest.$ac_ext <<_ACEOF
14155 /* confdefs.h. */
14156 _ACEOF
14157 cat confdefs.h >>conftest.$ac_ext
14158 cat >>conftest.$ac_ext <<_ACEOF
14159 /* end confdefs.h. */
14160 $ac_includes_default
14161 #include <gpm.h>
14162 _ACEOF
14163 rm -f conftest.$ac_objext
14164 if { (ac_try="$ac_compile"
14165 case "(($ac_try" in
14166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14167 *) ac_try_echo=$ac_try;;
14168 esac
14169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14170 (eval "$ac_compile") 2>conftest.er1
14171 ac_status=$?
14172 grep -v '^ *+' conftest.er1 >conftest.err
14173 rm -f conftest.er1
14174 cat conftest.err >&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); } && {
14177 test -z "$ac_c_werror_flag" ||
14178 test ! -s conftest.err
14179 } && test -s conftest.$ac_objext; then
14180 ac_header_compiler=yes
14181 else
14182 echo "$as_me: failed program was:" >&5
14183 sed 's/^/| /' conftest.$ac_ext >&5
14184
14185 ac_header_compiler=no
14186 fi
14187
14188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14189 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14190 echo "${ECHO_T}$ac_header_compiler" >&6; }
14191
14192 # Is the header present?
14193 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14194 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14195 cat >conftest.$ac_ext <<_ACEOF
14196 /* confdefs.h. */
14197 _ACEOF
14198 cat confdefs.h >>conftest.$ac_ext
14199 cat >>conftest.$ac_ext <<_ACEOF
14200 /* end confdefs.h. */
14201 #include <gpm.h>
14202 _ACEOF
14203 if { (ac_try="$ac_cpp conftest.$ac_ext"
14204 case "(($ac_try" in
14205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14206 *) ac_try_echo=$ac_try;;
14207 esac
14208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14209 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14210 ac_status=$?
14211 grep -v '^ *+' conftest.er1 >conftest.err
14212 rm -f conftest.er1
14213 cat conftest.err >&5
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); } >/dev/null && {
14216 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14217 test ! -s conftest.err
14218 }; then
14219 ac_header_preproc=yes
14220 else
14221 echo "$as_me: failed program was:" >&5
14222 sed 's/^/| /' conftest.$ac_ext >&5
14223
14224 ac_header_preproc=no
14225 fi
14226
14227 rm -f conftest.err conftest.$ac_ext
14228 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14229 echo "${ECHO_T}$ac_header_preproc" >&6; }
14230
14231 # So? What about this header?
14232 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14233 yes:no: )
14234 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14235 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14236 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14237 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14238 ac_header_preproc=yes
14239 ;;
14240 no:yes:* )
14241 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14242 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14243 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14244 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14245 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14246 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14247 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14248 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14249 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14250 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14251 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14252 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14253
14254 ;;
14255 esac
14256 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14257 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14258 if test "${ac_cv_header_gpm_h+set}" = set; then
14259 echo $ECHO_N "(cached) $ECHO_C" >&6
14260 else
14261 ac_cv_header_gpm_h=$ac_header_preproc
14262 fi
14263 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14264 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14265
14266 fi
14267 if test $ac_cv_header_gpm_h = yes; then
14268 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14269 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14270 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14271 echo $ECHO_N "(cached) $ECHO_C" >&6
14272 else
14273 ac_check_lib_save_LIBS=$LIBS
14274 LIBS="-lgpm $LIBS"
14275 cat >conftest.$ac_ext <<_ACEOF
14276 /* confdefs.h. */
14277 _ACEOF
14278 cat confdefs.h >>conftest.$ac_ext
14279 cat >>conftest.$ac_ext <<_ACEOF
14280 /* end confdefs.h. */
14281
14282 /* Override any GCC internal prototype to avoid an error.
14283 Use char because int might match the return type of a GCC
14284 builtin and then its argument prototype would still apply. */
14285 #ifdef __cplusplus
14286 extern "C"
14287 #endif
14288 char Gpm_Open ();
14289 int
14290 main ()
14291 {
14292 return Gpm_Open ();
14293 ;
14294 return 0;
14295 }
14296 _ACEOF
14297 rm -f conftest.$ac_objext conftest$ac_exeext
14298 if { (ac_try="$ac_link"
14299 case "(($ac_try" in
14300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14301 *) ac_try_echo=$ac_try;;
14302 esac
14303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14304 (eval "$ac_link") 2>conftest.er1
14305 ac_status=$?
14306 grep -v '^ *+' conftest.er1 >conftest.err
14307 rm -f conftest.er1
14308 cat conftest.err >&5
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); } && {
14311 test -z "$ac_c_werror_flag" ||
14312 test ! -s conftest.err
14313 } && test -s conftest$ac_exeext &&
14314 $as_test_x conftest$ac_exeext; then
14315 ac_cv_lib_gpm_Gpm_Open=yes
14316 else
14317 echo "$as_me: failed program was:" >&5
14318 sed 's/^/| /' conftest.$ac_ext >&5
14319
14320 ac_cv_lib_gpm_Gpm_Open=no
14321 fi
14322
14323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14324 conftest$ac_exeext conftest.$ac_ext
14325 LIBS=$ac_check_lib_save_LIBS
14326 fi
14327 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14328 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14329 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14330 HAVE_GPM=yes
14331 fi
14332
14333 fi
14334
14335
14336 fi
14337
14338 if test "${HAVE_GPM}" = "yes"; then
14339
14340 cat >>confdefs.h <<\_ACEOF
14341 #define HAVE_GPM 1
14342 _ACEOF
14343
14344 fi
14345
14346 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14347 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14348 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14349 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14350 echo $ECHO_N "(cached) $ECHO_C" >&6
14351 fi
14352 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14353 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14354 else
14355 # Is the header compilable?
14356 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14357 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14358 cat >conftest.$ac_ext <<_ACEOF
14359 /* confdefs.h. */
14360 _ACEOF
14361 cat confdefs.h >>conftest.$ac_ext
14362 cat >>conftest.$ac_ext <<_ACEOF
14363 /* end confdefs.h. */
14364 $ac_includes_default
14365 #include <malloc/malloc.h>
14366 _ACEOF
14367 rm -f conftest.$ac_objext
14368 if { (ac_try="$ac_compile"
14369 case "(($ac_try" in
14370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14371 *) ac_try_echo=$ac_try;;
14372 esac
14373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14374 (eval "$ac_compile") 2>conftest.er1
14375 ac_status=$?
14376 grep -v '^ *+' conftest.er1 >conftest.err
14377 rm -f conftest.er1
14378 cat conftest.err >&5
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); } && {
14381 test -z "$ac_c_werror_flag" ||
14382 test ! -s conftest.err
14383 } && test -s conftest.$ac_objext; then
14384 ac_header_compiler=yes
14385 else
14386 echo "$as_me: failed program was:" >&5
14387 sed 's/^/| /' conftest.$ac_ext >&5
14388
14389 ac_header_compiler=no
14390 fi
14391
14392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14393 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14394 echo "${ECHO_T}$ac_header_compiler" >&6; }
14395
14396 # Is the header present?
14397 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14398 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14399 cat >conftest.$ac_ext <<_ACEOF
14400 /* confdefs.h. */
14401 _ACEOF
14402 cat confdefs.h >>conftest.$ac_ext
14403 cat >>conftest.$ac_ext <<_ACEOF
14404 /* end confdefs.h. */
14405 #include <malloc/malloc.h>
14406 _ACEOF
14407 if { (ac_try="$ac_cpp conftest.$ac_ext"
14408 case "(($ac_try" in
14409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14410 *) ac_try_echo=$ac_try;;
14411 esac
14412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14414 ac_status=$?
14415 grep -v '^ *+' conftest.er1 >conftest.err
14416 rm -f conftest.er1
14417 cat conftest.err >&5
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); } >/dev/null && {
14420 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14421 test ! -s conftest.err
14422 }; then
14423 ac_header_preproc=yes
14424 else
14425 echo "$as_me: failed program was:" >&5
14426 sed 's/^/| /' conftest.$ac_ext >&5
14427
14428 ac_header_preproc=no
14429 fi
14430
14431 rm -f conftest.err conftest.$ac_ext
14432 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14433 echo "${ECHO_T}$ac_header_preproc" >&6; }
14434
14435 # So? What about this header?
14436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14437 yes:no: )
14438 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14439 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14440 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14441 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14442 ac_header_preproc=yes
14443 ;;
14444 no:yes:* )
14445 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14446 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14447 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14448 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14449 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14450 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14451 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14452 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14453 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14454 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14455 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14456 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14457
14458 ;;
14459 esac
14460 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14461 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14462 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14463 echo $ECHO_N "(cached) $ECHO_C" >&6
14464 else
14465 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14466 fi
14467 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14468 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14469
14470 fi
14471 if test $ac_cv_header_malloc_malloc_h = yes; then
14472
14473 cat >>confdefs.h <<\_ACEOF
14474 #define HAVE_MALLOC_MALLOC_H 1
14475 _ACEOF
14476
14477 fi
14478
14479
14480
14481 ### Use Mac OS X Carbon API to implement GUI.
14482 if test "${HAVE_CARBON}" = "yes"; then
14483
14484 cat >>confdefs.h <<\_ACEOF
14485 #define HAVE_CARBON 1
14486 _ACEOF
14487
14488 ## Specify the install directory
14489 carbon_appdir=
14490 if test "${carbon_appdir_x}" != ""; then
14491 case ${carbon_appdir_x} in
14492 y | ye | yes) carbon_appdir=/Applications ;;
14493 * ) carbon_appdir=${carbon_appdir_x} ;;
14494 esac
14495 fi
14496 # We also have mouse menus.
14497 HAVE_MENUS=yes
14498 fi
14499
14500 ### Use session management (-lSM -lICE) if available
14501 HAVE_X_SM=no
14502 if test "${HAVE_X11}" = "yes"; then
14503 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14504 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14505 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14506 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14507 echo $ECHO_N "(cached) $ECHO_C" >&6
14508 fi
14509 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14510 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14511 else
14512 # Is the header compilable?
14513 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14514 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14515 cat >conftest.$ac_ext <<_ACEOF
14516 /* confdefs.h. */
14517 _ACEOF
14518 cat confdefs.h >>conftest.$ac_ext
14519 cat >>conftest.$ac_ext <<_ACEOF
14520 /* end confdefs.h. */
14521 $ac_includes_default
14522 #include <X11/SM/SMlib.h>
14523 _ACEOF
14524 rm -f conftest.$ac_objext
14525 if { (ac_try="$ac_compile"
14526 case "(($ac_try" in
14527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14528 *) ac_try_echo=$ac_try;;
14529 esac
14530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14531 (eval "$ac_compile") 2>conftest.er1
14532 ac_status=$?
14533 grep -v '^ *+' conftest.er1 >conftest.err
14534 rm -f conftest.er1
14535 cat conftest.err >&5
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); } && {
14538 test -z "$ac_c_werror_flag" ||
14539 test ! -s conftest.err
14540 } && test -s conftest.$ac_objext; then
14541 ac_header_compiler=yes
14542 else
14543 echo "$as_me: failed program was:" >&5
14544 sed 's/^/| /' conftest.$ac_ext >&5
14545
14546 ac_header_compiler=no
14547 fi
14548
14549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14550 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14551 echo "${ECHO_T}$ac_header_compiler" >&6; }
14552
14553 # Is the header present?
14554 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14555 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14556 cat >conftest.$ac_ext <<_ACEOF
14557 /* confdefs.h. */
14558 _ACEOF
14559 cat confdefs.h >>conftest.$ac_ext
14560 cat >>conftest.$ac_ext <<_ACEOF
14561 /* end confdefs.h. */
14562 #include <X11/SM/SMlib.h>
14563 _ACEOF
14564 if { (ac_try="$ac_cpp conftest.$ac_ext"
14565 case "(($ac_try" in
14566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14567 *) ac_try_echo=$ac_try;;
14568 esac
14569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14571 ac_status=$?
14572 grep -v '^ *+' conftest.er1 >conftest.err
14573 rm -f conftest.er1
14574 cat conftest.err >&5
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); } >/dev/null && {
14577 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14578 test ! -s conftest.err
14579 }; then
14580 ac_header_preproc=yes
14581 else
14582 echo "$as_me: failed program was:" >&5
14583 sed 's/^/| /' conftest.$ac_ext >&5
14584
14585 ac_header_preproc=no
14586 fi
14587
14588 rm -f conftest.err conftest.$ac_ext
14589 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14590 echo "${ECHO_T}$ac_header_preproc" >&6; }
14591
14592 # So? What about this header?
14593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14594 yes:no: )
14595 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14596 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14597 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14598 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14599 ac_header_preproc=yes
14600 ;;
14601 no:yes:* )
14602 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14603 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14604 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14605 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14606 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14607 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14608 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14609 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14610 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14611 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14612 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14613 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14614
14615 ;;
14616 esac
14617 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14618 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14619 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14620 echo $ECHO_N "(cached) $ECHO_C" >&6
14621 else
14622 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14623 fi
14624 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14625 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14626
14627 fi
14628 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14629 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14630 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14631 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14632 echo $ECHO_N "(cached) $ECHO_C" >&6
14633 else
14634 ac_check_lib_save_LIBS=$LIBS
14635 LIBS="-lSM -lICE $LIBS"
14636 cat >conftest.$ac_ext <<_ACEOF
14637 /* confdefs.h. */
14638 _ACEOF
14639 cat confdefs.h >>conftest.$ac_ext
14640 cat >>conftest.$ac_ext <<_ACEOF
14641 /* end confdefs.h. */
14642
14643 /* Override any GCC internal prototype to avoid an error.
14644 Use char because int might match the return type of a GCC
14645 builtin and then its argument prototype would still apply. */
14646 #ifdef __cplusplus
14647 extern "C"
14648 #endif
14649 char SmcOpenConnection ();
14650 int
14651 main ()
14652 {
14653 return SmcOpenConnection ();
14654 ;
14655 return 0;
14656 }
14657 _ACEOF
14658 rm -f conftest.$ac_objext conftest$ac_exeext
14659 if { (ac_try="$ac_link"
14660 case "(($ac_try" in
14661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14662 *) ac_try_echo=$ac_try;;
14663 esac
14664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14665 (eval "$ac_link") 2>conftest.er1
14666 ac_status=$?
14667 grep -v '^ *+' conftest.er1 >conftest.err
14668 rm -f conftest.er1
14669 cat conftest.err >&5
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); } && {
14672 test -z "$ac_c_werror_flag" ||
14673 test ! -s conftest.err
14674 } && test -s conftest$ac_exeext &&
14675 $as_test_x conftest$ac_exeext; then
14676 ac_cv_lib_SM_SmcOpenConnection=yes
14677 else
14678 echo "$as_me: failed program was:" >&5
14679 sed 's/^/| /' conftest.$ac_ext >&5
14680
14681 ac_cv_lib_SM_SmcOpenConnection=no
14682 fi
14683
14684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14685 conftest$ac_exeext conftest.$ac_ext
14686 LIBS=$ac_check_lib_save_LIBS
14687 fi
14688 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14689 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14690 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14691 HAVE_X_SM=yes
14692 fi
14693
14694 fi
14695
14696
14697
14698 if test "${HAVE_X_SM}" = "yes"; then
14699
14700 cat >>confdefs.h <<\_ACEOF
14701 #define HAVE_X_SM 1
14702 _ACEOF
14703
14704 case "$LIBS" in
14705 *-lSM*) ;;
14706 *) LIBS="-lSM -lICE $LIBS" ;;
14707 esac
14708 fi
14709 fi
14710
14711 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14712 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14713 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14714 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14715 echo $ECHO_N "(cached) $ECHO_C" >&6
14716 else
14717 cat >conftest.$ac_ext <<_ACEOF
14718 /* confdefs.h. */
14719 _ACEOF
14720 cat confdefs.h >>conftest.$ac_ext
14721 cat >>conftest.$ac_ext <<_ACEOF
14722 /* end confdefs.h. */
14723 #include <netdb.h>
14724 int
14725 main ()
14726 {
14727 return h_errno;
14728 ;
14729 return 0;
14730 }
14731 _ACEOF
14732 rm -f conftest.$ac_objext conftest$ac_exeext
14733 if { (ac_try="$ac_link"
14734 case "(($ac_try" in
14735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14736 *) ac_try_echo=$ac_try;;
14737 esac
14738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14739 (eval "$ac_link") 2>conftest.er1
14740 ac_status=$?
14741 grep -v '^ *+' conftest.er1 >conftest.err
14742 rm -f conftest.er1
14743 cat conftest.err >&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); } && {
14746 test -z "$ac_c_werror_flag" ||
14747 test ! -s conftest.err
14748 } && test -s conftest$ac_exeext &&
14749 $as_test_x conftest$ac_exeext; then
14750 emacs_cv_netdb_declares_h_errno=yes
14751 else
14752 echo "$as_me: failed program was:" >&5
14753 sed 's/^/| /' conftest.$ac_ext >&5
14754
14755 emacs_cv_netdb_declares_h_errno=no
14756 fi
14757
14758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14759 conftest$ac_exeext conftest.$ac_ext
14760 fi
14761 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14762 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14763 if test $emacs_cv_netdb_declares_h_errno = yes; then
14764
14765 cat >>confdefs.h <<\_ACEOF
14766 #define HAVE_H_ERRNO 1
14767 _ACEOF
14768
14769 fi
14770
14771 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14772 # for constant arguments. Useless!
14773 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14774 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14775 if test "${ac_cv_working_alloca_h+set}" = set; then
14776 echo $ECHO_N "(cached) $ECHO_C" >&6
14777 else
14778 cat >conftest.$ac_ext <<_ACEOF
14779 /* confdefs.h. */
14780 _ACEOF
14781 cat confdefs.h >>conftest.$ac_ext
14782 cat >>conftest.$ac_ext <<_ACEOF
14783 /* end confdefs.h. */
14784 #include <alloca.h>
14785 int
14786 main ()
14787 {
14788 char *p = (char *) alloca (2 * sizeof (int));
14789 if (p) return 0;
14790 ;
14791 return 0;
14792 }
14793 _ACEOF
14794 rm -f conftest.$ac_objext conftest$ac_exeext
14795 if { (ac_try="$ac_link"
14796 case "(($ac_try" in
14797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14798 *) ac_try_echo=$ac_try;;
14799 esac
14800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14801 (eval "$ac_link") 2>conftest.er1
14802 ac_status=$?
14803 grep -v '^ *+' conftest.er1 >conftest.err
14804 rm -f conftest.er1
14805 cat conftest.err >&5
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); } && {
14808 test -z "$ac_c_werror_flag" ||
14809 test ! -s conftest.err
14810 } && test -s conftest$ac_exeext &&
14811 $as_test_x conftest$ac_exeext; then
14812 ac_cv_working_alloca_h=yes
14813 else
14814 echo "$as_me: failed program was:" >&5
14815 sed 's/^/| /' conftest.$ac_ext >&5
14816
14817 ac_cv_working_alloca_h=no
14818 fi
14819
14820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14821 conftest$ac_exeext conftest.$ac_ext
14822 fi
14823 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14824 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14825 if test $ac_cv_working_alloca_h = yes; then
14826
14827 cat >>confdefs.h <<\_ACEOF
14828 #define HAVE_ALLOCA_H 1
14829 _ACEOF
14830
14831 fi
14832
14833 { echo "$as_me:$LINENO: checking for alloca" >&5
14834 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14835 if test "${ac_cv_func_alloca_works+set}" = set; then
14836 echo $ECHO_N "(cached) $ECHO_C" >&6
14837 else
14838 cat >conftest.$ac_ext <<_ACEOF
14839 /* confdefs.h. */
14840 _ACEOF
14841 cat confdefs.h >>conftest.$ac_ext
14842 cat >>conftest.$ac_ext <<_ACEOF
14843 /* end confdefs.h. */
14844 #ifdef __GNUC__
14845 # define alloca __builtin_alloca
14846 #else
14847 # ifdef _MSC_VER
14848 # include <malloc.h>
14849 # define alloca _alloca
14850 # else
14851 # ifdef HAVE_ALLOCA_H
14852 # include <alloca.h>
14853 # else
14854 # ifdef _AIX
14855 #pragma alloca
14856 # else
14857 # ifndef alloca /* predefined by HP cc +Olibcalls */
14858 char *alloca ();
14859 # endif
14860 # endif
14861 # endif
14862 # endif
14863 #endif
14864
14865 int
14866 main ()
14867 {
14868 char *p = (char *) alloca (1);
14869 if (p) return 0;
14870 ;
14871 return 0;
14872 }
14873 _ACEOF
14874 rm -f conftest.$ac_objext conftest$ac_exeext
14875 if { (ac_try="$ac_link"
14876 case "(($ac_try" in
14877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14878 *) ac_try_echo=$ac_try;;
14879 esac
14880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14881 (eval "$ac_link") 2>conftest.er1
14882 ac_status=$?
14883 grep -v '^ *+' conftest.er1 >conftest.err
14884 rm -f conftest.er1
14885 cat conftest.err >&5
14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887 (exit $ac_status); } && {
14888 test -z "$ac_c_werror_flag" ||
14889 test ! -s conftest.err
14890 } && test -s conftest$ac_exeext &&
14891 $as_test_x conftest$ac_exeext; then
14892 ac_cv_func_alloca_works=yes
14893 else
14894 echo "$as_me: failed program was:" >&5
14895 sed 's/^/| /' conftest.$ac_ext >&5
14896
14897 ac_cv_func_alloca_works=no
14898 fi
14899
14900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14901 conftest$ac_exeext conftest.$ac_ext
14902 fi
14903 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14904 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14905
14906 if test $ac_cv_func_alloca_works = yes; then
14907
14908 cat >>confdefs.h <<\_ACEOF
14909 #define HAVE_ALLOCA 1
14910 _ACEOF
14911
14912 else
14913 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14914 # that cause trouble. Some versions do not even contain alloca or
14915 # contain a buggy version. If you still want to use their alloca,
14916 # use ar to extract alloca.o from them instead of compiling alloca.c.
14917
14918 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14919
14920 cat >>confdefs.h <<\_ACEOF
14921 #define C_ALLOCA 1
14922 _ACEOF
14923
14924
14925 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14926 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
14927 if test "${ac_cv_os_cray+set}" = set; then
14928 echo $ECHO_N "(cached) $ECHO_C" >&6
14929 else
14930 cat >conftest.$ac_ext <<_ACEOF
14931 /* confdefs.h. */
14932 _ACEOF
14933 cat confdefs.h >>conftest.$ac_ext
14934 cat >>conftest.$ac_ext <<_ACEOF
14935 /* end confdefs.h. */
14936 #if defined CRAY && ! defined CRAY2
14937 webecray
14938 #else
14939 wenotbecray
14940 #endif
14941
14942 _ACEOF
14943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14944 $EGREP "webecray" >/dev/null 2>&1; then
14945 ac_cv_os_cray=yes
14946 else
14947 ac_cv_os_cray=no
14948 fi
14949 rm -f conftest*
14950
14951 fi
14952 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14953 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14954 if test $ac_cv_os_cray = yes; then
14955 for ac_func in _getb67 GETB67 getb67; do
14956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14957 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14959 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14960 echo $ECHO_N "(cached) $ECHO_C" >&6
14961 else
14962 cat >conftest.$ac_ext <<_ACEOF
14963 /* confdefs.h. */
14964 _ACEOF
14965 cat confdefs.h >>conftest.$ac_ext
14966 cat >>conftest.$ac_ext <<_ACEOF
14967 /* end confdefs.h. */
14968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14970 #define $ac_func innocuous_$ac_func
14971
14972 /* System header to define __stub macros and hopefully few prototypes,
14973 which can conflict with char $ac_func (); below.
14974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14975 <limits.h> exists even on freestanding compilers. */
14976
14977 #ifdef __STDC__
14978 # include <limits.h>
14979 #else
14980 # include <assert.h>
14981 #endif
14982
14983 #undef $ac_func
14984
14985 /* Override any GCC internal prototype to avoid an error.
14986 Use char because int might match the return type of a GCC
14987 builtin and then its argument prototype would still apply. */
14988 #ifdef __cplusplus
14989 extern "C"
14990 #endif
14991 char $ac_func ();
14992 /* The GNU C library defines this for functions which it implements
14993 to always fail with ENOSYS. Some functions are actually named
14994 something starting with __ and the normal name is an alias. */
14995 #if defined __stub_$ac_func || defined __stub___$ac_func
14996 choke me
14997 #endif
14998
14999 int
15000 main ()
15001 {
15002 return $ac_func ();
15003 ;
15004 return 0;
15005 }
15006 _ACEOF
15007 rm -f conftest.$ac_objext conftest$ac_exeext
15008 if { (ac_try="$ac_link"
15009 case "(($ac_try" in
15010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15011 *) ac_try_echo=$ac_try;;
15012 esac
15013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15014 (eval "$ac_link") 2>conftest.er1
15015 ac_status=$?
15016 grep -v '^ *+' conftest.er1 >conftest.err
15017 rm -f conftest.er1
15018 cat conftest.err >&5
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); } && {
15021 test -z "$ac_c_werror_flag" ||
15022 test ! -s conftest.err
15023 } && test -s conftest$ac_exeext &&
15024 $as_test_x conftest$ac_exeext; then
15025 eval "$as_ac_var=yes"
15026 else
15027 echo "$as_me: failed program was:" >&5
15028 sed 's/^/| /' conftest.$ac_ext >&5
15029
15030 eval "$as_ac_var=no"
15031 fi
15032
15033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15034 conftest$ac_exeext conftest.$ac_ext
15035 fi
15036 ac_res=`eval echo '${'$as_ac_var'}'`
15037 { echo "$as_me:$LINENO: result: $ac_res" >&5
15038 echo "${ECHO_T}$ac_res" >&6; }
15039 if test `eval echo '${'$as_ac_var'}'` = yes; then
15040
15041 cat >>confdefs.h <<_ACEOF
15042 #define CRAY_STACKSEG_END $ac_func
15043 _ACEOF
15044
15045 break
15046 fi
15047
15048 done
15049 fi
15050
15051 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15052 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15053 if test "${ac_cv_c_stack_direction+set}" = set; then
15054 echo $ECHO_N "(cached) $ECHO_C" >&6
15055 else
15056 if test "$cross_compiling" = yes; then
15057 ac_cv_c_stack_direction=0
15058 else
15059 cat >conftest.$ac_ext <<_ACEOF
15060 /* confdefs.h. */
15061 _ACEOF
15062 cat confdefs.h >>conftest.$ac_ext
15063 cat >>conftest.$ac_ext <<_ACEOF
15064 /* end confdefs.h. */
15065 $ac_includes_default
15066 int
15067 find_stack_direction ()
15068 {
15069 static char *addr = 0;
15070 auto char dummy;
15071 if (addr == 0)
15072 {
15073 addr = &dummy;
15074 return find_stack_direction ();
15075 }
15076 else
15077 return (&dummy > addr) ? 1 : -1;
15078 }
15079
15080 int
15081 main ()
15082 {
15083 return find_stack_direction () < 0;
15084 }
15085 _ACEOF
15086 rm -f conftest$ac_exeext
15087 if { (ac_try="$ac_link"
15088 case "(($ac_try" in
15089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15090 *) ac_try_echo=$ac_try;;
15091 esac
15092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15093 (eval "$ac_link") 2>&5
15094 ac_status=$?
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15097 { (case "(($ac_try" in
15098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15099 *) ac_try_echo=$ac_try;;
15100 esac
15101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15102 (eval "$ac_try") 2>&5
15103 ac_status=$?
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); }; }; then
15106 ac_cv_c_stack_direction=1
15107 else
15108 echo "$as_me: program exited with status $ac_status" >&5
15109 echo "$as_me: failed program was:" >&5
15110 sed 's/^/| /' conftest.$ac_ext >&5
15111
15112 ( exit $ac_status )
15113 ac_cv_c_stack_direction=-1
15114 fi
15115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15116 fi
15117
15118
15119 fi
15120 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15121 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15122
15123 cat >>confdefs.h <<_ACEOF
15124 #define STACK_DIRECTION $ac_cv_c_stack_direction
15125 _ACEOF
15126
15127
15128 fi
15129
15130
15131 # fmod, logb, and frexp are found in -lm on most systems.
15132 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15133
15134 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15135 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15136 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15137 echo $ECHO_N "(cached) $ECHO_C" >&6
15138 else
15139 ac_check_lib_save_LIBS=$LIBS
15140 LIBS="-lm $LIBS"
15141 cat >conftest.$ac_ext <<_ACEOF
15142 /* confdefs.h. */
15143 _ACEOF
15144 cat confdefs.h >>conftest.$ac_ext
15145 cat >>conftest.$ac_ext <<_ACEOF
15146 /* end confdefs.h. */
15147
15148 /* Override any GCC internal prototype to avoid an error.
15149 Use char because int might match the return type of a GCC
15150 builtin and then its argument prototype would still apply. */
15151 #ifdef __cplusplus
15152 extern "C"
15153 #endif
15154 char sqrt ();
15155 int
15156 main ()
15157 {
15158 return sqrt ();
15159 ;
15160 return 0;
15161 }
15162 _ACEOF
15163 rm -f conftest.$ac_objext conftest$ac_exeext
15164 if { (ac_try="$ac_link"
15165 case "(($ac_try" in
15166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15167 *) ac_try_echo=$ac_try;;
15168 esac
15169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15170 (eval "$ac_link") 2>conftest.er1
15171 ac_status=$?
15172 grep -v '^ *+' conftest.er1 >conftest.err
15173 rm -f conftest.er1
15174 cat conftest.err >&5
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); } && {
15177 test -z "$ac_c_werror_flag" ||
15178 test ! -s conftest.err
15179 } && test -s conftest$ac_exeext &&
15180 $as_test_x conftest$ac_exeext; then
15181 ac_cv_lib_m_sqrt=yes
15182 else
15183 echo "$as_me: failed program was:" >&5
15184 sed 's/^/| /' conftest.$ac_ext >&5
15185
15186 ac_cv_lib_m_sqrt=no
15187 fi
15188
15189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15190 conftest$ac_exeext conftest.$ac_ext
15191 LIBS=$ac_check_lib_save_LIBS
15192 fi
15193 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15194 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15195 if test $ac_cv_lib_m_sqrt = yes; then
15196 cat >>confdefs.h <<_ACEOF
15197 #define HAVE_LIBM 1
15198 _ACEOF
15199
15200 LIBS="-lm $LIBS"
15201
15202 fi
15203
15204
15205 # Check for mail-locking functions in a "mail" library. Probably this should
15206 # have the same check as for liblockfile below.
15207
15208 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15209 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15210 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15211 echo $ECHO_N "(cached) $ECHO_C" >&6
15212 else
15213 ac_check_lib_save_LIBS=$LIBS
15214 LIBS="-lmail $LIBS"
15215 cat >conftest.$ac_ext <<_ACEOF
15216 /* confdefs.h. */
15217 _ACEOF
15218 cat confdefs.h >>conftest.$ac_ext
15219 cat >>conftest.$ac_ext <<_ACEOF
15220 /* end confdefs.h. */
15221
15222 /* Override any GCC internal prototype to avoid an error.
15223 Use char because int might match the return type of a GCC
15224 builtin and then its argument prototype would still apply. */
15225 #ifdef __cplusplus
15226 extern "C"
15227 #endif
15228 char maillock ();
15229 int
15230 main ()
15231 {
15232 return maillock ();
15233 ;
15234 return 0;
15235 }
15236 _ACEOF
15237 rm -f conftest.$ac_objext conftest$ac_exeext
15238 if { (ac_try="$ac_link"
15239 case "(($ac_try" in
15240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15241 *) ac_try_echo=$ac_try;;
15242 esac
15243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15244 (eval "$ac_link") 2>conftest.er1
15245 ac_status=$?
15246 grep -v '^ *+' conftest.er1 >conftest.err
15247 rm -f conftest.er1
15248 cat conftest.err >&5
15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250 (exit $ac_status); } && {
15251 test -z "$ac_c_werror_flag" ||
15252 test ! -s conftest.err
15253 } && test -s conftest$ac_exeext &&
15254 $as_test_x conftest$ac_exeext; then
15255 ac_cv_lib_mail_maillock=yes
15256 else
15257 echo "$as_me: failed program was:" >&5
15258 sed 's/^/| /' conftest.$ac_ext >&5
15259
15260 ac_cv_lib_mail_maillock=no
15261 fi
15262
15263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15264 conftest$ac_exeext conftest.$ac_ext
15265 LIBS=$ac_check_lib_save_LIBS
15266 fi
15267 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15268 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15269 if test $ac_cv_lib_mail_maillock = yes; then
15270 cat >>confdefs.h <<_ACEOF
15271 #define HAVE_LIBMAIL 1
15272 _ACEOF
15273
15274 LIBS="-lmail $LIBS"
15275
15276 fi
15277
15278
15279 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15280 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15281 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15282 echo $ECHO_N "(cached) $ECHO_C" >&6
15283 else
15284 ac_check_lib_save_LIBS=$LIBS
15285 LIBS="-llockfile $LIBS"
15286 cat >conftest.$ac_ext <<_ACEOF
15287 /* confdefs.h. */
15288 _ACEOF
15289 cat confdefs.h >>conftest.$ac_ext
15290 cat >>conftest.$ac_ext <<_ACEOF
15291 /* end confdefs.h. */
15292
15293 /* Override any GCC internal prototype to avoid an error.
15294 Use char because int might match the return type of a GCC
15295 builtin and then its argument prototype would still apply. */
15296 #ifdef __cplusplus
15297 extern "C"
15298 #endif
15299 char maillock ();
15300 int
15301 main ()
15302 {
15303 return maillock ();
15304 ;
15305 return 0;
15306 }
15307 _ACEOF
15308 rm -f conftest.$ac_objext conftest$ac_exeext
15309 if { (ac_try="$ac_link"
15310 case "(($ac_try" in
15311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15312 *) ac_try_echo=$ac_try;;
15313 esac
15314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15315 (eval "$ac_link") 2>conftest.er1
15316 ac_status=$?
15317 grep -v '^ *+' conftest.er1 >conftest.err
15318 rm -f conftest.er1
15319 cat conftest.err >&5
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); } && {
15322 test -z "$ac_c_werror_flag" ||
15323 test ! -s conftest.err
15324 } && test -s conftest$ac_exeext &&
15325 $as_test_x conftest$ac_exeext; then
15326 ac_cv_lib_lockfile_maillock=yes
15327 else
15328 echo "$as_me: failed program was:" >&5
15329 sed 's/^/| /' conftest.$ac_ext >&5
15330
15331 ac_cv_lib_lockfile_maillock=no
15332 fi
15333
15334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15335 conftest$ac_exeext conftest.$ac_ext
15336 LIBS=$ac_check_lib_save_LIBS
15337 fi
15338 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15339 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15340 if test $ac_cv_lib_lockfile_maillock = yes; then
15341 cat >>confdefs.h <<_ACEOF
15342 #define HAVE_LIBLOCKFILE 1
15343 _ACEOF
15344
15345 LIBS="-llockfile $LIBS"
15346
15347 fi
15348
15349 # If we have the shared liblockfile, assume we must use it for mail
15350 # locking (e.g. Debian). If we couldn't link against liblockfile
15351 # (no liblockfile.a installed), ensure that we don't need to.
15352 if test "$ac_cv_lib_lockfile_maillock" = no; then
15353 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15354 set dummy liblockfile.so; ac_word=$2
15355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15357 if test "${ac_cv_prog_liblockfile+set}" = set; then
15358 echo $ECHO_N "(cached) $ECHO_C" >&6
15359 else
15360 if test -n "$liblockfile"; then
15361 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15362 else
15363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15364 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15365 for as_dir in $as_dummy
15366 do
15367 IFS=$as_save_IFS
15368 test -z "$as_dir" && as_dir=.
15369 for ac_exec_ext in '' $ac_executable_extensions; do
15370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15371 ac_cv_prog_liblockfile="yes"
15372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15373 break 2
15374 fi
15375 done
15376 done
15377 IFS=$as_save_IFS
15378
15379 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15380 fi
15381 fi
15382 liblockfile=$ac_cv_prog_liblockfile
15383 if test -n "$liblockfile"; then
15384 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15385 echo "${ECHO_T}$liblockfile" >&6; }
15386 else
15387 { echo "$as_me:$LINENO: result: no" >&5
15388 echo "${ECHO_T}no" >&6; }
15389 fi
15390
15391
15392 if test $ac_cv_prog_liblockfile = yes; then
15393 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15394 This probably means that movemail could lose mail.
15395 There may be a \`development' package to install containing liblockfile." >&5
15396 echo "$as_me: error: Shared liblockfile found but can't link against it.
15397 This probably means that movemail could lose mail.
15398 There may be a \`development' package to install containing liblockfile." >&2;}
15399 { (exit 1); exit 1; }; }
15400 else :
15401 fi
15402 fi
15403
15404 for ac_func in touchlock
15405 do
15406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15407 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15409 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15410 echo $ECHO_N "(cached) $ECHO_C" >&6
15411 else
15412 cat >conftest.$ac_ext <<_ACEOF
15413 /* confdefs.h. */
15414 _ACEOF
15415 cat confdefs.h >>conftest.$ac_ext
15416 cat >>conftest.$ac_ext <<_ACEOF
15417 /* end confdefs.h. */
15418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15420 #define $ac_func innocuous_$ac_func
15421
15422 /* System header to define __stub macros and hopefully few prototypes,
15423 which can conflict with char $ac_func (); below.
15424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15425 <limits.h> exists even on freestanding compilers. */
15426
15427 #ifdef __STDC__
15428 # include <limits.h>
15429 #else
15430 # include <assert.h>
15431 #endif
15432
15433 #undef $ac_func
15434
15435 /* Override any GCC internal prototype to avoid an error.
15436 Use char because int might match the return type of a GCC
15437 builtin and then its argument prototype would still apply. */
15438 #ifdef __cplusplus
15439 extern "C"
15440 #endif
15441 char $ac_func ();
15442 /* The GNU C library defines this for functions which it implements
15443 to always fail with ENOSYS. Some functions are actually named
15444 something starting with __ and the normal name is an alias. */
15445 #if defined __stub_$ac_func || defined __stub___$ac_func
15446 choke me
15447 #endif
15448
15449 int
15450 main ()
15451 {
15452 return $ac_func ();
15453 ;
15454 return 0;
15455 }
15456 _ACEOF
15457 rm -f conftest.$ac_objext conftest$ac_exeext
15458 if { (ac_try="$ac_link"
15459 case "(($ac_try" in
15460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15461 *) ac_try_echo=$ac_try;;
15462 esac
15463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15464 (eval "$ac_link") 2>conftest.er1
15465 ac_status=$?
15466 grep -v '^ *+' conftest.er1 >conftest.err
15467 rm -f conftest.er1
15468 cat conftest.err >&5
15469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470 (exit $ac_status); } && {
15471 test -z "$ac_c_werror_flag" ||
15472 test ! -s conftest.err
15473 } && test -s conftest$ac_exeext &&
15474 $as_test_x conftest$ac_exeext; then
15475 eval "$as_ac_var=yes"
15476 else
15477 echo "$as_me: failed program was:" >&5
15478 sed 's/^/| /' conftest.$ac_ext >&5
15479
15480 eval "$as_ac_var=no"
15481 fi
15482
15483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15484 conftest$ac_exeext conftest.$ac_ext
15485 fi
15486 ac_res=`eval echo '${'$as_ac_var'}'`
15487 { echo "$as_me:$LINENO: result: $ac_res" >&5
15488 echo "${ECHO_T}$ac_res" >&6; }
15489 if test `eval echo '${'$as_ac_var'}'` = yes; then
15490 cat >>confdefs.h <<_ACEOF
15491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15492 _ACEOF
15493
15494 fi
15495 done
15496
15497
15498 for ac_header in maillock.h
15499 do
15500 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15502 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15505 echo $ECHO_N "(cached) $ECHO_C" >&6
15506 fi
15507 ac_res=`eval echo '${'$as_ac_Header'}'`
15508 { echo "$as_me:$LINENO: result: $ac_res" >&5
15509 echo "${ECHO_T}$ac_res" >&6; }
15510 else
15511 # Is the header compilable?
15512 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15513 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15514 cat >conftest.$ac_ext <<_ACEOF
15515 /* confdefs.h. */
15516 _ACEOF
15517 cat confdefs.h >>conftest.$ac_ext
15518 cat >>conftest.$ac_ext <<_ACEOF
15519 /* end confdefs.h. */
15520 $ac_includes_default
15521 #include <$ac_header>
15522 _ACEOF
15523 rm -f conftest.$ac_objext
15524 if { (ac_try="$ac_compile"
15525 case "(($ac_try" in
15526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15527 *) ac_try_echo=$ac_try;;
15528 esac
15529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15530 (eval "$ac_compile") 2>conftest.er1
15531 ac_status=$?
15532 grep -v '^ *+' conftest.er1 >conftest.err
15533 rm -f conftest.er1
15534 cat conftest.err >&5
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); } && {
15537 test -z "$ac_c_werror_flag" ||
15538 test ! -s conftest.err
15539 } && test -s conftest.$ac_objext; then
15540 ac_header_compiler=yes
15541 else
15542 echo "$as_me: failed program was:" >&5
15543 sed 's/^/| /' conftest.$ac_ext >&5
15544
15545 ac_header_compiler=no
15546 fi
15547
15548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15549 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15550 echo "${ECHO_T}$ac_header_compiler" >&6; }
15551
15552 # Is the header present?
15553 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15554 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15555 cat >conftest.$ac_ext <<_ACEOF
15556 /* confdefs.h. */
15557 _ACEOF
15558 cat confdefs.h >>conftest.$ac_ext
15559 cat >>conftest.$ac_ext <<_ACEOF
15560 /* end confdefs.h. */
15561 #include <$ac_header>
15562 _ACEOF
15563 if { (ac_try="$ac_cpp conftest.$ac_ext"
15564 case "(($ac_try" in
15565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15566 *) ac_try_echo=$ac_try;;
15567 esac
15568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15570 ac_status=$?
15571 grep -v '^ *+' conftest.er1 >conftest.err
15572 rm -f conftest.er1
15573 cat conftest.err >&5
15574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575 (exit $ac_status); } >/dev/null && {
15576 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15577 test ! -s conftest.err
15578 }; then
15579 ac_header_preproc=yes
15580 else
15581 echo "$as_me: failed program was:" >&5
15582 sed 's/^/| /' conftest.$ac_ext >&5
15583
15584 ac_header_preproc=no
15585 fi
15586
15587 rm -f conftest.err conftest.$ac_ext
15588 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15589 echo "${ECHO_T}$ac_header_preproc" >&6; }
15590
15591 # So? What about this header?
15592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15593 yes:no: )
15594 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15595 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15597 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15598 ac_header_preproc=yes
15599 ;;
15600 no:yes:* )
15601 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15602 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15603 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15604 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15605 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15606 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15607 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15608 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15610 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15611 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15612 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15613
15614 ;;
15615 esac
15616 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15619 echo $ECHO_N "(cached) $ECHO_C" >&6
15620 else
15621 eval "$as_ac_Header=\$ac_header_preproc"
15622 fi
15623 ac_res=`eval echo '${'$as_ac_Header'}'`
15624 { echo "$as_me:$LINENO: result: $ac_res" >&5
15625 echo "${ECHO_T}$ac_res" >&6; }
15626
15627 fi
15628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15629 cat >>confdefs.h <<_ACEOF
15630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15631 _ACEOF
15632
15633 fi
15634
15635 done
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707 for ac_func in gethostname getdomainname dup2 \
15708 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15709 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15710 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15711 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15712 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15713 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15714 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15715 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15716 do
15717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15718 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15720 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15721 echo $ECHO_N "(cached) $ECHO_C" >&6
15722 else
15723 cat >conftest.$ac_ext <<_ACEOF
15724 /* confdefs.h. */
15725 _ACEOF
15726 cat confdefs.h >>conftest.$ac_ext
15727 cat >>conftest.$ac_ext <<_ACEOF
15728 /* end confdefs.h. */
15729 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15731 #define $ac_func innocuous_$ac_func
15732
15733 /* System header to define __stub macros and hopefully few prototypes,
15734 which can conflict with char $ac_func (); below.
15735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15736 <limits.h> exists even on freestanding compilers. */
15737
15738 #ifdef __STDC__
15739 # include <limits.h>
15740 #else
15741 # include <assert.h>
15742 #endif
15743
15744 #undef $ac_func
15745
15746 /* Override any GCC internal prototype to avoid an error.
15747 Use char because int might match the return type of a GCC
15748 builtin and then its argument prototype would still apply. */
15749 #ifdef __cplusplus
15750 extern "C"
15751 #endif
15752 char $ac_func ();
15753 /* The GNU C library defines this for functions which it implements
15754 to always fail with ENOSYS. Some functions are actually named
15755 something starting with __ and the normal name is an alias. */
15756 #if defined __stub_$ac_func || defined __stub___$ac_func
15757 choke me
15758 #endif
15759
15760 int
15761 main ()
15762 {
15763 return $ac_func ();
15764 ;
15765 return 0;
15766 }
15767 _ACEOF
15768 rm -f conftest.$ac_objext conftest$ac_exeext
15769 if { (ac_try="$ac_link"
15770 case "(($ac_try" in
15771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15772 *) ac_try_echo=$ac_try;;
15773 esac
15774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15775 (eval "$ac_link") 2>conftest.er1
15776 ac_status=$?
15777 grep -v '^ *+' conftest.er1 >conftest.err
15778 rm -f conftest.er1
15779 cat conftest.err >&5
15780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781 (exit $ac_status); } && {
15782 test -z "$ac_c_werror_flag" ||
15783 test ! -s conftest.err
15784 } && test -s conftest$ac_exeext &&
15785 $as_test_x conftest$ac_exeext; then
15786 eval "$as_ac_var=yes"
15787 else
15788 echo "$as_me: failed program was:" >&5
15789 sed 's/^/| /' conftest.$ac_ext >&5
15790
15791 eval "$as_ac_var=no"
15792 fi
15793
15794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15795 conftest$ac_exeext conftest.$ac_ext
15796 fi
15797 ac_res=`eval echo '${'$as_ac_var'}'`
15798 { echo "$as_me:$LINENO: result: $ac_res" >&5
15799 echo "${ECHO_T}$ac_res" >&6; }
15800 if test `eval echo '${'$as_ac_var'}'` = yes; then
15801 cat >>confdefs.h <<_ACEOF
15802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15803 _ACEOF
15804
15805 fi
15806 done
15807
15808
15809
15810 for ac_header in sys/un.h
15811 do
15812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15814 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15817 echo $ECHO_N "(cached) $ECHO_C" >&6
15818 fi
15819 ac_res=`eval echo '${'$as_ac_Header'}'`
15820 { echo "$as_me:$LINENO: result: $ac_res" >&5
15821 echo "${ECHO_T}$ac_res" >&6; }
15822 else
15823 # Is the header compilable?
15824 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15826 cat >conftest.$ac_ext <<_ACEOF
15827 /* confdefs.h. */
15828 _ACEOF
15829 cat confdefs.h >>conftest.$ac_ext
15830 cat >>conftest.$ac_ext <<_ACEOF
15831 /* end confdefs.h. */
15832 $ac_includes_default
15833 #include <$ac_header>
15834 _ACEOF
15835 rm -f conftest.$ac_objext
15836 if { (ac_try="$ac_compile"
15837 case "(($ac_try" in
15838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15839 *) ac_try_echo=$ac_try;;
15840 esac
15841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15842 (eval "$ac_compile") 2>conftest.er1
15843 ac_status=$?
15844 grep -v '^ *+' conftest.er1 >conftest.err
15845 rm -f conftest.er1
15846 cat conftest.err >&5
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); } && {
15849 test -z "$ac_c_werror_flag" ||
15850 test ! -s conftest.err
15851 } && test -s conftest.$ac_objext; then
15852 ac_header_compiler=yes
15853 else
15854 echo "$as_me: failed program was:" >&5
15855 sed 's/^/| /' conftest.$ac_ext >&5
15856
15857 ac_header_compiler=no
15858 fi
15859
15860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15861 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15862 echo "${ECHO_T}$ac_header_compiler" >&6; }
15863
15864 # Is the header present?
15865 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15866 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15867 cat >conftest.$ac_ext <<_ACEOF
15868 /* confdefs.h. */
15869 _ACEOF
15870 cat confdefs.h >>conftest.$ac_ext
15871 cat >>conftest.$ac_ext <<_ACEOF
15872 /* end confdefs.h. */
15873 #include <$ac_header>
15874 _ACEOF
15875 if { (ac_try="$ac_cpp conftest.$ac_ext"
15876 case "(($ac_try" in
15877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15878 *) ac_try_echo=$ac_try;;
15879 esac
15880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15882 ac_status=$?
15883 grep -v '^ *+' conftest.er1 >conftest.err
15884 rm -f conftest.er1
15885 cat conftest.err >&5
15886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887 (exit $ac_status); } >/dev/null && {
15888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15889 test ! -s conftest.err
15890 }; then
15891 ac_header_preproc=yes
15892 else
15893 echo "$as_me: failed program was:" >&5
15894 sed 's/^/| /' conftest.$ac_ext >&5
15895
15896 ac_header_preproc=no
15897 fi
15898
15899 rm -f conftest.err conftest.$ac_ext
15900 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15901 echo "${ECHO_T}$ac_header_preproc" >&6; }
15902
15903 # So? What about this header?
15904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15905 yes:no: )
15906 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15907 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15909 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15910 ac_header_preproc=yes
15911 ;;
15912 no:yes:* )
15913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15914 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15916 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15917 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15918 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15919 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15920 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15923 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15924 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15925
15926 ;;
15927 esac
15928 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15931 echo $ECHO_N "(cached) $ECHO_C" >&6
15932 else
15933 eval "$as_ac_Header=\$ac_header_preproc"
15934 fi
15935 ac_res=`eval echo '${'$as_ac_Header'}'`
15936 { echo "$as_me:$LINENO: result: $ac_res" >&5
15937 echo "${ECHO_T}$ac_res" >&6; }
15938
15939 fi
15940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15941 cat >>confdefs.h <<_ACEOF
15942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15943 _ACEOF
15944
15945 fi
15946
15947 done
15948
15949
15950
15951
15952
15953
15954 for ac_header in $ac_header_list
15955 do
15956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15958 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15961 echo $ECHO_N "(cached) $ECHO_C" >&6
15962 fi
15963 ac_res=`eval echo '${'$as_ac_Header'}'`
15964 { echo "$as_me:$LINENO: result: $ac_res" >&5
15965 echo "${ECHO_T}$ac_res" >&6; }
15966 else
15967 # Is the header compilable?
15968 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15969 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15970 cat >conftest.$ac_ext <<_ACEOF
15971 /* confdefs.h. */
15972 _ACEOF
15973 cat confdefs.h >>conftest.$ac_ext
15974 cat >>conftest.$ac_ext <<_ACEOF
15975 /* end confdefs.h. */
15976 $ac_includes_default
15977 #include <$ac_header>
15978 _ACEOF
15979 rm -f conftest.$ac_objext
15980 if { (ac_try="$ac_compile"
15981 case "(($ac_try" in
15982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15983 *) ac_try_echo=$ac_try;;
15984 esac
15985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15986 (eval "$ac_compile") 2>conftest.er1
15987 ac_status=$?
15988 grep -v '^ *+' conftest.er1 >conftest.err
15989 rm -f conftest.er1
15990 cat conftest.err >&5
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); } && {
15993 test -z "$ac_c_werror_flag" ||
15994 test ! -s conftest.err
15995 } && test -s conftest.$ac_objext; then
15996 ac_header_compiler=yes
15997 else
15998 echo "$as_me: failed program was:" >&5
15999 sed 's/^/| /' conftest.$ac_ext >&5
16000
16001 ac_header_compiler=no
16002 fi
16003
16004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16005 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16006 echo "${ECHO_T}$ac_header_compiler" >&6; }
16007
16008 # Is the header present?
16009 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16010 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16011 cat >conftest.$ac_ext <<_ACEOF
16012 /* confdefs.h. */
16013 _ACEOF
16014 cat confdefs.h >>conftest.$ac_ext
16015 cat >>conftest.$ac_ext <<_ACEOF
16016 /* end confdefs.h. */
16017 #include <$ac_header>
16018 _ACEOF
16019 if { (ac_try="$ac_cpp conftest.$ac_ext"
16020 case "(($ac_try" in
16021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16022 *) ac_try_echo=$ac_try;;
16023 esac
16024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16026 ac_status=$?
16027 grep -v '^ *+' conftest.er1 >conftest.err
16028 rm -f conftest.er1
16029 cat conftest.err >&5
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); } >/dev/null && {
16032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16033 test ! -s conftest.err
16034 }; then
16035 ac_header_preproc=yes
16036 else
16037 echo "$as_me: failed program was:" >&5
16038 sed 's/^/| /' conftest.$ac_ext >&5
16039
16040 ac_header_preproc=no
16041 fi
16042
16043 rm -f conftest.err conftest.$ac_ext
16044 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16045 echo "${ECHO_T}$ac_header_preproc" >&6; }
16046
16047 # So? What about this header?
16048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16049 yes:no: )
16050 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16053 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16054 ac_header_preproc=yes
16055 ;;
16056 no:yes:* )
16057 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16058 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16059 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16060 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16061 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16062 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16063 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16064 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16067 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16068 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16069
16070 ;;
16071 esac
16072 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16075 echo $ECHO_N "(cached) $ECHO_C" >&6
16076 else
16077 eval "$as_ac_Header=\$ac_header_preproc"
16078 fi
16079 ac_res=`eval echo '${'$as_ac_Header'}'`
16080 { echo "$as_me:$LINENO: result: $ac_res" >&5
16081 echo "${ECHO_T}$ac_res" >&6; }
16082
16083 fi
16084 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16085 cat >>confdefs.h <<_ACEOF
16086 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16087 _ACEOF
16088
16089 fi
16090
16091 done
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101 for ac_func in $ac_func_list
16102 do
16103 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16104 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16106 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16107 echo $ECHO_N "(cached) $ECHO_C" >&6
16108 else
16109 cat >conftest.$ac_ext <<_ACEOF
16110 /* confdefs.h. */
16111 _ACEOF
16112 cat confdefs.h >>conftest.$ac_ext
16113 cat >>conftest.$ac_ext <<_ACEOF
16114 /* end confdefs.h. */
16115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16117 #define $ac_func innocuous_$ac_func
16118
16119 /* System header to define __stub macros and hopefully few prototypes,
16120 which can conflict with char $ac_func (); below.
16121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16122 <limits.h> exists even on freestanding compilers. */
16123
16124 #ifdef __STDC__
16125 # include <limits.h>
16126 #else
16127 # include <assert.h>
16128 #endif
16129
16130 #undef $ac_func
16131
16132 /* Override any GCC internal prototype to avoid an error.
16133 Use char because int might match the return type of a GCC
16134 builtin and then its argument prototype would still apply. */
16135 #ifdef __cplusplus
16136 extern "C"
16137 #endif
16138 char $ac_func ();
16139 /* The GNU C library defines this for functions which it implements
16140 to always fail with ENOSYS. Some functions are actually named
16141 something starting with __ and the normal name is an alias. */
16142 #if defined __stub_$ac_func || defined __stub___$ac_func
16143 choke me
16144 #endif
16145
16146 int
16147 main ()
16148 {
16149 return $ac_func ();
16150 ;
16151 return 0;
16152 }
16153 _ACEOF
16154 rm -f conftest.$ac_objext conftest$ac_exeext
16155 if { (ac_try="$ac_link"
16156 case "(($ac_try" in
16157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16158 *) ac_try_echo=$ac_try;;
16159 esac
16160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16161 (eval "$ac_link") 2>conftest.er1
16162 ac_status=$?
16163 grep -v '^ *+' conftest.er1 >conftest.err
16164 rm -f conftest.er1
16165 cat conftest.err >&5
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); } && {
16168 test -z "$ac_c_werror_flag" ||
16169 test ! -s conftest.err
16170 } && test -s conftest$ac_exeext &&
16171 $as_test_x conftest$ac_exeext; then
16172 eval "$as_ac_var=yes"
16173 else
16174 echo "$as_me: failed program was:" >&5
16175 sed 's/^/| /' conftest.$ac_ext >&5
16176
16177 eval "$as_ac_var=no"
16178 fi
16179
16180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16181 conftest$ac_exeext conftest.$ac_ext
16182 fi
16183 ac_res=`eval echo '${'$as_ac_var'}'`
16184 { echo "$as_me:$LINENO: result: $ac_res" >&5
16185 echo "${ECHO_T}$ac_res" >&6; }
16186 if test `eval echo '${'$as_ac_var'}'` = yes; then
16187 cat >>confdefs.h <<_ACEOF
16188 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16189 _ACEOF
16190
16191 fi
16192 done
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210 { echo "$as_me:$LINENO: checking for working mktime" >&5
16211 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16212 if test "${ac_cv_func_working_mktime+set}" = set; then
16213 echo $ECHO_N "(cached) $ECHO_C" >&6
16214 else
16215 if test "$cross_compiling" = yes; then
16216 ac_cv_func_working_mktime=no
16217 else
16218 cat >conftest.$ac_ext <<_ACEOF
16219 /* confdefs.h. */
16220 _ACEOF
16221 cat confdefs.h >>conftest.$ac_ext
16222 cat >>conftest.$ac_ext <<_ACEOF
16223 /* end confdefs.h. */
16224 /* Test program from Paul Eggert and Tony Leneis. */
16225 #ifdef TIME_WITH_SYS_TIME
16226 # include <sys/time.h>
16227 # include <time.h>
16228 #else
16229 # ifdef HAVE_SYS_TIME_H
16230 # include <sys/time.h>
16231 # else
16232 # include <time.h>
16233 # endif
16234 #endif
16235
16236 #include <stdlib.h>
16237
16238 #ifdef HAVE_UNISTD_H
16239 # include <unistd.h>
16240 #endif
16241
16242 #ifndef HAVE_ALARM
16243 # define alarm(X) /* empty */
16244 #endif
16245
16246 /* Work around redefinition to rpl_putenv by other config tests. */
16247 #undef putenv
16248
16249 static time_t time_t_max;
16250 static time_t time_t_min;
16251
16252 /* Values we'll use to set the TZ environment variable. */
16253 static char *tz_strings[] = {
16254 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16255 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16256 };
16257 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16258
16259 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16260 Based on a problem report from Andreas Jaeger. */
16261 static int
16262 spring_forward_gap ()
16263 {
16264 /* glibc (up to about 1998-10-07) failed this test. */
16265 struct tm tm;
16266
16267 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16268 instead of "TZ=America/Vancouver" in order to detect the bug even
16269 on systems that don't support the Olson extension, or don't have the
16270 full zoneinfo tables installed. */
16271 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16272
16273 tm.tm_year = 98;
16274 tm.tm_mon = 3;
16275 tm.tm_mday = 5;
16276 tm.tm_hour = 2;
16277 tm.tm_min = 0;
16278 tm.tm_sec = 0;
16279 tm.tm_isdst = -1;
16280 return mktime (&tm) != (time_t) -1;
16281 }
16282
16283 static int
16284 mktime_test1 (now)
16285 time_t now;
16286 {
16287 struct tm *lt;
16288 return ! (lt = localtime (&now)) || mktime (lt) == now;
16289 }
16290
16291 static int
16292 mktime_test (now)
16293 time_t now;
16294 {
16295 return (mktime_test1 (now)
16296 && mktime_test1 ((time_t) (time_t_max - now))
16297 && mktime_test1 ((time_t) (time_t_min + now)));
16298 }
16299
16300 static int
16301 irix_6_4_bug ()
16302 {
16303 /* Based on code from Ariel Faigon. */
16304 struct tm tm;
16305 tm.tm_year = 96;
16306 tm.tm_mon = 3;
16307 tm.tm_mday = 0;
16308 tm.tm_hour = 0;
16309 tm.tm_min = 0;
16310 tm.tm_sec = 0;
16311 tm.tm_isdst = -1;
16312 mktime (&tm);
16313 return tm.tm_mon == 2 && tm.tm_mday == 31;
16314 }
16315
16316 static int
16317 bigtime_test (j)
16318 int j;
16319 {
16320 struct tm tm;
16321 time_t now;
16322 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16323 now = mktime (&tm);
16324 if (now != (time_t) -1)
16325 {
16326 struct tm *lt = localtime (&now);
16327 if (! (lt
16328 && lt->tm_year == tm.tm_year
16329 && lt->tm_mon == tm.tm_mon
16330 && lt->tm_mday == tm.tm_mday
16331 && lt->tm_hour == tm.tm_hour
16332 && lt->tm_min == tm.tm_min
16333 && lt->tm_sec == tm.tm_sec
16334 && lt->tm_yday == tm.tm_yday
16335 && lt->tm_wday == tm.tm_wday
16336 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16337 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16338 return 0;
16339 }
16340 return 1;
16341 }
16342
16343 static int
16344 year_2050_test ()
16345 {
16346 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16347 ignoring leap seconds. */
16348 unsigned long int answer = 2527315200UL;
16349
16350 struct tm tm;
16351 time_t t;
16352 tm.tm_year = 2050 - 1900;
16353 tm.tm_mon = 2 - 1;
16354 tm.tm_mday = 1;
16355 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16356 tm.tm_isdst = -1;
16357
16358 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16359 instead of "TZ=America/Vancouver" in order to detect the bug even
16360 on systems that don't support the Olson extension, or don't have the
16361 full zoneinfo tables installed. */
16362 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16363
16364 t = mktime (&tm);
16365
16366 /* Check that the result is either a failure, or close enough
16367 to the correct answer that we can assume the discrepancy is
16368 due to leap seconds. */
16369 return (t == (time_t) -1
16370 || (0 < t && answer - 120 <= t && t <= answer + 120));
16371 }
16372
16373 int
16374 main ()
16375 {
16376 time_t t, delta;
16377 int i, j;
16378
16379 /* This test makes some buggy mktime implementations loop.
16380 Give up after 60 seconds; a mktime slower than that
16381 isn't worth using anyway. */
16382 alarm (60);
16383
16384 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16385 continue;
16386 time_t_max--;
16387 if ((time_t) -1 < 0)
16388 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16389 continue;
16390 delta = time_t_max / 997; /* a suitable prime number */
16391 for (i = 0; i < N_STRINGS; i++)
16392 {
16393 if (tz_strings[i])
16394 putenv (tz_strings[i]);
16395
16396 for (t = 0; t <= time_t_max - delta; t += delta)
16397 if (! mktime_test (t))
16398 return 1;
16399 if (! (mktime_test ((time_t) 1)
16400 && mktime_test ((time_t) (60 * 60))
16401 && mktime_test ((time_t) (60 * 60 * 24))))
16402 return 1;
16403
16404 for (j = 1; 0 < j; j *= 2)
16405 if (! bigtime_test (j))
16406 return 1;
16407 if (! bigtime_test (j - 1))
16408 return 1;
16409 }
16410 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16411 }
16412 _ACEOF
16413 rm -f conftest$ac_exeext
16414 if { (ac_try="$ac_link"
16415 case "(($ac_try" in
16416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16417 *) ac_try_echo=$ac_try;;
16418 esac
16419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16420 (eval "$ac_link") 2>&5
16421 ac_status=$?
16422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16424 { (case "(($ac_try" in
16425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16426 *) ac_try_echo=$ac_try;;
16427 esac
16428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16429 (eval "$ac_try") 2>&5
16430 ac_status=$?
16431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432 (exit $ac_status); }; }; then
16433 ac_cv_func_working_mktime=yes
16434 else
16435 echo "$as_me: program exited with status $ac_status" >&5
16436 echo "$as_me: failed program was:" >&5
16437 sed 's/^/| /' conftest.$ac_ext >&5
16438
16439 ( exit $ac_status )
16440 ac_cv_func_working_mktime=no
16441 fi
16442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16443 fi
16444
16445
16446 fi
16447 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16448 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16449 if test $ac_cv_func_working_mktime = no; then
16450 case " $LIBOBJS " in
16451 *" mktime.$ac_objext "* ) ;;
16452 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16453 ;;
16454 esac
16455
16456 fi
16457
16458 if test "$ac_cv_func_working_mktime" = no; then
16459
16460 cat >>confdefs.h <<\_ACEOF
16461 #define BROKEN_MKTIME 1
16462 _ACEOF
16463
16464 fi
16465
16466 ac_have_func=no # yes means we've found a way to get the load average.
16467
16468 # Make sure getloadavg.c is where it belongs, at configure-time.
16469 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16470 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16471 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16472 { (exit 1); exit 1; }; }
16473
16474 ac_save_LIBS=$LIBS
16475
16476 # Check for getloadavg, but be sure not to touch the cache variable.
16477 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16478 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16479 if test "${ac_cv_func_getloadavg+set}" = set; then
16480 echo $ECHO_N "(cached) $ECHO_C" >&6
16481 else
16482 cat >conftest.$ac_ext <<_ACEOF
16483 /* confdefs.h. */
16484 _ACEOF
16485 cat confdefs.h >>conftest.$ac_ext
16486 cat >>conftest.$ac_ext <<_ACEOF
16487 /* end confdefs.h. */
16488 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16490 #define getloadavg innocuous_getloadavg
16491
16492 /* System header to define __stub macros and hopefully few prototypes,
16493 which can conflict with char getloadavg (); below.
16494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16495 <limits.h> exists even on freestanding compilers. */
16496
16497 #ifdef __STDC__
16498 # include <limits.h>
16499 #else
16500 # include <assert.h>
16501 #endif
16502
16503 #undef getloadavg
16504
16505 /* Override any GCC internal prototype to avoid an error.
16506 Use char because int might match the return type of a GCC
16507 builtin and then its argument prototype would still apply. */
16508 #ifdef __cplusplus
16509 extern "C"
16510 #endif
16511 char getloadavg ();
16512 /* The GNU C library defines this for functions which it implements
16513 to always fail with ENOSYS. Some functions are actually named
16514 something starting with __ and the normal name is an alias. */
16515 #if defined __stub_getloadavg || defined __stub___getloadavg
16516 choke me
16517 #endif
16518
16519 int
16520 main ()
16521 {
16522 return getloadavg ();
16523 ;
16524 return 0;
16525 }
16526 _ACEOF
16527 rm -f conftest.$ac_objext conftest$ac_exeext
16528 if { (ac_try="$ac_link"
16529 case "(($ac_try" in
16530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16531 *) ac_try_echo=$ac_try;;
16532 esac
16533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16534 (eval "$ac_link") 2>conftest.er1
16535 ac_status=$?
16536 grep -v '^ *+' conftest.er1 >conftest.err
16537 rm -f conftest.er1
16538 cat conftest.err >&5
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); } && {
16541 test -z "$ac_c_werror_flag" ||
16542 test ! -s conftest.err
16543 } && test -s conftest$ac_exeext &&
16544 $as_test_x conftest$ac_exeext; then
16545 ac_cv_func_getloadavg=yes
16546 else
16547 echo "$as_me: failed program was:" >&5
16548 sed 's/^/| /' conftest.$ac_ext >&5
16549
16550 ac_cv_func_getloadavg=no
16551 fi
16552
16553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16554 conftest$ac_exeext conftest.$ac_ext
16555 fi
16556 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16557 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16558 if test $ac_cv_func_getloadavg = yes; then
16559 exit 0
16560 else
16561 exit 1
16562 fi
16563 ) && ac_have_func=yes
16564
16565 # On HPUX9, an unprivileged user can get load averages through this function.
16566
16567 for ac_func in pstat_getdynamic
16568 do
16569 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16570 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16571 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16572 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16573 echo $ECHO_N "(cached) $ECHO_C" >&6
16574 else
16575 cat >conftest.$ac_ext <<_ACEOF
16576 /* confdefs.h. */
16577 _ACEOF
16578 cat confdefs.h >>conftest.$ac_ext
16579 cat >>conftest.$ac_ext <<_ACEOF
16580 /* end confdefs.h. */
16581 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16583 #define $ac_func innocuous_$ac_func
16584
16585 /* System header to define __stub macros and hopefully few prototypes,
16586 which can conflict with char $ac_func (); below.
16587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16588 <limits.h> exists even on freestanding compilers. */
16589
16590 #ifdef __STDC__
16591 # include <limits.h>
16592 #else
16593 # include <assert.h>
16594 #endif
16595
16596 #undef $ac_func
16597
16598 /* Override any GCC internal prototype to avoid an error.
16599 Use char because int might match the return type of a GCC
16600 builtin and then its argument prototype would still apply. */
16601 #ifdef __cplusplus
16602 extern "C"
16603 #endif
16604 char $ac_func ();
16605 /* The GNU C library defines this for functions which it implements
16606 to always fail with ENOSYS. Some functions are actually named
16607 something starting with __ and the normal name is an alias. */
16608 #if defined __stub_$ac_func || defined __stub___$ac_func
16609 choke me
16610 #endif
16611
16612 int
16613 main ()
16614 {
16615 return $ac_func ();
16616 ;
16617 return 0;
16618 }
16619 _ACEOF
16620 rm -f conftest.$ac_objext conftest$ac_exeext
16621 if { (ac_try="$ac_link"
16622 case "(($ac_try" in
16623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16624 *) ac_try_echo=$ac_try;;
16625 esac
16626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16627 (eval "$ac_link") 2>conftest.er1
16628 ac_status=$?
16629 grep -v '^ *+' conftest.er1 >conftest.err
16630 rm -f conftest.er1
16631 cat conftest.err >&5
16632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); } && {
16634 test -z "$ac_c_werror_flag" ||
16635 test ! -s conftest.err
16636 } && test -s conftest$ac_exeext &&
16637 $as_test_x conftest$ac_exeext; then
16638 eval "$as_ac_var=yes"
16639 else
16640 echo "$as_me: failed program was:" >&5
16641 sed 's/^/| /' conftest.$ac_ext >&5
16642
16643 eval "$as_ac_var=no"
16644 fi
16645
16646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16647 conftest$ac_exeext conftest.$ac_ext
16648 fi
16649 ac_res=`eval echo '${'$as_ac_var'}'`
16650 { echo "$as_me:$LINENO: result: $ac_res" >&5
16651 echo "${ECHO_T}$ac_res" >&6; }
16652 if test `eval echo '${'$as_ac_var'}'` = yes; then
16653 cat >>confdefs.h <<_ACEOF
16654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16655 _ACEOF
16656
16657 fi
16658 done
16659
16660
16661 # Solaris has libkstat which does not require root.
16662
16663 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16664 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16665 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16666 echo $ECHO_N "(cached) $ECHO_C" >&6
16667 else
16668 ac_check_lib_save_LIBS=$LIBS
16669 LIBS="-lkstat $LIBS"
16670 cat >conftest.$ac_ext <<_ACEOF
16671 /* confdefs.h. */
16672 _ACEOF
16673 cat confdefs.h >>conftest.$ac_ext
16674 cat >>conftest.$ac_ext <<_ACEOF
16675 /* end confdefs.h. */
16676
16677 /* Override any GCC internal prototype to avoid an error.
16678 Use char because int might match the return type of a GCC
16679 builtin and then its argument prototype would still apply. */
16680 #ifdef __cplusplus
16681 extern "C"
16682 #endif
16683 char kstat_open ();
16684 int
16685 main ()
16686 {
16687 return kstat_open ();
16688 ;
16689 return 0;
16690 }
16691 _ACEOF
16692 rm -f conftest.$ac_objext conftest$ac_exeext
16693 if { (ac_try="$ac_link"
16694 case "(($ac_try" in
16695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16696 *) ac_try_echo=$ac_try;;
16697 esac
16698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16699 (eval "$ac_link") 2>conftest.er1
16700 ac_status=$?
16701 grep -v '^ *+' conftest.er1 >conftest.err
16702 rm -f conftest.er1
16703 cat conftest.err >&5
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); } && {
16706 test -z "$ac_c_werror_flag" ||
16707 test ! -s conftest.err
16708 } && test -s conftest$ac_exeext &&
16709 $as_test_x conftest$ac_exeext; then
16710 ac_cv_lib_kstat_kstat_open=yes
16711 else
16712 echo "$as_me: failed program was:" >&5
16713 sed 's/^/| /' conftest.$ac_ext >&5
16714
16715 ac_cv_lib_kstat_kstat_open=no
16716 fi
16717
16718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16719 conftest$ac_exeext conftest.$ac_ext
16720 LIBS=$ac_check_lib_save_LIBS
16721 fi
16722 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16723 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16724 if test $ac_cv_lib_kstat_kstat_open = yes; then
16725 cat >>confdefs.h <<_ACEOF
16726 #define HAVE_LIBKSTAT 1
16727 _ACEOF
16728
16729 LIBS="-lkstat $LIBS"
16730
16731 fi
16732
16733 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16734
16735 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16736 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16737 # to get the right answer into the cache.
16738 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16739 if test $ac_have_func = no; then
16740 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16741 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
16742 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16743 echo $ECHO_N "(cached) $ECHO_C" >&6
16744 else
16745 ac_check_lib_save_LIBS=$LIBS
16746 LIBS="-lelf $LIBS"
16747 cat >conftest.$ac_ext <<_ACEOF
16748 /* confdefs.h. */
16749 _ACEOF
16750 cat confdefs.h >>conftest.$ac_ext
16751 cat >>conftest.$ac_ext <<_ACEOF
16752 /* end confdefs.h. */
16753
16754 /* Override any GCC internal prototype to avoid an error.
16755 Use char because int might match the return type of a GCC
16756 builtin and then its argument prototype would still apply. */
16757 #ifdef __cplusplus
16758 extern "C"
16759 #endif
16760 char elf_begin ();
16761 int
16762 main ()
16763 {
16764 return elf_begin ();
16765 ;
16766 return 0;
16767 }
16768 _ACEOF
16769 rm -f conftest.$ac_objext conftest$ac_exeext
16770 if { (ac_try="$ac_link"
16771 case "(($ac_try" in
16772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16773 *) ac_try_echo=$ac_try;;
16774 esac
16775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16776 (eval "$ac_link") 2>conftest.er1
16777 ac_status=$?
16778 grep -v '^ *+' conftest.er1 >conftest.err
16779 rm -f conftest.er1
16780 cat conftest.err >&5
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); } && {
16783 test -z "$ac_c_werror_flag" ||
16784 test ! -s conftest.err
16785 } && test -s conftest$ac_exeext &&
16786 $as_test_x conftest$ac_exeext; then
16787 ac_cv_lib_elf_elf_begin=yes
16788 else
16789 echo "$as_me: failed program was:" >&5
16790 sed 's/^/| /' conftest.$ac_ext >&5
16791
16792 ac_cv_lib_elf_elf_begin=no
16793 fi
16794
16795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16796 conftest$ac_exeext conftest.$ac_ext
16797 LIBS=$ac_check_lib_save_LIBS
16798 fi
16799 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16800 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16801 if test $ac_cv_lib_elf_elf_begin = yes; then
16802 LIBS="-lelf $LIBS"
16803 fi
16804
16805 fi
16806 if test $ac_have_func = no; then
16807 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16808 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
16809 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16810 echo $ECHO_N "(cached) $ECHO_C" >&6
16811 else
16812 ac_check_lib_save_LIBS=$LIBS
16813 LIBS="-lkvm $LIBS"
16814 cat >conftest.$ac_ext <<_ACEOF
16815 /* confdefs.h. */
16816 _ACEOF
16817 cat confdefs.h >>conftest.$ac_ext
16818 cat >>conftest.$ac_ext <<_ACEOF
16819 /* end confdefs.h. */
16820
16821 /* Override any GCC internal prototype to avoid an error.
16822 Use char because int might match the return type of a GCC
16823 builtin and then its argument prototype would still apply. */
16824 #ifdef __cplusplus
16825 extern "C"
16826 #endif
16827 char kvm_open ();
16828 int
16829 main ()
16830 {
16831 return kvm_open ();
16832 ;
16833 return 0;
16834 }
16835 _ACEOF
16836 rm -f conftest.$ac_objext conftest$ac_exeext
16837 if { (ac_try="$ac_link"
16838 case "(($ac_try" in
16839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16840 *) ac_try_echo=$ac_try;;
16841 esac
16842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16843 (eval "$ac_link") 2>conftest.er1
16844 ac_status=$?
16845 grep -v '^ *+' conftest.er1 >conftest.err
16846 rm -f conftest.er1
16847 cat conftest.err >&5
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); } && {
16850 test -z "$ac_c_werror_flag" ||
16851 test ! -s conftest.err
16852 } && test -s conftest$ac_exeext &&
16853 $as_test_x conftest$ac_exeext; then
16854 ac_cv_lib_kvm_kvm_open=yes
16855 else
16856 echo "$as_me: failed program was:" >&5
16857 sed 's/^/| /' conftest.$ac_ext >&5
16858
16859 ac_cv_lib_kvm_kvm_open=no
16860 fi
16861
16862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16863 conftest$ac_exeext conftest.$ac_ext
16864 LIBS=$ac_check_lib_save_LIBS
16865 fi
16866 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
16867 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16868 if test $ac_cv_lib_kvm_kvm_open = yes; then
16869 LIBS="-lkvm $LIBS"
16870 fi
16871
16872 # Check for the 4.4BSD definition of getloadavg.
16873 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
16874 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
16875 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16876 echo $ECHO_N "(cached) $ECHO_C" >&6
16877 else
16878 ac_check_lib_save_LIBS=$LIBS
16879 LIBS="-lutil $LIBS"
16880 cat >conftest.$ac_ext <<_ACEOF
16881 /* confdefs.h. */
16882 _ACEOF
16883 cat confdefs.h >>conftest.$ac_ext
16884 cat >>conftest.$ac_ext <<_ACEOF
16885 /* end confdefs.h. */
16886
16887 /* Override any GCC internal prototype to avoid an error.
16888 Use char because int might match the return type of a GCC
16889 builtin and then its argument prototype would still apply. */
16890 #ifdef __cplusplus
16891 extern "C"
16892 #endif
16893 char getloadavg ();
16894 int
16895 main ()
16896 {
16897 return getloadavg ();
16898 ;
16899 return 0;
16900 }
16901 _ACEOF
16902 rm -f conftest.$ac_objext conftest$ac_exeext
16903 if { (ac_try="$ac_link"
16904 case "(($ac_try" in
16905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16906 *) ac_try_echo=$ac_try;;
16907 esac
16908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16909 (eval "$ac_link") 2>conftest.er1
16910 ac_status=$?
16911 grep -v '^ *+' conftest.er1 >conftest.err
16912 rm -f conftest.er1
16913 cat conftest.err >&5
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); } && {
16916 test -z "$ac_c_werror_flag" ||
16917 test ! -s conftest.err
16918 } && test -s conftest$ac_exeext &&
16919 $as_test_x conftest$ac_exeext; then
16920 ac_cv_lib_util_getloadavg=yes
16921 else
16922 echo "$as_me: failed program was:" >&5
16923 sed 's/^/| /' conftest.$ac_ext >&5
16924
16925 ac_cv_lib_util_getloadavg=no
16926 fi
16927
16928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16929 conftest$ac_exeext conftest.$ac_ext
16930 LIBS=$ac_check_lib_save_LIBS
16931 fi
16932 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
16933 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16934 if test $ac_cv_lib_util_getloadavg = yes; then
16935 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16936 fi
16937
16938 fi
16939
16940 if test $ac_have_func = no; then
16941 # There is a commonly available library for RS/6000 AIX.
16942 # Since it is not a standard part of AIX, it might be installed locally.
16943 ac_getloadavg_LIBS=$LIBS
16944 LIBS="-L/usr/local/lib $LIBS"
16945 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
16946 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
16947 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16948 echo $ECHO_N "(cached) $ECHO_C" >&6
16949 else
16950 ac_check_lib_save_LIBS=$LIBS
16951 LIBS="-lgetloadavg $LIBS"
16952 cat >conftest.$ac_ext <<_ACEOF
16953 /* confdefs.h. */
16954 _ACEOF
16955 cat confdefs.h >>conftest.$ac_ext
16956 cat >>conftest.$ac_ext <<_ACEOF
16957 /* end confdefs.h. */
16958
16959 /* Override any GCC internal prototype to avoid an error.
16960 Use char because int might match the return type of a GCC
16961 builtin and then its argument prototype would still apply. */
16962 #ifdef __cplusplus
16963 extern "C"
16964 #endif
16965 char getloadavg ();
16966 int
16967 main ()
16968 {
16969 return getloadavg ();
16970 ;
16971 return 0;
16972 }
16973 _ACEOF
16974 rm -f conftest.$ac_objext conftest$ac_exeext
16975 if { (ac_try="$ac_link"
16976 case "(($ac_try" in
16977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16978 *) ac_try_echo=$ac_try;;
16979 esac
16980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16981 (eval "$ac_link") 2>conftest.er1
16982 ac_status=$?
16983 grep -v '^ *+' conftest.er1 >conftest.err
16984 rm -f conftest.er1
16985 cat conftest.err >&5
16986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987 (exit $ac_status); } && {
16988 test -z "$ac_c_werror_flag" ||
16989 test ! -s conftest.err
16990 } && test -s conftest$ac_exeext &&
16991 $as_test_x conftest$ac_exeext; then
16992 ac_cv_lib_getloadavg_getloadavg=yes
16993 else
16994 echo "$as_me: failed program was:" >&5
16995 sed 's/^/| /' conftest.$ac_ext >&5
16996
16997 ac_cv_lib_getloadavg_getloadavg=no
16998 fi
16999
17000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17001 conftest$ac_exeext conftest.$ac_ext
17002 LIBS=$ac_check_lib_save_LIBS
17003 fi
17004 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17005 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17006 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17007 LIBS="-lgetloadavg $LIBS"
17008 else
17009 LIBS=$ac_getloadavg_LIBS
17010 fi
17011
17012 fi
17013
17014 # Make sure it is really in the library, if we think we found it,
17015 # otherwise set up the replacement function.
17016
17017 for ac_func in getloadavg
17018 do
17019 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17020 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17021 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17022 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17023 echo $ECHO_N "(cached) $ECHO_C" >&6
17024 else
17025 cat >conftest.$ac_ext <<_ACEOF
17026 /* confdefs.h. */
17027 _ACEOF
17028 cat confdefs.h >>conftest.$ac_ext
17029 cat >>conftest.$ac_ext <<_ACEOF
17030 /* end confdefs.h. */
17031 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17032 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17033 #define $ac_func innocuous_$ac_func
17034
17035 /* System header to define __stub macros and hopefully few prototypes,
17036 which can conflict with char $ac_func (); below.
17037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17038 <limits.h> exists even on freestanding compilers. */
17039
17040 #ifdef __STDC__
17041 # include <limits.h>
17042 #else
17043 # include <assert.h>
17044 #endif
17045
17046 #undef $ac_func
17047
17048 /* Override any GCC internal prototype to avoid an error.
17049 Use char because int might match the return type of a GCC
17050 builtin and then its argument prototype would still apply. */
17051 #ifdef __cplusplus
17052 extern "C"
17053 #endif
17054 char $ac_func ();
17055 /* The GNU C library defines this for functions which it implements
17056 to always fail with ENOSYS. Some functions are actually named
17057 something starting with __ and the normal name is an alias. */
17058 #if defined __stub_$ac_func || defined __stub___$ac_func
17059 choke me
17060 #endif
17061
17062 int
17063 main ()
17064 {
17065 return $ac_func ();
17066 ;
17067 return 0;
17068 }
17069 _ACEOF
17070 rm -f conftest.$ac_objext conftest$ac_exeext
17071 if { (ac_try="$ac_link"
17072 case "(($ac_try" in
17073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17074 *) ac_try_echo=$ac_try;;
17075 esac
17076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17077 (eval "$ac_link") 2>conftest.er1
17078 ac_status=$?
17079 grep -v '^ *+' conftest.er1 >conftest.err
17080 rm -f conftest.er1
17081 cat conftest.err >&5
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); } && {
17084 test -z "$ac_c_werror_flag" ||
17085 test ! -s conftest.err
17086 } && test -s conftest$ac_exeext &&
17087 $as_test_x conftest$ac_exeext; then
17088 eval "$as_ac_var=yes"
17089 else
17090 echo "$as_me: failed program was:" >&5
17091 sed 's/^/| /' conftest.$ac_ext >&5
17092
17093 eval "$as_ac_var=no"
17094 fi
17095
17096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17097 conftest$ac_exeext conftest.$ac_ext
17098 fi
17099 ac_res=`eval echo '${'$as_ac_var'}'`
17100 { echo "$as_me:$LINENO: result: $ac_res" >&5
17101 echo "${ECHO_T}$ac_res" >&6; }
17102 if test `eval echo '${'$as_ac_var'}'` = yes; then
17103 cat >>confdefs.h <<_ACEOF
17104 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17105 _ACEOF
17106
17107 else
17108 case " $LIBOBJS " in
17109 *" getloadavg.$ac_objext "* ) ;;
17110 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17111 ;;
17112 esac
17113
17114
17115 cat >>confdefs.h <<\_ACEOF
17116 #define C_GETLOADAVG 1
17117 _ACEOF
17118
17119 # Figure out what our getloadavg.c needs.
17120 ac_have_func=no
17121 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17122 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17123 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17124 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17125 echo $ECHO_N "(cached) $ECHO_C" >&6
17126 fi
17127 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17128 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17129 else
17130 # Is the header compilable?
17131 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17132 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17133 cat >conftest.$ac_ext <<_ACEOF
17134 /* confdefs.h. */
17135 _ACEOF
17136 cat confdefs.h >>conftest.$ac_ext
17137 cat >>conftest.$ac_ext <<_ACEOF
17138 /* end confdefs.h. */
17139 $ac_includes_default
17140 #include <sys/dg_sys_info.h>
17141 _ACEOF
17142 rm -f conftest.$ac_objext
17143 if { (ac_try="$ac_compile"
17144 case "(($ac_try" in
17145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17146 *) ac_try_echo=$ac_try;;
17147 esac
17148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17149 (eval "$ac_compile") 2>conftest.er1
17150 ac_status=$?
17151 grep -v '^ *+' conftest.er1 >conftest.err
17152 rm -f conftest.er1
17153 cat conftest.err >&5
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); } && {
17156 test -z "$ac_c_werror_flag" ||
17157 test ! -s conftest.err
17158 } && test -s conftest.$ac_objext; then
17159 ac_header_compiler=yes
17160 else
17161 echo "$as_me: failed program was:" >&5
17162 sed 's/^/| /' conftest.$ac_ext >&5
17163
17164 ac_header_compiler=no
17165 fi
17166
17167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17168 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17169 echo "${ECHO_T}$ac_header_compiler" >&6; }
17170
17171 # Is the header present?
17172 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17173 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17174 cat >conftest.$ac_ext <<_ACEOF
17175 /* confdefs.h. */
17176 _ACEOF
17177 cat confdefs.h >>conftest.$ac_ext
17178 cat >>conftest.$ac_ext <<_ACEOF
17179 /* end confdefs.h. */
17180 #include <sys/dg_sys_info.h>
17181 _ACEOF
17182 if { (ac_try="$ac_cpp conftest.$ac_ext"
17183 case "(($ac_try" in
17184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17185 *) ac_try_echo=$ac_try;;
17186 esac
17187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17189 ac_status=$?
17190 grep -v '^ *+' conftest.er1 >conftest.err
17191 rm -f conftest.er1
17192 cat conftest.err >&5
17193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194 (exit $ac_status); } >/dev/null && {
17195 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17196 test ! -s conftest.err
17197 }; then
17198 ac_header_preproc=yes
17199 else
17200 echo "$as_me: failed program was:" >&5
17201 sed 's/^/| /' conftest.$ac_ext >&5
17202
17203 ac_header_preproc=no
17204 fi
17205
17206 rm -f conftest.err conftest.$ac_ext
17207 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17208 echo "${ECHO_T}$ac_header_preproc" >&6; }
17209
17210 # So? What about this header?
17211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17212 yes:no: )
17213 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17214 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17215 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17216 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17217 ac_header_preproc=yes
17218 ;;
17219 no:yes:* )
17220 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17221 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17222 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17223 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17224 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17225 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17226 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17227 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17228 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17229 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17230 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17231 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17232
17233 ;;
17234 esac
17235 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17236 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17237 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17238 echo $ECHO_N "(cached) $ECHO_C" >&6
17239 else
17240 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17241 fi
17242 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17243 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17244
17245 fi
17246 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17247 ac_have_func=yes
17248
17249 cat >>confdefs.h <<\_ACEOF
17250 #define DGUX 1
17251 _ACEOF
17252
17253
17254 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17255 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17256 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17257 echo $ECHO_N "(cached) $ECHO_C" >&6
17258 else
17259 ac_check_lib_save_LIBS=$LIBS
17260 LIBS="-ldgc $LIBS"
17261 cat >conftest.$ac_ext <<_ACEOF
17262 /* confdefs.h. */
17263 _ACEOF
17264 cat confdefs.h >>conftest.$ac_ext
17265 cat >>conftest.$ac_ext <<_ACEOF
17266 /* end confdefs.h. */
17267
17268 /* Override any GCC internal prototype to avoid an error.
17269 Use char because int might match the return type of a GCC
17270 builtin and then its argument prototype would still apply. */
17271 #ifdef __cplusplus
17272 extern "C"
17273 #endif
17274 char dg_sys_info ();
17275 int
17276 main ()
17277 {
17278 return dg_sys_info ();
17279 ;
17280 return 0;
17281 }
17282 _ACEOF
17283 rm -f conftest.$ac_objext conftest$ac_exeext
17284 if { (ac_try="$ac_link"
17285 case "(($ac_try" in
17286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17287 *) ac_try_echo=$ac_try;;
17288 esac
17289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17290 (eval "$ac_link") 2>conftest.er1
17291 ac_status=$?
17292 grep -v '^ *+' conftest.er1 >conftest.err
17293 rm -f conftest.er1
17294 cat conftest.err >&5
17295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296 (exit $ac_status); } && {
17297 test -z "$ac_c_werror_flag" ||
17298 test ! -s conftest.err
17299 } && test -s conftest$ac_exeext &&
17300 $as_test_x conftest$ac_exeext; then
17301 ac_cv_lib_dgc_dg_sys_info=yes
17302 else
17303 echo "$as_me: failed program was:" >&5
17304 sed 's/^/| /' conftest.$ac_ext >&5
17305
17306 ac_cv_lib_dgc_dg_sys_info=no
17307 fi
17308
17309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17310 conftest$ac_exeext conftest.$ac_ext
17311 LIBS=$ac_check_lib_save_LIBS
17312 fi
17313 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17314 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17315 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17316 cat >>confdefs.h <<_ACEOF
17317 #define HAVE_LIBDGC 1
17318 _ACEOF
17319
17320 LIBS="-ldgc $LIBS"
17321
17322 fi
17323
17324 fi
17325
17326
17327
17328 if test "${ac_cv_header_locale_h+set}" = set; then
17329 { echo "$as_me:$LINENO: checking for locale.h" >&5
17330 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17331 if test "${ac_cv_header_locale_h+set}" = set; then
17332 echo $ECHO_N "(cached) $ECHO_C" >&6
17333 fi
17334 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17335 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17336 else
17337 # Is the header compilable?
17338 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17339 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17340 cat >conftest.$ac_ext <<_ACEOF
17341 /* confdefs.h. */
17342 _ACEOF
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h. */
17346 $ac_includes_default
17347 #include <locale.h>
17348 _ACEOF
17349 rm -f conftest.$ac_objext
17350 if { (ac_try="$ac_compile"
17351 case "(($ac_try" in
17352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17353 *) ac_try_echo=$ac_try;;
17354 esac
17355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17356 (eval "$ac_compile") 2>conftest.er1
17357 ac_status=$?
17358 grep -v '^ *+' conftest.er1 >conftest.err
17359 rm -f conftest.er1
17360 cat conftest.err >&5
17361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362 (exit $ac_status); } && {
17363 test -z "$ac_c_werror_flag" ||
17364 test ! -s conftest.err
17365 } && test -s conftest.$ac_objext; then
17366 ac_header_compiler=yes
17367 else
17368 echo "$as_me: failed program was:" >&5
17369 sed 's/^/| /' conftest.$ac_ext >&5
17370
17371 ac_header_compiler=no
17372 fi
17373
17374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17375 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17376 echo "${ECHO_T}$ac_header_compiler" >&6; }
17377
17378 # Is the header present?
17379 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17380 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17381 cat >conftest.$ac_ext <<_ACEOF
17382 /* confdefs.h. */
17383 _ACEOF
17384 cat confdefs.h >>conftest.$ac_ext
17385 cat >>conftest.$ac_ext <<_ACEOF
17386 /* end confdefs.h. */
17387 #include <locale.h>
17388 _ACEOF
17389 if { (ac_try="$ac_cpp conftest.$ac_ext"
17390 case "(($ac_try" in
17391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17392 *) ac_try_echo=$ac_try;;
17393 esac
17394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17396 ac_status=$?
17397 grep -v '^ *+' conftest.er1 >conftest.err
17398 rm -f conftest.er1
17399 cat conftest.err >&5
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); } >/dev/null && {
17402 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17403 test ! -s conftest.err
17404 }; then
17405 ac_header_preproc=yes
17406 else
17407 echo "$as_me: failed program was:" >&5
17408 sed 's/^/| /' conftest.$ac_ext >&5
17409
17410 ac_header_preproc=no
17411 fi
17412
17413 rm -f conftest.err conftest.$ac_ext
17414 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17415 echo "${ECHO_T}$ac_header_preproc" >&6; }
17416
17417 # So? What about this header?
17418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17419 yes:no: )
17420 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17421 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17422 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17423 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17424 ac_header_preproc=yes
17425 ;;
17426 no:yes:* )
17427 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17428 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17429 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17430 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17431 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17432 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17433 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17434 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17435 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17436 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17437 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17438 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17439
17440 ;;
17441 esac
17442 { echo "$as_me:$LINENO: checking for locale.h" >&5
17443 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17444 if test "${ac_cv_header_locale_h+set}" = set; then
17445 echo $ECHO_N "(cached) $ECHO_C" >&6
17446 else
17447 ac_cv_header_locale_h=$ac_header_preproc
17448 fi
17449 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17450 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17451
17452 fi
17453
17454
17455
17456 for ac_func in setlocale
17457 do
17458 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17459 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17461 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17462 echo $ECHO_N "(cached) $ECHO_C" >&6
17463 else
17464 cat >conftest.$ac_ext <<_ACEOF
17465 /* confdefs.h. */
17466 _ACEOF
17467 cat confdefs.h >>conftest.$ac_ext
17468 cat >>conftest.$ac_ext <<_ACEOF
17469 /* end confdefs.h. */
17470 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17472 #define $ac_func innocuous_$ac_func
17473
17474 /* System header to define __stub macros and hopefully few prototypes,
17475 which can conflict with char $ac_func (); below.
17476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17477 <limits.h> exists even on freestanding compilers. */
17478
17479 #ifdef __STDC__
17480 # include <limits.h>
17481 #else
17482 # include <assert.h>
17483 #endif
17484
17485 #undef $ac_func
17486
17487 /* Override any GCC internal prototype to avoid an error.
17488 Use char because int might match the return type of a GCC
17489 builtin and then its argument prototype would still apply. */
17490 #ifdef __cplusplus
17491 extern "C"
17492 #endif
17493 char $ac_func ();
17494 /* The GNU C library defines this for functions which it implements
17495 to always fail with ENOSYS. Some functions are actually named
17496 something starting with __ and the normal name is an alias. */
17497 #if defined __stub_$ac_func || defined __stub___$ac_func
17498 choke me
17499 #endif
17500
17501 int
17502 main ()
17503 {
17504 return $ac_func ();
17505 ;
17506 return 0;
17507 }
17508 _ACEOF
17509 rm -f conftest.$ac_objext conftest$ac_exeext
17510 if { (ac_try="$ac_link"
17511 case "(($ac_try" in
17512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17513 *) ac_try_echo=$ac_try;;
17514 esac
17515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17516 (eval "$ac_link") 2>conftest.er1
17517 ac_status=$?
17518 grep -v '^ *+' conftest.er1 >conftest.err
17519 rm -f conftest.er1
17520 cat conftest.err >&5
17521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522 (exit $ac_status); } && {
17523 test -z "$ac_c_werror_flag" ||
17524 test ! -s conftest.err
17525 } && test -s conftest$ac_exeext &&
17526 $as_test_x conftest$ac_exeext; then
17527 eval "$as_ac_var=yes"
17528 else
17529 echo "$as_me: failed program was:" >&5
17530 sed 's/^/| /' conftest.$ac_ext >&5
17531
17532 eval "$as_ac_var=no"
17533 fi
17534
17535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17536 conftest$ac_exeext conftest.$ac_ext
17537 fi
17538 ac_res=`eval echo '${'$as_ac_var'}'`
17539 { echo "$as_me:$LINENO: result: $ac_res" >&5
17540 echo "${ECHO_T}$ac_res" >&6; }
17541 if test `eval echo '${'$as_ac_var'}'` = yes; then
17542 cat >>confdefs.h <<_ACEOF
17543 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17544 _ACEOF
17545
17546 fi
17547 done
17548
17549
17550 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17551 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17552 # Irix 4.0.5F has the header but not the library.
17553 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17554 ac_have_func=yes
17555
17556 cat >>confdefs.h <<\_ACEOF
17557 #define SVR4 1
17558 _ACEOF
17559
17560 fi
17561
17562 if test $ac_have_func = no; then
17563 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17564 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17565 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17566 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17567 echo $ECHO_N "(cached) $ECHO_C" >&6
17568 fi
17569 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17570 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17571 else
17572 # Is the header compilable?
17573 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17574 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17575 cat >conftest.$ac_ext <<_ACEOF
17576 /* confdefs.h. */
17577 _ACEOF
17578 cat confdefs.h >>conftest.$ac_ext
17579 cat >>conftest.$ac_ext <<_ACEOF
17580 /* end confdefs.h. */
17581 $ac_includes_default
17582 #include <inq_stats/cpustats.h>
17583 _ACEOF
17584 rm -f conftest.$ac_objext
17585 if { (ac_try="$ac_compile"
17586 case "(($ac_try" in
17587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17588 *) ac_try_echo=$ac_try;;
17589 esac
17590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17591 (eval "$ac_compile") 2>conftest.er1
17592 ac_status=$?
17593 grep -v '^ *+' conftest.er1 >conftest.err
17594 rm -f conftest.er1
17595 cat conftest.err >&5
17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); } && {
17598 test -z "$ac_c_werror_flag" ||
17599 test ! -s conftest.err
17600 } && test -s conftest.$ac_objext; then
17601 ac_header_compiler=yes
17602 else
17603 echo "$as_me: failed program was:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17605
17606 ac_header_compiler=no
17607 fi
17608
17609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17610 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17611 echo "${ECHO_T}$ac_header_compiler" >&6; }
17612
17613 # Is the header present?
17614 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17615 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17616 cat >conftest.$ac_ext <<_ACEOF
17617 /* confdefs.h. */
17618 _ACEOF
17619 cat confdefs.h >>conftest.$ac_ext
17620 cat >>conftest.$ac_ext <<_ACEOF
17621 /* end confdefs.h. */
17622 #include <inq_stats/cpustats.h>
17623 _ACEOF
17624 if { (ac_try="$ac_cpp conftest.$ac_ext"
17625 case "(($ac_try" in
17626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17627 *) ac_try_echo=$ac_try;;
17628 esac
17629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17631 ac_status=$?
17632 grep -v '^ *+' conftest.er1 >conftest.err
17633 rm -f conftest.er1
17634 cat conftest.err >&5
17635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636 (exit $ac_status); } >/dev/null && {
17637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17638 test ! -s conftest.err
17639 }; then
17640 ac_header_preproc=yes
17641 else
17642 echo "$as_me: failed program was:" >&5
17643 sed 's/^/| /' conftest.$ac_ext >&5
17644
17645 ac_header_preproc=no
17646 fi
17647
17648 rm -f conftest.err conftest.$ac_ext
17649 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17650 echo "${ECHO_T}$ac_header_preproc" >&6; }
17651
17652 # So? What about this header?
17653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17654 yes:no: )
17655 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17656 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17657 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17658 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17659 ac_header_preproc=yes
17660 ;;
17661 no:yes:* )
17662 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17663 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17664 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17665 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17666 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17667 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17668 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17669 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17670 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17671 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17672 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17673 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17674
17675 ;;
17676 esac
17677 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17678 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17679 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17680 echo $ECHO_N "(cached) $ECHO_C" >&6
17681 else
17682 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17683 fi
17684 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17685 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17686
17687 fi
17688 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17689 ac_have_func=yes
17690
17691 cat >>confdefs.h <<\_ACEOF
17692 #define UMAX 1
17693 _ACEOF
17694
17695
17696 cat >>confdefs.h <<\_ACEOF
17697 #define UMAX4_3 1
17698 _ACEOF
17699
17700 fi
17701
17702
17703 fi
17704
17705 if test $ac_have_func = no; then
17706 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17707 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17708 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17709 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17710 echo $ECHO_N "(cached) $ECHO_C" >&6
17711 fi
17712 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17713 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17714 else
17715 # Is the header compilable?
17716 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17717 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17718 cat >conftest.$ac_ext <<_ACEOF
17719 /* confdefs.h. */
17720 _ACEOF
17721 cat confdefs.h >>conftest.$ac_ext
17722 cat >>conftest.$ac_ext <<_ACEOF
17723 /* end confdefs.h. */
17724 $ac_includes_default
17725 #include <sys/cpustats.h>
17726 _ACEOF
17727 rm -f conftest.$ac_objext
17728 if { (ac_try="$ac_compile"
17729 case "(($ac_try" in
17730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17731 *) ac_try_echo=$ac_try;;
17732 esac
17733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17734 (eval "$ac_compile") 2>conftest.er1
17735 ac_status=$?
17736 grep -v '^ *+' conftest.er1 >conftest.err
17737 rm -f conftest.er1
17738 cat conftest.err >&5
17739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740 (exit $ac_status); } && {
17741 test -z "$ac_c_werror_flag" ||
17742 test ! -s conftest.err
17743 } && test -s conftest.$ac_objext; then
17744 ac_header_compiler=yes
17745 else
17746 echo "$as_me: failed program was:" >&5
17747 sed 's/^/| /' conftest.$ac_ext >&5
17748
17749 ac_header_compiler=no
17750 fi
17751
17752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17753 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17754 echo "${ECHO_T}$ac_header_compiler" >&6; }
17755
17756 # Is the header present?
17757 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17758 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
17759 cat >conftest.$ac_ext <<_ACEOF
17760 /* confdefs.h. */
17761 _ACEOF
17762 cat confdefs.h >>conftest.$ac_ext
17763 cat >>conftest.$ac_ext <<_ACEOF
17764 /* end confdefs.h. */
17765 #include <sys/cpustats.h>
17766 _ACEOF
17767 if { (ac_try="$ac_cpp conftest.$ac_ext"
17768 case "(($ac_try" in
17769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17770 *) ac_try_echo=$ac_try;;
17771 esac
17772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17774 ac_status=$?
17775 grep -v '^ *+' conftest.er1 >conftest.err
17776 rm -f conftest.er1
17777 cat conftest.err >&5
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); } >/dev/null && {
17780 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17781 test ! -s conftest.err
17782 }; then
17783 ac_header_preproc=yes
17784 else
17785 echo "$as_me: failed program was:" >&5
17786 sed 's/^/| /' conftest.$ac_ext >&5
17787
17788 ac_header_preproc=no
17789 fi
17790
17791 rm -f conftest.err conftest.$ac_ext
17792 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17793 echo "${ECHO_T}$ac_header_preproc" >&6; }
17794
17795 # So? What about this header?
17796 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17797 yes:no: )
17798 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17799 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17800 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17801 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17802 ac_header_preproc=yes
17803 ;;
17804 no:yes:* )
17805 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17806 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17807 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17808 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17809 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17810 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17811 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17812 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17813 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17814 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17815 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17816 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17817
17818 ;;
17819 esac
17820 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17821 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17822 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17823 echo $ECHO_N "(cached) $ECHO_C" >&6
17824 else
17825 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17826 fi
17827 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17828 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17829
17830 fi
17831 if test $ac_cv_header_sys_cpustats_h = yes; then
17832 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17833 #define UMAX 1
17834 _ACEOF
17835
17836 fi
17837
17838
17839 fi
17840
17841 if test $ac_have_func = no; then
17842
17843 for ac_header in mach/mach.h
17844 do
17845 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17850 echo $ECHO_N "(cached) $ECHO_C" >&6
17851 fi
17852 ac_res=`eval echo '${'$as_ac_Header'}'`
17853 { echo "$as_me:$LINENO: result: $ac_res" >&5
17854 echo "${ECHO_T}$ac_res" >&6; }
17855 else
17856 # Is the header compilable?
17857 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17858 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17859 cat >conftest.$ac_ext <<_ACEOF
17860 /* confdefs.h. */
17861 _ACEOF
17862 cat confdefs.h >>conftest.$ac_ext
17863 cat >>conftest.$ac_ext <<_ACEOF
17864 /* end confdefs.h. */
17865 $ac_includes_default
17866 #include <$ac_header>
17867 _ACEOF
17868 rm -f conftest.$ac_objext
17869 if { (ac_try="$ac_compile"
17870 case "(($ac_try" in
17871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17872 *) ac_try_echo=$ac_try;;
17873 esac
17874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17875 (eval "$ac_compile") 2>conftest.er1
17876 ac_status=$?
17877 grep -v '^ *+' conftest.er1 >conftest.err
17878 rm -f conftest.er1
17879 cat conftest.err >&5
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); } && {
17882 test -z "$ac_c_werror_flag" ||
17883 test ! -s conftest.err
17884 } && test -s conftest.$ac_objext; then
17885 ac_header_compiler=yes
17886 else
17887 echo "$as_me: failed program was:" >&5
17888 sed 's/^/| /' conftest.$ac_ext >&5
17889
17890 ac_header_compiler=no
17891 fi
17892
17893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17894 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17895 echo "${ECHO_T}$ac_header_compiler" >&6; }
17896
17897 # Is the header present?
17898 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17899 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17900 cat >conftest.$ac_ext <<_ACEOF
17901 /* confdefs.h. */
17902 _ACEOF
17903 cat confdefs.h >>conftest.$ac_ext
17904 cat >>conftest.$ac_ext <<_ACEOF
17905 /* end confdefs.h. */
17906 #include <$ac_header>
17907 _ACEOF
17908 if { (ac_try="$ac_cpp conftest.$ac_ext"
17909 case "(($ac_try" in
17910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17911 *) ac_try_echo=$ac_try;;
17912 esac
17913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17915 ac_status=$?
17916 grep -v '^ *+' conftest.er1 >conftest.err
17917 rm -f conftest.er1
17918 cat conftest.err >&5
17919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920 (exit $ac_status); } >/dev/null && {
17921 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17922 test ! -s conftest.err
17923 }; then
17924 ac_header_preproc=yes
17925 else
17926 echo "$as_me: failed program was:" >&5
17927 sed 's/^/| /' conftest.$ac_ext >&5
17928
17929 ac_header_preproc=no
17930 fi
17931
17932 rm -f conftest.err conftest.$ac_ext
17933 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17934 echo "${ECHO_T}$ac_header_preproc" >&6; }
17935
17936 # So? What about this header?
17937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17938 yes:no: )
17939 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17940 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17942 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17943 ac_header_preproc=yes
17944 ;;
17945 no:yes:* )
17946 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17947 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17948 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17949 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17950 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17951 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17952 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17953 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17956 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17957 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17958
17959 ;;
17960 esac
17961 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17964 echo $ECHO_N "(cached) $ECHO_C" >&6
17965 else
17966 eval "$as_ac_Header=\$ac_header_preproc"
17967 fi
17968 ac_res=`eval echo '${'$as_ac_Header'}'`
17969 { echo "$as_me:$LINENO: result: $ac_res" >&5
17970 echo "${ECHO_T}$ac_res" >&6; }
17971
17972 fi
17973 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17974 cat >>confdefs.h <<_ACEOF
17975 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17976 _ACEOF
17977
17978 fi
17979
17980 done
17981
17982 fi
17983
17984
17985 for ac_header in nlist.h
17986 do
17987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17989 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17992 echo $ECHO_N "(cached) $ECHO_C" >&6
17993 fi
17994 ac_res=`eval echo '${'$as_ac_Header'}'`
17995 { echo "$as_me:$LINENO: result: $ac_res" >&5
17996 echo "${ECHO_T}$ac_res" >&6; }
17997 else
17998 # Is the header compilable?
17999 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18000 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18001 cat >conftest.$ac_ext <<_ACEOF
18002 /* confdefs.h. */
18003 _ACEOF
18004 cat confdefs.h >>conftest.$ac_ext
18005 cat >>conftest.$ac_ext <<_ACEOF
18006 /* end confdefs.h. */
18007 $ac_includes_default
18008 #include <$ac_header>
18009 _ACEOF
18010 rm -f conftest.$ac_objext
18011 if { (ac_try="$ac_compile"
18012 case "(($ac_try" in
18013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18014 *) ac_try_echo=$ac_try;;
18015 esac
18016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18017 (eval "$ac_compile") 2>conftest.er1
18018 ac_status=$?
18019 grep -v '^ *+' conftest.er1 >conftest.err
18020 rm -f conftest.er1
18021 cat conftest.err >&5
18022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); } && {
18024 test -z "$ac_c_werror_flag" ||
18025 test ! -s conftest.err
18026 } && test -s conftest.$ac_objext; then
18027 ac_header_compiler=yes
18028 else
18029 echo "$as_me: failed program was:" >&5
18030 sed 's/^/| /' conftest.$ac_ext >&5
18031
18032 ac_header_compiler=no
18033 fi
18034
18035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18036 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18037 echo "${ECHO_T}$ac_header_compiler" >&6; }
18038
18039 # Is the header present?
18040 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18041 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18042 cat >conftest.$ac_ext <<_ACEOF
18043 /* confdefs.h. */
18044 _ACEOF
18045 cat confdefs.h >>conftest.$ac_ext
18046 cat >>conftest.$ac_ext <<_ACEOF
18047 /* end confdefs.h. */
18048 #include <$ac_header>
18049 _ACEOF
18050 if { (ac_try="$ac_cpp conftest.$ac_ext"
18051 case "(($ac_try" in
18052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053 *) ac_try_echo=$ac_try;;
18054 esac
18055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18057 ac_status=$?
18058 grep -v '^ *+' conftest.er1 >conftest.err
18059 rm -f conftest.er1
18060 cat conftest.err >&5
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); } >/dev/null && {
18063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18064 test ! -s conftest.err
18065 }; then
18066 ac_header_preproc=yes
18067 else
18068 echo "$as_me: failed program was:" >&5
18069 sed 's/^/| /' conftest.$ac_ext >&5
18070
18071 ac_header_preproc=no
18072 fi
18073
18074 rm -f conftest.err conftest.$ac_ext
18075 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18076 echo "${ECHO_T}$ac_header_preproc" >&6; }
18077
18078 # So? What about this header?
18079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18080 yes:no: )
18081 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18082 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18084 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18085 ac_header_preproc=yes
18086 ;;
18087 no:yes:* )
18088 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18089 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18090 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18091 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18092 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18093 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18094 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18095 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18097 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18098 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18099 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18100
18101 ;;
18102 esac
18103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18106 echo $ECHO_N "(cached) $ECHO_C" >&6
18107 else
18108 eval "$as_ac_Header=\$ac_header_preproc"
18109 fi
18110 ac_res=`eval echo '${'$as_ac_Header'}'`
18111 { echo "$as_me:$LINENO: result: $ac_res" >&5
18112 echo "${ECHO_T}$ac_res" >&6; }
18113
18114 fi
18115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18116 cat >>confdefs.h <<_ACEOF
18117 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18118 _ACEOF
18119 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18120 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18121 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18122 echo $ECHO_N "(cached) $ECHO_C" >&6
18123 else
18124 cat >conftest.$ac_ext <<_ACEOF
18125 /* confdefs.h. */
18126 _ACEOF
18127 cat confdefs.h >>conftest.$ac_ext
18128 cat >>conftest.$ac_ext <<_ACEOF
18129 /* end confdefs.h. */
18130 #include <nlist.h>
18131
18132 int
18133 main ()
18134 {
18135 static struct nlist ac_aggr;
18136 if (ac_aggr.n_un.n_name)
18137 return 0;
18138 ;
18139 return 0;
18140 }
18141 _ACEOF
18142 rm -f conftest.$ac_objext
18143 if { (ac_try="$ac_compile"
18144 case "(($ac_try" in
18145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18146 *) ac_try_echo=$ac_try;;
18147 esac
18148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18149 (eval "$ac_compile") 2>conftest.er1
18150 ac_status=$?
18151 grep -v '^ *+' conftest.er1 >conftest.err
18152 rm -f conftest.er1
18153 cat conftest.err >&5
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); } && {
18156 test -z "$ac_c_werror_flag" ||
18157 test ! -s conftest.err
18158 } && test -s conftest.$ac_objext; then
18159 ac_cv_member_struct_nlist_n_un_n_name=yes
18160 else
18161 echo "$as_me: failed program was:" >&5
18162 sed 's/^/| /' conftest.$ac_ext >&5
18163
18164 cat >conftest.$ac_ext <<_ACEOF
18165 /* confdefs.h. */
18166 _ACEOF
18167 cat confdefs.h >>conftest.$ac_ext
18168 cat >>conftest.$ac_ext <<_ACEOF
18169 /* end confdefs.h. */
18170 #include <nlist.h>
18171
18172 int
18173 main ()
18174 {
18175 static struct nlist ac_aggr;
18176 if (sizeof ac_aggr.n_un.n_name)
18177 return 0;
18178 ;
18179 return 0;
18180 }
18181 _ACEOF
18182 rm -f conftest.$ac_objext
18183 if { (ac_try="$ac_compile"
18184 case "(($ac_try" in
18185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18186 *) ac_try_echo=$ac_try;;
18187 esac
18188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18189 (eval "$ac_compile") 2>conftest.er1
18190 ac_status=$?
18191 grep -v '^ *+' conftest.er1 >conftest.err
18192 rm -f conftest.er1
18193 cat conftest.err >&5
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); } && {
18196 test -z "$ac_c_werror_flag" ||
18197 test ! -s conftest.err
18198 } && test -s conftest.$ac_objext; then
18199 ac_cv_member_struct_nlist_n_un_n_name=yes
18200 else
18201 echo "$as_me: failed program was:" >&5
18202 sed 's/^/| /' conftest.$ac_ext >&5
18203
18204 ac_cv_member_struct_nlist_n_un_n_name=no
18205 fi
18206
18207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18208 fi
18209
18210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18211 fi
18212 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18213 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18214 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18215
18216 cat >>confdefs.h <<_ACEOF
18217 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18218 _ACEOF
18219
18220
18221 cat >>confdefs.h <<\_ACEOF
18222 #define NLIST_NAME_UNION 1
18223 _ACEOF
18224
18225 fi
18226
18227
18228 fi
18229
18230 done
18231
18232 fi
18233 done
18234
18235
18236 # Some definitions of getloadavg require that the program be installed setgid.
18237 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18238 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18239 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18240 echo $ECHO_N "(cached) $ECHO_C" >&6
18241 else
18242 cat >conftest.$ac_ext <<_ACEOF
18243 /* confdefs.h. */
18244 _ACEOF
18245 cat confdefs.h >>conftest.$ac_ext
18246 cat >>conftest.$ac_ext <<_ACEOF
18247 /* end confdefs.h. */
18248 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18249 #ifdef LDAV_PRIVILEGED
18250 Yowza Am I SETGID yet
18251 #endif
18252 _ACEOF
18253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18254 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18255 ac_cv_func_getloadavg_setgid=yes
18256 else
18257 ac_cv_func_getloadavg_setgid=no
18258 fi
18259 rm -f conftest*
18260
18261 fi
18262 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18263 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18264 if test $ac_cv_func_getloadavg_setgid = yes; then
18265 NEED_SETGID=true
18266
18267 cat >>confdefs.h <<\_ACEOF
18268 #define GETLOADAVG_PRIVILEGED 1
18269 _ACEOF
18270
18271 else
18272 NEED_SETGID=false
18273 fi
18274
18275 if test $ac_cv_func_getloadavg_setgid = yes; then
18276 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18277 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18278 if test "${ac_cv_group_kmem+set}" = set; then
18279 echo $ECHO_N "(cached) $ECHO_C" >&6
18280 else
18281 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18282 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18283 # If we got an error (system does not support symlinks), try without -L.
18284 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18285 ac_cv_group_kmem=`echo $ac_ls_output \
18286 | sed -ne 's/[ ][ ]*/ /g;
18287 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18288 / /s/.* //;p;'`
18289
18290 fi
18291 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18292 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18293 KMEM_GROUP=$ac_cv_group_kmem
18294 fi
18295 if test "x$ac_save_LIBS" = x; then
18296 GETLOADAVG_LIBS=$LIBS
18297 else
18298 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18299 fi
18300 LIBS=$ac_save_LIBS
18301
18302
18303
18304 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18305 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18306 if test "${ac_cv_sys_largefile_source+set}" = set; then
18307 echo $ECHO_N "(cached) $ECHO_C" >&6
18308 else
18309 while :; do
18310 cat >conftest.$ac_ext <<_ACEOF
18311 /* confdefs.h. */
18312 _ACEOF
18313 cat confdefs.h >>conftest.$ac_ext
18314 cat >>conftest.$ac_ext <<_ACEOF
18315 /* end confdefs.h. */
18316 #include <sys/types.h> /* for off_t */
18317 #include <stdio.h>
18318 int
18319 main ()
18320 {
18321 int (*fp) (FILE *, off_t, int) = fseeko;
18322 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18323 ;
18324 return 0;
18325 }
18326 _ACEOF
18327 rm -f conftest.$ac_objext conftest$ac_exeext
18328 if { (ac_try="$ac_link"
18329 case "(($ac_try" in
18330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18331 *) ac_try_echo=$ac_try;;
18332 esac
18333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18334 (eval "$ac_link") 2>conftest.er1
18335 ac_status=$?
18336 grep -v '^ *+' conftest.er1 >conftest.err
18337 rm -f conftest.er1
18338 cat conftest.err >&5
18339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340 (exit $ac_status); } && {
18341 test -z "$ac_c_werror_flag" ||
18342 test ! -s conftest.err
18343 } && test -s conftest$ac_exeext &&
18344 $as_test_x conftest$ac_exeext; then
18345 ac_cv_sys_largefile_source=no; break
18346 else
18347 echo "$as_me: failed program was:" >&5
18348 sed 's/^/| /' conftest.$ac_ext >&5
18349
18350
18351 fi
18352
18353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18354 conftest$ac_exeext conftest.$ac_ext
18355 cat >conftest.$ac_ext <<_ACEOF
18356 /* confdefs.h. */
18357 _ACEOF
18358 cat confdefs.h >>conftest.$ac_ext
18359 cat >>conftest.$ac_ext <<_ACEOF
18360 /* end confdefs.h. */
18361 #define _LARGEFILE_SOURCE 1
18362 #include <sys/types.h> /* for off_t */
18363 #include <stdio.h>
18364 int
18365 main ()
18366 {
18367 int (*fp) (FILE *, off_t, int) = fseeko;
18368 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18369 ;
18370 return 0;
18371 }
18372 _ACEOF
18373 rm -f conftest.$ac_objext conftest$ac_exeext
18374 if { (ac_try="$ac_link"
18375 case "(($ac_try" in
18376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18377 *) ac_try_echo=$ac_try;;
18378 esac
18379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18380 (eval "$ac_link") 2>conftest.er1
18381 ac_status=$?
18382 grep -v '^ *+' conftest.er1 >conftest.err
18383 rm -f conftest.er1
18384 cat conftest.err >&5
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); } && {
18387 test -z "$ac_c_werror_flag" ||
18388 test ! -s conftest.err
18389 } && test -s conftest$ac_exeext &&
18390 $as_test_x conftest$ac_exeext; then
18391 ac_cv_sys_largefile_source=1; break
18392 else
18393 echo "$as_me: failed program was:" >&5
18394 sed 's/^/| /' conftest.$ac_ext >&5
18395
18396
18397 fi
18398
18399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18400 conftest$ac_exeext conftest.$ac_ext
18401 ac_cv_sys_largefile_source=unknown
18402 break
18403 done
18404 fi
18405 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18406 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18407 case $ac_cv_sys_largefile_source in #(
18408 no | unknown) ;;
18409 *)
18410 cat >>confdefs.h <<_ACEOF
18411 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18412 _ACEOF
18413 ;;
18414 esac
18415 rm -f conftest*
18416
18417 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18418 # in glibc 2.1.3, but that breaks too many other things.
18419 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18420 if test $ac_cv_sys_largefile_source != unknown; then
18421
18422 cat >>confdefs.h <<\_ACEOF
18423 #define HAVE_FSEEKO 1
18424 _ACEOF
18425
18426 fi
18427
18428
18429 # Configure getopt.
18430 # getopt.m4 serial 10
18431
18432 # The getopt module assume you want GNU getopt, with getopt_long etc,
18433 # rather than vanilla POSIX getopt. This means your your code should
18434 # always include <getopt.h> for the getopt prototypes.
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446 # Prerequisites of lib/getopt*.
18447
18448
18449
18450
18451 GETOPT_H=
18452
18453 for ac_header in getopt.h
18454 do
18455 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18460 echo $ECHO_N "(cached) $ECHO_C" >&6
18461 fi
18462 ac_res=`eval echo '${'$as_ac_Header'}'`
18463 { echo "$as_me:$LINENO: result: $ac_res" >&5
18464 echo "${ECHO_T}$ac_res" >&6; }
18465 else
18466 # Is the header compilable?
18467 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18468 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18469 cat >conftest.$ac_ext <<_ACEOF
18470 /* confdefs.h. */
18471 _ACEOF
18472 cat confdefs.h >>conftest.$ac_ext
18473 cat >>conftest.$ac_ext <<_ACEOF
18474 /* end confdefs.h. */
18475 $ac_includes_default
18476 #include <$ac_header>
18477 _ACEOF
18478 rm -f conftest.$ac_objext
18479 if { (ac_try="$ac_compile"
18480 case "(($ac_try" in
18481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18482 *) ac_try_echo=$ac_try;;
18483 esac
18484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18485 (eval "$ac_compile") 2>conftest.er1
18486 ac_status=$?
18487 grep -v '^ *+' conftest.er1 >conftest.err
18488 rm -f conftest.er1
18489 cat conftest.err >&5
18490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491 (exit $ac_status); } && {
18492 test -z "$ac_c_werror_flag" ||
18493 test ! -s conftest.err
18494 } && test -s conftest.$ac_objext; then
18495 ac_header_compiler=yes
18496 else
18497 echo "$as_me: failed program was:" >&5
18498 sed 's/^/| /' conftest.$ac_ext >&5
18499
18500 ac_header_compiler=no
18501 fi
18502
18503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18504 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18505 echo "${ECHO_T}$ac_header_compiler" >&6; }
18506
18507 # Is the header present?
18508 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18510 cat >conftest.$ac_ext <<_ACEOF
18511 /* confdefs.h. */
18512 _ACEOF
18513 cat confdefs.h >>conftest.$ac_ext
18514 cat >>conftest.$ac_ext <<_ACEOF
18515 /* end confdefs.h. */
18516 #include <$ac_header>
18517 _ACEOF
18518 if { (ac_try="$ac_cpp conftest.$ac_ext"
18519 case "(($ac_try" in
18520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18521 *) ac_try_echo=$ac_try;;
18522 esac
18523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18525 ac_status=$?
18526 grep -v '^ *+' conftest.er1 >conftest.err
18527 rm -f conftest.er1
18528 cat conftest.err >&5
18529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530 (exit $ac_status); } >/dev/null && {
18531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18532 test ! -s conftest.err
18533 }; then
18534 ac_header_preproc=yes
18535 else
18536 echo "$as_me: failed program was:" >&5
18537 sed 's/^/| /' conftest.$ac_ext >&5
18538
18539 ac_header_preproc=no
18540 fi
18541
18542 rm -f conftest.err conftest.$ac_ext
18543 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18544 echo "${ECHO_T}$ac_header_preproc" >&6; }
18545
18546 # So? What about this header?
18547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18548 yes:no: )
18549 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18550 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18552 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18553 ac_header_preproc=yes
18554 ;;
18555 no:yes:* )
18556 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18557 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18558 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18559 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18560 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18561 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18562 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18563 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18565 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18566 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18567 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18568
18569 ;;
18570 esac
18571 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18574 echo $ECHO_N "(cached) $ECHO_C" >&6
18575 else
18576 eval "$as_ac_Header=\$ac_header_preproc"
18577 fi
18578 ac_res=`eval echo '${'$as_ac_Header'}'`
18579 { echo "$as_me:$LINENO: result: $ac_res" >&5
18580 echo "${ECHO_T}$ac_res" >&6; }
18581
18582 fi
18583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18584 cat >>confdefs.h <<_ACEOF
18585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18586 _ACEOF
18587
18588 else
18589 GETOPT_H=getopt.h
18590 fi
18591
18592 done
18593
18594 if test -z "$GETOPT_H"; then
18595
18596 for ac_func in getopt_long_only
18597 do
18598 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18599 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18601 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18602 echo $ECHO_N "(cached) $ECHO_C" >&6
18603 else
18604 cat >conftest.$ac_ext <<_ACEOF
18605 /* confdefs.h. */
18606 _ACEOF
18607 cat confdefs.h >>conftest.$ac_ext
18608 cat >>conftest.$ac_ext <<_ACEOF
18609 /* end confdefs.h. */
18610 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18612 #define $ac_func innocuous_$ac_func
18613
18614 /* System header to define __stub macros and hopefully few prototypes,
18615 which can conflict with char $ac_func (); below.
18616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18617 <limits.h> exists even on freestanding compilers. */
18618
18619 #ifdef __STDC__
18620 # include <limits.h>
18621 #else
18622 # include <assert.h>
18623 #endif
18624
18625 #undef $ac_func
18626
18627 /* Override any GCC internal prototype to avoid an error.
18628 Use char because int might match the return type of a GCC
18629 builtin and then its argument prototype would still apply. */
18630 #ifdef __cplusplus
18631 extern "C"
18632 #endif
18633 char $ac_func ();
18634 /* The GNU C library defines this for functions which it implements
18635 to always fail with ENOSYS. Some functions are actually named
18636 something starting with __ and the normal name is an alias. */
18637 #if defined __stub_$ac_func || defined __stub___$ac_func
18638 choke me
18639 #endif
18640
18641 int
18642 main ()
18643 {
18644 return $ac_func ();
18645 ;
18646 return 0;
18647 }
18648 _ACEOF
18649 rm -f conftest.$ac_objext conftest$ac_exeext
18650 if { (ac_try="$ac_link"
18651 case "(($ac_try" in
18652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18653 *) ac_try_echo=$ac_try;;
18654 esac
18655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18656 (eval "$ac_link") 2>conftest.er1
18657 ac_status=$?
18658 grep -v '^ *+' conftest.er1 >conftest.err
18659 rm -f conftest.er1
18660 cat conftest.err >&5
18661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662 (exit $ac_status); } && {
18663 test -z "$ac_c_werror_flag" ||
18664 test ! -s conftest.err
18665 } && test -s conftest$ac_exeext &&
18666 $as_test_x conftest$ac_exeext; then
18667 eval "$as_ac_var=yes"
18668 else
18669 echo "$as_me: failed program was:" >&5
18670 sed 's/^/| /' conftest.$ac_ext >&5
18671
18672 eval "$as_ac_var=no"
18673 fi
18674
18675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18676 conftest$ac_exeext conftest.$ac_ext
18677 fi
18678 ac_res=`eval echo '${'$as_ac_var'}'`
18679 { echo "$as_me:$LINENO: result: $ac_res" >&5
18680 echo "${ECHO_T}$ac_res" >&6; }
18681 if test `eval echo '${'$as_ac_var'}'` = yes; then
18682 cat >>confdefs.h <<_ACEOF
18683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18684 _ACEOF
18685
18686 else
18687 GETOPT_H=getopt.h
18688 fi
18689 done
18690
18691 fi
18692
18693 if test -z "$GETOPT_H"; then
18694 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18695 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18696 if test "${ac_cv_have_decl_optreset+set}" = set; then
18697 echo $ECHO_N "(cached) $ECHO_C" >&6
18698 else
18699 cat >conftest.$ac_ext <<_ACEOF
18700 /* confdefs.h. */
18701 _ACEOF
18702 cat confdefs.h >>conftest.$ac_ext
18703 cat >>conftest.$ac_ext <<_ACEOF
18704 /* end confdefs.h. */
18705 #include <getopt.h>
18706
18707 int
18708 main ()
18709 {
18710 #ifndef optreset
18711 (void) optreset;
18712 #endif
18713
18714 ;
18715 return 0;
18716 }
18717 _ACEOF
18718 rm -f conftest.$ac_objext
18719 if { (ac_try="$ac_compile"
18720 case "(($ac_try" in
18721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18722 *) ac_try_echo=$ac_try;;
18723 esac
18724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18725 (eval "$ac_compile") 2>conftest.er1
18726 ac_status=$?
18727 grep -v '^ *+' conftest.er1 >conftest.err
18728 rm -f conftest.er1
18729 cat conftest.err >&5
18730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 (exit $ac_status); } && {
18732 test -z "$ac_c_werror_flag" ||
18733 test ! -s conftest.err
18734 } && test -s conftest.$ac_objext; then
18735 ac_cv_have_decl_optreset=yes
18736 else
18737 echo "$as_me: failed program was:" >&5
18738 sed 's/^/| /' conftest.$ac_ext >&5
18739
18740 ac_cv_have_decl_optreset=no
18741 fi
18742
18743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18744 fi
18745 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18746 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18747 if test $ac_cv_have_decl_optreset = yes; then
18748 GETOPT_H=getopt.h
18749 fi
18750
18751 fi
18752
18753 if test -z "$GETOPT_H"; then
18754 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18755 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
18756 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18757 echo $ECHO_N "(cached) $ECHO_C" >&6
18758 else
18759 if test "$cross_compiling" = yes; then
18760 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18761 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
18762 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18763 echo $ECHO_N "(cached) $ECHO_C" >&6
18764 else
18765 cat >conftest.$ac_ext <<_ACEOF
18766 /* confdefs.h. */
18767 _ACEOF
18768 cat confdefs.h >>conftest.$ac_ext
18769 cat >>conftest.$ac_ext <<_ACEOF
18770 /* end confdefs.h. */
18771 #include <getopt.h>
18772
18773 int
18774 main ()
18775 {
18776 #ifndef getopt_clip
18777 (void) getopt_clip;
18778 #endif
18779
18780 ;
18781 return 0;
18782 }
18783 _ACEOF
18784 rm -f conftest.$ac_objext
18785 if { (ac_try="$ac_compile"
18786 case "(($ac_try" in
18787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18788 *) ac_try_echo=$ac_try;;
18789 esac
18790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18791 (eval "$ac_compile") 2>conftest.er1
18792 ac_status=$?
18793 grep -v '^ *+' conftest.er1 >conftest.err
18794 rm -f conftest.er1
18795 cat conftest.err >&5
18796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797 (exit $ac_status); } && {
18798 test -z "$ac_c_werror_flag" ||
18799 test ! -s conftest.err
18800 } && test -s conftest.$ac_objext; then
18801 ac_cv_have_decl_getopt_clip=yes
18802 else
18803 echo "$as_me: failed program was:" >&5
18804 sed 's/^/| /' conftest.$ac_ext >&5
18805
18806 ac_cv_have_decl_getopt_clip=no
18807 fi
18808
18809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18810 fi
18811 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
18812 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18813 if test $ac_cv_have_decl_getopt_clip = yes; then
18814 gl_cv_func_gnu_getopt=no
18815 else
18816 gl_cv_func_gnu_getopt=yes
18817 fi
18818
18819 else
18820 cat >conftest.$ac_ext <<_ACEOF
18821 /* confdefs.h. */
18822 _ACEOF
18823 cat confdefs.h >>conftest.$ac_ext
18824 cat >>conftest.$ac_ext <<_ACEOF
18825 /* end confdefs.h. */
18826 #include <getopt.h>
18827 int
18828 main ()
18829 {
18830
18831 char *myargv[3];
18832 myargv[0] = "conftest";
18833 myargv[1] = "-+";
18834 myargv[2] = 0;
18835 return getopt (2, myargv, "+a") != '?';
18836
18837 ;
18838 return 0;
18839 }
18840 _ACEOF
18841 rm -f conftest$ac_exeext
18842 if { (ac_try="$ac_link"
18843 case "(($ac_try" in
18844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18845 *) ac_try_echo=$ac_try;;
18846 esac
18847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18848 (eval "$ac_link") 2>&5
18849 ac_status=$?
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18852 { (case "(($ac_try" in
18853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18854 *) ac_try_echo=$ac_try;;
18855 esac
18856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18857 (eval "$ac_try") 2>&5
18858 ac_status=$?
18859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860 (exit $ac_status); }; }; then
18861 gl_cv_func_gnu_getopt=yes
18862 else
18863 echo "$as_me: program exited with status $ac_status" >&5
18864 echo "$as_me: failed program was:" >&5
18865 sed 's/^/| /' conftest.$ac_ext >&5
18866
18867 ( exit $ac_status )
18868 gl_cv_func_gnu_getopt=no
18869 fi
18870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18871 fi
18872
18873
18874 fi
18875 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
18876 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18877 if test "$gl_cv_func_gnu_getopt" = "no"; then
18878 GETOPT_H=getopt.h
18879 fi
18880 fi
18881
18882
18883
18884 if test -n "$GETOPT_H"; then
18885
18886
18887 GETOPT_H=getopt.h
18888
18889 cat >>confdefs.h <<\_ACEOF
18890 #define __GETOPT_PREFIX rpl_
18891 _ACEOF
18892
18893
18894
18895 :
18896 GETOPTOBJS='getopt.o getopt1.o'
18897
18898 fi
18899
18900
18901
18902
18903 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
18904 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
18905 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18906 echo $ECHO_N "(cached) $ECHO_C" >&6
18907 else
18908 # Use it with a single arg.
18909 cat >conftest.$ac_ext <<_ACEOF
18910 /* confdefs.h. */
18911 _ACEOF
18912 cat confdefs.h >>conftest.$ac_ext
18913 cat >>conftest.$ac_ext <<_ACEOF
18914 /* end confdefs.h. */
18915 $ac_includes_default
18916 int
18917 main ()
18918 {
18919 getpgrp (0);
18920 ;
18921 return 0;
18922 }
18923 _ACEOF
18924 rm -f conftest.$ac_objext
18925 if { (ac_try="$ac_compile"
18926 case "(($ac_try" in
18927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18928 *) ac_try_echo=$ac_try;;
18929 esac
18930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18931 (eval "$ac_compile") 2>conftest.er1
18932 ac_status=$?
18933 grep -v '^ *+' conftest.er1 >conftest.err
18934 rm -f conftest.er1
18935 cat conftest.err >&5
18936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937 (exit $ac_status); } && {
18938 test -z "$ac_c_werror_flag" ||
18939 test ! -s conftest.err
18940 } && test -s conftest.$ac_objext; then
18941 ac_cv_func_getpgrp_void=no
18942 else
18943 echo "$as_me: failed program was:" >&5
18944 sed 's/^/| /' conftest.$ac_ext >&5
18945
18946 ac_cv_func_getpgrp_void=yes
18947 fi
18948
18949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18950
18951 fi
18952 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
18953 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18954 if test $ac_cv_func_getpgrp_void = yes; then
18955
18956 cat >>confdefs.h <<\_ACEOF
18957 #define GETPGRP_VOID 1
18958 _ACEOF
18959
18960 fi
18961
18962
18963
18964 for ac_func in strftime
18965 do
18966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18967 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18969 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18970 echo $ECHO_N "(cached) $ECHO_C" >&6
18971 else
18972 cat >conftest.$ac_ext <<_ACEOF
18973 /* confdefs.h. */
18974 _ACEOF
18975 cat confdefs.h >>conftest.$ac_ext
18976 cat >>conftest.$ac_ext <<_ACEOF
18977 /* end confdefs.h. */
18978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18980 #define $ac_func innocuous_$ac_func
18981
18982 /* System header to define __stub macros and hopefully few prototypes,
18983 which can conflict with char $ac_func (); below.
18984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18985 <limits.h> exists even on freestanding compilers. */
18986
18987 #ifdef __STDC__
18988 # include <limits.h>
18989 #else
18990 # include <assert.h>
18991 #endif
18992
18993 #undef $ac_func
18994
18995 /* Override any GCC internal prototype to avoid an error.
18996 Use char because int might match the return type of a GCC
18997 builtin and then its argument prototype would still apply. */
18998 #ifdef __cplusplus
18999 extern "C"
19000 #endif
19001 char $ac_func ();
19002 /* The GNU C library defines this for functions which it implements
19003 to always fail with ENOSYS. Some functions are actually named
19004 something starting with __ and the normal name is an alias. */
19005 #if defined __stub_$ac_func || defined __stub___$ac_func
19006 choke me
19007 #endif
19008
19009 int
19010 main ()
19011 {
19012 return $ac_func ();
19013 ;
19014 return 0;
19015 }
19016 _ACEOF
19017 rm -f conftest.$ac_objext conftest$ac_exeext
19018 if { (ac_try="$ac_link"
19019 case "(($ac_try" in
19020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19021 *) ac_try_echo=$ac_try;;
19022 esac
19023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19024 (eval "$ac_link") 2>conftest.er1
19025 ac_status=$?
19026 grep -v '^ *+' conftest.er1 >conftest.err
19027 rm -f conftest.er1
19028 cat conftest.err >&5
19029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030 (exit $ac_status); } && {
19031 test -z "$ac_c_werror_flag" ||
19032 test ! -s conftest.err
19033 } && test -s conftest$ac_exeext &&
19034 $as_test_x conftest$ac_exeext; then
19035 eval "$as_ac_var=yes"
19036 else
19037 echo "$as_me: failed program was:" >&5
19038 sed 's/^/| /' conftest.$ac_ext >&5
19039
19040 eval "$as_ac_var=no"
19041 fi
19042
19043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19044 conftest$ac_exeext conftest.$ac_ext
19045 fi
19046 ac_res=`eval echo '${'$as_ac_var'}'`
19047 { echo "$as_me:$LINENO: result: $ac_res" >&5
19048 echo "${ECHO_T}$ac_res" >&6; }
19049 if test `eval echo '${'$as_ac_var'}'` = yes; then
19050 cat >>confdefs.h <<_ACEOF
19051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19052 _ACEOF
19053
19054 else
19055 # strftime is in -lintl on SCO UNIX.
19056 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19057 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19058 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19059 echo $ECHO_N "(cached) $ECHO_C" >&6
19060 else
19061 ac_check_lib_save_LIBS=$LIBS
19062 LIBS="-lintl $LIBS"
19063 cat >conftest.$ac_ext <<_ACEOF
19064 /* confdefs.h. */
19065 _ACEOF
19066 cat confdefs.h >>conftest.$ac_ext
19067 cat >>conftest.$ac_ext <<_ACEOF
19068 /* end confdefs.h. */
19069
19070 /* Override any GCC internal prototype to avoid an error.
19071 Use char because int might match the return type of a GCC
19072 builtin and then its argument prototype would still apply. */
19073 #ifdef __cplusplus
19074 extern "C"
19075 #endif
19076 char strftime ();
19077 int
19078 main ()
19079 {
19080 return strftime ();
19081 ;
19082 return 0;
19083 }
19084 _ACEOF
19085 rm -f conftest.$ac_objext conftest$ac_exeext
19086 if { (ac_try="$ac_link"
19087 case "(($ac_try" in
19088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19089 *) ac_try_echo=$ac_try;;
19090 esac
19091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19092 (eval "$ac_link") 2>conftest.er1
19093 ac_status=$?
19094 grep -v '^ *+' conftest.er1 >conftest.err
19095 rm -f conftest.er1
19096 cat conftest.err >&5
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); } && {
19099 test -z "$ac_c_werror_flag" ||
19100 test ! -s conftest.err
19101 } && test -s conftest$ac_exeext &&
19102 $as_test_x conftest$ac_exeext; then
19103 ac_cv_lib_intl_strftime=yes
19104 else
19105 echo "$as_me: failed program was:" >&5
19106 sed 's/^/| /' conftest.$ac_ext >&5
19107
19108 ac_cv_lib_intl_strftime=no
19109 fi
19110
19111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19112 conftest$ac_exeext conftest.$ac_ext
19113 LIBS=$ac_check_lib_save_LIBS
19114 fi
19115 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19116 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19117 if test $ac_cv_lib_intl_strftime = yes; then
19118 cat >>confdefs.h <<\_ACEOF
19119 #define HAVE_STRFTIME 1
19120 _ACEOF
19121
19122 LIBS="-lintl $LIBS"
19123 fi
19124
19125 fi
19126 done
19127
19128
19129 # UNIX98 PTYs.
19130
19131 for ac_func in grantpt
19132 do
19133 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19134 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19135 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19136 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19137 echo $ECHO_N "(cached) $ECHO_C" >&6
19138 else
19139 cat >conftest.$ac_ext <<_ACEOF
19140 /* confdefs.h. */
19141 _ACEOF
19142 cat confdefs.h >>conftest.$ac_ext
19143 cat >>conftest.$ac_ext <<_ACEOF
19144 /* end confdefs.h. */
19145 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19147 #define $ac_func innocuous_$ac_func
19148
19149 /* System header to define __stub macros and hopefully few prototypes,
19150 which can conflict with char $ac_func (); below.
19151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19152 <limits.h> exists even on freestanding compilers. */
19153
19154 #ifdef __STDC__
19155 # include <limits.h>
19156 #else
19157 # include <assert.h>
19158 #endif
19159
19160 #undef $ac_func
19161
19162 /* Override any GCC internal prototype to avoid an error.
19163 Use char because int might match the return type of a GCC
19164 builtin and then its argument prototype would still apply. */
19165 #ifdef __cplusplus
19166 extern "C"
19167 #endif
19168 char $ac_func ();
19169 /* The GNU C library defines this for functions which it implements
19170 to always fail with ENOSYS. Some functions are actually named
19171 something starting with __ and the normal name is an alias. */
19172 #if defined __stub_$ac_func || defined __stub___$ac_func
19173 choke me
19174 #endif
19175
19176 int
19177 main ()
19178 {
19179 return $ac_func ();
19180 ;
19181 return 0;
19182 }
19183 _ACEOF
19184 rm -f conftest.$ac_objext conftest$ac_exeext
19185 if { (ac_try="$ac_link"
19186 case "(($ac_try" in
19187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19188 *) ac_try_echo=$ac_try;;
19189 esac
19190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19191 (eval "$ac_link") 2>conftest.er1
19192 ac_status=$?
19193 grep -v '^ *+' conftest.er1 >conftest.err
19194 rm -f conftest.er1
19195 cat conftest.err >&5
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); } && {
19198 test -z "$ac_c_werror_flag" ||
19199 test ! -s conftest.err
19200 } && test -s conftest$ac_exeext &&
19201 $as_test_x conftest$ac_exeext; then
19202 eval "$as_ac_var=yes"
19203 else
19204 echo "$as_me: failed program was:" >&5
19205 sed 's/^/| /' conftest.$ac_ext >&5
19206
19207 eval "$as_ac_var=no"
19208 fi
19209
19210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19211 conftest$ac_exeext conftest.$ac_ext
19212 fi
19213 ac_res=`eval echo '${'$as_ac_var'}'`
19214 { echo "$as_me:$LINENO: result: $ac_res" >&5
19215 echo "${ECHO_T}$ac_res" >&6; }
19216 if test `eval echo '${'$as_ac_var'}'` = yes; then
19217 cat >>confdefs.h <<_ACEOF
19218 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19219 _ACEOF
19220
19221 fi
19222 done
19223
19224
19225 # PTY-related GNU extensions.
19226
19227 for ac_func in getpt
19228 do
19229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19230 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19232 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19233 echo $ECHO_N "(cached) $ECHO_C" >&6
19234 else
19235 cat >conftest.$ac_ext <<_ACEOF
19236 /* confdefs.h. */
19237 _ACEOF
19238 cat confdefs.h >>conftest.$ac_ext
19239 cat >>conftest.$ac_ext <<_ACEOF
19240 /* end confdefs.h. */
19241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19243 #define $ac_func innocuous_$ac_func
19244
19245 /* System header to define __stub macros and hopefully few prototypes,
19246 which can conflict with char $ac_func (); below.
19247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19248 <limits.h> exists even on freestanding compilers. */
19249
19250 #ifdef __STDC__
19251 # include <limits.h>
19252 #else
19253 # include <assert.h>
19254 #endif
19255
19256 #undef $ac_func
19257
19258 /* Override any GCC internal prototype to avoid an error.
19259 Use char because int might match the return type of a GCC
19260 builtin and then its argument prototype would still apply. */
19261 #ifdef __cplusplus
19262 extern "C"
19263 #endif
19264 char $ac_func ();
19265 /* The GNU C library defines this for functions which it implements
19266 to always fail with ENOSYS. Some functions are actually named
19267 something starting with __ and the normal name is an alias. */
19268 #if defined __stub_$ac_func || defined __stub___$ac_func
19269 choke me
19270 #endif
19271
19272 int
19273 main ()
19274 {
19275 return $ac_func ();
19276 ;
19277 return 0;
19278 }
19279 _ACEOF
19280 rm -f conftest.$ac_objext conftest$ac_exeext
19281 if { (ac_try="$ac_link"
19282 case "(($ac_try" in
19283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19284 *) ac_try_echo=$ac_try;;
19285 esac
19286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19287 (eval "$ac_link") 2>conftest.er1
19288 ac_status=$?
19289 grep -v '^ *+' conftest.er1 >conftest.err
19290 rm -f conftest.er1
19291 cat conftest.err >&5
19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293 (exit $ac_status); } && {
19294 test -z "$ac_c_werror_flag" ||
19295 test ! -s conftest.err
19296 } && test -s conftest$ac_exeext &&
19297 $as_test_x conftest$ac_exeext; then
19298 eval "$as_ac_var=yes"
19299 else
19300 echo "$as_me: failed program was:" >&5
19301 sed 's/^/| /' conftest.$ac_ext >&5
19302
19303 eval "$as_ac_var=no"
19304 fi
19305
19306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19307 conftest$ac_exeext conftest.$ac_ext
19308 fi
19309 ac_res=`eval echo '${'$as_ac_var'}'`
19310 { echo "$as_me:$LINENO: result: $ac_res" >&5
19311 echo "${ECHO_T}$ac_res" >&6; }
19312 if test `eval echo '${'$as_ac_var'}'` = yes; then
19313 cat >>confdefs.h <<_ACEOF
19314 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19315 _ACEOF
19316
19317 fi
19318 done
19319
19320
19321 # Check this now, so that we will NOT find the above functions in ncurses.
19322 # That is because we have not set up to link ncurses in lib-src.
19323 # It's better to believe a function is not available
19324 # than to expect to find it in ncurses.
19325
19326 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19327 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19328 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19329 echo $ECHO_N "(cached) $ECHO_C" >&6
19330 else
19331 ac_check_lib_save_LIBS=$LIBS
19332 LIBS="-lncurses $LIBS"
19333 cat >conftest.$ac_ext <<_ACEOF
19334 /* confdefs.h. */
19335 _ACEOF
19336 cat confdefs.h >>conftest.$ac_ext
19337 cat >>conftest.$ac_ext <<_ACEOF
19338 /* end confdefs.h. */
19339
19340 /* Override any GCC internal prototype to avoid an error.
19341 Use char because int might match the return type of a GCC
19342 builtin and then its argument prototype would still apply. */
19343 #ifdef __cplusplus
19344 extern "C"
19345 #endif
19346 char tparm ();
19347 int
19348 main ()
19349 {
19350 return tparm ();
19351 ;
19352 return 0;
19353 }
19354 _ACEOF
19355 rm -f conftest.$ac_objext conftest$ac_exeext
19356 if { (ac_try="$ac_link"
19357 case "(($ac_try" in
19358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19359 *) ac_try_echo=$ac_try;;
19360 esac
19361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19362 (eval "$ac_link") 2>conftest.er1
19363 ac_status=$?
19364 grep -v '^ *+' conftest.er1 >conftest.err
19365 rm -f conftest.er1
19366 cat conftest.err >&5
19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); } && {
19369 test -z "$ac_c_werror_flag" ||
19370 test ! -s conftest.err
19371 } && test -s conftest$ac_exeext &&
19372 $as_test_x conftest$ac_exeext; then
19373 ac_cv_lib_ncurses_tparm=yes
19374 else
19375 echo "$as_me: failed program was:" >&5
19376 sed 's/^/| /' conftest.$ac_ext >&5
19377
19378 ac_cv_lib_ncurses_tparm=no
19379 fi
19380
19381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19382 conftest$ac_exeext conftest.$ac_ext
19383 LIBS=$ac_check_lib_save_LIBS
19384 fi
19385 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19386 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19387 if test $ac_cv_lib_ncurses_tparm = yes; then
19388 cat >>confdefs.h <<_ACEOF
19389 #define HAVE_LIBNCURSES 1
19390 _ACEOF
19391
19392 LIBS="-lncurses $LIBS"
19393
19394 fi
19395
19396
19397 # Do we need the Hesiod library to provide the support routines?
19398 if test "$with_hesiod" = yes ; then
19399 # Don't set $LIBS here -- see comments above.
19400 resolv=no
19401 { echo "$as_me:$LINENO: checking for res_send" >&5
19402 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19403 if test "${ac_cv_func_res_send+set}" = set; then
19404 echo $ECHO_N "(cached) $ECHO_C" >&6
19405 else
19406 cat >conftest.$ac_ext <<_ACEOF
19407 /* confdefs.h. */
19408 _ACEOF
19409 cat confdefs.h >>conftest.$ac_ext
19410 cat >>conftest.$ac_ext <<_ACEOF
19411 /* end confdefs.h. */
19412 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19414 #define res_send innocuous_res_send
19415
19416 /* System header to define __stub macros and hopefully few prototypes,
19417 which can conflict with char res_send (); below.
19418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19419 <limits.h> exists even on freestanding compilers. */
19420
19421 #ifdef __STDC__
19422 # include <limits.h>
19423 #else
19424 # include <assert.h>
19425 #endif
19426
19427 #undef res_send
19428
19429 /* Override any GCC internal prototype to avoid an error.
19430 Use char because int might match the return type of a GCC
19431 builtin and then its argument prototype would still apply. */
19432 #ifdef __cplusplus
19433 extern "C"
19434 #endif
19435 char res_send ();
19436 /* The GNU C library defines this for functions which it implements
19437 to always fail with ENOSYS. Some functions are actually named
19438 something starting with __ and the normal name is an alias. */
19439 #if defined __stub_res_send || defined __stub___res_send
19440 choke me
19441 #endif
19442
19443 int
19444 main ()
19445 {
19446 return res_send ();
19447 ;
19448 return 0;
19449 }
19450 _ACEOF
19451 rm -f conftest.$ac_objext conftest$ac_exeext
19452 if { (ac_try="$ac_link"
19453 case "(($ac_try" in
19454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19455 *) ac_try_echo=$ac_try;;
19456 esac
19457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19458 (eval "$ac_link") 2>conftest.er1
19459 ac_status=$?
19460 grep -v '^ *+' conftest.er1 >conftest.err
19461 rm -f conftest.er1
19462 cat conftest.err >&5
19463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464 (exit $ac_status); } && {
19465 test -z "$ac_c_werror_flag" ||
19466 test ! -s conftest.err
19467 } && test -s conftest$ac_exeext &&
19468 $as_test_x conftest$ac_exeext; then
19469 ac_cv_func_res_send=yes
19470 else
19471 echo "$as_me: failed program was:" >&5
19472 sed 's/^/| /' conftest.$ac_ext >&5
19473
19474 ac_cv_func_res_send=no
19475 fi
19476
19477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19478 conftest$ac_exeext conftest.$ac_ext
19479 fi
19480 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19481 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19482 if test $ac_cv_func_res_send = yes; then
19483 :
19484 else
19485 { echo "$as_me:$LINENO: checking for __res_send" >&5
19486 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19487 if test "${ac_cv_func___res_send+set}" = set; then
19488 echo $ECHO_N "(cached) $ECHO_C" >&6
19489 else
19490 cat >conftest.$ac_ext <<_ACEOF
19491 /* confdefs.h. */
19492 _ACEOF
19493 cat confdefs.h >>conftest.$ac_ext
19494 cat >>conftest.$ac_ext <<_ACEOF
19495 /* end confdefs.h. */
19496 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19498 #define __res_send innocuous___res_send
19499
19500 /* System header to define __stub macros and hopefully few prototypes,
19501 which can conflict with char __res_send (); below.
19502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19503 <limits.h> exists even on freestanding compilers. */
19504
19505 #ifdef __STDC__
19506 # include <limits.h>
19507 #else
19508 # include <assert.h>
19509 #endif
19510
19511 #undef __res_send
19512
19513 /* Override any GCC internal prototype to avoid an error.
19514 Use char because int might match the return type of a GCC
19515 builtin and then its argument prototype would still apply. */
19516 #ifdef __cplusplus
19517 extern "C"
19518 #endif
19519 char __res_send ();
19520 /* The GNU C library defines this for functions which it implements
19521 to always fail with ENOSYS. Some functions are actually named
19522 something starting with __ and the normal name is an alias. */
19523 #if defined __stub___res_send || defined __stub_____res_send
19524 choke me
19525 #endif
19526
19527 int
19528 main ()
19529 {
19530 return __res_send ();
19531 ;
19532 return 0;
19533 }
19534 _ACEOF
19535 rm -f conftest.$ac_objext conftest$ac_exeext
19536 if { (ac_try="$ac_link"
19537 case "(($ac_try" in
19538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19539 *) ac_try_echo=$ac_try;;
19540 esac
19541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19542 (eval "$ac_link") 2>conftest.er1
19543 ac_status=$?
19544 grep -v '^ *+' conftest.er1 >conftest.err
19545 rm -f conftest.er1
19546 cat conftest.err >&5
19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548 (exit $ac_status); } && {
19549 test -z "$ac_c_werror_flag" ||
19550 test ! -s conftest.err
19551 } && test -s conftest$ac_exeext &&
19552 $as_test_x conftest$ac_exeext; then
19553 ac_cv_func___res_send=yes
19554 else
19555 echo "$as_me: failed program was:" >&5
19556 sed 's/^/| /' conftest.$ac_ext >&5
19557
19558 ac_cv_func___res_send=no
19559 fi
19560
19561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19562 conftest$ac_exeext conftest.$ac_ext
19563 fi
19564 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19565 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19566 if test $ac_cv_func___res_send = yes; then
19567 :
19568 else
19569 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19570 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19571 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19572 echo $ECHO_N "(cached) $ECHO_C" >&6
19573 else
19574 ac_check_lib_save_LIBS=$LIBS
19575 LIBS="-lresolv $LIBS"
19576 cat >conftest.$ac_ext <<_ACEOF
19577 /* confdefs.h. */
19578 _ACEOF
19579 cat confdefs.h >>conftest.$ac_ext
19580 cat >>conftest.$ac_ext <<_ACEOF
19581 /* end confdefs.h. */
19582
19583 /* Override any GCC internal prototype to avoid an error.
19584 Use char because int might match the return type of a GCC
19585 builtin and then its argument prototype would still apply. */
19586 #ifdef __cplusplus
19587 extern "C"
19588 #endif
19589 char res_send ();
19590 int
19591 main ()
19592 {
19593 return res_send ();
19594 ;
19595 return 0;
19596 }
19597 _ACEOF
19598 rm -f conftest.$ac_objext conftest$ac_exeext
19599 if { (ac_try="$ac_link"
19600 case "(($ac_try" in
19601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19602 *) ac_try_echo=$ac_try;;
19603 esac
19604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19605 (eval "$ac_link") 2>conftest.er1
19606 ac_status=$?
19607 grep -v '^ *+' conftest.er1 >conftest.err
19608 rm -f conftest.er1
19609 cat conftest.err >&5
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); } && {
19612 test -z "$ac_c_werror_flag" ||
19613 test ! -s conftest.err
19614 } && test -s conftest$ac_exeext &&
19615 $as_test_x conftest$ac_exeext; then
19616 ac_cv_lib_resolv_res_send=yes
19617 else
19618 echo "$as_me: failed program was:" >&5
19619 sed 's/^/| /' conftest.$ac_ext >&5
19620
19621 ac_cv_lib_resolv_res_send=no
19622 fi
19623
19624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19625 conftest$ac_exeext conftest.$ac_ext
19626 LIBS=$ac_check_lib_save_LIBS
19627 fi
19628 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19629 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19630 if test $ac_cv_lib_resolv_res_send = yes; then
19631 resolv=yes
19632 else
19633 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19634 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
19635 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19636 echo $ECHO_N "(cached) $ECHO_C" >&6
19637 else
19638 ac_check_lib_save_LIBS=$LIBS
19639 LIBS="-lresolv $LIBS"
19640 cat >conftest.$ac_ext <<_ACEOF
19641 /* confdefs.h. */
19642 _ACEOF
19643 cat confdefs.h >>conftest.$ac_ext
19644 cat >>conftest.$ac_ext <<_ACEOF
19645 /* end confdefs.h. */
19646
19647 /* Override any GCC internal prototype to avoid an error.
19648 Use char because int might match the return type of a GCC
19649 builtin and then its argument prototype would still apply. */
19650 #ifdef __cplusplus
19651 extern "C"
19652 #endif
19653 char __res_send ();
19654 int
19655 main ()
19656 {
19657 return __res_send ();
19658 ;
19659 return 0;
19660 }
19661 _ACEOF
19662 rm -f conftest.$ac_objext conftest$ac_exeext
19663 if { (ac_try="$ac_link"
19664 case "(($ac_try" in
19665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19666 *) ac_try_echo=$ac_try;;
19667 esac
19668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19669 (eval "$ac_link") 2>conftest.er1
19670 ac_status=$?
19671 grep -v '^ *+' conftest.er1 >conftest.err
19672 rm -f conftest.er1
19673 cat conftest.err >&5
19674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675 (exit $ac_status); } && {
19676 test -z "$ac_c_werror_flag" ||
19677 test ! -s conftest.err
19678 } && test -s conftest$ac_exeext &&
19679 $as_test_x conftest$ac_exeext; then
19680 ac_cv_lib_resolv___res_send=yes
19681 else
19682 echo "$as_me: failed program was:" >&5
19683 sed 's/^/| /' conftest.$ac_ext >&5
19684
19685 ac_cv_lib_resolv___res_send=no
19686 fi
19687
19688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19689 conftest$ac_exeext conftest.$ac_ext
19690 LIBS=$ac_check_lib_save_LIBS
19691 fi
19692 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19693 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19694 if test $ac_cv_lib_resolv___res_send = yes; then
19695 resolv=yes
19696 fi
19697
19698 fi
19699
19700 fi
19701
19702 fi
19703
19704 if test "$resolv" = yes ; then
19705 RESOLVLIB=-lresolv
19706
19707 cat >>confdefs.h <<\_ACEOF
19708 #define HAVE_LIBRESOLV 1
19709 _ACEOF
19710
19711 else
19712 RESOLVLIB=
19713 fi
19714 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19715 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
19716 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19717 echo $ECHO_N "(cached) $ECHO_C" >&6
19718 else
19719 cat >conftest.$ac_ext <<_ACEOF
19720 /* confdefs.h. */
19721 _ACEOF
19722 cat confdefs.h >>conftest.$ac_ext
19723 cat >>conftest.$ac_ext <<_ACEOF
19724 /* end confdefs.h. */
19725 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19727 #define hes_getmailhost innocuous_hes_getmailhost
19728
19729 /* System header to define __stub macros and hopefully few prototypes,
19730 which can conflict with char hes_getmailhost (); below.
19731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19732 <limits.h> exists even on freestanding compilers. */
19733
19734 #ifdef __STDC__
19735 # include <limits.h>
19736 #else
19737 # include <assert.h>
19738 #endif
19739
19740 #undef hes_getmailhost
19741
19742 /* Override any GCC internal prototype to avoid an error.
19743 Use char because int might match the return type of a GCC
19744 builtin and then its argument prototype would still apply. */
19745 #ifdef __cplusplus
19746 extern "C"
19747 #endif
19748 char hes_getmailhost ();
19749 /* The GNU C library defines this for functions which it implements
19750 to always fail with ENOSYS. Some functions are actually named
19751 something starting with __ and the normal name is an alias. */
19752 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19753 choke me
19754 #endif
19755
19756 int
19757 main ()
19758 {
19759 return hes_getmailhost ();
19760 ;
19761 return 0;
19762 }
19763 _ACEOF
19764 rm -f conftest.$ac_objext conftest$ac_exeext
19765 if { (ac_try="$ac_link"
19766 case "(($ac_try" in
19767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19768 *) ac_try_echo=$ac_try;;
19769 esac
19770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19771 (eval "$ac_link") 2>conftest.er1
19772 ac_status=$?
19773 grep -v '^ *+' conftest.er1 >conftest.err
19774 rm -f conftest.er1
19775 cat conftest.err >&5
19776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777 (exit $ac_status); } && {
19778 test -z "$ac_c_werror_flag" ||
19779 test ! -s conftest.err
19780 } && test -s conftest$ac_exeext &&
19781 $as_test_x conftest$ac_exeext; then
19782 ac_cv_func_hes_getmailhost=yes
19783 else
19784 echo "$as_me: failed program was:" >&5
19785 sed 's/^/| /' conftest.$ac_ext >&5
19786
19787 ac_cv_func_hes_getmailhost=no
19788 fi
19789
19790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19791 conftest$ac_exeext conftest.$ac_ext
19792 fi
19793 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19794 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19795 if test $ac_cv_func_hes_getmailhost = yes; then
19796 :
19797 else
19798 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
19799 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
19800 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19801 echo $ECHO_N "(cached) $ECHO_C" >&6
19802 else
19803 ac_check_lib_save_LIBS=$LIBS
19804 LIBS="-lhesiod $RESOLVLIB $LIBS"
19805 cat >conftest.$ac_ext <<_ACEOF
19806 /* confdefs.h. */
19807 _ACEOF
19808 cat confdefs.h >>conftest.$ac_ext
19809 cat >>conftest.$ac_ext <<_ACEOF
19810 /* end confdefs.h. */
19811
19812 /* Override any GCC internal prototype to avoid an error.
19813 Use char because int might match the return type of a GCC
19814 builtin and then its argument prototype would still apply. */
19815 #ifdef __cplusplus
19816 extern "C"
19817 #endif
19818 char hes_getmailhost ();
19819 int
19820 main ()
19821 {
19822 return hes_getmailhost ();
19823 ;
19824 return 0;
19825 }
19826 _ACEOF
19827 rm -f conftest.$ac_objext conftest$ac_exeext
19828 if { (ac_try="$ac_link"
19829 case "(($ac_try" in
19830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19831 *) ac_try_echo=$ac_try;;
19832 esac
19833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19834 (eval "$ac_link") 2>conftest.er1
19835 ac_status=$?
19836 grep -v '^ *+' conftest.er1 >conftest.err
19837 rm -f conftest.er1
19838 cat conftest.err >&5
19839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840 (exit $ac_status); } && {
19841 test -z "$ac_c_werror_flag" ||
19842 test ! -s conftest.err
19843 } && test -s conftest$ac_exeext &&
19844 $as_test_x conftest$ac_exeext; then
19845 ac_cv_lib_hesiod_hes_getmailhost=yes
19846 else
19847 echo "$as_me: failed program was:" >&5
19848 sed 's/^/| /' conftest.$ac_ext >&5
19849
19850 ac_cv_lib_hesiod_hes_getmailhost=no
19851 fi
19852
19853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19854 conftest$ac_exeext conftest.$ac_ext
19855 LIBS=$ac_check_lib_save_LIBS
19856 fi
19857 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19858 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19859 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19860
19861 cat >>confdefs.h <<\_ACEOF
19862 #define HAVE_LIBHESIOD 1
19863 _ACEOF
19864
19865 else
19866 :
19867 fi
19868
19869 fi
19870
19871 fi
19872
19873 # These tell us which Kerberos-related libraries to use.
19874 if test "${with_kerberos+set}" = set; then
19875
19876 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
19877 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
19878 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19879 echo $ECHO_N "(cached) $ECHO_C" >&6
19880 else
19881 ac_check_lib_save_LIBS=$LIBS
19882 LIBS="-lcom_err $LIBS"
19883 cat >conftest.$ac_ext <<_ACEOF
19884 /* confdefs.h. */
19885 _ACEOF
19886 cat confdefs.h >>conftest.$ac_ext
19887 cat >>conftest.$ac_ext <<_ACEOF
19888 /* end confdefs.h. */
19889
19890 /* Override any GCC internal prototype to avoid an error.
19891 Use char because int might match the return type of a GCC
19892 builtin and then its argument prototype would still apply. */
19893 #ifdef __cplusplus
19894 extern "C"
19895 #endif
19896 char com_err ();
19897 int
19898 main ()
19899 {
19900 return com_err ();
19901 ;
19902 return 0;
19903 }
19904 _ACEOF
19905 rm -f conftest.$ac_objext conftest$ac_exeext
19906 if { (ac_try="$ac_link"
19907 case "(($ac_try" in
19908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19909 *) ac_try_echo=$ac_try;;
19910 esac
19911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19912 (eval "$ac_link") 2>conftest.er1
19913 ac_status=$?
19914 grep -v '^ *+' conftest.er1 >conftest.err
19915 rm -f conftest.er1
19916 cat conftest.err >&5
19917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918 (exit $ac_status); } && {
19919 test -z "$ac_c_werror_flag" ||
19920 test ! -s conftest.err
19921 } && test -s conftest$ac_exeext &&
19922 $as_test_x conftest$ac_exeext; then
19923 ac_cv_lib_com_err_com_err=yes
19924 else
19925 echo "$as_me: failed program was:" >&5
19926 sed 's/^/| /' conftest.$ac_ext >&5
19927
19928 ac_cv_lib_com_err_com_err=no
19929 fi
19930
19931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19932 conftest$ac_exeext conftest.$ac_ext
19933 LIBS=$ac_check_lib_save_LIBS
19934 fi
19935 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19936 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19937 if test $ac_cv_lib_com_err_com_err = yes; then
19938 cat >>confdefs.h <<_ACEOF
19939 #define HAVE_LIBCOM_ERR 1
19940 _ACEOF
19941
19942 LIBS="-lcom_err $LIBS"
19943
19944 fi
19945
19946
19947 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19948 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
19949 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19950 echo $ECHO_N "(cached) $ECHO_C" >&6
19951 else
19952 ac_check_lib_save_LIBS=$LIBS
19953 LIBS="-lk5crypto $LIBS"
19954 cat >conftest.$ac_ext <<_ACEOF
19955 /* confdefs.h. */
19956 _ACEOF
19957 cat confdefs.h >>conftest.$ac_ext
19958 cat >>conftest.$ac_ext <<_ACEOF
19959 /* end confdefs.h. */
19960
19961 /* Override any GCC internal prototype to avoid an error.
19962 Use char because int might match the return type of a GCC
19963 builtin and then its argument prototype would still apply. */
19964 #ifdef __cplusplus
19965 extern "C"
19966 #endif
19967 char mit_des_cbc_encrypt ();
19968 int
19969 main ()
19970 {
19971 return mit_des_cbc_encrypt ();
19972 ;
19973 return 0;
19974 }
19975 _ACEOF
19976 rm -f conftest.$ac_objext conftest$ac_exeext
19977 if { (ac_try="$ac_link"
19978 case "(($ac_try" in
19979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19980 *) ac_try_echo=$ac_try;;
19981 esac
19982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19983 (eval "$ac_link") 2>conftest.er1
19984 ac_status=$?
19985 grep -v '^ *+' conftest.er1 >conftest.err
19986 rm -f conftest.er1
19987 cat conftest.err >&5
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); } && {
19990 test -z "$ac_c_werror_flag" ||
19991 test ! -s conftest.err
19992 } && test -s conftest$ac_exeext &&
19993 $as_test_x conftest$ac_exeext; then
19994 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19995 else
19996 echo "$as_me: failed program was:" >&5
19997 sed 's/^/| /' conftest.$ac_ext >&5
19998
19999 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20000 fi
20001
20002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20003 conftest$ac_exeext conftest.$ac_ext
20004 LIBS=$ac_check_lib_save_LIBS
20005 fi
20006 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20007 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20008 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20009 cat >>confdefs.h <<_ACEOF
20010 #define HAVE_LIBK5CRYPTO 1
20011 _ACEOF
20012
20013 LIBS="-lk5crypto $LIBS"
20014
20015 fi
20016
20017
20018 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20019 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20020 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20021 echo $ECHO_N "(cached) $ECHO_C" >&6
20022 else
20023 ac_check_lib_save_LIBS=$LIBS
20024 LIBS="-lcrypto $LIBS"
20025 cat >conftest.$ac_ext <<_ACEOF
20026 /* confdefs.h. */
20027 _ACEOF
20028 cat confdefs.h >>conftest.$ac_ext
20029 cat >>conftest.$ac_ext <<_ACEOF
20030 /* end confdefs.h. */
20031
20032 /* Override any GCC internal prototype to avoid an error.
20033 Use char because int might match the return type of a GCC
20034 builtin and then its argument prototype would still apply. */
20035 #ifdef __cplusplus
20036 extern "C"
20037 #endif
20038 char mit_des_cbc_encrypt ();
20039 int
20040 main ()
20041 {
20042 return mit_des_cbc_encrypt ();
20043 ;
20044 return 0;
20045 }
20046 _ACEOF
20047 rm -f conftest.$ac_objext conftest$ac_exeext
20048 if { (ac_try="$ac_link"
20049 case "(($ac_try" in
20050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20051 *) ac_try_echo=$ac_try;;
20052 esac
20053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20054 (eval "$ac_link") 2>conftest.er1
20055 ac_status=$?
20056 grep -v '^ *+' conftest.er1 >conftest.err
20057 rm -f conftest.er1
20058 cat conftest.err >&5
20059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060 (exit $ac_status); } && {
20061 test -z "$ac_c_werror_flag" ||
20062 test ! -s conftest.err
20063 } && test -s conftest$ac_exeext &&
20064 $as_test_x conftest$ac_exeext; then
20065 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20066 else
20067 echo "$as_me: failed program was:" >&5
20068 sed 's/^/| /' conftest.$ac_ext >&5
20069
20070 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20071 fi
20072
20073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20074 conftest$ac_exeext conftest.$ac_ext
20075 LIBS=$ac_check_lib_save_LIBS
20076 fi
20077 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20078 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20079 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20080 cat >>confdefs.h <<_ACEOF
20081 #define HAVE_LIBCRYPTO 1
20082 _ACEOF
20083
20084 LIBS="-lcrypto $LIBS"
20085
20086 fi
20087
20088
20089 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20090 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20091 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20092 echo $ECHO_N "(cached) $ECHO_C" >&6
20093 else
20094 ac_check_lib_save_LIBS=$LIBS
20095 LIBS="-lkrb5 $LIBS"
20096 cat >conftest.$ac_ext <<_ACEOF
20097 /* confdefs.h. */
20098 _ACEOF
20099 cat confdefs.h >>conftest.$ac_ext
20100 cat >>conftest.$ac_ext <<_ACEOF
20101 /* end confdefs.h. */
20102
20103 /* Override any GCC internal prototype to avoid an error.
20104 Use char because int might match the return type of a GCC
20105 builtin and then its argument prototype would still apply. */
20106 #ifdef __cplusplus
20107 extern "C"
20108 #endif
20109 char krb5_init_context ();
20110 int
20111 main ()
20112 {
20113 return krb5_init_context ();
20114 ;
20115 return 0;
20116 }
20117 _ACEOF
20118 rm -f conftest.$ac_objext conftest$ac_exeext
20119 if { (ac_try="$ac_link"
20120 case "(($ac_try" in
20121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20122 *) ac_try_echo=$ac_try;;
20123 esac
20124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20125 (eval "$ac_link") 2>conftest.er1
20126 ac_status=$?
20127 grep -v '^ *+' conftest.er1 >conftest.err
20128 rm -f conftest.er1
20129 cat conftest.err >&5
20130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131 (exit $ac_status); } && {
20132 test -z "$ac_c_werror_flag" ||
20133 test ! -s conftest.err
20134 } && test -s conftest$ac_exeext &&
20135 $as_test_x conftest$ac_exeext; then
20136 ac_cv_lib_krb5_krb5_init_context=yes
20137 else
20138 echo "$as_me: failed program was:" >&5
20139 sed 's/^/| /' conftest.$ac_ext >&5
20140
20141 ac_cv_lib_krb5_krb5_init_context=no
20142 fi
20143
20144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20145 conftest$ac_exeext conftest.$ac_ext
20146 LIBS=$ac_check_lib_save_LIBS
20147 fi
20148 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20149 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20150 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20151 cat >>confdefs.h <<_ACEOF
20152 #define HAVE_LIBKRB5 1
20153 _ACEOF
20154
20155 LIBS="-lkrb5 $LIBS"
20156
20157 fi
20158
20159 if test "${with_kerberos5+set}" != set; then
20160
20161 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20162 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20163 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20164 echo $ECHO_N "(cached) $ECHO_C" >&6
20165 else
20166 ac_check_lib_save_LIBS=$LIBS
20167 LIBS="-ldes425 $LIBS"
20168 cat >conftest.$ac_ext <<_ACEOF
20169 /* confdefs.h. */
20170 _ACEOF
20171 cat confdefs.h >>conftest.$ac_ext
20172 cat >>conftest.$ac_ext <<_ACEOF
20173 /* end confdefs.h. */
20174
20175 /* Override any GCC internal prototype to avoid an error.
20176 Use char because int might match the return type of a GCC
20177 builtin and then its argument prototype would still apply. */
20178 #ifdef __cplusplus
20179 extern "C"
20180 #endif
20181 char des_cbc_encrypt ();
20182 int
20183 main ()
20184 {
20185 return des_cbc_encrypt ();
20186 ;
20187 return 0;
20188 }
20189 _ACEOF
20190 rm -f conftest.$ac_objext conftest$ac_exeext
20191 if { (ac_try="$ac_link"
20192 case "(($ac_try" in
20193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20194 *) ac_try_echo=$ac_try;;
20195 esac
20196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20197 (eval "$ac_link") 2>conftest.er1
20198 ac_status=$?
20199 grep -v '^ *+' conftest.er1 >conftest.err
20200 rm -f conftest.er1
20201 cat conftest.err >&5
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); } && {
20204 test -z "$ac_c_werror_flag" ||
20205 test ! -s conftest.err
20206 } && test -s conftest$ac_exeext &&
20207 $as_test_x conftest$ac_exeext; then
20208 ac_cv_lib_des425_des_cbc_encrypt=yes
20209 else
20210 echo "$as_me: failed program was:" >&5
20211 sed 's/^/| /' conftest.$ac_ext >&5
20212
20213 ac_cv_lib_des425_des_cbc_encrypt=no
20214 fi
20215
20216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20217 conftest$ac_exeext conftest.$ac_ext
20218 LIBS=$ac_check_lib_save_LIBS
20219 fi
20220 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20221 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20222 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20223 cat >>confdefs.h <<_ACEOF
20224 #define HAVE_LIBDES425 1
20225 _ACEOF
20226
20227 LIBS="-ldes425 $LIBS"
20228
20229 else
20230
20231 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20232 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20233 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20234 echo $ECHO_N "(cached) $ECHO_C" >&6
20235 else
20236 ac_check_lib_save_LIBS=$LIBS
20237 LIBS="-ldes $LIBS"
20238 cat >conftest.$ac_ext <<_ACEOF
20239 /* confdefs.h. */
20240 _ACEOF
20241 cat confdefs.h >>conftest.$ac_ext
20242 cat >>conftest.$ac_ext <<_ACEOF
20243 /* end confdefs.h. */
20244
20245 /* Override any GCC internal prototype to avoid an error.
20246 Use char because int might match the return type of a GCC
20247 builtin and then its argument prototype would still apply. */
20248 #ifdef __cplusplus
20249 extern "C"
20250 #endif
20251 char des_cbc_encrypt ();
20252 int
20253 main ()
20254 {
20255 return des_cbc_encrypt ();
20256 ;
20257 return 0;
20258 }
20259 _ACEOF
20260 rm -f conftest.$ac_objext conftest$ac_exeext
20261 if { (ac_try="$ac_link"
20262 case "(($ac_try" in
20263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20264 *) ac_try_echo=$ac_try;;
20265 esac
20266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20267 (eval "$ac_link") 2>conftest.er1
20268 ac_status=$?
20269 grep -v '^ *+' conftest.er1 >conftest.err
20270 rm -f conftest.er1
20271 cat conftest.err >&5
20272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); } && {
20274 test -z "$ac_c_werror_flag" ||
20275 test ! -s conftest.err
20276 } && test -s conftest$ac_exeext &&
20277 $as_test_x conftest$ac_exeext; then
20278 ac_cv_lib_des_des_cbc_encrypt=yes
20279 else
20280 echo "$as_me: failed program was:" >&5
20281 sed 's/^/| /' conftest.$ac_ext >&5
20282
20283 ac_cv_lib_des_des_cbc_encrypt=no
20284 fi
20285
20286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20287 conftest$ac_exeext conftest.$ac_ext
20288 LIBS=$ac_check_lib_save_LIBS
20289 fi
20290 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20291 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20292 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20293 cat >>confdefs.h <<_ACEOF
20294 #define HAVE_LIBDES 1
20295 _ACEOF
20296
20297 LIBS="-ldes $LIBS"
20298
20299 fi
20300
20301 fi
20302
20303
20304 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20305 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20306 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20307 echo $ECHO_N "(cached) $ECHO_C" >&6
20308 else
20309 ac_check_lib_save_LIBS=$LIBS
20310 LIBS="-lkrb4 $LIBS"
20311 cat >conftest.$ac_ext <<_ACEOF
20312 /* confdefs.h. */
20313 _ACEOF
20314 cat confdefs.h >>conftest.$ac_ext
20315 cat >>conftest.$ac_ext <<_ACEOF
20316 /* end confdefs.h. */
20317
20318 /* Override any GCC internal prototype to avoid an error.
20319 Use char because int might match the return type of a GCC
20320 builtin and then its argument prototype would still apply. */
20321 #ifdef __cplusplus
20322 extern "C"
20323 #endif
20324 char krb_get_cred ();
20325 int
20326 main ()
20327 {
20328 return krb_get_cred ();
20329 ;
20330 return 0;
20331 }
20332 _ACEOF
20333 rm -f conftest.$ac_objext conftest$ac_exeext
20334 if { (ac_try="$ac_link"
20335 case "(($ac_try" in
20336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20337 *) ac_try_echo=$ac_try;;
20338 esac
20339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20340 (eval "$ac_link") 2>conftest.er1
20341 ac_status=$?
20342 grep -v '^ *+' conftest.er1 >conftest.err
20343 rm -f conftest.er1
20344 cat conftest.err >&5
20345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346 (exit $ac_status); } && {
20347 test -z "$ac_c_werror_flag" ||
20348 test ! -s conftest.err
20349 } && test -s conftest$ac_exeext &&
20350 $as_test_x conftest$ac_exeext; then
20351 ac_cv_lib_krb4_krb_get_cred=yes
20352 else
20353 echo "$as_me: failed program was:" >&5
20354 sed 's/^/| /' conftest.$ac_ext >&5
20355
20356 ac_cv_lib_krb4_krb_get_cred=no
20357 fi
20358
20359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20360 conftest$ac_exeext conftest.$ac_ext
20361 LIBS=$ac_check_lib_save_LIBS
20362 fi
20363 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20364 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20365 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20366 cat >>confdefs.h <<_ACEOF
20367 #define HAVE_LIBKRB4 1
20368 _ACEOF
20369
20370 LIBS="-lkrb4 $LIBS"
20371
20372 else
20373
20374 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20375 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20376 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20377 echo $ECHO_N "(cached) $ECHO_C" >&6
20378 else
20379 ac_check_lib_save_LIBS=$LIBS
20380 LIBS="-lkrb $LIBS"
20381 cat >conftest.$ac_ext <<_ACEOF
20382 /* confdefs.h. */
20383 _ACEOF
20384 cat confdefs.h >>conftest.$ac_ext
20385 cat >>conftest.$ac_ext <<_ACEOF
20386 /* end confdefs.h. */
20387
20388 /* Override any GCC internal prototype to avoid an error.
20389 Use char because int might match the return type of a GCC
20390 builtin and then its argument prototype would still apply. */
20391 #ifdef __cplusplus
20392 extern "C"
20393 #endif
20394 char krb_get_cred ();
20395 int
20396 main ()
20397 {
20398 return krb_get_cred ();
20399 ;
20400 return 0;
20401 }
20402 _ACEOF
20403 rm -f conftest.$ac_objext conftest$ac_exeext
20404 if { (ac_try="$ac_link"
20405 case "(($ac_try" in
20406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20407 *) ac_try_echo=$ac_try;;
20408 esac
20409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20410 (eval "$ac_link") 2>conftest.er1
20411 ac_status=$?
20412 grep -v '^ *+' conftest.er1 >conftest.err
20413 rm -f conftest.er1
20414 cat conftest.err >&5
20415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416 (exit $ac_status); } && {
20417 test -z "$ac_c_werror_flag" ||
20418 test ! -s conftest.err
20419 } && test -s conftest$ac_exeext &&
20420 $as_test_x conftest$ac_exeext; then
20421 ac_cv_lib_krb_krb_get_cred=yes
20422 else
20423 echo "$as_me: failed program was:" >&5
20424 sed 's/^/| /' conftest.$ac_ext >&5
20425
20426 ac_cv_lib_krb_krb_get_cred=no
20427 fi
20428
20429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20430 conftest$ac_exeext conftest.$ac_ext
20431 LIBS=$ac_check_lib_save_LIBS
20432 fi
20433 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20434 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20435 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20436 cat >>confdefs.h <<_ACEOF
20437 #define HAVE_LIBKRB 1
20438 _ACEOF
20439
20440 LIBS="-lkrb $LIBS"
20441
20442 fi
20443
20444 fi
20445
20446 fi
20447
20448 if test "${with_kerberos5+set}" = set; then
20449
20450 for ac_header in krb5.h
20451 do
20452 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20454 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20457 echo $ECHO_N "(cached) $ECHO_C" >&6
20458 fi
20459 ac_res=`eval echo '${'$as_ac_Header'}'`
20460 { echo "$as_me:$LINENO: result: $ac_res" >&5
20461 echo "${ECHO_T}$ac_res" >&6; }
20462 else
20463 # Is the header compilable?
20464 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20465 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20466 cat >conftest.$ac_ext <<_ACEOF
20467 /* confdefs.h. */
20468 _ACEOF
20469 cat confdefs.h >>conftest.$ac_ext
20470 cat >>conftest.$ac_ext <<_ACEOF
20471 /* end confdefs.h. */
20472 $ac_includes_default
20473 #include <$ac_header>
20474 _ACEOF
20475 rm -f conftest.$ac_objext
20476 if { (ac_try="$ac_compile"
20477 case "(($ac_try" in
20478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20479 *) ac_try_echo=$ac_try;;
20480 esac
20481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20482 (eval "$ac_compile") 2>conftest.er1
20483 ac_status=$?
20484 grep -v '^ *+' conftest.er1 >conftest.err
20485 rm -f conftest.er1
20486 cat conftest.err >&5
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); } && {
20489 test -z "$ac_c_werror_flag" ||
20490 test ! -s conftest.err
20491 } && test -s conftest.$ac_objext; then
20492 ac_header_compiler=yes
20493 else
20494 echo "$as_me: failed program was:" >&5
20495 sed 's/^/| /' conftest.$ac_ext >&5
20496
20497 ac_header_compiler=no
20498 fi
20499
20500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20501 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20502 echo "${ECHO_T}$ac_header_compiler" >&6; }
20503
20504 # Is the header present?
20505 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20506 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20507 cat >conftest.$ac_ext <<_ACEOF
20508 /* confdefs.h. */
20509 _ACEOF
20510 cat confdefs.h >>conftest.$ac_ext
20511 cat >>conftest.$ac_ext <<_ACEOF
20512 /* end confdefs.h. */
20513 #include <$ac_header>
20514 _ACEOF
20515 if { (ac_try="$ac_cpp conftest.$ac_ext"
20516 case "(($ac_try" in
20517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20518 *) ac_try_echo=$ac_try;;
20519 esac
20520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20522 ac_status=$?
20523 grep -v '^ *+' conftest.er1 >conftest.err
20524 rm -f conftest.er1
20525 cat conftest.err >&5
20526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20527 (exit $ac_status); } >/dev/null && {
20528 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20529 test ! -s conftest.err
20530 }; then
20531 ac_header_preproc=yes
20532 else
20533 echo "$as_me: failed program was:" >&5
20534 sed 's/^/| /' conftest.$ac_ext >&5
20535
20536 ac_header_preproc=no
20537 fi
20538
20539 rm -f conftest.err conftest.$ac_ext
20540 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20541 echo "${ECHO_T}$ac_header_preproc" >&6; }
20542
20543 # So? What about this header?
20544 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20545 yes:no: )
20546 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20547 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20549 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20550 ac_header_preproc=yes
20551 ;;
20552 no:yes:* )
20553 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20554 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20555 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20556 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20557 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20558 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20559 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20560 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20562 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20563 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20564 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20565
20566 ;;
20567 esac
20568 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20571 echo $ECHO_N "(cached) $ECHO_C" >&6
20572 else
20573 eval "$as_ac_Header=\$ac_header_preproc"
20574 fi
20575 ac_res=`eval echo '${'$as_ac_Header'}'`
20576 { echo "$as_me:$LINENO: result: $ac_res" >&5
20577 echo "${ECHO_T}$ac_res" >&6; }
20578
20579 fi
20580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20581 cat >>confdefs.h <<_ACEOF
20582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20583 _ACEOF
20584
20585 fi
20586
20587 done
20588
20589 else
20590
20591 for ac_header in des.h
20592 do
20593 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20595 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20598 echo $ECHO_N "(cached) $ECHO_C" >&6
20599 fi
20600 ac_res=`eval echo '${'$as_ac_Header'}'`
20601 { echo "$as_me:$LINENO: result: $ac_res" >&5
20602 echo "${ECHO_T}$ac_res" >&6; }
20603 else
20604 # Is the header compilable?
20605 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20606 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20607 cat >conftest.$ac_ext <<_ACEOF
20608 /* confdefs.h. */
20609 _ACEOF
20610 cat confdefs.h >>conftest.$ac_ext
20611 cat >>conftest.$ac_ext <<_ACEOF
20612 /* end confdefs.h. */
20613 $ac_includes_default
20614 #include <$ac_header>
20615 _ACEOF
20616 rm -f conftest.$ac_objext
20617 if { (ac_try="$ac_compile"
20618 case "(($ac_try" in
20619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20620 *) ac_try_echo=$ac_try;;
20621 esac
20622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20623 (eval "$ac_compile") 2>conftest.er1
20624 ac_status=$?
20625 grep -v '^ *+' conftest.er1 >conftest.err
20626 rm -f conftest.er1
20627 cat conftest.err >&5
20628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629 (exit $ac_status); } && {
20630 test -z "$ac_c_werror_flag" ||
20631 test ! -s conftest.err
20632 } && test -s conftest.$ac_objext; then
20633 ac_header_compiler=yes
20634 else
20635 echo "$as_me: failed program was:" >&5
20636 sed 's/^/| /' conftest.$ac_ext >&5
20637
20638 ac_header_compiler=no
20639 fi
20640
20641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20642 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20643 echo "${ECHO_T}$ac_header_compiler" >&6; }
20644
20645 # Is the header present?
20646 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20647 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20648 cat >conftest.$ac_ext <<_ACEOF
20649 /* confdefs.h. */
20650 _ACEOF
20651 cat confdefs.h >>conftest.$ac_ext
20652 cat >>conftest.$ac_ext <<_ACEOF
20653 /* end confdefs.h. */
20654 #include <$ac_header>
20655 _ACEOF
20656 if { (ac_try="$ac_cpp conftest.$ac_ext"
20657 case "(($ac_try" in
20658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20659 *) ac_try_echo=$ac_try;;
20660 esac
20661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20663 ac_status=$?
20664 grep -v '^ *+' conftest.er1 >conftest.err
20665 rm -f conftest.er1
20666 cat conftest.err >&5
20667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668 (exit $ac_status); } >/dev/null && {
20669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20670 test ! -s conftest.err
20671 }; then
20672 ac_header_preproc=yes
20673 else
20674 echo "$as_me: failed program was:" >&5
20675 sed 's/^/| /' conftest.$ac_ext >&5
20676
20677 ac_header_preproc=no
20678 fi
20679
20680 rm -f conftest.err conftest.$ac_ext
20681 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20682 echo "${ECHO_T}$ac_header_preproc" >&6; }
20683
20684 # So? What about this header?
20685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20686 yes:no: )
20687 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20688 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20690 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20691 ac_header_preproc=yes
20692 ;;
20693 no:yes:* )
20694 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20695 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20696 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20697 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20698 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20699 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20700 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20701 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20703 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20704 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20705 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20706
20707 ;;
20708 esac
20709 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20712 echo $ECHO_N "(cached) $ECHO_C" >&6
20713 else
20714 eval "$as_ac_Header=\$ac_header_preproc"
20715 fi
20716 ac_res=`eval echo '${'$as_ac_Header'}'`
20717 { echo "$as_me:$LINENO: result: $ac_res" >&5
20718 echo "${ECHO_T}$ac_res" >&6; }
20719
20720 fi
20721 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20722 cat >>confdefs.h <<_ACEOF
20723 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20724 _ACEOF
20725
20726 else
20727
20728 for ac_header in kerberosIV/des.h
20729 do
20730 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20732 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20735 echo $ECHO_N "(cached) $ECHO_C" >&6
20736 fi
20737 ac_res=`eval echo '${'$as_ac_Header'}'`
20738 { echo "$as_me:$LINENO: result: $ac_res" >&5
20739 echo "${ECHO_T}$ac_res" >&6; }
20740 else
20741 # Is the header compilable?
20742 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20743 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20744 cat >conftest.$ac_ext <<_ACEOF
20745 /* confdefs.h. */
20746 _ACEOF
20747 cat confdefs.h >>conftest.$ac_ext
20748 cat >>conftest.$ac_ext <<_ACEOF
20749 /* end confdefs.h. */
20750 $ac_includes_default
20751 #include <$ac_header>
20752 _ACEOF
20753 rm -f conftest.$ac_objext
20754 if { (ac_try="$ac_compile"
20755 case "(($ac_try" in
20756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20757 *) ac_try_echo=$ac_try;;
20758 esac
20759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20760 (eval "$ac_compile") 2>conftest.er1
20761 ac_status=$?
20762 grep -v '^ *+' conftest.er1 >conftest.err
20763 rm -f conftest.er1
20764 cat conftest.err >&5
20765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766 (exit $ac_status); } && {
20767 test -z "$ac_c_werror_flag" ||
20768 test ! -s conftest.err
20769 } && test -s conftest.$ac_objext; then
20770 ac_header_compiler=yes
20771 else
20772 echo "$as_me: failed program was:" >&5
20773 sed 's/^/| /' conftest.$ac_ext >&5
20774
20775 ac_header_compiler=no
20776 fi
20777
20778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20779 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20780 echo "${ECHO_T}$ac_header_compiler" >&6; }
20781
20782 # Is the header present?
20783 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20784 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20785 cat >conftest.$ac_ext <<_ACEOF
20786 /* confdefs.h. */
20787 _ACEOF
20788 cat confdefs.h >>conftest.$ac_ext
20789 cat >>conftest.$ac_ext <<_ACEOF
20790 /* end confdefs.h. */
20791 #include <$ac_header>
20792 _ACEOF
20793 if { (ac_try="$ac_cpp conftest.$ac_ext"
20794 case "(($ac_try" in
20795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20796 *) ac_try_echo=$ac_try;;
20797 esac
20798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20799 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20800 ac_status=$?
20801 grep -v '^ *+' conftest.er1 >conftest.err
20802 rm -f conftest.er1
20803 cat conftest.err >&5
20804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805 (exit $ac_status); } >/dev/null && {
20806 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20807 test ! -s conftest.err
20808 }; then
20809 ac_header_preproc=yes
20810 else
20811 echo "$as_me: failed program was:" >&5
20812 sed 's/^/| /' conftest.$ac_ext >&5
20813
20814 ac_header_preproc=no
20815 fi
20816
20817 rm -f conftest.err conftest.$ac_ext
20818 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20819 echo "${ECHO_T}$ac_header_preproc" >&6; }
20820
20821 # So? What about this header?
20822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20823 yes:no: )
20824 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20825 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20827 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20828 ac_header_preproc=yes
20829 ;;
20830 no:yes:* )
20831 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20832 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20833 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20834 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20835 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20836 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20837 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20838 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20840 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20841 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20842 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20843
20844 ;;
20845 esac
20846 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20849 echo $ECHO_N "(cached) $ECHO_C" >&6
20850 else
20851 eval "$as_ac_Header=\$ac_header_preproc"
20852 fi
20853 ac_res=`eval echo '${'$as_ac_Header'}'`
20854 { echo "$as_me:$LINENO: result: $ac_res" >&5
20855 echo "${ECHO_T}$ac_res" >&6; }
20856
20857 fi
20858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20859 cat >>confdefs.h <<_ACEOF
20860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20861 _ACEOF
20862
20863 else
20864
20865 for ac_header in kerberos/des.h
20866 do
20867 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20869 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20872 echo $ECHO_N "(cached) $ECHO_C" >&6
20873 fi
20874 ac_res=`eval echo '${'$as_ac_Header'}'`
20875 { echo "$as_me:$LINENO: result: $ac_res" >&5
20876 echo "${ECHO_T}$ac_res" >&6; }
20877 else
20878 # Is the header compilable?
20879 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20880 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20881 cat >conftest.$ac_ext <<_ACEOF
20882 /* confdefs.h. */
20883 _ACEOF
20884 cat confdefs.h >>conftest.$ac_ext
20885 cat >>conftest.$ac_ext <<_ACEOF
20886 /* end confdefs.h. */
20887 $ac_includes_default
20888 #include <$ac_header>
20889 _ACEOF
20890 rm -f conftest.$ac_objext
20891 if { (ac_try="$ac_compile"
20892 case "(($ac_try" in
20893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20894 *) ac_try_echo=$ac_try;;
20895 esac
20896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20897 (eval "$ac_compile") 2>conftest.er1
20898 ac_status=$?
20899 grep -v '^ *+' conftest.er1 >conftest.err
20900 rm -f conftest.er1
20901 cat conftest.err >&5
20902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); } && {
20904 test -z "$ac_c_werror_flag" ||
20905 test ! -s conftest.err
20906 } && test -s conftest.$ac_objext; then
20907 ac_header_compiler=yes
20908 else
20909 echo "$as_me: failed program was:" >&5
20910 sed 's/^/| /' conftest.$ac_ext >&5
20911
20912 ac_header_compiler=no
20913 fi
20914
20915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20916 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20917 echo "${ECHO_T}$ac_header_compiler" >&6; }
20918
20919 # Is the header present?
20920 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20921 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20922 cat >conftest.$ac_ext <<_ACEOF
20923 /* confdefs.h. */
20924 _ACEOF
20925 cat confdefs.h >>conftest.$ac_ext
20926 cat >>conftest.$ac_ext <<_ACEOF
20927 /* end confdefs.h. */
20928 #include <$ac_header>
20929 _ACEOF
20930 if { (ac_try="$ac_cpp conftest.$ac_ext"
20931 case "(($ac_try" in
20932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20933 *) ac_try_echo=$ac_try;;
20934 esac
20935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20936 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20937 ac_status=$?
20938 grep -v '^ *+' conftest.er1 >conftest.err
20939 rm -f conftest.er1
20940 cat conftest.err >&5
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); } >/dev/null && {
20943 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20944 test ! -s conftest.err
20945 }; then
20946 ac_header_preproc=yes
20947 else
20948 echo "$as_me: failed program was:" >&5
20949 sed 's/^/| /' conftest.$ac_ext >&5
20950
20951 ac_header_preproc=no
20952 fi
20953
20954 rm -f conftest.err conftest.$ac_ext
20955 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20956 echo "${ECHO_T}$ac_header_preproc" >&6; }
20957
20958 # So? What about this header?
20959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20960 yes:no: )
20961 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20962 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20964 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20965 ac_header_preproc=yes
20966 ;;
20967 no:yes:* )
20968 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20969 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20970 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20971 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20972 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20973 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20974 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20975 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20977 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20978 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20979 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20980
20981 ;;
20982 esac
20983 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20986 echo $ECHO_N "(cached) $ECHO_C" >&6
20987 else
20988 eval "$as_ac_Header=\$ac_header_preproc"
20989 fi
20990 ac_res=`eval echo '${'$as_ac_Header'}'`
20991 { echo "$as_me:$LINENO: result: $ac_res" >&5
20992 echo "${ECHO_T}$ac_res" >&6; }
20993
20994 fi
20995 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20996 cat >>confdefs.h <<_ACEOF
20997 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20998 _ACEOF
20999
21000 fi
21001
21002 done
21003
21004 fi
21005
21006 done
21007
21008 fi
21009
21010 done
21011
21012
21013 for ac_header in krb.h
21014 do
21015 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21017 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21019 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21020 echo $ECHO_N "(cached) $ECHO_C" >&6
21021 fi
21022 ac_res=`eval echo '${'$as_ac_Header'}'`
21023 { echo "$as_me:$LINENO: result: $ac_res" >&5
21024 echo "${ECHO_T}$ac_res" >&6; }
21025 else
21026 # Is the header compilable?
21027 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21028 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21029 cat >conftest.$ac_ext <<_ACEOF
21030 /* confdefs.h. */
21031 _ACEOF
21032 cat confdefs.h >>conftest.$ac_ext
21033 cat >>conftest.$ac_ext <<_ACEOF
21034 /* end confdefs.h. */
21035 $ac_includes_default
21036 #include <$ac_header>
21037 _ACEOF
21038 rm -f conftest.$ac_objext
21039 if { (ac_try="$ac_compile"
21040 case "(($ac_try" in
21041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21042 *) ac_try_echo=$ac_try;;
21043 esac
21044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21045 (eval "$ac_compile") 2>conftest.er1
21046 ac_status=$?
21047 grep -v '^ *+' conftest.er1 >conftest.err
21048 rm -f conftest.er1
21049 cat conftest.err >&5
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); } && {
21052 test -z "$ac_c_werror_flag" ||
21053 test ! -s conftest.err
21054 } && test -s conftest.$ac_objext; then
21055 ac_header_compiler=yes
21056 else
21057 echo "$as_me: failed program was:" >&5
21058 sed 's/^/| /' conftest.$ac_ext >&5
21059
21060 ac_header_compiler=no
21061 fi
21062
21063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21064 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21065 echo "${ECHO_T}$ac_header_compiler" >&6; }
21066
21067 # Is the header present?
21068 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21069 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21070 cat >conftest.$ac_ext <<_ACEOF
21071 /* confdefs.h. */
21072 _ACEOF
21073 cat confdefs.h >>conftest.$ac_ext
21074 cat >>conftest.$ac_ext <<_ACEOF
21075 /* end confdefs.h. */
21076 #include <$ac_header>
21077 _ACEOF
21078 if { (ac_try="$ac_cpp conftest.$ac_ext"
21079 case "(($ac_try" in
21080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21081 *) ac_try_echo=$ac_try;;
21082 esac
21083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21084 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21085 ac_status=$?
21086 grep -v '^ *+' conftest.er1 >conftest.err
21087 rm -f conftest.er1
21088 cat conftest.err >&5
21089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090 (exit $ac_status); } >/dev/null && {
21091 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21092 test ! -s conftest.err
21093 }; then
21094 ac_header_preproc=yes
21095 else
21096 echo "$as_me: failed program was:" >&5
21097 sed 's/^/| /' conftest.$ac_ext >&5
21098
21099 ac_header_preproc=no
21100 fi
21101
21102 rm -f conftest.err conftest.$ac_ext
21103 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21104 echo "${ECHO_T}$ac_header_preproc" >&6; }
21105
21106 # So? What about this header?
21107 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21108 yes:no: )
21109 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21110 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21112 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21113 ac_header_preproc=yes
21114 ;;
21115 no:yes:* )
21116 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21117 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21118 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21119 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21120 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21121 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21122 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21123 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21126 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21127 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21128
21129 ;;
21130 esac
21131 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21134 echo $ECHO_N "(cached) $ECHO_C" >&6
21135 else
21136 eval "$as_ac_Header=\$ac_header_preproc"
21137 fi
21138 ac_res=`eval echo '${'$as_ac_Header'}'`
21139 { echo "$as_me:$LINENO: result: $ac_res" >&5
21140 echo "${ECHO_T}$ac_res" >&6; }
21141
21142 fi
21143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21144 cat >>confdefs.h <<_ACEOF
21145 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21146 _ACEOF
21147
21148 else
21149
21150 for ac_header in kerberosIV/krb.h
21151 do
21152 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21154 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21157 echo $ECHO_N "(cached) $ECHO_C" >&6
21158 fi
21159 ac_res=`eval echo '${'$as_ac_Header'}'`
21160 { echo "$as_me:$LINENO: result: $ac_res" >&5
21161 echo "${ECHO_T}$ac_res" >&6; }
21162 else
21163 # Is the header compilable?
21164 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21165 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21166 cat >conftest.$ac_ext <<_ACEOF
21167 /* confdefs.h. */
21168 _ACEOF
21169 cat confdefs.h >>conftest.$ac_ext
21170 cat >>conftest.$ac_ext <<_ACEOF
21171 /* end confdefs.h. */
21172 $ac_includes_default
21173 #include <$ac_header>
21174 _ACEOF
21175 rm -f conftest.$ac_objext
21176 if { (ac_try="$ac_compile"
21177 case "(($ac_try" in
21178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21179 *) ac_try_echo=$ac_try;;
21180 esac
21181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21182 (eval "$ac_compile") 2>conftest.er1
21183 ac_status=$?
21184 grep -v '^ *+' conftest.er1 >conftest.err
21185 rm -f conftest.er1
21186 cat conftest.err >&5
21187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21188 (exit $ac_status); } && {
21189 test -z "$ac_c_werror_flag" ||
21190 test ! -s conftest.err
21191 } && test -s conftest.$ac_objext; then
21192 ac_header_compiler=yes
21193 else
21194 echo "$as_me: failed program was:" >&5
21195 sed 's/^/| /' conftest.$ac_ext >&5
21196
21197 ac_header_compiler=no
21198 fi
21199
21200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21201 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21202 echo "${ECHO_T}$ac_header_compiler" >&6; }
21203
21204 # Is the header present?
21205 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21206 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21207 cat >conftest.$ac_ext <<_ACEOF
21208 /* confdefs.h. */
21209 _ACEOF
21210 cat confdefs.h >>conftest.$ac_ext
21211 cat >>conftest.$ac_ext <<_ACEOF
21212 /* end confdefs.h. */
21213 #include <$ac_header>
21214 _ACEOF
21215 if { (ac_try="$ac_cpp conftest.$ac_ext"
21216 case "(($ac_try" in
21217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21218 *) ac_try_echo=$ac_try;;
21219 esac
21220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21222 ac_status=$?
21223 grep -v '^ *+' conftest.er1 >conftest.err
21224 rm -f conftest.er1
21225 cat conftest.err >&5
21226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227 (exit $ac_status); } >/dev/null && {
21228 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21229 test ! -s conftest.err
21230 }; then
21231 ac_header_preproc=yes
21232 else
21233 echo "$as_me: failed program was:" >&5
21234 sed 's/^/| /' conftest.$ac_ext >&5
21235
21236 ac_header_preproc=no
21237 fi
21238
21239 rm -f conftest.err conftest.$ac_ext
21240 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21241 echo "${ECHO_T}$ac_header_preproc" >&6; }
21242
21243 # So? What about this header?
21244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21245 yes:no: )
21246 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21247 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21249 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21250 ac_header_preproc=yes
21251 ;;
21252 no:yes:* )
21253 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21254 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21255 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21256 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21257 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21258 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21259 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21260 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21262 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21263 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21264 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21265
21266 ;;
21267 esac
21268 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21271 echo $ECHO_N "(cached) $ECHO_C" >&6
21272 else
21273 eval "$as_ac_Header=\$ac_header_preproc"
21274 fi
21275 ac_res=`eval echo '${'$as_ac_Header'}'`
21276 { echo "$as_me:$LINENO: result: $ac_res" >&5
21277 echo "${ECHO_T}$ac_res" >&6; }
21278
21279 fi
21280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21281 cat >>confdefs.h <<_ACEOF
21282 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21283 _ACEOF
21284
21285 else
21286
21287 for ac_header in kerberos/krb.h
21288 do
21289 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21291 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21294 echo $ECHO_N "(cached) $ECHO_C" >&6
21295 fi
21296 ac_res=`eval echo '${'$as_ac_Header'}'`
21297 { echo "$as_me:$LINENO: result: $ac_res" >&5
21298 echo "${ECHO_T}$ac_res" >&6; }
21299 else
21300 # Is the header compilable?
21301 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21302 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21303 cat >conftest.$ac_ext <<_ACEOF
21304 /* confdefs.h. */
21305 _ACEOF
21306 cat confdefs.h >>conftest.$ac_ext
21307 cat >>conftest.$ac_ext <<_ACEOF
21308 /* end confdefs.h. */
21309 $ac_includes_default
21310 #include <$ac_header>
21311 _ACEOF
21312 rm -f conftest.$ac_objext
21313 if { (ac_try="$ac_compile"
21314 case "(($ac_try" in
21315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21316 *) ac_try_echo=$ac_try;;
21317 esac
21318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21319 (eval "$ac_compile") 2>conftest.er1
21320 ac_status=$?
21321 grep -v '^ *+' conftest.er1 >conftest.err
21322 rm -f conftest.er1
21323 cat conftest.err >&5
21324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325 (exit $ac_status); } && {
21326 test -z "$ac_c_werror_flag" ||
21327 test ! -s conftest.err
21328 } && test -s conftest.$ac_objext; then
21329 ac_header_compiler=yes
21330 else
21331 echo "$as_me: failed program was:" >&5
21332 sed 's/^/| /' conftest.$ac_ext >&5
21333
21334 ac_header_compiler=no
21335 fi
21336
21337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21338 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21339 echo "${ECHO_T}$ac_header_compiler" >&6; }
21340
21341 # Is the header present?
21342 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21343 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21344 cat >conftest.$ac_ext <<_ACEOF
21345 /* confdefs.h. */
21346 _ACEOF
21347 cat confdefs.h >>conftest.$ac_ext
21348 cat >>conftest.$ac_ext <<_ACEOF
21349 /* end confdefs.h. */
21350 #include <$ac_header>
21351 _ACEOF
21352 if { (ac_try="$ac_cpp conftest.$ac_ext"
21353 case "(($ac_try" in
21354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21355 *) ac_try_echo=$ac_try;;
21356 esac
21357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21359 ac_status=$?
21360 grep -v '^ *+' conftest.er1 >conftest.err
21361 rm -f conftest.er1
21362 cat conftest.err >&5
21363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364 (exit $ac_status); } >/dev/null && {
21365 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21366 test ! -s conftest.err
21367 }; then
21368 ac_header_preproc=yes
21369 else
21370 echo "$as_me: failed program was:" >&5
21371 sed 's/^/| /' conftest.$ac_ext >&5
21372
21373 ac_header_preproc=no
21374 fi
21375
21376 rm -f conftest.err conftest.$ac_ext
21377 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21378 echo "${ECHO_T}$ac_header_preproc" >&6; }
21379
21380 # So? What about this header?
21381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21382 yes:no: )
21383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21386 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21387 ac_header_preproc=yes
21388 ;;
21389 no:yes:* )
21390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21391 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21393 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21394 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21395 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21396 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21397 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21400 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21401 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21402
21403 ;;
21404 esac
21405 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21408 echo $ECHO_N "(cached) $ECHO_C" >&6
21409 else
21410 eval "$as_ac_Header=\$ac_header_preproc"
21411 fi
21412 ac_res=`eval echo '${'$as_ac_Header'}'`
21413 { echo "$as_me:$LINENO: result: $ac_res" >&5
21414 echo "${ECHO_T}$ac_res" >&6; }
21415
21416 fi
21417 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21418 cat >>confdefs.h <<_ACEOF
21419 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21420 _ACEOF
21421
21422 fi
21423
21424 done
21425
21426 fi
21427
21428 done
21429
21430 fi
21431
21432 done
21433
21434 fi
21435
21436 for ac_header in com_err.h
21437 do
21438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21440 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21443 echo $ECHO_N "(cached) $ECHO_C" >&6
21444 fi
21445 ac_res=`eval echo '${'$as_ac_Header'}'`
21446 { echo "$as_me:$LINENO: result: $ac_res" >&5
21447 echo "${ECHO_T}$ac_res" >&6; }
21448 else
21449 # Is the header compilable?
21450 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21451 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21452 cat >conftest.$ac_ext <<_ACEOF
21453 /* confdefs.h. */
21454 _ACEOF
21455 cat confdefs.h >>conftest.$ac_ext
21456 cat >>conftest.$ac_ext <<_ACEOF
21457 /* end confdefs.h. */
21458 $ac_includes_default
21459 #include <$ac_header>
21460 _ACEOF
21461 rm -f conftest.$ac_objext
21462 if { (ac_try="$ac_compile"
21463 case "(($ac_try" in
21464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21465 *) ac_try_echo=$ac_try;;
21466 esac
21467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21468 (eval "$ac_compile") 2>conftest.er1
21469 ac_status=$?
21470 grep -v '^ *+' conftest.er1 >conftest.err
21471 rm -f conftest.er1
21472 cat conftest.err >&5
21473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); } && {
21475 test -z "$ac_c_werror_flag" ||
21476 test ! -s conftest.err
21477 } && test -s conftest.$ac_objext; then
21478 ac_header_compiler=yes
21479 else
21480 echo "$as_me: failed program was:" >&5
21481 sed 's/^/| /' conftest.$ac_ext >&5
21482
21483 ac_header_compiler=no
21484 fi
21485
21486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21487 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21488 echo "${ECHO_T}$ac_header_compiler" >&6; }
21489
21490 # Is the header present?
21491 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21493 cat >conftest.$ac_ext <<_ACEOF
21494 /* confdefs.h. */
21495 _ACEOF
21496 cat confdefs.h >>conftest.$ac_ext
21497 cat >>conftest.$ac_ext <<_ACEOF
21498 /* end confdefs.h. */
21499 #include <$ac_header>
21500 _ACEOF
21501 if { (ac_try="$ac_cpp conftest.$ac_ext"
21502 case "(($ac_try" in
21503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21504 *) ac_try_echo=$ac_try;;
21505 esac
21506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21508 ac_status=$?
21509 grep -v '^ *+' conftest.er1 >conftest.err
21510 rm -f conftest.er1
21511 cat conftest.err >&5
21512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21513 (exit $ac_status); } >/dev/null && {
21514 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21515 test ! -s conftest.err
21516 }; then
21517 ac_header_preproc=yes
21518 else
21519 echo "$as_me: failed program was:" >&5
21520 sed 's/^/| /' conftest.$ac_ext >&5
21521
21522 ac_header_preproc=no
21523 fi
21524
21525 rm -f conftest.err conftest.$ac_ext
21526 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21527 echo "${ECHO_T}$ac_header_preproc" >&6; }
21528
21529 # So? What about this header?
21530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21531 yes:no: )
21532 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21533 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21535 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21536 ac_header_preproc=yes
21537 ;;
21538 no:yes:* )
21539 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21540 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21541 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21542 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21543 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21544 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21545 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21546 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21548 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21549 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21550 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21551
21552 ;;
21553 esac
21554 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21557 echo $ECHO_N "(cached) $ECHO_C" >&6
21558 else
21559 eval "$as_ac_Header=\$ac_header_preproc"
21560 fi
21561 ac_res=`eval echo '${'$as_ac_Header'}'`
21562 { echo "$as_me:$LINENO: result: $ac_res" >&5
21563 echo "${ECHO_T}$ac_res" >&6; }
21564
21565 fi
21566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21567 cat >>confdefs.h <<_ACEOF
21568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21569 _ACEOF
21570
21571 fi
21572
21573 done
21574
21575 fi
21576
21577 # Solaris requires -lintl if you want strerror (which calls dgettext)
21578 # to return localized messages.
21579
21580 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21581 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21582 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21583 echo $ECHO_N "(cached) $ECHO_C" >&6
21584 else
21585 ac_check_lib_save_LIBS=$LIBS
21586 LIBS="-lintl $LIBS"
21587 cat >conftest.$ac_ext <<_ACEOF
21588 /* confdefs.h. */
21589 _ACEOF
21590 cat confdefs.h >>conftest.$ac_ext
21591 cat >>conftest.$ac_ext <<_ACEOF
21592 /* end confdefs.h. */
21593
21594 /* Override any GCC internal prototype to avoid an error.
21595 Use char because int might match the return type of a GCC
21596 builtin and then its argument prototype would still apply. */
21597 #ifdef __cplusplus
21598 extern "C"
21599 #endif
21600 char dgettext ();
21601 int
21602 main ()
21603 {
21604 return dgettext ();
21605 ;
21606 return 0;
21607 }
21608 _ACEOF
21609 rm -f conftest.$ac_objext conftest$ac_exeext
21610 if { (ac_try="$ac_link"
21611 case "(($ac_try" in
21612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21613 *) ac_try_echo=$ac_try;;
21614 esac
21615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21616 (eval "$ac_link") 2>conftest.er1
21617 ac_status=$?
21618 grep -v '^ *+' conftest.er1 >conftest.err
21619 rm -f conftest.er1
21620 cat conftest.err >&5
21621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622 (exit $ac_status); } && {
21623 test -z "$ac_c_werror_flag" ||
21624 test ! -s conftest.err
21625 } && test -s conftest$ac_exeext &&
21626 $as_test_x conftest$ac_exeext; then
21627 ac_cv_lib_intl_dgettext=yes
21628 else
21629 echo "$as_me: failed program was:" >&5
21630 sed 's/^/| /' conftest.$ac_ext >&5
21631
21632 ac_cv_lib_intl_dgettext=no
21633 fi
21634
21635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21636 conftest$ac_exeext conftest.$ac_ext
21637 LIBS=$ac_check_lib_save_LIBS
21638 fi
21639 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21640 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21641 if test $ac_cv_lib_intl_dgettext = yes; then
21642 cat >>confdefs.h <<_ACEOF
21643 #define HAVE_LIBINTL 1
21644 _ACEOF
21645
21646 LIBS="-lintl $LIBS"
21647
21648 fi
21649
21650
21651 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21652 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
21653 if test "${emacs_cv_localtime_cache+set}" = set; then
21654 echo $ECHO_N "(cached) $ECHO_C" >&6
21655 else
21656 if test x$ac_cv_func_tzset = xyes; then
21657 if test "$cross_compiling" = yes; then
21658 # If we have tzset, assume the worst when cross-compiling.
21659 emacs_cv_localtime_cache=yes
21660 else
21661 cat >conftest.$ac_ext <<_ACEOF
21662 /* confdefs.h. */
21663 _ACEOF
21664 cat confdefs.h >>conftest.$ac_ext
21665 cat >>conftest.$ac_ext <<_ACEOF
21666 /* end confdefs.h. */
21667 #include <time.h>
21668 extern char **environ;
21669 unset_TZ ()
21670 {
21671 char **from, **to;
21672 for (to = from = environ; (*to = *from); from++)
21673 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21674 to++;
21675 }
21676 char TZ_GMT0[] = "TZ=GMT0";
21677 char TZ_PST8[] = "TZ=PST8";
21678 main()
21679 {
21680 time_t now = time ((time_t *) 0);
21681 int hour_GMT0, hour_unset;
21682 if (putenv (TZ_GMT0) != 0)
21683 exit (1);
21684 hour_GMT0 = localtime (&now)->tm_hour;
21685 unset_TZ ();
21686 hour_unset = localtime (&now)->tm_hour;
21687 if (putenv (TZ_PST8) != 0)
21688 exit (1);
21689 if (localtime (&now)->tm_hour == hour_GMT0)
21690 exit (1);
21691 unset_TZ ();
21692 if (localtime (&now)->tm_hour != hour_unset)
21693 exit (1);
21694 exit (0);
21695 }
21696 _ACEOF
21697 rm -f conftest$ac_exeext
21698 if { (ac_try="$ac_link"
21699 case "(($ac_try" in
21700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21701 *) ac_try_echo=$ac_try;;
21702 esac
21703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21704 (eval "$ac_link") 2>&5
21705 ac_status=$?
21706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21708 { (case "(($ac_try" in
21709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21710 *) ac_try_echo=$ac_try;;
21711 esac
21712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21713 (eval "$ac_try") 2>&5
21714 ac_status=$?
21715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716 (exit $ac_status); }; }; then
21717 emacs_cv_localtime_cache=no
21718 else
21719 echo "$as_me: program exited with status $ac_status" >&5
21720 echo "$as_me: failed program was:" >&5
21721 sed 's/^/| /' conftest.$ac_ext >&5
21722
21723 ( exit $ac_status )
21724 emacs_cv_localtime_cache=yes
21725 fi
21726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21727 fi
21728
21729
21730 else
21731 # If we lack tzset, report that localtime does not cache TZ,
21732 # since we can't invalidate the cache if we don't have tzset.
21733 emacs_cv_localtime_cache=no
21734 fi
21735 fi
21736 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
21737 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21738 if test $emacs_cv_localtime_cache = yes; then
21739
21740 cat >>confdefs.h <<\_ACEOF
21741 #define LOCALTIME_CACHE 1
21742 _ACEOF
21743
21744 fi
21745
21746 if test "x$HAVE_TIMEVAL" = xyes; then
21747
21748 for ac_func in gettimeofday
21749 do
21750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21751 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21753 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21754 echo $ECHO_N "(cached) $ECHO_C" >&6
21755 else
21756 cat >conftest.$ac_ext <<_ACEOF
21757 /* confdefs.h. */
21758 _ACEOF
21759 cat confdefs.h >>conftest.$ac_ext
21760 cat >>conftest.$ac_ext <<_ACEOF
21761 /* end confdefs.h. */
21762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21764 #define $ac_func innocuous_$ac_func
21765
21766 /* System header to define __stub macros and hopefully few prototypes,
21767 which can conflict with char $ac_func (); below.
21768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21769 <limits.h> exists even on freestanding compilers. */
21770
21771 #ifdef __STDC__
21772 # include <limits.h>
21773 #else
21774 # include <assert.h>
21775 #endif
21776
21777 #undef $ac_func
21778
21779 /* Override any GCC internal prototype to avoid an error.
21780 Use char because int might match the return type of a GCC
21781 builtin and then its argument prototype would still apply. */
21782 #ifdef __cplusplus
21783 extern "C"
21784 #endif
21785 char $ac_func ();
21786 /* The GNU C library defines this for functions which it implements
21787 to always fail with ENOSYS. Some functions are actually named
21788 something starting with __ and the normal name is an alias. */
21789 #if defined __stub_$ac_func || defined __stub___$ac_func
21790 choke me
21791 #endif
21792
21793 int
21794 main ()
21795 {
21796 return $ac_func ();
21797 ;
21798 return 0;
21799 }
21800 _ACEOF
21801 rm -f conftest.$ac_objext conftest$ac_exeext
21802 if { (ac_try="$ac_link"
21803 case "(($ac_try" in
21804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21805 *) ac_try_echo=$ac_try;;
21806 esac
21807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21808 (eval "$ac_link") 2>conftest.er1
21809 ac_status=$?
21810 grep -v '^ *+' conftest.er1 >conftest.err
21811 rm -f conftest.er1
21812 cat conftest.err >&5
21813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21814 (exit $ac_status); } && {
21815 test -z "$ac_c_werror_flag" ||
21816 test ! -s conftest.err
21817 } && test -s conftest$ac_exeext &&
21818 $as_test_x conftest$ac_exeext; then
21819 eval "$as_ac_var=yes"
21820 else
21821 echo "$as_me: failed program was:" >&5
21822 sed 's/^/| /' conftest.$ac_ext >&5
21823
21824 eval "$as_ac_var=no"
21825 fi
21826
21827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21828 conftest$ac_exeext conftest.$ac_ext
21829 fi
21830 ac_res=`eval echo '${'$as_ac_var'}'`
21831 { echo "$as_me:$LINENO: result: $ac_res" >&5
21832 echo "${ECHO_T}$ac_res" >&6; }
21833 if test `eval echo '${'$as_ac_var'}'` = yes; then
21834 cat >>confdefs.h <<_ACEOF
21835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21836 _ACEOF
21837
21838 fi
21839 done
21840
21841 if test $ac_cv_func_gettimeofday = yes; then
21842 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21843 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
21844 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21845 echo $ECHO_N "(cached) $ECHO_C" >&6
21846 else
21847 cat >conftest.$ac_ext <<_ACEOF
21848 /* confdefs.h. */
21849 _ACEOF
21850 cat confdefs.h >>conftest.$ac_ext
21851 cat >>conftest.$ac_ext <<_ACEOF
21852 /* end confdefs.h. */
21853
21854 #ifdef TIME_WITH_SYS_TIME
21855 #include <sys/time.h>
21856 #include <time.h>
21857 #else
21858 #ifdef HAVE_SYS_TIME_H
21859 #include <sys/time.h>
21860 #else
21861 #include <time.h>
21862 #endif
21863 #endif
21864 int
21865 main ()
21866 {
21867 struct timeval time;
21868 gettimeofday (&time, 0);
21869 ;
21870 return 0;
21871 }
21872 _ACEOF
21873 rm -f conftest.$ac_objext
21874 if { (ac_try="$ac_compile"
21875 case "(($ac_try" in
21876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21877 *) ac_try_echo=$ac_try;;
21878 esac
21879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21880 (eval "$ac_compile") 2>conftest.er1
21881 ac_status=$?
21882 grep -v '^ *+' conftest.er1 >conftest.err
21883 rm -f conftest.er1
21884 cat conftest.err >&5
21885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886 (exit $ac_status); } && {
21887 test -z "$ac_c_werror_flag" ||
21888 test ! -s conftest.err
21889 } && test -s conftest.$ac_objext; then
21890 emacs_cv_gettimeofday_two_arguments=yes
21891 else
21892 echo "$as_me: failed program was:" >&5
21893 sed 's/^/| /' conftest.$ac_ext >&5
21894
21895 emacs_cv_gettimeofday_two_arguments=no
21896 fi
21897
21898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21899 fi
21900 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21901 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21902 if test $emacs_cv_gettimeofday_two_arguments = no; then
21903
21904 cat >>confdefs.h <<\_ACEOF
21905 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21906 _ACEOF
21907
21908 fi
21909 fi
21910 fi
21911
21912 ok_so_far=yes
21913 { echo "$as_me:$LINENO: checking for socket" >&5
21914 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
21915 if test "${ac_cv_func_socket+set}" = set; then
21916 echo $ECHO_N "(cached) $ECHO_C" >&6
21917 else
21918 cat >conftest.$ac_ext <<_ACEOF
21919 /* confdefs.h. */
21920 _ACEOF
21921 cat confdefs.h >>conftest.$ac_ext
21922 cat >>conftest.$ac_ext <<_ACEOF
21923 /* end confdefs.h. */
21924 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21926 #define socket innocuous_socket
21927
21928 /* System header to define __stub macros and hopefully few prototypes,
21929 which can conflict with char socket (); below.
21930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21931 <limits.h> exists even on freestanding compilers. */
21932
21933 #ifdef __STDC__
21934 # include <limits.h>
21935 #else
21936 # include <assert.h>
21937 #endif
21938
21939 #undef socket
21940
21941 /* Override any GCC internal prototype to avoid an error.
21942 Use char because int might match the return type of a GCC
21943 builtin and then its argument prototype would still apply. */
21944 #ifdef __cplusplus
21945 extern "C"
21946 #endif
21947 char socket ();
21948 /* The GNU C library defines this for functions which it implements
21949 to always fail with ENOSYS. Some functions are actually named
21950 something starting with __ and the normal name is an alias. */
21951 #if defined __stub_socket || defined __stub___socket
21952 choke me
21953 #endif
21954
21955 int
21956 main ()
21957 {
21958 return socket ();
21959 ;
21960 return 0;
21961 }
21962 _ACEOF
21963 rm -f conftest.$ac_objext conftest$ac_exeext
21964 if { (ac_try="$ac_link"
21965 case "(($ac_try" in
21966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21967 *) ac_try_echo=$ac_try;;
21968 esac
21969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21970 (eval "$ac_link") 2>conftest.er1
21971 ac_status=$?
21972 grep -v '^ *+' conftest.er1 >conftest.err
21973 rm -f conftest.er1
21974 cat conftest.err >&5
21975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976 (exit $ac_status); } && {
21977 test -z "$ac_c_werror_flag" ||
21978 test ! -s conftest.err
21979 } && test -s conftest$ac_exeext &&
21980 $as_test_x conftest$ac_exeext; then
21981 ac_cv_func_socket=yes
21982 else
21983 echo "$as_me: failed program was:" >&5
21984 sed 's/^/| /' conftest.$ac_ext >&5
21985
21986 ac_cv_func_socket=no
21987 fi
21988
21989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21990 conftest$ac_exeext conftest.$ac_ext
21991 fi
21992 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21993 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21994 if test $ac_cv_func_socket = yes; then
21995 :
21996 else
21997 ok_so_far=no
21998 fi
21999
22000 if test $ok_so_far = yes; then
22001 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22002 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22003 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22004 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22005 echo $ECHO_N "(cached) $ECHO_C" >&6
22006 fi
22007 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22008 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22009 else
22010 # Is the header compilable?
22011 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22012 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22013 cat >conftest.$ac_ext <<_ACEOF
22014 /* confdefs.h. */
22015 _ACEOF
22016 cat confdefs.h >>conftest.$ac_ext
22017 cat >>conftest.$ac_ext <<_ACEOF
22018 /* end confdefs.h. */
22019 $ac_includes_default
22020 #include <netinet/in.h>
22021 _ACEOF
22022 rm -f conftest.$ac_objext
22023 if { (ac_try="$ac_compile"
22024 case "(($ac_try" in
22025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22026 *) ac_try_echo=$ac_try;;
22027 esac
22028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22029 (eval "$ac_compile") 2>conftest.er1
22030 ac_status=$?
22031 grep -v '^ *+' conftest.er1 >conftest.err
22032 rm -f conftest.er1
22033 cat conftest.err >&5
22034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035 (exit $ac_status); } && {
22036 test -z "$ac_c_werror_flag" ||
22037 test ! -s conftest.err
22038 } && test -s conftest.$ac_objext; then
22039 ac_header_compiler=yes
22040 else
22041 echo "$as_me: failed program was:" >&5
22042 sed 's/^/| /' conftest.$ac_ext >&5
22043
22044 ac_header_compiler=no
22045 fi
22046
22047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22048 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22049 echo "${ECHO_T}$ac_header_compiler" >&6; }
22050
22051 # Is the header present?
22052 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22053 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22054 cat >conftest.$ac_ext <<_ACEOF
22055 /* confdefs.h. */
22056 _ACEOF
22057 cat confdefs.h >>conftest.$ac_ext
22058 cat >>conftest.$ac_ext <<_ACEOF
22059 /* end confdefs.h. */
22060 #include <netinet/in.h>
22061 _ACEOF
22062 if { (ac_try="$ac_cpp conftest.$ac_ext"
22063 case "(($ac_try" in
22064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22065 *) ac_try_echo=$ac_try;;
22066 esac
22067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22069 ac_status=$?
22070 grep -v '^ *+' conftest.er1 >conftest.err
22071 rm -f conftest.er1
22072 cat conftest.err >&5
22073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074 (exit $ac_status); } >/dev/null && {
22075 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22076 test ! -s conftest.err
22077 }; then
22078 ac_header_preproc=yes
22079 else
22080 echo "$as_me: failed program was:" >&5
22081 sed 's/^/| /' conftest.$ac_ext >&5
22082
22083 ac_header_preproc=no
22084 fi
22085
22086 rm -f conftest.err conftest.$ac_ext
22087 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22088 echo "${ECHO_T}$ac_header_preproc" >&6; }
22089
22090 # So? What about this header?
22091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22092 yes:no: )
22093 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22094 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22095 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22096 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22097 ac_header_preproc=yes
22098 ;;
22099 no:yes:* )
22100 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22101 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22102 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22103 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22104 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22105 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22106 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22107 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22108 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22109 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22110 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22111 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22112
22113 ;;
22114 esac
22115 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22116 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22117 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22118 echo $ECHO_N "(cached) $ECHO_C" >&6
22119 else
22120 ac_cv_header_netinet_in_h=$ac_header_preproc
22121 fi
22122 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22123 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22124
22125 fi
22126 if test $ac_cv_header_netinet_in_h = yes; then
22127 :
22128 else
22129 ok_so_far=no
22130 fi
22131
22132
22133 fi
22134 if test $ok_so_far = yes; then
22135 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22136 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22137 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22138 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22139 echo $ECHO_N "(cached) $ECHO_C" >&6
22140 fi
22141 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22142 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22143 else
22144 # Is the header compilable?
22145 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22146 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
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 $ac_includes_default
22154 #include <arpa/inet.h>
22155 _ACEOF
22156 rm -f conftest.$ac_objext
22157 if { (ac_try="$ac_compile"
22158 case "(($ac_try" in
22159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22160 *) ac_try_echo=$ac_try;;
22161 esac
22162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22163 (eval "$ac_compile") 2>conftest.er1
22164 ac_status=$?
22165 grep -v '^ *+' conftest.er1 >conftest.err
22166 rm -f conftest.er1
22167 cat conftest.err >&5
22168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22169 (exit $ac_status); } && {
22170 test -z "$ac_c_werror_flag" ||
22171 test ! -s conftest.err
22172 } && test -s conftest.$ac_objext; then
22173 ac_header_compiler=yes
22174 else
22175 echo "$as_me: failed program was:" >&5
22176 sed 's/^/| /' conftest.$ac_ext >&5
22177
22178 ac_header_compiler=no
22179 fi
22180
22181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22182 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22183 echo "${ECHO_T}$ac_header_compiler" >&6; }
22184
22185 # Is the header present?
22186 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22187 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22188 cat >conftest.$ac_ext <<_ACEOF
22189 /* confdefs.h. */
22190 _ACEOF
22191 cat confdefs.h >>conftest.$ac_ext
22192 cat >>conftest.$ac_ext <<_ACEOF
22193 /* end confdefs.h. */
22194 #include <arpa/inet.h>
22195 _ACEOF
22196 if { (ac_try="$ac_cpp conftest.$ac_ext"
22197 case "(($ac_try" in
22198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22199 *) ac_try_echo=$ac_try;;
22200 esac
22201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22202 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22203 ac_status=$?
22204 grep -v '^ *+' conftest.er1 >conftest.err
22205 rm -f conftest.er1
22206 cat conftest.err >&5
22207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208 (exit $ac_status); } >/dev/null && {
22209 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22210 test ! -s conftest.err
22211 }; then
22212 ac_header_preproc=yes
22213 else
22214 echo "$as_me: failed program was:" >&5
22215 sed 's/^/| /' conftest.$ac_ext >&5
22216
22217 ac_header_preproc=no
22218 fi
22219
22220 rm -f conftest.err conftest.$ac_ext
22221 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22222 echo "${ECHO_T}$ac_header_preproc" >&6; }
22223
22224 # So? What about this header?
22225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22226 yes:no: )
22227 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22228 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22229 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22230 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22231 ac_header_preproc=yes
22232 ;;
22233 no:yes:* )
22234 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22235 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22236 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22237 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22238 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22239 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22240 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22241 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22242 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22243 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22244 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22245 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22246
22247 ;;
22248 esac
22249 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22250 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22251 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22252 echo $ECHO_N "(cached) $ECHO_C" >&6
22253 else
22254 ac_cv_header_arpa_inet_h=$ac_header_preproc
22255 fi
22256 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22257 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22258
22259 fi
22260 if test $ac_cv_header_arpa_inet_h = yes; then
22261 :
22262 else
22263 ok_so_far=no
22264 fi
22265
22266
22267 fi
22268 if test $ok_so_far = yes; then
22269
22270 cat >>confdefs.h <<\_ACEOF
22271 #define HAVE_INET_SOCKETS 1
22272 _ACEOF
22273
22274 fi
22275
22276
22277 for ac_header in sys/ioctl.h
22278 do
22279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22281 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22284 echo $ECHO_N "(cached) $ECHO_C" >&6
22285 fi
22286 ac_res=`eval echo '${'$as_ac_Header'}'`
22287 { echo "$as_me:$LINENO: result: $ac_res" >&5
22288 echo "${ECHO_T}$ac_res" >&6; }
22289 else
22290 # Is the header compilable?
22291 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22292 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22293 cat >conftest.$ac_ext <<_ACEOF
22294 /* confdefs.h. */
22295 _ACEOF
22296 cat confdefs.h >>conftest.$ac_ext
22297 cat >>conftest.$ac_ext <<_ACEOF
22298 /* end confdefs.h. */
22299 $ac_includes_default
22300 #include <$ac_header>
22301 _ACEOF
22302 rm -f conftest.$ac_objext
22303 if { (ac_try="$ac_compile"
22304 case "(($ac_try" in
22305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22306 *) ac_try_echo=$ac_try;;
22307 esac
22308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22309 (eval "$ac_compile") 2>conftest.er1
22310 ac_status=$?
22311 grep -v '^ *+' conftest.er1 >conftest.err
22312 rm -f conftest.er1
22313 cat conftest.err >&5
22314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22315 (exit $ac_status); } && {
22316 test -z "$ac_c_werror_flag" ||
22317 test ! -s conftest.err
22318 } && test -s conftest.$ac_objext; then
22319 ac_header_compiler=yes
22320 else
22321 echo "$as_me: failed program was:" >&5
22322 sed 's/^/| /' conftest.$ac_ext >&5
22323
22324 ac_header_compiler=no
22325 fi
22326
22327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22328 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22329 echo "${ECHO_T}$ac_header_compiler" >&6; }
22330
22331 # Is the header present?
22332 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22333 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22334 cat >conftest.$ac_ext <<_ACEOF
22335 /* confdefs.h. */
22336 _ACEOF
22337 cat confdefs.h >>conftest.$ac_ext
22338 cat >>conftest.$ac_ext <<_ACEOF
22339 /* end confdefs.h. */
22340 #include <$ac_header>
22341 _ACEOF
22342 if { (ac_try="$ac_cpp conftest.$ac_ext"
22343 case "(($ac_try" in
22344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22345 *) ac_try_echo=$ac_try;;
22346 esac
22347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22349 ac_status=$?
22350 grep -v '^ *+' conftest.er1 >conftest.err
22351 rm -f conftest.er1
22352 cat conftest.err >&5
22353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22354 (exit $ac_status); } >/dev/null && {
22355 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22356 test ! -s conftest.err
22357 }; then
22358 ac_header_preproc=yes
22359 else
22360 echo "$as_me: failed program was:" >&5
22361 sed 's/^/| /' conftest.$ac_ext >&5
22362
22363 ac_header_preproc=no
22364 fi
22365
22366 rm -f conftest.err conftest.$ac_ext
22367 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22368 echo "${ECHO_T}$ac_header_preproc" >&6; }
22369
22370 # So? What about this header?
22371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22372 yes:no: )
22373 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22374 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22376 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22377 ac_header_preproc=yes
22378 ;;
22379 no:yes:* )
22380 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22381 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22382 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22383 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22384 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22385 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22386 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22387 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22389 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22390 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22391 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22392
22393 ;;
22394 esac
22395 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22398 echo $ECHO_N "(cached) $ECHO_C" >&6
22399 else
22400 eval "$as_ac_Header=\$ac_header_preproc"
22401 fi
22402 ac_res=`eval echo '${'$as_ac_Header'}'`
22403 { echo "$as_me:$LINENO: result: $ac_res" >&5
22404 echo "${ECHO_T}$ac_res" >&6; }
22405
22406 fi
22407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22408 cat >>confdefs.h <<_ACEOF
22409 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22410 _ACEOF
22411
22412 fi
22413
22414 done
22415
22416
22417 if test -f /usr/lpp/X11/bin/smt.exp; then
22418
22419 cat >>confdefs.h <<\_ACEOF
22420 #define HAVE_AIX_SMT_EXP 1
22421 _ACEOF
22422
22423 fi
22424
22425 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22426 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22427 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22428 { echo "$as_me:$LINENO: result: yes" >&5
22429 echo "${ECHO_T}yes" >&6; }
22430
22431 cat >>confdefs.h <<\_ACEOF
22432 #define HAVE_DEV_PTMX 1
22433 _ACEOF
22434
22435 else
22436 { echo "$as_me:$LINENO: result: no" >&5
22437 echo "${ECHO_T}no" >&6; }
22438 fi
22439
22440 { echo "$as_me:$LINENO: checking for pid_t" >&5
22441 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22442 if test "${ac_cv_type_pid_t+set}" = set; then
22443 echo $ECHO_N "(cached) $ECHO_C" >&6
22444 else
22445 cat >conftest.$ac_ext <<_ACEOF
22446 /* confdefs.h. */
22447 _ACEOF
22448 cat confdefs.h >>conftest.$ac_ext
22449 cat >>conftest.$ac_ext <<_ACEOF
22450 /* end confdefs.h. */
22451 $ac_includes_default
22452 typedef pid_t ac__type_new_;
22453 int
22454 main ()
22455 {
22456 if ((ac__type_new_ *) 0)
22457 return 0;
22458 if (sizeof (ac__type_new_))
22459 return 0;
22460 ;
22461 return 0;
22462 }
22463 _ACEOF
22464 rm -f conftest.$ac_objext
22465 if { (ac_try="$ac_compile"
22466 case "(($ac_try" in
22467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22468 *) ac_try_echo=$ac_try;;
22469 esac
22470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22471 (eval "$ac_compile") 2>conftest.er1
22472 ac_status=$?
22473 grep -v '^ *+' conftest.er1 >conftest.err
22474 rm -f conftest.er1
22475 cat conftest.err >&5
22476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22477 (exit $ac_status); } && {
22478 test -z "$ac_c_werror_flag" ||
22479 test ! -s conftest.err
22480 } && test -s conftest.$ac_objext; then
22481 ac_cv_type_pid_t=yes
22482 else
22483 echo "$as_me: failed program was:" >&5
22484 sed 's/^/| /' conftest.$ac_ext >&5
22485
22486 ac_cv_type_pid_t=no
22487 fi
22488
22489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22490 fi
22491 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22492 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22493 if test $ac_cv_type_pid_t = yes; then
22494 :
22495 else
22496
22497 cat >>confdefs.h <<_ACEOF
22498 #define pid_t int
22499 _ACEOF
22500
22501 fi
22502
22503
22504 for ac_header in vfork.h
22505 do
22506 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22508 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22511 echo $ECHO_N "(cached) $ECHO_C" >&6
22512 fi
22513 ac_res=`eval echo '${'$as_ac_Header'}'`
22514 { echo "$as_me:$LINENO: result: $ac_res" >&5
22515 echo "${ECHO_T}$ac_res" >&6; }
22516 else
22517 # Is the header compilable?
22518 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22519 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22520 cat >conftest.$ac_ext <<_ACEOF
22521 /* confdefs.h. */
22522 _ACEOF
22523 cat confdefs.h >>conftest.$ac_ext
22524 cat >>conftest.$ac_ext <<_ACEOF
22525 /* end confdefs.h. */
22526 $ac_includes_default
22527 #include <$ac_header>
22528 _ACEOF
22529 rm -f conftest.$ac_objext
22530 if { (ac_try="$ac_compile"
22531 case "(($ac_try" in
22532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22533 *) ac_try_echo=$ac_try;;
22534 esac
22535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22536 (eval "$ac_compile") 2>conftest.er1
22537 ac_status=$?
22538 grep -v '^ *+' conftest.er1 >conftest.err
22539 rm -f conftest.er1
22540 cat conftest.err >&5
22541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22542 (exit $ac_status); } && {
22543 test -z "$ac_c_werror_flag" ||
22544 test ! -s conftest.err
22545 } && test -s conftest.$ac_objext; then
22546 ac_header_compiler=yes
22547 else
22548 echo "$as_me: failed program was:" >&5
22549 sed 's/^/| /' conftest.$ac_ext >&5
22550
22551 ac_header_compiler=no
22552 fi
22553
22554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22555 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22556 echo "${ECHO_T}$ac_header_compiler" >&6; }
22557
22558 # Is the header present?
22559 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22560 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22561 cat >conftest.$ac_ext <<_ACEOF
22562 /* confdefs.h. */
22563 _ACEOF
22564 cat confdefs.h >>conftest.$ac_ext
22565 cat >>conftest.$ac_ext <<_ACEOF
22566 /* end confdefs.h. */
22567 #include <$ac_header>
22568 _ACEOF
22569 if { (ac_try="$ac_cpp conftest.$ac_ext"
22570 case "(($ac_try" in
22571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22572 *) ac_try_echo=$ac_try;;
22573 esac
22574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22576 ac_status=$?
22577 grep -v '^ *+' conftest.er1 >conftest.err
22578 rm -f conftest.er1
22579 cat conftest.err >&5
22580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22581 (exit $ac_status); } >/dev/null && {
22582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22583 test ! -s conftest.err
22584 }; then
22585 ac_header_preproc=yes
22586 else
22587 echo "$as_me: failed program was:" >&5
22588 sed 's/^/| /' conftest.$ac_ext >&5
22589
22590 ac_header_preproc=no
22591 fi
22592
22593 rm -f conftest.err conftest.$ac_ext
22594 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22595 echo "${ECHO_T}$ac_header_preproc" >&6; }
22596
22597 # So? What about this header?
22598 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22599 yes:no: )
22600 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22601 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22603 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22604 ac_header_preproc=yes
22605 ;;
22606 no:yes:* )
22607 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22608 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22609 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22610 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22611 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22612 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22613 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22614 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22616 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22617 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22618 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22619
22620 ;;
22621 esac
22622 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22625 echo $ECHO_N "(cached) $ECHO_C" >&6
22626 else
22627 eval "$as_ac_Header=\$ac_header_preproc"
22628 fi
22629 ac_res=`eval echo '${'$as_ac_Header'}'`
22630 { echo "$as_me:$LINENO: result: $ac_res" >&5
22631 echo "${ECHO_T}$ac_res" >&6; }
22632
22633 fi
22634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22635 cat >>confdefs.h <<_ACEOF
22636 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22637 _ACEOF
22638
22639 fi
22640
22641 done
22642
22643
22644
22645 for ac_func in fork vfork
22646 do
22647 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22648 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22649 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22650 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22651 echo $ECHO_N "(cached) $ECHO_C" >&6
22652 else
22653 cat >conftest.$ac_ext <<_ACEOF
22654 /* confdefs.h. */
22655 _ACEOF
22656 cat confdefs.h >>conftest.$ac_ext
22657 cat >>conftest.$ac_ext <<_ACEOF
22658 /* end confdefs.h. */
22659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22661 #define $ac_func innocuous_$ac_func
22662
22663 /* System header to define __stub macros and hopefully few prototypes,
22664 which can conflict with char $ac_func (); below.
22665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22666 <limits.h> exists even on freestanding compilers. */
22667
22668 #ifdef __STDC__
22669 # include <limits.h>
22670 #else
22671 # include <assert.h>
22672 #endif
22673
22674 #undef $ac_func
22675
22676 /* Override any GCC internal prototype to avoid an error.
22677 Use char because int might match the return type of a GCC
22678 builtin and then its argument prototype would still apply. */
22679 #ifdef __cplusplus
22680 extern "C"
22681 #endif
22682 char $ac_func ();
22683 /* The GNU C library defines this for functions which it implements
22684 to always fail with ENOSYS. Some functions are actually named
22685 something starting with __ and the normal name is an alias. */
22686 #if defined __stub_$ac_func || defined __stub___$ac_func
22687 choke me
22688 #endif
22689
22690 int
22691 main ()
22692 {
22693 return $ac_func ();
22694 ;
22695 return 0;
22696 }
22697 _ACEOF
22698 rm -f conftest.$ac_objext conftest$ac_exeext
22699 if { (ac_try="$ac_link"
22700 case "(($ac_try" in
22701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22702 *) ac_try_echo=$ac_try;;
22703 esac
22704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22705 (eval "$ac_link") 2>conftest.er1
22706 ac_status=$?
22707 grep -v '^ *+' conftest.er1 >conftest.err
22708 rm -f conftest.er1
22709 cat conftest.err >&5
22710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22711 (exit $ac_status); } && {
22712 test -z "$ac_c_werror_flag" ||
22713 test ! -s conftest.err
22714 } && test -s conftest$ac_exeext &&
22715 $as_test_x conftest$ac_exeext; then
22716 eval "$as_ac_var=yes"
22717 else
22718 echo "$as_me: failed program was:" >&5
22719 sed 's/^/| /' conftest.$ac_ext >&5
22720
22721 eval "$as_ac_var=no"
22722 fi
22723
22724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22725 conftest$ac_exeext conftest.$ac_ext
22726 fi
22727 ac_res=`eval echo '${'$as_ac_var'}'`
22728 { echo "$as_me:$LINENO: result: $ac_res" >&5
22729 echo "${ECHO_T}$ac_res" >&6; }
22730 if test `eval echo '${'$as_ac_var'}'` = yes; then
22731 cat >>confdefs.h <<_ACEOF
22732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22733 _ACEOF
22734
22735 fi
22736 done
22737
22738 if test "x$ac_cv_func_fork" = xyes; then
22739 { echo "$as_me:$LINENO: checking for working fork" >&5
22740 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
22741 if test "${ac_cv_func_fork_works+set}" = set; then
22742 echo $ECHO_N "(cached) $ECHO_C" >&6
22743 else
22744 if test "$cross_compiling" = yes; then
22745 ac_cv_func_fork_works=cross
22746 else
22747 cat >conftest.$ac_ext <<_ACEOF
22748 /* confdefs.h. */
22749 _ACEOF
22750 cat confdefs.h >>conftest.$ac_ext
22751 cat >>conftest.$ac_ext <<_ACEOF
22752 /* end confdefs.h. */
22753 $ac_includes_default
22754 int
22755 main ()
22756 {
22757
22758 /* By Ruediger Kuhlmann. */
22759 return fork () < 0;
22760
22761 ;
22762 return 0;
22763 }
22764 _ACEOF
22765 rm -f conftest$ac_exeext
22766 if { (ac_try="$ac_link"
22767 case "(($ac_try" in
22768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22769 *) ac_try_echo=$ac_try;;
22770 esac
22771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22772 (eval "$ac_link") 2>&5
22773 ac_status=$?
22774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22775 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22776 { (case "(($ac_try" in
22777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22778 *) ac_try_echo=$ac_try;;
22779 esac
22780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22781 (eval "$ac_try") 2>&5
22782 ac_status=$?
22783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22784 (exit $ac_status); }; }; then
22785 ac_cv_func_fork_works=yes
22786 else
22787 echo "$as_me: program exited with status $ac_status" >&5
22788 echo "$as_me: failed program was:" >&5
22789 sed 's/^/| /' conftest.$ac_ext >&5
22790
22791 ( exit $ac_status )
22792 ac_cv_func_fork_works=no
22793 fi
22794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22795 fi
22796
22797
22798 fi
22799 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22800 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22801
22802 else
22803 ac_cv_func_fork_works=$ac_cv_func_fork
22804 fi
22805 if test "x$ac_cv_func_fork_works" = xcross; then
22806 case $host in
22807 *-*-amigaos* | *-*-msdosdjgpp*)
22808 # Override, as these systems have only a dummy fork() stub
22809 ac_cv_func_fork_works=no
22810 ;;
22811 *)
22812 ac_cv_func_fork_works=yes
22813 ;;
22814 esac
22815 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22816 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22817 fi
22818 ac_cv_func_vfork_works=$ac_cv_func_vfork
22819 if test "x$ac_cv_func_vfork" = xyes; then
22820 { echo "$as_me:$LINENO: checking for working vfork" >&5
22821 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
22822 if test "${ac_cv_func_vfork_works+set}" = set; then
22823 echo $ECHO_N "(cached) $ECHO_C" >&6
22824 else
22825 if test "$cross_compiling" = yes; then
22826 ac_cv_func_vfork_works=cross
22827 else
22828 cat >conftest.$ac_ext <<_ACEOF
22829 /* confdefs.h. */
22830 _ACEOF
22831 cat confdefs.h >>conftest.$ac_ext
22832 cat >>conftest.$ac_ext <<_ACEOF
22833 /* end confdefs.h. */
22834 /* Thanks to Paul Eggert for this test. */
22835 $ac_includes_default
22836 #include <sys/wait.h>
22837 #ifdef HAVE_VFORK_H
22838 # include <vfork.h>
22839 #endif
22840 /* On some sparc systems, changes by the child to local and incoming
22841 argument registers are propagated back to the parent. The compiler
22842 is told about this with #include <vfork.h>, but some compilers
22843 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22844 static variable whose address is put into a register that is
22845 clobbered by the vfork. */
22846 static void
22847 #ifdef __cplusplus
22848 sparc_address_test (int arg)
22849 # else
22850 sparc_address_test (arg) int arg;
22851 #endif
22852 {
22853 static pid_t child;
22854 if (!child) {
22855 child = vfork ();
22856 if (child < 0) {
22857 perror ("vfork");
22858 _exit(2);
22859 }
22860 if (!child) {
22861 arg = getpid();
22862 write(-1, "", 0);
22863 _exit (arg);
22864 }
22865 }
22866 }
22867
22868 int
22869 main ()
22870 {
22871 pid_t parent = getpid ();
22872 pid_t child;
22873
22874 sparc_address_test (0);
22875
22876 child = vfork ();
22877
22878 if (child == 0) {
22879 /* Here is another test for sparc vfork register problems. This
22880 test uses lots of local variables, at least as many local
22881 variables as main has allocated so far including compiler
22882 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22883 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22884 reuse the register of parent for one of the local variables,
22885 since it will think that parent can't possibly be used any more
22886 in this routine. Assigning to the local variable will thus
22887 munge parent in the parent process. */
22888 pid_t
22889 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22890 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22891 /* Convince the compiler that p..p7 are live; otherwise, it might
22892 use the same hardware register for all 8 local variables. */
22893 if (p != p1 || p != p2 || p != p3 || p != p4
22894 || p != p5 || p != p6 || p != p7)
22895 _exit(1);
22896
22897 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22898 from child file descriptors. If the child closes a descriptor
22899 before it execs or exits, this munges the parent's descriptor
22900 as well. Test for this by closing stdout in the child. */
22901 _exit(close(fileno(stdout)) != 0);
22902 } else {
22903 int status;
22904 struct stat st;
22905
22906 while (wait(&status) != child)
22907 ;
22908 return (
22909 /* Was there some problem with vforking? */
22910 child < 0
22911
22912 /* Did the child fail? (This shouldn't happen.) */
22913 || status
22914
22915 /* Did the vfork/compiler bug occur? */
22916 || parent != getpid()
22917
22918 /* Did the file descriptor bug occur? */
22919 || fstat(fileno(stdout), &st) != 0
22920 );
22921 }
22922 }
22923 _ACEOF
22924 rm -f conftest$ac_exeext
22925 if { (ac_try="$ac_link"
22926 case "(($ac_try" in
22927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22928 *) ac_try_echo=$ac_try;;
22929 esac
22930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22931 (eval "$ac_link") 2>&5
22932 ac_status=$?
22933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22934 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22935 { (case "(($ac_try" in
22936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22937 *) ac_try_echo=$ac_try;;
22938 esac
22939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22940 (eval "$ac_try") 2>&5
22941 ac_status=$?
22942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22943 (exit $ac_status); }; }; then
22944 ac_cv_func_vfork_works=yes
22945 else
22946 echo "$as_me: program exited with status $ac_status" >&5
22947 echo "$as_me: failed program was:" >&5
22948 sed 's/^/| /' conftest.$ac_ext >&5
22949
22950 ( exit $ac_status )
22951 ac_cv_func_vfork_works=no
22952 fi
22953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22954 fi
22955
22956
22957 fi
22958 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22959 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22960
22961 fi;
22962 if test "x$ac_cv_func_fork_works" = xcross; then
22963 ac_cv_func_vfork_works=$ac_cv_func_vfork
22964 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22965 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22966 fi
22967
22968 if test "x$ac_cv_func_vfork_works" = xyes; then
22969
22970 cat >>confdefs.h <<\_ACEOF
22971 #define HAVE_WORKING_VFORK 1
22972 _ACEOF
22973
22974 else
22975
22976 cat >>confdefs.h <<\_ACEOF
22977 #define vfork fork
22978 _ACEOF
22979
22980 fi
22981 if test "x$ac_cv_func_fork_works" = xyes; then
22982
22983 cat >>confdefs.h <<\_ACEOF
22984 #define HAVE_WORKING_FORK 1
22985 _ACEOF
22986
22987 fi
22988
22989
22990 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22991 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22992 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22993 echo $ECHO_N "(cached) $ECHO_C" >&6
22994 else
22995 cat >conftest.$ac_ext <<_ACEOF
22996 /* confdefs.h. */
22997 _ACEOF
22998 cat confdefs.h >>conftest.$ac_ext
22999 cat >>conftest.$ac_ext <<_ACEOF
23000 /* end confdefs.h. */
23001 #include <langinfo.h>
23002 int
23003 main ()
23004 {
23005 char* cs = nl_langinfo(CODESET);
23006 ;
23007 return 0;
23008 }
23009 _ACEOF
23010 rm -f conftest.$ac_objext conftest$ac_exeext
23011 if { (ac_try="$ac_link"
23012 case "(($ac_try" in
23013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23014 *) ac_try_echo=$ac_try;;
23015 esac
23016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23017 (eval "$ac_link") 2>conftest.er1
23018 ac_status=$?
23019 grep -v '^ *+' conftest.er1 >conftest.err
23020 rm -f conftest.er1
23021 cat conftest.err >&5
23022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023 (exit $ac_status); } && {
23024 test -z "$ac_c_werror_flag" ||
23025 test ! -s conftest.err
23026 } && test -s conftest$ac_exeext &&
23027 $as_test_x conftest$ac_exeext; then
23028 emacs_cv_langinfo_codeset=yes
23029 else
23030 echo "$as_me: failed program was:" >&5
23031 sed 's/^/| /' conftest.$ac_ext >&5
23032
23033 emacs_cv_langinfo_codeset=no
23034 fi
23035
23036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23037 conftest$ac_exeext conftest.$ac_ext
23038
23039 fi
23040 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23041 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23042 if test $emacs_cv_langinfo_codeset = yes; then
23043
23044 cat >>confdefs.h <<\_ACEOF
23045 #define HAVE_LANGINFO_CODESET 1
23046 _ACEOF
23047
23048 fi
23049
23050 { echo "$as_me:$LINENO: checking for size_t" >&5
23051 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23052 if test "${ac_cv_type_size_t+set}" = set; then
23053 echo $ECHO_N "(cached) $ECHO_C" >&6
23054 else
23055 cat >conftest.$ac_ext <<_ACEOF
23056 /* confdefs.h. */
23057 _ACEOF
23058 cat confdefs.h >>conftest.$ac_ext
23059 cat >>conftest.$ac_ext <<_ACEOF
23060 /* end confdefs.h. */
23061 $ac_includes_default
23062 typedef size_t ac__type_new_;
23063 int
23064 main ()
23065 {
23066 if ((ac__type_new_ *) 0)
23067 return 0;
23068 if (sizeof (ac__type_new_))
23069 return 0;
23070 ;
23071 return 0;
23072 }
23073 _ACEOF
23074 rm -f conftest.$ac_objext
23075 if { (ac_try="$ac_compile"
23076 case "(($ac_try" in
23077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23078 *) ac_try_echo=$ac_try;;
23079 esac
23080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23081 (eval "$ac_compile") 2>conftest.er1
23082 ac_status=$?
23083 grep -v '^ *+' conftest.er1 >conftest.err
23084 rm -f conftest.er1
23085 cat conftest.err >&5
23086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23087 (exit $ac_status); } && {
23088 test -z "$ac_c_werror_flag" ||
23089 test ! -s conftest.err
23090 } && test -s conftest.$ac_objext; then
23091 ac_cv_type_size_t=yes
23092 else
23093 echo "$as_me: failed program was:" >&5
23094 sed 's/^/| /' conftest.$ac_ext >&5
23095
23096 ac_cv_type_size_t=no
23097 fi
23098
23099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23100 fi
23101 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23102 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23103 if test $ac_cv_type_size_t = yes; then
23104
23105 cat >>confdefs.h <<_ACEOF
23106 #define HAVE_SIZE_T 1
23107 _ACEOF
23108
23109
23110 fi
23111
23112
23113 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23114 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23115 if test "${ac_cv_type_mbstate_t+set}" = set; then
23116 echo $ECHO_N "(cached) $ECHO_C" >&6
23117 else
23118 cat >conftest.$ac_ext <<_ACEOF
23119 /* confdefs.h. */
23120 _ACEOF
23121 cat confdefs.h >>conftest.$ac_ext
23122 cat >>conftest.$ac_ext <<_ACEOF
23123 /* end confdefs.h. */
23124 $ac_includes_default
23125 # include <wchar.h>
23126 int
23127 main ()
23128 {
23129 mbstate_t x; return sizeof x;
23130 ;
23131 return 0;
23132 }
23133 _ACEOF
23134 rm -f conftest.$ac_objext
23135 if { (ac_try="$ac_compile"
23136 case "(($ac_try" in
23137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23138 *) ac_try_echo=$ac_try;;
23139 esac
23140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23141 (eval "$ac_compile") 2>conftest.er1
23142 ac_status=$?
23143 grep -v '^ *+' conftest.er1 >conftest.err
23144 rm -f conftest.er1
23145 cat conftest.err >&5
23146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147 (exit $ac_status); } && {
23148 test -z "$ac_c_werror_flag" ||
23149 test ! -s conftest.err
23150 } && test -s conftest.$ac_objext; then
23151 ac_cv_type_mbstate_t=yes
23152 else
23153 echo "$as_me: failed program was:" >&5
23154 sed 's/^/| /' conftest.$ac_ext >&5
23155
23156 ac_cv_type_mbstate_t=no
23157 fi
23158
23159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23160 fi
23161 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23162 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23163 if test $ac_cv_type_mbstate_t = yes; then
23164
23165 cat >>confdefs.h <<\_ACEOF
23166 #define HAVE_MBSTATE_T 1
23167 _ACEOF
23168
23169 else
23170
23171 cat >>confdefs.h <<\_ACEOF
23172 #define mbstate_t int
23173 _ACEOF
23174
23175 fi
23176
23177 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23178 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23179 if test "${emacs_cv_c_restrict+set}" = set; then
23180 echo $ECHO_N "(cached) $ECHO_C" >&6
23181 else
23182 cat >conftest.$ac_ext <<_ACEOF
23183 /* confdefs.h. */
23184 _ACEOF
23185 cat confdefs.h >>conftest.$ac_ext
23186 cat >>conftest.$ac_ext <<_ACEOF
23187 /* end confdefs.h. */
23188 void fred (int *restrict x);
23189 int
23190 main ()
23191 {
23192
23193 ;
23194 return 0;
23195 }
23196 _ACEOF
23197 rm -f conftest.$ac_objext
23198 if { (ac_try="$ac_compile"
23199 case "(($ac_try" in
23200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23201 *) ac_try_echo=$ac_try;;
23202 esac
23203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23204 (eval "$ac_compile") 2>conftest.er1
23205 ac_status=$?
23206 grep -v '^ *+' conftest.er1 >conftest.err
23207 rm -f conftest.er1
23208 cat conftest.err >&5
23209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210 (exit $ac_status); } && {
23211 test -z "$ac_c_werror_flag" ||
23212 test ! -s conftest.err
23213 } && test -s conftest.$ac_objext; then
23214 emacs_cv_c_restrict=yes
23215 else
23216 echo "$as_me: failed program was:" >&5
23217 sed 's/^/| /' conftest.$ac_ext >&5
23218
23219 cat >conftest.$ac_ext <<_ACEOF
23220 /* confdefs.h. */
23221 _ACEOF
23222 cat confdefs.h >>conftest.$ac_ext
23223 cat >>conftest.$ac_ext <<_ACEOF
23224 /* end confdefs.h. */
23225 void fred (int *__restrict x);
23226 int
23227 main ()
23228 {
23229
23230 ;
23231 return 0;
23232 }
23233 _ACEOF
23234 rm -f conftest.$ac_objext
23235 if { (ac_try="$ac_compile"
23236 case "(($ac_try" in
23237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23238 *) ac_try_echo=$ac_try;;
23239 esac
23240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23241 (eval "$ac_compile") 2>conftest.er1
23242 ac_status=$?
23243 grep -v '^ *+' conftest.er1 >conftest.err
23244 rm -f conftest.er1
23245 cat conftest.err >&5
23246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247 (exit $ac_status); } && {
23248 test -z "$ac_c_werror_flag" ||
23249 test ! -s conftest.err
23250 } && test -s conftest.$ac_objext; then
23251 emacs_cv_c_restrict=__restrict
23252 else
23253 echo "$as_me: failed program was:" >&5
23254 sed 's/^/| /' conftest.$ac_ext >&5
23255
23256 emacs_cv_c_restrict=no
23257 fi
23258
23259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23260 fi
23261
23262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23263 fi
23264 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23265 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23266 case "$emacs_cv_c_restrict" in
23267 yes) emacs_restrict=restrict;;
23268 no) emacs_restrict="";;
23269 *) emacs_restrict="$emacs_cv_c_restrict";;
23270 esac
23271 if test "$emacs_restrict" != __restrict; then
23272
23273 cat >>confdefs.h <<_ACEOF
23274 #define __restrict $emacs_restrict
23275 _ACEOF
23276
23277 fi
23278
23279 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23280 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23281 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23282 echo $ECHO_N "(cached) $ECHO_C" >&6
23283 else
23284 cat >conftest.$ac_ext <<_ACEOF
23285 /* confdefs.h. */
23286 _ACEOF
23287 cat confdefs.h >>conftest.$ac_ext
23288 cat >>conftest.$ac_ext <<_ACEOF
23289 /* end confdefs.h. */
23290 void fred (int x[__restrict]);
23291 int
23292 main ()
23293 {
23294
23295 ;
23296 return 0;
23297 }
23298 _ACEOF
23299 rm -f conftest.$ac_objext
23300 if { (ac_try="$ac_compile"
23301 case "(($ac_try" in
23302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23303 *) ac_try_echo=$ac_try;;
23304 esac
23305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23306 (eval "$ac_compile") 2>conftest.er1
23307 ac_status=$?
23308 grep -v '^ *+' conftest.er1 >conftest.err
23309 rm -f conftest.er1
23310 cat conftest.err >&5
23311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23312 (exit $ac_status); } && {
23313 test -z "$ac_c_werror_flag" ||
23314 test ! -s conftest.err
23315 } && test -s conftest.$ac_objext; then
23316 emacs_cv_c_restrict_arr=yes
23317 else
23318 echo "$as_me: failed program was:" >&5
23319 sed 's/^/| /' conftest.$ac_ext >&5
23320
23321 emacs_cv_c_restrict_arr=no
23322 fi
23323
23324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23325 fi
23326 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23327 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23328 if test "$emacs_cv_c_restrict_arr" = yes; then
23329
23330 cat >>confdefs.h <<\_ACEOF
23331 #define __restrict_arr __restrict
23332 _ACEOF
23333
23334 fi
23335
23336
23337
23338 # Set up the CFLAGS for real compilation, so we can substitute it.
23339 CFLAGS="$REAL_CFLAGS"
23340 CPPFLAGS="$REAL_CPPFLAGS"
23341
23342 #### Find out which version of Emacs this is.
23343 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23344 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23345 if test x"${version}" = x; then
23346 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23347 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23348 { (exit 1); exit 1; }; }
23349 fi
23350
23351 ### Specify what sort of things we'll be editing into Makefile and config.h.
23352 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23353
23354
23355
23356
23357
23358
23359
23360
23361
23362
23363
23364
23365
23366
23367
23368
23369
23370
23371
23372
23373
23374
23375
23376
23377
23378
23379
23380
23381
23382
23383
23384
23385
23386
23387
23388 cat >>confdefs.h <<_ACEOF
23389 #define EMACS_CONFIGURATION "${canonical}"
23390 _ACEOF
23391
23392
23393 cat >>confdefs.h <<_ACEOF
23394 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23395 _ACEOF
23396
23397
23398 cat >>confdefs.h <<_ACEOF
23399 #define config_machfile "${machfile}"
23400 _ACEOF
23401
23402
23403 cat >>confdefs.h <<_ACEOF
23404 #define config_opsysfile "${opsysfile}"
23405 _ACEOF
23406
23407
23408 cat >>confdefs.h <<_ACEOF
23409 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23410 _ACEOF
23411
23412
23413 cat >>confdefs.h <<_ACEOF
23414 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23415 _ACEOF
23416
23417
23418 cat >>confdefs.h <<_ACEOF
23419 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23420 _ACEOF
23421
23422
23423 cat >>confdefs.h <<_ACEOF
23424 #define UNEXEC_SRC ${UNEXEC_SRC}
23425 _ACEOF
23426
23427
23428 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23429
23430 cat >>confdefs.h <<\_ACEOF
23431 #define HAVE_X_WINDOWS 1
23432 _ACEOF
23433
23434 fi
23435 if test "${USE_X_TOOLKIT}" != "none" ; then
23436
23437 cat >>confdefs.h <<\_ACEOF
23438 #define USE_X_TOOLKIT 1
23439 _ACEOF
23440
23441 fi
23442 if test "${HAVE_X11}" = "yes" ; then
23443
23444 cat >>confdefs.h <<\_ACEOF
23445 #define HAVE_X11 1
23446 _ACEOF
23447
23448 fi
23449 if test "${HAVE_XFREE386}" = "yes" ; then
23450
23451 cat >>confdefs.h <<\_ACEOF
23452 #define HAVE_XFREE386 1
23453 _ACEOF
23454
23455 fi
23456 if test "${HAVE_MENUS}" = "yes" ; then
23457
23458 cat >>confdefs.h <<\_ACEOF
23459 #define HAVE_MENUS 1
23460 _ACEOF
23461
23462 fi
23463 if test "${GNU_MALLOC}" = "yes" ; then
23464
23465 cat >>confdefs.h <<\_ACEOF
23466 #define GNU_MALLOC 1
23467 _ACEOF
23468
23469 fi
23470 if test "${REL_ALLOC}" = "yes" ; then
23471
23472 cat >>confdefs.h <<\_ACEOF
23473 #define REL_ALLOC 1
23474 _ACEOF
23475
23476 fi
23477
23478
23479
23480
23481
23482
23483 #### Report on what we decided to do.
23484 #### Report GTK as a toolkit, even if it doesn't use Xt.
23485 #### It makes printing result more understandable as using GTK sets
23486 #### toolkit_scroll_bars to yes by default.
23487 if test "${HAVE_GTK}" = "yes"; then
23488 USE_X_TOOLKIT=GTK
23489 fi
23490
23491 echo "
23492 Configured for \`${canonical}'.
23493
23494 Where should the build process find the source code? ${srcdir}
23495 What operating system and machine description files should Emacs use?
23496 \`${opsysfile}' and \`${machfile}'
23497 What compiler should emacs be built with? ${CC} ${CFLAGS}
23498 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23499 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23500 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23501 What window system should Emacs use? ${window_system}
23502 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23503
23504 if test -n "${x_includes}"; then
23505 echo " Where do we find X Windows header files? ${x_includes}"
23506 else
23507 echo " Where do we find X Windows header files? Standard dirs"
23508 fi
23509 if test -n "${x_libraries}"; then
23510 echo " Where do we find X Windows libraries? ${x_libraries}"
23511 else
23512 echo " Where do we find X Windows libraries? Standard dirs"
23513 fi
23514
23515 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23516 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23517 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23518 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23519 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
23520 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23521 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23522 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23523 echo
23524
23525 if test $USE_XASSERTS = yes; then
23526 echo " Compiling with asserts turned on."
23527 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23528 echo
23529 fi
23530
23531 if test "$USE_X_TOOLKIT" = GTK; then
23532 case "$canonical" in
23533 *cygwin*)
23534 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23535 will probably get a crash on startup. If this happens, please use another
23536 toolkit for Emacs. See etc/PROBLEMS for more information."
23537 ;;
23538 esac
23539 fi
23540
23541
23542
23543 # Remove any trailing slashes in these variables.
23544 test "${prefix}" != NONE &&
23545 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23546 test "${exec_prefix}" != NONE &&
23547 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23548
23549 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23550 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23551 ## from Makefile.c can correctly provide the arg `-traditional' to the
23552 ## C preprocessor.
23553
23554 cat >conftest.$ac_ext <<_ACEOF
23555 /* confdefs.h. */
23556 _ACEOF
23557 cat confdefs.h >>conftest.$ac_ext
23558 cat >>conftest.$ac_ext <<_ACEOF
23559 /* end confdefs.h. */
23560 yes..yes
23561 _ACEOF
23562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23563 $EGREP "yes..yes" >/dev/null 2>&1; then
23564 CPP_NEED_TRADITIONAL=no
23565 else
23566 CPP_NEED_TRADITIONAL=yes
23567 fi
23568 rm -f conftest*
23569
23570
23571 ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in lisp/Makefile lispref/Makefile lispintro/Makefile leim/Makefile"
23572
23573 ac_config_commands="$ac_config_commands default"
23574
23575 cat >confcache <<\_ACEOF
23576 # This file is a shell script that caches the results of configure
23577 # tests run on this system so they can be shared between configure
23578 # scripts and configure runs, see configure's option --config-cache.
23579 # It is not useful on other systems. If it contains results you don't
23580 # want to keep, you may remove or edit it.
23581 #
23582 # config.status only pays attention to the cache file if you give it
23583 # the --recheck option to rerun configure.
23584 #
23585 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23586 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23587 # following values.
23588
23589 _ACEOF
23590
23591 # The following way of writing the cache mishandles newlines in values,
23592 # but we know of no workaround that is simple, portable, and efficient.
23593 # So, we kill variables containing newlines.
23594 # Ultrix sh set writes to stderr and can't be redirected directly,
23595 # and sets the high bit in the cache file unless we assign to the vars.
23596 (
23597 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23598 eval ac_val=\$$ac_var
23599 case $ac_val in #(
23600 *${as_nl}*)
23601 case $ac_var in #(
23602 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23603 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23604 esac
23605 case $ac_var in #(
23606 _ | IFS | as_nl) ;; #(
23607 *) $as_unset $ac_var ;;
23608 esac ;;
23609 esac
23610 done
23611
23612 (set) 2>&1 |
23613 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23614 *${as_nl}ac_space=\ *)
23615 # `set' does not quote correctly, so add quotes (double-quote
23616 # substitution turns \\\\ into \\, and sed turns \\ into \).
23617 sed -n \
23618 "s/'/'\\\\''/g;
23619 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23620 ;; #(
23621 *)
23622 # `set' quotes correctly as required by POSIX, so do not add quotes.
23623 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23624 ;;
23625 esac |
23626 sort
23627 ) |
23628 sed '
23629 /^ac_cv_env_/b end
23630 t clear
23631 :clear
23632 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23633 t end
23634 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23635 :end' >>confcache
23636 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23637 if test -w "$cache_file"; then
23638 test "x$cache_file" != "x/dev/null" &&
23639 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23640 echo "$as_me: updating cache $cache_file" >&6;}
23641 cat confcache >$cache_file
23642 else
23643 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23644 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23645 fi
23646 fi
23647 rm -f confcache
23648
23649 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23650 # Let make expand exec_prefix.
23651 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23652
23653 DEFS=-DHAVE_CONFIG_H
23654
23655 ac_libobjs=
23656 ac_ltlibobjs=
23657 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23658 # 1. Remove the extension, and $U if already installed.
23659 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23660 ac_i=`echo "$ac_i" | sed "$ac_script"`
23661 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23662 # will be set to the directory where LIBOBJS objects are built.
23663 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23664 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23665 done
23666 LIBOBJS=$ac_libobjs
23667
23668 LTLIBOBJS=$ac_ltlibobjs
23669
23670
23671
23672 : ${CONFIG_STATUS=./config.status}
23673 ac_clean_files_save=$ac_clean_files
23674 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23675 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23676 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23677 cat >$CONFIG_STATUS <<_ACEOF
23678 #! $SHELL
23679 # Generated by $as_me.
23680 # Run this file to recreate the current configuration.
23681 # Compiler output produced by configure, useful for debugging
23682 # configure, is in config.log if it exists.
23683
23684 debug=false
23685 ac_cs_recheck=false
23686 ac_cs_silent=false
23687 SHELL=\${CONFIG_SHELL-$SHELL}
23688 _ACEOF
23689
23690 cat >>$CONFIG_STATUS <<\_ACEOF
23691 ## --------------------- ##
23692 ## M4sh Initialization. ##
23693 ## --------------------- ##
23694
23695 # Be more Bourne compatible
23696 DUALCASE=1; export DUALCASE # for MKS sh
23697 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23698 emulate sh
23699 NULLCMD=:
23700 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23701 # is contrary to our usage. Disable this feature.
23702 alias -g '${1+"$@"}'='"$@"'
23703 setopt NO_GLOB_SUBST
23704 else
23705 case `(set -o) 2>/dev/null` in
23706 *posix*) set -o posix ;;
23707 esac
23708
23709 fi
23710
23711
23712
23713
23714 # PATH needs CR
23715 # Avoid depending upon Character Ranges.
23716 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23717 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23718 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23719 as_cr_digits='0123456789'
23720 as_cr_alnum=$as_cr_Letters$as_cr_digits
23721
23722 # The user is always right.
23723 if test "${PATH_SEPARATOR+set}" != set; then
23724 echo "#! /bin/sh" >conf$$.sh
23725 echo "exit 0" >>conf$$.sh
23726 chmod +x conf$$.sh
23727 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23728 PATH_SEPARATOR=';'
23729 else
23730 PATH_SEPARATOR=:
23731 fi
23732 rm -f conf$$.sh
23733 fi
23734
23735 # Support unset when possible.
23736 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23737 as_unset=unset
23738 else
23739 as_unset=false
23740 fi
23741
23742
23743 # IFS
23744 # We need space, tab and new line, in precisely that order. Quoting is
23745 # there to prevent editors from complaining about space-tab.
23746 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23747 # splitting by setting IFS to empty value.)
23748 as_nl='
23749 '
23750 IFS=" "" $as_nl"
23751
23752 # Find who we are. Look in the path if we contain no directory separator.
23753 case $0 in
23754 *[\\/]* ) as_myself=$0 ;;
23755 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23756 for as_dir in $PATH
23757 do
23758 IFS=$as_save_IFS
23759 test -z "$as_dir" && as_dir=.
23760 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23761 done
23762 IFS=$as_save_IFS
23763
23764 ;;
23765 esac
23766 # We did not find ourselves, most probably we were run as `sh COMMAND'
23767 # in which case we are not to be found in the path.
23768 if test "x$as_myself" = x; then
23769 as_myself=$0
23770 fi
23771 if test ! -f "$as_myself"; then
23772 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23773 { (exit 1); exit 1; }
23774 fi
23775
23776 # Work around bugs in pre-3.0 UWIN ksh.
23777 for as_var in ENV MAIL MAILPATH
23778 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23779 done
23780 PS1='$ '
23781 PS2='> '
23782 PS4='+ '
23783
23784 # NLS nuisances.
23785 for as_var in \
23786 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23787 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23788 LC_TELEPHONE LC_TIME
23789 do
23790 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23791 eval $as_var=C; export $as_var
23792 else
23793 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23794 fi
23795 done
23796
23797 # Required to use basename.
23798 if expr a : '\(a\)' >/dev/null 2>&1 &&
23799 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23800 as_expr=expr
23801 else
23802 as_expr=false
23803 fi
23804
23805 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23806 as_basename=basename
23807 else
23808 as_basename=false
23809 fi
23810
23811
23812 # Name of the executable.
23813 as_me=`$as_basename -- "$0" ||
23814 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23815 X"$0" : 'X\(//\)$' \| \
23816 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23817 echo X/"$0" |
23818 sed '/^.*\/\([^/][^/]*\)\/*$/{
23819 s//\1/
23820 q
23821 }
23822 /^X\/\(\/\/\)$/{
23823 s//\1/
23824 q
23825 }
23826 /^X\/\(\/\).*/{
23827 s//\1/
23828 q
23829 }
23830 s/.*/./; q'`
23831
23832 # CDPATH.
23833 $as_unset CDPATH
23834
23835
23836
23837 as_lineno_1=$LINENO
23838 as_lineno_2=$LINENO
23839 test "x$as_lineno_1" != "x$as_lineno_2" &&
23840 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23841
23842 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23843 # uniformly replaced by the line number. The first 'sed' inserts a
23844 # line-number line after each line using $LINENO; the second 'sed'
23845 # does the real work. The second script uses 'N' to pair each
23846 # line-number line with the line containing $LINENO, and appends
23847 # trailing '-' during substitution so that $LINENO is not a special
23848 # case at line end.
23849 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23850 # scripts with optimization help from Paolo Bonzini. Blame Lee
23851 # E. McMahon (1931-1989) for sed's syntax. :-)
23852 sed -n '
23853 p
23854 /[$]LINENO/=
23855 ' <$as_myself |
23856 sed '
23857 s/[$]LINENO.*/&-/
23858 t lineno
23859 b
23860 :lineno
23861 N
23862 :loop
23863 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23864 t loop
23865 s/-\n.*//
23866 ' >$as_me.lineno &&
23867 chmod +x "$as_me.lineno" ||
23868 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23869 { (exit 1); exit 1; }; }
23870
23871 # Don't try to exec as it changes $[0], causing all sort of problems
23872 # (the dirname of $[0] is not the place where we might find the
23873 # original and so on. Autoconf is especially sensitive to this).
23874 . "./$as_me.lineno"
23875 # Exit status is that of the last command.
23876 exit
23877 }
23878
23879
23880 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23881 as_dirname=dirname
23882 else
23883 as_dirname=false
23884 fi
23885
23886 ECHO_C= ECHO_N= ECHO_T=
23887 case `echo -n x` in
23888 -n*)
23889 case `echo 'x\c'` in
23890 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23891 *) ECHO_C='\c';;
23892 esac;;
23893 *)
23894 ECHO_N='-n';;
23895 esac
23896
23897 if expr a : '\(a\)' >/dev/null 2>&1 &&
23898 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23899 as_expr=expr
23900 else
23901 as_expr=false
23902 fi
23903
23904 rm -f conf$$ conf$$.exe conf$$.file
23905 if test -d conf$$.dir; then
23906 rm -f conf$$.dir/conf$$.file
23907 else
23908 rm -f conf$$.dir
23909 mkdir conf$$.dir
23910 fi
23911 echo >conf$$.file
23912 if ln -s conf$$.file conf$$ 2>/dev/null; then
23913 as_ln_s='ln -s'
23914 # ... but there are two gotchas:
23915 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23916 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23917 # In both cases, we have to default to `cp -p'.
23918 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23919 as_ln_s='cp -p'
23920 elif ln conf$$.file conf$$ 2>/dev/null; then
23921 as_ln_s=ln
23922 else
23923 as_ln_s='cp -p'
23924 fi
23925 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23926 rmdir conf$$.dir 2>/dev/null
23927
23928 if mkdir -p . 2>/dev/null; then
23929 as_mkdir_p=:
23930 else
23931 test -d ./-p && rmdir ./-p
23932 as_mkdir_p=false
23933 fi
23934
23935 if test -x / >/dev/null 2>&1; then
23936 as_test_x='test -x'
23937 else
23938 if ls -dL / >/dev/null 2>&1; then
23939 as_ls_L_option=L
23940 else
23941 as_ls_L_option=
23942 fi
23943 as_test_x='
23944 eval sh -c '\''
23945 if test -d "$1"; then
23946 test -d "$1/.";
23947 else
23948 case $1 in
23949 -*)set "./$1";;
23950 esac;
23951 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23952 ???[sx]*):;;*)false;;esac;fi
23953 '\'' sh
23954 '
23955 fi
23956 as_executable_p=$as_test_x
23957
23958 # Sed expression to map a string onto a valid CPP name.
23959 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23960
23961 # Sed expression to map a string onto a valid variable name.
23962 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23963
23964
23965 exec 6>&1
23966
23967 # Save the log message, to keep $[0] and so on meaningful, and to
23968 # report actual input values of CONFIG_FILES etc. instead of their
23969 # values after options handling.
23970 ac_log="
23971 This file was extended by $as_me, which was
23972 generated by GNU Autoconf 2.61. Invocation command line was
23973
23974 CONFIG_FILES = $CONFIG_FILES
23975 CONFIG_HEADERS = $CONFIG_HEADERS
23976 CONFIG_LINKS = $CONFIG_LINKS
23977 CONFIG_COMMANDS = $CONFIG_COMMANDS
23978 $ $0 $@
23979
23980 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23981 "
23982
23983 _ACEOF
23984
23985 cat >>$CONFIG_STATUS <<_ACEOF
23986 # Files that config.status was made for.
23987 config_files="$ac_config_files"
23988 config_headers="$ac_config_headers"
23989 config_commands="$ac_config_commands"
23990
23991 _ACEOF
23992
23993 cat >>$CONFIG_STATUS <<\_ACEOF
23994 ac_cs_usage="\
23995 \`$as_me' instantiates files from templates according to the
23996 current configuration.
23997
23998 Usage: $0 [OPTIONS] [FILE]...
23999
24000 -h, --help print this help, then exit
24001 -V, --version print version number and configuration settings, then exit
24002 -q, --quiet do not print progress messages
24003 -d, --debug don't remove temporary files
24004 --recheck update $as_me by reconfiguring in the same conditions
24005 --file=FILE[:TEMPLATE]
24006 instantiate the configuration file FILE
24007 --header=FILE[:TEMPLATE]
24008 instantiate the configuration header FILE
24009
24010 Configuration files:
24011 $config_files
24012
24013 Configuration headers:
24014 $config_headers
24015
24016 Configuration commands:
24017 $config_commands
24018
24019 Report bugs to <bug-autoconf@gnu.org>."
24020
24021 _ACEOF
24022 cat >>$CONFIG_STATUS <<_ACEOF
24023 ac_cs_version="\\
24024 config.status
24025 configured by $0, generated by GNU Autoconf 2.61,
24026 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24027
24028 Copyright (C) 2006 Free Software Foundation, Inc.
24029 This config.status script is free software; the Free Software Foundation
24030 gives unlimited permission to copy, distribute and modify it."
24031
24032 ac_pwd='$ac_pwd'
24033 srcdir='$srcdir'
24034 INSTALL='$INSTALL'
24035 _ACEOF
24036
24037 cat >>$CONFIG_STATUS <<\_ACEOF
24038 # If no file are specified by the user, then we need to provide default
24039 # value. By we need to know if files were specified by the user.
24040 ac_need_defaults=:
24041 while test $# != 0
24042 do
24043 case $1 in
24044 --*=*)
24045 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24046 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24047 ac_shift=:
24048 ;;
24049 *)
24050 ac_option=$1
24051 ac_optarg=$2
24052 ac_shift=shift
24053 ;;
24054 esac
24055
24056 case $ac_option in
24057 # Handling of the options.
24058 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24059 ac_cs_recheck=: ;;
24060 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24061 echo "$ac_cs_version"; exit ;;
24062 --debug | --debu | --deb | --de | --d | -d )
24063 debug=: ;;
24064 --file | --fil | --fi | --f )
24065 $ac_shift
24066 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24067 ac_need_defaults=false;;
24068 --header | --heade | --head | --hea )
24069 $ac_shift
24070 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24071 ac_need_defaults=false;;
24072 --he | --h)
24073 # Conflict between --help and --header
24074 { echo "$as_me: error: ambiguous option: $1
24075 Try \`$0 --help' for more information." >&2
24076 { (exit 1); exit 1; }; };;
24077 --help | --hel | -h )
24078 echo "$ac_cs_usage"; exit ;;
24079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24080 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24081 ac_cs_silent=: ;;
24082
24083 # This is an error.
24084 -*) { echo "$as_me: error: unrecognized option: $1
24085 Try \`$0 --help' for more information." >&2
24086 { (exit 1); exit 1; }; } ;;
24087
24088 *) ac_config_targets="$ac_config_targets $1"
24089 ac_need_defaults=false ;;
24090
24091 esac
24092 shift
24093 done
24094
24095 ac_configure_extra_args=
24096
24097 if $ac_cs_silent; then
24098 exec 6>/dev/null
24099 ac_configure_extra_args="$ac_configure_extra_args --silent"
24100 fi
24101
24102 _ACEOF
24103 cat >>$CONFIG_STATUS <<_ACEOF
24104 if \$ac_cs_recheck; then
24105 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24106 CONFIG_SHELL=$SHELL
24107 export CONFIG_SHELL
24108 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24109 fi
24110
24111 _ACEOF
24112 cat >>$CONFIG_STATUS <<\_ACEOF
24113 exec 5>>config.log
24114 {
24115 echo
24116 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24117 ## Running $as_me. ##
24118 _ASBOX
24119 echo "$ac_log"
24120 } >&5
24121
24122 _ACEOF
24123 cat >>$CONFIG_STATUS <<_ACEOF
24124 #
24125 # INIT-COMMANDS
24126 #
24127 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24128
24129 _ACEOF
24130
24131 cat >>$CONFIG_STATUS <<\_ACEOF
24132
24133 # Handling of arguments.
24134 for ac_config_target in $ac_config_targets
24135 do
24136 case $ac_config_target in
24137 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24138 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24139 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24140 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24141 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
24142 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24143 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24144 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24145 "lispref/Makefile") CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
24146 "lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
24147 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24148 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24149
24150 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24151 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24152 { (exit 1); exit 1; }; };;
24153 esac
24154 done
24155
24156
24157 # If the user did not use the arguments to specify the items to instantiate,
24158 # then the envvar interface is used. Set only those that are not.
24159 # We use the long form for the default assignment because of an extremely
24160 # bizarre bug on SunOS 4.1.3.
24161 if $ac_need_defaults; then
24162 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24163 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24164 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24165 fi
24166
24167 # Have a temporary directory for convenience. Make it in the build tree
24168 # simply because there is no reason against having it here, and in addition,
24169 # creating and moving files from /tmp can sometimes cause problems.
24170 # Hook for its removal unless debugging.
24171 # Note that there is a small window in which the directory will not be cleaned:
24172 # after its creation but before its name has been assigned to `$tmp'.
24173 $debug ||
24174 {
24175 tmp=
24176 trap 'exit_status=$?
24177 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24178 ' 0
24179 trap '{ (exit 1); exit 1; }' 1 2 13 15
24180 }
24181 # Create a (secure) tmp directory for tmp files.
24182
24183 {
24184 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24185 test -n "$tmp" && test -d "$tmp"
24186 } ||
24187 {
24188 tmp=./conf$$-$RANDOM
24189 (umask 077 && mkdir "$tmp")
24190 } ||
24191 {
24192 echo "$me: cannot create a temporary directory in ." >&2
24193 { (exit 1); exit 1; }
24194 }
24195
24196 #
24197 # Set up the sed scripts for CONFIG_FILES section.
24198 #
24199
24200 # No need to generate the scripts if there are no CONFIG_FILES.
24201 # This happens for instance when ./config.status config.h
24202 if test -n "$CONFIG_FILES"; then
24203
24204 _ACEOF
24205
24206
24207
24208 ac_delim='%!_!# '
24209 for ac_last_try in false false false false false :; do
24210 cat >conf$$subs.sed <<_ACEOF
24211 SHELL!$SHELL$ac_delim
24212 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24213 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24214 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24215 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24216 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24217 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24218 exec_prefix!$exec_prefix$ac_delim
24219 prefix!$prefix$ac_delim
24220 program_transform_name!$program_transform_name$ac_delim
24221 bindir!$bindir$ac_delim
24222 sbindir!$sbindir$ac_delim
24223 libexecdir!$libexecdir$ac_delim
24224 datarootdir!$datarootdir$ac_delim
24225 datadir!$datadir$ac_delim
24226 sysconfdir!$sysconfdir$ac_delim
24227 sharedstatedir!$sharedstatedir$ac_delim
24228 localstatedir!$localstatedir$ac_delim
24229 includedir!$includedir$ac_delim
24230 oldincludedir!$oldincludedir$ac_delim
24231 docdir!$docdir$ac_delim
24232 infodir!$infodir$ac_delim
24233 htmldir!$htmldir$ac_delim
24234 dvidir!$dvidir$ac_delim
24235 pdfdir!$pdfdir$ac_delim
24236 psdir!$psdir$ac_delim
24237 libdir!$libdir$ac_delim
24238 localedir!$localedir$ac_delim
24239 mandir!$mandir$ac_delim
24240 DEFS!$DEFS$ac_delim
24241 ECHO_C!$ECHO_C$ac_delim
24242 ECHO_N!$ECHO_N$ac_delim
24243 ECHO_T!$ECHO_T$ac_delim
24244 LIBS!$LIBS$ac_delim
24245 build_alias!$build_alias$ac_delim
24246 host_alias!$host_alias$ac_delim
24247 target_alias!$target_alias$ac_delim
24248 MAINT!$MAINT$ac_delim
24249 build!$build$ac_delim
24250 build_cpu!$build_cpu$ac_delim
24251 build_vendor!$build_vendor$ac_delim
24252 build_os!$build_os$ac_delim
24253 host!$host$ac_delim
24254 host_cpu!$host_cpu$ac_delim
24255 host_vendor!$host_vendor$ac_delim
24256 host_os!$host_os$ac_delim
24257 CC!$CC$ac_delim
24258 CFLAGS!$CFLAGS$ac_delim
24259 LDFLAGS!$LDFLAGS$ac_delim
24260 CPPFLAGS!$CPPFLAGS$ac_delim
24261 ac_ct_CC!$ac_ct_CC$ac_delim
24262 EXEEXT!$EXEEXT$ac_delim
24263 OBJEXT!$OBJEXT$ac_delim
24264 CPP!$CPP$ac_delim
24265 GREP!$GREP$ac_delim
24266 EGREP!$EGREP$ac_delim
24267 LN_S!$LN_S$ac_delim
24268 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24269 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24270 INSTALL_DATA!$INSTALL_DATA$ac_delim
24271 RANLIB!$RANLIB$ac_delim
24272 INSTALL_INFO!$INSTALL_INFO$ac_delim
24273 GZIP_PROG!$GZIP_PROG$ac_delim
24274 LIBSOUND!$LIBSOUND$ac_delim
24275 PKG_CONFIG!$PKG_CONFIG$ac_delim
24276 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24277 ALSA_LIBS!$ALSA_LIBS$ac_delim
24278 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24279 SET_MAKE!$SET_MAKE$ac_delim
24280 XMKMF!$XMKMF$ac_delim
24281 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24282 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24283 GTK_LIBS!$GTK_LIBS$ac_delim
24284 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24285 XFT_LIBS!$XFT_LIBS$ac_delim
24286 ALLOCA!$ALLOCA$ac_delim
24287 liblockfile!$liblockfile$ac_delim
24288 LIBOBJS!$LIBOBJS$ac_delim
24289 NEED_SETGID!$NEED_SETGID$ac_delim
24290 KMEM_GROUP!$KMEM_GROUP$ac_delim
24291 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24292 GETOPT_H!$GETOPT_H$ac_delim
24293 GETOPTOBJS!$GETOPTOBJS$ac_delim
24294 version!$version$ac_delim
24295 configuration!$configuration$ac_delim
24296 canonical!$canonical$ac_delim
24297 srcdir!$srcdir$ac_delim
24298 lispdir!$lispdir$ac_delim
24299 locallisppath!$locallisppath$ac_delim
24300 lisppath!$lisppath$ac_delim
24301 x_default_search_path!$x_default_search_path$ac_delim
24302 etcdir!$etcdir$ac_delim
24303 archlibdir!$archlibdir$ac_delim
24304 bitmapdir!$bitmapdir$ac_delim
24305 gamedir!$gamedir$ac_delim
24306 gameuser!$gameuser$ac_delim
24307 c_switch_system!$c_switch_system$ac_delim
24308 _ACEOF
24309
24310 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24311 break
24312 elif $ac_last_try; then
24313 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24314 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24315 { (exit 1); exit 1; }; }
24316 else
24317 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24318 fi
24319 done
24320
24321 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24322 if test -n "$ac_eof"; then
24323 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24324 ac_eof=`expr $ac_eof + 1`
24325 fi
24326
24327 cat >>$CONFIG_STATUS <<_ACEOF
24328 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24329 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24330 _ACEOF
24331 sed '
24332 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24333 s/^/s,@/; s/!/@,|#_!!_#|/
24334 :n
24335 t n
24336 s/'"$ac_delim"'$/,g/; t
24337 s/$/\\/; p
24338 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24339 ' >>$CONFIG_STATUS <conf$$subs.sed
24340 rm -f conf$$subs.sed
24341 cat >>$CONFIG_STATUS <<_ACEOF
24342 CEOF$ac_eof
24343 _ACEOF
24344
24345
24346 ac_delim='%!_!# '
24347 for ac_last_try in false false false false false :; do
24348 cat >conf$$subs.sed <<_ACEOF
24349 c_switch_machine!$c_switch_machine$ac_delim
24350 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24351 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24352 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24353 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24354 machfile!$machfile$ac_delim
24355 opsysfile!$opsysfile$ac_delim
24356 carbon_appdir!$carbon_appdir$ac_delim
24357 LTLIBOBJS!$LTLIBOBJS$ac_delim
24358 _ACEOF
24359
24360 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
24361 break
24362 elif $ac_last_try; then
24363 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24364 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24365 { (exit 1); exit 1; }; }
24366 else
24367 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24368 fi
24369 done
24370
24371 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24372 if test -n "$ac_eof"; then
24373 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24374 ac_eof=`expr $ac_eof + 1`
24375 fi
24376
24377 cat >>$CONFIG_STATUS <<_ACEOF
24378 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24379 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24380 _ACEOF
24381 sed '
24382 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24383 s/^/s,@/; s/!/@,|#_!!_#|/
24384 :n
24385 t n
24386 s/'"$ac_delim"'$/,g/; t
24387 s/$/\\/; p
24388 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24389 ' >>$CONFIG_STATUS <conf$$subs.sed
24390 rm -f conf$$subs.sed
24391 cat >>$CONFIG_STATUS <<_ACEOF
24392 :end
24393 s/|#_!!_#|//g
24394 CEOF$ac_eof
24395 _ACEOF
24396
24397
24398 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24399 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24400 # trailing colons and then remove the whole line if VPATH becomes empty
24401 # (actually we leave an empty line to preserve line numbers).
24402 if test "x$srcdir" = x.; then
24403 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24404 s/:*\$(srcdir):*/:/
24405 s/:*\${srcdir}:*/:/
24406 s/:*@srcdir@:*/:/
24407 s/^\([^=]*=[ ]*\):*/\1/
24408 s/:*$//
24409 s/^[^=]*=[ ]*$//
24410 }'
24411 fi
24412
24413 cat >>$CONFIG_STATUS <<\_ACEOF
24414 fi # test -n "$CONFIG_FILES"
24415
24416
24417 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24418 do
24419 case $ac_tag in
24420 :[FHLC]) ac_mode=$ac_tag; continue;;
24421 esac
24422 case $ac_mode$ac_tag in
24423 :[FHL]*:*);;
24424 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24425 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24426 { (exit 1); exit 1; }; };;
24427 :[FH]-) ac_tag=-:-;;
24428 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24429 esac
24430 ac_save_IFS=$IFS
24431 IFS=:
24432 set x $ac_tag
24433 IFS=$ac_save_IFS
24434 shift
24435 ac_file=$1
24436 shift
24437
24438 case $ac_mode in
24439 :L) ac_source=$1;;
24440 :[FH])
24441 ac_file_inputs=
24442 for ac_f
24443 do
24444 case $ac_f in
24445 -) ac_f="$tmp/stdin";;
24446 *) # Look for the file first in the build tree, then in the source tree
24447 # (if the path is not absolute). The absolute path cannot be DOS-style,
24448 # because $ac_f cannot contain `:'.
24449 test -f "$ac_f" ||
24450 case $ac_f in
24451 [\\/$]*) false;;
24452 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24453 esac ||
24454 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24455 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24456 { (exit 1); exit 1; }; };;
24457 esac
24458 ac_file_inputs="$ac_file_inputs $ac_f"
24459 done
24460
24461 # Let's still pretend it is `configure' which instantiates (i.e., don't
24462 # use $as_me), people would be surprised to read:
24463 # /* config.h. Generated by config.status. */
24464 configure_input="Generated from "`IFS=:
24465 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24466 if test x"$ac_file" != x-; then
24467 configure_input="$ac_file. $configure_input"
24468 { echo "$as_me:$LINENO: creating $ac_file" >&5
24469 echo "$as_me: creating $ac_file" >&6;}
24470 fi
24471
24472 case $ac_tag in
24473 *:-:* | *:-) cat >"$tmp/stdin";;
24474 esac
24475 ;;
24476 esac
24477
24478 ac_dir=`$as_dirname -- "$ac_file" ||
24479 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24480 X"$ac_file" : 'X\(//\)[^/]' \| \
24481 X"$ac_file" : 'X\(//\)$' \| \
24482 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24483 echo X"$ac_file" |
24484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24485 s//\1/
24486 q
24487 }
24488 /^X\(\/\/\)[^/].*/{
24489 s//\1/
24490 q
24491 }
24492 /^X\(\/\/\)$/{
24493 s//\1/
24494 q
24495 }
24496 /^X\(\/\).*/{
24497 s//\1/
24498 q
24499 }
24500 s/.*/./; q'`
24501 { as_dir="$ac_dir"
24502 case $as_dir in #(
24503 -*) as_dir=./$as_dir;;
24504 esac
24505 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24506 as_dirs=
24507 while :; do
24508 case $as_dir in #(
24509 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24510 *) as_qdir=$as_dir;;
24511 esac
24512 as_dirs="'$as_qdir' $as_dirs"
24513 as_dir=`$as_dirname -- "$as_dir" ||
24514 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24515 X"$as_dir" : 'X\(//\)[^/]' \| \
24516 X"$as_dir" : 'X\(//\)$' \| \
24517 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24518 echo X"$as_dir" |
24519 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24520 s//\1/
24521 q
24522 }
24523 /^X\(\/\/\)[^/].*/{
24524 s//\1/
24525 q
24526 }
24527 /^X\(\/\/\)$/{
24528 s//\1/
24529 q
24530 }
24531 /^X\(\/\).*/{
24532 s//\1/
24533 q
24534 }
24535 s/.*/./; q'`
24536 test -d "$as_dir" && break
24537 done
24538 test -z "$as_dirs" || eval "mkdir $as_dirs"
24539 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24540 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24541 { (exit 1); exit 1; }; }; }
24542 ac_builddir=.
24543
24544 case "$ac_dir" in
24545 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24546 *)
24547 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24548 # A ".." for each directory in $ac_dir_suffix.
24549 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24550 case $ac_top_builddir_sub in
24551 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24552 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24553 esac ;;
24554 esac
24555 ac_abs_top_builddir=$ac_pwd
24556 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24557 # for backward compatibility:
24558 ac_top_builddir=$ac_top_build_prefix
24559
24560 case $srcdir in
24561 .) # We are building in place.
24562 ac_srcdir=.
24563 ac_top_srcdir=$ac_top_builddir_sub
24564 ac_abs_top_srcdir=$ac_pwd ;;
24565 [\\/]* | ?:[\\/]* ) # Absolute name.
24566 ac_srcdir=$srcdir$ac_dir_suffix;
24567 ac_top_srcdir=$srcdir
24568 ac_abs_top_srcdir=$srcdir ;;
24569 *) # Relative name.
24570 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24571 ac_top_srcdir=$ac_top_build_prefix$srcdir
24572 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24573 esac
24574 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24575
24576
24577 case $ac_mode in
24578 :F)
24579 #
24580 # CONFIG_FILE
24581 #
24582
24583 case $INSTALL in
24584 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24585 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24586 esac
24587 _ACEOF
24588
24589 cat >>$CONFIG_STATUS <<\_ACEOF
24590 # If the template does not know about datarootdir, expand it.
24591 # FIXME: This hack should be removed a few years after 2.60.
24592 ac_datarootdir_hack=; ac_datarootdir_seen=
24593
24594 case `sed -n '/datarootdir/ {
24595 p
24596 q
24597 }
24598 /@datadir@/p
24599 /@docdir@/p
24600 /@infodir@/p
24601 /@localedir@/p
24602 /@mandir@/p
24603 ' $ac_file_inputs` in
24604 *datarootdir*) ac_datarootdir_seen=yes;;
24605 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24606 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24607 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24608 _ACEOF
24609 cat >>$CONFIG_STATUS <<_ACEOF
24610 ac_datarootdir_hack='
24611 s&@datadir@&$datadir&g
24612 s&@docdir@&$docdir&g
24613 s&@infodir@&$infodir&g
24614 s&@localedir@&$localedir&g
24615 s&@mandir@&$mandir&g
24616 s&\\\${datarootdir}&$datarootdir&g' ;;
24617 esac
24618 _ACEOF
24619
24620 # Neutralize VPATH when `$srcdir' = `.'.
24621 # Shell code in configure.ac might set extrasub.
24622 # FIXME: do we really want to maintain this feature?
24623 cat >>$CONFIG_STATUS <<_ACEOF
24624 sed "$ac_vpsub
24625 $extrasub
24626 _ACEOF
24627 cat >>$CONFIG_STATUS <<\_ACEOF
24628 :t
24629 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24630 s&@configure_input@&$configure_input&;t t
24631 s&@top_builddir@&$ac_top_builddir_sub&;t t
24632 s&@srcdir@&$ac_srcdir&;t t
24633 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24634 s&@top_srcdir@&$ac_top_srcdir&;t t
24635 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24636 s&@builddir@&$ac_builddir&;t t
24637 s&@abs_builddir@&$ac_abs_builddir&;t t
24638 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24639 s&@INSTALL@&$ac_INSTALL&;t t
24640 $ac_datarootdir_hack
24641 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24642
24643 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24644 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24645 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24646 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24647 which seems to be undefined. Please make sure it is defined." >&5
24648 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24649 which seems to be undefined. Please make sure it is defined." >&2;}
24650
24651 rm -f "$tmp/stdin"
24652 case $ac_file in
24653 -) cat "$tmp/out"; rm -f "$tmp/out";;
24654 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24655 esac
24656 ;;
24657 :H)
24658 #
24659 # CONFIG_HEADER
24660 #
24661 _ACEOF
24662
24663 # Transform confdefs.h into a sed script `conftest.defines', that
24664 # substitutes the proper values into config.h.in to produce config.h.
24665 rm -f conftest.defines conftest.tail
24666 # First, append a space to every undef/define line, to ease matching.
24667 echo 's/$/ /' >conftest.defines
24668 # Then, protect against being on the right side of a sed subst, or in
24669 # an unquoted here document, in config.status. If some macros were
24670 # called several times there might be several #defines for the same
24671 # symbol, which is useless. But do not sort them, since the last
24672 # AC_DEFINE must be honored.
24673 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24674 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24675 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24676 # PARAMS is the parameter list in the macro definition--in most cases, it's
24677 # just an empty string.
24678 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24679 ac_dB='\\)[ (].*,\\1define\\2'
24680 ac_dC=' '
24681 ac_dD=' ,'
24682
24683 uniq confdefs.h |
24684 sed -n '
24685 t rset
24686 :rset
24687 s/^[ ]*#[ ]*define[ ][ ]*//
24688 t ok
24689 d
24690 :ok
24691 s/[\\&,]/\\&/g
24692 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24693 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24694 ' >>conftest.defines
24695
24696 # Remove the space that was appended to ease matching.
24697 # Then replace #undef with comments. This is necessary, for
24698 # example, in the case of _POSIX_SOURCE, which is predefined and required
24699 # on some systems where configure will not decide to define it.
24700 # (The regexp can be short, since the line contains either #define or #undef.)
24701 echo 's/ $//
24702 s,^[ #]*u.*,/* & */,' >>conftest.defines
24703
24704 # Break up conftest.defines:
24705 ac_max_sed_lines=50
24706
24707 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24708 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24709 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24710 # et cetera.
24711 ac_in='$ac_file_inputs'
24712 ac_out='"$tmp/out1"'
24713 ac_nxt='"$tmp/out2"'
24714
24715 while :
24716 do
24717 # Write a here document:
24718 cat >>$CONFIG_STATUS <<_ACEOF
24719 # First, check the format of the line:
24720 cat >"\$tmp/defines.sed" <<\\CEOF
24721 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24722 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24723 b
24724 :def
24725 _ACEOF
24726 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24727 echo 'CEOF
24728 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24729 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24730 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24731 grep . conftest.tail >/dev/null || break
24732 rm -f conftest.defines
24733 mv conftest.tail conftest.defines
24734 done
24735 rm -f conftest.defines conftest.tail
24736
24737 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24738 cat >>$CONFIG_STATUS <<\_ACEOF
24739 if test x"$ac_file" != x-; then
24740 echo "/* $configure_input */" >"$tmp/config.h"
24741 cat "$ac_result" >>"$tmp/config.h"
24742 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24743 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24744 echo "$as_me: $ac_file is unchanged" >&6;}
24745 else
24746 rm -f $ac_file
24747 mv "$tmp/config.h" $ac_file
24748 fi
24749 else
24750 echo "/* $configure_input */"
24751 cat "$ac_result"
24752 fi
24753 rm -f "$tmp/out12"
24754 ;;
24755
24756 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24757 echo "$as_me: executing $ac_file commands" >&6;}
24758 ;;
24759 esac
24760
24761
24762 case $ac_file$ac_mode in
24763 "default":C)
24764
24765 ### Make the necessary directories, if they don't exist.
24766 for dir in etc lisp ; do
24767 test -d ${dir} || mkdir ${dir}
24768 done
24769
24770 # Build src/Makefile from ${srcdir}/src/Makefile.c
24771 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24772 # This must be done after src/config.h is built, since we rely on that file.
24773
24774 # Now get this: Some word that is part of the ${srcdir} directory name
24775 # or the ${configuration} value might, just might, happen to be an
24776 # identifier like `sun4' or `i386' or something, and be predefined by
24777 # the C preprocessor to some helpful value like 1, or maybe the empty
24778 # string. Needless to say consequent macro substitutions are less
24779 # than conducive to the makefile finding the correct directory.
24780 undefs="`echo $top_srcdir $configuration $canonical |
24781 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24782 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24783 `"
24784
24785 echo creating src/epaths.h
24786 ${MAKE-make} epaths-force
24787
24788 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24789 # `..' to `. .' unless invoked with -traditional
24790
24791 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24792 CPPFLAGS="$CPPFLAGS -traditional"
24793 fi
24794
24795 echo creating lib-src/Makefile
24796 ( cd lib-src
24797 rm -f junk.c junk1.c junk2.c
24798 sed -e '/start of cpp stuff/q' \
24799 < Makefile.c > junk1.c
24800 sed -e '1,/start of cpp stuff/d'\
24801 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24802 < Makefile.c > junk.c
24803 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24804 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24805 cat junk1.c junk2.c > Makefile.new
24806 rm -f junk.c junk1.c junk2.c
24807 chmod 444 Makefile.new
24808 mv -f Makefile.new Makefile
24809 )
24810
24811 echo creating src/Makefile
24812 ( cd src
24813 rm -f junk.c junk1.c junk2.c
24814 sed -e '/start of cpp stuff/q' \
24815 < Makefile.c > junk1.c
24816 sed -e '1,/start of cpp stuff/d'\
24817 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24818 < Makefile.c > junk.c
24819 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24820 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24821 cat junk1.c junk2.c > Makefile.new
24822 rm -f junk.c junk1.c junk2.c
24823 chmod 444 Makefile.new
24824 mv -f Makefile.new Makefile
24825 )
24826
24827 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24828 echo creating src/.gdbinit
24829 echo source $srcdir/src/.gdbinit > src/.gdbinit
24830 fi
24831
24832 # This is how we know whether to re-run configure in certain cases.
24833 touch src/config.stamp
24834
24835 ;;
24836
24837 esac
24838 done # for ac_tag
24839
24840
24841 { (exit 0); exit 0; }
24842 _ACEOF
24843 chmod +x $CONFIG_STATUS
24844 ac_clean_files=$ac_clean_files_save
24845
24846
24847 # configure is writing to config.log, and then calls config.status.
24848 # config.status does its own redirection, appending to config.log.
24849 # Unfortunately, on DOS this fails, as config.log is still kept open
24850 # by configure, so config.status won't be able to write to it; its
24851 # output is simply discarded. So we exec the FD to /dev/null,
24852 # effectively closing config.log, so it can be properly (re)opened and
24853 # appended to by config.status. When coming back to configure, we
24854 # need to make the FD available again.
24855 if test "$no_create" != yes; then
24856 ac_cs_success=:
24857 ac_config_status_args=
24858 test "$silent" = yes &&
24859 ac_config_status_args="$ac_config_status_args --quiet"
24860 exec 5>/dev/null
24861 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24862 exec 5>>config.log
24863 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24864 # would make configure fail if this is the last instruction.
24865 $ac_cs_success || { (exit 1); exit 1; }
24866 fi
24867
24868